@access-ci/ui 0.18.4 → 0.19.0-beta3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access-ci-ui-react.js +15 -0
- package/dist/access-ci-ui-react.umd.cjs +343 -0
- package/dist/access-ci-ui.bundle.js +49 -137
- package/dist/access-ci-ui.js +22 -13
- package/dist/access-ci-ui.umd.cjs +47 -129
- package/dist/{access-qa-bot-0-eHPl7L.js → access-qa-bot-CHkBf16I.js} +456 -485
- package/dist/access-qa-bot-Q26EvzKe.js +14495 -0
- package/dist/icon-CMHOrCGv.js +7 -0
- package/dist/{icon-DkwvVlzC.js → icon-cJmGylOm.js} +1 -1
- package/dist/index-CrKdAxQz.js +8257 -0
- package/dist/resource-group-detail-Dr7EYmvH.js +12555 -0
- package/dist/{resource-group-detail-CZ1YKaye.js → resource-group-detail-Dxt8iVRs.js} +476 -497
- package/dist/resource-home-Cf5k64F0.js +275 -0
- package/dist/{resource-home-B2yybzmX.js → resource-home-ChfTC5Qa.js} +2 -2
- package/dist/shadow-CGn1GiHs.js +2644 -0
- package/package.json +11 -4
- package/dist/index-CYiW1U_C.js +0 -8151
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
(function(mt,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],k):(mt=typeof globalThis<"u"?globalThis:mt||self,k(mt.AccessCiUi={},mt.jsxRuntime,mt.React,mt.ReactDOM))})(this,(function(mt,k,I,UA){"use strict";function uw(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const K=uw(I),dw="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='%231a5b6e'%20className='bi%20bi-house-door-fill'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M6.5%2014.5v-3.505c0-.245.25-.495.5-.495h2c.25%200%20.5.25.5.5v3.5a.5.5%200%200%200%20.5.5h4a.5.5%200%200%200%20.5-.5v-7a.5.5%200%200%200-.146-.354L13%205.793V2.5a.5.5%200%200%200-.5-.5h-1a.5.5%200%200%200-.5.5v1.293L8.354%201.146a.5.5%200%200%200-.708%200l-6%206A.5.5%200%200%200%201.5%207.5v7a.5.5%200%200%200%20.5.5h4a.5.5%200%200%200%20.5-.5'/%3e%3c/svg%3e";function vd({expandWidth:t=!1,homeTitle:e="ACCESS Home",homeUrl:n="https://access-ci.org/",items:r=[],topBorder:o=!1}){if(!(!r||!r.length))return k.jsxs("ul",{className:`breadcrumbs ${t?"expand":""} ${o?"top-border":""}`,children:[k.jsx("li",{className:"home",children:k.jsx("a",{href:n,title:e,children:k.jsx("img",{src:dw,alt:e,height:"14"})})},"home"),r.map(i=>k.jsx("li",{className:i.classes||"",children:i.href?k.jsx("a",{href:i.href,children:i.name}):i.name},i.name))]})}const fw=I.createContext(null),yd={didCatch:!1,error:null};class jA extends I.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=yd}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){const{error:n}=this.state;n!==null&&(this.props.onReset?.({args:e,reason:"imperative-api"}),this.setState(yd))}componentDidCatch(e,n){this.props.onError?.(e,n)}componentDidUpdate(e,n){const{didCatch:r}=this.state,{resetKeys:o}=this.props;r&&n.error!==null&&hw(e.resetKeys,o)&&(this.props.onReset?.({next:o,prev:e.resetKeys,reason:"keys"}),this.setState(yd))}render(){const{children:e,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:a}=this.state;let s=e;if(i){const l={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")s=n(l);else if(r)s=I.createElement(r,l);else if(o!==void 0)s=o;else throw a}return I.createElement(fw.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function hw(t=[],e=[]){return t.length!==e.length||t.some((n,r)=>!Object.is(n,e[r]))}const pw=I.lazy(()=>Promise.resolve().then(()=>AE).then(t=>({default:t.QABot})));let WA=class extends I.Component{render(){const{welcome:e,isLoggedIn:n,open:r,onOpenChange:o,apiKey:i,embedded:a,loginUrl:s,userEmail:l,userName:c,accessId:u,onAnalyticsEvent:f,qaEndpoint:p,ratingEndpoint:m}=this.props,v=i||void 0||null;if(!v)return console.error("QA Bot: No valid API key provided"),null;const w=n!==void 0?n:document.cookie.split("; ").includes("SESSaccesscisso=1");return k.jsx(jA,{children:k.jsx(pw,{welcome:e,isLoggedIn:w,open:r,onOpenChange:o,embedded:a===!0,apiKey:v,loginUrl:s,userEmail:l,userName:c,accessId:u,onAnalyticsEvent:f,qaEndpoint:p,ratingEndpoint:m})})}};const VA=[{name:"Researchers",href:"https://access-ci.org/get-started/for-researchers/"},{name:"Educators",href:"https://access-ci.org/get-started/for-educators/"},{name:"Graduate Students",href:"https://access-ci.org/get-started/for-graduate-students/"},{name:"Resource Providers",href:"https://access-ci.org/get-started/for-resource-providers/"},{name:"CI Community",href:"https://access-ci.org/get-started/for-programs-organizations/"}],Aw=[{name:"ACCESS Home",href:"https://access-ci.org/",classes:"icon icon-home"},{name:"Allocations",href:"https://allocations.access-ci.org/",classes:"track"},{name:"Resources",href:"https://allocations.access-ci.org/resources",classes:"track"},{name:"Events & Trainings",href:"https://support.access-ci.org/events",classes:"track"},{name:"Support",href:"https://support.access-ci.org/",classes:"track"},{name:"News",href:"https://access-ci.org/news/",classes:"track"},{name:"About",href:"https://access-ci.org/about/",classes:"track grow"},{name:"Find info for you",classes:"highlight",items:VA},{name:"Search",href:"https://support.access-ci.org/find",classes:"icon icon-search"}],gw={name:"My ACCESS",items:[{name:"Allocations",href:"https://allocations.access-ci.org/requests"},{name:"Community Persona",href:"https://support.access-ci.org/community-persona"},{name:"Edit Profile",href:"https://allocations.access-ci.org/profile"},{name:"Publications",href:"https://allocations.access-ci.org/publications"},{name:"Share with ORCID",href:"https://allocations.access-ci.org/orcid"},{name:"Log out",href:"https://cilogon.org/logout/?skin=access"}]},mw={name:"Login",items:[{name:"Login",href:"https://cilogon.org/?skin=access"},{name:"Questions",href:"https://identity.access-ci.org/"},{name:"Register",href:"https://identity.access-ci.org/new-user"},{name:"Reset Password",href:"https://identity.access-ci.org/password-reset"}]},bw=[{className:"bluesky",href:"https://bsky.app/profile/accessforci.bsky.social",name:"Bluesky"},{className:"youtube",href:"https://www.youtube.com/c/ACCESSforCI",name:"YouTube"},{className:"facebook",href:"https://www.facebook.com/ACCESSforCI",name:"Facebook"},{className:"linkedin",href:"https://www.linkedin.com/company/accessforci/",name:"LinkedIn"}],vw=[{href:"https://access-ci.org/acceptable-use/",name:"Acceptable Use"},{href:"https://access-ci.org/about/acknowledging-access/",name:"Acknowledging ACCESS"},{href:"https://access-ci.org/code-of-conduct/",name:"Code of Conduct"},{href:"https://access-ci.org/glossary/",name:"Glossary"},{href:"https://access-ci.org/privacy-policy",name:"Privacy Policy"},{href:"https://operations.access-ci.org/report-security-incident",name:"Report a Security Incident"},{href:"https://access-ci.org/site-map/",name:"Site Map"}],yw="https://www.nsf.gov/awardsearch/show-award/",xa=({number:t})=>k.jsxs("a",{href:`${yw}?AWD_ID=${t}`,children:["#",t]}),Ol=({className:t=null,items:e})=>k.jsx("ul",{className:t,children:e.map(({className:n,name:r,href:o})=>k.jsx("li",{children:k.jsx("a",{className:n,href:o,children:r})},o))}),ww="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAABIAAAASABGyWs+AABv5klEQVR42u29d5gkVb0+/p5zKnTunp48m3NiWWDJCCJJAREJ14DoNV/1ioqo1wRmr2K46upVMcuiCCIIkgTJYdllE5tnw8xODj3TuS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fmiXDeAf11wdfhzAfADjhysFRNfVvZRpewE0C+4ik3dhO2ILgJHDcb6rPr3P/vwHmz/PhcwDMI5USfxRYFWNNWuzLoDuw+sk6BnG/Fuk5KdyYcCwuATwHA4jI/7NmyYSeJUPiqPjkOPktz4nqBLcTZkPQhBwLm1Gyd5XqyQ5KrH+HxrcNQ3TMpBIW8gVHC6EzBy9K0eB9U+P/qGB3NB44eDAaB4F0zWEkMbRu3IUWP/0GJ807x5JGE/nCg7gLdU5dvSuHB1Hx/8P4/8D9B8zcoSATacAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDgtMTdUMTY6MTI6MTUtMDQ6MDBuCuvkAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA4LTE3VDE2OjEyOjE1LTA0OjAwH1dTWAAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAASUVORK5CYII=",xw="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20id='Layer_1'%20viewBox='0%200%20269.14%2041.37'%3e%3cdefs%3e%3clinearGradient%20id='linear-gradient'%20x1='14.99'%20y1='25.59'%20x2='42.38'%20y2='-1.8'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23e47637'%3e%3c/stop%3e%3cstop%20offset='.88'%20stop-color='%23ffcc52'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-2'%20x1='87.72'%20y1='26.66'%20x2='112.87'%20y2='1.51'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23008597'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-3'%20x1='233.69'%20y1='10.21'%20x2='195.89'%20y2='32.03'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.2'%20stop-color='%23008597'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-4'%20x1='45.84'%20y1='29.07'%20x2='82.09'%20y2='29.07'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.18'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3cstop%20offset='.81'%20stop-color='%23008597'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-5'%20x1='43.22'%20y1='20.68'%20x2='68.03'%20y2='20.68'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.22'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%23008597'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-6'%20x1='165.05'%20y1='35.98'%20x2='194.21'%20y2='35.98'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.03'%20stop-color='%23008597'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-7'%20x1='123.91'%20y1='11.68'%20x2='160.35'%20y2='11.68'%20xlink:href='%23linear-gradient-2'%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-8'%20x1='269.14'%20y1='20.69'%20x2='234.79'%20y2='20.69'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.03'%20stop-color='%23038596'%3e%3c/stop%3e%3cstop%20offset='.82'%20stop-color='%2366d6d6'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-9'%20x1='271.07'%20y1='10.21'%20x2='233.26'%20y2='32.03'%20gradientTransform='matrix(1,%200,%200,%201,%200,%200)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.2'%20stop-color='%23008597'%3e%3c/stop%3e%3cstop%20offset='1'%20stop-color='%2348c0b9'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-10'%20y1='20.36'%20x2='191.15'%20y2='20.36'%20xlink:href='%23linear-gradient-6'%3e%3c/linearGradient%3e%3clinearGradient%20id='linear-gradient-11'%20y1='5.3'%20y2='5.3'%20xlink:href='%23linear-gradient-6'%3e%3c/linearGradient%3e%3c/defs%3e%3cg%3e%3cpolygon%20points='44.62%20.43%202.5%207.94%2030.06%2040.66%2044.62%20.43'%20style='fill:url(%23linear-gradient);'%3e%3c/polygon%3e%3crect%20x='15.25'%20y='17.07'%20width='8.79'%20height='8.79'%20transform='translate(23.41%20-7.39)%20rotate(49.9)'%20style='fill:%23fff;'%3e%3c/rect%3e%3crect%20x='8.52'%20y='22.74'%20width='8.79'%20height='8.79'%20transform='translate(25.35%20-.23)%20rotate(49.9)'%20style='fill:%231a5b6e;'%3e%3c/rect%3e%3crect%20x='1.8'%20y='28.4'%20width='8.79'%20height='8.79'%20transform='translate(27.29%206.93)%20rotate(49.9)'%20style='fill:%23f07537;'%3e%3c/rect%3e%3crect%20x='2.86'%20y='16.01'%20width='8.79'%20height='8.79'%20transform='translate(18.19%201.71)%20rotate(49.9)'%20style='fill:%2348c0b9;'%3e%3c/rect%3e%3crect%20x='14.19'%20y='29.46'%20width='8.79'%20height='8.79'%20transform='translate(32.51%20-2.17)%20rotate(49.9)'%20style='fill:%23008597;'%3e%3c/rect%3e%3c/g%3e%3cg%3e%3cg%3e%3cpath%20d='M70.26,.67l14.44,40.03h-11.09l-2.57-7.25h-14.5l-2.51,7.25h-10.82L57.66,.67h12.6Zm-10.65,24.03h8.37l-4.18-11.93-4.18,11.93Z'%3e%3c/path%3e%3cpath%20d='M103.46,31.89c3.68,0,6.3-2.45,7.02-6.41l10.26,3.4c-2.45,7.53-8.25,12.49-17.23,12.49-11.26,0-19.24-8.64-19.24-20.69S92.25,0,103.52,0c8.98,0,14.77,4.96,17.23,12.49l-10.26,3.4c-.72-3.96-3.34-6.41-7.02-6.41-4.85,0-8.25,4.35-8.25,11.21s3.4,11.21,8.25,11.21Z'%20style='fill:%23008597;'%3e%3c/path%3e%3cpath%20d='M84.42,23.37c-1.27-14.31,7.83-23.37,19.09-23.37,8.98,0,14.77,4.96,17.23,12.49l-10.26,3.4c-.72-3.96-3.34-6.41-7.02-6.41-4.85,0-8.25,4.35-8.25,11.21l-10.79,2.68Z'%20style='fill:url(%23linear-gradient-2);'%3e%3c/path%3e%3cpath%20d='M143.01,31.89c3.68,0,6.3-2.45,7.02-6.41l10.26,3.4c-2.45,7.53-8.25,12.49-17.23,12.49-11.26,0-19.24-8.64-19.24-20.69S131.8,0,143.07,0c8.98,0,14.77,4.96,17.23,12.49l-10.26,3.4c-.72-3.96-3.34-6.41-7.02-6.41-4.85,0-8.25,4.35-8.25,11.21s3.4,11.21,8.25,11.21Z'%20style='fill:%23008597;'%3e%3c/path%3e%3cpath%20d='M203.38,26.76c3.4,3.85,7.92,5.63,11.99,5.63,3.35,0,5.58-1.23,5.58-3.51,0-2.57-2.84-2.9-8.98-4.13-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68,6.25,1.28,14.05,3.01,14.05,11.93s-7.58,13.61-16.83,13.61c-6.53,0-14.16-2.57-17.51-6.69l5.97-7.92Z'%20style='fill:url(%23linear-gradient-3);'%3e%3c/path%3e%3cpath%20d='M211.97,24.76c-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68l-5.74,8.92Z'%20style='fill:%23008597;'%3e%3c/path%3e%3cpath%20d='M70.26,.67l14.44,40.03h-11.09l-2.57-7.25L59.62,.67h10.65Zm-2.29,24.03'%20style='fill:%23008597;'%3e%3c/path%3e%3cpath%20d='M194.21,.67V9.92h-18.46v5.97h15.28v9.03h-15.28v6.52h18.46v9.26h-29.16V.67h29.16Z'%20style='fill:%23008597;'%3e%3c/path%3e%3c/g%3e%3cpolygon%20points='82.09%2033.45%2078.93%2024.7%2067.98%2024.7%2059.61%2024.7%2048.99%2024.7%2045.84%2033.45%2082.09%2033.45'%20style='fill:url(%23linear-gradient-4);'%3e%3c/polygon%3e%3cpath%20d='M68.03,.67l-13.99,40.03h-10.82L57.66,.67h10.37Zm-8.42,24.03l4.18-11.93-4.18,11.93Z'%20style='fill:url(%23linear-gradient-5);'%3e%3c/path%3e%3cpolygon%20points='165.05%2031.35%20165.05%2040.61%20175.76%2040.61%20176.66%2040.61%20194.21%2040.61%20194.21%2031.35%20165.05%2031.35'%20style='fill:url(%23linear-gradient-6);'%3e%3c/polygon%3e%3cpolygon%20points='175.75%2015.39%20165.05%2015.39%20165.05%20.74%20175.75%20.67%20175.75%2015.39'%20style='fill:%23008597;'%3e%3c/polygon%3e%3cpath%20d='M124.03,23.37c-1.27-14.31,7.83-23.37,19.09-23.37,8.98,0,14.77,4.96,17.23,12.49l-10.26,3.4c-.72-3.96-3.34-6.41-7.02-6.41-4.85,0-8.25,4.35-8.25,11.21l-10.79,2.68Z'%20style='fill:url(%23linear-gradient-7);'%3e%3c/path%3e%3cpath%20d='M240.76,26.76c3.4,3.85,7.92,5.63,11.99,5.63,3.35,0,5.58-1.23,5.58-3.51,0-2.57-2.84-2.9-8.98-4.13-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68,6.25,1.28,14.05,3.01,14.05,11.93s-7.58,13.61-16.83,13.61c-6.53,0-14.16-2.57-17.51-6.69l5.97-7.92Z'%20style='fill:url(%23linear-gradient-8);'%3e%3c/path%3e%3cpath%20d='M240.76,26.76c3.4,3.85,7.92,5.63,11.99,5.63,3.35,0,5.58-1.23,5.58-3.51,0-2.57-2.84-2.9-8.98-4.13-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68,6.25,1.28,14.05,3.01,14.05,11.93s-7.58,13.61-16.83,13.61c-6.53,0-14.16-2.57-17.51-6.69l5.97-7.92Z'%20style='fill:url(%23linear-gradient-9);'%3e%3c/path%3e%3cpolygon%20points='165.05%2015.73%20165.05%2024.99%20175.76%2024.99%20176.66%2024.99%20191.15%2024.99%20191.15%2015.73%20165.05%2015.73'%20style='fill:url(%23linear-gradient-10);'%3e%3c/polygon%3e%3cpath%20d='M249.34,24.76c-5.85-1.17-12.26-3.34-12.26-11.49s7.08-13.27,15.95-13.27c7.02,0,12.54,2.73,15.72,6.19l-5.91,7.36c-2.62-2.9-6.13-4.57-10.09-4.57-2.95,0-4.96,1.12-4.96,3.18,0,2.29,2.45,2.67,7.3,3.68l-5.74,8.92Z'%20style='fill:%23008597;'%3e%3c/path%3e%3cpolygon%20points='165.05%20.67%20165.05%209.92%20175.76%209.92%20176.66%209.92%20194.21%209.92%20194.21%20.67%20165.05%20.67'%20style='fill:url(%23linear-gradient-11);'%3e%3c/polygon%3e%3c/g%3e%3c/svg%3e",YA=({nsfUrl:t="https://www.nsf.gov",placement:e="header",siteName:n="",siteUrl:r="/"})=>k.jsxs("div",{className:`logo logo-${e}`,children:[k.jsx("a",{className:"nsf",href:t,children:k.jsx("img",{className:"nsf-logo",src:ww,alt:"National Science Foundation"})}),k.jsx("div",{className:"divider"}),k.jsxs("a",{className:"access",href:r,children:[k.jsx("img",{className:"access-logo",src:xw,alt:"ACCESS"}),n&&e=="header"?k.jsx("span",{className:`name name-${n.toLocaleLowerCase().replace(" ","-")}`,children:n}):null]})]}),wd=(t=900)=>document.body.clientWidth>=t?"desktop":"mobile",qA=(t=900)=>{const[e,n]=I.useState(wd(t));return I.useEffect(()=>{window.addEventListener("resize",()=>n(wd(t)))},[]),e},KA=()=>window.pageYOffset!==void 0?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,XA={},_l={},kw=(t,{body:e=null,cache:n=!0,corsProxy:r=!1,headers:o=void 0,method:i="GET"}={body:null,cache:!0,corsProxy:!1,headers:void 0,method:"GET"})=>{const a=`${t}|${e}`;if(n&&a in XA)return XA[a];if(a in _l)return _l[a];const s=fetch(r?`https://corsproxy.io/?${encodeURIComponent(t)}`:t,{body:e,headers:o,method:i}).then(l=>{if(delete _l[t],l.status<200||l.status>299)return{error:{status:l.status}};try{return l.json()}catch(c){return{error:{message:c}}}});return _l[a]=s,s},It=(t,{body:e=null,cache:n=!0,corsProxy:r=!1,defaultValue:o=null,headers:i=void 0,method:a="GET"}={body:null,cache:!0,corsProxy:!1,defaultValue:null,headers:void 0,method:"GET"})=>{const[s,l]=I.useState(o);let c=!1;return Array.isArray(t)||(t=t?[t]:[],c=!0),I.useEffect(()=>{t.length&&(async()=>{const u=await Promise.all(t.map(p=>kw(p,{body:e,cache:n,corsProxy:r,headers:i,method:a}))),f=c?u[0]:u;l(f)})()},[t.join(" ")]),s},GA=()=>{const t=It("https://operations-api.access-ci.org/wh2/cider/v1/access-active-groups/type/resource-catalog.access-ci.org/");return xd([t],({results:e})=>{const{active_groups:n,feature_categories:r,features:o,organizations:i,resources:a}=e,s=[{tagCategoryId:-1,name:"Resource Provider",tags:[]}],l=[-1];for(let w of r)[100,102,103].includes(w.feature_category_id)&&(s.push({tagCategoryId:w.feature_category_id,name:w.feature_category_name,tags:[]}),l.push(w.feature_category_id));s.sort((w,y)=>w.name.localeCompare(y.name));const c=o.filter(w=>l.includes(w.feature_category_id)).map(w=>({tagId:w.feature_id,name:w.feature_name,tagCategoryId:w.feature_category_id})),u={};for(let w of i)c.push({tagId:w.organization_id*-1,name:w.organization_name,tagCategoryId:-1,iconUri:w.organization_favicon_url||null}),u[w.organization_id]=w;c.sort((w,y)=>w.name.localeCompare(y.name));const f=c.map(w=>w.tagId),p=[{resourceCategoryId:1,name:"Compute & Storage Resources",resourceGroups:[],resourceGroupIds:[]},{resourceCategoryId:2,name:"Program & Other Resources",resourceGroups:[],resourceGroupIds:[]}],m=n.filter(w=>w.rollup_info_resourceids).map(w=>({infoGroupId:w.info_groupid,name:w.group_descriptive_name,description:w.group_description,infoResourceIds:w.rollup_info_resourceids,imageUri:w.group_logo_url?`https://cider.access-ci.org/public/groups/${w.group_logo_url.match(/[0-9]+/)[0]}/logo`:null,tagIds:[...w.rollup_organization_ids.map(y=>y*-1).filter(y=>f.includes(y)),...w.rollup_feature_ids.filter(y=>f.includes(y))],resourceCategoryId:w.rollup_feature_ids.includes(137)?2:1,accessAllocated:w.rollup_feature_ids.includes(139),organizations:w.rollup_organization_ids.map(y=>u[y]).filter(y=>y),resources:a.filter(y=>w.rollup_info_resourceids.includes(y.info_resourceid))})),v=m.find(w=>w.infoGroupId==="cloudbank.access-ci.org");if(v)for(const w of["Amazon Web Services","Google Cloud","IBM Cloud","Microsoft Azure"])m.push({...v,infoGroupId:`${w.toLowerCase().replaceAll(" ","-")}${v.infoGroupId}`,parentInfoGroupId:v.infoGroupId,name:w});return m.sort((w,y)=>w.name.localeCompare(y.name)),Cw({resourceCategories:p,resourceGroups:m,tags:c,tagCategories:s})})},ka=(t,e=null)=>{const n=GA();return n&&n.resourceGroups.find(r=>r.infoGroupId==t)||e},Sw=(t,e=[])=>{const n=It(`https://operations-api.access-ci.org/wh2/cider/v1/access-active/info_groupid/${t}/?format=json`);return n&&!n.error?n.results:e},xd=(t,e,n=null)=>I.useMemo(()=>{if(!t.length)return n;for(let r of t)if(!r||r.error)return n;return e.apply(null,t)},t),Cw=({resourceCategories:t,resourceGroups:e,tags:n,tagCategories:r})=>{const o={};for(let s of r)s.tags=[],o[s.tagCategoryId]=s;const i={};for(let s of n)s.tagCategory=o[s.tagCategoryId],s.tagCategory.tags.push(s),s.resources=[],i[s.tagId]=s;const a={};for(let s of t)s.resourceGroups=[],a[s.resourceCategoryId]=s;for(let s of e)s.resourceCategory=a[s.resourceCategoryId],s.resourceCategory.resourceGroups.push(s),s.tags=s.tagIds.map(l=>i[l]);return{resourceCategories:t,resourceGroups:e,tags:n,tagCategories:r}},Ew=({resourceGroups:t,tags:e,tagCategories:n},r)=>{const o=new Set,i=new Set,a=new Set,s=new Set(r);for(let u of e)s.has(u.tagId)&&a.add(u.tagCategoryId);const l=n.filter(({tagCategoryId:u})=>a.has(u)),c=new Set(e.filter(u=>!a.has(u.tagCategoryId)).map(u=>u.tagId));for(let u of t){let f=!0;for(let p of l){let m=!1;for(let v of p.tags)if(s.has(v.tagId)&&u.tags.includes(v)){m=!0;break}if(!m){f=!1;break}}if(f){i.add(u.infoGroupId),o.add(u.resourceCategoryId);for(let p of u.tagIds)c.delete(p)}}return{disabledTagIds:c,resourceCategoryIds:o,infoGroupIds:i,tagCategoryIds:a,tagIds:s}},JA=t=>{let e=t.match(/href="([^"]+)"/);return e?e[1]:null},kd=t=>t.replace(/(<[^>]+>)/g,"").replace(/ /g," "),Sd=t=>{const e=[];for(let n of t.split(/(\<\/p\>)|[\n\r]+/g)){if(!n)continue;const r=Array.from(n.matchAll(/<a([^>]+)>([^<]+)<\/a>/g)),o=n.split(/<a[^<]+<\/a>/g),i=[];for(;o.length>0;){i.push(kd(o.shift()));let a=r.shift();if(a){let s=JA(a[1]);s&&i.push(k.jsx("a",{href:s,children:a[2]}))}}e.push(k.jsx("p",{children:i},n))}return e},Pw=({showAfterScroll:t=300})=>{const[e,n]=I.useState(!1);return I.useEffect(()=>{window.addEventListener("scroll",()=>n(KA()>=t))},[]),k.jsx("button",{className:`scroll-to-top ${e?"visible":""}`,title:"Return to Top",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:"Return to Top"})},Dw=(t={})=>k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"container",children:[k.jsxs("div",{className:"upper",children:[k.jsxs("div",{className:"about",children:[k.jsxs("p",{className:"awards",children:["ACCESS is an advanced computing and data resource program supported by the U.S. National Science Foundation (NSF) under the Office of Advanced Cyberinfrastructure awards"," ",k.jsx(xa,{number:2138259}),", ",k.jsx(xa,{number:2138286}),","," ",k.jsx(xa,{number:2138307}),", ",k.jsx(xa,{number:2137603})," and"," ",k.jsx(xa,{number:2138296}),"."]}),k.jsx("p",{className:"disclaimer",children:"Any opinions, findings, conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of NSF."}),k.jsx("a",{className:"contact",href:"https://access-ci.org/contact/",children:"Contact ACCESS"}),k.jsx(Ol,{className:"social",items:bw})]}),k.jsxs("div",{className:"personas",children:[k.jsx("p",{children:"For:"}),k.jsx(Ol,{items:VA})]})]}),k.jsxs("div",{className:"lower",children:[k.jsx(YA,{siteName:"ACCESS",siteUrl:"https://access-ci.org",placement:"footer"}),k.jsx(Ol,{className:"links",items:vw})]})]}),k.jsx(Pw,{...t})]}),Tw=(t={})=>k.jsx("div",{className:"container",children:k.jsx(YA,{...t})}),ZA=({autoOpenMode:t,classes:e="",href:n="",html:r="",items:o,mode:i,name:a,onClick:s,open:l,parentId:c="root",setOpen:u})=>{const f=I.useId(),p=l[c]==f,m=p||t==i,v=()=>u({...l,[c]:p?null:f});if(r)return k.jsx("div",{dangerouslySetInnerHTML:{__html:r}});if(n||s)return k.jsx("a",{href:n||"#",onClick:s,className:`item ${e||""}`,children:a});if(o)return k.jsxs(k.Fragment,{children:[a&&k.jsx("button",{"aria-expanded":m,"aria-controls":f,className:`item ${m?"expanded":"collapsed"}`,onClick:v,children:a}),k.jsx("ul",{className:e,id:f,hidden:!m,"aria-hidden":!m,children:o.map(({autoOpenMode:w,classes:y,href:S,html:T,items:P,name:E,onClick:O})=>k.jsx("li",{className:y||"",children:k.jsx(ZA,{autoOpenMode:w,href:S,html:T,items:P,mode:i,name:E,onClick:O,open:l,parentId:f,setOpen:u})},E||T))})]})},$A=({classes:t,items:e,name:n})=>{const r=I.useRef(null),o=qA(1280),[i,a]=I.useState({});I.useEffect(()=>{r.current&&(document.body.addEventListener("click",l=>{const c=r.current.getRootNode()?.host;l.target!==c&&wd()=="desktop"&&a({})}),r.current.addEventListener("keydown",({key:l})=>{l=="Escape"&&a({})}))},[]);const s=t?.includes("universal")?"ACCESS universal navigation":t?.includes("site")?`${n}`:n;return k.jsx("nav",{className:`menu ${t||""}`,"aria-label":s,ref:r,children:k.jsx(ZA,{autoOpenMode:"desktop",items:e,mode:o,name:n,open:i,setOpen:a})})},Bw=({items:t,siteName:e=""})=>{const n=qA(768),r=t.map(({name:o,href:i,items:a})=>{if(n=="mobile")for(;!i;)i=a[0].href,a=a[0];return i?k.jsx("div",{className:"column",children:k.jsx("h3",{children:k.jsx("a",{href:i,children:o})})},o):k.jsxs("div",{className:"column",children:[k.jsx("h3",{children:o}),k.jsx(Ol,{items:a})]},o)});return k.jsxs("nav",{className:"footer",children:[k.jsxs("h2",{children:["ACCESS ",e]}),k.jsx("div",{className:"columns",children:r})]})},Iw=({items:t,isLoggedIn:e,loginUrl:n,logoutUrl:r,siteName:o,target:i})=>{if(e===void 0&&(e=document.cookie.split("; ").includes("SESSaccesscisso=1")),t===void 0){const a={...e?gw:mw};a.items=a.items.map(l=>({...l,href:l.name=="Login"&&n||l.name=="Log out"&&r||l.href})),t=[...Aw,a];let s=t.find(l=>(l.href||"").replace(/\/$/,"")==document.location.href.replace(/\/$/,""));o&&!s&&(s=t.find(l=>l.name==o)),s&&(s.classes+=" active")}return k.jsx($A,{classes:"universal",items:t,name:"ACCESS Menu",target:i})},Mw=({items:t,siteName:e,target:n})=>k.jsx($A,{classes:"site",items:t,name:`${e} Menu`,target:n});var eg="popstate";function tg(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function Ow(t={}){function e(r,o){let i=o.state?.masked,{pathname:a,search:s,hash:l}=i||r.location;return Cd("",{pathname:a,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,o){return typeof o=="string"?o:Sa(o)}return Fw(e,n,null,t)}function Ze(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function On(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function _w(){return Math.random().toString(36).substring(2,10)}function ng(t,e){return{usr:t.state,key:t.key,idx:e,masked:t.unstable_mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function Cd(t,e,n=null,r,o){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Yo(e):e,state:n,key:e&&e.key||r||_w(),unstable_mask:o}}function Sa({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Yo(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substring(r),t=t.substring(0,r)),t&&(e.pathname=t)}return e}function Fw(t,e,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",l=null,c=u();c==null&&(c=0,a.replaceState({...a.state,idx:c},""));function u(){return(a.state||{idx:null}).idx}function f(){s="POP";let y=u(),S=y==null?null:y-c;c=y,l&&l({action:s,location:w.location,delta:S})}function p(y,S){s="PUSH";let T=tg(y)?y:Cd(w.location,y,S);c=u()+1;let P=ng(T,c),E=w.createHref(T.unstable_mask||T);try{a.pushState(P,"",E)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;o.location.assign(E)}i&&l&&l({action:s,location:w.location,delta:1})}function m(y,S){s="REPLACE";let T=tg(y)?y:Cd(w.location,y,S);c=u();let P=ng(T,c),E=w.createHref(T.unstable_mask||T);a.replaceState(P,"",E),i&&l&&l({action:s,location:w.location,delta:0})}function v(y){return Rw(y)}let w={get action(){return s},get location(){return t(o,a)},listen(y){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(eg,f),l=y,()=>{o.removeEventListener(eg,f),l=null}},createHref(y){return e(o,y)},createURL:v,encodeLocation(y){let S=v(y);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:p,replace:m,go(y){return a.go(y)}};return w}function Rw(t,e=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ze(n,"No window.location.(origin|href) available to create URL");let r=typeof t=="string"?t:Sa(t);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function rg(t,e,n="/"){return Lw(t,e,n,!1)}function Lw(t,e,n,r){let o=typeof e=="string"?Yo(e):e,i=lr(o.pathname||"/",n);if(i==null)return null;let a=og(t);Nw(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=Xw(i);s=qw(a[l],c,r)}return s}function og(t,e=[],n=[],r="",o=!1){let i=(a,s,l=o,c)=>{let u={relativePath:c===void 0?a.path||"":c,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};if(u.relativePath.startsWith("/")){if(!u.relativePath.startsWith(r)&&l)return;Ze(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length)}let f=_n([r,u.relativePath]),p=n.concat(u);a.children&&a.children.length>0&&(Ze(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),og(a.children,e,p,f,l)),!(a.path==null&&!a.index)&&e.push({path:f,score:Vw(f,a.index),routesMeta:p})};return t.forEach((a,s)=>{if(a.path===""||!a.path?.includes("?"))i(a,s);else for(let l of ig(a.path))i(a,s,!0,l)}),e}function ig(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=ig(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>t.startsWith("/")&&l===""?"/":l)}function Nw(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Yw(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var zw=/^:[\w-]+$/,Qw=3,Hw=2,Uw=1,jw=10,Ww=-2,ag=t=>t==="*";function Vw(t,e){let n=t.split("/"),r=n.length;return n.some(ag)&&(r+=Ww),e&&(r+=Hw),n.filter(o=>!ag(o)).reduce((o,i)=>o+(zw.test(i)?Qw:i===""?Uw:jw),r)}function Yw(t,e){return t.length===e.length&&t.slice(0,-1).every((r,o)=>r===e[o])?t[t.length-1]-e[e.length-1]:0}function qw(t,e,n=!1){let{routesMeta:r}=t,o={},i="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],c=s===r.length-1,u=i==="/"?e:e.slice(i.length)||"/",f=Fl({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),p=l.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=Fl({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!f)return null;Object.assign(o,f.params),a.push({params:o,pathname:_n([i,f.pathname]),pathnameBase:$w(_n([i,f.pathnameBase])),route:p}),f.pathnameBase!=="/"&&(i=_n([i,f.pathnameBase]))}return a}function Fl(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Kw(t.path,t.caseSensitive,t.end),o=e.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((c,{paramName:u,isOptional:f},p)=>{if(u==="*"){let v=s[p]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const m=s[p];return f&&!m?c[u]=void 0:c[u]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:t}}function Kw(t,e=!1,n=!0){On(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let r=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l,c,u)=>{if(r.push({paramName:s,isOptional:l!=null}),l){let f=u.charAt(c+a.length);return f&&f!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(r.push({paramName:"*"}),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),r]}function Xw(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return On(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function lr(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}var Gw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Jw(t,e="/"){let{pathname:n,search:r="",hash:o=""}=typeof t=="string"?Yo(t):t,i;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?i=sg(n.substring(1),"/"):i=sg(n,e)):i=e,{pathname:i,search:ex(r),hash:tx(o)}}function sg(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ed(t,e,n,r){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Zw(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function lg(t){let e=Zw(t);return e.map((n,r)=>r===e.length-1?n.pathname:n.pathnameBase)}function Pd(t,e,n,r=!1){let o;typeof t=="string"?o=Yo(t):(o={...t},Ze(!o.pathname||!o.pathname.includes("?"),Ed("?","pathname","search",o)),Ze(!o.pathname||!o.pathname.includes("#"),Ed("#","pathname","hash",o)),Ze(!o.search||!o.search.includes("#"),Ed("#","search","hash",o)));let i=t===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=e.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?e[f]:"/"}let l=Jw(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}var _n=t=>t.join("/").replace(/\/\/+/g,"/"),$w=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),ex=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,tx=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,nx=class{constructor(t,e,n,r=!1){this.status=t,this.statusText=e||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function rx(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function ox(t){return t.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var cg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ug(t,e){let n=t;if(typeof n!="string"||!Gw.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(cg)try{let i=new URL(window.location.href),a=n.startsWith("//")?new URL(i.protocol+n):new URL(n),s=lr(a.pathname,e);a.origin===i.origin&&s!=null?n=s+a.search+a.hash:o=!0}catch{On(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var dg=["POST","PUT","PATCH","DELETE"];new Set(dg);var ix=["GET",...dg];new Set(ix);var qo=K.createContext(null);qo.displayName="DataRouter";var Rl=K.createContext(null);Rl.displayName="DataRouterState";var ax=K.createContext(!1),fg=K.createContext({isTransitioning:!1});fg.displayName="ViewTransition";var sx=K.createContext(new Map);sx.displayName="Fetchers";var lx=K.createContext(null);lx.displayName="Await";var un=K.createContext(null);un.displayName="Navigation";var Ca=K.createContext(null);Ca.displayName="Location";var Fn=K.createContext({outlet:null,matches:[],isDataRoute:!1});Fn.displayName="Route";var Dd=K.createContext(null);Dd.displayName="RouteError";var hg="REACT_ROUTER_ERROR",cx="REDIRECT",ux="ROUTE_ERROR_RESPONSE";function dx(t){if(t.startsWith(`${hg}:${cx}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function fx(t){if(t.startsWith(`${hg}:${ux}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new nx(e.status,e.statusText,e.data)}catch{}}function hx(t,{relative:e}={}){Ze(Ea(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=K.useContext(un),{hash:o,pathname:i,search:a}=Pa(t,{relative:e}),s=i;return n!=="/"&&(s=i==="/"?n:_n([n,i])),r.createHref({pathname:s,search:a,hash:o})}function Ea(){return K.useContext(Ca)!=null}function Er(){return Ze(Ea(),"useLocation() may be used only in the context of a <Router> component."),K.useContext(Ca).location}var pg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ag(t){K.useContext(un).static||K.useLayoutEffect(t)}function px(){let{isDataRoute:t}=K.useContext(Fn);return t?Dx():Ax()}function Ax(){Ze(Ea(),"useNavigate() may be used only in the context of a <Router> component.");let t=K.useContext(qo),{basename:e,navigator:n}=K.useContext(un),{matches:r}=K.useContext(Fn),{pathname:o}=Er(),i=JSON.stringify(lg(r)),a=K.useRef(!1);return Ag(()=>{a.current=!0}),K.useCallback((l,c={})=>{if(On(a.current,pg),!a.current)return;if(typeof l=="number"){n.go(l);return}let u=Pd(l,JSON.parse(i),o,c.relative==="path");t==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:_n([e,u.pathname])),(c.replace?n.replace:n.push)(u,c.state,c)},[e,n,i,o,t])}K.createContext(null);function gx(){let{matches:t}=K.useContext(Fn),e=t[t.length-1];return e?e.params:{}}function Pa(t,{relative:e}={}){let{matches:n}=K.useContext(Fn),{pathname:r}=Er(),o=JSON.stringify(lg(n));return K.useMemo(()=>Pd(t,JSON.parse(o),r,e==="path"),[t,o,r,e])}function mx(t,e){return gg(t,e)}function gg(t,e,n){Ze(Ea(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=K.useContext(un),{matches:o}=K.useContext(Fn),i=o[o.length-1],a=i?i.params:{},s=i?i.pathname:"/",l=i?i.pathnameBase:"/",c=i&&i.route;{let y=c&&c.path||"";vg(s,!c||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2
|
+
|
|
3
|
+
Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let u=Er(),f;if(e){let y=typeof e=="string"?Yo(e):e;Ze(l==="/"||y.pathname?.startsWith(l),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${y.pathname}" was given in the \`location\` prop.`),f=y}else f=u;let p=f.pathname||"/",m=p;if(l!=="/"){let y=l.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(y.length).join("/")}let v=rg(t,{pathname:m});On(c||v!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),On(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=xx(v&&v.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:_n([l,r.encodeLocation?r.encodeLocation(y.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:_n([l,r.encodeLocation?r.encodeLocation(y.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),o,n);return e&&w?K.createElement(Ca.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...f},navigationType:"POP"}},w):w}function bx(){let t=Px(),e=rx(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",t),a=K.createElement(K.Fragment,null,K.createElement("p",null,"💿 Hey developer 👋"),K.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",K.createElement("code",{style:i},"ErrorBoundary")," or"," ",K.createElement("code",{style:i},"errorElement")," prop on your route.")),K.createElement(K.Fragment,null,K.createElement("h2",null,"Unexpected Application Error!"),K.createElement("h3",{style:{fontStyle:"italic"}},e),n?K.createElement("pre",{style:o},n):null,a)}var vx=K.createElement(bx,null),mg=class extends K.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const n=fx(t.digest);n&&(t=n)}let e=t!==void 0?K.createElement(Fn.Provider,{value:this.props.routeContext},K.createElement(Dd.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?K.createElement(yx,{error:t},e):e}};mg.contextType=ax;var Td=new WeakMap;function yx({children:t,error:e}){let{basename:n}=K.useContext(un);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let r=dx(e.digest);if(r){let o=Td.get(e);if(o)throw o;let i=ug(r.location,n);if(cg&&!Td.get(e))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw Td.set(e,a),a}return K.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return t}function wx({routeContext:t,match:e,children:n}){let r=K.useContext(qo);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),K.createElement(Fn.Provider,{value:t},n)}function xx(t,e=[],n){let r=n?.state;if(t==null){if(!r)return null;if(r.errors)t=r.matches;else if(e.length===0&&!r.initialized&&r.matches.length>0)t=r.matches;else return null}let o=t,i=r?.errors;if(i!=null){let u=o.findIndex(f=>f.route.id&&i?.[f.route.id]!==void 0);Ze(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,u+1))}let a=!1,s=-1;if(n&&r){a=r.renderFallback;for(let u=0;u<o.length;u++){let f=o[u];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(s=u),f.route.id){let{loaderData:p,errors:m}=r,v=f.route.loader&&!p.hasOwnProperty(f.route.id)&&(!m||m[f.route.id]===void 0);if(f.route.lazy||v){n.isStatic&&(a=!0),s>=0?o=o.slice(0,s+1):o=[o[0]];break}}}}let l=n?.onError,c=r&&l?(u,f)=>{l(u,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:ox(r.matches),errorInfo:f})}:void 0;return o.reduceRight((u,f,p)=>{let m,v=!1,w=null,y=null;r&&(m=i&&f.route.id?i[f.route.id]:void 0,w=f.route.errorElement||vx,a&&(s<0&&p===0?(vg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,y=null):s===p&&(v=!0,y=f.route.hydrateFallbackElement||null)));let S=e.concat(o.slice(0,p+1)),T=()=>{let P;return m?P=w:v?P=y:f.route.Component?P=K.createElement(f.route.Component,null):f.route.element?P=f.route.element:P=u,K.createElement(wx,{match:f,routeContext:{outlet:u,matches:S,isDataRoute:r!=null},children:P})};return r&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?K.createElement(mg,{location:r.location,revalidation:r.revalidation,component:w,error:m,children:T(),routeContext:{outlet:null,matches:S,isDataRoute:!0},onError:c}):T()},null)}function Bd(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kx(t){let e=K.useContext(qo);return Ze(e,Bd(t)),e}function Sx(t){let e=K.useContext(Rl);return Ze(e,Bd(t)),e}function Cx(t){let e=K.useContext(Fn);return Ze(e,Bd(t)),e}function Id(t){let e=Cx(t),n=e.matches[e.matches.length-1];return Ze(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function Ex(){return Id("useRouteId")}function Px(){let t=K.useContext(Dd),e=Sx("useRouteError"),n=Id("useRouteError");return t!==void 0?t:e.errors?.[n]}function Dx(){let{router:t}=kx("useNavigate"),e=Id("useNavigate"),n=K.useRef(!1);return Ag(()=>{n.current=!0}),K.useCallback(async(o,i={})=>{On(n.current,pg),n.current&&(typeof o=="number"?await t.navigate(o):await t.navigate(o,{fromRouteId:e,...i}))},[t,e])}var bg={};function vg(t,e,n){!e&&!bg[t]&&(bg[t]=!0,On(!1,n))}K.memo(Tx);function Tx({routes:t,future:e,state:n,isStatic:r,onError:o}){return gg(t,void 0,{state:n,isStatic:r,onError:o})}function Md(t){Ze(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Bx({basename:t="/",children:e=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:a}){Ze(!Ea(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=t.replace(/^\/*/,"/"),l=K.useMemo(()=>({basename:s,navigator:o,static:i,unstable_useTransitions:a,future:{}}),[s,o,i,a]);typeof n=="string"&&(n=Yo(n));let{pathname:c="/",search:u="",hash:f="",state:p=null,key:m="default",unstable_mask:v}=n,w=K.useMemo(()=>{let y=lr(c,s);return y==null?null:{location:{pathname:y,search:u,hash:f,state:p,key:m,unstable_mask:v},navigationType:r}},[s,c,u,f,p,m,r,v]);return On(w!=null,`<Router basename="${s}"> is not able to match the URL "${c}${u}${f}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:K.createElement(un.Provider,{value:l},K.createElement(Ca.Provider,{children:e,value:w}))}function Ix({children:t,location:e}){return mx(Od(t),e)}function Od(t,e=[]){let n=[];return K.Children.forEach(t,(r,o)=>{if(!K.isValidElement(r))return;let i=[...e,o];if(r.type===K.Fragment){n.push.apply(n,Od(r.props.children,i));return}Ze(r.type===Md,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ze(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Od(r.props.children,i)),n.push(a)}),n}var Ll="get",Nl="application/x-www-form-urlencoded";function zl(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function Mx(t){return zl(t)&&t.tagName.toLowerCase()==="button"}function Ox(t){return zl(t)&&t.tagName.toLowerCase()==="form"}function _x(t){return zl(t)&&t.tagName.toLowerCase()==="input"}function Fx(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Rx(t,e){return t.button===0&&(!e||e==="_self")&&!Fx(t)}var Ql=null;function Lx(){if(Ql===null)try{new FormData(document.createElement("form"),0),Ql=!1}catch{Ql=!0}return Ql}var Nx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _d(t){return t!=null&&!Nx.has(t)?(On(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Nl}"`),null):t}function zx(t,e){let n,r,o,i,a;if(Ox(t)){let s=t.getAttribute("action");r=s?lr(s,e):null,n=t.getAttribute("method")||Ll,o=_d(t.getAttribute("enctype"))||Nl,i=new FormData(t)}else if(Mx(t)||_x(t)&&(t.type==="submit"||t.type==="image")){let s=t.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=t.getAttribute("formaction")||s.getAttribute("action");if(r=l?lr(l,e):null,n=t.getAttribute("formmethod")||s.getAttribute("method")||Ll,o=_d(t.getAttribute("formenctype"))||_d(s.getAttribute("enctype"))||Nl,i=new FormData(s,t),!Lx()){let{name:c,type:u,value:f}=t;if(u==="image"){let p=c?`${c}.`:"";i.append(`${p}x`,"0"),i.append(`${p}y`,"0")}else c&&i.append(c,f)}}else{if(zl(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ll,r=null,o=Nl,a=t}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Fd(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Qx(t,e,n,r){let o=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:e&&lr(o.pathname,e)==="/"?o.pathname=`${e.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function Hx(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ux(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function jx(t,e,n){let r=await Promise.all(t.map(async o=>{let i=e.routes[o.route.id];if(i){let a=await Hx(i,n);return a.links?a.links():[]}return[]}));return qx(r.flat(1).filter(Ux).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function yg(t,e,n,r,o,i){let a=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,s=(l,c)=>n[c].pathname!==l.pathname||n[c].route.path?.endsWith("*")&&n[c].params["*"]!==l.params["*"];return i==="assets"?e.filter((l,c)=>a(l,c)||s(l,c)):i==="data"?e.filter((l,c)=>{let u=r.routes[l.route.id];if(!u||!u.hasLoader)return!1;if(a(l,c)||s(l,c))return!0;if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(t,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function Wx(t,e,{includeHydrateFallback:n}={}){return Vx(t.map(r=>{let o=e.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function Vx(t){return[...new Set(t)]}function Yx(t){let e={},n=Object.keys(t).sort();for(let r of n)e[r]=t[r];return e}function qx(t,e){let n=new Set;return new Set(e),t.reduce((r,o)=>{let i=JSON.stringify(Yx(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function wg(){let t=K.useContext(qo);return Fd(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function Kx(){let t=K.useContext(Rl);return Fd(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Rd=K.createContext(void 0);Rd.displayName="FrameworkContext";function xg(){let t=K.useContext(Rd);return Fd(t,"You must render this element inside a <HydratedRouter> element"),t}function Xx(t,e){let n=K.useContext(Rd),[r,o]=K.useState(!1),[i,a]=K.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:f}=e,p=K.useRef(null);K.useEffect(()=>{if(t==="render"&&a(!0),t==="viewport"){let w=S=>{S.forEach(T=>{a(T.isIntersecting)})},y=new IntersectionObserver(w,{threshold:.5});return p.current&&y.observe(p.current),()=>{y.disconnect()}}},[t]),K.useEffect(()=>{if(r){let w=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(w)}}},[r]);let m=()=>{o(!0)},v=()=>{o(!1),a(!1)};return n?t!=="intent"?[i,p,{}]:[i,p,{onFocus:Da(s,m),onBlur:Da(l,v),onMouseEnter:Da(c,m),onMouseLeave:Da(u,v),onTouchStart:Da(f,m)}]:[!1,p,{}]}function Da(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function Gx({page:t,...e}){let{router:n}=wg(),r=K.useMemo(()=>rg(n.routes,t,n.basename),[n.routes,t,n.basename]);return r?K.createElement(Zx,{page:t,matches:r,...e}):null}function Jx(t){let{manifest:e,routeModules:n}=xg(),[r,o]=K.useState([]);return K.useEffect(()=>{let i=!1;return jx(t,e,n).then(a=>{i||o(a)}),()=>{i=!0}},[t,e,n]),r}function Zx({page:t,matches:e,...n}){let r=Er(),{future:o,manifest:i,routeModules:a}=xg(),{basename:s}=wg(),{loaderData:l,matches:c}=Kx(),u=K.useMemo(()=>yg(t,e,c,i,r,"data"),[t,e,c,i,r]),f=K.useMemo(()=>yg(t,e,c,i,r,"assets"),[t,e,c,i,r]),p=K.useMemo(()=>{if(t===r.pathname+r.search+r.hash)return[];let w=new Set,y=!1;if(e.forEach(T=>{let P=i.routes[T.route.id];!P||!P.hasLoader||(!u.some(E=>E.route.id===T.route.id)&&T.route.id in l&&a[T.route.id]?.shouldRevalidate||P.hasClientLoader?y=!0:w.add(T.route.id))}),w.size===0)return[];let S=Qx(t,s,o.unstable_trailingSlashAwareDataRequests,"data");return y&&w.size>0&&S.searchParams.set("_routes",e.filter(T=>w.has(T.route.id)).map(T=>T.route.id).join(",")),[S.pathname+S.search]},[s,o.unstable_trailingSlashAwareDataRequests,l,r,i,u,e,t,a]),m=K.useMemo(()=>Wx(f,i),[f,i]),v=Jx(f);return K.createElement(K.Fragment,null,p.map(w=>K.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),m.map(w=>K.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),v.map(({key:w,link:y})=>K.createElement("link",{key:w,nonce:n.nonce,...y,crossOrigin:y.crossOrigin??n.crossOrigin})))}function $x(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var e1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{e1&&(window.__reactRouterVersion="7.13.1")}catch{}function t1({basename:t,children:e,unstable_useTransitions:n,window:r}){let o=K.useRef();o.current==null&&(o.current=Ow({window:r,v5Compat:!0}));let i=o.current,[a,s]=K.useState({action:i.action,location:i.location}),l=K.useCallback(c=>{n===!1?s(c):K.startTransition(()=>s(c))},[n]);return K.useLayoutEffect(()=>i.listen(l),[i,l]),K.createElement(Bx,{basename:t,children:e,location:a.location,navigationType:a.action,navigator:i,unstable_useTransitions:n})}var kg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sg=K.forwardRef(function({onClick:e,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:a,unstable_mask:s,state:l,target:c,to:u,preventScrollReset:f,viewTransition:p,unstable_defaultShouldRevalidate:m,...v},w){let{basename:y,navigator:S,unstable_useTransitions:T}=K.useContext(un),P=typeof u=="string"&&kg.test(u),E=ug(u,y);u=E.to;let O=hx(u,{relative:o}),M=Er(),N=null;if(s){let q=Pd(s,[],M.unstable_mask?M.unstable_mask.pathname:"/",!0);y!=="/"&&(q.pathname=q.pathname==="/"?y:_n([y,q.pathname])),N=S.createHref(q)}let[H,z,Q]=Xx(r,v),U=i1(u,{replace:a,unstable_mask:s,state:l,target:c,preventScrollReset:f,relative:o,viewTransition:p,unstable_defaultShouldRevalidate:m,unstable_useTransitions:T});function j(q){e&&e(q),q.defaultPrevented||U(q)}let V=!(E.isExternal||i),X=K.createElement("a",{...v,...Q,href:(V?N:void 0)||E.absoluteURL||O,onClick:V?j:e,ref:$x(w,z),target:c,"data-discover":!P&&n==="render"?"true":void 0});return H&&!P?K.createElement(K.Fragment,null,X,K.createElement(Gx,{page:O})):X});Sg.displayName="Link";var n1=K.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:a,viewTransition:s,children:l,...c},u){let f=Pa(a,{relative:c.relative}),p=Er(),m=K.useContext(Rl),{navigator:v,basename:w}=K.useContext(un),y=m!=null&&u1(f)&&s===!0,S=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,T=p.pathname,P=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;n||(T=T.toLowerCase(),P=P?P.toLowerCase():null,S=S.toLowerCase()),P&&w&&(P=lr(P,w)||P);const E=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let O=T===S||!o&&T.startsWith(S)&&T.charAt(E)==="/",M=P!=null&&(P===S||!o&&P.startsWith(S)&&P.charAt(S.length)==="/"),N={isActive:O,isPending:M,isTransitioning:y},H=O?e:void 0,z;typeof r=="function"?z=r(N):z=[r,O?"active":null,M?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let Q=typeof i=="function"?i(N):i;return K.createElement(Sg,{...c,"aria-current":H,className:z,ref:u,style:Q,to:a,viewTransition:s},typeof l=="function"?l(N):l)});n1.displayName="NavLink";var r1=K.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:r,replace:o,state:i,method:a=Ll,action:s,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:p,...m},v)=>{let{unstable_useTransitions:w}=K.useContext(un),y=l1(),S=c1(s,{relative:c}),T=a.toLowerCase()==="get"?"get":"post",P=typeof s=="string"&&kg.test(s),E=O=>{if(l&&l(O),O.defaultPrevented)return;O.preventDefault();let M=O.nativeEvent.submitter,N=M?.getAttribute("formmethod")||a,H=()=>y(M||O.currentTarget,{fetcherKey:e,method:N,navigate:n,replace:o,state:i,relative:c,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:p});w&&n!==!1?K.startTransition(()=>H()):H()};return K.createElement("form",{ref:v,method:T,action:S,onSubmit:r?l:E,...m,"data-discover":!P&&t==="render"?"true":void 0})});r1.displayName="Form";function o1(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cg(t){let e=K.useContext(qo);return Ze(e,o1(t)),e}function i1(t,{target:e,replace:n,unstable_mask:r,state:o,preventScrollReset:i,relative:a,viewTransition:s,unstable_defaultShouldRevalidate:l,unstable_useTransitions:c}={}){let u=px(),f=Er(),p=Pa(t,{relative:a});return K.useCallback(m=>{if(Rx(m,e)){m.preventDefault();let v=n!==void 0?n:Sa(f)===Sa(p),w=()=>u(t,{replace:v,unstable_mask:r,state:o,preventScrollReset:i,relative:a,viewTransition:s,unstable_defaultShouldRevalidate:l});c?K.startTransition(()=>w()):w()}},[f,u,p,n,r,o,e,t,i,a,s,l,c])}var a1=0,s1=()=>`__${String(++a1)}__`;function l1(){let{router:t}=Cg("useSubmit"),{basename:e}=K.useContext(un),n=Ex(),r=t.fetch,o=t.navigate;return K.useCallback(async(i,a={})=>{let{action:s,method:l,encType:c,formData:u,body:f}=zx(i,e);if(a.navigate===!1){let p=a.fetcherKey||s1();await r(p,n,a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:f,formMethod:a.method||l,formEncType:a.encType||c,flushSync:a.flushSync})}else await o(a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:u,body:f,formMethod:a.method||l,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,e,n])}function c1(t,{relative:e}={}){let{basename:n}=K.useContext(un),r=K.useContext(Fn);Ze(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Pa(t||".",{relative:e})},a=Er();if(t==null){i.search=a.search;let s=new URLSearchParams(i.search),l=s.getAll("index");if(l.some(u=>u==="")){s.delete("index"),l.filter(f=>f).forEach(f=>s.append("index",f));let u=s.toString();i.search=u?`?${u}`:""}}return(!t||t===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:_n([n,i.pathname])),Sa(i)}function u1(t,{relative:e}={}){let n=K.useContext(fg);Ze(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Cg("useViewTransitionState"),o=Pa(t,{relative:e});if(!n.isTransitioning)return!1;let i=lr(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=lr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Fl(o.pathname,a)!=null||Fl(o.pathname,i)!=null}const d1=I.lazy(()=>Promise.resolve().then(()=>N8)),f1=I.lazy(()=>Promise.resolve().then(()=>V8));function h1({accessId:t,baseUri:e="/resources",isLoggedIn:n,qaBotApiKey:r,showTitle:o=!0,title:i="Resources"}){const[a,s]=I.useState(!1);return k.jsxs(I.Suspense,{children:[k.jsx(t1,{children:k.jsx(jA,{children:k.jsxs(Ix,{children:[k.jsx(Md,{path:e,element:k.jsx(f1,{baseUri:e,title:i,setBotOpen:s,showTitle:o})}),k.jsx(Md,{path:`${e}/:infoGroupId`,element:k.jsx(d1,{baseUri:e})})]})})}),k.jsx(WA,{accessId:t,apiKey:r,embedded:!1,isLoggedIn:n,onOpenChange:s,open:a,welcome:"Welcome to the ACCESS Q&A Bot!"})]})}const p1=({headings:t=[],idPrefix:e="",smoothScroll:n=!0})=>{const[r,o]=I.useState(-1);let i;const a=[];if(t.forEach(s=>{s.tagName=="H1"?i=s:s.tagName=="H2"&&(a.push(s),s.id||(s.id=e+s.textContent.replace(/[^A-Za-z0-9]+/g,"-").toLowerCase()))}),I.useEffect(()=>{a.length&&window.addEventListener("scroll",function(){const s=KA()+window.innerHeight*.1;let l=-1;a.forEach((c,u)=>{if(c.offsetTop<s)return l=u,!1}),o(l)})},[]),!!a.length)return k.jsxs("div",{className:"toc",children:[i&&k.jsx("h2",{children:i.textContent}),a.length>0&&k.jsx("ul",{children:a.map((s,l)=>k.jsx("li",{children:k.jsx("a",{href:`#${s.id}`,className:l==r?"active":"",onClick:c=>{n&&(c.preventDefault(),window.scrollTo({top:s.offsetTop,behavior:"smooth"}),history.pushState(null,null,`#${s.id}`))},children:s.textContent})}))})]})},cr=":host,:root{--contrast: #232323;--contrast-2: #3f3f3f;--contrast-3: #707070;--contrast-6: #999999;--contrast-7: #d9d9d9;--contrast-8: #dfdfdf;--contrast-9: #e5e5e5;--green-400: #288654;--red-400: #a70000;--orange-200: #f6d8ca;--orange-400: #f07537;--teal-050: #ecf9f8;--teal-100: #cee8e9;--teal-200: #b0dadb;--teal-400: #48c0b9;--teal-600: #107180;--teal-700: #1a5b6e;--yellow-200: #fce5ab;--yellow-400: #ffc42d;--color: white;--padding: 30px;--offset: 0px;--outline: white;color:var(--contrast)}:host,:host button,:root,:root button{font-family:Archivo,sans-serif}.container{margin:0 auto;padding:0 var(--padding);width:var(--width)}.visually-hidden{border:0!important;clip:rect(0,0,0,0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}@media(min-width:600px){:host,:root{--padding: calc((100% - var(--width)) / 2);--offset: 7px;--width: 540px}}@media(min-width:768px){:host,:root{--width: 712px}}@media(min-width:900px){:host,:root{--width: 840px}}@media(min-width:1024px){:host,:root{--width: 940px}}@media(min-width:1280px){:host,:root{--padding: 10px;--offset: 0px;--width: 1180px}}",A1='ul.breadcrumbs{--offset: calc((100vw - var(--width)) / 2);border-bottom:1px solid var(--contrast-7);box-sizing:border-box;font-size:14px;font-stretch:70%;font-weight:600;line-height:20px;list-style-type:none;margin:0;padding:0 30px;width:100vw}ul.breadcrumbs.top-border{border-top:1px solid var(--contrast-7)}ul.breadcrumbs.expand{margin-left:-30px;margin-right:-30px}ul.breadcrumbs li{display:inline-block;margin:0;padding:11px 0 6px;text-transform:uppercase;vertical-align:middle}ul.breadcrumbs li:not(.home):before{content:"/";margin:0 12px}ul.breadcrumbs li a{color:var(--teal-700);text-decoration:none}ul.breadcrumbs li:not(.home) a:active,ul.breadcrumbs li:not(.home) a:focus,ul.breadcrumbs li:not(.home) a:hover{text-decoration:underline}@media(min-width:600px){ul.breadcrumbs{padding-left:var(--offset);padding-right:var(--offset)}ul.breadcrumbs.expand{margin-left:calc(var(--offset) * -1);margin-right:calc(var(--offset) * -1)}}',g1=`:root{color:#232323;font-family:Archivo,sans-serif;font-size:16px}h1{font-size:36px;font-stretch:70%;font-weight:500;margin-top:60px}h2{font-size:22px;font-weight:800;margin-top:36px}h3{color:var(--teal-700);font-size:18px;font-weight:800}a{color:var(--contrast);font-weight:800;text-decoration:underline}a:active,a:focus,a:hover{color:var(--teal-600);text-decoration:none}ol,p,ul{font-size:1.125rem;line-height:1.875rem;margin:0 0 1.25rem}li{margin-bottom:.5rem}.btn{background-color:var(--teal-700);border:4px solid var(--teal-700);color:#fff;display:inline-block;font-family:Archivo,sans-serif;font-size:16px;font-weight:600;line-height:24px;padding:6px 12px;text-decoration:none;text-transform:uppercase}.secondary{background-color:var(--yellow-400);border-color:var(--yellow-400);color:var(--contrast)}.danger{background-color:var(--red-400);border-color:var(--red-400)}.lg{font-size:20px;line-height:30px;padding:8px 16px}.btn.active,.btn:active,.btn:focus,.btn:hover{background-color:#fff;border-color:var(--contrast);color:var(--contrast);cursor:pointer}.btn-clear,.btn-clear.active,.btn-clear:active,.btn-clear:focus,.btn-clear:hover{background-color:transparent;border-color:transparent;color:var(--contrast)}.btn:disabled{background-color:var(--contrast-8);border-color:var(--contrast-8);color:var(--contrast-3)}.btn .bi{vertical-align:middle}.btn+.btn{margin-left:10px}.table{border-top:1px solid var(--contrast);border-collapse:collapse;width:100%}.table td,.table th{border-bottom:1px solid var(--contrast);padding:16px}.table thead th{text-align:left}.table tbody th{text-align:right}input,select{border:1px solid var(--contrast-8);border-radius:0;color:var(--contrast);font-size:1rem;padding:6px 12px}select{appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/></svg>");background-position:right 12px center;background-repeat:no-repeat;padding:6px 36px 6px 12px}.intro{font-size:24px}`,m1=`:host{background-color:#fbfbfb}.container{color:var(--contrast)}a{color:var(--teal-600);font-weight:800;text-decoration:none}a:active,a:focus,a:hover{text-decoration:underline}.about{padding-top:25px}.awards{font-size:15px;line-height:21px;margin:0 0 20px}.disclaimer{font-size:12px;line-height:18px;margin:0 0 15px}.contact{font-size:16px;font-stretch:70%;text-transform:uppercase}.social{align-items:center;display:flex;flex-direction:row;justify-content:flex-start;list-style-type:none;margin:0;padding:20px 0 10px}.social li{margin:0 35px 0 0;padding:0}.social li:last-child{margin:-10px}.social a{background-size:contain;background-repeat:no-repeat;display:block;height:25px;text-indent:-999999px;width:25px}.bluesky{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' class='bi bi-bluesky' viewBox='0 0 16 16'><path d='M3.468 1.948C5.303 3.325 7.276 6.118 8 7.616c.725-1.498 2.698-4.29 4.532-5.668C13.855.955 16 .186 16 2.632c0 .489-.28 4.105-.444 4.692-.572 2.04-2.653 2.561-4.504 2.246 3.236.551 4.06 2.375 2.281 4.2-3.376 3.464-4.852-.87-5.23-1.98-.07-.204-.103-.3-.103-.218 0-.081-.033.014-.102.218-.379 1.11-1.855 5.444-5.231 1.98-1.778-1.825-.955-3.65 2.28-4.2-1.85.315-3.932-.205-4.503-2.246C.28 6.737 0 3.12 0 2.632 0 .186 2.145.955 3.468 1.948'/></svg>")}.youtube{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' viewBox='0 0 16 16'><path d='M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.01 2.01 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.01 2.01 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31 31 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.01 2.01 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A100 100 0 0 1 7.858 2zM6.4 5.209v4.818l4.157-2.408z'/></svg>")}.facebook{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' viewBox='0 0 16 16'><path d='M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951'/></svg>")}a.linkedin{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' viewBox='0 0 16 16'><path d='M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854zm4.943 12.248V6.169H2.542v7.225zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248S2.4 3.226 2.4 3.934c0 .694.521 1.248 1.327 1.248zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016l.016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225z'/></svg>")}.lower{border-top:1px solid var(--contrast-9);padding:10px 0 60px}.links{display:flex;flex-direction:row;flex-wrap:wrap;list-style-type:none;margin:20px 0 0;padding:0}.links li{padding:0 20px 10px 0}.links li:last-child{padding-right:0}.links a{font-size:12px;font-weight:600}.scroll-to-top{background-color:#00000080;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' stroke='white' stroke-width='1' viewBox='0 0 16 16'><path fill-rule='evenodd' d='M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z'/></svg>");background-position:center;background-repeat:no-repeat;background-size:13px;border:0 none transparent;bottom:30px;cursor:pointer;display:block;height:40px;opacity:0;position:fixed;right:30px;text-indent:-999999px;transition:opacity .25s ease-out;width:40px;z-index:100}.scroll-to-top.visible{opacity:1}.personas{box-sizing:border-box;font-size:15px;padding:20px 0}.personas p{margin:0}.personas ul{list-style-type:none;margin:5px 0;padding:0}.personas li{padding:3px 0}@media(min-width:1024px){.lower{align-items:start;display:flex;flex-direction:row;justify-content:space-between}.links{margin-top:0}}@media(min-width:900px){.upper{display:flex;flex-direction:row;justify-content:space-between}.upper>*{width:calc((var(--width) - 20px) / 2)}.about{padding:40px 0 30px}.awards{font-size:18px;line-height:24px}.personas{font-size:18px;padding:40px calc(((var(--width) - 140px) / 8) + 20px) 30px}}`,b1=".container{box-sizing:content-box;height:84px;padding-top:20px}@media(min-width:900px){.container{height:144px;padding-top:52px}}",Eg=`.logo{align-items:start;display:flex;flex-direction:row}.nsf-logo{height:49px}.access-logo{height:23px;margin-top:12px}.access,.nsf{display:block;text-decoration:none}.divider{border-right:2px solid #bbbbbb;height:40px;margin:4px 15px 0 12px;width:0}.name{color:var(--teal-700);display:block;font-size:17.5px;font-stretch:80%;font-weight:200;line-height:1;margin:3px 0 0;text-align:right}.name:before{content:"";display:inline-block;height:0;margin:0 5px 0 0;width:0}.name-allocations:before{border-bottom:12px solid var(--orange-400);border-left:12px solid transparent}.name-coordination-office:before{background-color:var(--teal-400);border-radius:6px;height:12px;margin:0 6px 0 0;width:12px}.name-metrics:before{background-image:url("data:image/svg+xml;utf8,<svg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg' width='12'><circle cx='12' cy='0' r='12' fill='%23008496' /></svg>");background-size:cover;height:12px;margin:0 2px 0 0;width:12px}.name-operations:before{border-top:12px solid var(--yellow-400);border-right:12px solid transparent}.name-support:before{background-color:var(--teal-700);height:12px;margin:0 6px 0 0;width:12px}.logo-footer .nsf-logo{height:40px}.logo-footer .divider{height:34px;margin:3px 11px 0 9px}.logo-footer .access-logo{margin-top:10px;height:21px;width:auto}@media(min-width:900px){.nsf-logo{height:82px}.divider{height:70px;margin:6px 23px 0 20px}.access-logo{height:auto;margin-top:22px;width:253px}.name{font-size:30px}.name-allocations:before{border-bottom:20px solid var(--orange-400);border-left:20px solid transparent}.name-metrics:before{height:20px;margin:0 4px 0 0;width:20px}.name-operations:before{border-top:20px solid var(--yellow-400);border-right:20px solid transparent}.name-coordination-office:before{border-radius:9.5px;height:19px;width:19px}.name-support:before{height:19px;margin:0 7px 0 0;width:19px}}`,Ld=`.menu{--icon-caret-down-dark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23232323' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");--icon-caret-down-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");--icon-caret-down-teal: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23107180' viewBox='0 0 16 16'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>")}.universal{--background: var(--teal-700);--border: rgba(19, 133, 151, .35)}.site{--background: var(--teal-600);--border: #157688}.site ul ul{--border: rgba(19, 133, 151, .35)}.menu ul,.menu li{list-style-type:none;margin:0;padding:0}.menu a{text-decoration:none}.item{background:transparent;border:0 none transparent;border-radius:0;box-sizing:border-box;cursor:pointer;display:block;text-align:left;width:100%}.item{font-size:14px;font-weight:600;line-height:21px;padding:13.5px var(--padding) 13.5px}.menu>ul>li>.item{font-weight:800}.item,.menu li:last-child li:last-child>.item{border-bottom:1px solid var(--border)}.menu li.highlight button.item,.menu li:last-child>.item,.menu>.collapsed{border-bottom:0 none transparent}.expanded{border-bottom-width:2px}.menu button.item{position:relative}.menu>button.item{font-weight:500;padding:13.5px var(--padding) 13.5px;text-transform:uppercase}.menu button.item:after{background-image:var(--icon-caret-down-light);background-repeat:no-repeat;background-size:18px;content:"";display:block;height:18px;right:calc(var(--padding) + var(--offset));position:absolute;top:15px;width:18px}.menu button.item.expanded:after{transform:rotate(180deg)}.menu .highlight button.item:after{background-image:var(--icon-caret-down-dark)}.menu button.item,.menu ul li{background-color:var(--background)}.menu button.item,.menu ul li a{color:var(--color)}.menu ul li li{background-color:#fff}.menu ul li li a{color:#138597}.icon>.item{background-position:calc(var(--padding) + var(--offset)) center;background-repeat:no-repeat;background-size:14px 14px;text-indent:-99999px}.icon-home>.item{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'><path d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5'/></svg>")}.icon-search>.item{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'><path d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/></svg>")}.track .item{text-transform:uppercase;padding-top:4px;padding-bottom:4px}.track:first-child .item{padding-top:17px}.track.grow .item{padding-bottom:21px}.track .item{border-bottom:0 none transparent}.highlight button.item{background-color:var(--yellow-400);color:var(--contrast)}.footer{background-color:var(--teal-700);padding:50px var(--padding) 36px;color:#fff}.footer h2{font-size:14px;font-weight:600;margin:0 auto 20px;text-transform:uppercase;width:var(--width)}.columns{margin:0 auto;width:var(--width)}.column{padding-bottom:14px}.footer a,.footer a:visited{color:#fff;text-decoration:none}.footer a:active,.footer a:focus,.footer a:hover{color:var(--teal-100);text-decoration:underline}.footer h3{font-size:14px;font-weight:800;margin:0}.footer ul{margin:0;padding:0}.footer li{font-size:14px;font-weight:600;list-style-type:none;padding:14px 0 0}@media(min-width:768px){.columns{display:flex;flex-direction:row;flex-wrap:wrap;padding:10px 0}.column{padding-bottom:40px;padding-right:20px;width:calc((var(--width) - 60px) / 4)}.column:nth-child(4),.column:last-child{padding-right:0}}@media(min-width:1280px){.site{--background: white;--color: var(--teal-600);--outline: var(--teal-700);--padding: 20px;border-bottom:1px solid #d9d9d9;border-top:3px solid var(--teal-700)}.site>ul{justify-content:end}.menu>button.item{display:none}.menu>ul{display:flex;flex-direction:row;margin:0 auto;width:calc(var(--width) + (2 * var(--padding)))}.item,.track .item,.track:first-child .item,.track.grow .item{border-bottom:0 none transparent;padding-top:12px;padding-bottom:12px}.site .item{font-size:16px}.grow{flex:1 0 auto}.universal{background-color:var(--teal-700)}.universal>ul>li:first-child{margin-left:-10px}.universal>ul>li:last-child{margin-right:-10px}.universal li button.item{--padding: 20px}.icon>.item{background-position:center center;width:56px}.menu button.item:after,.menu button.item.expanded:after,.menu .highlight button.item:after,.menu .highlight button.item.expanded:after{display:inline-block;margin-left:5px;position:static;vertical-align:middle}.menu button.item:after{background-image:var(--icon-caret-down-teal)}.universal button.item:after{background-image:var(--icon-caret-down-light)}.menu button.item.expanded:after,.menu button.item.item:active:after,.menu button.item.item:focus:after,.menu button.item.item:hover:after{background-image:var(--icon-caret-down-light)}.menu>ul>li{display:flex;flex-direction:row;justify-content:start;position:relative}.menu>ul>li.grow>.item{flex:0 1 0}.menu>ul>li.active>.item,.menu>ul>li>.expanded,.menu>ul>li>.item:active,.menu>ul>li>.item:focus,.menu>ul>li>.item:hover{background-color:var(--teal-600);color:#fff;outline:0 none transparent}.menu>ul>li>.item:focus-visible{outline:3px solid var(--outline);outline-offset:-3px;z-index:1000}.menu>ul ul{background-color:var(--teal-600);padding:10px 0;position:absolute;right:0;top:48px;z-index:9999}.menu>ul ul li{background-color:var(--teal-600)}.menu>ul ul .item{color:#fff;white-space:nowrap;padding:5px 20px}.menu>ul ul .item:active,.menu>ul ul .item:focus,.menu>ul ul .item:hover{color:#cee8e9;outline:0 none transparent;text-decoration:underline}.menu>ul ul .item:focus-visible{outline:3px solid white;outline-offset:-3px;z-index:1000}.menu>ul>li>.item{line-height:24px}}@media(min-width:1280px){.columns{flex-wrap:nowrap;padding:10px 0 0}.column{padding-bottom:72px;width:calc((var(--width) - 120px) / 7)}.column:nth-child(4){padding-right:20px}}`,v1='@import"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css";.glide{position:relative;width:100%;box-sizing:border-box}.glide *{box-sizing:inherit}.glide__track{overflow:hidden}.glide__slides{position:relative;width:100%;list-style:none;backface-visibility:hidden;transform-style:preserve-3d;touch-action:pan-Y;overflow:hidden;margin:0;padding:0;white-space:nowrap;display:flex;flex-wrap:nowrap;will-change:transform}.glide__slides--dragging{-webkit-user-select:none;user-select:none}.glide__slide{width:100%;height:100%;flex-shrink:0;white-space:normal;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}.glide__slide a{-webkit-user-select:none;user-select:none;-webkit-user-drag:none;-moz-user-select:none;-ms-user-select:none}.glide__arrows,.glide__bullets{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.glide--rtl{direction:rtl}.glide__arrow{position:absolute;display:block;top:50%;z-index:2;color:#fff;text-transform:uppercase;padding:9px 12px;background-color:transparent;border:2px solid rgba(255,255,255,.5);border-radius:4px;box-shadow:0 .25em .5em #0000001a;text-shadow:0 .25em .5em rgba(0,0,0,.1);opacity:1;cursor:pointer;transition:opacity .15s ease,border .3s ease-in-out;transform:translateY(-50%);line-height:1}.glide__arrow:focus{outline:none}.glide__arrow:hover{border-color:#fff}.glide__arrow--left{left:2em}.glide__arrow--right{right:2em}.glide__arrow--disabled{opacity:.33}.glide__bullets{position:absolute;z-index:2;bottom:2em;left:50%;display:inline-flex;list-style:none;transform:translate(-50%)}.glide__bullet{background-color:#ffffff80;width:9px;height:9px;padding:0;border-radius:50%;border:2px solid transparent;transition:all .3s ease-in-out;cursor:pointer;line-height:0;box-shadow:0 .25em .5em #0000001a;margin:0 .25em}.glide__bullet:focus{outline:none}.glide__bullet:hover,.glide__bullet:focus{border:2px solid #fff;background-color:#ffffff80}.glide__bullet--active{background-color:#fff}.glide--swipeable{cursor:grab;cursor:-moz-grab;cursor:-webkit-grab}.glide--dragging{cursor:grabbing;cursor:-moz-grabbing;cursor:-webkit-grabbing}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.accordion{margin:0 0 16px}.accordion-heading{margin:0}.accordion-heading button{background-color:var(--teal-050);border:0 none transparent;color:var(--teal-700);cursor:pointer;display:block;font-size:16px;font-weight:800;padding:16px 40px 16px 20px;position:relative;text-align:left;width:100%}.accordion-heading button .icon{position:absolute;right:20px;top:16px}.accordion-content{padding:16px 20px 0}.alert{align-items:center;background-color:var(--yellow-200);border-radius:10px;display:flex;flex-direction:row;margin-bottom:20px;padding:20px}.alert i{margin-right:20px}ul.breadcrumbs{--offset: calc((100vw - var(--width)) / 2);border-bottom:1px solid var(--contrast-7);box-sizing:border-box;font-size:14px;font-stretch:70%;font-weight:600;line-height:20px;list-style-type:none;margin:0;padding:0 30px;width:100vw}ul.breadcrumbs.top-border{border-top:1px solid var(--contrast-7)}ul.breadcrumbs.expand{margin-left:-30px;margin-right:-30px}ul.breadcrumbs li{display:inline-block;margin:0;padding:11px 0 6px;text-transform:uppercase;vertical-align:middle}ul.breadcrumbs li:not(.home):before{content:"/";margin:0 12px}ul.breadcrumbs li a{color:var(--teal-700);text-decoration:none}ul.breadcrumbs li:not(.home) a:active,ul.breadcrumbs li:not(.home) a:focus,ul.breadcrumbs li:not(.home) a:hover{text-decoration:underline}@media(min-width:600px){ul.breadcrumbs{padding-left:var(--offset);padding-right:var(--offset)}ul.breadcrumbs.expand{margin-left:calc(var(--offset) * -1);margin-right:calc(var(--offset) * -1)}}.carousel{margin-bottom:1rem;width:var(--width)}.slide-inner{background-color:var(--contrast-9);display:flex;flex-direction:column}.slide-image img{display:block;width:100%}.slide-text{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:20px}.slide-text h2{font-size:16px;line-height:1.1;margin:0 0 .25rem}.slide-text a{font-size:14px;line-height:1.1}.slide-text p{font-size:14px;line-height:1.2;margin-bottom:.5rem}.glide__arrow{align-items:center;background-color:var(--contrast-3);border:0 none transparent;border-radius:15px;display:flex;justify-content:center;height:30px;padding:8px;width:30px}.glide__arrow:active,.glide__arrow:hover{background-color:var(--teal-700)}.glide__arrow svg{fill:#fff}.glide__arrow--left{margin-left:-66px}.glide__arrow--right{margin-right:-66px}@media(min-width:768px){.slide-inner{flex-direction:row}.slide-image img{width:calc((var(--width) - 20px) / 2)}}@media(min-width:1024px){.slide-image img{width:calc((var(--width) - 40px) / 3)}}@media(min-width:1280px){.slide-text h2{font-size:18px}.slide-text a{font-size:16px}.slide-text p{font-size:16px;line-height:1.2;margin-bottom:.5rem}}.highlight{background-color:var(--yellow-200);padding:2px 0}.header-components{margin-bottom:2rem}.button-group .btn{display:block;margin:0 0 10px}.card{border:5px solid var(--contrast);padding:20px}@media(min-width:768px){.flex-header{align-items:center;display:flex;justify-content:space-between}.header-components{margin-bottom:0}.button-group{display:flex}.button-group .btn{display:flex;margin:0 10px 0 0}}@media(min-width:1024px){.cards{display:flex;flex-direction:row;flex-wrap:wrap;gap:20px}.card{flex:1 0 20%;margin:0}}.donut-chart svg path{cursor:pointer}.donut-chart .center-text{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;line-height:1.2}.donut-chart .center-text *{cursor:default;display:block;margin-bottom:.25rem;text-align:center}.donut-chart .center-text .percent{color:var(--contrast-2);font-size:.7rem}.donut-chart .top-items{list-style-type:none;margin:0;padding:0}.donut-chart .top-items li{align-items:center;display:flex;flex-direction:row;font-size:1rem;line-height:1.2;margin-bottom:5px}.donut-chart .symbol{border-radius:8px;display:inline-block;height:16px;margin-right:5px;vertical-align:text-top;width:16px}.expand-text{margin-bottom:1rem;position:relative}.expand-text.contracted{max-height:5.3rem;overflow:hidden}.expand-text button{background-color:#fff;border:0 none transparent;color:var(--teal-700);cursor:pointer;font-size:1rem;font-weight:700}.expand-text.contracted button{background:linear-gradient(to right,#fff0,#fff 50% 100%);position:absolute;right:0;text-align:right;bottom:0;width:12rem}.grid{border-top:1px solid var(--contrast);max-width:100%;margin-bottom:1rem;overflow:scroll;position:relative}.grid table{border-collapse:separate;border-spacing:0;border-top:0 none transparent;margin-bottom:0;position:relative}.grid th{position:sticky;top:0;z-index:10}.grid th,.grid td{background-color:#fff}.grid th:last-child,.grid td:last-child{border-right:0 none transparent}.grid th.important,.grid td.important{background-color:#f8f9fa}.grid th.input,.grid td.input{background-color:var(--teal-200)}.grid .edited td,.grid .edited select{background-color:#faf1d7}.grid .edited td.important,.grid .edited select.important{background-color:#fbeeca}.grid .disabled td,.grid .disabled select{background-color:#ddd}.grid .disabled td.important,.grid .disabled select.important{background-color:#ccc}.grid tbody tr:last-child th,.grid tbody tr:last-child td{border-bottom:0 none transparent}.icon{height:1em;margin-right:5px;vertical-align:text-bottom}.info-tip{background-color:transparent;border:0 none transparent}.tippy-box[data-theme~=access]{background-color:var(--teal-700);border-radius:0;color:#fff;font-weight:400;padding:5px}.tippy-box[data-theme~=access][data-placement^=top]>.tippy-arrow:before{border-top-color:var(--teal-700)}.tippy-box[data-theme~=access][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:var(--teal-700)}.tippy-box[data-theme~=access][data-placement^=left]>.tippy-arrow:before{border-left-color:var(--teal-700)}.tippy-box[data-theme~=access][data-placement^=right]>.tippy-arrow:before{border-right-color:var(--teal-700)}.mini-bar{flex:0 0 auto;position:relative;width:100px}.mini-bar .bar{background-color:#ddd;height:1em}.filters-outer{float:right;position:relative}.filters-inner{background-color:#fff;border:4px solid var(--contrast);padding:20px;position:absolute;right:0;top:41px;width:calc(var(--width) * .4)}.filters-inner h2{font-size:16px;margin:0 0 1rem}.filters-inner ul.tags{margin-bottom:1rem}.btn-filters{position:relative}.btn-filters .active-tag-count{background-color:var(--orange-400);border-radius:10px;color:#fff;display:block;font-size:12px;height:20px;line-height:20px;top:-10px;position:absolute;text-align:center;right:-10px;width:20px}.btn-filters.active{z-index:100}.btn-filters.active:after{background-color:#fff;bottom:-4px;content:"";display:block;height:4px;left:0;position:absolute;width:100%}.event:not(:last-child){margin-bottom:1.5rem}.event-icon,.event-icon:active,.event-icon:focus,.event-icon:hover{align-items:center;background-color:var(--teal-700);color:#fff;display:none;flex:0 0 auto;flex-direction:column;font-weight:800;justify-content:center;height:calc((var(--width) - 140px) / 8);text-decoration:none;width:calc((var(--width) - 140px) / 8)}.event-icon span{display:block}.event-icon span:nth-child(2){font-size:2rem}.event-metadata{margin-bottom:1rem}.event-metadata i:not(:first-child){margin-left:1rem}@media(min-width:768px){.event{display:flex;flex-direction:row}.event-icon,.event-icon:active,.event-icon:focus,.event-icon:hover{display:flex;margin-right:20px}.event h3{margin-top:0}}@media(min-width:900px){.event-icon span:nth-child(2){font-size:3rem}}.carousel-projects .glide__slide{font-size:16px}.carousel-projects h3{margin:0 0 .25rem}.carousel-projects .project-metadata{margin-bottom:.5rem}.carousel-projects .project-meta{display:inline-block;font-weight:700;line-height:1.1;margin-right:1rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.carousel-projects .project-meta .bi{vertical-align:middle}.metrics-overview strong{background-color:var(--yellow-200);font-size:1.2rem;padding:2px;white-space:nowrap}.metrics-overview .bi{vertical-align:middle}.metrics-overview .btn{font-size:1rem}.metrics-disclaimer{font-size:.9rem;line-height:1.2;margin:.5rem 0}.metrics-disclaimer .bi{vertical-align:middle}.resource-group{align-items:flex-start;clear:both;display:flex;flex-direction:column;margin-bottom:20px}.resource-group-image{--image-width: 100%;align-items:center;background-color:var(--contrast-9);border:1px solid var(--contrast);color:var(--contrast-8);display:flex;flex:0 0 auto;flex-direction:column;font-size:5rem;justify-content:center;margin:20px 0;min-height:calc(var(--image-width) / 3 * 2);position:relative;width:var(--image-width)}.resource-group-image:active,.resource-group-image:focus,.resource-group-image:hover{color:var(--contrast-8)}.resource-group-image>img{display:block;width:100%}.image-type-logo{display:flex;flex-direction:column;justify-content:center;min-height:120px}.image-type-logo>*{margin:10px;width:calc(100% - 20px)}.resource-group-text *:first-child{margin-top:0}.resource-group-detail{margin-bottom:70px;width:var(--width)}.resource-group-feature-image{margin-top:60px;width:100%}.resource-group-description:after{clear:both;content:"";display:block}@media(min-width:768px){.resource-group{flex-direction:row;margin-bottom:40px}.resource-group-image{--image-width: calc((var(--width) - 140px) / 4 + 20px);margin:0 20px 0 0}}@media(min-width:900px){.resource-group-feature-image{float:right;margin:0 0 0 20px;width:calc(((var(--width) - 140px) / 8) * 3 + 40px)}}#resource-navigation{display:flex;flex-direction:column;gap:10px}@media(min-width:1024px){#resource-navigation{flex-direction:row;gap:20px}}#resource-news{background-color:var(--teal-100);padding:20px}#resource-news h2{font-size:1.2rem;font-weight:200;margin:0 0 .5rem}#resource-news ul{list-style-type:none;margin:0;padding:0}#resource-news li{font-size:1rem;line-height:1.3;margin:0 0 .5rem;padding:0}@media(min-width:1024px){#resource-news{box-sizing:border-box;width:calc((var(--width) - 60px) / 4)}}ul.resource-pathways{display:flex;flex-direction:column;gap:10px;list-style-type:none;margin:0;padding:0;width:100%}ul.resource-pathways li{margin:0;width:100%}ul.resource-pathways li a{align-items:flex-start;border:5px solid transparent;box-sizing:border-box;display:flex;height:100%;flex-direction:row;justify-content:flex-start;line-height:1.3;padding:20px;text-decoration:none}ul.resource-pathways a>.bi{font-size:2rem;margin-bottom:1rem}ul.resource-pathways li a>.detail{display:flex;flex-direction:column;margin-left:20px}ul.resource-pathways .title{font-size:1.2rem}ul.resource-pathways .description{font-size:1rem;font-weight:400}ul.resource-pathways .login{font-size:.9rem;font-style:italic;font-weight:400;margin-top:.25rem}ul.resource-pathways .login .bi{vertical-align:middle}.resource-pathway-0{background-color:var(--yellow-400)}.resource-pathway-1{background-color:var(--teal-600)}.resource-pathway-1 a{color:#fff}.resource-pathway-2{background-color:var(--orange-400)}.resource-pathway-3{background-color:var(--teal-200)}ul.resource-pathways li a:active,ul.resource-pathways li a:focus,ul.resource-pathways li a:hover{background-color:#fff;border:5px solid var(--contrast);color:var(--contrast)}@media(min-width:1024px){ul.resource-pathways{flex-direction:row;gap:20px}ul.resource-pathways li{box-sizing:border-box;width:calc((var(--width) - 60px) / 4)}ul.resource-pathways li a{flex-direction:column}ul.resource-pathways li a>.detail{margin-left:0}}.scroll-text{position:relative}.scroll-text:after{background-color:red;background:linear-gradient(to bottom,#fff0,#fff 50% 100%);bottom:0;content:"";display:block;height:2rem;left:0;position:absolute;width:100%;z-index:99999}.scroll-text-inner{padding-bottom:2rem;overflow-y:scroll}.search{position:relative}.search input{padding-right:35px}.search .btn-clear{position:absolute;right:-5px;top:-6px}.section-navigation{border-bottom:1px solid var(--contrast-8);border-top:1px solid var(--contrast-8);display:flex;flex-direction:row;margin:20px 0}.section-navigation h2{flex:0 0 auto;font-size:1rem;font-weight:400;margin:20px 0}.section-navigation ul{display:flex;flex-direction:row;flex-wrap:wrap;margin:0;padding:10px 0}.section-navigation li{line-height:1;list-style-type:none;flex:0 0 auto;font-size:1rem;margin:10px 0 10px 20px;padding:0}ul.tags{margin:0;padding:0}li.tag{display:inline-block;list-style-type:none;margin:0 5px 5px 0;max-width:100%}.tag button{background-color:var(--teal-100);border:1px solid var(--teal-400);border-radius:8px;color:var(--contrast);cursor:pointer;display:inline-block;font-size:16px;font-weight:500;line-height:18px;max-width:100%;overflow:hidden;padding:3px 7px;text-align:left;text-decoration:none;text-overflow:ellipsis;text-wrap:nowrap}.tag button:hover{background-color:var(--teal-200);color:var(--contrast)}.tag button:disabled{background-color:var(--contrast-9);border-color:var(--contrast-6);color:var(--contrast-3)}.tag.active button{border-color:var(--orange-400);background-color:var(--orange-200)}',y1=".toc{background-color:var(--teal-600);color:#fff;padding:20px;position:sticky;top:50px}h2{font-size:16px;font-weight:800;margin:0 0 16px}ul{margin:0;padding:0 0 0 20px}li{line-height:1.125;list-style-type:none;margin:0;padding:9px 0}a{color:#fff;font-size:16px;font-weight:600;text-decoration:underline;text-decoration-color:transparent}a :active,a:focus,a:hover{color:var(--teal-100);text-decoration-color:var(--teal-100)}@media(min-width:768px){a.active{color:var(--teal-100)}}@media(min-width:900px){.toc{padding:32px}}",Pg='.rcb-chat-header-container{padding:12px;color:#fff;border-bottom:1px solid #ccc;display:flex;justify-content:space-between;max-height:55px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;width:30px;height:30px;border-radius:50%;margin-right:12px}.rcb-message-prompt-container.visible{position:sticky;bottom:0;margin:auto;display:flex;align-items:center;justify-content:center;opacity:1;animation:rcb-animation-pop-in .3s ease-in-out;pointer-events:auto}.rcb-message-prompt-container.hidden{opacity:0;height:0px;visibility:hidden;pointer-events:none}.rcb-message-prompt-text{padding:6px 12px;border-radius:20px;color:#adadad;font-size:12px;background-color:#fff;border:.5px solid #adadad;cursor:pointer;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{margin-top:8px;padding:12px 16px;border-radius:22px;min-height:20px;height:fit-content;width:fit-content;font-size:15px;overflow-wrap:anywhere;overflow:auto;white-space:pre-wrap;text-align:right;margin-right:16px}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;width:40px;height:40px;border-radius:50%;margin-top:9px}.rcb-message-user-avatar{margin-left:-10px;margin-right:6px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{margin-top:8px;padding:12px 16px;border-radius:22px;min-height:20px;height:fit-content;width:fit-content;font-size:15px;overflow-wrap:anywhere;overflow:auto;white-space:pre-wrap;text-align:left;margin-left:16px}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;width:40px;height:40px;border-radius:50%;margin-top:9px}.rcb-message-bot-avatar{margin-left:6px;margin-right:-10px}.rcb-typing-indicator{display:flex;align-items:center}.rcb-dot{width:8px;height:8px;border-radius:50%;background-color:#ccc;margin-right:4px;animation:rcb-animation-bot-typing 1s infinite}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{position:relative;height:100%;width:100%;padding-bottom:16px;overflow-x:hidden;overflow-y:scroll;touch-action:pan-y}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;padding-top:12px;margin-left:16px;flex-wrap:wrap;gap:10px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{display:flex;align-items:center;gap:5px;border-width:.5px;border-style:solid;border-radius:10px;min-height:30px;max-height:32px;width:80%;cursor:pointer;background-color:#fff;animation:rcb-animations-checkboxes-entry .5s ease-out;overflow:hidden}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{display:inline-flex;margin-left:10px;align-items:center;cursor:pointer}.rcb-checkbox-mark{width:20px;height:20px;background-color:#f2f2f2;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;transition:all .3s ease;margin-right:10px;cursor:pointer}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{text-align:center;display:inline-block;align-items:center;border-width:.5px;border-style:solid;border-radius:10px;font-size:24px;min-height:30px;max-height:32px;width:80%;cursor:pointer;background-color:#fff;animation:rcb-animations-checkboxes-entry .5s ease-out}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{padding-top:12px;margin-left:16px;max-width:70%;display:flex;flex-wrap:wrap;gap:10px}.rcb-options-offset{margin-left:50px!important}.rcb-options{display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;border-radius:20px;font-size:14px;border-width:.5px;border-style:solid;cursor:pointer;transition:background-color .3s ease;animation:rcb-animation-options-entry .5s ease-out;overflow:hidden}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{display:flex;justify-content:center;align-items:center;padding-top:10px;padding-bottom:5px;max-height:45px}.rcb-line-break-text{padding:6px 12px;color:#adadad;font-size:12px}.rcb-spinner-container{display:flex;justify-content:center;align-items:center;padding-top:10px;padding-bottom:5px;min-height:35px;max-height:45px}.rcb-spinner{width:22px;height:22px;border-radius:50%;border:4px solid #f3f3f3;animation:rcb-animation-spin 1s linear infinite}.rcb-chat-input{padding:8px 16px;border-top:1px solid #ccc;display:flex;align-items:center;background-color:#fff}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{flex:1;padding:8px;border:none;border-radius:4px;outline:none;font-size:16px;resize:none;height:auto;min-height:38px;overflow-y:scroll;font-family:inherit;background-color:#fff;color:#000;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar{background-color:transparent}.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:transparent}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:transparent}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{padding:12px 16px 8px 10px;border-top:1px solid #ccc;max-height:55px;display:flex;justify-content:space-between;align-items:flex-end;font-size:12px;background-color:#f2f2f2;color:#000}.rcb-chat-footer{display:flex;flex-direction:row}.rcb-toggle-button{display:flex;flex-direction:row;position:fixed;bottom:20px;right:20px;z-index:9999;width:75px;height:75px;border-radius:50%;border:none;cursor:pointer;box-shadow:0 2px 4px #0003}.rcb-toggle-button.rcb-button-hide{opacity:0;visibility:hidden;animation:rcb-animation-collapse .3s ease-in-out forwards}.rcb-toggle-button.rcb-button-show{opacity:1;visibility:visible;animation:rcb-animation-expand .3s ease-in-out forwards}.rcb-toggle-icon{display:flex;justify-content:center;align-items:center;width:100%;height:100%;background-position:center;background-size:cover;background-repeat:no-repeat;margin:auto;border-radius:inherit}.rcb-badge{position:absolute;top:-6px;right:-6px;border-radius:50%;background-color:red;color:#fff;height:25px;width:25px;display:flex;justify-content:center;align-items:center}.rcb-chat-tooltip{position:fixed;padding:16px;border-radius:20px;box-shadow:0 2px 6px #0003;white-space:nowrap;cursor:pointer;font-size:20px;transition:transform .3s ease;z-index:9999}.rcb-chat-tooltip-tail{content:"";position:absolute;top:50%;right:-10px;margin-top:-10px;border-width:10px 0 10px 10px;border-style:solid}.rcb-chat-tooltip.rcb-tooltip-hide{opacity:0;visibility:hidden;animation:rcb-animation-tooltip-out .5s ease-in-out}.rcb-chat-tooltip.rcb-tooltip-show{opacity:1;visibility:visible;animation:rcb-animation-tooltip-in .5s ease-in-out}.rcb-toast-prompt{padding:6px 12px;border-radius:5px;color:#7a7a7a;font-size:12px;text-align:center;background-color:#fff;border:.5px solid #7a7a7a;cursor:pointer;transition:color .3s ease,border-color .3s ease;z-index:9999;width:100%;margin-top:6px;animation:rcb-animation-pop-in .3s ease-in-out}.rcb-toast-prompt-container{position:absolute;left:50%;transform:translate(-50%);bottom:0;margin:auto;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;opacity:1;animation:popIn .3s ease-in-out;pointer-events:auto;margin-top:200}.rcb-media-display-image-container,.rcb-media-display-video-container{margin-top:8px;margin-right:16px;border-radius:22px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{width:100%;height:auto;border-radius:22px;object-fit:cover}.rcb-media-display-video{width:100%;height:auto;border-radius:22px;background-color:#000}.rcb-media-display-audio{margin-top:8px;margin-right:16px;width:100%;height:auto;border-radius:22px}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-enabled,.rcb-attach-button-disabled{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border-radius:6px;text-align:center}.rcb-attach-button-enabled input[type=file],.rcb-attach-button-disabled input[type=file]{position:absolute;width:100%;height:100%;display:none}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-attach-button-enabled:hover:after{width:130%;height:130%;opacity:1}.rcb-attach-icon-enabled,.rcb-attach-icon-disabled{display:inline-block;width:24px;height:24px;margin-top:2px;background-repeat:no-repeat;background-size:cover;transition:background-image .3s ease}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-enabled,.rcb-emoji-button-disabled{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border-radius:6px;text-align:center;cursor:pointer}.rcb-emoji-icon-enabled,.rcb-emoji-icon-disabled{position:relative;display:inline-block;background-size:cover;font-size:20px;width:24px;height:24px;margin-top:2px;background-repeat:no-repeat}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-emoji-button-enabled:hover:after{width:130%;height:130%;opacity:1}.rcb-emoji-button-popup{position:absolute;width:158px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:8px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;transform:translateY(calc(-100% - 30px))}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border:none;cursor:pointer;margin-left:5px}.rcb-audio-icon:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-audio-icon:hover:after{width:130%;height:130%;opacity:1}.rcb-close-chat-icon{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border:none;margin-left:5px;cursor:pointer}.rcb-close-chat-icon:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-close-chat-icon:hover:after{width:130%;height:130%;opacity:1}.rcb-notification-icon{position:relative;display:inline-block;background-size:cover;width:30px;height:30px;border:none;cursor:pointer;margin-left:5px}.rcb-notification-icon:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0;background-color:#0000001a;border-radius:50%;opacity:0;transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out}.rcb-notification-icon:hover:after{width:130%;height:130%;opacity:1}.rcb-voice-button-enabled,.rcb-voice-button-disabled{display:inline-flex;align-items:center;justify-content:center;text-transform:uppercase;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;height:32px;width:32px;margin-left:8px;transition:all .3s ease;background-color:#fff}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid rgb(61,0,0)}.rcb-voice-button-disabled{border:1px;border-style:solid;border-color:#0003}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{width:60%;height:60%;background-size:cover;object-fit:cover;background-size:contain;background-repeat:no-repeat;background-position:center}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{display:inline-flex;justify-content:center;text-transform:uppercase;border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;transition:background-color .3s ease;height:32px;width:51px;margin-left:8px}.rcb-send-icon{width:50%;height:50%;transform:translateY(20%);background-size:cover;object-fit:cover;background-size:contain;background-repeat:no-repeat;background-position:center}.rcb-view-history-container{display:flex;justify-content:center;align-items:center;padding-top:10px;padding-bottom:5px;min-height:35px;max-height:45px}.rcb-view-history-button{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border-radius:20px;color:#adadad;font-size:12px;background-color:#fff;border-color:#adadad;border-width:.5px;border-style:solid;max-width:60%;cursor:pointer;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{position:fixed;right:20px;bottom:20px;border-radius:10px;box-shadow:0 2px 4px #0003;background-color:#fff;transition:all .3s ease;overflow:hidden;display:flex;flex-direction:column;width:375px;height:550px}.rcb-window-embedded .rcb-chat-window{position:relative;opacity:1;visibility:visible;right:auto;bottom:auto}.rcb-window-open .rcb-chat-window{opacity:1;visibility:visible;animation:rcb-animation-expand .3s ease-in-out forwards}.rcb-window-close .rcb-chat-window{opacity:0;visibility:hidden;animation:rcb-animation-collapse .3s ease-in-out forwards}@keyframes rcb-animation-expand{0%{transform:translate(100%,100%) scale(0);opacity:0}to{transform:translate(0) scale(1);opacity:1}}@keyframes rcb-animation-collapse{0%{transform:translate(0) scale(1);opacity:1}to{transform:translate(100%,100%) scale(0);opacity:0}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{transform:translate(-100%,50%) scale(0);opacity:0}to{transform:translate(0) scale(1);opacity:1}}@keyframes rcb-animation-user-message-entry{0%{transform:translate(100%,50%) scale(0);opacity:0}to{transform:translate(0) scale(1);opacity:1}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{transform:scale(.8);opacity:0}70%{transform:scale(1.1);opacity:1}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{transform:translate(-100%);opacity:0}to{transform:translate(0);opacity:1}}@keyframes rcb-animation-options-entry{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}'+".rcb-chat-notification-badge,.rcb-notification-badge{display:none!important}.rcb-chat-window .rcb-bot-avatar{background-size:contain;border-radius:0;background-position:center;background-repeat:no-repeat}.rcb-toggle-icon{background-size:62%!important;background-position:calc(50% - 1px) calc(50% + 2px);background-repeat:no-repeat;background-color:transparent!important}.rcb-chat-button-icon{background-size:contain;background-position:center;background-repeat:no-repeat}.rcb-chat-window{width:550px!important;height:800px!important;max-height:80vh!important;max-width:100%}.rcb-chat-window .rcb-chat-header{display:flex;flex-direction:row;align-items:center;font-weight:700}.rcb-chat-footer-container{align-items:center!important;font-size:10px}.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}@media(max-width:768px){.rcb-chat-window{width:550px!important;max-width:calc(100vw - 40px)!important;max-height:calc(100vh - 100px)!important}}@media(max-width:480px){.rcb-chat-window{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:calc(100vh - 80px)!important;left:10px!important;right:10px!important;bottom:10px!important}.rcb-chat-footer-container{font-size:9px!important}}.rcb-options-container{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;margin:16px;padding:0}.rcb-options{border:1px solid #d0d0d0;background-color:#fff;border-radius:6px;padding:8px 12px;cursor:pointer;transition:all .2s ease;text-align:center;font-size:14px;font-weight:400;color:#107180;width:auto;flex:0 0 auto;box-sizing:border-box}.rcb-options:hover{background-color:#e8f4f8;border-color:#107180;transform:translateY(-1px);box-shadow:0 2px 4px #10718033}.rcb-options:active{background-color:#107180;border-color:#107180;color:#fff;transform:translateY(0)}.rcb-chat-header-container{font-size:14px}.rcb-options{border:1px solid #d0d0d0!important}.rcb-bot-message a,.rcb-chat-window .rcb-bot-message a:link,.rcb-chat-window .rcb-bot-message a:visited{color:#fff!important;text-decoration:underline!important}.rcb-bot-message a:hover{opacity:.85;text-decoration:underline!important}"+".rcb-chat-header-container span{font-size:16px!important;font-weight:600!important}",w1=({children:t})=>{const e=I.useRef(null),[n,r]=I.useState(null);return I.useEffect(()=>{if(e.current&&!n&&!e.current.shadowRoot){const o=e.current.attachShadow({mode:"open"}),i=document.createElement("div");o.appendChild(i),r(i)}},[n]),k.jsx("div",{ref:e,children:n?UA.createPortal(t,n):null})},ur=(t,e)=>n=>k.jsxs(w1,{children:[k.jsx(t,{...n}),e.map(r=>k.jsx("style",{children:r},r))]}),x1=ur(vd,[cr,A1]),k1=ur(Dw,[cr,m1,Eg]),S1=ur(Bw,[cr,Ld]),C1=ur(Tw,[cr,Eg,b1]),E1=ur(WA,[cr,Pg]),P1=ur(h1,[cr,g1,v1,Pg]),D1=ur(Mw,[cr,Ld]),T1=ur(p1,[cr,y1]),B1=ur(Iw,[cr,Ld]);var I1=UA;I1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;var to={},Ko={};var Dg;function M1(){return Dg||(Dg=1,(function(){var t=I,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(A){{for(var g=arguments.length,C=new Array(g>1?g-1:0),D=1;D<g;D++)C[D-1]=arguments[D];i("warn",A,C)}}function o(A){{for(var g=arguments.length,C=new Array(g>1?g-1:0),D=1;D<g;D++)C[D-1]=arguments[D];i("error",A,C)}}function i(A,g,C){{var D=n.ReactDebugCurrentFrame,d=D.getStackAddendum();d!==""&&(g+="%s",C=C.concat([d]));var h=C.map(function(b){return String(b)});h.unshift("Warning: "+g),Function.prototype.apply.call(console[A],console,h)}}function a(A){A()}function s(A,g){l(A,g)}function l(A,g){return A.push(g)}function c(A){A.push(null)}function u(A,g){A.destroy(g)}function f(A){{var g=typeof Symbol=="function"&&Symbol.toStringTag,C=g&&A[Symbol.toStringTag]||A.constructor.name||"Object";return C}}function p(A){try{return m(A),!1}catch{return!0}}function m(A){return""+A}function v(A,g){if(p(A))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",g,f(A)),m(A)}function w(A,g){if(p(A))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",g,f(A)),m(A)}function y(A){if(p(A))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",f(A)),m(A)}var S=Object.prototype.hasOwnProperty,T=0,P=1,E=2,O=3,M=4,N=5,H=6,z=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Q=z+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",U=new RegExp("^["+z+"]["+Q+"]*$"),j={},V={};function X(A){return S.call(V,A)?!0:S.call(j,A)?!1:U.test(A)?(V[A]=!0,!0):(j[A]=!0,o("Invalid attribute name: `%s`",A),!1)}function q(A,g,C,D){if(C!==null&&C.type===T)return!1;switch(typeof g){case"function":case"symbol":return!0;case"boolean":{if(C!==null)return!C.acceptsBooleans;var d=A.toLowerCase().slice(0,5);return d!=="data-"&&d!=="aria-"}default:return!1}}function te(A){return ee.hasOwnProperty(A)?ee[A]:null}function Z(A,g,C,D,d,h,b){this.acceptsBooleans=g===E||g===O||g===M,this.attributeName=D,this.attributeNamespace=d,this.mustUseProperty=C,this.propertyName=A,this.type=g,this.sanitizeURL=h,this.removeEmptyString=b}var ee={},F=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];F.forEach(function(A){ee[A]=new Z(A,T,!1,A,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(A){var g=A[0],C=A[1];ee[g]=new Z(g,P,!1,C,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(A){ee[A]=new Z(A,E,!1,A.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(A){ee[A]=new Z(A,E,!1,A,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(A){ee[A]=new Z(A,O,!1,A.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(A){ee[A]=new Z(A,O,!0,A,null,!1,!1)}),["capture","download"].forEach(function(A){ee[A]=new Z(A,M,!1,A,null,!1,!1)}),["cols","rows","size","span"].forEach(function(A){ee[A]=new Z(A,H,!1,A,null,!1,!1)}),["rowSpan","start"].forEach(function(A){ee[A]=new Z(A,N,!1,A.toLowerCase(),null,!1,!1)});var fe=/[\-\:]([a-z])/g,R=function(A){return A[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(A){var g=A.replace(fe,R);ee[g]=new Z(g,P,!1,A,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(A){var g=A.replace(fe,R);ee[g]=new Z(g,P,!1,A,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(A){var g=A.replace(fe,R);ee[g]=new Z(g,P,!1,A,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(A){ee[A]=new Z(A,P,!1,A.toLowerCase(),null,!1,!1)});var ce="xlinkHref";ee[ce]=new Z("xlinkHref",P,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(A){ee[A]=new Z(A,P,!1,A.toLowerCase(),null,!0,!0)});var ne={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function $(A,g){return A+g.charAt(0).toUpperCase()+g.substring(1)}var ie=["Webkit","ms","Moz","O"];Object.keys(ne).forEach(function(A){ie.forEach(function(g){ne[$(g,A)]=ne[A]})});var ae={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Ae(A,g){ae[g.type]||g.onChange||g.onInput||g.readOnly||g.disabled||g.value==null||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),g.onChange||g.readOnly||g.disabled||g.checked==null||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ye(A,g){if(A.indexOf("-")===-1)return typeof g.is=="string";switch(A){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ke={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Be={},Je=new RegExp("^(aria)-["+Q+"]*$"),Et=new RegExp("^(aria)[A-Z]["+Q+"]*$");function Ke(A,g){{if(S.call(Be,g)&&Be[g])return!0;if(Et.test(g)){var C="aria-"+g.slice(4).toLowerCase(),D=ke.hasOwnProperty(C)?C:null;if(D==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",g),Be[g]=!0,!0;if(g!==D)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",g,D),Be[g]=!0,!0}if(Je.test(g)){var d=g.toLowerCase(),h=ke.hasOwnProperty(d)?d:null;if(h==null)return Be[g]=!0,!1;if(g!==h)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",g,h),Be[g]=!0,!0}}return!0}function ut(A,g){{var C=[];for(var D in g){var d=Ke(A,D);d||C.push(D)}var h=C.map(function(b){return"`"+b+"`"}).join(", ");C.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",h,A):C.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",h,A)}}function wt(A,g){ye(A,g)||ut(A,g)}var rt=!1;function dt(A,g){{if(A!=="input"&&A!=="textarea"&&A!=="select")return;g!=null&&g.value===null&&!rt&&(rt=!0,A==="select"&&g.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",A):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",A))}}var _e={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},ot=function(){};{var Pe={},xt=/^on./,Wt=/^on[^A-Z]/,gt=new RegExp("^(aria)-["+Q+"]*$"),Vt=new RegExp("^(aria)[A-Z]["+Q+"]*$");ot=function(A,g,C,D){if(S.call(Pe,g)&&Pe[g])return!0;var d=g.toLowerCase();if(d==="onfocusin"||d==="onfocusout")return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Pe[g]=!0,!0;if(D!=null){var h=D.registrationNameDependencies,b=D.possibleRegistrationNames;if(h.hasOwnProperty(g))return!0;var x=b.hasOwnProperty(d)?b[d]:null;if(x!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",g,x),Pe[g]=!0,!0;if(xt.test(g))return o("Unknown event handler property `%s`. It will be ignored.",g),Pe[g]=!0,!0}else if(xt.test(g))return Wt.test(g)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",g),Pe[g]=!0,!0;if(gt.test(g)||Vt.test(g))return!0;if(d==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Pe[g]=!0,!0;if(d==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Pe[g]=!0,!0;if(d==="is"&&C!==null&&C!==void 0&&typeof C!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof C),Pe[g]=!0,!0;if(typeof C=="number"&&isNaN(C))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",g),Pe[g]=!0,!0;var B=te(g),_=B!==null&&B.type===T;if(_e.hasOwnProperty(d)){var L=_e[d];if(L!==g)return o("Invalid DOM property `%s`. Did you mean `%s`?",g,L),Pe[g]=!0,!0}else if(!_&&g!==d)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",g,d),Pe[g]=!0,!0;return typeof C=="boolean"&&q(g,C,B)?(C?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',C,g,g,C,g):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',C,g,g,C,g,g,g),Pe[g]=!0,!0):_?!0:q(g,C,B)?(Pe[g]=!0,!1):((C==="false"||C==="true")&&B!==null&&B.type===O&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",C,g,C==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',g,C),Pe[g]=!0),!0)}}var Pt=function(A,g,C){{var D=[];for(var d in g){var h=ot(A,d,g[d],C);h||D.push(d)}var b=D.map(function(x){return"`"+x+"`"}).join(", ");D.length===1?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",b,A):D.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",b,A)}};function Mt(A,g,C){ye(A,g)||Pt(A,g,C)}var Ot=function(){};{var He=/^(?:webkit|moz|o)[A-Z]/,G=/^-ms-/,ue=/-(.)/g,pe=/;\s*$/,we={},xe={},Y=!1,se=!1,he=function(A){return A.replace(ue,function(g,C){return C.toUpperCase()})},De=function(A){we.hasOwnProperty(A)&&we[A]||(we[A]=!0,o("Unsupported style property %s. Did you mean %s?",A,he(A.replace(G,"ms-"))))},Ee=function(A){we.hasOwnProperty(A)&&we[A]||(we[A]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",A,A.charAt(0).toUpperCase()+A.slice(1)))},Ie=function(A,g){xe.hasOwnProperty(g)&&xe[g]||(xe[g]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,A,g.replace(pe,"")))},Ue=function(A,g){Y||(Y=!0,o("`NaN` is an invalid value for the `%s` css style property.",A))},it=function(A,g){se||(se=!0,o("`Infinity` is an invalid value for the `%s` css style property.",A))};Ot=function(A,g){A.indexOf("-")>-1?De(A):He.test(A)?Ee(A):pe.test(g)&&Ie(A,g),typeof g=="number"&&(isNaN(g)?Ue(A,g):isFinite(g)||it(A,g))}}var yo=Ot,wn=/["'&<>]/;function wo(A){y(A);var g=""+A,C=wn.exec(g);if(!C)return g;var D,d="",h,b=0;for(h=C.index;h<g.length;h++){switch(g.charCodeAt(h)){case 34:D=""";break;case 38:D="&";break;case 39:D="'";break;case 60:D="<";break;case 62:D=">";break;default:continue}b!==h&&(d+=g.substring(b,h)),b=h+1,d+=D}return b!==h?d+g.substring(b,h):d}function at(A){return typeof A=="boolean"||typeof A=="number"?""+A:wo(A)}var Zn=/([A-Z])/g,ms=/^ms-/;function xo(A){return A.replace(Zn,"-$1").toLowerCase().replace(ms,"-ms-")}var jr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ru=!1;function np(A){!ru&&jr.test(A)&&(ru=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(A)))}var rp=Array.isArray;function tt(A){return rp(A)}var op="<script>";function ip(A,g,C,D,d){var h=A===void 0?"":A,b=op,x=[];return{bootstrapChunks:x,startInlineScript:b,placeholderPrefix:h+"P:",segmentPrefix:h+"S:",boundaryPrefix:h+"B:",idPrefix:h,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var wi=0,Wr=1,ko=2,xi=3,ki=4,yr=5,bs=6,vs=7;function Tn(A,g){return{insertionMode:A,selectedValue:g}}function ap(A,g,C){switch(g){case"select":return Tn(Wr,C.value!=null?C.value:C.defaultValue);case"svg":return Tn(ko,null);case"math":return Tn(xi,null);case"foreignObject":return Tn(Wr,null);case"table":return Tn(ki,null);case"thead":case"tbody":case"tfoot":return Tn(yr,null);case"colgroup":return Tn(vs,null);case"tr":return Tn(bs,null)}return A.insertionMode>=ki||A.insertionMode===wi?Tn(Wr,null):A}var ou=null;function sp(A){var g=A.nextSuspenseID++;return A.boundaryPrefix+g.toString(16)}function lp(A,g,C){var D=A.idPrefix,d=":"+D+"R"+g;return C>0&&(d+="H"+C.toString(32)),d+":"}function ys(A){return at(A)}var iu="<!-- -->";function So(A,g,C,D){return g===""?D:(D&&A.push(iu),A.push(ys(g)),!0)}function Co(A,g,C,D){C&&D&&A.push(iu)}var Vr=new Map;function Eo(A){var g=Vr.get(A);if(g!==void 0)return g;var C=at(xo(A));return Vr.set(A,C),C}var Si=' style="',Ci=":",ws=";";function Ei(A,g,C){if(typeof C!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var D=!0;for(var d in C)if(S.call(C,d)){var h=C[d];if(!(h==null||typeof h=="boolean"||h==="")){var b=void 0,x=void 0,B=d.indexOf("--")===0;B?(b=at(d),w(h,d),x=at((""+h).trim())):(yo(d,h),b=Eo(d),typeof h=="number"?h!==0&&!S.call(ne,d)?x=h+"px":x=""+h:(w(h,d),x=at((""+h).trim()))),D?(D=!1,A.push(Si,b,Ci,x)):A.push(ws,b,Ci,x)}}D||A.push(wr)}var At=" ",Yr='="',wr='"',au='=""';function _t(A,g,C,D){switch(C){case"style":{Ei(A,g,D);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(C.length>2&&(C[0]==="o"||C[0]==="O")&&(C[1]==="n"||C[1]==="N"))){var d=te(C);if(d!==null){switch(typeof D){case"function":case"symbol":return;case"boolean":if(!d.acceptsBooleans)return}var h=d.attributeName,b=h;switch(d.type){case O:D&&A.push(At,b,au);return;case M:D===!0?A.push(At,b,au):D===!1||A.push(At,b,Yr,at(D),wr);return;case N:isNaN(D)||A.push(At,b,Yr,at(D),wr);break;case H:!isNaN(D)&&D>=1&&A.push(At,b,Yr,at(D),wr);break;default:d.sanitizeURL&&(v(D,h),D=""+D,np(D)),A.push(At,b,Yr,at(D),wr)}}else if(X(C)){switch(typeof D){case"function":case"symbol":return;case"boolean":{var x=C.toLowerCase().slice(0,5);if(x!=="data-"&&x!=="aria-")return}}A.push(At,C,Yr,at(D),wr)}}}var $n=">",Pi="/>";function Po(A,g,C){if(g!=null){if(C!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof g!="object"||!("__html"in g))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var D=g.__html;D!=null&&(y(D),A.push(""+D))}}var xs=!1,ks=!1,Ss=!1,su=!1,lu=!1,Cs=!1,cu=!1;function Es(A,g){{var C=A[g];if(C!=null){var D=tt(C);A.multiple&&!D?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",g):!A.multiple&&D&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",g)}}}function er(A,g,C){Ae("select",g),Es(g,"value"),Es(g,"defaultValue"),g.value!==void 0&&g.defaultValue!==void 0&&!Ss&&(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ss=!0),A.push(sn("select"));var D=null,d=null;for(var h in g)if(S.call(g,h)){var b=g[h];if(b==null)continue;switch(h){case"children":D=b;break;case"dangerouslySetInnerHTML":d=b;break;case"defaultValue":case"value":break;default:_t(A,C,h,b);break}}return A.push($n),Po(A,d,D),D}function qr(A){var g="";return t.Children.forEach(A,function(C){C!=null&&(g+=C,!lu&&typeof C!="string"&&typeof C!="number"&&(lu=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),g}var Bn=' selected=""';function uu(A,g,C,D){var d=D.selectedValue;A.push(sn("option"));var h=null,b=null,x=null,B=null;for(var _ in g)if(S.call(g,_)){var L=g[_];if(L==null)continue;switch(_){case"children":h=L;break;case"selected":x=L,cu||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),cu=!0);break;case"dangerouslySetInnerHTML":B=L;break;case"value":b=L;default:_t(A,C,_,L);break}}if(d!=null){var W;if(b!==null?(v(b,"value"),W=""+b):(B!==null&&(Cs||(Cs=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),W=qr(h)),tt(d))for(var J=0;J<d.length;J++){v(d[J],"value");var oe=""+d[J];if(oe===W){A.push(Bn);break}}else v(d,"select.value"),""+d===W&&A.push(Bn)}else x&&A.push(Bn);return A.push($n),Po(A,B,h),h}function Ft(A,g,C){Ae("input",g),g.checked!==void 0&&g.defaultChecked!==void 0&&!ks&&(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",g.type),ks=!0),g.value!==void 0&&g.defaultValue!==void 0&&!xs&&(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",g.type),xs=!0),A.push(sn("input"));var D=null,d=null,h=null,b=null;for(var x in g)if(S.call(g,x)){var B=g[x];if(B==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":b=B;break;case"defaultValue":d=B;break;case"checked":h=B;break;case"value":D=B;break;default:_t(A,C,x,B);break}}return h!==null?_t(A,C,"checked",h):b!==null&&_t(A,C,"checked",b),D!==null?_t(A,C,"value",D):d!==null&&_t(A,C,"value",d),A.push(Pi),null}function tr(A,g,C){Ae("textarea",g),g.value!==void 0&&g.defaultValue!==void 0&&!su&&(o("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),su=!0),A.push(sn("textarea"));var D=null,d=null,h=null;for(var b in g)if(S.call(g,b)){var x=g[b];if(x==null)continue;switch(b){case"children":h=x;break;case"value":D=x;break;case"defaultValue":d=x;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:_t(A,C,b,x);break}}if(D===null&&d!==null&&(D=d),A.push($n),h!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),D!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(tt(h)){if(h.length>1)throw new Error("<textarea> can only have at most one child.");y(h[0]),D=""+h[0]}y(h),D=""+h}return typeof D=="string"&&D[0]===`
|
|
4
|
+
`&&A.push(Bi),D!==null&&(v(D,"value"),A.push(ys(""+D))),null}function du(A,g,C,D){A.push(sn(C));for(var d in g)if(S.call(g,d)){var h=g[d];if(h==null)continue;switch(d){case"children":case"dangerouslySetInnerHTML":throw new Error(C+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_t(A,D,d,h);break}}return A.push(Pi),null}function Di(A,g,C){A.push(sn("menuitem"));for(var D in g)if(S.call(g,D)){var d=g[D];if(d==null)continue;switch(D){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:_t(A,C,D,d);break}}return A.push($n),null}function fu(A,g,C){A.push(sn("title"));var D=null;for(var d in g)if(S.call(g,d)){var h=g[d];if(h==null)continue;switch(d){case"children":D=h;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:_t(A,C,d,h);break}}A.push($n);{var b=Array.isArray(D)&&D.length<2?D[0]||null:D;Array.isArray(D)&&D.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):b!=null&&b.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):b!=null&&typeof b!="string"&&typeof b!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return D}function Ti(A,g,C,D){A.push(sn(C));var d=null,h=null;for(var b in g)if(S.call(g,b)){var x=g[b];if(x==null)continue;switch(b){case"children":d=x;break;case"dangerouslySetInnerHTML":h=x;break;default:_t(A,D,b,x);break}}return A.push($n),Po(A,h,d),typeof d=="string"?(A.push(ys(d)),null):d}function hu(A,g,C,D){A.push(sn(C));var d=null,h=null;for(var b in g)if(S.call(g,b)){var x=g[b];if(x==null)continue;switch(b){case"children":d=x;break;case"dangerouslySetInnerHTML":h=x;break;case"style":Ei(A,D,x);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:X(b)&&typeof x!="function"&&typeof x!="symbol"&&A.push(At,b,Yr,at(x),wr);break}}return A.push($n),Po(A,h,d),d}var Bi=`
|
|
5
|
+
`;function pu(A,g,C,D){A.push(sn(C));var d=null,h=null;for(var b in g)if(S.call(g,b)){var x=g[b];if(x==null)continue;switch(b){case"children":d=x;break;case"dangerouslySetInnerHTML":h=x;break;default:_t(A,D,b,x);break}}if(A.push($n),h!=null){if(d!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof h!="object"||!("__html"in h))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var B=h.__html;B!=null&&(typeof B=="string"&&B.length>0&&B[0]===`
|
|
6
|
+
`?A.push(Bi,B):(y(B),A.push(""+B)))}return typeof d=="string"&&d[0]===`
|
|
7
|
+
`&&A.push(Bi),d}var Au=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ps=new Map;function sn(A){var g=Ps.get(A);if(g===void 0){if(!Au.test(A))throw new Error("Invalid tag: "+A);g="<"+A,Ps.set(A,g)}return g}var cp="<!DOCTYPE html>";function up(A,g,C,D,d){switch(wt(g,C),dt(g,C),Mt(g,C,null),!C.suppressContentEditableWarning&&C.contentEditable&&C.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),d.insertionMode!==ko&&d.insertionMode!==xi&&g.indexOf("-")===-1&&typeof C.is!="string"&&g.toLowerCase()!==g&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",g),g){case"select":return er(A,C,D);case"option":return uu(A,C,D,d);case"textarea":return tr(A,C,D);case"input":return Ft(A,C,D);case"menuitem":return Di(A,C,D);case"title":return fu(A,C,D);case"listing":case"pre":return pu(A,C,g,D);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return du(A,C,g,D);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Ti(A,C,g,D);case"html":return d.insertionMode===wi&&A.push(cp),Ti(A,C,g,D);default:return g.indexOf("-")===-1&&typeof C.is!="string"?Ti(A,C,g,D):hu(A,C,g,D)}}var Ds="</",dp=">";function fp(A,g,C){switch(g){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:A.push(Ds,g,dp)}}function hp(A,g){for(var C=g.bootstrapChunks,D=0;D<C.length-1;D++)s(A,C[D]);return D<C.length?l(A,C[D]):!0}var pp='<template id="',Ap='"></template>';function gp(A,g,C){s(A,pp),s(A,g.placeholderPrefix);var D=C.toString(16);return s(A,D),l(A,Ap)}var Ts="<!--$-->",mp='<!--$?--><template id="',Bs='"></template>',bp="<!--$!-->",Is="<!--/$-->",gu="<template",Yt='"',vp=' data-dgst="',yp=' data-msg="',wp=' data-stck="',xp="></template>";function kp(A,g){return l(A,Ts)}function mu(A,g,C){if(s(A,mp),C===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return s(A,C),l(A,Bs)}function Sp(A,g,C,D,d){var h;return h=l(A,bp),s(A,gu),C&&(s(A,vp),s(A,at(C)),s(A,Yt)),D&&(s(A,yp),s(A,at(D)),s(A,Yt)),d&&(s(A,wp),s(A,at(d)),s(A,Yt)),h=l(A,xp),h}function Cp(A,g){return l(A,Is)}function bu(A,g){return l(A,Is)}function Ep(A,g){return l(A,Is)}var Pp='<div hidden id="',Dp='">',Tp="</div>",Ms='<svg aria-hidden="true" style="display:none" id="',Bp='">',Os="</svg>",Ip='<math aria-hidden="true" style="display:none" id="',Mp='">',Op="</math>",_p='<table hidden id="',Fp='">',vu="</table>",Rp='<table hidden><tbody id="',Lp='">',yu="</tbody></table>",Np='<table hidden><tr id="',zp='">',Qp="</tr></table>",Hp='<table hidden><colgroup id="',Up='">',jp="</colgroup></table>";function Wp(A,g,C,D){switch(C.insertionMode){case wi:case Wr:return s(A,Pp),s(A,g.segmentPrefix),s(A,D.toString(16)),l(A,Dp);case ko:return s(A,Ms),s(A,g.segmentPrefix),s(A,D.toString(16)),l(A,Bp);case xi:return s(A,Ip),s(A,g.segmentPrefix),s(A,D.toString(16)),l(A,Mp);case ki:return s(A,_p),s(A,g.segmentPrefix),s(A,D.toString(16)),l(A,Fp);case yr:return s(A,Rp),s(A,g.segmentPrefix),s(A,D.toString(16)),l(A,Lp);case bs:return s(A,Np),s(A,g.segmentPrefix),s(A,D.toString(16)),l(A,zp);case vs:return s(A,Hp),s(A,g.segmentPrefix),s(A,D.toString(16)),l(A,Up);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Vp(A,g){switch(g.insertionMode){case wi:case Wr:return l(A,Tp);case ko:return l(A,Os);case xi:return l(A,Op);case ki:return l(A,vu);case yr:return l(A,yu);case bs:return l(A,Qp);case vs:return l(A,jp);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var Yp="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",qp='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',Kp='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',Xp=Yp+';$RS("',Gp='$RS("',Jp='","',Zp='")<\/script>';function $p(A,g,C){s(A,g.startInlineScript),g.sentCompleteSegmentFunction?s(A,Gp):(g.sentCompleteSegmentFunction=!0,s(A,Xp)),s(A,g.segmentPrefix);var D=C.toString(16);return s(A,D),s(A,Jp),s(A,g.placeholderPrefix),s(A,D),l(A,Zp)}var eA=qp+';$RC("',tA='$RC("',nA='","',rA='")<\/script>';function oA(A,g,C,D){if(s(A,g.startInlineScript),g.sentCompleteBoundaryFunction?s(A,tA):(g.sentCompleteBoundaryFunction=!0,s(A,eA)),C===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var d=D.toString(16);return s(A,C),s(A,nA),s(A,g.segmentPrefix),s(A,d),l(A,rA)}var iA=Kp+';$RX("',aA='$RX("',sA='"',lA=")<\/script>",_s=",";function cA(A,g,C,D,d,h){if(s(A,g.startInlineScript),g.sentClientRenderFunction?s(A,aA):(g.sentClientRenderFunction=!0,s(A,iA)),C===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return s(A,C),s(A,sA),(D||d||h)&&(s(A,_s),s(A,Fs(D||""))),(d||h)&&(s(A,_s),s(A,Fs(d||""))),h&&(s(A,_s),s(A,Fs(h))),l(A,lA)}var uA=/[<\u2028\u2029]/g;function Fs(A){var g=JSON.stringify(A);return g.replace(uA,function(C){switch(C){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function dA(A,g){var C=ip(g);return{bootstrapChunks:C.bootstrapChunks,startInlineScript:C.startInlineScript,placeholderPrefix:C.placeholderPrefix,segmentPrefix:C.segmentPrefix,boundaryPrefix:C.boundaryPrefix,idPrefix:C.idPrefix,nextSuspenseID:C.nextSuspenseID,sentCompleteSegmentFunction:C.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:C.sentCompleteBoundaryFunction,sentClientRenderFunction:C.sentClientRenderFunction,generateStaticMarkup:A}}function fA(){return{insertionMode:Wr,selectedValue:null}}function wu(A,g,C,D){return C.generateStaticMarkup?(A.push(at(g)),!1):So(A,g,C,D)}function xu(A,g,C,D){if(!g.generateStaticMarkup)return Co(A,g,C,D)}function hA(A,g){return g.generateStaticMarkup?!0:kp(A)}function pA(A,g,C,D,d){return g.generateStaticMarkup?!0:Sp(A,g,C,D,d)}function AA(A,g){return g.generateStaticMarkup?!0:Cp(A)}function gA(A,g){return g.generateStaticMarkup?!0:Ep(A)}var qt=Object.assign,mA=Symbol.for("react.element"),ku=Symbol.for("react.portal"),Su=Symbol.for("react.fragment"),Ii=Symbol.for("react.strict_mode"),Cu=Symbol.for("react.profiler"),Rs=Symbol.for("react.provider"),Do=Symbol.for("react.context"),Dt=Symbol.for("react.forward_ref"),Ls=Symbol.for("react.suspense"),Mi=Symbol.for("react.suspense_list"),Oi=Symbol.for("react.memo"),To=Symbol.for("react.lazy"),Eu=Symbol.for("react.scope"),Ns=Symbol.for("react.debug_trace_mode"),zs=Symbol.for("react.legacy_hidden"),Qs=Symbol.for("react.default_value"),_i=Symbol.iterator,Hs="@@iterator";function Us(A){if(A===null||typeof A!="object")return null;var g=_i&&A[_i]||A[Hs];return typeof g=="function"?g:null}function Fi(A,g,C){var D=A.displayName;if(D)return D;var d=g.displayName||g.name||"";return d!==""?C+"("+d+")":C}function Pu(A){return A.displayName||"Context"}function Xe(A){if(A==null)return null;if(typeof A.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof A=="function")return A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case Su:return"Fragment";case ku:return"Portal";case Cu:return"Profiler";case Ii:return"StrictMode";case Ls:return"Suspense";case Mi:return"SuspenseList"}if(typeof A=="object")switch(A.$$typeof){case Do:var g=A;return Pu(g)+".Consumer";case Rs:var C=A;return Pu(C._context)+".Provider";case Dt:return Fi(A,A.render,"ForwardRef");case Oi:var D=A.displayName||null;return D!==null?D:Xe(A.type)||"Memo";case To:{var d=A,h=d._payload,b=d._init;try{return Xe(b(h))}catch{return null}}}return null}var Bo=0,Du,js,Tu,Bu,Iu,Ws,Ve;function Kr(){}Kr.__reactDisabledLog=!0;function Mu(){{if(Bo===0){Du=console.log,js=console.info,Tu=console.warn,Bu=console.error,Iu=console.group,Ws=console.groupCollapsed,Ve=console.groupEnd;var A={configurable:!0,enumerable:!0,value:Kr,writable:!0};Object.defineProperties(console,{info:A,log:A,warn:A,error:A,group:A,groupCollapsed:A,groupEnd:A})}Bo++}}function Ou(){{if(Bo--,Bo===0){var A={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:qt({},A,{value:Du}),info:qt({},A,{value:js}),warn:qt({},A,{value:Tu}),error:qt({},A,{value:Bu}),group:qt({},A,{value:Iu}),groupCollapsed:qt({},A,{value:Ws}),groupEnd:qt({},A,{value:Ve})})}Bo<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ri=n.ReactCurrentDispatcher,Li;function Xr(A,g,C){{if(Li===void 0)try{throw Error()}catch(d){var D=d.stack.trim().match(/\n( *(at )?)/);Li=D&&D[1]||""}return`
|
|
8
|
+
`+Li+A}}var Ni=!1,Io;{var _u=typeof WeakMap=="function"?WeakMap:Map;Io=new _u}function Vs(A,g){if(!A||Ni)return"";{var C=Io.get(A);if(C!==void 0)return C}var D;Ni=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var h;h=Ri.current,Ri.current=null,Mu();try{if(g){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(le){D=le}Reflect.construct(A,[],b)}else{try{b.call()}catch(le){D=le}A.call(b.prototype)}}else{try{throw Error()}catch(le){D=le}A()}}catch(le){if(le&&D&&typeof le.stack=="string"){for(var x=le.stack.split(`
|
|
9
|
+
`),B=D.stack.split(`
|
|
10
|
+
`),_=x.length-1,L=B.length-1;_>=1&&L>=0&&x[_]!==B[L];)L--;for(;_>=1&&L>=0;_--,L--)if(x[_]!==B[L]){if(_!==1||L!==1)do if(_--,L--,L<0||x[_]!==B[L]){var W=`
|
|
11
|
+
`+x[_].replace(" at new "," at ");return A.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",A.displayName)),typeof A=="function"&&Io.set(A,W),W}while(_>=1&&L>=0);break}}}finally{Ni=!1,Ri.current=h,Ou(),Error.prepareStackTrace=d}var J=A?A.displayName||A.name:"",oe=J?Xr(J):"";return typeof A=="function"&&Io.set(A,oe),oe}function bA(A,g,C){return Vs(A,!0)}function zi(A,g,C){return Vs(A,!1)}function Ys(A){var g=A.prototype;return!!(g&&g.isReactComponent)}function xr(A,g,C){if(A==null)return"";if(typeof A=="function")return Vs(A,Ys(A));if(typeof A=="string")return Xr(A);switch(A){case Ls:return Xr("Suspense");case Mi:return Xr("SuspenseList")}if(typeof A=="object")switch(A.$$typeof){case Dt:return zi(A.render);case Oi:return xr(A.type,g,C);case To:{var D=A,d=D._payload,h=D._init;try{return xr(h(d),g,C)}catch{}}}return""}var Qi={},Mo=n.ReactDebugCurrentFrame;function Hi(A){if(A){var g=A._owner,C=xr(A.type,A._source,g?g.type:null);Mo.setExtraStackFrame(C)}else Mo.setExtraStackFrame(null)}function Ui(A,g,C,D,d){{var h=Function.call.bind(S);for(var b in A)if(h(A,b)){var x=void 0;try{if(typeof A[b]!="function"){var B=Error((D||"React class")+": "+C+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof A[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw B.name="Invariant Violation",B}x=A[b](g,b,D,C,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(_){x=_}x&&!(x instanceof Error)&&(Hi(d),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",D||"React class",C,b,typeof x),Hi(null)),x instanceof Error&&!(x.message in Qi)&&(Qi[x.message]=!0,Hi(d),o("Failed %s type: %s",C,x.message),Hi(null))}}}var qs;qs={};var Oo={};Object.freeze(Oo);function Fu(A,g){{var C=A.contextTypes;if(!C)return Oo;var D={};for(var d in C)D[d]=g[d];{var h=Xe(A)||"Unknown";Ui(C,D,"context",h)}return D}}function Ks(A,g,C,D){{if(typeof A.getChildContext!="function"){{var d=Xe(g)||"Unknown";qs[d]||(qs[d]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",d,d))}return C}var h=A.getChildContext();for(var b in h)if(!(b in D))throw new Error((Xe(g)||"Unknown")+'.getChildContext(): key "'+b+'" is not defined in childContextTypes.');{var x=Xe(g)||"Unknown";Ui(D,h,"child context",x)}return qt({},C,h)}}var Gr;Gr={};var Ru=null,xn=null;function ji(A){A.context._currentValue2=A.parentValue}function _o(A){A.context._currentValue2=A.value}function kr(A,g){if(A!==g){ji(A);var C=A.parent,D=g.parent;if(C===null){if(D!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(D===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");kr(C,D)}_o(g)}}function Xs(A){ji(A);var g=A.parent;g!==null&&Xs(g)}function Lu(A){var g=A.parent;g!==null&&Lu(g),_o(A)}function Jr(A,g){ji(A);var C=A.parent;if(C===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");C.depth===g.depth?kr(C,g):Jr(C,g)}function Nu(A,g){var C=g.parent;if(C===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");A.depth===C.depth?kr(A,C):Nu(A,C),_o(g)}function kn(A){var g=xn,C=A;g!==C&&(g===null?Lu(C):C===null?Xs(g):g.depth===C.depth?kr(g,C):g.depth>C.depth?Jr(g,C):Nu(g,C),xn=C)}function Gs(A,g){var C;C=A._currentValue2,A._currentValue2=g,A._currentRenderer2!==void 0&&A._currentRenderer2!==null&&A._currentRenderer2!==Gr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),A._currentRenderer2=Gr;var D=xn,d={parent:D,depth:D===null?0:D.depth+1,context:A,parentValue:C,value:g};return xn=d,d}function Js(A){var g=xn;if(g===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");g.context!==A&&o("The parent context is not the expected context. This is probably a bug in React.");{var C=g.parentValue;C===Qs?g.context._currentValue2=g.context._defaultValue:g.context._currentValue2=C,A._currentRenderer2!==void 0&&A._currentRenderer2!==null&&A._currentRenderer2!==Gr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),A._currentRenderer2=Gr}return xn=g.parent}function Wi(){return xn}function Zr(A){var g=A._currentValue2;return g}function Vi(A){return A._reactInternals}function zu(A,g){A._reactInternals=g}var Zs={},Fo={},$s,el,tl,Sr,Yi,qi,Ki,Xi,Ro;{$s=new Set,el=new Set,tl=new Set,Ki=new Set,Sr=new Set,Xi=new Set,Ro=new Set;var Gi=new Set;qi=function(A,g){if(!(A===null||typeof A=="function")){var C=g+"_"+A;Gi.has(C)||(Gi.add(C),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",g,A))}},Yi=function(A,g){if(g===void 0){var C=Xe(A)||"Component";Sr.has(C)||(Sr.add(C),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",C))}}}function Ji(A,g){{var C=A.constructor,D=C&&Xe(C)||"ReactClass",d=D+"."+g;if(Zs[d])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
12
|
+
|
|
13
|
+
Please check the code for the %s component.`,g,g,D),Zs[d]=!0}}var Zi={isMounted:function(A){return!1},enqueueSetState:function(A,g,C){var D=Vi(A);D.queue===null?Ji(A,"setState"):(D.queue.push(g),C!=null&&qi(C,"setState"))},enqueueReplaceState:function(A,g,C){var D=Vi(A);D.replace=!0,D.queue=[g],C!=null&&qi(C,"setState")},enqueueForceUpdate:function(A,g){var C=Vi(A);C.queue===null?Ji(A,"forceUpdate"):g!=null&&qi(g,"setState")}};function Qu(A,g,C,D,d){var h=C(d,D);Yi(g,h);var b=h==null?D:qt({},D,h);return b}function $i(A,g,C){var D=Oo,d=A.contextType;if("contextType"in A){var h=d===null||d!==void 0&&d.$$typeof===Do&&d._context===void 0;if(!h&&!Ro.has(A)){Ro.add(A);var b="";d===void 0?b=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof d!="object"?b=" However, it is set to a "+typeof d+".":d.$$typeof===Rs?b=" Did you accidentally pass the Context.Provider instead?":d._context!==void 0?b=" Did you accidentally pass the Context.Consumer instead?":b=" However, it is set to an object with keys {"+Object.keys(d).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Xe(A)||"Component",b)}}typeof d=="object"&&d!==null?D=Zr(d):D=C;var x=new A(g,D);{if(typeof A.getDerivedStateFromProps=="function"&&(x.state===null||x.state===void 0)){var B=Xe(A)||"Component";$s.has(B)||($s.add(B),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",B,x.state===null?"null":"undefined",B))}if(typeof A.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"){var _=null,L=null,W=null;if(typeof x.componentWillMount=="function"&&x.componentWillMount.__suppressDeprecationWarning!==!0?_="componentWillMount":typeof x.UNSAFE_componentWillMount=="function"&&(_="UNSAFE_componentWillMount"),typeof x.componentWillReceiveProps=="function"&&x.componentWillReceiveProps.__suppressDeprecationWarning!==!0?L="componentWillReceiveProps":typeof x.UNSAFE_componentWillReceiveProps=="function"&&(L="UNSAFE_componentWillReceiveProps"),typeof x.componentWillUpdate=="function"&&x.componentWillUpdate.__suppressDeprecationWarning!==!0?W="componentWillUpdate":typeof x.UNSAFE_componentWillUpdate=="function"&&(W="UNSAFE_componentWillUpdate"),_!==null||L!==null||W!==null){var J=Xe(A)||"Component",oe=typeof A.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";tl.has(J)||(tl.add(J),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
14
|
+
|
|
15
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
16
|
+
|
|
17
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
18
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,J,oe,_!==null?`
|
|
19
|
+
`+_:"",L!==null?`
|
|
20
|
+
`+L:"",W!==null?`
|
|
21
|
+
`+W:""))}}}return x}function nl(A,g,C){{var D=Xe(g)||"Component",d=A.render;d||(g.prototype&&typeof g.prototype.render=="function"?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",D):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",D)),A.getInitialState&&!A.getInitialState.isReactClassApproved&&!A.state&&o("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",D),A.getDefaultProps&&!A.getDefaultProps.isReactClassApproved&&o("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",D),A.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",D),A.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",D),A.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",D),g.contextType&&g.contextTypes&&!Xi.has(g)&&(Xi.add(g),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",D)),typeof A.componentShouldUpdate=="function"&&o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",D),g.prototype&&g.prototype.isPureReactComponent&&typeof A.shouldComponentUpdate<"u"&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Xe(g)||"A pure component"),typeof A.componentDidUnmount=="function"&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",D),typeof A.componentDidReceiveProps=="function"&&o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",D),typeof A.componentWillRecieveProps=="function"&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",D),typeof A.UNSAFE_componentWillRecieveProps=="function"&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",D);var h=A.props!==C;A.props!==void 0&&h&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",D,D),A.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",D,D),typeof A.getSnapshotBeforeUpdate=="function"&&typeof A.componentDidUpdate!="function"&&!el.has(g)&&(el.add(g),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Xe(g))),typeof A.getDerivedStateFromProps=="function"&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",D),typeof A.getDerivedStateFromError=="function"&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",D),typeof g.getSnapshotBeforeUpdate=="function"&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",D);var b=A.state;b&&(typeof b!="object"||tt(b))&&o("%s.state: must be set to an object or null",D),typeof A.getChildContext=="function"&&typeof g.childContextTypes!="object"&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",D)}}function rl(A,g){var C=g.state;if(typeof g.componentWillMount=="function"){if(g.componentWillMount.__suppressDeprecationWarning!==!0){var D=Xe(A)||"Unknown";Fo[D]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
22
|
+
|
|
23
|
+
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
24
|
+
|
|
25
|
+
Please update the following components: %s`,D),Fo[D]=!0)}g.componentWillMount()}typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),C!==g.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Xe(A)||"Component"),Zi.enqueueReplaceState(g,g.state,null))}function ol(A,g,C,D){if(A.queue!==null&&A.queue.length>0){var d=A.queue,h=A.replace;if(A.queue=null,A.replace=!1,h&&d.length===1)g.state=d[0];else{for(var b=h?d[0]:g.state,x=!0,B=h?1:0;B<d.length;B++){var _=d[B],L=typeof _=="function"?_.call(g,b,C,D):_;L!=null&&(x?(x=!1,b=qt({},b,L)):qt(b,L))}g.state=b}}else A.queue=null}function il(A,g,C,D){nl(A,g,C);var d=A.state!==void 0?A.state:null;A.updater=Zi,A.props=C,A.state=d;var h={queue:[],replace:!1};zu(A,h);var b=g.contextType;if(typeof b=="object"&&b!==null?A.context=Zr(b):A.context=D,A.state===C){var x=Xe(g)||"Component";Ki.has(x)||(Ki.add(x),o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",x))}var B=g.getDerivedStateFromProps;typeof B=="function"&&(A.state=Qu(A,g,B,d,C)),typeof g.getDerivedStateFromProps!="function"&&typeof A.getSnapshotBeforeUpdate!="function"&&(typeof A.UNSAFE_componentWillMount=="function"||typeof A.componentWillMount=="function")&&(rl(g,A),ol(h,A,C,D))}var Hu={id:1,overflow:""};function Uu(A){var g=A.overflow,C=A.id,D=C&~vA(C);return D.toString(32)+g}function al(A,g,C){var D=A.id,d=A.overflow,h=ea(D)-1,b=D&~(1<<h),x=C+1,B=ea(g)+h;if(B>30){var _=h-h%5,L=(1<<_)-1,W=(b&L).toString(32),J=b>>_,oe=h-_,le=ea(g)+oe,ge=x<<oe,Te=ge|J,ze=W+d;return{id:1<<le|Te,overflow:ze}}else{var st=x<<h,va=st|b,ya=d;return{id:1<<B|va,overflow:ya}}}function ea(A){return 32-yA(A)}function vA(A){return 1<<ea(A)-1}var yA=Math.clz32?Math.clz32:xA,wA=Math.log,ju=Math.LN2;function xA(A){var g=A>>>0;return g===0?32:31-(wA(g)/ju|0)|0}function kA(A,g){return A===g&&(A!==0||1/A===1/g)||A!==A&&g!==g}var sl=typeof Object.is=="function"?Object.is:kA,Kt=null,ll=null,ta=null,je=null,Lo=!1,na=!1,ra=0,nr=null,Xt=0,cl=25,Rt=!1,Fe;function ln(){if(Kt===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
26
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
27
|
+
2. You might be breaking the Rules of Hooks
|
|
28
|
+
3. You might have more than one copy of React in the same app
|
|
29
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return Rt&&o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),Kt}function oa(A,g){if(g===null)return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Fe),!1;A.length!==g.length&&o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
30
|
+
|
|
31
|
+
Previous: %s
|
|
32
|
+
Incoming: %s`,Fe,"["+A.join(", ")+"]","["+g.join(", ")+"]");for(var C=0;C<g.length&&C<A.length;C++)if(!sl(A[C],g[C]))return!1;return!0}function No(){if(Xt>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Sn(){return je===null?ta===null?(Lo=!1,ta=je=No()):(Lo=!0,je=ta):je.next===null?(Lo=!1,je=je.next=No()):(Lo=!0,je=je.next),je}function ia(A,g){Kt=g,ll=A,Rt=!1,ra=0}function SA(A,g,C,D){for(;na;)na=!1,ra=0,Xt+=1,je=null,C=A(g,D);return rr(),C}function cn(){var A=ra!==0;return A}function rr(){Rt=!1,Kt=null,ll=null,na=!1,ta=null,Xt=0,nr=null,je=null}function Cr(A){return Rt&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Zr(A)}function CA(A){return Fe="useContext",ln(),Zr(A)}function aa(A,g){return typeof g=="function"?g(A):g}function ul(A){return Fe="useState",Wu(aa,A)}function Wu(A,g,C){if(A!==aa&&(Fe="useReducer"),Kt=ln(),je=Sn(),Lo){var D=je.queue,d=D.dispatch;if(nr!==null){var h=nr.get(D);if(h!==void 0){nr.delete(D);var b=je.memoizedState,x=h;do{var B=x.action;Rt=!0,b=A(b,B),Rt=!1,x=x.next}while(x!==null);return je.memoizedState=b,[b,d]}}return[je.memoizedState,d]}else{Rt=!0;var _;A===aa?_=typeof g=="function"?g():g:_=C!==void 0?C(g):g,Rt=!1,je.memoizedState=_;var L=je.queue={last:null,dispatch:null},W=L.dispatch=EA.bind(null,Kt,L);return[je.memoizedState,W]}}function Vu(A,g){Kt=ln(),je=Sn();var C=g===void 0?null:g;if(je!==null){var D=je.memoizedState;if(D!==null&&C!==null){var d=D[1];if(oa(C,d))return D[0]}}Rt=!0;var h=A();return Rt=!1,je.memoizedState=[h,C],h}function Yu(A){Kt=ln(),je=Sn();var g=je.memoizedState;if(g===null){var C={current:A};return Object.seal(C),je.memoizedState=C,C}else return g}function dl(A,g){Fe="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function EA(A,g,C){if(Xt>=cl)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(A===Kt){na=!0;var D={action:C,next:null};nr===null&&(nr=new Map);var d=nr.get(g);if(d===void 0)nr.set(g,D);else{for(var h=d;h.next!==null;)h=h.next;h.next=D}}}function PA(A,g){return Vu(function(){return A},g)}function fl(A,g,C){return ln(),g(A._source)}function DA(A,g,C){if(C===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return C()}function qu(A){return ln(),A}function Ku(){throw new Error("startTransition cannot be called during server rendering.")}function TA(){return ln(),[!1,Ku]}function BA(){var A=ll,g=Uu(A.treeContext),C=hl;if(C===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var D=ra++;return lp(C,g,D)}function sa(){}var Xu={readContext:Cr,useContext:CA,useMemo:Vu,useReducer:Wu,useRef:Yu,useState:ul,useInsertionEffect:sa,useLayoutEffect:dl,useCallback:PA,useImperativeHandle:sa,useEffect:sa,useDebugValue:sa,useDeferredValue:qu,useTransition:TA,useId:BA,useMutableSource:fl,useSyncExternalStore:DA},hl=null;function Gu(A){hl=A}function IA(A){try{var g="",C=A;do{switch(C.tag){case 0:g+=Xr(C.type,null,null);break;case 1:g+=zi(C.type,null,null);break;case 2:g+=bA(C.type,null,null);break}C=C.parent}while(C);return g}catch(D){return`
|
|
33
|
+
Error generating stack: `+D.message+`
|
|
34
|
+
`+D.stack}}var pl=n.ReactCurrentDispatcher,Al=n.ReactDebugCurrentFrame,gl=0,In=1,ml=2,la=3,bl=4,MA=0,ca=1,or=2;function vl(A){return console.error(A),null}function Cn(){}function Ju(A,g,C,D,d,h,b,x,B){var _=[],L=new Set,W={destination:null,responseState:g,progressiveChunkSize:D,status:MA,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:L,pingedTasks:_,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:d===void 0?vl:d,onAllReady:Cn,onShellReady:b===void 0?Cn:b,onShellError:Cn,onFatalError:Cn},J=zo(W,0,null,C,!1,!1);J.parentFlushed=!0;var oe=yl(W,A,null,J,L,Oo,Ru,Hu);return _.push(oe),W}function Zu(A,g){var C=A.pingedTasks;C.push(g),C.length===1&&a(function(){return Pl(A)})}function $u(A,g){return{id:ou,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:g,errorDigest:null}}function yl(A,g,C,D,d,h,b,x){A.allPendingTasks++,C===null?A.pendingRootTasks++:C.pendingTasks++;var B={node:g,ping:function(){return Zu(A,B)},blockedBoundary:C,blockedSegment:D,abortSet:d,legacyContext:h,context:b,treeContext:x};return B.componentStack=null,d.add(B),B}function zo(A,g,C,D,d,h){return{status:gl,id:-1,index:g,parentFlushed:!1,chunks:[],children:[],formatContext:D,boundary:C,lastPushedText:d,textEmbedded:h}}var Tt=null;function wl(){return Tt===null||Tt.componentStack===null?"":IA(Tt.componentStack)}function Qo(A,g){A.componentStack={tag:0,parent:A.componentStack,type:g}}function $r(A,g){A.componentStack={tag:1,parent:A.componentStack,type:g}}function OA(A,g){A.componentStack={tag:2,parent:A.componentStack,type:g}}function ir(A){A.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):A.componentStack=A.componentStack.parent}var Ho=null;function Uo(A,g){{var C;typeof g=="string"?C=g:g&&typeof g.message=="string"?C=g.message:C=String(g);var D=Ho||wl();Ho=null,A.errorMessage=C,A.errorComponentStack=D}}function ar(A,g){var C=A.onError(g);if(C!=null&&typeof C!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof C+'" instead');return C}function Gt(A,g){var C=A.onShellError;C(g);var D=A.onFatalError;D(g),A.destination!==null?(A.status=or,u(A.destination,g)):(A.status=ca,A.fatalError=g)}function xl(A,g,C){Qo(g,"Suspense");var D=g.blockedBoundary,d=g.blockedSegment,h=C.fallback,b=C.children,x=new Set,B=$u(A,x),_=d.chunks.length,L=zo(A,_,B,d.formatContext,!1,!1);d.children.push(L),d.lastPushedText=!1;var W=zo(A,0,null,d.formatContext,!1,!1);W.parentFlushed=!0,g.blockedBoundary=B,g.blockedSegment=W;try{if(El(A,g,b),xu(W.chunks,A.responseState,W.lastPushedText,W.textEmbedded),W.status=In,pa(B,W),B.pendingTasks===0){ir(g);return}}catch(oe){W.status=bl,B.forceClientRender=!0,B.errorDigest=ar(A,oe),Uo(B,oe)}finally{g.blockedBoundary=D,g.blockedSegment=d}var J=yl(A,h,D,L,x,g.legacyContext,g.context,g.treeContext);J.componentStack=g.componentStack,A.pingedTasks.push(J),ir(g)}function jo(A,g,C,D){Qo(g,C);var d=g.blockedSegment,h=up(d.chunks,C,D,A.responseState,d.formatContext);d.lastPushedText=!1;var b=d.formatContext;d.formatContext=ap(b,C,D),El(A,g,h),d.formatContext=b,fp(d.chunks,C),d.lastPushedText=!1,ir(g)}function ed(A){return A.prototype&&A.prototype.isReactComponent}function td(A,g,C,D,d){var h={};ia(g,h);var b=C(D,d);return SA(C,D,b,d)}function Mn(A,g,C,D,d){var h=C.render();C.props!==d&&(rd||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Xe(D)||"a component"),rd=!0);{var b=D.childContextTypes;if(b!=null){var x=g.legacyContext,B=Ks(C,D,x,b);g.legacyContext=B,Lt(A,g,h),g.legacyContext=x;return}}Lt(A,g,h)}function Wo(A,g,C,D){OA(g,C);var d=Fu(C,g.legacyContext),h=$i(C,D,d);il(h,C,D,d),Mn(A,g,h,C,D),ir(g)}var ua={},sr={},Vo={},nd={},rd=!1,od={},kl=!1,Sl=!1,id=!1;function ad(A,g,C,D){var d;if(d=Fu(C,g.legacyContext),$r(g,C),C.prototype&&typeof C.prototype.render=="function"){var h=Xe(C)||"Unknown";ua[h]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",h,h),ua[h]=!0)}var b=td(A,g,C,D,d),x=cn();if(typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0){var B=Xe(C)||"Unknown";sr[B]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",B,B,B),sr[B]=!0)}if(typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0){{var _=Xe(C)||"Unknown";sr[_]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",_,_,_),sr[_]=!0)}il(b,C,D,d),Mn(A,g,b,C,D)}else if(da(C),x){var L=g.treeContext,W=1,J=0;g.treeContext=al(L,W,J);try{Lt(A,g,b)}finally{g.treeContext=L}}else Lt(A,g,b);ir(g)}function da(A){{if(A&&A.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",A.displayName||A.name||"Component"),A.defaultProps!==void 0){var g=Xe(A)||"Unknown";od[g]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",g),od[g]=!0)}if(typeof A.getDerivedStateFromProps=="function"){var C=Xe(A)||"Unknown";nd[C]||(o("%s: Function components do not support getDerivedStateFromProps.",C),nd[C]=!0)}if(typeof A.contextType=="object"&&A.contextType!==null){var D=Xe(A)||"Unknown";Vo[D]||(o("%s: Function components do not support contextType.",D),Vo[D]=!0)}}}function Cl(A,g){if(A&&A.defaultProps){var C=qt({},g),D=A.defaultProps;for(var d in D)C[d]===void 0&&(C[d]=D[d]);return C}return g}function sd(A,g,C,D,d){$r(g,C.render);var h=td(A,g,C.render,D,d),b=cn();if(b){var x=g.treeContext,B=1,_=0;g.treeContext=al(x,B,_);try{Lt(A,g,h)}finally{g.treeContext=x}}else Lt(A,g,h);ir(g)}function ld(A,g,C,D,d){var h=C.type,b=Cl(h,D);fa(A,g,h,b,d)}function cd(A,g,C,D){C._context===void 0?C!==C.Consumer&&(id||(id=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):C=C._context;var d=D.children;typeof d!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var h=Zr(C),b=d(h);Lt(A,g,b)}function ud(A,g,C,D){var d=C._context,h=D.value,b=D.children,x;x=g.context,g.context=Gs(d,h),Lt(A,g,b),g.context=Js(d),x!==g.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function dd(A,g,C,D,d){Qo(g,"Lazy");var h=C._payload,b=C._init,x=b(h),B=Cl(x,D);fa(A,g,x,B,d),ir(g)}function fa(A,g,C,D,d){if(typeof C=="function")if(ed(C)){Wo(A,g,C,D);return}else{ad(A,g,C,D);return}if(typeof C=="string"){jo(A,g,C,D);return}switch(C){case zs:case Ns:case Ii:case Cu:case Su:{Lt(A,g,D.children);return}case Mi:{Qo(g,"SuspenseList"),Lt(A,g,D.children),ir(g);return}case Eu:throw new Error("ReactDOMServer does not yet support scope components.");case Ls:{xl(A,g,D);return}}if(typeof C=="object"&&C!==null)switch(C.$$typeof){case Dt:{sd(A,g,C,D,d);return}case Oi:{ld(A,g,C,D,d);return}case Rs:{ud(A,g,C,D);return}case Do:{cd(A,g,C,D);return}case To:{dd(A,g,C,D);return}}var h="";throw(C===void 0||typeof C=="object"&&C!==null&&Object.keys(C).length===0)&&(h+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(C==null?C:typeof C)+"."+h))}function _A(A,g){typeof Symbol=="function"&&A[Symbol.toStringTag]==="Generator"&&(kl||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),kl=!0),A.entries===g&&(Sl||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Sl=!0)}function Lt(A,g,C){try{return fd(A,g,C)}catch(D){throw typeof D=="object"&&D!==null&&typeof D.then=="function"||(Ho=Ho!==null?Ho:wl()),D}}function fd(A,g,C){if(g.node=C,typeof C=="object"&&C!==null){switch(C.$$typeof){case mA:{var D=C,d=D.type,h=D.props,b=D.ref;fa(A,g,d,h,b);return}case ku:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case To:{var x=C,B=x._payload,_=x._init,L;try{L=_(B)}catch(st){throw typeof st=="object"&&st!==null&&typeof st.then=="function"&&Qo(g,"Lazy"),st}Lt(A,g,L);return}}if(tt(C)){hd(A,g,C);return}var W=Us(C);if(W){_A(C,W);var J=W.call(C);if(J){var oe=J.next();if(!oe.done){var le=[];do le.push(oe.value),oe=J.next();while(!oe.done);hd(A,g,le);return}return}}var ge=Object.prototype.toString.call(C);throw new Error("Objects are not valid as a React child (found: "+(ge==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":ge)+"). If you meant to render a collection of children, use an array instead.")}if(typeof C=="string"){var Te=g.blockedSegment;Te.lastPushedText=wu(g.blockedSegment.chunks,C,A.responseState,Te.lastPushedText);return}if(typeof C=="number"){var ze=g.blockedSegment;ze.lastPushedText=wu(g.blockedSegment.chunks,""+C,A.responseState,ze.lastPushedText);return}typeof C=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function hd(A,g,C){for(var D=C.length,d=0;d<D;d++){var h=g.treeContext;g.treeContext=al(h,D,d);try{El(A,g,C[d])}finally{g.treeContext=h}}}function FA(A,g,C){var D=g.blockedSegment,d=D.chunks.length,h=zo(A,d,null,D.formatContext,D.lastPushedText,!0);D.children.push(h),D.lastPushedText=!1;var b=yl(A,g.node,g.blockedBoundary,h,g.abortSet,g.legacyContext,g.context,g.treeContext);g.componentStack!==null&&(b.componentStack=g.componentStack.parent);var x=b.ping;C.then(x,x)}function El(A,g,C){var D=g.blockedSegment.formatContext,d=g.legacyContext,h=g.context,b=null;b=g.componentStack;try{return Lt(A,g,C)}catch(x){if(rr(),typeof x=="object"&&x!==null&&typeof x.then=="function"){FA(A,g,x),g.blockedSegment.formatContext=D,g.legacyContext=d,g.context=h,kn(h),g.componentStack=b;return}else throw g.blockedSegment.formatContext=D,g.legacyContext=d,g.context=h,kn(h),g.componentStack=b,x}}function RA(A,g,C,D){var d=ar(A,D);if(g===null?Gt(A,D):(g.pendingTasks--,g.forceClientRender||(g.forceClientRender=!0,g.errorDigest=d,Uo(g,D),g.parentFlushed&&A.clientRenderedBoundaries.push(g))),A.allPendingTasks--,A.allPendingTasks===0){var h=A.onAllReady;h()}}function LA(A){var g=this,C=A.blockedBoundary,D=A.blockedSegment;D.status=la,Bt(g,C,D)}function ha(A,g,C){var D=A.blockedBoundary,d=A.blockedSegment;if(d.status=la,D===null)g.allPendingTasks--,g.status!==or&&(g.status=or,g.destination!==null&&c(g.destination));else{if(D.pendingTasks--,!D.forceClientRender){D.forceClientRender=!0;var h=C===void 0?new Error("The render was aborted by the server without a reason."):C;D.errorDigest=g.onError(h);{var b="The server did not finish this Suspense boundary: ";h&&typeof h.message=="string"?h=b+h.message:h=b+String(h);var x=Tt;Tt=A;try{Uo(D,h)}finally{Tt=x}}D.parentFlushed&&g.clientRenderedBoundaries.push(D)}if(D.fallbackAbortableTasks.forEach(function(_){return ha(_,g,C)}),D.fallbackAbortableTasks.clear(),g.allPendingTasks--,g.allPendingTasks===0){var B=g.onAllReady;B()}}}function pa(A,g){if(g.chunks.length===0&&g.children.length===1&&g.children[0].boundary===null){var C=g.children[0];C.id=g.id,C.parentFlushed=!0,C.status===In&&pa(A,C)}else{var D=A.completedSegments;D.push(g)}}function Bt(A,g,C){if(g===null){if(C.parentFlushed){if(A.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");A.completedRootSegment=C}if(A.pendingRootTasks--,A.pendingRootTasks===0){A.onShellError=Cn;var D=A.onShellReady;D()}}else if(g.pendingTasks--,!g.forceClientRender){if(g.pendingTasks===0)C.parentFlushed&&C.status===In&&pa(g,C),g.parentFlushed&&A.completedBoundaries.push(g),g.fallbackAbortableTasks.forEach(LA,A),g.fallbackAbortableTasks.clear();else if(C.parentFlushed&&C.status===In){pa(g,C);var d=g.completedSegments;d.length===1&&g.parentFlushed&&A.partialBoundaries.push(g)}}if(A.allPendingTasks--,A.allPendingTasks===0){var h=A.onAllReady;h()}}function NA(A,g){var C=g.blockedSegment;if(C.status===gl){kn(g.context);var D=null;D=Tt,Tt=g;try{Lt(A,g,g.node),xu(C.chunks,A.responseState,C.lastPushedText,C.textEmbedded),g.abortSet.delete(g),C.status=In,Bt(A,g.blockedBoundary,C)}catch(h){if(rr(),typeof h=="object"&&h!==null&&typeof h.then=="function"){var d=g.ping;h.then(d,d)}else g.abortSet.delete(g),C.status=bl,RA(A,g.blockedBoundary,C,h)}finally{Tt=D}}}function Pl(A){if(A.status!==or){var g=Wi(),C=pl.current;pl.current=Xu;var D;D=Al.getCurrentStack,Al.getCurrentStack=wl;var d=hl;Gu(A.responseState);try{var h=A.pingedTasks,b;for(b=0;b<h.length;b++){var x=h[b];NA(A,x)}h.splice(0,b),A.destination!==null&&Bl(A,A.destination)}catch(B){ar(A,B),Gt(A,B)}finally{Gu(d),pl.current=C,Al.getCurrentStack=D,C===Xu&&kn(g)}}}function Aa(A,g,C){switch(C.parentFlushed=!0,C.status){case gl:{var D=C.id=A.nextSegmentId++;return C.lastPushedText=!1,C.textEmbedded=!1,gp(g,A.responseState,D)}case In:{C.status=ml;for(var d=!0,h=C.chunks,b=0,x=C.children,B=0;B<x.length;B++){for(var _=x[B];b<_.index;b++)s(g,h[b]);d=eo(A,g,_)}for(;b<h.length-1;b++)s(g,h[b]);return b<h.length&&(d=l(g,h[b])),d}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function eo(A,g,C){var D=C.boundary;if(D===null)return Aa(A,g,C);if(D.parentFlushed=!0,D.forceClientRender)return pA(g,A.responseState,D.errorDigest,D.errorMessage,D.errorComponentStack),Aa(A,g,C),gA(g,A.responseState);if(D.pendingTasks>0){D.rootSegmentID=A.nextSegmentId++,D.completedSegments.length>0&&A.partialBoundaries.push(D);var d=D.id=sp(A.responseState);return mu(g,A.responseState,d),Aa(A,g,C),bu(g,A.responseState)}else{if(D.byteSize>A.progressiveChunkSize)return D.rootSegmentID=A.nextSegmentId++,A.completedBoundaries.push(D),mu(g,A.responseState,D.id),Aa(A,g,C),bu(g,A.responseState);hA(g,A.responseState);var h=D.completedSegments;if(h.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var b=h[0];return eo(A,g,b),AA(g,A.responseState)}}function zA(A,g,C){return cA(g,A.responseState,C.id,C.errorDigest,C.errorMessage,C.errorComponentStack)}function pd(A,g,C){return Wp(g,A.responseState,C.formatContext,C.id),eo(A,g,C),Vp(g,C.formatContext)}function Dl(A,g,C){for(var D=C.completedSegments,d=0;d<D.length;d++){var h=D[d];Tl(A,g,C,h)}return D.length=0,oA(g,A.responseState,C.id,C.rootSegmentID)}function ga(A,g,C){for(var D=C.completedSegments,d=0;d<D.length;d++){var h=D[d];if(!Tl(A,g,C,h))return d++,D.splice(0,d),!1}return D.splice(0,d),!0}function Tl(A,g,C,D){if(D.status===ml)return!0;var d=D.id;if(d===-1){var h=D.id=C.rootSegmentID;if(h===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return pd(A,g,D)}else return pd(A,g,D),$p(g,A.responseState,d)}function Bl(A,g){try{var C=A.completedRootSegment;C!==null&&A.pendingRootTasks===0&&(eo(A,g,C),A.completedRootSegment=null,hp(g,A.responseState));var D=A.clientRenderedBoundaries,d;for(d=0;d<D.length;d++){var h=D[d];if(!zA(A,g,h)){A.destination=null,d++,D.splice(0,d);return}}D.splice(0,d);var b=A.completedBoundaries;for(d=0;d<b.length;d++){var x=b[d];if(!Dl(A,g,x)){A.destination=null,d++,b.splice(0,d);return}}b.splice(0,d);var B=A.partialBoundaries;for(d=0;d<B.length;d++){var _=B[d];if(!ga(A,g,_)){A.destination=null,d++,B.splice(0,d);return}}B.splice(0,d);var L=A.completedBoundaries;for(d=0;d<L.length;d++){var W=L[d];if(!Dl(A,g,W)){A.destination=null,d++,L.splice(0,d);return}}L.splice(0,d)}finally{A.allPendingTasks===0&&A.pingedTasks.length===0&&A.clientRenderedBoundaries.length===0&&A.completedBoundaries.length===0&&(A.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),c(g))}}function Ad(A){a(function(){return Pl(A)})}function ma(A,g){if(A.status===ca){A.status=or,u(g,A.fatalError);return}if(A.status!==or&&A.destination===null){A.destination=g;try{Bl(A,g)}catch(C){ar(A,C),Gt(A,C)}}}function ba(A,g){try{var C=A.abortableTasks;C.forEach(function(D){return ha(D,A,g)}),C.clear(),A.destination!==null&&Bl(A,A.destination)}catch(D){ar(A,D),Gt(A,D)}}function QA(){}function Il(A,g,C,D){var d=!1,h=null,b="",x={push:function(W){return W!==null&&(b+=W),!0},destroy:function(W){d=!0,h=W}},B=!1;function _(){B=!0}var L=Ju(A,dA(C,g?g.identifierPrefix:void 0),fA(),1/0,QA,void 0,_);if(Ad(L),ba(L,D),ma(L,x),d)throw h;if(!B)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return b}function gd(A,g){return Il(A,g,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function HA(A,g){return Il(A,g,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function md(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function Ml(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}Ko.renderToNodeStream=md,Ko.renderToStaticMarkup=HA,Ko.renderToStaticNodeStream=Ml,Ko.renderToString=gd,Ko.version=e})()),Ko}var Nd={};var Tg;function O1(){return Tg||(Tg=1,(function(){var t=I,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(d){{for(var h=arguments.length,b=new Array(h>1?h-1:0),x=1;x<h;x++)b[x-1]=arguments[x];i("warn",d,b)}}function o(d){{for(var h=arguments.length,b=new Array(h>1?h-1:0),x=1;x<h;x++)b[x-1]=arguments[x];i("error",d,b)}}function i(d,h,b){{var x=n.ReactDebugCurrentFrame,B=x.getStackAddendum();B!==""&&(h+="%s",b=b.concat([B]));var _=b.map(function(L){return String(L)});_.unshift("Warning: "+h),Function.prototype.apply.call(console[d],console,_)}}function a(d){d()}var s=512,l=null,c=0;function u(d){l=new Uint8Array(s),c=0}function f(d,h){if(h.length!==0){if(h.length>s){c>0&&(d.enqueue(new Uint8Array(l.buffer,0,c)),l=new Uint8Array(s),c=0),d.enqueue(h);return}var b=h,x=l.length-c;x<b.length&&(x===0?d.enqueue(l):(l.set(b.subarray(0,x),c),d.enqueue(l),b=b.subarray(x)),l=new Uint8Array(s),c=0),l.set(b,c),c+=b.length}}function p(d,h){return f(d,h),!0}function m(d){l&&c>0&&(d.enqueue(new Uint8Array(l.buffer,0,c)),l=null,c=0)}function v(d){d.close()}var w=new TextEncoder;function y(d){return w.encode(d)}function S(d){return w.encode(d)}function T(d,h){typeof d.error=="function"?d.error(h):d.close()}function P(d){{var h=typeof Symbol=="function"&&Symbol.toStringTag,b=h&&d[Symbol.toStringTag]||d.constructor.name||"Object";return b}}function E(d){try{return O(d),!1}catch{return!0}}function O(d){return""+d}function M(d,h){if(E(d))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",h,P(d)),O(d)}function N(d,h){if(E(d))return o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",h,P(d)),O(d)}function H(d){if(E(d))return o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",P(d)),O(d)}var z=Object.prototype.hasOwnProperty,Q=0,U=1,j=2,V=3,X=4,q=5,te=6,Z=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ee=Z+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",F=new RegExp("^["+Z+"]["+ee+"]*$"),fe={},R={};function ce(d){return z.call(R,d)?!0:z.call(fe,d)?!1:F.test(d)?(R[d]=!0,!0):(fe[d]=!0,o("Invalid attribute name: `%s`",d),!1)}function ne(d,h,b,x){if(b!==null&&b.type===Q)return!1;switch(typeof h){case"function":case"symbol":return!0;case"boolean":{if(b!==null)return!b.acceptsBooleans;var B=d.toLowerCase().slice(0,5);return B!=="data-"&&B!=="aria-"}default:return!1}}function $(d){return ae.hasOwnProperty(d)?ae[d]:null}function ie(d,h,b,x,B,_,L){this.acceptsBooleans=h===j||h===V||h===X,this.attributeName=x,this.attributeNamespace=B,this.mustUseProperty=b,this.propertyName=d,this.type=h,this.sanitizeURL=_,this.removeEmptyString=L}var ae={},Ae=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Ae.forEach(function(d){ae[d]=new ie(d,Q,!1,d,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(d){var h=d[0],b=d[1];ae[h]=new ie(h,U,!1,b,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(d){ae[d]=new ie(d,j,!1,d.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(d){ae[d]=new ie(d,j,!1,d,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(d){ae[d]=new ie(d,V,!1,d.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(d){ae[d]=new ie(d,V,!0,d,null,!1,!1)}),["capture","download"].forEach(function(d){ae[d]=new ie(d,X,!1,d,null,!1,!1)}),["cols","rows","size","span"].forEach(function(d){ae[d]=new ie(d,te,!1,d,null,!1,!1)}),["rowSpan","start"].forEach(function(d){ae[d]=new ie(d,q,!1,d.toLowerCase(),null,!1,!1)});var ye=/[\-\:]([a-z])/g,ke=function(d){return d[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(d){var h=d.replace(ye,ke);ae[h]=new ie(h,U,!1,d,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(d){var h=d.replace(ye,ke);ae[h]=new ie(h,U,!1,d,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(d){var h=d.replace(ye,ke);ae[h]=new ie(h,U,!1,d,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(d){ae[d]=new ie(d,U,!1,d.toLowerCase(),null,!1,!1)});var Be="xlinkHref";ae[Be]=new ie("xlinkHref",U,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(d){ae[d]=new ie(d,U,!1,d.toLowerCase(),null,!0,!0)});var Je={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Et(d,h){return d+h.charAt(0).toUpperCase()+h.substring(1)}var Ke=["Webkit","ms","Moz","O"];Object.keys(Je).forEach(function(d){Ke.forEach(function(h){Je[Et(h,d)]=Je[d]})});var ut={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function wt(d,h){ut[h.type]||h.onChange||h.onInput||h.readOnly||h.disabled||h.value==null||o("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),h.onChange||h.readOnly||h.disabled||h.checked==null||o("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function rt(d,h){if(d.indexOf("-")===-1)return typeof h.is=="string";switch(d){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dt={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},_e={},ot=new RegExp("^(aria)-["+ee+"]*$"),Pe=new RegExp("^(aria)[A-Z]["+ee+"]*$");function xt(d,h){{if(z.call(_e,h)&&_e[h])return!0;if(Pe.test(h)){var b="aria-"+h.slice(4).toLowerCase(),x=dt.hasOwnProperty(b)?b:null;if(x==null)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",h),_e[h]=!0,!0;if(h!==x)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",h,x),_e[h]=!0,!0}if(ot.test(h)){var B=h.toLowerCase(),_=dt.hasOwnProperty(B)?B:null;if(_==null)return _e[h]=!0,!1;if(h!==_)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",h,_),_e[h]=!0,!0}}return!0}function Wt(d,h){{var b=[];for(var x in h){var B=xt(d,x);B||b.push(x)}var _=b.map(function(L){return"`"+L+"`"}).join(", ");b.length===1?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",_,d):b.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",_,d)}}function gt(d,h){rt(d,h)||Wt(d,h)}var Vt=!1;function Pt(d,h){{if(d!=="input"&&d!=="textarea"&&d!=="select")return;h!=null&&h.value===null&&!Vt&&(Vt=!0,d==="select"&&h.multiple?o("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",d):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",d))}}var Mt={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Ot=function(){};{var He={},G=/^on./,ue=/^on[^A-Z]/,pe=new RegExp("^(aria)-["+ee+"]*$"),we=new RegExp("^(aria)[A-Z]["+ee+"]*$");Ot=function(d,h,b,x){if(z.call(He,h)&&He[h])return!0;var B=h.toLowerCase();if(B==="onfocusin"||B==="onfocusout")return o("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),He[h]=!0,!0;if(x!=null){var _=x.registrationNameDependencies,L=x.possibleRegistrationNames;if(_.hasOwnProperty(h))return!0;var W=L.hasOwnProperty(B)?L[B]:null;if(W!=null)return o("Invalid event handler property `%s`. Did you mean `%s`?",h,W),He[h]=!0,!0;if(G.test(h))return o("Unknown event handler property `%s`. It will be ignored.",h),He[h]=!0,!0}else if(G.test(h))return ue.test(h)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",h),He[h]=!0,!0;if(pe.test(h)||we.test(h))return!0;if(B==="innerhtml")return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),He[h]=!0,!0;if(B==="aria")return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),He[h]=!0,!0;if(B==="is"&&b!==null&&b!==void 0&&typeof b!="string")return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof b),He[h]=!0,!0;if(typeof b=="number"&&isNaN(b))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",h),He[h]=!0,!0;var J=$(h),oe=J!==null&&J.type===Q;if(Mt.hasOwnProperty(B)){var le=Mt[B];if(le!==h)return o("Invalid DOM property `%s`. Did you mean `%s`?",h,le),He[h]=!0,!0}else if(!oe&&h!==B)return o("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",h,B),He[h]=!0,!0;return typeof b=="boolean"&&ne(h,b,J)?(b?o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',b,h,h,b,h):o('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',b,h,h,b,h,h,h),He[h]=!0,!0):oe?!0:ne(h,b,J)?(He[h]=!0,!1):((b==="false"||b==="true")&&J!==null&&J.type===V&&(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",b,h,b==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',h,b),He[h]=!0),!0)}}var xe=function(d,h,b){{var x=[];for(var B in h){var _=Ot(d,B,h[B],b);_||x.push(B)}var L=x.map(function(W){return"`"+W+"`"}).join(", ");x.length===1?o("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",L,d):x.length>1&&o("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",L,d)}};function Y(d,h,b){rt(d,h)||xe(d,h,b)}var se=function(){};{var he=/^(?:webkit|moz|o)[A-Z]/,De=/^-ms-/,Ee=/-(.)/g,Ie=/;\s*$/,Ue={},it={},yo=!1,wn=!1,wo=function(d){return d.replace(Ee,function(h,b){return b.toUpperCase()})},at=function(d){Ue.hasOwnProperty(d)&&Ue[d]||(Ue[d]=!0,o("Unsupported style property %s. Did you mean %s?",d,wo(d.replace(De,"ms-"))))},Zn=function(d){Ue.hasOwnProperty(d)&&Ue[d]||(Ue[d]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",d,d.charAt(0).toUpperCase()+d.slice(1)))},ms=function(d,h){it.hasOwnProperty(h)&&it[h]||(it[h]=!0,o(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,d,h.replace(Ie,"")))},xo=function(d,h){yo||(yo=!0,o("`NaN` is an invalid value for the `%s` css style property.",d))},jr=function(d,h){wn||(wn=!0,o("`Infinity` is an invalid value for the `%s` css style property.",d))};se=function(d,h){d.indexOf("-")>-1?at(d):he.test(d)?Zn(d):Ie.test(h)&&ms(d,h),typeof h=="number"&&(isNaN(h)?xo(d,h):isFinite(h)||jr(d,h))}}var ru=se,np=/["'&<>]/;function rp(d){H(d);var h=""+d,b=np.exec(h);if(!b)return h;var x,B="",_,L=0;for(_=b.index;_<h.length;_++){switch(h.charCodeAt(_)){case 34:x=""";break;case 38:x="&";break;case 39:x="'";break;case 60:x="<";break;case 62:x=">";break;default:continue}L!==_&&(B+=h.substring(L,_)),L=_+1,B+=x}return L!==_?B+h.substring(L,_):B}function tt(d){return typeof d=="boolean"||typeof d=="number"?""+d:rp(d)}var op=/([A-Z])/g,ip=/^ms-/;function wi(d){return d.replace(op,"-$1").toLowerCase().replace(ip,"-ms-")}var Wr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ko=!1;function xi(d){!ko&&Wr.test(d)&&(ko=!0,o("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(d)))}var ki=Array.isArray;function yr(d){return ki(d)}var bs=S("<script>"),vs=S("<\/script>"),Tn=S('<script src="'),ap=S('<script type="module" src="'),ou=S('" async=""><\/script>');function sp(d){return H(d),(""+d).replace(lp,ys)}var lp=/(<\/|<)(s)(cript)/gi,ys=function(d,h,b,x){return""+h+(b==="s"?"\\u0073":"\\u0053")+x};function iu(d,h,b,x,B){var _=d===void 0?"":d,L=h===void 0?bs:S('<script nonce="'+tt(h)+'">'),W=[];if(b!==void 0&&W.push(L,y(sp(b)),vs),x!==void 0)for(var J=0;J<x.length;J++)W.push(Tn,y(tt(x[J])),ou);if(B!==void 0)for(var oe=0;oe<B.length;oe++)W.push(ap,y(tt(B[oe])),ou);return{bootstrapChunks:W,startInlineScript:L,placeholderPrefix:S(_+"P:"),segmentPrefix:S(_+"S:"),boundaryPrefix:_+"B:",idPrefix:_,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var So=0,Co=1,Vr=2,Eo=3,Si=4,Ci=5,ws=6,Ei=7;function At(d,h){return{insertionMode:d,selectedValue:h}}function Yr(d){var h=d==="http://www.w3.org/2000/svg"?Vr:d==="http://www.w3.org/1998/Math/MathML"?Eo:So;return At(h,null)}function wr(d,h,b){switch(h){case"select":return At(Co,b.value!=null?b.value:b.defaultValue);case"svg":return At(Vr,null);case"math":return At(Eo,null);case"foreignObject":return At(Co,null);case"table":return At(Si,null);case"thead":case"tbody":case"tfoot":return At(Ci,null);case"colgroup":return At(Ei,null);case"tr":return At(ws,null)}return d.insertionMode>=Si||d.insertionMode===So?At(Co,null):d}var au=null;function _t(d){var h=d.nextSuspenseID++;return S(d.boundaryPrefix+h.toString(16))}function $n(d,h,b){var x=d.idPrefix,B=":"+x+"R"+h;return b>0&&(B+="H"+b.toString(32)),B+":"}function Pi(d){return tt(d)}var Po=S("<!-- -->");function xs(d,h,b,x){return h===""?x:(x&&d.push(Po),d.push(y(Pi(h))),!0)}function ks(d,h,b,x){b&&x&&d.push(Po)}var Ss=new Map;function su(d){var h=Ss.get(d);if(h!==void 0)return h;var b=S(tt(wi(d)));return Ss.set(d,b),b}var lu=S(' style="'),Cs=S(":"),cu=S(";");function Es(d,h,b){if(typeof b!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var x=!0;for(var B in b)if(z.call(b,B)){var _=b[B];if(!(_==null||typeof _=="boolean"||_==="")){var L=void 0,W=void 0,J=B.indexOf("--")===0;J?(L=y(tt(B)),N(_,B),W=y(tt((""+_).trim()))):(ru(B,_),L=su(B),typeof _=="number"?_!==0&&!z.call(Je,B)?W=y(_+"px"):W=y(""+_):(N(_,B),W=y(tt((""+_).trim())))),x?(x=!1,d.push(lu,L,Cs,W)):d.push(cu,L,Cs,W)}}x||d.push(Bn)}var er=S(" "),qr=S('="'),Bn=S('"'),uu=S('=""');function Ft(d,h,b,x){switch(b){case"style":{Es(d,h,x);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(b.length>2&&(b[0]==="o"||b[0]==="O")&&(b[1]==="n"||b[1]==="N"))){var B=$(b);if(B!==null){switch(typeof x){case"function":case"symbol":return;case"boolean":if(!B.acceptsBooleans)return}var _=B.attributeName,L=y(_);switch(B.type){case V:x&&d.push(er,L,uu);return;case X:x===!0?d.push(er,L,uu):x===!1||d.push(er,L,qr,y(tt(x)),Bn);return;case q:isNaN(x)||d.push(er,L,qr,y(tt(x)),Bn);break;case te:!isNaN(x)&&x>=1&&d.push(er,L,qr,y(tt(x)),Bn);break;default:B.sanitizeURL&&(M(x,_),x=""+x,xi(x)),d.push(er,L,qr,y(tt(x)),Bn)}}else if(ce(b)){switch(typeof x){case"function":case"symbol":return;case"boolean":{var W=b.toLowerCase().slice(0,5);if(W!=="data-"&&W!=="aria-")return}}d.push(er,y(b),qr,y(tt(x)),Bn)}}}var tr=S(">"),du=S("/>");function Di(d,h,b){if(h!=null){if(b!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof h!="object"||!("__html"in h))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var x=h.__html;x!=null&&(H(x),d.push(y(""+x)))}}var fu=!1,Ti=!1,hu=!1,Bi=!1,pu=!1,Au=!1,Ps=!1;function sn(d,h){{var b=d[h];if(b!=null){var x=yr(b);d.multiple&&!x?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.",h):!d.multiple&&x&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",h)}}}function cp(d,h,b){wt("select",h),sn(h,"value"),sn(h,"defaultValue"),h.value!==void 0&&h.defaultValue!==void 0&&!hu&&(o("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),hu=!0),d.push(Yt("select"));var x=null,B=null;for(var _ in h)if(z.call(h,_)){var L=h[_];if(L==null)continue;switch(_){case"children":x=L;break;case"dangerouslySetInnerHTML":B=L;break;case"defaultValue":case"value":break;default:Ft(d,b,_,L);break}}return d.push(tr),Di(d,B,x),x}function up(d){var h="";return t.Children.forEach(d,function(b){b!=null&&(h+=b,!pu&&typeof b!="string"&&typeof b!="number"&&(pu=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),h}var Ds=S(' selected=""');function dp(d,h,b,x){var B=x.selectedValue;d.push(Yt("option"));var _=null,L=null,W=null,J=null;for(var oe in h)if(z.call(h,oe)){var le=h[oe];if(le==null)continue;switch(oe){case"children":_=le;break;case"selected":W=le,Ps||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ps=!0);break;case"dangerouslySetInnerHTML":J=le;break;case"value":L=le;default:Ft(d,b,oe,le);break}}if(B!=null){var ge;if(L!==null?(M(L,"value"),ge=""+L):(J!==null&&(Au||(Au=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),ge=up(_)),yr(B))for(var Te=0;Te<B.length;Te++){M(B[Te],"value");var ze=""+B[Te];if(ze===ge){d.push(Ds);break}}else M(B,"select.value"),""+B===ge&&d.push(Ds)}else W&&d.push(Ds);return d.push(tr),Di(d,J,_),_}function fp(d,h,b){wt("input",h),h.checked!==void 0&&h.defaultChecked!==void 0&&!Ti&&(o("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",h.type),Ti=!0),h.value!==void 0&&h.defaultValue!==void 0&&!fu&&(o("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",h.type),fu=!0),d.push(Yt("input"));var x=null,B=null,_=null,L=null;for(var W in h)if(z.call(h,W)){var J=h[W];if(J==null)continue;switch(W){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":L=J;break;case"defaultValue":B=J;break;case"checked":_=J;break;case"value":x=J;break;default:Ft(d,b,W,J);break}}return _!==null?Ft(d,b,"checked",_):L!==null&&Ft(d,b,"checked",L),x!==null?Ft(d,b,"value",x):B!==null&&Ft(d,b,"value",B),d.push(du),null}function hp(d,h,b){wt("textarea",h),h.value!==void 0&&h.defaultValue!==void 0&&!Bi&&(o("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Bi=!0),d.push(Yt("textarea"));var x=null,B=null,_=null;for(var L in h)if(z.call(h,L)){var W=h[L];if(W==null)continue;switch(L){case"children":_=W;break;case"value":x=W;break;case"defaultValue":B=W;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:Ft(d,b,L,W);break}}if(x===null&&B!==null&&(x=B),d.push(tr),_!=null){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),x!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(yr(_)){if(_.length>1)throw new Error("<textarea> can only have at most one child.");H(_[0]),x=""+_[0]}H(_),x=""+_}return typeof x=="string"&&x[0]===`
|
|
35
|
+
`&&d.push(Bs),x!==null&&(M(x,"value"),d.push(y(Pi(""+x)))),null}function pp(d,h,b,x){d.push(Yt(b));for(var B in h)if(z.call(h,B)){var _=h[B];if(_==null)continue;switch(B){case"children":case"dangerouslySetInnerHTML":throw new Error(b+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ft(d,x,B,_);break}}return d.push(du),null}function Ap(d,h,b){d.push(Yt("menuitem"));for(var x in h)if(z.call(h,x)){var B=h[x];if(B==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:Ft(d,b,x,B);break}}return d.push(tr),null}function gp(d,h,b){d.push(Yt("title"));var x=null;for(var B in h)if(z.call(h,B)){var _=h[B];if(_==null)continue;switch(B){case"children":x=_;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:Ft(d,b,B,_);break}}d.push(tr);{var L=Array.isArray(x)&&x.length<2?x[0]||null:x;Array.isArray(x)&&x.length>1?o("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):L!=null&&L.$$typeof!=null?o("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):L!=null&&typeof L!="string"&&typeof L!="number"&&o("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return x}function Ts(d,h,b,x){d.push(Yt(b));var B=null,_=null;for(var L in h)if(z.call(h,L)){var W=h[L];if(W==null)continue;switch(L){case"children":B=W;break;case"dangerouslySetInnerHTML":_=W;break;default:Ft(d,x,L,W);break}}return d.push(tr),Di(d,_,B),typeof B=="string"?(d.push(y(Pi(B))),null):B}function mp(d,h,b,x){d.push(Yt(b));var B=null,_=null;for(var L in h)if(z.call(h,L)){var W=h[L];if(W==null)continue;switch(L){case"children":B=W;break;case"dangerouslySetInnerHTML":_=W;break;case"style":Es(d,x,W);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ce(L)&&typeof W!="function"&&typeof W!="symbol"&&d.push(er,y(L),qr,y(tt(W)),Bn);break}}return d.push(tr),Di(d,_,B),B}var Bs=S(`
|
|
36
|
+
`);function bp(d,h,b,x){d.push(Yt(b));var B=null,_=null;for(var L in h)if(z.call(h,L)){var W=h[L];if(W==null)continue;switch(L){case"children":B=W;break;case"dangerouslySetInnerHTML":_=W;break;default:Ft(d,x,L,W);break}}if(d.push(tr),_!=null){if(B!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof _!="object"||!("__html"in _))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var J=_.__html;J!=null&&(typeof J=="string"&&J.length>0&&J[0]===`
|
|
37
|
+
`?d.push(Bs,y(J)):(H(J),d.push(y(""+J))))}return typeof B=="string"&&B[0]===`
|
|
38
|
+
`&&d.push(Bs),B}var Is=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,gu=new Map;function Yt(d){var h=gu.get(d);if(h===void 0){if(!Is.test(d))throw new Error("Invalid tag: "+d);h=S("<"+d),gu.set(d,h)}return h}var vp=S("<!DOCTYPE html>");function yp(d,h,b,x,B){switch(gt(h,b),Pt(h,b),Y(h,b,null),!b.suppressContentEditableWarning&&b.contentEditable&&b.children!=null&&o("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),B.insertionMode!==Vr&&B.insertionMode!==Eo&&h.indexOf("-")===-1&&typeof b.is!="string"&&h.toLowerCase()!==h&&o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",h),h){case"select":return cp(d,b,x);case"option":return dp(d,b,x,B);case"textarea":return hp(d,b,x);case"input":return fp(d,b,x);case"menuitem":return Ap(d,b,x);case"title":return gp(d,b,x);case"listing":case"pre":return bp(d,b,h,x);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return pp(d,b,h,x);case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return Ts(d,b,h,x);case"html":return B.insertionMode===So&&d.push(vp),Ts(d,b,h,x);default:return h.indexOf("-")===-1&&typeof b.is!="string"?Ts(d,b,h,x):mp(d,b,h,x)}}var wp=S("</"),xp=S(">");function kp(d,h,b){switch(h){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:d.push(wp,y(h),xp)}}function mu(d,h){for(var b=h.bootstrapChunks,x=0;x<b.length-1;x++)f(d,b[x]);return x<b.length?p(d,b[x]):!0}var Sp=S('<template id="'),Cp=S('"></template>');function bu(d,h,b){f(d,Sp),f(d,h.placeholderPrefix);var x=y(b.toString(16));return f(d,x),p(d,Cp)}var Ep=S("<!--$-->"),Pp=S('<!--$?--><template id="'),Dp=S('"></template>'),Tp=S("<!--$!-->"),Ms=S("<!--/$-->"),Bp=S("<template"),Os=S('"'),Ip=S(' data-dgst="'),Mp=S(' data-msg="'),Op=S(' data-stck="'),_p=S("></template>");function Fp(d,h){return p(d,Ep)}function vu(d,h,b){if(f(d,Pp),b===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return f(d,b),p(d,Dp)}function Rp(d,h,b,x,B){var _;return _=p(d,Tp),f(d,Bp),b&&(f(d,Ip),f(d,y(tt(b))),f(d,Os)),x&&(f(d,Mp),f(d,y(tt(x))),f(d,Os)),B&&(f(d,Op),f(d,y(tt(B))),f(d,Os)),_=p(d,_p),_}function Lp(d,h){return p(d,Ms)}function yu(d,h){return p(d,Ms)}function Np(d,h){return p(d,Ms)}var zp=S('<div hidden id="'),Qp=S('">'),Hp=S("</div>"),Up=S('<svg aria-hidden="true" style="display:none" id="'),jp=S('">'),Wp=S("</svg>"),Vp=S('<math aria-hidden="true" style="display:none" id="'),Yp=S('">'),qp=S("</math>"),Kp=S('<table hidden id="'),Xp=S('">'),Gp=S("</table>"),Jp=S('<table hidden><tbody id="'),Zp=S('">'),$p=S("</tbody></table>"),eA=S('<table hidden><tr id="'),tA=S('">'),nA=S("</tr></table>"),rA=S('<table hidden><colgroup id="'),oA=S('">'),iA=S("</colgroup></table>");function aA(d,h,b,x){switch(b.insertionMode){case So:case Co:return f(d,zp),f(d,h.segmentPrefix),f(d,y(x.toString(16))),p(d,Qp);case Vr:return f(d,Up),f(d,h.segmentPrefix),f(d,y(x.toString(16))),p(d,jp);case Eo:return f(d,Vp),f(d,h.segmentPrefix),f(d,y(x.toString(16))),p(d,Yp);case Si:return f(d,Kp),f(d,h.segmentPrefix),f(d,y(x.toString(16))),p(d,Xp);case Ci:return f(d,Jp),f(d,h.segmentPrefix),f(d,y(x.toString(16))),p(d,Zp);case ws:return f(d,eA),f(d,h.segmentPrefix),f(d,y(x.toString(16))),p(d,tA);case Ei:return f(d,rA),f(d,h.segmentPrefix),f(d,y(x.toString(16))),p(d,oA);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function sA(d,h){switch(h.insertionMode){case So:case Co:return p(d,Hp);case Vr:return p(d,Wp);case Eo:return p(d,qp);case Si:return p(d,Gp);case Ci:return p(d,$p);case ws:return p(d,nA);case Ei:return p(d,iA);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var lA="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",_s='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',cA='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',uA=S(lA+';$RS("'),Fs=S('$RS("'),dA=S('","'),fA=S('")<\/script>');function wu(d,h,b){f(d,h.startInlineScript),h.sentCompleteSegmentFunction?f(d,Fs):(h.sentCompleteSegmentFunction=!0,f(d,uA)),f(d,h.segmentPrefix);var x=y(b.toString(16));return f(d,x),f(d,dA),f(d,h.placeholderPrefix),f(d,x),p(d,fA)}var xu=S(_s+';$RC("'),hA=S('$RC("'),pA=S('","'),AA=S('")<\/script>');function gA(d,h,b,x){if(f(d,h.startInlineScript),h.sentCompleteBoundaryFunction?f(d,hA):(h.sentCompleteBoundaryFunction=!0,f(d,xu)),b===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var B=y(x.toString(16));return f(d,b),f(d,pA),f(d,h.segmentPrefix),f(d,B),p(d,AA)}var qt=S(cA+';$RX("'),mA=S('$RX("'),ku=S('"'),Su=S(")<\/script>"),Ii=S(",");function Cu(d,h,b,x,B,_){if(f(d,h.startInlineScript),h.sentClientRenderFunction?f(d,mA):(h.sentClientRenderFunction=!0,f(d,qt)),b===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return f(d,b),f(d,ku),(x||B||_)&&(f(d,Ii),f(d,y(Do(x||"")))),(B||_)&&(f(d,Ii),f(d,y(Do(B||"")))),_&&(f(d,Ii),f(d,y(Do(_)))),p(d,Su)}var Rs=/[<\u2028\u2029]/g;function Do(d){var h=JSON.stringify(d);return h.replace(Rs,function(b){switch(b){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Dt=Object.assign,Ls=Symbol.for("react.element"),Mi=Symbol.for("react.portal"),Oi=Symbol.for("react.fragment"),To=Symbol.for("react.strict_mode"),Eu=Symbol.for("react.profiler"),Ns=Symbol.for("react.provider"),zs=Symbol.for("react.context"),Qs=Symbol.for("react.forward_ref"),_i=Symbol.for("react.suspense"),Hs=Symbol.for("react.suspense_list"),Us=Symbol.for("react.memo"),Fi=Symbol.for("react.lazy"),Pu=Symbol.for("react.scope"),Xe=Symbol.for("react.debug_trace_mode"),Bo=Symbol.for("react.legacy_hidden"),Du=Symbol.for("react.default_value"),js=Symbol.iterator,Tu="@@iterator";function Bu(d){if(d===null||typeof d!="object")return null;var h=js&&d[js]||d[Tu];return typeof h=="function"?h:null}function Iu(d,h,b){var x=d.displayName;if(x)return x;var B=h.displayName||h.name||"";return B!==""?b+"("+B+")":b}function Ws(d){return d.displayName||"Context"}function Ve(d){if(d==null)return null;if(typeof d.tag=="number"&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case Oi:return"Fragment";case Mi:return"Portal";case Eu:return"Profiler";case To:return"StrictMode";case _i:return"Suspense";case Hs:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case zs:var h=d;return Ws(h)+".Consumer";case Ns:var b=d;return Ws(b._context)+".Provider";case Qs:return Iu(d,d.render,"ForwardRef");case Us:var x=d.displayName||null;return x!==null?x:Ve(d.type)||"Memo";case Fi:{var B=d,_=B._payload,L=B._init;try{return Ve(L(_))}catch{return null}}}return null}var Kr=0,Mu,Ou,Ri,Li,Xr,Ni,Io;function _u(){}_u.__reactDisabledLog=!0;function Vs(){{if(Kr===0){Mu=console.log,Ou=console.info,Ri=console.warn,Li=console.error,Xr=console.group,Ni=console.groupCollapsed,Io=console.groupEnd;var d={configurable:!0,enumerable:!0,value:_u,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}Kr++}}function bA(){{if(Kr--,Kr===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Dt({},d,{value:Mu}),info:Dt({},d,{value:Ou}),warn:Dt({},d,{value:Ri}),error:Dt({},d,{value:Li}),group:Dt({},d,{value:Xr}),groupCollapsed:Dt({},d,{value:Ni}),groupEnd:Dt({},d,{value:Io})})}Kr<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var zi=n.ReactCurrentDispatcher,Ys;function xr(d,h,b){{if(Ys===void 0)try{throw Error()}catch(B){var x=B.stack.trim().match(/\n( *(at )?)/);Ys=x&&x[1]||""}return`
|
|
39
|
+
`+Ys+d}}var Qi=!1,Mo;{var Hi=typeof WeakMap=="function"?WeakMap:Map;Mo=new Hi}function Ui(d,h){if(!d||Qi)return"";{var b=Mo.get(d);if(b!==void 0)return b}var x;Qi=!0;var B=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var _;_=zi.current,zi.current=null,Vs();try{if(h){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(st){x=st}Reflect.construct(d,[],L)}else{try{L.call()}catch(st){x=st}d.call(L.prototype)}}else{try{throw Error()}catch(st){x=st}d()}}catch(st){if(st&&x&&typeof st.stack=="string"){for(var W=st.stack.split(`
|
|
40
|
+
`),J=x.stack.split(`
|
|
41
|
+
`),oe=W.length-1,le=J.length-1;oe>=1&&le>=0&&W[oe]!==J[le];)le--;for(;oe>=1&&le>=0;oe--,le--)if(W[oe]!==J[le]){if(oe!==1||le!==1)do if(oe--,le--,le<0||W[oe]!==J[le]){var ge=`
|
|
42
|
+
`+W[oe].replace(" at new "," at ");return d.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",d.displayName)),typeof d=="function"&&Mo.set(d,ge),ge}while(oe>=1&&le>=0);break}}}finally{Qi=!1,zi.current=_,bA(),Error.prepareStackTrace=B}var Te=d?d.displayName||d.name:"",ze=Te?xr(Te):"";return typeof d=="function"&&Mo.set(d,ze),ze}function qs(d,h,b){return Ui(d,!0)}function Oo(d,h,b){return Ui(d,!1)}function Fu(d){var h=d.prototype;return!!(h&&h.isReactComponent)}function Ks(d,h,b){if(d==null)return"";if(typeof d=="function")return Ui(d,Fu(d));if(typeof d=="string")return xr(d);switch(d){case _i:return xr("Suspense");case Hs:return xr("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case Qs:return Oo(d.render);case Us:return Ks(d.type,h,b);case Fi:{var x=d,B=x._payload,_=x._init;try{return Ks(_(B),h,b)}catch{}}}return""}var Gr={},Ru=n.ReactDebugCurrentFrame;function xn(d){if(d){var h=d._owner,b=Ks(d.type,d._source,h?h.type:null);Ru.setExtraStackFrame(b)}else Ru.setExtraStackFrame(null)}function ji(d,h,b,x,B){{var _=Function.call.bind(z);for(var L in d)if(_(d,L)){var W=void 0;try{if(typeof d[L]!="function"){var J=Error((x||"React class")+": "+b+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw J.name="Invariant Violation",J}W=d[L](h,L,x,b,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(oe){W=oe}W&&!(W instanceof Error)&&(xn(B),o("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",b,L,typeof W),xn(null)),W instanceof Error&&!(W.message in Gr)&&(Gr[W.message]=!0,xn(B),o("Failed %s type: %s",b,W.message),xn(null))}}}var _o;_o={};var kr={};Object.freeze(kr);function Xs(d,h){{var b=d.contextTypes;if(!b)return kr;var x={};for(var B in b)x[B]=h[B];{var _=Ve(d)||"Unknown";ji(b,x,"context",_)}return x}}function Lu(d,h,b,x){{if(typeof d.getChildContext!="function"){{var B=Ve(h)||"Unknown";_o[B]||(_o[B]=!0,o("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",B,B))}return b}var _=d.getChildContext();for(var L in _)if(!(L in x))throw new Error((Ve(h)||"Unknown")+'.getChildContext(): key "'+L+'" is not defined in childContextTypes.');{var W=Ve(h)||"Unknown";ji(x,_,"child context",W)}return Dt({},b,_)}}var Jr;Jr={};var Nu=null,kn=null;function Gs(d){d.context._currentValue=d.parentValue}function Js(d){d.context._currentValue=d.value}function Wi(d,h){if(d!==h){Gs(d);var b=d.parent,x=h.parent;if(b===null){if(x!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(x===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");Wi(b,x)}Js(h)}}function Zr(d){Gs(d);var h=d.parent;h!==null&&Zr(h)}function Vi(d){var h=d.parent;h!==null&&Vi(h),Js(d)}function zu(d,h){Gs(d);var b=d.parent;if(b===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");b.depth===h.depth?Wi(b,h):zu(b,h)}function Zs(d,h){var b=h.parent;if(b===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");d.depth===b.depth?Wi(d,b):Zs(d,b),Js(h)}function Fo(d){var h=kn,b=d;h!==b&&(h===null?Vi(b):b===null?Zr(h):h.depth===b.depth?Wi(h,b):h.depth>b.depth?zu(h,b):Zs(h,b),kn=b)}function $s(d,h){var b;b=d._currentValue,d._currentValue=h,d._currentRenderer!==void 0&&d._currentRenderer!==null&&d._currentRenderer!==Jr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),d._currentRenderer=Jr;var x=kn,B={parent:x,depth:x===null?0:x.depth+1,context:d,parentValue:b,value:h};return kn=B,B}function el(d){var h=kn;if(h===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");h.context!==d&&o("The parent context is not the expected context. This is probably a bug in React.");{var b=h.parentValue;b===Du?h.context._currentValue=h.context._defaultValue:h.context._currentValue=b,d._currentRenderer!==void 0&&d._currentRenderer!==null&&d._currentRenderer!==Jr&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),d._currentRenderer=Jr}return kn=h.parent}function tl(){return kn}function Sr(d){var h=d._currentValue;return h}function Yi(d){return d._reactInternals}function qi(d,h){d._reactInternals=h}var Ki={},Xi={},Ro,Gi,Ji,Zi,Qu,$i,nl,rl,ol;{Ro=new Set,Gi=new Set,Ji=new Set,nl=new Set,Zi=new Set,rl=new Set,ol=new Set;var il=new Set;$i=function(d,h){if(!(d===null||typeof d=="function")){var b=h+"_"+d;il.has(b)||(il.add(b),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",h,d))}},Qu=function(d,h){if(h===void 0){var b=Ve(d)||"Component";Zi.has(b)||(Zi.add(b),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",b))}}}function Hu(d,h){{var b=d.constructor,x=b&&Ve(b)||"ReactClass",B=x+"."+h;if(Ki[B])return;o(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
|
|
43
|
+
|
|
44
|
+
Please check the code for the %s component.`,h,h,x),Ki[B]=!0}}var Uu={isMounted:function(d){return!1},enqueueSetState:function(d,h,b){var x=Yi(d);x.queue===null?Hu(d,"setState"):(x.queue.push(h),b!=null&&$i(b,"setState"))},enqueueReplaceState:function(d,h,b){var x=Yi(d);x.replace=!0,x.queue=[h],b!=null&&$i(b,"setState")},enqueueForceUpdate:function(d,h){var b=Yi(d);b.queue===null?Hu(d,"forceUpdate"):h!=null&&$i(h,"setState")}};function al(d,h,b,x,B){var _=b(B,x);Qu(h,_);var L=_==null?x:Dt({},x,_);return L}function ea(d,h,b){var x=kr,B=d.contextType;if("contextType"in d){var _=B===null||B!==void 0&&B.$$typeof===zs&&B._context===void 0;if(!_&&!ol.has(d)){ol.add(d);var L="";B===void 0?L=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof B!="object"?L=" However, it is set to a "+typeof B+".":B.$$typeof===Ns?L=" Did you accidentally pass the Context.Provider instead?":B._context!==void 0?L=" Did you accidentally pass the Context.Consumer instead?":L=" However, it is set to an object with keys {"+Object.keys(B).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Ve(d)||"Component",L)}}typeof B=="object"&&B!==null?x=Sr(B):x=b;var W=new d(h,x);{if(typeof d.getDerivedStateFromProps=="function"&&(W.state===null||W.state===void 0)){var J=Ve(d)||"Component";Ro.has(J)||(Ro.add(J),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",J,W.state===null?"null":"undefined",J))}if(typeof d.getDerivedStateFromProps=="function"||typeof W.getSnapshotBeforeUpdate=="function"){var oe=null,le=null,ge=null;if(typeof W.componentWillMount=="function"&&W.componentWillMount.__suppressDeprecationWarning!==!0?oe="componentWillMount":typeof W.UNSAFE_componentWillMount=="function"&&(oe="UNSAFE_componentWillMount"),typeof W.componentWillReceiveProps=="function"&&W.componentWillReceiveProps.__suppressDeprecationWarning!==!0?le="componentWillReceiveProps":typeof W.UNSAFE_componentWillReceiveProps=="function"&&(le="UNSAFE_componentWillReceiveProps"),typeof W.componentWillUpdate=="function"&&W.componentWillUpdate.__suppressDeprecationWarning!==!0?ge="componentWillUpdate":typeof W.UNSAFE_componentWillUpdate=="function"&&(ge="UNSAFE_componentWillUpdate"),oe!==null||le!==null||ge!==null){var Te=Ve(d)||"Component",ze=typeof d.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Ji.has(Te)||(Ji.add(Te),o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
45
|
+
|
|
46
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
47
|
+
|
|
48
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
49
|
+
https://reactjs.org/link/unsafe-component-lifecycles`,Te,ze,oe!==null?`
|
|
50
|
+
`+oe:"",le!==null?`
|
|
51
|
+
`+le:"",ge!==null?`
|
|
52
|
+
`+ge:""))}}}return W}function vA(d,h,b){{var x=Ve(h)||"Component",B=d.render;B||(h.prototype&&typeof h.prototype.render=="function"?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",x):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",x)),d.getInitialState&&!d.getInitialState.isReactClassApproved&&!d.state&&o("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",x),d.getDefaultProps&&!d.getDefaultProps.isReactClassApproved&&o("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",x),d.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",x),d.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",x),d.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",x),h.contextType&&h.contextTypes&&!rl.has(h)&&(rl.add(h),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",x)),typeof d.componentShouldUpdate=="function"&&o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",x),h.prototype&&h.prototype.isPureReactComponent&&typeof d.shouldComponentUpdate<"u"&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Ve(h)||"A pure component"),typeof d.componentDidUnmount=="function"&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",x),typeof d.componentDidReceiveProps=="function"&&o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",x),typeof d.componentWillRecieveProps=="function"&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",x),typeof d.UNSAFE_componentWillRecieveProps=="function"&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",x);var _=d.props!==b;d.props!==void 0&&_&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",x,x),d.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",x,x),typeof d.getSnapshotBeforeUpdate=="function"&&typeof d.componentDidUpdate!="function"&&!Gi.has(h)&&(Gi.add(h),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Ve(h))),typeof d.getDerivedStateFromProps=="function"&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof d.getDerivedStateFromError=="function"&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof h.getSnapshotBeforeUpdate=="function"&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",x);var L=d.state;L&&(typeof L!="object"||yr(L))&&o("%s.state: must be set to an object or null",x),typeof d.getChildContext=="function"&&typeof h.childContextTypes!="object"&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",x)}}function yA(d,h){var b=h.state;if(typeof h.componentWillMount=="function"){if(h.componentWillMount.__suppressDeprecationWarning!==!0){var x=Ve(d)||"Unknown";Xi[x]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
53
|
+
|
|
54
|
+
* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
|
|
55
|
+
|
|
56
|
+
Please update the following components: %s`,x),Xi[x]=!0)}h.componentWillMount()}typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ve(d)||"Component"),Uu.enqueueReplaceState(h,h.state,null))}function wA(d,h,b,x){if(d.queue!==null&&d.queue.length>0){var B=d.queue,_=d.replace;if(d.queue=null,d.replace=!1,_&&B.length===1)h.state=B[0];else{for(var L=_?B[0]:h.state,W=!0,J=_?1:0;J<B.length;J++){var oe=B[J],le=typeof oe=="function"?oe.call(h,L,b,x):oe;le!=null&&(W?(W=!1,L=Dt({},L,le)):Dt(L,le))}h.state=L}}else d.queue=null}function ju(d,h,b,x){vA(d,h,b);var B=d.state!==void 0?d.state:null;d.updater=Uu,d.props=b,d.state=B;var _={queue:[],replace:!1};qi(d,_);var L=h.contextType;if(typeof L=="object"&&L!==null?d.context=Sr(L):d.context=x,d.state===b){var W=Ve(h)||"Component";nl.has(W)||(nl.add(W),o("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",W))}var J=h.getDerivedStateFromProps;typeof J=="function"&&(d.state=al(d,h,J,B,b)),typeof h.getDerivedStateFromProps!="function"&&typeof d.getSnapshotBeforeUpdate!="function"&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(yA(h,d),wA(_,d,b,x))}var xA={id:1,overflow:""};function kA(d){var h=d.overflow,b=d.id,x=b&~ll(b);return x.toString(32)+h}function sl(d,h,b){var x=d.id,B=d.overflow,_=Kt(x)-1,L=x&~(1<<_),W=b+1,J=Kt(h)+_;if(J>30){var oe=_-_%5,le=(1<<oe)-1,ge=(L&le).toString(32),Te=L>>oe,ze=_-oe,st=Kt(h)+ze,va=W<<ze,ya=va|Te,bd=ge+B;return{id:1<<st|ya,overflow:bd}}else{var wa=W<<_,Y8=wa|L,q8=B;return{id:1<<J|Y8,overflow:q8}}}function Kt(d){return 32-ta(d)}function ll(d){return 1<<Kt(d)-1}var ta=Math.clz32?Math.clz32:na,je=Math.log,Lo=Math.LN2;function na(d){var h=d>>>0;return h===0?32:31-(je(h)/Lo|0)|0}function ra(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var nr=typeof Object.is=="function"?Object.is:ra,Xt=null,cl=null,Rt=null,Fe=null,ln=!1,oa=!1,No=0,Sn=null,ia=0,SA=25,cn=!1,rr;function Cr(){if(Xt===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
57
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
58
|
+
2. You might be breaking the Rules of Hooks
|
|
59
|
+
3. You might have more than one copy of React in the same app
|
|
60
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return cn&&o("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),Xt}function CA(d,h){if(h===null)return o("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",rr),!1;d.length!==h.length&&o(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
61
|
+
|
|
62
|
+
Previous: %s
|
|
63
|
+
Incoming: %s`,rr,"["+d.join(", ")+"]","["+h.join(", ")+"]");for(var b=0;b<h.length&&b<d.length;b++)if(!nr(d[b],h[b]))return!1;return!0}function aa(){if(ia>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function ul(){return Fe===null?Rt===null?(ln=!1,Rt=Fe=aa()):(ln=!0,Fe=Rt):Fe.next===null?(ln=!1,Fe=Fe.next=aa()):(ln=!0,Fe=Fe.next),Fe}function Wu(d,h){Xt=h,cl=d,cn=!1,No=0}function Vu(d,h,b,x){for(;oa;)oa=!1,No=0,ia+=1,Fe=null,b=d(h,x);return dl(),b}function Yu(){var d=No!==0;return d}function dl(){cn=!1,Xt=null,cl=null,oa=!1,Rt=null,ia=0,Sn=null,Fe=null}function EA(d){return cn&&o("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Sr(d)}function PA(d){return rr="useContext",Cr(),Sr(d)}function fl(d,h){return typeof h=="function"?h(d):h}function DA(d){return rr="useState",qu(fl,d)}function qu(d,h,b){if(d!==fl&&(rr="useReducer"),Xt=Cr(),Fe=ul(),ln){var x=Fe.queue,B=x.dispatch;if(Sn!==null){var _=Sn.get(x);if(_!==void 0){Sn.delete(x);var L=Fe.memoizedState,W=_;do{var J=W.action;cn=!0,L=d(L,J),cn=!1,W=W.next}while(W!==null);return Fe.memoizedState=L,[L,B]}}return[Fe.memoizedState,B]}else{cn=!0;var oe;d===fl?oe=typeof h=="function"?h():h:oe=b!==void 0?b(h):h,cn=!1,Fe.memoizedState=oe;var le=Fe.queue={last:null,dispatch:null},ge=le.dispatch=sa.bind(null,Xt,le);return[Fe.memoizedState,ge]}}function Ku(d,h){Xt=Cr(),Fe=ul();var b=h===void 0?null:h;if(Fe!==null){var x=Fe.memoizedState;if(x!==null&&b!==null){var B=x[1];if(CA(b,B))return x[0]}}cn=!0;var _=d();return cn=!1,Fe.memoizedState=[_,b],_}function TA(d){Xt=Cr(),Fe=ul();var h=Fe.memoizedState;if(h===null){var b={current:d};return Object.seal(b),Fe.memoizedState=b,b}else return h}function BA(d,h){rr="useLayoutEffect",o("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function sa(d,h,b){if(ia>=SA)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(d===Xt){oa=!0;var x={action:b,next:null};Sn===null&&(Sn=new Map);var B=Sn.get(h);if(B===void 0)Sn.set(h,x);else{for(var _=B;_.next!==null;)_=_.next;_.next=x}}}function Xu(d,h){return Ku(function(){return d},h)}function hl(d,h,b){return Cr(),h(d._source)}function Gu(d,h,b){if(b===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return b()}function IA(d){return Cr(),d}function pl(){throw new Error("startTransition cannot be called during server rendering.")}function Al(){return Cr(),[!1,pl]}function gl(){var d=cl,h=kA(d.treeContext),b=la;if(b===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var x=No++;return $n(b,h,x)}function In(){}var ml={readContext:EA,useContext:PA,useMemo:Ku,useReducer:qu,useRef:TA,useState:DA,useInsertionEffect:In,useLayoutEffect:BA,useCallback:Xu,useImperativeHandle:In,useEffect:In,useDebugValue:In,useDeferredValue:IA,useTransition:Al,useId:gl,useMutableSource:hl,useSyncExternalStore:Gu},la=null;function bl(d){la=d}function MA(d){try{var h="",b=d;do{switch(b.tag){case 0:h+=xr(b.type,null,null);break;case 1:h+=Oo(b.type,null,null);break;case 2:h+=qs(b.type,null,null);break}b=b.parent}while(b);return h}catch(x){return`
|
|
64
|
+
Error generating stack: `+x.message+`
|
|
65
|
+
`+x.stack}}var ca=n.ReactCurrentDispatcher,or=n.ReactDebugCurrentFrame,vl=0,Cn=1,Ju=2,Zu=3,$u=4,yl=0,zo=1,Tt=2,wl=12800;function Qo(d){return console.error(d),null}function $r(){}function OA(d,h,b,x,B,_,L,W,J){var oe=[],le=new Set,ge={destination:null,responseState:h,progressiveChunkSize:x===void 0?wl:x,status:yl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:le,pingedTasks:oe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:B===void 0?Qo:B,onAllReady:_===void 0?$r:_,onShellReady:L===void 0?$r:L,onShellError:W===void 0?$r:W,onFatalError:J===void 0?$r:J},Te=ar(ge,0,null,b,!1,!1);Te.parentFlushed=!0;var ze=Uo(ge,d,null,Te,le,kr,Nu,xA);return oe.push(ze),ge}function ir(d,h){var b=d.pingedTasks;b.push(h),b.length===1&&a(function(){return Ad(d)})}function Ho(d,h){return{id:au,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:h,errorDigest:null}}function Uo(d,h,b,x,B,_,L,W){d.allPendingTasks++,b===null?d.pendingRootTasks++:b.pendingTasks++;var J={node:h,ping:function(){return ir(d,J)},blockedBoundary:b,blockedSegment:x,abortSet:B,legacyContext:_,context:L,treeContext:W};return J.componentStack=null,B.add(J),J}function ar(d,h,b,x,B,_){return{status:vl,id:-1,index:h,parentFlushed:!1,chunks:[],children:[],formatContext:x,boundary:b,lastPushedText:B,textEmbedded:_}}var Gt=null;function xl(){return Gt===null||Gt.componentStack===null?"":MA(Gt.componentStack)}function jo(d,h){d.componentStack={tag:0,parent:d.componentStack,type:h}}function ed(d,h){d.componentStack={tag:1,parent:d.componentStack,type:h}}function td(d,h){d.componentStack={tag:2,parent:d.componentStack,type:h}}function Mn(d){d.componentStack===null?o("Unexpectedly popped too many stack frames. This is a bug in React."):d.componentStack=d.componentStack.parent}var Wo=null;function ua(d,h){{var b;typeof h=="string"?b=h:h&&typeof h.message=="string"?b=h.message:b=String(h);var x=Wo||xl();Wo=null,d.errorMessage=b,d.errorComponentStack=x}}function sr(d,h){var b=d.onError(h);if(b!=null&&typeof b!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof b+'" instead');return b}function Vo(d,h){var b=d.onShellError;b(h);var x=d.onFatalError;x(h),d.destination!==null?(d.status=Tt,T(d.destination,h)):(d.status=zo,d.fatalError=h)}function nd(d,h,b){jo(h,"Suspense");var x=h.blockedBoundary,B=h.blockedSegment,_=b.fallback,L=b.children,W=new Set,J=Ho(d,W),oe=B.chunks.length,le=ar(d,oe,J,B.formatContext,!1,!1);B.children.push(le),B.lastPushedText=!1;var ge=ar(d,0,null,B.formatContext,!1,!1);ge.parentFlushed=!0,h.blockedBoundary=J,h.blockedSegment=ge;try{if(eo(d,h,L),ks(ge.chunks,d.responseState,ge.lastPushedText,ge.textEmbedded),ge.status=Cn,ga(J,ge),J.pendingTasks===0){Mn(h);return}}catch(ze){ge.status=$u,J.forceClientRender=!0,J.errorDigest=sr(d,ze),ua(J,ze)}finally{h.blockedBoundary=x,h.blockedSegment=B}var Te=Uo(d,_,x,le,W,h.legacyContext,h.context,h.treeContext);Te.componentStack=h.componentStack,d.pingedTasks.push(Te),Mn(h)}function rd(d,h,b,x){jo(h,b);var B=h.blockedSegment,_=yp(B.chunks,b,x,d.responseState,B.formatContext);B.lastPushedText=!1;var L=B.formatContext;B.formatContext=wr(L,b,x),eo(d,h,_),B.formatContext=L,kp(B.chunks,b),B.lastPushedText=!1,Mn(h)}function od(d){return d.prototype&&d.prototype.isReactComponent}function kl(d,h,b,x,B){var _={};Wu(h,_);var L=b(x,B);return Vu(b,x,L,B)}function Sl(d,h,b,x,B){var _=b.render();b.props!==B&&(ld||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ve(x)||"a component"),ld=!0);{var L=x.childContextTypes;if(L!=null){var W=h.legacyContext,J=Lu(b,x,W,L);h.legacyContext=J,Bt(d,h,_),h.legacyContext=W;return}}Bt(d,h,_)}function id(d,h,b,x){td(h,b);var B=Xs(b,h.legacyContext),_=ea(b,x,B);ju(_,b,x,B),Sl(d,h,_,b,x),Mn(h)}var ad={},da={},Cl={},sd={},ld=!1,cd={},ud=!1,dd=!1,fa=!1;function _A(d,h,b,x){var B;if(B=Xs(b,h.legacyContext),ed(h,b),b.prototype&&typeof b.prototype.render=="function"){var _=Ve(b)||"Unknown";ad[_]||(o("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",_,_),ad[_]=!0)}var L=kl(d,h,b,x,B),W=Yu();if(typeof L=="object"&&L!==null&&typeof L.render=="function"&&L.$$typeof===void 0){var J=Ve(b)||"Unknown";da[J]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",J,J,J),da[J]=!0)}if(typeof L=="object"&&L!==null&&typeof L.render=="function"&&L.$$typeof===void 0){{var oe=Ve(b)||"Unknown";da[oe]||(o("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",oe,oe,oe),da[oe]=!0)}ju(L,b,x,B),Sl(d,h,L,b,x)}else if(Lt(b),W){var le=h.treeContext,ge=1,Te=0;h.treeContext=sl(le,ge,Te);try{Bt(d,h,L)}finally{h.treeContext=le}}else Bt(d,h,L);Mn(h)}function Lt(d){{if(d&&d.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",d.displayName||d.name||"Component"),d.defaultProps!==void 0){var h=Ve(d)||"Unknown";cd[h]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",h),cd[h]=!0)}if(typeof d.getDerivedStateFromProps=="function"){var b=Ve(d)||"Unknown";sd[b]||(o("%s: Function components do not support getDerivedStateFromProps.",b),sd[b]=!0)}if(typeof d.contextType=="object"&&d.contextType!==null){var x=Ve(d)||"Unknown";Cl[x]||(o("%s: Function components do not support contextType.",x),Cl[x]=!0)}}}function fd(d,h){if(d&&d.defaultProps){var b=Dt({},h),x=d.defaultProps;for(var B in x)b[B]===void 0&&(b[B]=x[B]);return b}return h}function hd(d,h,b,x,B){ed(h,b.render);var _=kl(d,h,b.render,x,B),L=Yu();if(L){var W=h.treeContext,J=1,oe=0;h.treeContext=sl(W,J,oe);try{Bt(d,h,_)}finally{h.treeContext=W}}else Bt(d,h,_);Mn(h)}function FA(d,h,b,x,B){var _=b.type,L=fd(_,x);ha(d,h,_,L,B)}function El(d,h,b,x){b._context===void 0?b!==b.Consumer&&(fa||(fa=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):b=b._context;var B=x.children;typeof B!="function"&&o("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var _=Sr(b),L=B(_);Bt(d,h,L)}function RA(d,h,b,x){var B=b._context,_=x.value,L=x.children,W;W=h.context,h.context=$s(B,_),Bt(d,h,L),h.context=el(B),W!==h.context&&o("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function LA(d,h,b,x,B){jo(h,"Lazy");var _=b._payload,L=b._init,W=L(_),J=fd(W,x);ha(d,h,W,J,B),Mn(h)}function ha(d,h,b,x,B){if(typeof b=="function")if(od(b)){id(d,h,b,x);return}else{_A(d,h,b,x);return}if(typeof b=="string"){rd(d,h,b,x);return}switch(b){case Bo:case Xe:case To:case Eu:case Oi:{Bt(d,h,x.children);return}case Hs:{jo(h,"SuspenseList"),Bt(d,h,x.children),Mn(h);return}case Pu:throw new Error("ReactDOMServer does not yet support scope components.");case _i:{nd(d,h,x);return}}if(typeof b=="object"&&b!==null)switch(b.$$typeof){case Qs:{hd(d,h,b,x,B);return}case Us:{FA(d,h,b,x,B);return}case Ns:{RA(d,h,b,x);return}case zs:{El(d,h,b,x);return}case Fi:{LA(d,h,b,x);return}}var _="";throw(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(b==null?b:typeof b)+"."+_))}function pa(d,h){typeof Symbol=="function"&&d[Symbol.toStringTag]==="Generator"&&(ud||o("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),ud=!0),d.entries===h&&(dd||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),dd=!0)}function Bt(d,h,b){try{return NA(d,h,b)}catch(x){throw typeof x=="object"&&x!==null&&typeof x.then=="function"||(Wo=Wo!==null?Wo:xl()),x}}function NA(d,h,b){if(h.node=b,typeof b=="object"&&b!==null){switch(b.$$typeof){case Ls:{var x=b,B=x.type,_=x.props,L=x.ref;ha(d,h,B,_,L);return}case Mi:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case Fi:{var W=b,J=W._payload,oe=W._init,le;try{le=oe(J)}catch(wa){throw typeof wa=="object"&&wa!==null&&typeof wa.then=="function"&&jo(h,"Lazy"),wa}Bt(d,h,le);return}}if(yr(b)){Pl(d,h,b);return}var ge=Bu(b);if(ge){pa(b,ge);var Te=ge.call(b);if(Te){var ze=Te.next();if(!ze.done){var st=[];do st.push(ze.value),ze=Te.next();while(!ze.done);Pl(d,h,st);return}return}}var va=Object.prototype.toString.call(b);throw new Error("Objects are not valid as a React child (found: "+(va==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":va)+"). If you meant to render a collection of children, use an array instead.")}if(typeof b=="string"){var ya=h.blockedSegment;ya.lastPushedText=xs(h.blockedSegment.chunks,b,d.responseState,ya.lastPushedText);return}if(typeof b=="number"){var bd=h.blockedSegment;bd.lastPushedText=xs(h.blockedSegment.chunks,""+b,d.responseState,bd.lastPushedText);return}typeof b=="function"&&o("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Pl(d,h,b){for(var x=b.length,B=0;B<x;B++){var _=h.treeContext;h.treeContext=sl(_,x,B);try{eo(d,h,b[B])}finally{h.treeContext=_}}}function Aa(d,h,b){var x=h.blockedSegment,B=x.chunks.length,_=ar(d,B,null,x.formatContext,x.lastPushedText,!0);x.children.push(_),x.lastPushedText=!1;var L=Uo(d,h.node,h.blockedBoundary,_,h.abortSet,h.legacyContext,h.context,h.treeContext);h.componentStack!==null&&(L.componentStack=h.componentStack.parent);var W=L.ping;b.then(W,W)}function eo(d,h,b){var x=h.blockedSegment.formatContext,B=h.legacyContext,_=h.context,L=null;L=h.componentStack;try{return Bt(d,h,b)}catch(W){if(dl(),typeof W=="object"&&W!==null&&typeof W.then=="function"){Aa(d,h,W),h.blockedSegment.formatContext=x,h.legacyContext=B,h.context=_,Fo(_),h.componentStack=L;return}else throw h.blockedSegment.formatContext=x,h.legacyContext=B,h.context=_,Fo(_),h.componentStack=L,W}}function zA(d,h,b,x){var B=sr(d,x);if(h===null?Vo(d,x):(h.pendingTasks--,h.forceClientRender||(h.forceClientRender=!0,h.errorDigest=B,ua(h,x),h.parentFlushed&&d.clientRenderedBoundaries.push(h))),d.allPendingTasks--,d.allPendingTasks===0){var _=d.onAllReady;_()}}function pd(d){var h=this,b=d.blockedBoundary,x=d.blockedSegment;x.status=Zu,Tl(h,b,x)}function Dl(d,h,b){var x=d.blockedBoundary,B=d.blockedSegment;if(B.status=Zu,x===null)h.allPendingTasks--,h.status!==Tt&&(h.status=Tt,h.destination!==null&&v(h.destination));else{if(x.pendingTasks--,!x.forceClientRender){x.forceClientRender=!0;var _=b===void 0?new Error("The render was aborted by the server without a reason."):b;x.errorDigest=h.onError(_);{var L="The server did not finish this Suspense boundary: ";_&&typeof _.message=="string"?_=L+_.message:_=L+String(_);var W=Gt;Gt=d;try{ua(x,_)}finally{Gt=W}}x.parentFlushed&&h.clientRenderedBoundaries.push(x)}if(x.fallbackAbortableTasks.forEach(function(oe){return Dl(oe,h,b)}),x.fallbackAbortableTasks.clear(),h.allPendingTasks--,h.allPendingTasks===0){var J=h.onAllReady;J()}}}function ga(d,h){if(h.chunks.length===0&&h.children.length===1&&h.children[0].boundary===null){var b=h.children[0];b.id=h.id,b.parentFlushed=!0,b.status===Cn&&ga(d,b)}else{var x=d.completedSegments;x.push(h)}}function Tl(d,h,b){if(h===null){if(b.parentFlushed){if(d.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");d.completedRootSegment=b}if(d.pendingRootTasks--,d.pendingRootTasks===0){d.onShellError=$r;var x=d.onShellReady;x()}}else if(h.pendingTasks--,!h.forceClientRender){if(h.pendingTasks===0)b.parentFlushed&&b.status===Cn&&ga(h,b),h.parentFlushed&&d.completedBoundaries.push(h),h.fallbackAbortableTasks.forEach(pd,d),h.fallbackAbortableTasks.clear();else if(b.parentFlushed&&b.status===Cn){ga(h,b);var B=h.completedSegments;B.length===1&&h.parentFlushed&&d.partialBoundaries.push(h)}}if(d.allPendingTasks--,d.allPendingTasks===0){var _=d.onAllReady;_()}}function Bl(d,h){var b=h.blockedSegment;if(b.status===vl){Fo(h.context);var x=null;x=Gt,Gt=h;try{Bt(d,h,h.node),ks(b.chunks,d.responseState,b.lastPushedText,b.textEmbedded),h.abortSet.delete(h),b.status=Cn,Tl(d,h.blockedBoundary,b)}catch(_){if(dl(),typeof _=="object"&&_!==null&&typeof _.then=="function"){var B=h.ping;_.then(B,B)}else h.abortSet.delete(h),b.status=$u,zA(d,h.blockedBoundary,b,_)}finally{Gt=x}}}function Ad(d){if(d.status!==Tt){var h=tl(),b=ca.current;ca.current=ml;var x;x=or.getCurrentStack,or.getCurrentStack=xl;var B=la;bl(d.responseState);try{var _=d.pingedTasks,L;for(L=0;L<_.length;L++){var W=_[L];Bl(d,W)}_.splice(0,L),d.destination!==null&&Ml(d,d.destination)}catch(J){sr(d,J),Vo(d,J)}finally{bl(B),ca.current=b,or.getCurrentStack=x,b===ml&&Fo(h)}}}function ma(d,h,b){switch(b.parentFlushed=!0,b.status){case vl:{var x=b.id=d.nextSegmentId++;return b.lastPushedText=!1,b.textEmbedded=!1,bu(h,d.responseState,x)}case Cn:{b.status=Ju;for(var B=!0,_=b.chunks,L=0,W=b.children,J=0;J<W.length;J++){for(var oe=W[J];L<oe.index;L++)f(h,_[L]);B=ba(d,h,oe)}for(;L<_.length-1;L++)f(h,_[L]);return L<_.length&&(B=p(h,_[L])),B}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ba(d,h,b){var x=b.boundary;if(x===null)return ma(d,h,b);if(x.parentFlushed=!0,x.forceClientRender)return Rp(h,d.responseState,x.errorDigest,x.errorMessage,x.errorComponentStack),ma(d,h,b),Np(h,d.responseState);if(x.pendingTasks>0){x.rootSegmentID=d.nextSegmentId++,x.completedSegments.length>0&&d.partialBoundaries.push(x);var B=x.id=_t(d.responseState);return vu(h,d.responseState,B),ma(d,h,b),yu(h,d.responseState)}else{if(x.byteSize>d.progressiveChunkSize)return x.rootSegmentID=d.nextSegmentId++,d.completedBoundaries.push(x),vu(h,d.responseState,x.id),ma(d,h,b),yu(h,d.responseState);Fp(h,d.responseState);var _=x.completedSegments;if(_.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var L=_[0];return ba(d,h,L),Lp(h,d.responseState)}}function QA(d,h,b){return Cu(h,d.responseState,b.id,b.errorDigest,b.errorMessage,b.errorComponentStack)}function Il(d,h,b){return aA(h,d.responseState,b.formatContext,b.id),ba(d,h,b),sA(h,b.formatContext)}function gd(d,h,b){for(var x=b.completedSegments,B=0;B<x.length;B++){var _=x[B];md(d,h,b,_)}return x.length=0,gA(h,d.responseState,b.id,b.rootSegmentID)}function HA(d,h,b){for(var x=b.completedSegments,B=0;B<x.length;B++){var _=x[B];if(!md(d,h,b,_))return B++,x.splice(0,B),!1}return x.splice(0,B),!0}function md(d,h,b,x){if(x.status===Ju)return!0;var B=x.id;if(B===-1){var _=x.id=b.rootSegmentID;if(_===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Il(d,h,x)}else return Il(d,h,x),wu(h,d.responseState,B)}function Ml(d,h){u();try{var b=d.completedRootSegment;b!==null&&d.pendingRootTasks===0&&(ba(d,h,b),d.completedRootSegment=null,mu(h,d.responseState));var x=d.clientRenderedBoundaries,B;for(B=0;B<x.length;B++){var _=x[B];QA(d,h,_)}x.splice(0,B);var L=d.completedBoundaries;for(B=0;B<L.length;B++){var W=L[B];gd(d,h,W)}L.splice(0,B),m(h),u(h);var J=d.partialBoundaries;for(B=0;B<J.length;B++){var oe=J[B];if(!HA(d,h,oe)){d.destination=null,B++,J.splice(0,B);return}}J.splice(0,B);var le=d.completedBoundaries;for(B=0;B<le.length;B++){var ge=le[B];gd(d,h,ge)}le.splice(0,B)}finally{m(h),d.allPendingTasks===0&&d.pingedTasks.length===0&&d.clientRenderedBoundaries.length===0&&d.completedBoundaries.length===0&&(d.abortableTasks.size!==0&&o("There was still abortable task at the root when we closed. This is a bug in React."),v(h))}}function A(d){a(function(){return Ad(d)})}function g(d,h){if(d.status===zo){d.status=Tt,T(h,d.fatalError);return}if(d.status!==Tt&&d.destination===null){d.destination=h;try{Ml(d,h)}catch(b){sr(d,b),Vo(d,b)}}}function C(d,h){try{var b=d.abortableTasks;b.forEach(function(x){return Dl(x,d,h)}),b.clear(),d.destination!==null&&Ml(d,d.destination)}catch(x){sr(d,x),Vo(d,x)}}function D(d,h){return new Promise(function(b,x){var B,_,L=new Promise(function(Te,ze){_=Te,B=ze});function W(){var Te=new ReadableStream({type:"bytes",pull:function(ze){g(oe,ze)},cancel:function(ze){C(oe)}},{highWaterMark:0});Te.allReady=L,b(Te)}function J(Te){L.catch(function(){}),x(Te)}var oe=OA(d,iu(h?h.identifierPrefix:void 0,h?h.nonce:void 0,h?h.bootstrapScriptContent:void 0,h?h.bootstrapScripts:void 0,h?h.bootstrapModules:void 0),Yr(h?h.namespaceURI:void 0),h?h.progressiveChunkSize:void 0,h?h.onError:void 0,_,W,J,B);if(h&&h.signal){var le=h.signal,ge=function(){C(oe,le.reason),le.removeEventListener("abort",ge)};le.addEventListener("abort",ge)}A(oe)})}Nd.renderToReadableStream=D,Nd.version=e})()),Nd}var Xo,Bg;Xo=M1(),Bg=O1(),to.version=Xo.version,to.renderToString=Xo.renderToString,to.renderToStaticMarkup=Xo.renderToStaticMarkup,to.renderToNodeStream=Xo.renderToNodeStream,to.renderToStaticNodeStream=Xo.renderToStaticNodeStream,to.renderToReadableStream=Bg.renderToReadableStream;function Ig(t,e){e===void 0&&(e={});var n=e.insertAt;if(t&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}Ig('.rcb-chat-header-container{border-bottom:1px solid #ccc;color:#fff;display:flex;justify-content:space-between;max-height:55px;padding:12px}.rcb-chat-header{display:flex;flex-direction:row}.rcb-bot-avatar{background-size:cover;border-radius:50%;height:30px;margin-right:12px;width:30px}.rcb-message-prompt-container.visible{align-items:center;animation:rcb-animation-pop-in .3s ease-in-out;bottom:0;display:flex;justify-content:center;margin:auto;opacity:1;pointer-events:auto;position:sticky}.rcb-message-prompt-container.hidden{height:0;opacity:0;pointer-events:none;visibility:hidden}.rcb-message-prompt-text{background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;font-size:12px;padding:6px 12px;transition:color .3s ease,border-color .3s ease;z-index:9999}.rcb-message-prompt-container.hidden .rcb-message-prompt-text{padding:0}.rcb-user-message-container{display:flex;flex-direction:row;justify-content:right}.rcb-user-message{border-radius:22px;font-size:15px;height:fit-content;margin-right:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:right;white-space:pre-wrap;width:fit-content}.rcb-user-message-offset{margin-right:50px}.rcb-user-message-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-message-user-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:-10px;margin-right:6px;margin-top:9px;width:40px}.rcb-bot-message-container{display:flex;flex-direction:row}.rcb-bot-message{border-radius:22px;font-size:15px;height:fit-content;margin-left:16px;margin-top:8px;min-height:20px;overflow:auto;overflow-wrap:anywhere;padding:12px 16px;text-align:left;white-space:pre-wrap;width:fit-content}.rcb-bot-message-offset{margin-left:50px}.rcb-bot-message-entry{animation:rcb-animation-bot-message-entry .3s ease-in backwards}.rcb-message-bot-avatar{background-size:cover;border-radius:50%;height:40px;margin-left:6px;margin-right:-10px;margin-top:9px;width:40px}.rcb-typing-indicator{align-items:center;display:flex}.rcb-dot{animation:rcb-animation-bot-typing 1s infinite;background-color:#ccc;border-radius:50%;height:8px;margin-right:4px;width:8px}.rcb-dot:nth-child(2){animation-delay:.2s}.rcb-dot:nth-child(3){animation-delay:.4s}.rcb-chat-body-container{height:100%;overflow-x:hidden;overflow-y:scroll;padding-bottom:16px;position:relative;touch-action:pan-y;width:100%}.rcb-chat-body-container::-webkit-scrollbar-track{background-color:#f1f1f1}.rcb-chat-body-container::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:4px}.rcb-chat-body-container::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.rcb-chat-body-container::-webkit-scrollbar-corner{background-color:#f1f1f1}.rcb-checkbox-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;padding-top:12px}.rcb-checkbox-offset{margin-left:50px!important}.rcb-checkbox-row-container{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:flex;gap:5px;max-height:32px;min-height:30px;overflow:hidden;width:80%}.rcb-checkbox-row-container:hover{box-shadow:0 0 5px #0003}.rcb-checkbox-row{align-items:center;cursor:pointer;display:inline-flex;margin-left:10px}.rcb-checkbox-mark{align-items:center;background-color:#f2f2f2;border:none;border-radius:50%;cursor:pointer;display:flex;height:20px;justify-content:center;margin-right:10px;transition:all .3s ease;width:20px}.rcb-checkbox-mark:hover{background-color:#c2c2c2}.rcb-checkbox-mark:before{content:"✓";transition:all .3s ease}.rcb-checkbox-label{font-size:14px}.rcb-checkbox-next-button{align-items:center;animation:rcb-animations-checkboxes-entry .5s ease-out;background-color:#fff;border-radius:10px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-block;font-size:24px;max-height:32px;min-height:30px;text-align:center;width:80%}.rcb-checkbox-next-button:before{content:"→"}.rcb-checkbox-next-button:hover{box-shadow:0 0 5px #0003}.rcb-options-container{display:flex;flex-wrap:wrap;gap:10px;margin-left:16px;max-width:70%;padding-top:12px}.rcb-options-offset{margin-left:50px!important}.rcb-options{align-items:center;animation:rcb-animation-options-entry .5s ease-out;border-radius:20px;border-style:solid;border-width:.5px;cursor:pointer;display:inline-flex;font-size:14px;justify-content:center;overflow:hidden;padding:10px 20px;transition:background-color .3s ease}.rcb-options:hover{box-shadow:0 0 5px #0003}.rcb-line-break-container{align-items:center;display:flex;justify-content:center;max-height:45px;padding-bottom:5px;padding-top:10px}.rcb-line-break-text{color:#adadad;font-size:12px;padding:6px 12px}.rcb-spinner-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-spinner{animation:rcb-animation-spin 1s linear infinite;border:4px solid #f3f3f3;border-radius:50%;height:22px;width:22px}.rcb-chat-input{align-items:center;background-color:#fff;border-top:1px solid #ccc;display:flex;padding:8px 16px}.rcb-chat-input::placeholder{color:#999}.rcb-chat-input-textarea{background-color:#fff;border:none;border-radius:4px;color:#000;flex:1;font-family:inherit;font-size:16px;height:auto;min-height:38px;outline:none;overflow-y:scroll;padding:8px;resize:none;touch-action:none}.rcb-chat-input-textarea::-webkit-scrollbar,.rcb-chat-input-textarea::-webkit-scrollbar-thumb{background-color:initial}.rcb-chat-input-textarea::-webkit-scrollbar-thumb:hover{background-color:initial}.rcb-chat-input-char-counter{font-size:14px;margin-left:8px;margin-top:3px}.rcb-chat-footer-container{align-items:flex-end;background-color:#f2f2f2;border-top:1px solid #ccc;color:#000;display:flex;font-size:12px;justify-content:space-between;max-height:55px;padding:12px 16px 8px 10px}.rcb-chat-footer,.rcb-toggle-button{display:flex;flex-direction:row}.rcb-toggle-button{border:none;border-radius:50%;bottom:20px;box-shadow:0 2px 4px #0003;cursor:pointer;height:75px;position:fixed;right:20px;width:75px;z-index:9999}.rcb-toggle-button.rcb-button-hide{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}.rcb-toggle-button.rcb-button-show{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-toggle-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;border-radius:inherit;height:100%;margin:auto;width:100%}.rcb-badge,.rcb-toggle-icon{align-items:center;display:flex;justify-content:center}.rcb-badge{background-color:red;border-radius:50%;color:#fff;height:25px;position:absolute;right:-6px;top:-6px;width:25px}.rcb-chat-tooltip{border-radius:20px;box-shadow:0 2px 6px #0003;cursor:pointer;font-size:20px;padding:16px;position:fixed;transition:transform .3s ease;white-space:nowrap;z-index:9999}.rcb-chat-tooltip-tail{border-style:solid;border-width:10px 0 10px 10px;content:"";margin-top:-10px;position:absolute;right:-10px;top:50%}.rcb-chat-tooltip.rcb-tooltip-hide{animation:rcb-animation-tooltip-out .5s ease-in-out;opacity:0;visibility:hidden}.rcb-chat-tooltip.rcb-tooltip-show{animation:rcb-animation-tooltip-in .5s ease-in-out;opacity:1;visibility:visible}.rcb-toast-prompt{animation:rcb-animation-pop-in .3s ease-in-out;background-color:#fff;border:.5px solid #7a7a7a;border-radius:5px;color:#7a7a7a;cursor:pointer;font-size:12px;margin-top:6px;padding:6px 12px;text-align:center;transition:color .3s ease,border-color .3s ease;width:100%;z-index:9999}.rcb-toast-prompt-container{align-items:center;animation:popIn .3s ease-in-out;bottom:0;display:flex;flex-direction:column;justify-content:flex-end;left:50%;margin:200 auto auto;opacity:1;pointer-events:auto;position:absolute;transform:translate(-50%)}.rcb-media-display-image-container,.rcb-media-display-video-container{border-radius:22px;margin-right:16px;margin-top:8px;padding:16px;width:fit-content}.rcb-media-display-offset{margin-right:50px!important}.rcb-media-display-image{border-radius:22px;height:auto;object-fit:cover;width:100%}.rcb-media-display-video{background-color:#000;border-radius:22px;height:auto;width:100%}.rcb-media-display-audio{border-radius:22px;height:auto;margin-right:16px;margin-top:8px;width:100%}.rcb-media-entry{animation:rcb-animation-user-message-entry .3s ease-in backwards}.rcb-attach-button-disabled,.rcb-attach-button-enabled{background-size:cover;border-radius:6px;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-attach-button-disabled input[type=file],.rcb-attach-button-enabled input[type=file]{display:none;height:100%;position:absolute;width:100%}.rcb-attach-button-enabled{cursor:pointer}.rcb-attach-button-disabled{opacity:.5}.rcb-attach-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-attach-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-attach-icon-disabled,.rcb-attach-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;height:24px;margin-top:2px;transition:background-image .3s ease;width:24px}.rcb-attach-icon-enabled{cursor:pointer}.rcb-emoji-button-disabled,.rcb-emoji-button-enabled{background-size:cover;border-radius:6px;cursor:pointer;display:inline-block;height:30px;position:relative;text-align:center;width:30px}.rcb-emoji-icon-disabled,.rcb-emoji-icon-enabled{background-repeat:no-repeat;background-size:cover;display:inline-block;font-size:20px;height:24px;margin-top:2px;position:relative;width:24px}.rcb-emoji-icon-enabled{cursor:pointer}.rcb-emoji-icon-disabled{opacity:.5}.rcb-emoji-button-enabled:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-emoji-button-enabled:hover:after{height:130%;opacity:1;width:130%}.rcb-emoji-button-popup{background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 4px #0003;max-height:200px;overflow-y:auto;padding:8px;position:absolute;transform:translateY(calc(-100% - 30px));width:158px}.rcb-emoji{cursor:pointer;font-size:24px;padding:3px;transition:transform .2s ease-in-out}.rcb-emoji:hover{transform:scale(1.2)}.rcb-audio-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-audio-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-audio-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-close-chat-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-close-chat-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-close-chat-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-notification-icon{background-size:cover;border:none;cursor:pointer;display:inline-block;height:30px;margin-left:5px;position:relative;width:30px}.rcb-notification-icon:after{background-color:#0000001a;border-radius:50%;content:"";height:0;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);transition:width .2s ease-out,height .2s ease-out,opacity .2s ease-out;width:0}.rcb-notification-icon:hover:after{height:130%;opacity:1;width:130%}.rcb-voice-button-disabled,.rcb-voice-button-enabled{align-items:center;background-color:#fff;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:all .3s ease;width:32px}.rcb-voice-button-enabled{border:1px solid red;box-shadow:0 0 3px #ff000080}.rcb-voice-button-enabled:hover{border:1px solid #3d0000}.rcb-voice-button-disabled{border:1px;border-color:#0003;border-style:solid}.rcb-voice-button-disabled:hover{box-shadow:0 0 3px #8a0000}.rcb-voice-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:60%;object-fit:cover;width:60%}.rcb-voice-icon.on{animation:rcb-animation-ping 1s infinite}.rcb-send-button{border:none;border-radius:4px;box-shadow:0 0 3px #0000004d;cursor:pointer;display:inline-flex;height:32px;justify-content:center;margin-left:8px;text-transform:uppercase;transition:background-color .3s ease;width:51px}.rcb-send-icon{background-position:50%;background-repeat:no-repeat;background-size:cover;background-size:contain;height:50%;object-fit:cover;transform:translateY(20%);width:50%}.rcb-view-history-container{align-items:center;display:flex;justify-content:center;max-height:45px;min-height:35px;padding-bottom:5px;padding-top:10px}.rcb-view-history-button{align-items:center;background-color:#fff;border:.5px solid #adadad;border-radius:20px;color:#adadad;cursor:pointer;display:inline-flex;font-size:12px;justify-content:center;max-width:60%;padding:6px 12px;transition:color .3s ease,border-color .3s ease}.rcb-view-history-button>p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rcb-chatbot-global{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.5;z-index:9999}.rcb-chat-window{background-color:#fff;border-radius:10px;bottom:20px;box-shadow:0 2px 4px #0003;display:flex;flex-direction:column;height:550px;overflow:hidden;position:fixed;right:20px;transition:all .3s ease;width:375px}.rcb-window-embedded .rcb-chat-window{bottom:auto;opacity:1;position:relative;right:auto;visibility:visible}.rcb-window-open .rcb-chat-window{animation:rcb-animation-expand .3s ease-in-out forwards;opacity:1;visibility:visible}.rcb-window-close .rcb-chat-window{animation:rcb-animation-collapse .3s ease-in-out forwards;opacity:0;visibility:hidden}@keyframes rcb-animation-expand{0%{opacity:0;transform:translate(100%,100%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-collapse{0%{opacity:1;transform:translate(0) scale(1)}to{opacity:0;transform:translate(100%,100%) scale(0)}}@keyframes rcb-animation-ping{0%{filter:brightness(100%);opacity:1}50%{filter:brightness(50%);opacity:.8}}@keyframes rcb-animation-bot-message-entry{0%{opacity:0;transform:translate(-100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-user-message-entry{0%{opacity:0;transform:translate(100%,50%) scale(0)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes rcb-animation-bot-typing{0%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes rcb-animation-pop-in{0%{opacity:0;transform:scale(.8)}70%{opacity:1;transform:scale(1.1)}to{transform:scale(1)}}@keyframes rcb-animations-checkboxes-entry{0%{opacity:0;transform:translate(-100%)}to{opacity:1;transform:translate(0)}}@keyframes rcb-animation-options-entry{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcb-animation-tooltip-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@keyframes rcb-animation-tooltip-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-5px)}}@keyframes rcb-animation-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',{insertAt:"top"});const $e={AUDIO_BUTTON:"audio-button",NOTIFICATION_BUTTON:"notification-button",CLOSE_CHAT_BUTTON:"close-chat-button",SEND_MESSAGE_BUTTON:"send-button",VOICE_MESSAGE_BUTTON:"voice-button",FILE_ATTACHMENT_BUTTON:"file-attachment-button",EMOJI_PICKER_BUTTON:"emoji-button"},Mg="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%201000%201000'%3e%3crect%20width='100%25'%20height='100%25'%20fill='%23fff'/%3e%3cg%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-99%20362)%20scale(3.4003)'/%3e%3cpath%20d='M0%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(180%20106%20386)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-46%20282)%20scale(3.4003)'/%3e%3cpath%20d='M19%2065h4l5%204v1H14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20-3%20240)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(236%20175)%20scale(3.4003)'/%3e%3crect%20width='45'%20height='30'%20x='-22.5'%20y='-15'%20rx='1.5'%20ry='1.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20139%20600)%20scale(3.4003)'/%3e%3cpath%20d='M184%2075q14%200%2014%2017%200%2016-14%2016Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='4'%20x='-12.5'%20y='-2'%20rx='.2'%20ry='.2'%20style='stroke:%2346648c;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20219%20548)%20scale(3.4003)'/%3e%3cpath%20d='M175%2065h4l5%204v1h-14v-1Z'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2346648c;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3crect%20width='25'%20height='2'%20x='-12.5'%20y='-1'%20rx='.1'%20ry='.1'%20style='stroke:%2398b0ca;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2398b0ca;fill-rule:nonzero;opacity:1'%20transform='rotate(90%20262%20505)%20scale(3.4003)'/%3e%3ccircle%20r='7.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(767%20175)%20scale(3.4003)'/%3e%3crect%20width='116.7'%20height='70'%20x='-58.4'%20y='-35'%20rx='31.5'%20ry='31.5'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20877)%20scale(3.4003)'/%3e%3crect%20width='60'%20height='20'%20x='-30'%20y='-10'%20rx='3'%20ry='3'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2337547a;fill-rule:nonzero;opacity:1'%20transform='translate(502%20728)%20scale(3.4003)'/%3e%3ccircle%20r='75'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%2371c9fc;fill-rule:nonzero;opacity:1'%20transform='translate(502%20473)%20scale(3.4003)'/%3e%3crect%20width='129.4'%20height='82.3'%20x='-64.7'%20y='-41.1'%20rx='37'%20ry='37'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23fff;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3crect%20width='108'%20height='68.6'%20x='-54'%20y='-34.3'%20rx='30.9'%20ry='30.9'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(502%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(415%20464)%20scale(3.4003)'/%3e%3ccircle%20r='19.4'%20style='stroke:none;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23a478fc;fill-rule:nonzero;opacity:1'%20transform='translate(591%20464)%20scale(3.4003)'/%3e%3crect%20width='96'%20height='53.2'%20x='-48'%20y='-26.6'%20rx='23.9'%20ry='23.9'%20style='stroke:%23162334;stroke-width:1;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:4;is-custom-font:none;font-file-url:none;fill:%23162334;fill-rule:nonzero;opacity:1'%20transform='translate(503%20875)%20scale(3.4003)'/%3e%3cpath%20stroke-linecap='round'%20d='m68%20215%207-15M81%20222l-7-22M81%20222l7-14M101%20208H87M114%20219l-7-24M113%20219l13-22M131%20214l-5-17M148%20214h-18M69%20214H51M100%20209l7-15'%20style='stroke:%23a478fc;stroke-width:3;stroke-dasharray:none;stroke-linecap:butt;stroke-dashoffset:0;stroke-linejoin:miter;stroke-miterlimit:10;is-custom-font:none;font-file-url:none;fill:none;fill-rule:nonzero;opacity:1'%20transform='translate(165%20150)%20scale(3.4003)'/%3e%3c/g%3e%3c/svg%3e",Og=I.forwardRef((t,e)=>K.createElement("svg",{viewBox:"0 0 637 637",ref:e,...t},K.createElement("path",{d:"m478 113-13 2-4 1h4l14-2c10-2 35-2 42-1l6 3 3 1c3 0-4-3-8-5-7-1-34-1-44 1m56 6 8 6c7 5 20 17 20 19s7 12 8 12l-3-6-4-6c0-3-15-17-25-24-5-3-8-4-4-1m-198 16-9 1a512 512 0 0 1 9-1m-180 30a412 412 0 0 0-23 4 167 167 0 0 0-32 8 439 439 0 0 1 46-9 304 304 0 0 1 11-2l6-1h-8m369 8 4 3-7-6c-1 0 0 2 3 3m-439 9c-7 3-18 13-18 15l6-5c5-5 9-8 14-10l6-4-8 4m442 12-10 11-7 6 7-6c7-5 14-14 13-16l-3 5M65 205l-1 11c0 9 0 10 4 17 5 10 7 12 22 11 10 0 15 0 38-5l5-1-6 1-16 2-21 2c-13 1-16-1-21-10-3-5-4-6-4-15l1-12c1-4 1-5-1-1m335 1c3 0 3 1 3 3l-2 6c-2 5-35 39-76 80-53 51-120 117-138 137-21 24-22 25-22 27 0 3 6 9 9 9 4 0 14-8 38-27a5073 5073 0 0 1 15-16 1421 1421 0 0 0-17 15l-31 25-6 2-4-3c-3-3-3-4-2-6 3-8 79-85 160-163 57-57 79-80 79-86 0-2-3-4-7-4-2 0-2 0 1 1m165 18c-9 17-25 32-57 53l-10 8 16-11 12-8c15-10 27-22 39-39 5-7 6-8 4-8l-4 5m-221 2a199 199 0 0 0-19 10 183 183 0 0 1 27-12c0-1-1-1-8 2m-34 16c-3 3-2 3 2 0l1-2-3 2m151 3-1 2 2-2c3-3 2-3-1 0m-16 12-11 10a281 281 0 0 0 11-10m-24 18-7 5-7 5-42 31c-10 7-24 19-22 19l7-6 16-12a343 343 0 0 0 35-25 573 573 0 0 0 20-17m-187 0-2 2 4-2 3-2-5 2m-14 6-3 2 4-1 4-3-5 2m-7 3-8 4-18 8 18-7 7-3 3-1c1-2 0-2-2-1m254 24a2672 2672 0 0 1-71 54 601 601 0 0 0 39-29 1352 1352 0 0 1 32-25m-291-8-2 2 4-2 3-2-5 2m-13 5-2 2h3c5-3 4-4-1-2m-19 9-7 3-13 6c-10 5-13 7-14 10-3 4-2 5 1 0 2-3 5-5 14-9l13-6 12-6-6 2m178 36c-17 12-21 16-21 17a390 390 0 0 1 20-17m-206 34 1 4 1 3 1 5 2 8 1 5v-6l-1-8-2-5-1-4-1-2c-1-2-1-2-1 0m222 23-9 7a683 683 0 0 0-56 44 261 261 0 0 0-26 20 1345 1345 0 0 0-46 34c-6 3-7 3-19 3-11 0-12 0-18-3-8-4-10-8-17-20l-5-10 4 10c5 10 12 18 19 22 4 2 6 2 17 2 13 0 14 0 21-3l26-19 42-33a2183 2183 0 0 0 43-34 643 643 0 0 1 24-20",fill:"#fff",fillRule:"evenodd"}),K.createElement("path",{d:"M478 114a620 620 0 0 1-39 6l-21 3a5481 5481 0 0 0-19 3 870 870 0 0 1-54 8l-1 1-6 1-12 2-13 2a992 992 0 0 0-76 12 400 400 0 0 1-45 8l-6 1-5 1h-3l-3 1-2 1-26 4-13 2-17 3c-23 5-33 9-43 19-7 8-9 13-9 27 0 8 1 9 4 14 5 9 8 11 21 10l21-2a1133 1133 0 0 1 23-4 659 659 0 0 0 74-14l3-1h3l3-1h3l2-1 2-1h3l2-1h2l24-5 38-7a2100 2100 0 0 1 93-18l3-1 10-1a2082 2082 0 0 1 120-17l2 1c2 0 8 5 8 7l1 2 1 6c0 4 0 6-3 10-2 4-16 16-18 16l-7 5-10 8a1070 1070 0 0 0-11 7 113 113 0 0 1-20 14l-2 2-3 2-2 2h-1a154 154 0 0 1-28 21l-5 4-5 4a573 573 0 0 1-50 37 175 175 0 0 0-24 18l-1 2-2 1-2 1-2 1-1 1-12 10a396 396 0 0 0-32 25l-8 6-6 5-9 7a326 326 0 0 1-25 20l-13 12a5073 5073 0 0 0-17 15c-24 20-34 27-39 27-2 0-8-6-8-9 0-2 1-3 22-27 18-20 85-86 138-137 41-41 74-75 76-80l2-6c0-2 0-3-2-3l-7 1a233 233 0 0 1-26 9l-1 1-1 1h-1l-1 1h-2l-3 2-1 1h-2l-3 2h-1l-5 2-22 10-9 4-4 2-5 2-10 4-2 1-2 1-2 1-13 6a334 334 0 0 1-38 17 75 75 0 0 0-14 6l-5 2-4 1-2 1-3 2-7 3-16 6a247 247 0 0 0-32 14l-1 1h-2l-1 1h-2l-1 1-12 6a103 103 0 0 0-27 15l-2 5-1 1v11l1 5 1 5 1 4c0 3 0 4 2 4v3l1 3 1 2 2 10 1 4 1 5 2 10 2 8 1 4 1 4c3 3 9 25 11 38l1 7v2l1 4v1l1 1v2l1 2 1 3v1l5 10c7 13 9 16 17 20 6 3 7 3 18 3 12 0 13 0 19-3 8-4 11-6 26-18a1345 1345 0 0 1 85-67 683 683 0 0 1 50-39l12-9a513 513 0 0 1 44-33 201 201 0 0 0 22-17 2270 2270 0 0 0 73-54 158 158 0 0 0 58-59c2 0 3-9 4-27l-1-19-1-4-1-6-1-3-4-6-4-6c0-2-6-8-13-14a77 77 0 0 0-28-18c-6-1-34-1-43 1"}))),_g=I.forwardRef((t,e)=>K.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},K.createElement("path",{d:"M765-321q0 117-84 196-83 80-200 80-118 0-200-80t-83-196v-392q0-85 61-144 61-58 146-58 86 0 147 58 61 59 61 144v374q0 54-39 92-39 37-93 37-55 0-93-37-38-38-38-92v-372h110v372q0 9 6 14t15 5q8 0 15-5t7-14v-374q0-39-29-66t-68-27q-40 0-69 27t-29 66v392q0 71 51 119t122 48q71 0 122-48t51-119v-426h111v426Z"}))),_1=I.forwardRef((t,e)=>K.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},K.createElement("path",{d:"M125-165v-113h77v-273q0-93 55-167 56-75 146-100v-19q0-32 22-55 23-23 55-23t55 23q22 23 22 55v19q90 25 146 99 56 73 56 168v273h77v113H125ZM480-32q-38 0-66-27-27-27-27-66h186q0 39-27 66t-66 27Z"}))),F1=I.forwardRef((t,e)=>K.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},K.createElement("path",{d:"M137-190v-113h78v-253q0-41 11-79 11-39 35-71l-9 150h10L17-802l74-74L873-92l-74 74-175-172H137Zm609-149L319-769q20-15 41-25t44-16v-28q0-32 22-54t54-22q32 0 55 22t22 54v28q85 23 137 94t52 160v217ZM481-47q-38 0-65-27t-27-65h184q0 38-27 65t-65 27Z"}))),R1=I.forwardRef((t,e)=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",ref:e,...t},K.createElement("g",{strokeLinecap:"round",strokeWidth:10},K.createElement("path",{d:"m19 19 61 61M80 19 19 80"})))),L1=I.forwardRef((t,e)=>K.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},K.createElement("path",{d:"M94-136v-255l351-93-351-92v-253l816 346L94-136Z"}))),N1=I.forwardRef((t,e)=>K.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},K.createElement("path",{d:"M480-372q-61 0-105-43-43-43-43-105v-240q0-61 43-105 43-43 105-43 61 0 105 43 43 44 43 105v240q0 62-43 105t-105 43ZM425-76v-122q-121-16-197-108t-76-214h109q0 91 64 154t155 63q91 0 155-63t64-154h109q0 122-77 214T534-198v122H425Z"}))),z1=I.forwardRef((t,e)=>K.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},K.createElement("path",{d:"m763-343-80-79q8-20 13-44 5-23 5-54h109q0 49-11 95t-36 82ZM625-482 336-770v-2q3-56 45-96t101-40q62 0 105 43t43 105v249l-1 17q-1 7-4 12ZM427-76v-122q-120-16-196-108-77-92-77-214h109q0 91 64 154t155 63q43 0 80-14 37-15 67-41l78 79q-35 32-78 53t-93 28v122H427Zm362 27L41-796l75-75 748 748-75 74Z"}))),Fg=I.forwardRef((t,e)=>K.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},K.createElement("path",{d:"M625-511q29 0 50-21t20-50q0-29-20-50-21-20-50-20t-50 20-20 50q0 29 20 50 21 21 50 21Zm-290 0q29 0 50-21t20-49q0-30-20-50t-50-21q-29 0-50 20-20 21-20 50 0 30 20 50 21 21 50 21Zm145 268q75 0 137-43t85-115H258q24 72 85 115 62 43 137 43Zm0 198q-90 0-170-34-79-34-138-93T79-310q-34-80-34-170t34-170q34-79 93-138t138-93q80-34 170-34t170 34q79 34 138 93t93 138q34 80 34 170t-34 170q-34 79-93 138T650-79q-80 34-170 34Zm0-435Zm0 322q134 0 228-94t94-228q0-134-94-228t-228-94q-134 0-228 94t-94 228q0 134 94 228t228 94Z"}))),Q1=I.forwardRef((t,e)=>K.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},K.createElement("path",{d:"M553-64v-108q107-27 173-113 67-87 67-197 0-109-67-195T553-789v-108q152 26 249 144 97 117 97 271 0 155-97 273T553-64ZM61-335v-290h176l236-237v764L237-335H61Zm492 28v-346q51 23 82 70t31 103-31 103q-31 47-82 70Z"}))),H1=I.forwardRef((t,e)=>K.createElement("svg",{viewBox:"0 -960 960 960",ref:e,...t},K.createElement("path",{d:"M807-15 700-123q-33 21-71 37-38 15-80 22v-108q20-4 38-12l35-17-153-154v257L234-335H57v-290h144L10-818l74-75L882-90l-75 75Zm37-264-80-79q13-30 19-60 7-31 7-64 0-109-68-195-67-86-173-112v-108q152 26 249 144 98 117 98 271 0 55-14 107-13 51-38 96ZM661-462 549-575v-78q51 23 83 70 31 47 31 103l-1 9-1 9ZM469-655 366-759l103-103v207Z"}))),Rg={general:{primaryColor:"#42b0c5",secondaryColor:"#491d8d",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif",showHeader:!0,showFooter:!0,showInputRow:!0,actionDisabledIcon:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20viewBox='0%200%2042%2042'%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:4'%20d='M17%209a8%208%200%200%201-8%208%208%208%200%200%201-8-8%208%208%200%200%201%208-8%208%208%200%200%201%208%208Zm0%200'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3cpath%20style='fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke:%23b00000;stroke-opacity:1;stroke-miterlimit:10'%20d='M14.66%2014.66%203.34%203.34'%20transform='rotate(.086)%20scale(1.77778)'/%3e%3c/svg%3e",embedded:!1,flowStartTrigger:"ON_LOAD"},tooltip:{mode:"CLOSE",text:"Talk to me! 😊"},chatButton:{icon:Og},header:{title:k.jsx("div",{style:{cursor:"pointer",margin:0,fontSize:20,fontWeight:"bold"},onClick:()=>window.open("https://github.com/tjtanjin/"),children:"Tan Jin"}),showAvatar:!0,avatar:Mg,buttons:[$e.NOTIFICATION_BUTTON,$e.AUDIO_BUTTON,$e.CLOSE_CHAT_BUTTON],closeChatIcon:R1},notification:{disabled:!1,defaultToggledOn:!0,volume:.2,icon:_1,iconDisabled:F1,sound:"data:audio/wav;base64,UklGRmaIAABXQVZFZm10IBAAAAABAAIAQB8AAAB9AAAEABAATElTVBoAAABJTkZPSVNGVA4AAABMYXZmNjAuMTYuMTAwAGRhdGEgiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAA//////7/////////AAABAAAAAgABAAEAAQAAAAIAAQABAP//AAD+////AAD+//7////+////AAD//wAA/v8AAAAA/v8AAP//AAAAAAAAAgD////////+////AAABAAEAAgD/////AQABAAAA//8CAP//AAAAAAAA/v8AAAAA//8AAAEA//8EAAAAAAAAAAAA//8BAP//AQABAAEA/////wEA/v///wAAAAACAAAAAAABAAAA//8AAP//AAACAP//////////AAAAAAEAAAAAAAEA//8AAAEAAQADAAIAAgAAAAAA/v///wEAAAAAAAEAAAAAAAEA//8AAAEAAQD//wAA//8AAAEAAAABAAEAAAABAP//AAD//wAAAgAAAP//AQD/////AAAAAP7/AgAAAAIAAAAAAAAAAAABAAAAAQABAP//AAABAP///v8AAP////8AAP//AAD//wAA//8BAP//AAD///7///8BAP7///8AAAIAAgABAAEA/v8AAP//AQADAAEAAAACAAEA/////////v///wEA/v////7/AAD+////AAAAAAAAAgAAAAAAAAD//wEAAAAAAAAAAQABAAIA/v8AAAAA//8AAAEAAAAAAP//AgD//wEA/////wAAAQACAAAAAAAAAP//AQD/////AQAAAAEA/v8AAAEAAQABAAEA///+////AQD//wEAAgD+//7/AAAAAAAAAQAAAAAAAQAAAAAAAAAAAP//AAD//wEAAQD//wAAAQABAP7///8AAP7/AAABAP7/AQABAAEAAAABAAEAAAD+/wIAAAABAAAAAQD/////AQACAP////8AAP//AQD//wEA/v8CAAEAAAAAAAAAAQAAAAIAAQAAAAEAAgD//wEAAAAAAP7///8BAP//AgAAAP///v8CAAAAAgD///////////7/AAACAAEAAgD//wAAAAABAP//AwAAAAMA//8AAAAAAQD+/wAAAAD//wAAAQD//wEA//8BAP7/AAABAAAA//8BAAAA//8AAP//AQADAP3////+////AgD+/////v8BAAEAAQACAAAAAAAAAAAA//8AAP//AAD+/wEA/v8AAP7/AAD//wAAAQACAAAAAQAAAP//AQAAAAAAAAABAAAAAAD+//////8AAAAAAAD//wAAAAABAAEA//8AAAEA//8AAP//AgD+/wAA///+/wAA/v///wAAAQABAAAAAQD//wAA//8AAAEA//8BAAAAAgABAP//AAACAAIAAQABAP//AAAAAAAA//8BAAIAAAABAAAA//8CAAEA/v//////AAAAAAEA////////AQAAAP//AAD//wAAAAAAAP3/AAAAAAEAAAACAAAAAAAAAP//AAD//wAAAAAAAAAAAAAAAP///v///wAAAAABAAAAAAD//wEAAAABAAEAAQD//wAAAAACAAAAAQD+/wAA//8BAAEAAAD+/wAA/////wAAAAABAAAAAAD//////v8AAAAA//8AAAAAAAAAAAIAAAABAAEAAAABAP7/AAD9//////////7///8BAP//AAD///3/AQABAP//AAD//wAAAAABAAAA//8AAP//AAD/////AQABAAEA//8AAAAA//8BAAMA//8AAAAA//8AAP7/AAD//wAAAAAAAP7/AQAAAAAA/v8CAP//AAABAAIAAQABAAAA//8BAAEAAQD///7/AQD//wAAAQABAP//AAD//wEAAAAAAAAAAQAAAAIA//8AAP////8AAP//AQD//////v///wEA/v8AAAIAAgACAAEAAAAAAAEAAAAAAAAAAAAAAAAAAQD//wAA/////wAAAQACAP////8AAAAAAAD//wAAAQD+/wEA//8AAAEAAwD//wEAAQAAAAAAAAABAP////8AAAAAAQAAAAAAAAAAAAEAAQAAAP////////7/AQABAAEAAQD///////8BAAAA//8AAAAAAgABAAEA/v8BAP7///8BAP3/AQABAAIAAAD//wEAAAAAAP//AAABAAIA//8CAAAAAQAAAAEA//8BAAAA/////wAAAAD//wEAAQD//wAAAAAAAP//AAAAAAAAAQABAAAAAQAAAP//AQD//////v8AAAEAAAAAAAAA//8AAAAAAAACAAEAAQAAAP//AAABAAEA/////wAAAgABAAAAAAAAAAEAAAABAP//AQABAP7////+/wEAAAAAAP//AAABAAAAAAABAAEAAAAAAAAA//8BAP///f/+/wEAAQD///7///8AAAAAAQAAAP////8AAAAAAAABAAAAAQD/////AAD//wEA//8AAAIA//8CAAAA//8AAAAAAAD+/wEAAAD+/wAA/////wAA////////AAAAAAAA//8BAAAAAAD//wAAAAD//wEA//8AAP//AQD+/wAAAAAAAP7/AAD+/wEAAQABAP//AAABAAEAAQD//wAA/////wEA//8AAAAAAgAAAAAA//8BAAAAAgAAAAAAAAAAAP7/AQD//wAAAAD+/wAAAAADAAIA/////wAAAQD//wIA//8BAAEA/v8AAAIAAAAAAP3///8AAAAAAAAAAAAAAAABAP///////wAA//8AAAEAAQABAAEAAQABAAAAAQAAAAAAAQABAP7/AQD//wAAAQABAAEA//8BAAAAAgAAAAEAAAABAP//AAD/////AAD//wIA/////wIAAAD///7/AAAAAAAAAAACAP//AAABAP////8AAAAAAAABAAAAAgAAAAAAAQD+/wEA/////wAA/////wAAAAAAAAAA/v//////AAAAAP//AAABAAAAAQAAAAIAAAACAAAA//8AAAAA//8AAP7/AAAAAP//AAACAP//AQABAP//AQABAAAA/////////v8AAP//AQAAAAAA///+/wAAAQD+/wEAAQAAAAEA/////wAAAQD//wAA//8AAAAA/v8BAAEA//8AAP7//v8BAAAAAAAAAAEA//8AAAEA/////wAAAAD//////////wEAAAABAAEA//8CAAEA/f8AAAAA//8BAAAABAABAAEAAQAAAAAAAAAAAP7///8AAAAA/v8BAAAA//8AAAIA//8AAP////8BAP//AAAAAAAAAAD/////AQD///7/////////AQD8////AgABAAIA////////AAD//wAAAAABAAAAAAAAAAEAAgAAAP//AQD//wAAAAAAAP/////+/wAAAAABAAAAAwABAP///////wEAAAADAP//AQACAAAA//8CAAEAAAAAAP///////wIAAAAAAAAAAQAAAAAAAgD//wEAAAABAAAA/v8AAAAAAAAAAAAAAAAAAAEA/v8AAP//AQD//wAA//////7///8AAAAAAAAAAP7/AQD//wAA//8AAAEAAAABAAEAAQD/////AAD//wEAAAD/////AQAAAAEAAAD//wEAAAD/////AgD//wAAAQD//////////wAAAAD//wAAAAABAAAAAAD//wAAAQD///7/AQD//wEAAAD/////AAD//wEA//8AAAEA//8CAAAAAQD//wEAAgAAAAEAAwAAAAAA/v8BAAEAAgD//wEAAAAAAAAAAAD//wEA//8AAAAAAQACAP///////wAAAQABAAEAAAAAAAEAAQD+/wEA/f////////8AAAAA//8AAAEA//8BAAAA/v///wEAAAAAAAEA/////wAAAAAAAP//AAAAAAIAAAABAAAA/////wAAAAD//wAA/v8AAAMAAQD+/wEAAAABAAEA//8BAP//AgAAAAAAAAD//wAA/////wEA/v8CAP3/AAACAP3/AQABAAAAAQACAAEA/v8AAAAA//8BAAAAAgAAAAAAAgACAAEA/v/9/wAAAQABAP7///8AAP//AgD+/////v8CAP////8BAP//AQACAAEAAQABAP//AAD///7/AAABAAEAAgD//wEA//8CAAEAAQABAAEAAAABAAAA/v8AAAEA/v8AAP//AAABAP//AQAAAAEAAgAAAAAA/v///wEAAQAAAAIAAAD/////AgAAAAEA/v8AAP7/AQAAAAAAAQAAAAEAAAACAAEA//8BAP////8AAAIAAAAAAP//AAAAAAIAAAAAAAAAAwABAP///v8BAAAAAAAAAP3/AAABAAEA/v////////////3//v8AAAAAAQABAAIAAAD+/////v8AAAAAAQABAAEAAQAAAP//AAAAAP//AQAAAP//AAABAAAAAAAAAAAA////////AAAAAP//AQD/////AAABAAEA//8CAP7///8AAP7//v8BAAEAAAD+/////////wEAAAAAAAAAAgD//wAAAQAAAP7/AQABAP//AQAAAAAAAAD/////AAACAP////8BAAAAAAD//wAA//8AAAEAAQABAAAAAAABAAAAAQD+/wEA/v8AAAEAAQD/////AAD//wAAAQABAP7//v//////AAACAAAAAAAAAAAAAAACAAAAAQAAAAAA//8BAP//AQD//wAA///+/wIAAQD//wAAAAD//wAA/v8AAP3///8AAAAAAAAAAAAA/f8AAAAA//8CAP7/AAD///7/AAAAAAAAAAD//wEAAAAAAAEAAAAAAAAA//8BAP////8BAP7///8CAAEA//8BAP3///////////8BAAAAAAAAAAEAAgD+//////8BAAMAAQADAAEAAAACAAAAAQD/////AAABAAMAAQAAAP//AQD//wAA//8AAAAA//8CAP7//////wAAAAAAAAIA/v8AAP//AAACAP//AwD//wAA//8AAP//AwD//wEAAQABAAEAAQACAAEAAAD//wAA//8AAAIAAAAAAP///////wAAAQD//wIA//8BAP7/AAD///////8AAAAAAAAAAAEAAAD//wAAAQD//wEA//8BAAAAAAD/////AgABAAIAAAABAAAAAAAAAP//AAAAAAAA//8AAAAAAAD/////AQAAAAAAAQD//wAA///+////AAAAAAEAAgABAAEAAAAAAP//AQAAAAAAAQD+/wAAAAABAAEAAAD/////AQABAP7///8AAAIAAAACAAAA//8AAP//AgACAAAA///+/wAAAAABAAAAAQAAAAEA/v8BAAEA//8CAP//AQD+/////v8AAAAAAAACAP//AAD+/wIA/v8BAAAAAAD/////AAAAAP7///8AAP7//////wEAAAABAAAAAAD//wAAAAAAAAAAAgACAAAAAAABAAAA/f8AAP7/AgAAAAEA//8BAAAAAAD///7/AQD//wAAAAAAAAEAAAAAAAEAAAAAAAAAAQAAAAAA//8AAAAAAAABAP///////wAAAgABAAEA//8AAP//AAACAP//AQABAAEA//8BAAAAAAABAAAA//8AAAEAAAAAAAIA/v8BAP//AQD//wEAAAABAAEAAQACAAEAAAAAAAEAAAABAAAAAAD/////AAABAAEA//8AAAAAAQABAP//AAAAAP//AAD/////AQD//wAAAAABAAEA//8BAAAA//8AAP///f/+/wAA/////wAAAQAAAAIAAAAAAAAAAAD+/wEA/f8CAAAA//8AAAEAAgAAAAMAAAABAAAAAAAAAP//AQAAAAAAAQABAAAAAQAAAP//AAAAAAAA//8AAAAAAAABAAAAAQAAAAAAAAABAAIAAAAAAP7/AQD//wAAAAD+////AAAAAAAAAAABAAAA/////wAA//8AAAAAAAD/////AgD//wAA//8CAP//AQACAAEA/f////////8BAAIAAQABAP//AAD//wAA///+////AAD+/wAAAQD/////AAAAAAAA/////wAAAAABAAAAAQAAAAAA//8AAAIAAAABAP//AQABAAEA//8AAAAAAAADAAEAAAABAP//AgD//wMA//8AAAAAAAD//wAAAAD9/wEA///+/wAA//8BAAEA//8BAAAA//8AAP///v8BAP///////////v8BAAAAAQABAAAAAAAAAAAA//8AAP7/AQAAAAAAAAAAAP7/AQAAAAAAAgABAAEAAAABAAEAAAAAAAAAAAD+/wAAAAD//wEAAAAAAAAAAAAAAP//AgABAAAAAAABAAEAAAD/////AAAAAP//AAABAP////8BAAAAAQABAP7//v/+////AQAAAAAAAQAAAAEAAgAAAAAAAQAAAAEAAAD+/////v8BAP//AAABAP//AQABAAAAAAD//wAA//8CAP//AAAAAAEAAAABAAAAAAAAAP//AAD+////AwAAAAAAAQD//wEAAAACAAEAAAADAAAAAAD/////AAAAAAEAAAABAAAA//8AAAEA//8BAP///v8AAP//AAD//wAAAQABAP//AQAAAAAA/////wEAAQAAAP////8AAAEA//8BAAAAAQAAAP////8AAAAAAQAAAAIAAQAAAAEAAAAAAAEAAAD//wEAAAAAAP////8AAAAA//8BAAEAAAAAAAIA///+/wIA/v8BAAAAAQACAAAAAQAAAP7///8AAP//AAAAAAEAAAAAAP7/AAD+////AAAAAAAAAAD//wAA/v8BAAMAAAABAAIAAgD//wAA//8BAAEA//8BAP7/AAAAAP7///8BAAAAAQAAAP7/AQD/////AAAAAAEAAAABAP//AQABAAAAAgABAAAAAAAAAP///////wEA//8AAAEA//8AAAAAAQAAAAIAAAABAP7//////wAAAQABAAAAAAABAAEA///+/wAA//8BAP///v8AAP///v8BAAAA//8CAAAAAQAAAAEAAQABAAAAAAD+/wAAAAD+/wAAAAAAAAAA/f////////8AAAAAAQABAP///////wEA//8BAAEAAAAAAAAA/////wEA/v//////AAAAAP//AAABAAAAAAD+/wAAAAD9////AQAAAAEAAwD//wEAAQAAAP//AgAAAAAAAAD+/wIAAAAAAAAAAAAAAAIA//8AAAEAAQACAAAAAQD//wAAAAD//wIAAQABAAAAAAD//wEA//8BAAEAAQAAAAAAAQABAP7/AAD//wEAAAACAP7/AQAAAAAAAAD//wIAAQACAAIAAQAAAAAAAAAAAP3///8BAAAAAQACAP//AgD9/wAAAAD//wEA/v////////8AAAAAAAD//wEAAQD//wMAAQAAAAEA//8AAAEA//8AAAAAAAACAAAAAAD//wAAAQD///////8AAAAA//8BAAIA/v8BAAEA/f8AAAAAAAAAAAAAAgD/////AAD+/wAAAAD//wAAAAAAAP//////////AgABAP///v8AAAIAAQAAAP//AAABAAAA/////wAAAAAAAAEAAAABAP///v///wIA//8BAAEAAQAAAAAA///+/wEAAAAAAAAA/////////v8BAP3/AAAAAAAAAAAAAAAA//8AAP//AAAAAP//AAABAAIAAAACAP////8DAAAAAAABAAAAAwABAP//AAABAP//AAAAAP////8BAAAAAgD//wAA///+/wAAAQD//wAA//8AAP7///8AAAAA/v8AAAAAAQD//wEA/v////////8AAAAAAQAAAP//AQACAAAAAAAAAP//AAD//wAAAAD//wAAAAD+/wAAAAAAAP//AQD//wAAAgAAAAAAAQABAAAAAwD+/wAAAAD///7/AQD//wIAAQAAAP//AAD//wAA//8CAAEAAAAAAAAA/////wAAAAD//wEAAQD///////8BAAAA//8BAAEAAAAAAAAA/v///wEAAAAAAAAAAAADAAAAAAAAAAAAAQABAAEAAAD+//7//v8AAP//AQAAAAAAAAABAAEAAgAAAAAAAQD//wAA/f8AAAAAAAABAAAAAQAAAAAAAAAAAAIA//8BAP///////wIA/////wAAAAABAAEA//8BAAAAAAD//wAAAQD//wEAAAAAAAIA/v8BAP//AAAAAAEAAAABAP//AAAAAAAAAQABAP7/AAABAAAAAQD//wIAAAAAAAEA///+/wAA//8AAP//AAAAAAAAAAABAP///////wIAAQAAAAEAAQAAAP7/AQAAAAAAAQAAAAAAAQD/////AQAAAAAA///+//7/AAD+/wEA//8AAAAA///+/wEAAAABAAIAAQABAAAA//8AAP//AAD//wAAAAD//wAAAAAAAP//AQAAAAAA////////AQAAAAAAAQD+////AQABAP7/AAD///7/AgD//wAAAAAAAP//AAAAAAEA//8BAAEAAgAAAAIAAAD//wEA/////wAAAQD///7/AQD//wEAAQD/////AAAAAAEAAgAAAAAAAQD//wEA//8AAP7//////wAA//8BAAEA//8BAAAAAQD/////AAABAP//AAACAP//AQAAAP//AAABAP////8AAAAAAAABAAEAAwABAAAAAgD//wAAAAD//wEAAAABAAAAAAABAAEA/////wAA//8AAAIAAAAAAAEAAQABAAEAAQABAP//AgAAAAAA//8BAP3//v///wAA//8AAAAAAQAAAP//AQD//wEAAAACAAIAAAABAAAA//8BAAEA//8BAP//AAAAAP//AQAAAAIAAAD//wAAAAAAAAEA////////AQAAAP//AQD//wAAAQD+/wEAAAABAP///v///wAAAAAAAP//AAAAAAIAAQD//wAAAgD+/wAAAAD//wAAAAABAP///P//////AAACAP////8AAAIAAAABAAAAAAAAAAAA//8AAAAAAQADAP//AQAAAAAAAAABAAEAAQAAAAAA/v8AAAAAAAD//wAAAQD//wAAAAD//wAA/v////////8CAAEA/v8BAP7/AAAAAAAA//8AAAEAAAD//wIAAQAAAAIAAQAAAAAAAAD///7/AQABAP//AAAAAP//AAACAAEA//8BAAAAAwAAAAAAAAD//wEAAAD//wAA///////////+/wAAAQABAAIAAAABAAEAAAD//wEAAAD/////AAD+/wIAAwABAAEA/v8BAAEAAAD//wAA//8AAP//AAAAAAEAAAAAAP//AAAAAAEAAQABAAEA/v///wAAAAD//wEAAAACAAAA/f/+/wAA/v///wAA//8AAAEAAQD///7/AAAAAAAAAAABAAAAAAACAAAAAAABAAAAAAABAP//AQD//wAA//8BAP7/AgABAAEAAQAAAAAAAQD//wEA/v8AAP////8AAP///////wIAAQD//wAAAAD//wAA/v///wAAAQD//wIA/////wEAAAAAAAIAAAABAAAAAAD//wEA//8AAAAA/////wAAAQAAAAAAAAD//wEAAQAAAAAAAAACAP///////wAAAgD//wAA/v8AAAIAAAAAAAEAAAABAP//AQABAAEAAQAAAP///v8BAAEAAAAAAP////8AAAAAAQD//wIAAQAAAAEAAAAAAAAA//8BAP//AAAAAP7//v///wEAAAAAAAIAAAAAAP//AAD//wEA//8BAAAAAAABAAEAAAABAP7///8AAAIAAAABAP//AAD//wEAAAAAAP//AAAAAAEAAAAAAAAAAAAAAP7/AQD//wAAAQD+/wEA/v8BAP7/AAABAAEAAAACAAIAAAADAAAA//8AAAEAAAABAP//AQD//wIA/////wEA//8AAAEA//8AAAEAAAAAAAAAAQABAAAAAAAAAAAAAAD//////////wAA//8AAP7/AAD+/wAAAQAAAAAA/////wAABA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fAC4APgAiAFUACABDANr/KgDW//D/4f+6/woAo/8kAKX/KwDh/xQAGQDz/1sA3P9aAOz/QgACACIAAgDn/wIAv//1/6n/6f+///L/3f8VAA4ALgA0ACYAVQAOAEgA6/8wANL/AQDc/8b/+f+k/x0Anf8oAND/HwAMAPf/SADw/2AA8v9KAPX/KgD3//H/+P/F//z/rv/i/7r/6v/Z/wYABwAoADAAKQBOABkATAD0/zQA1P8PANv/0//v/6//FwCi/ywAxP8oAPn//v82APT/WwD4/00A+/8yAPv//f/8/83/+v+w/+T/sf/j/9b/AQACACoAIgAtAEIAHwBPAAEAQADe/xcA0v/k/+X/t/8IAKv/IgC//yEA6/8EACMA9/9PAPf/VAD+/zcA+/8JAPn/1P8AALf/6f+w/+P/zf////j/HAAdAC0APgAfAEsABwBCAOP/IADV/+//2v/B//3/rP8PALv/GADd/xEAFgABAEMABABaAP//QgACABcA+//n/wAAwP/w/67/4v+///3/6f8WABcAKQA0ACIARgAQAEcA8f8pANn/9f/U/87/7f+v/wgAtP8RANP/FgANAAIAOQACAFQA/f9HAAAAIAABAO3//P/E/wEAs//q/7n/9P/i/wYAEQAZADEAJABBABMASAAAADEA3/8CANL/1v/g/7H/AACy/w8Axf8ZAPv/CQAzAAIAVQD//1AAAAAsAAIA9v/7/8r/AwC2//P/tf/m/+H/AwADABEAKQApADoAHgBHAAgAPADr/wkA1//f/93/vP/6/7L/CgDA/x4A7/8hACkAAgBPAPz/UgD1/zIABAAEAPz/0v/5/7f/AACy//H/2f/+/wEAAAAkABUAMwAdADoAEQA9APD/EADU//L/1P/H/+z/tf8LALv/HADk/ygAGgADAEMA//9TAPn/QAAAABAAAQDc//z/wf8DALD/7P/Q//z/9/8HABoAFgA3ACMAMAAOADwA+P8ZANv/+P/Y/9H/5v+8/wUAu/8WANf/HgAMAAoAPQABAFMA/f9HAP7/HwAEAN//+v/H/wMAs//2/8r/8//y/wMADgAQAC4AIwAyABMAJwD8/xcA3v8LANP/5v/f/8j/AgC4/w4A1P8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AgDm/wEAzv8BANv//v/p/wIA//8BABMABQArACAALAABAB4A8f8NAOv/7v/m/9n/+P/R/wMA4f8OAPT/AQATAAMAKwAHACoAAwAbAAMABQADAO7/AQDU/wEA2f8AAOL////3////EgAAACUAGgAvAAUAHQD2/xIA9f/0//T/3P/4/8///f/h/wIA7f8AAAoAAQApAAQALQADACAAAgAPAP//9P///9r//f/T/wAA3f/9//D/AQAQAP//HAAHAC8ACQAfAPv/GAD+//f/+P/j/wEA0v/+/9n/AADq/wIABgD//x0AAQAuAAEAIwAAABQAAwD8/wEA3/8AAM//AADe////7f8BAAwA//8ZAAMALwAAACEA//8dAP3//v/9/+n////U//z/1v8BAOT/AAD+/wAAGwD+/ywA/v8kAAIAGAD///3////q/wEA0P///97/AADk/wAABAAAABUAAQAqAAEAKQAAABwAAAAFAP//6f8AANr////X/wAA4/8AAPj/AgAUAAAAKgD//ywAAAAcAP7/AQAAAOv/AADU/wAA2v8CAOP/AAABAAAAFgABABsAAAAqAAEAHwAAABQAAgDv/wEA3v///9H////f////7/8BAAoAAQApAAAALgD//yEAAQAIAAAA8P8BANr//v/V////4f8AAPf//v8UAAAAFAAAACYAAQAhAP7/GwD+//T/AADo/wIA1v8CANr/AgDp/wEABgAAAB8AAQAsAAEAJAAAAAwA///z/wEA3/8AANT/AADh/wEA9P///xQAAgASAAAAJQAAACEAAAAaAP//+v8BAOj////W////2P8BAOf///8DAAAAHwAAAC4AAAAlAAAAEgAAAPL/AQDm////0f8CAN3/AADr//7/EQD//xAAAQAhAAIAJQAAAB8AAAABAP//6v8CAN//AQDX/wAA4/8AAPr/AAAXAAAAKgABACgAAAAbAP///f8AAOj/AADU/wAA2v///+f/AQANAAMAEQD+/xwA/v8kAP7/IQABAAgA/v/p////5/8AANf/AQDd/wEA8v8BABMAAQAjAAAALgAAACAAAQADAAEA7f8BANn/AgDY//7/4P/+/wEAAAAXAAIAFAAFACUA/P8jAP//EgAAAO//AQDo////1/8AAN3/AADx//7/DgAAAB0AAQAoAAAAIwAAAAoAAQDv/wMA4f8AANn/AQDi/wEA+v///xgAAAAQAP3/IwD//yUA/v8XAAAA7/8AAOv/AADc/wAA3P/+/+v/AQALAAEAGgACACkAAAAkAP7/EAABAO/////q//7/1/8AANz/AgDw/wEAEgD//w8AAAAcAAIAJQAAAB0AAAD2////7P8AAOP/AgDa/wAA5P8BAAQAAQAWAAAAIgAAACMAAAAaAP//+P///+v/AQDZ/wAA2////+7/AAARAAAADgAAABYAAAAhAAAAIAABAPz/AQDt/wAA5P8AANr/AQDg/wEA/P8BABcAAAAhAP//KQD//xwAAAD8/wEA7v8AAN3////Z/wAA6f8BAA0AAAARAAEAEQAAACMAAAAgAAEA/f8CAO3/AADv/wAA3v8BANv////1////EgAAABkA//8nAAAAIgAAAAMAAADu/wAA6P8CANn/AQDg////BQD//xMAAQAOAP//IAABACYAAAAGAAAA6f////H/AADg/wEA2f8AAO3///8PAAAAFQACACQAAAAkAAEADQABAO//AADp/wAA2////9z/AQD7/wEAFgAAAAwAAQAXAP7/JQD9/xMAAADx/wAA8f8AAOr/AADc/wEA4/8BAAkAAAAVAAAAIQD//yYA//8UAAEA9P8BAOz/AADf/wAA3P8AAPP/AAAQAAAADQABAA0AAAAlAAEAGAD///H//v/0/wEA7v8CAN//AADg//3/BAACABUAAQAfAAAAJwABABgAAQD0//7/7f///+L/AADa/wIA8P///w4A//8SAAMACQAAACAAAQAgAP//+v////P////y/wEA4/8BANr/AQD9/wAAEwD//xkAAQAjAAAAIgABAPz////s/wAA6v8BANX/AQDr//7/BwABABMAAAAHAP//FwAAACYAAAD//wEA9P8BAPb/AQDu////2v8BAPn/AAATAP//FwD//yEAAAAjAAAAAgAAAOn/AQDr//7/2P8CAOT/AAABAP//FgABAAUAAQATAP//IwAAAAEAAgDy/wEA9/8AAPb/AADb/wAA6/8BABAAAAATAP7/IQAAACYA//8UAP//7/8AAPD/AADd/wEA3P/+//7///8OAAAACgAAAAgAAAAhAP//CQACAPT/AQD2/wAA9v///97////m/wIADgABABMAAQAfAP//JwAAABMAAADw/wAA8P///+r/AQDb/wAA9f8AAA8AAAARAAIABAD//wYA/v8HAAAAAQD//wMAAgAGAAAA7f8AAOz/AAALAP//DwACABQA//8bAAAAHgD///f/AADq/wEA6/8BANj//v/t/wAACAD+/xAAAgAEAAAABAABAAcAAQADAAAA//8AAAUA///1/wAA5f///wIAAAAOAAAAEAAAABsAAAAhAAAA/v8BAOj////y////3f8AAOf/AQAGAAEADAAAAAcA//8BAP//CQABAAMA//8BAP//BQAAAAAAAADo/wAA+/8AAAoAAAALAAAAFAAAACAAAQAGAAIA7f8BAPH/AADm/wMA3P8CAP7/AgASAP//CgD//wAAAAAIAP//BQD//wEAAAACAP7/BAAAAPz/AwD8////BAAAAAEA//8HAAAAHQAAAAgA/v/x//7/8f///+f/AQDg/////P///woAAAAMAP//AAABAAYA//8EAAAAAgAAAAUAAAACAAAAAwAAAAIAAAABAAAAAQABAAAAAgAcAP//DgD///T/AQDx/wAA9P8CAOH/AAD3/wAACQAAAAoAAQABAP//AwAAAAcAAAD+/wAAAgACAAEAAAD+////AwD+/wAAAAABAP//+v8BABEAAQATAAAA9f/+//L//f/z/wIA6f8AAPb/AQAFAP//DAAAAAAAAAAFAP//BQD//wEA//8DAAEAAQAAAP7///8AAAAA//8BAAIAAAD+/wAAEAABABYAAgD6/wEA8v8BAPX/AwDp/wAA8////wMA//8JAAEABAABAAEA//8FAAEA//8AAAMAAQACAP//AQAAAAEAAgAFAP//AQABAAAAAQAAAP//EQABAAAAAAD5/wEA+P8AAPr////6/wAA+/8BAAIA//8BAAAA//8CAAUA//8BAP7/AAABAAEAAgAAAAAAAwAAAAEA/v8DAAIAAAACAAQA//8TAAAA/P8BAPr////3//////8AAPz/AQD7/wEAAgD/////AAABAAEABAAAAP//////////AAAAAAAAAAADAAAAAwAAAAAA//8EAP///v/+/xAA//8HAAAA+/////j/AQD8////AAD///n///8AAAAA//8AAP////8DAP//AgAAAAAAAAACAAIAAAD+/wAAAQD//wAA/////wIAAgD9////CQACAAYA///9////+f8BAPr/AQAAAAIA/v///wAA//8AAAAAAAAAAAEAAAABAAAAAgAAAAEAAAAAAAEAAQABAAAAAgABAP//AAD//wEAAAD///////8BAAIAAQAAAAAA/v/+//////8BAAAAAQABAP//AAD///////8BAAAAAQABAP////8CAAEAAQD//wEA/v//////AQAAAAAAAAAAAAAAAAD9/wMA/////wAAAQD+/wEA/v/+//7/AQD//wMAAAAAAAAAAAABAAEA//////7/AAACAP3/AAD//wAAAQAAAP//AQD//wAAAAAAAAEA//8CAP//AAAAAAAA/v8AAAAA//8BAP//AAABAP//AAAAAP//AQD//wAAAQABAAAAAAABAAEA/v///wAAAAD//////////wAAAAAAAP//AAD////////8/wIAAAADAAEA/////wEA/v8BAP7/AgAAAAEAAgAAAP//AgD/////AQD//wEA//////7/AQD//wMAAAAAAAAA//8CAP//AQAAAP//AAACAAAAAAABAP//AQD+/wAA/////wAA/f///wAAAAAAAP7/AAAAAAAAAgD//wEAAQACAP//AAAAAAEAAQD//wAAAAAAAAAA//8BAAMA/v8AAP7/AQAAAAAAAQAAAAAA///+//7/AAAAAAAA//8BAP7/AQAAAP//AQABAAAAAQAAAP//AAD//wIA/v///wAAAQABAP//AAD//wEA//8BAP//AgAAAP///////wAAAQABAP//AwABAAAAAAAAAAAA/////wIAAwACAAAA/v8BAAAAAAAAAAAA//8AAP////8AAAAA/////wAA/////wEA/v8CAAEAAQD//wAAAAABAAAAAAD//wEAAQABAAAA//8CAAAAAAAAAP7/AAABAAAAAQABAAAAAgABAAAAAQD//wEAAwD+/wAA/v8AAAEAAAAAAAAAAAAAAAEAAAD//wMA/v///wAAAAACAAEAAAAAAP7///8DAAEAAQD//wEA/f8BAAEAAQD//wEAAQABAAMAAgAAAAEA//8AAP//BAAAAAIA/v//////AQABAAAAAAD//wEAAAACAAIAAQAAAAAAAgAAAAAAAAABAAIAAAABAAIAAQAAAP////8AAAAAAAD//wAAAQACAP//AAAAAAAAAQAAAAEA//8AAAAAAAD/////AQD//wAAAQD9////AQAAAAAA//8BAAAA///+/////v8BAAAAAQAAAAAAAAAAAAIA//8BAAAAAAACAP//AQD//wAAAAD/////AAD9/wAAAAACAAAAAgAAAAEAAQABAAEAAAAAAAEA//8AAAEAAQACAAAAAQAAAAEA//8BAAIAAAACAP//AAABAAAAAAAAAAAAAAD//wAAAQD/////AAAAAP////8AAAEAAAAAAP7///8BAAIAAQD//wEAAQAAAP//AgAAAAAAAAD//wAA//8CAP7/AQAAAP7/AAD+////AAAAAAAAAQABAAAA//8AAAEAAAABAP7/AAAAAP7/AAD+/wAAAQABAAEA/////////v8BAP///v///wIAAAAAAAAAAQAAAAIAAQAAAAAAAAABAAEAAAAAAAAAAAD//wEAAQD//wAAAQABAAAA/v/+/////////wAAAAD//wAAAAD/////AAAAAP7/AAD//wIA//8CAP//AQAAAP////8AAAAAAQABAP////8AAP//AQACAAAAAQAAAAAAAAAAAAAA//8BAAAAAAD+/wAA/v///wEAAAD+//7///8CAP7/AAABAP3/AwAAAAAAAAABAAIAAAABAAAAAQABAAIAAAAAAP//AAAAAAEAAAACAAEAAAACAAAAAAABAAAAAwAAAAAAAAD+/wAAAQD9//////8BAAAA/v8AAAAAAAAAAAAAAAD//wMA/v8BAAEAAQACAAAA/v8BAP//AwABAAIAAQABAP//AQAAAAEAAAAAAAEA//8AAAAAAAD/////AAABAAEAAAAAAP////8AAAAAAAAAAAAA/v8AAP//AQAAAP//AAABAAIAAQAAAAAAAgABAAAA/////wAAAQABAP//AQABAAEA/////wAAAAAAAAAAAAABAAEAAQAAAAAAAAAAAAAA//8AAP7/AQD9/wAAAgD//wEAAQABAAEA/v8AAAEA/////wAAAAAAAP//AAABAAAAAAAAAAAA//8CAP//AAABAAEAAQABAAAA//8BAAIAAgD//wAA/v8AAAEAAAD///7/AAAAAAEAAAABAAAAAQABAAAAAQACAAAA///+/wAAAQABAP7////+/wAA//8AAAAAAgAAAP//AQD9/wAAAAD//wAA//8AAAAAAQAAAAAAAQD//wAAAAAAAP//AQABAAAA/v8CAP//AAD///////8AAAAAAAACAAEA//8BAP7/AAAAAAEA//8BAAAAAQD//wAAAQD+/wAA/////wAAAAD//wAAAQABAAAA//8AAAEA/////wAA//8AAAAA/v/+/wEAAgABAP//AgD//wIA/////wAA//8AAAEAAQAAAAAAAQAAAAMAAAACAP//",showCount:!0},audio:{disabled:!0,defaultToggledOn:!1,language:"en-US",voiceNames:["Microsoft David - English (United States)","Alex (English - United States)"],rate:1,volume:1,icon:Q1,iconDisabled:H1},chatHistory:{disabled:!1,maxEntries:30,storageKey:"rcb-history",storageType:"LOCAL_STORAGE",viewChatHistoryButtonText:"Load Chat History ⟳",chatHistoryLineBreakText:"----- Previous Chat History -----",autoLoad:!1},chatInput:{disabled:!1,allowNewline:!1,enabledPlaceholderText:"Type your message...",disabledPlaceholderText:"",showCharacterCount:!1,characterLimit:-1,botDelay:1e3,sendButtonIcon:L1,blockSpam:!0,sendOptionOutput:!0,sendCheckboxOutput:!0,buttons:[$e.VOICE_MESSAGE_BUTTON,$e.SEND_MESSAGE_BUTTON]},chatWindow:{showScrollbar:!1,showTypingIndicator:!0,autoJumpToBottom:!1,showMessagePrompt:!0,messagePromptText:"New Messages ↓",messagePromptOffset:30,defaultOpen:!1},sensitiveInput:{maskInTextArea:!0,maskInUserBubble:!0,asterisksCount:10,hideInUserBubble:!1},userBubble:{animate:!0,showAvatar:!1,avatar:"data:image/svg+xml,%3csvg%20width='140'%20height='140'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cy='60.044'%20cx='70'%20fill='%235c5c5c'%20r='29'/%3e%3cpath%20d='m16.36%20156.186-.01-30.5c-.005-16.844%2024.168-30.507%2053.991-30.516%2029.823-.009%2054.004%2013.64%2054.01%2030.484l.008%2030.5-108%20.032z'%20fill='%235c5c5c'/%3e%3c/svg%3e",simulateStream:!1,streamSpeed:30},botBubble:{animate:!0,showAvatar:!1,avatar:Mg,simulateStream:!1,streamSpeed:30},voice:{disabled:!0,defaultToggledOn:!1,language:"en-US",timeoutPeriod:1e4,autoSendDisabled:!1,autoSendPeriod:1e3,sendAsAudio:!1,icon:N1,iconDisabled:z1},footer:{text:k.jsxs("div",{style:{cursor:"pointer",display:"flex",flexDirection:"row",alignItems:"center",columnGap:3},onClick:()=>window.open("https://react-chatbotify.com"),children:[k.jsx("span",{children:"Powered By "},0),k.jsx("div",{style:{borderRadius:"50%",width:14,height:14,display:"flex",justifyContent:"center",alignItems:"center",background:"linear-gradient(to right, #42b0c5, #491d8d)"},children:k.jsx(Og,{style:{width:"80%",height:"80%",fill:"#fff"}})},1),k.jsx("span",{style:{fontWeight:"bold"},children:" React ChatBotify"},2)]}),buttons:[$e.FILE_ATTACHMENT_BUTTON,$e.EMOJI_PICKER_BUTTON]},fileAttachment:{disabled:!1,multiple:!0,accept:".png",icon:_g,iconDisabled:_g,sendFileName:!0,showMediaDisplay:!1},emoji:{disabled:!1,icon:Fg,iconDisabled:Fg,list:["😀","😃","😄","😅","😊","😌","😇","🙃","🤣","😍","🥰","🥳","🎉","🎈","🚀","⭐️"]},toast:{maxCount:3,forbidOnMax:!1,dismissOnClick:!0},event:{rcbPreInjectMessage:!1,rcbPostInjectMessage:!1,rcbStartSimulateStreamMessage:!1,rcbStopSimulateStreamMessage:!1,rcbStartStreamMessage:!1,rcbChunkStreamMessage:!1,rcbStopStreamMessage:!1,rcbRemoveMessage:!1,rcbLoadChatHistory:!1,rcbToggleChatWindow:!1,rcbStartSpeakAudio:!1,rcbToggleAudio:!1,rcbToggleNotifications:!1,rcbToggleVoice:!1,rcbChangePath:!1,rcbShowToast:!1,rcbDismissToast:!1,rcbUserSubmitText:!1,rcbUserUploadFile:!1,rcbTextAreaChangeValue:!1,rcbPreLoadChatBot:!1,rcbPostLoadChatBot:!1,rcbPreProcessBlock:!1,rcbPostProcessBlock:!1},ariaLabel:{chatButton:"open chat",audioButton:"toggle audio",closeChatButton:"close chat",emojiButton:"emoji picker",fileAttachmentButton:"upload file",notificationButton:"toggle notifications",sendButton:"send message",voiceButton:"toggle voice",inputTextArea:"input text area"},device:{desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!0}},Lg=I.createContext({settings:{},setSyncedSettings:()=>null,syncedSettingsRef:{current:{}}}),Ce=()=>I.useContext(Lg),U1=({children:t,settings:e=Rg,setSyncedSettings:n,syncedSettingsRef:r})=>k.jsx(Lg.Provider,{value:{settings:e,setSyncedSettings:n,syncedSettingsRef:r},children:t}),Ng={tooltipStyle:{},notificationBadgeStyle:{},chatWindowStyle:{},headerStyle:{},bodyStyle:{},chatInputContainerStyle:{},chatInputAreaStyle:{},chatInputAreaFocusedStyle:{},chatInputAreaDisabledStyle:{},userBubbleStyle:{},botBubbleStyle:{},botOptionStyle:{},botOptionHoveredStyle:{},botCheckboxRowStyle:{},botCheckboxNextStyle:{},botCheckMarkStyle:{},botCheckMarkSelectedStyle:{},characterLimitStyle:{},characterLimitReachedStyle:{},chatHistoryLineBreakStyle:{},chatMessagePromptStyle:{},chatMessagePromptHoveredStyle:{},footerStyle:{},loadingSpinnerStyle:{},mediaDisplayContainerStyle:{},chatButtonStyle:{},chatButtonHoveredStyle:{},chatHistoryButtonStyle:{},chatHistoryButtonHoveredStyle:{},sendButtonStyle:{},sendButtonHoveredStyle:{},sendButtonDisabledStyle:{},audioButtonStyle:{},audioButtonDisabledStyle:{},closeChatButtonStyle:{},emojiButtonStyle:{},emojiButtonDisabledStyle:{},fileAttachmentButtonStyle:{},fileAttachmentButtonDisabledStyle:{},notificationButtonStyle:{},notificationButtonDisabledStyle:{},voiceButtonStyle:{},voiceButtonDisabledStyle:{},chatIconStyle:{},audioIconStyle:{},audioIconDisabledStyle:{},closeChatIconStyle:{},emojiIconStyle:{},emojiIconDisabledStyle:{},fileAttachmentIconStyle:{},fileAttachmentIconDisabledStyle:{},notificationIconStyle:{},notificationIconDisabledStyle:{},voiceIconStyle:{},voiceIconDisabledStyle:{},sendIconStyle:{},sendIconDisabledStyle:{},sendIconHoveredStyle:{},rcbTypingIndicatorContainerStyle:{},rcbTypingIndicatorDotStyle:{},toastPromptContainerStyle:{},toastPromptStyle:{},toastPromptHoveredStyle:{}},zg=I.createContext({styles:{},setSyncedStyles:()=>null,syncedStylesRef:{current:{}}}),Qe=()=>I.useContext(zg),j1=({children:t,styles:e=Ng,setSyncedStyles:n,syncedStylesRef:r})=>k.jsx(zg.Provider,{value:{styles:e,setSyncedStyles:n,syncedStylesRef:r},children:t}),W1=({buttons:t})=>{var e,n,r,o,i,a,s;const{settings:l}=Ce(),{styles:c}=Qe(),u={backgroundImage:`linear-gradient(to right, ${(e=l.general)==null?void 0:e.secondaryColor},
|
|
66
|
+
${(n=l.general)==null?void 0:n.primaryColor})`,...c.headerStyle};return k.jsxs("div",{style:u,className:"rcb-chat-header-container",children:[k.jsxs("div",{className:"rcb-chat-header",children:[((r=l.header)==null?void 0:r.showAvatar)&&k.jsx("div",{style:{backgroundImage:`url("${(o=l.header)==null?void 0:o.avatar}")`},className:"rcb-bot-avatar"}),I.isValidElement((i=l.header)==null?void 0:i.title)?(a=l.header)==null?void 0:a.title:k.jsx("div",{style:{margin:0,fontSize:20,fontWeight:"bold"},children:(s=l.header)==null?void 0:s.title})]}),k.jsx("div",{className:"rcb-chat-header",children:t?.map((f,p)=>k.jsx(I.Fragment,{children:f},p))})]})},Qg=I.createContext({}),lt=()=>I.useContext(Qg),V1=({children:t,botIdRef:e,flowRef:n})=>{const r=I.useRef(null),o=I.useRef(""),i=I.useRef(null),a=I.useRef(new Map),s=I.useRef(null),l=I.useRef(""),c=I.useRef(!1),u=I.useRef(null),f=I.useRef(null),p=I.useRef(null);return k.jsx(Qg.Provider,{value:{botIdRef:e,flowRef:n,inputRef:r,timeoutIdRef:i,streamMessageMap:a,chatBodyRef:s,paramsInputRef:l,keepVoiceOnRef:c,audioContextRef:u,audioBufferRef:f,gainNodeRef:p,prevInputRef:o},children:t})},Jt=t=>{const[e,n]=I.useState(t),r=I.useRef(t);return[e,o=>{const i=typeof o=="function"?o(r.current):o;r.current=i,n(i)},r]},Hg=I.createContext({}),ft=()=>I.useContext(Hg),Y1=({children:t,settings:e})=>{var n,r,o,i,a,s;const[l,c,u]=Jt(!1),[f,p,m]=Jt(((n=e?.chatWindow)==null?void 0:n.defaultOpen)??!1),[v,w,y]=Jt(((r=e?.audio)==null?void 0:r.defaultToggledOn)??!1),[S,T,P]=Jt(((o=e?.voice)==null?void 0:o.defaultToggledOn)??!1),[E,O,M]=Jt(((i=e?.notification)==null?void 0:i.defaultToggledOn)??!0),[N,H]=I.useState(!1),[z,Q]=I.useState(!1),[U,j,V]=Jt(!1),[X,q,te]=Jt(!0),[Z,ee,F]=Jt(!1),[fe,R]=I.useState(!1),[ce,ne]=I.useState(!1),[$,ie]=I.useState(0),[ae,Ae]=I.useState(0),[ye,ke]=I.useState(!1),[Be,Je]=I.useState(((a=window.visualViewport)==null?void 0:a.height)??window.innerHeight),[Et,Ke]=I.useState(((s=window.visualViewport)==null?void 0:s.width)??window.innerWidth);return k.jsx(Hg.Provider,{value:{isBotTyping:l,setSyncedIsBotTyping:c,syncedIsBotTypingRef:u,isChatWindowOpen:f,setSyncedIsChatWindowOpen:p,syncedIsChatWindowOpenRef:m,audioToggledOn:v,setSyncedAudioToggledOn:w,syncedAudioToggledOnRef:y,voiceToggledOn:S,setSyncedVoiceToggledOn:T,syncedVoiceToggledOnRef:P,notificationsToggledOn:E,setSyncedNotificationsToggledOn:O,syncedNotificationsToggledOnRef:M,isLoadingChatHistory:N,setIsLoadingChatHistory:H,hasChatHistoryLoaded:z,setHasChatHistoryLoaded:Q,isScrolling:U,setSyncedIsScrolling:j,syncedIsScrollingRef:V,textAreaDisabled:X,setSyncedTextAreaDisabled:q,syncedTextAreaDisabledRef:te,textAreaSensitiveMode:Z,setSyncedTextAreaSensitiveMode:ee,syncedTextAreaSensitiveModeRef:F,hasInteractedPage:fe,setHasInteractedPage:R,hasFlowStarted:ce,setHasFlowStarted:ne,unreadCount:$,setUnreadCount:ie,inputLength:ae,setInputLength:Ae,blockAllowsAttachment:ye,setBlockAllowsAttachment:ke,viewportHeight:Be,setViewportHeight:Je,viewportWidth:Et,setViewportWidth:Ke},children:t})};var de=(t=>(t.START_SPEAK_AUDIO="rcb-start-speak-audio",t.TOGGLE_AUDIO="rcb-toggle-audio",t.TOGGLE_NOTIFICATIONS="rcb-toggle-notifications",t.TOGGLE_VOICE="rcb-toggle-voice",t.TOGGLE_CHAT_WINDOW="rcb-toggle-chat-window",t.PRE_INJECT_MESSAGE="rcb-pre-inject-message",t.POST_INJECT_MESSAGE="rcb-post-inject-message",t.START_SIMULATE_STREAM_MESSAGE="rcb-start-simulate-stream-message",t.STOP_SIMULATE_STREAM_MESSAGE="rcb-stop-simulate-stream-message",t.START_STREAM_MESSAGE="rcb-start-stream-message",t.CHUNK_STREAM_MESSAGE="rcb-chunk-stream-message",t.STOP_STREAM_MESSAGE="rcb-stop-stream-message",t.REMOVE_MESSAGE="rcb-remove-message",t.LOAD_CHAT_HISTORY="rcb-load-chat-history",t.CHANGE_PATH="rcb-change-path",t.SHOW_TOAST="rcb-show-toast",t.DISMISS_TOAST="rcb-dismiss-toast",t.USER_SUBMIT_TEXT="rcb-user-submit-text",t.USER_UPLOAD_FILE="rcb-user-upload-file",t.TEXT_AREA_CHANGE_VALUE="rcb-text-area-change-value",t.PRE_LOAD_CHATBOT="rcb-pre-load-chatbot",t.POST_LOAD_CHATBOT="rcb-post-load-chatbot",t.PRE_PROCESS_BLOCK="rcb-pre-process-block",t.POST_PROCESS_BLOCK="rcb-post-process-block",t))(de||{});const q1={[de.START_SPEAK_AUDIO]:!0,[de.TOGGLE_AUDIO]:!0,[de.TOGGLE_VOICE]:!0,[de.TOGGLE_NOTIFICATIONS]:!0,[de.TOGGLE_CHAT_WINDOW]:!0,[de.PRE_INJECT_MESSAGE]:!0,[de.POST_INJECT_MESSAGE]:!1,[de.PRE_LOAD_CHATBOT]:!0,[de.POST_LOAD_CHATBOT]:!1,[de.START_SIMULATE_STREAM_MESSAGE]:!0,[de.STOP_SIMULATE_STREAM_MESSAGE]:!1,[de.START_STREAM_MESSAGE]:!0,[de.CHUNK_STREAM_MESSAGE]:!0,[de.STOP_STREAM_MESSAGE]:!0,[de.REMOVE_MESSAGE]:!0,[de.LOAD_CHAT_HISTORY]:!0,[de.CHANGE_PATH]:!0,[de.SHOW_TOAST]:!0,[de.DISMISS_TOAST]:!0,[de.USER_SUBMIT_TEXT]:!0,[de.USER_UPLOAD_FILE]:!0,[de.TEXT_AREA_CHANGE_VALUE]:!0,[de.PRE_PROCESS_BLOCK]:!0,[de.POST_PROCESS_BLOCK]:!0},zd=async(t,e,n)=>{const r=new CustomEvent(t,{detail:e,cancelable:q1[t]});return r.data=n,r.promises=[],window.dispatchEvent(r),await Promise.all(r.promises),r},Ug=I.createContext({paths:[],setSyncedPaths:()=>{},syncedPathsRef:{current:[]}}),Ta=()=>I.useContext(Ug),K1=({children:t})=>{const[e,n,r]=Jt([]);return k.jsx(Ug.Provider,{value:{paths:e,setSyncedPaths:n,syncedPathsRef:r},children:t})},En=()=>{const{botIdRef:t}=lt(),{syncedPathsRef:e}=Ta(),n=I.useCallback(()=>e.current.length>0?e.current.at(-1)??null:null,[]),r=I.useCallback(()=>e.current.length>1?e.current.at(-2)??null:null,[]);return{dispatchRcbEvent:I.useCallback(async(o,i)=>{const a={botId:t.current,currPath:n(),prevPath:r()};return await zd(o,a,i)},[t])}},Zt=()=>{const{settings:t}=Ce(),{isChatWindowOpen:e,setSyncedIsChatWindowOpen:n,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:a,setUnreadCount:s,setSyncedIsBotTyping:l,setSyncedIsScrolling:c,syncedIsBotTypingRef:u,syncedIsChatWindowOpenRef:f}=ft(),{chatBodyRef:p}=lt(),{dispatchRcbEvent:m}=En(),v=I.useCallback(()=>{if(!p.current)return!1;const P=p.current.getBoundingClientRect(),E=window.innerHeight??document.documentElement.clientHeight,O=window.innerWidth??document.documentElement.clientWidth;return P.top>=0&&P.left>=0&&P.bottom<=E&&P.right<=O},[p]),w=I.useCallback(async P=>{var E;P!==f.current&&((E=t.event)!=null&&E.rcbToggleChatWindow&&(await m(de.TOGGLE_CHAT_WINDOW,{currState:f.current,newState:!f.current})).defaultPrevented||n(O=>(O||s(0),!O)))},[f]),y=I.useCallback(async P=>{P!==u.current&&l(E=>!E)},[u]),S=I.useCallback((P,E,O,M)=>(P/=M/2)<1?O/2*P*P+E:-O/2*(--P*(P-2)-1)+E,[]),T=I.useCallback((P=0)=>{if(!p.current)return;const E=p.current.scrollHeight-p.current.clientHeight;if(P<=0)return p.current.scrollTop=E,void c(!1);const O=p.current.scrollTop,M=E-O;let N=0;const H=()=>{if(!p.current)return;N+=20;const z=S(N,O,M,P);p.current.scrollTop=z,N<P?requestAnimationFrame(H):c(!1)};H()},[p]);return{isChatWindowOpen:e,setSyncedIsChatWindowOpen:n,toggleChatWindow:w,viewportHeight:r,setViewportHeight:o,viewportWidth:i,setViewportWidth:a,toggleIsBotTyping:y,scrollToBottom:T,getIsChatBotVisible:v}},X1=()=>{var t,e,n;const{settings:r}=Ce(),{styles:o}=Qe(),{unreadCount:i,isScrolling:a}=ft(),{chatBodyRef:s}=lt(),{scrollToBottom:l}=Zt(),[c,u]=I.useState(!1),f={color:(t=r.general)==null?void 0:t.primaryColor,borderColor:(e=r.general)==null?void 0:e.primaryColor,...o.chatMessagePromptHoveredStyle};return k.jsx("div",{className:"rcb-message-prompt-container "+(s.current&&(p=r.chatWindow)!=null&&p.showMessagePrompt&&a&&i>0?"visible":"hidden"),children:k.jsx("div",{onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},style:c?f:{...o.chatMessagePromptStyle},onMouseDown:m=>{m.preventDefault(),l(600)},className:"rcb-message-prompt-text",children:(n=r.chatWindow)==null?void 0:n.messagePromptText})});var p},jg=I.createContext({messages:[],setSyncedMessages:()=>{},syncedMessagesRef:{current:[]}}),Qd=()=>I.useContext(jg),G1=({children:t})=>{const[e,n,r]=Jt([]);return k.jsx(jg.Provider,{value:{messages:e,setSyncedMessages:n,syncedMessagesRef:r},children:t})},J1=({message:t,isNewSender:e})=>{var n,r,o,i,a,s;const{settings:l}=Ce(),{styles:c}=Qe(),u=typeof t.content=="string",f=t.content,p=t.contentWrapper?k.jsx(t.contentWrapper,{children:f}):f,m={backgroundColor:(n=l.general)==null?void 0:n.primaryColor,color:"#fff",maxWidth:(r=l.userBubble)!=null&&r.showAvatar?"65%":"70%",...c.userBubbleStyle},v=(o=l.userBubble)!=null&&o.animate?"rcb-user-message-entry":"",w=((i=l.userBubble)==null?void 0:i.showAvatar)&&e,y="rcb-user-message"+(!e&&(a=l.userBubble)!=null&&a.showAvatar?" rcb-user-message-offset":"");return k.jsxs("div",{className:"rcb-user-message-container",children:[u?k.jsx("div",{style:m,className:`${y} ${v}`,children:p}):k.jsx(k.Fragment,{children:p}),w&&k.jsx("div",{style:{backgroundImage:`url("${(s=l.userBubble)==null?void 0:s.avatar}")`},className:"rcb-message-user-avatar"})]})},Z1=({message:t,isNewSender:e})=>{var n,r,o,i,a,s;const{settings:l}=Ce(),{styles:c}=Qe(),u=typeof t.content=="string",f=t.content,p=t.contentWrapper?k.jsx(t.contentWrapper,{children:f}):f,m={backgroundColor:(n=l.general)==null?void 0:n.secondaryColor,color:"#fff",maxWidth:(r=l.botBubble)!=null&&r.showAvatar?"65%":"70%",...c.botBubbleStyle},v=(o=l.botBubble)!=null&&o.animate?"rcb-bot-message-entry":"",w=((i=l.botBubble)==null?void 0:i.showAvatar)&&e,y="rcb-bot-message"+(!e&&(a=l.botBubble)!=null&&a.showAvatar?" rcb-bot-message-offset":"");return k.jsxs("div",{className:"rcb-bot-message-container",children:[w&&k.jsx("div",{style:{backgroundImage:`url("${(s=l.botBubble)==null?void 0:s.avatar}")`},className:"rcb-message-bot-avatar"}),u?k.jsx("div",{style:m,className:`${y} ${v}`,children:p}):k.jsx(k.Fragment,{children:p})]})},$1=()=>{var t,e,n;const{settings:r}=Ce(),{styles:o}=Qe(),i=(t=r.botBubble)!=null&&t.animate?"rcb-bot-message-entry":"";return k.jsxs("div",{className:"rcb-bot-message-container",children:[((e=r.botBubble)==null?void 0:e.showAvatar)&&k.jsx("div",{style:{backgroundImage:`url("${(n=r.botBubble)==null?void 0:n.avatar}")`},className:"rcb-message-bot-avatar"}),k.jsx("div",{onMouseDown:a=>{a.preventDefault()},className:`rcb-bot-message ${i}`,children:k.jsxs("div",{className:"rcb-typing-indicator",style:{...o?.rcbTypingIndicatorContainerStyle},children:[k.jsx("span",{className:"rcb-dot",style:{...o?.rcbTypingIndicatorDotStyle}}),k.jsx("span",{className:"rcb-dot",style:{...o?.rcbTypingIndicatorDotStyle}}),k.jsx("span",{className:"rcb-dot",style:{...o?.rcbTypingIndicatorDotStyle}})]})})]})},ek=()=>{var t,e,n;const{settings:r}=Ce(),{styles:o}=Qe(),{messages:i}=Qd(),{scrollToBottom:a}=Zt(),{isBotTyping:s,syncedIsScrollingRef:l}=ft(),{chatBodyRef:c}=lt(),u={...o?.bodyStyle,scrollbarWidth:(t=r.chatWindow)!=null&&t.showScrollbar?"auto":"none"};return I.useEffect(()=>{l.current||a()},[(e=c.current)==null?void 0:e.scrollHeight]),k.jsxs("div",{style:u,className:"rcb-chat-body-container",ref:c,children:[i.map((f,p)=>{const m=(v=>v===0||i[v].sender!==i[v-1].sender)(p);return f.sender.toUpperCase()==="USER"?k.jsx(J1,{message:f,isNewSender:m},p):f.sender.toUpperCase()==="BOT"?k.jsx(Z1,{message:f,isNewSender:m},p):k.jsx("div",{children:f.content},p)}),s&&((n=r.chatWindow)==null?void 0:n.showTypingIndicator)&&k.jsx($1,{}),k.jsx(X1,{})]})},tk=({checkboxes:t,checkedItems:e,path:n})=>{var r,o,i,a,s,l,c,u,f,p,m;const{settings:v}=Ce(),{styles:w}=Qe(),{paths:y}=Ta(),{handleSubmitText:S}=Jo(),[T,P]=I.useState(new Set),[E,O]=I.useState(!1),M={cursor:E?`url("${(r=v.general)==null?void 0:r.actionDisabledIcon}"), auto`:"pointer",color:(o=v.general)==null?void 0:o.primaryColor,borderColor:(i=v.general)==null?void 0:i.primaryColor,...w.botCheckboxRowStyle},N={cursor:E||T.size<t.min?`url("${(a=v.general)==null?void 0:a.actionDisabledIcon}"), auto`:"pointer",color:(s=v.general)==null?void 0:s.primaryColor,borderColor:(l=v.general)==null?void 0:l.primaryColor,...w.botCheckboxNextStyle},H={cursor:E?`url("${(c=v.general)==null?void 0:c.actionDisabledIcon}"), auto`:"pointer",color:"transparent",...w.botCheckMarkStyle},z={cursor:E?`url("${(u=v.general)==null?void 0:u.actionDisabledIcon}"), auto`:"pointer",color:"#fff",borderColor:(f=v.general)==null?void 0:f.primaryColor,backgroundColor:(p=v.general)==null?void 0:p.primaryColor,...w.botCheckMarkSelectedStyle};return I.useEffect(()=>{y.length>0&&y[y.length-1]!==n&&O(!t.reusable)},[y]),k.jsxs("div",{className:"rcb-checkbox-container "+((m=v.botBubble)!=null&&m.showAvatar?"rcb-checkbox-offset":""),children:[t.items.map(Q=>k.jsx("div",{onMouseDown:U=>{U.preventDefault(),(j=>{E||P(V=>{const X=new Set(V);if(X.has(j))e.delete(j),X.delete(j);else{if(T.size==t.max)return V;e.add(j),X.add(j)}return X})})(Q)},style:M,className:"rcb-checkbox-row-container",children:k.jsxs("div",{className:"rcb-checkbox-row",children:[k.jsx("div",{style:T.has(Q)?z:H,className:"rcb-checkbox-mark"}),k.jsx("div",{className:"rcb-checkbox-label",children:Q})]})},Q)),k.jsx("div",{style:N,className:"rcb-checkbox-next-button",onMouseDown:Q=>{var U;if(Q.preventDefault(),E||T.size<t.min)return;const j=Array.from(e).join(", ");let V;O(!t.reusable),V=t.sendOutput!=null?t.sendOutput:((U=v.chatInput)==null?void 0:U.sendCheckboxOutput)??!0,S(j,V)}})]})},nk=async(t,e)=>{const n=t.checkboxes;if(!n)return;let r;if(typeof n=="function"?(r=n(e),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||r.items.length==0)return;r.min==null&&(r.min=1),r.max==null&&(r.max=r.items.length),r.min>r.max&&(r.min=r.max),r.reusable==null&&(r.reusable=!1);const o=new Set,i=e.currPath,a=k.jsx(tk,{checkboxes:r,checkedItems:o,path:i});await e.injectMessage(a)},rk=async(t,e)=>{const n=t.function;if(!n)return;const r=n(e);return r instanceof Promise?await r:r},ok=async(t,e,n)=>{const r=t.message;if(!r)return;if(typeof r=="string")return void(r.trim()!==""&&(n?await e.simulateStreamMessage(r):await e.injectMessage(r)));let o=r(e);o instanceof Promise&&(o=await o),typeof o=="string"&&o.trim()!==""&&(n?await e.simulateStreamMessage(o):await e.injectMessage(o))},ik=({options:t,path:e})=>{var n,r,o,i,a,s;const{settings:l}=Ce(),{styles:c}=Qe(),{paths:u}=Ta(),{handleSubmitText:f}=Jo(),[p,m]=I.useState([]),[v,w]=I.useState(!1),y={cursor:v?`url("${(n=l.general)==null?void 0:n.actionDisabledIcon}"), auto`:"pointer",color:(r=l.general)==null?void 0:r.primaryColor,borderColor:(o=l.general)==null?void 0:o.primaryColor,backgroundColor:"#fff",...c.botOptionStyle},S={color:"#fff",borderColor:(i=l.general)==null?void 0:i.primaryColor,backgroundColor:(a=l.general)==null?void 0:a.primaryColor,...c.botOptionHoveredStyle};return I.useEffect(()=>{u.length>0&&u[u.length-1]!==e&&w(!t.reusable)},[u]),k.jsx("div",{className:"rcb-options-container "+((s=l.botBubble)!=null&&s.showAvatar?"rcb-options-offset":""),children:t.items.map((T,P)=>{const E=p[P]&&!v;return k.jsx("div",{className:"rcb-options",style:E?S:y,onMouseEnter:()=>(O=>{m(M=>{const N=[...M];return N[O]=!0,N})})(P),onMouseLeave:()=>(O=>{m(M=>{const N=[...M];return N[O]=!1,N})})(P),onMouseDown:O=>{var M;if(O.preventDefault(),v)return;let N;w(!t.reusable),N=t.sendOutput!=null?t.sendOutput:((M=l.chatInput)==null?void 0:M.sendOptionOutput)??!0,f(T,N)},children:T},T)})})},ak=async(t,e)=>{const n=t.options;if(!n)return;let r;if(typeof n=="function"?(r=n(e),r instanceof Promise&&(r=await r)):r=n,Array.isArray(r)&&(r={items:r}),!("items"in r)||r.items.length==0)return;r.reusable==null&&(r.reusable=!1);const o=e.currPath,i=k.jsx(ik,{options:r,path:o});await e.injectMessage(i)},sk=async(t,e)=>{const n=t.component;if(n){if(typeof n=="function"){let r=n(e);return r instanceof Promise&&(r=await r),r?void await e.injectMessage(r):void 0}await e.injectMessage(n)}},lk=async(t,e,n,r)=>{const o=t.transition;let i;if(typeof o=="function"?(i=o(e),i instanceof Promise&&(i=await i)):i=o,typeof i=="number"&&(i={duration:i}),!i||i instanceof Promise||i.duration==null||typeof i.duration!="number")return;i.interruptable==null&&(i.interruptable=!1);const a=setTimeout(async()=>{const s=await r(t);s&&await Vg(s,e)},i.duration);i.interruptable&&(n.current=a)},ck=async(t,e,n)=>{const r=t.chatDisabled;if(r==null)return;let o;typeof r=="function"?(o=r(e),o instanceof Promise&&(o=await o)):o=r,n(o)},Wg=async(t,e,n)=>{const r=t.isSensitive;if(!r)return void n(!1);let o;typeof r=="function"?(o=r(e),o instanceof Promise&&(o=await o)):o=r,n(o)},Vg=async(t,e)=>{if(!t)throw new Error("Block is not valid.");const n=Object.keys(t);for(const r of n)r==="function"&&await rk(t,e);n.includes("path")&&await(async(r,o)=>{const i=r.path;if(!i)return!1;if(typeof i=="string")return await o.goToPath(i),!0;let a=i(o);if(a instanceof Promise&&(a=await a),!a)return!1;const s=a;return await o.goToPath(s),!0})(t,e)},uk=()=>{var t;const{settings:e}=Ce(),{styles:n}=Qe();return k.jsx("div",{className:"rcb-line-break-container",children:k.jsx("div",{style:{...n.chatHistoryLineBreakStyle},className:"rcb-line-break-text","data-testid":"chat-history-line-break-text",children:(t=e.chatHistory)==null?void 0:t.chatHistoryLineBreakText})})},dk=()=>{var t;const{settings:e}=Ce(),{styles:n}=Qe(),r={borderTop:`4px solid ${(t=e.general)==null?void 0:t.primaryColor}`,...n.loadingSpinnerStyle};return k.jsx("div",{className:"rcb-spinner-container",children:k.jsx("div",{style:r,className:"rcb-spinner"})})},Hl=()=>{try{if(typeof crypto<"u"&&typeof crypto.randomUUID=="function")return crypto.randomUUID();throw new Error("crypto.randomUUID not available")}catch(t){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function")return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const n=crypto.getRandomValues(new Uint8Array(1))[0]%16;return(e==="x"?n:3&n|8).toString(16)});throw console.error(t),new Error("crypto.getRandomValues is also not available")}},Pr=(t,e)=>({id:Hl(),content:t,sender:e,type:typeof t=="string"?"string":"object",timestamp:new Date().toUTCString(),tags:[]});let Dr,Yg=!1,Ul="rcb-history",jl=30,qg=!1,Ba=[];const Hd=async t=>{if(qg||!Dr)return;const e=[],n=Yg?Ba.length:0;for(let o=t.length-1;o>=n;o--){const i=t[o];if(i.sender.toUpperCase()!=="SYSTEM"&&(i.content!==""&&e.unshift(i),e.length===jl))break}let r=e.map(hk);if(r.length<jl){const o=jl-r.length;r=[...Ba.slice(-o),...r]}Kg(r)},Ud=()=>Ba,fk=t=>{Kg(t),Ba=t},Kg=t=>{Dr&&Dr.setItem(Ul,JSON.stringify(t))},jd=t=>{var e,n,r,o,i;Dr=((n=(e=t.chatHistory)==null?void 0:e.storageType)==null?void 0:n.toUpperCase())==="SESSION_STORAGE"?sessionStorage:localStorage,Ul=(r=t.chatHistory)==null?void 0:r.storageKey,jl=(o=t.chatHistory)==null?void 0:o.maxEntries,qg=(i=t.chatHistory)==null?void 0:i.disabled,Ba=(a=>{if(a!=null)try{return JSON.parse(a)}catch{return[]}return[]})(Dr.getItem(Ul))},hk=t=>I.isValidElement(t.content)?structuredClone({id:t.id,content:to.renderToString(t.content),type:t.type,sender:t.sender.toUpperCase(),timestamp:t.timestamp,tags:t.tags}):t,Xg=(t,e,n)=>{const r=new DOMParser().parseFromString(t,"text/html");return Array.from(r.body.childNodes).map((o,i)=>{var a;if(o.nodeType===Node.TEXT_NODE)return o.textContent;{const s=o.tagName.toLowerCase();let l=Array.from(o.attributes).reduce((c,u)=>{const f=u.name.toLowerCase();if(f==="style"){const p=u.value.split(";").filter(v=>v.trim()!==""),m={};p.forEach(v=>{const[w,y]=v.split(":").map(T=>T.trim()),S=w.replace(/-([a-z])/g,(T,P)=>P.toUpperCase());m[S]=y}),c[f]=m}else s!=="audio"&&s!=="video"||f!=="controls"||u.value!==""?c[f]=u.value:c[f]="true";return c},{});if(Object.prototype.hasOwnProperty.call(l,"class")){const c=o.classList;l.className=c.toString(),delete l.class,(a=e.botBubble)!=null&&a.showAvatar&&(l=pk(c,l)),l=Ak(c,l,e,n),l=gk(c,l,e,n),l=mk(c,l,e,n),l=bk(c,l,e,n)}if(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"].includes(s))return I.createElement(s,{key:i,...l});{const c=Xg(o.innerHTML,e,n);return I.createElement(s,{key:i,...l},...c)}}})},pk=(t,e)=>((t.contains("rcb-options-container")||t.contains("rcb-checkbox-container"))&&(e.className=`${t.toString()} rcb-options-offset`),e),Ak=(t,e,n,r)=>{var o,i,a,s,l;return t.contains("rcb-options")&&(e.style={...e.style,color:((o=r.botOptionStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((a=r.botOptionStyle)==null?void 0:a.color)??((s=n.general)==null?void 0:s.primaryColor),cursor:`url("${(l=n.general)==null?void 0:l.actionDisabledIcon}"), auto`,...r.botOptionStyle}),e},gk=(t,e,n,r)=>{var o,i,a,s,l;return t.contains("rcb-checkbox-row-container")&&(e.style={...e.style,color:((o=r.botCheckboxRowStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((a=r.botCheckboxRowStyle)==null?void 0:a.color)??((s=n.general)==null?void 0:s.primaryColor),cursor:`url("${(l=n.general)==null?void 0:l.actionDisabledIcon}"), auto`,...r.botCheckboxRowStyle}),e},mk=(t,e,n,r)=>{var o,i,a,s,l;return t.contains("rcb-checkbox-next-button")&&(e.style={...e.style,color:((o=r.botCheckboxNextStyle)==null?void 0:o.color)??((i=n.general)==null?void 0:i.primaryColor),borderColor:((a=r.botCheckboxNextStyle)==null?void 0:a.color)??((s=n.general)==null?void 0:s.primaryColor),cursor:`url("${(l=n.general)==null?void 0:l.actionDisabledIcon}"), auto`,...r.botCheckboxNextStyle}),e},bk=(t,e,n,r)=>{var o,i;return(t.contains("rcb-media-display-image-container")||t.contains("rcb-media-display-video-container"))&&(e.style={...e.style,backgroundColor:(o=n.general)==null?void 0:o.primaryColor,maxWidth:(i=n.userBubble)!=null&&i.showAvatar?"65%":"70%",...r.mediaDisplayContainerStyle}),e},Wd=()=>{const{settings:t}=Ce(),{notificationsToggledOn:e,setSyncedNotificationsToggledOn:n,hasInteractedPage:r,unreadCount:o,setUnreadCount:i,syncedNotificationsToggledOnRef:a}=ft(),{audioBufferRef:s,audioContextRef:l,gainNodeRef:c}=lt(),{dispatchRcbEvent:u}=En(),f=I.useCallback(async()=>{var m,v;const w=(m=t.notification)==null?void 0:m.sound;l.current=new AudioContext;const y=l.current.createGain();let S;if(y.gain.value=((v=t.notification)==null?void 0:v.volume)??.2,c.current=y,w!=null&&w.startsWith("data:audio")){const T=atob(w.split(",")[1]),P=new ArrayBuffer(T.length),E=new Uint8Array(P);for(let O=0;O<T.length;O++)E[O]=T.charCodeAt(O);S=P}else S=await(await fetch(w)).arrayBuffer();s.current=await l.current.decodeAudioData(S)},[t.notification]),p=I.useCallback(()=>{var m;if((m=t.notification)!=null&&m.disabled||!a.current||!r||!l.current||!s.current)return;const v=l.current.createBufferSource();v.buffer=s.current,v.connect(c.current).connect(l.current.destination),v.start()},[t.notification,a,r,l,s,c]);return{unreadCount:o,setUnreadCount:i,notificationsToggledOn:e,toggleNotifications:I.useCallback(async m=>{var v;m!==a.current&&((v=t.event)!=null&&v.rcbToggleNotifications&&(await u(de.TOGGLE_NOTIFICATIONS,{currState:a.current,newState:!a.current})).defaultPrevented||n(w=>!w))},[a]),playNotificationSound:p,setUpNotifications:f}},vk=(t,e)=>{var n,r,o,i;((a,s,l,c,u)=>{if(!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const f=new window.SpeechSynthesisUtterance;f.text=a,f.lang=s,f.rate=c,f.volume=u;let p=!1;for(const m of l)if(window.speechSynthesis.getVoices().find(v=>{if(v.name===m)return f.voice=v,window.speechSynthesis.speak(f),void(p=!0)}),p)break;p||window.speechSynthesis.speak(f)})(e,(n=t.audio)==null?void 0:n.language,(r=t.audio)==null?void 0:r.voiceNames,(o=t.audio)==null?void 0:o.rate,(i=t.audio)==null?void 0:i.volume)},Gg=()=>{const{settings:t}=Ce(),{audioToggledOn:e,setSyncedAudioToggledOn:n,syncedAudioToggledOnRef:r}=ft(),{dispatchRcbEvent:o}=En(),i=I.useCallback(async s=>{var l;s!==r.current&&((l=t.event)!=null&&l.rcbToggleAudio&&(await o(de.TOGGLE_AUDIO,{currState:r.current,newState:!r.current})).defaultPrevented||n(c=>!c))},[r]),a=I.useCallback(async s=>{var l,c;if((l=t.audio)!=null&&l.disabled||!r.current)return;let u=s;if((c=t.event)!=null&&c.rcbStartSpeakAudio){const f=await o(de.START_SPEAK_AUDIO,{textToRead:u});if(f.defaultPrevented)return;u=f.data.textToRead}vk(t,u)},[t,r]);return{audioToggledOn:e,speakAudio:a,toggleAudio:i}},no=()=>{var t,e;const{settings:n}=Ce(),{messages:r,setSyncedMessages:o,syncedMessagesRef:i}=Qd(),{setSyncedIsBotTyping:a,setUnreadCount:s,syncedIsScrollingRef:l,syncedIsChatWindowOpenRef:c}=ft(),{streamMessageMap:u,chatBodyRef:f,paramsInputRef:p}=lt(),{scrollToBottom:m,getIsChatBotVisible:v}=Zt(),{dispatchRcbEvent:w}=En(),{speakAudio:y}=Gg(),{playNotificationSound:S}=Wd(),T=I.useCallback((z,Q=!1)=>{var U,j;Hd(z);let V=!0;const X=z[z.length-1];if(!X)return;const q=X.sender.toUpperCase();q==="USER"&&(V=!1),(U=n.general)!=null&&U.embedded&&v()&&(V=!1),(c.current&&!l.current||Q)&&(V=!1),V&&S(),!Q&&(q!=="USER"&&(j=n.chatWindow)!=null&&j.autoJumpToBottom||q==="USER"||!l.current)&&setTimeout(()=>m(),1)},[n,f,c,l,S,m,v]),P=I.useCallback(async(z,Q="BOT",U=null)=>{var j,V,X,q,te;if(typeof z!="string")throw new Error("Content must be of type string to simulate stream.");Q=Q.toUpperCase();let Z=Pr(z,Q);if((j=n.event)!=null&&j.rcbStartSimulateStreamMessage){const $=await w(de.START_SIMULATE_STREAM_MESSAGE,{message:Z});if($.defaultPrevented)return null;U=$.data.simulateStreamChunker||U,Z=$.data.message}a(!1);let ee=30;ee=Q==="BOT"?(V=n.botBubble)==null?void 0:V.streamSpeed:(X=n.userBubble)==null?void 0:X.streamSpeed;const F={...Z,content:""};o($=>[...$,F]),T(i.current);let fe=Z.content;U&&(fe=U(fe));let R=0;const ce=fe.length;Z.sender.toUpperCase()==="BOT"&&(c.current||(q=n.general)!=null&&q.embedded)&&typeof Z.content=="string"&&Z.content.trim()!==""&&y(Z.content);const ne=new Promise($=>{const ie=setInterval(()=>{if(R>=ce)return clearInterval(ie),void $();o(ae=>{const Ae=[...ae];for(let ye=Ae.length-1;ye>=0;ye--)if(Ae[ye].id===F.id){const ke=fe[R];ke&&(F.content+=ke,Ae[ye]=F),R++;break}return Ae})},ee)});return(l.current||!c.current)&&s($=>$+1),await ne,Hd(i.current),(te=n.event)!=null&&te.rcbStopSimulateStreamMessage&&await w(de.STOP_SIMULATE_STREAM_MESSAGE,{message:Z}),Q==="USER"&&(p.current=z),Z},[n,w,T,i,p,a,s,c,y]),E=I.useCallback(async(z,Q="BOT")=>{var U,j,V;Q=Q.toUpperCase();let X=Pr(z,Q);if((U=n.event)!=null&&U.rcbPreInjectMessage){const q=await w(de.PRE_INJECT_MESSAGE,{message:X});if(q.defaultPrevented)return null;X=q.data.message}return X.sender.toUpperCase()==="BOT"&&(c.current||(j=n.general)!=null&&j.embedded)&&typeof X.content=="string"&&X.content.trim()!==""&&y(X.content),(l.current||!c.current)&&s(q=>q+1),(V=n.event)!=null&&V.rcbPostInjectMessage&&await w(de.POST_INJECT_MESSAGE,{message:X}),o(q=>[...q,X]),T(i.current),Q==="USER"&&typeof z=="string"&&(p.current=z),X},[n,w,T,p,i,c,y,s]),O=I.useCallback(async z=>{var Q;const U=i.current.find(j=>j.id===z);return!U||(Q=n.event)!=null&&Q.rcbRemoveMessage&&(await w(de.REMOVE_MESSAGE,{message:U})).defaultPrevented?null:(o(j=>j.filter(V=>V.id!==z)),T(i.current),s(j=>Math.max(j-1,0)),U)},[w,(t=n.event)==null?void 0:t.rcbRemoveMessage,T,i,s]),M=I.useCallback(async(z,Q="BOT")=>{var U,j;if(Q=Q.toUpperCase(),!u.current.has(Q)){const X=Pr(z,Q);return(U=n.event)!=null&&U.rcbStartStreamMessage&&(await w(de.START_STREAM_MESSAGE,{message:X})).defaultPrevented?null:(a(!1),o(q=>[...q,X]),T(i.current),u.current.set(Q,X.id),(l.current||!c.current)&&s(q=>q+1),X)}const V={...Pr(z,Q),id:u.current.get(Q)};return(j=n.event)!=null&&j.rcbChunkStreamMessage&&(await w(de.CHUNK_STREAM_MESSAGE,{message:V})).defaultPrevented?null:(o(X=>X.map(q=>q.id===V.id?V:q)),T(i.current,!0),V)},[w,n.event,T,i,a,s,u]),N=I.useCallback(async(z="BOT")=>{var Q;if(z=z.toUpperCase(),!u.current.has(z))return!0;const U=u.current.get(z);let j;for(let V=0;V<3;V++){const X=i.current.find(q=>q.id===U);X&&(j=X),await new Promise(q=>setTimeout(q,20))}return((Q=n.event)==null||!Q.rcbStopStreamMessage||!(await w(de.STOP_STREAM_MESSAGE,{message:j})).defaultPrevented)&&(u.current.delete(z),Hd(i.current),z==="USER"&&typeof j?.content=="string"&&(p.current=j.content),!0)},[w,(e=n.event)==null?void 0:e.rcbStopStreamMessage,u,p]),H=I.useCallback(z=>{const Q=typeof z=="function"?z(i.current):z;o(Q),T(Q)},[T,i]);return{simulateStreamMessage:P,injectMessage:E,removeMessage:O,streamMessage:M,endStreamMessage:N,replaceMessages:H,messages:r}};let Vd,Rn,Wl,Tr=!1,Ln=null;const Yd=()=>{if(!Vd){const t=window.SpeechRecognition||window.webkitSpeechRecognition;Vd=t!=null?new t:null}return Vd},yk=(t,e,n,r,o,i)=>{var a,s,l;const c=Yd();if(!c)return;if(!Tr)try{Tr=!0,c.lang=(a=t.voice)==null?void 0:a.language,c.start()}catch{}const u=(s=t.voice)==null?void 0:s.timeoutPeriod,f=(l=t.voice)==null?void 0:l.autoSendPeriod;c.onresult=p=>{var m,v;clearTimeout(Rn),Rn=null,clearTimeout(Wl);const w=p.results[p.results.length-1][0].transcript;if(i.current){const y=(m=t.chatInput)==null?void 0:m.characterLimit,S=i.current.value+w;y!=null&&y>=0&&S.length>y?r(S.slice(0,y)):r(S),o(i.current.value.length)}u&&(Rn=setTimeout(async()=>await Kd(e,i),u)),(v=t.voice)!=null&&v.autoSendDisabled||(Wl=setTimeout(n,f))},c.onend=()=>{Tr?(c.start(),!Rn&&u&&(Rn=setTimeout(async()=>await Kd(e,i),u))):(clearTimeout(Rn),Rn=null,clearTimeout(Wl))},u&&(Rn=setTimeout(async()=>await Kd(e,i),u))},wk=(t,e)=>{navigator.mediaDevices.getUserMedia({audio:!0}).then(n=>{if(Ln=new MediaRecorder(n),!Tr)try{Tr=!0,Ln.start()}catch{}Ln.ondataavailable=r=>{e.current&&e.current.push(r.data)},Ln.onstop=()=>{t(),n.getTracks().forEach(r=>r.stop())}}).catch(n=>{console.error("Unable to use microphone:",n)})},qd=()=>{const t=Yd();t&&(Tr=!1,t&&t.stop(),Ln&&Ln.state!=="inactive"&&(Ln.stop(),Ln=null),clearTimeout(Rn),Rn=null,clearTimeout(Wl))},Kd=async(t,e)=>{var n;(n=e.current)!=null&&n.disabled||await t(),qd()},Xd=()=>{const{settings:t}=Ce(),{voiceToggledOn:e,setSyncedVoiceToggledOn:n,syncedVoiceToggledOnRef:r}=ft(),{dispatchRcbEvent:o}=En(),i=I.useCallback(async s=>{var l;s!==r.current&&((l=t.event)!=null&&l.rcbToggleVoice&&(await o(de.TOGGLE_VOICE,{currState:r.current,newState:!r.current})).defaultPrevented||n(c=>!c))},[r]),a=I.useCallback(s=>{((l,c)=>{var u,f,p;const m=Yd();(u=c.voice)!=null&&u.disabled||(f=c.chatInput)==null||!f.blockSpam||!m||(l&&!Tr?(Tr=!0,(p=c.voice)!=null&&p.sendAsAudio?Ln?.start():m.start()):l||qd())})(s,t)},[t]);return{voiceToggledOn:e,toggleVoice:i,syncVoice:a}},ro=()=>{var t;const{settings:e}=Ce(),{inputLength:n,setInputLength:r,textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:a,setSyncedTextAreaSensitiveMode:s,syncedTextAreaDisabledRef:l,syncedTextAreaSensitiveModeRef:c}=ft(),{inputRef:u,chatBodyRef:f,prevInputRef:p}=lt(),{dispatchRcbEvent:m}=En(),{getIsChatBotVisible:v}=Zt(),w=I.useCallback(async M=>{var N,H,z;if(l.current&&u.current)u.current.value="";else if(u.current&&p.current!==null){const Q=(N=e.chatInput)==null?void 0:N.characterLimit,U=(H=e.chatInput)!=null&&H.allowNewline?M:M.replace(/\n/g," ");if(Q!=null&&Q>=0&&U.length>Q?u.current.value=U.slice(0,Q):u.current.value=U,(z=e.event)!=null&&z.rcbTextAreaChangeValue&&(await m(de.TEXT_AREA_CHANGE_VALUE,{currValue:u.current.value,prevValue:p.current})).defaultPrevented)return void(u.current.value=p.current);p.current=u.current.value}},[l,u,p,e,m]),y=I.useCallback(M=>{var N;(N=u.current)!=null&&N.disabled||setTimeout(()=>{var H,z,Q;(H=e.general)!=null&&H.embedded?v()&&((z=u.current)==null||z.focus()):M!=="start"&&((Q=u.current)==null||Q.focus())},100)},[u,(t=e.general)==null?void 0:t.embedded,f,v]),S=I.useCallback(()=>{u.current&&u.current.focus()},[]),T=I.useCallback(()=>{u.current&&u.current.blur()},[]),P=I.useCallback(()=>u&&u.current?u.current.value:"",[]),E=I.useCallback(M=>{M!==l.current&&i(N=>!N)},[l]),O=I.useCallback(M=>{M!==c.current&&s(N=>!N)},[c]);return{textAreaDisabled:o,setSyncedTextAreaDisabled:i,textAreaSensitiveMode:a,setSyncedTextAreaSensitiveMode:s,inputLength:n,setInputLength:r,getTextAreaValue:P,setTextAreaValue:w,updateTextAreaFocus:y,focusTextArea:S,blurTextArea:T,toggleTextAreaDisabled:E,toggleTextAreaSensitiveMode:O}},Jg=I.createContext({toasts:[],setSyncedToasts:()=>{},syncedToastsRef:{current:[]}}),Zg=()=>I.useContext(Jg),xk=({children:t})=>{const[e,n,r]=Jt([]);return k.jsx(Jg.Provider,{value:{toasts:e,setSyncedToasts:n,syncedToastsRef:r},children:t})},Go=()=>{const{settings:t}=Ce(),{toasts:e,setSyncedToasts:n,syncedToastsRef:r}=Zg(),{dispatchRcbEvent:o}=En(),i=I.useCallback(async(l,c)=>{var u,f,p,m;let v=null;if(r.current.length>=(((u=t.toast)==null?void 0:u.maxCount)??3)){if((f=t.toast)!=null&&f.forbidOnMax)return null;v=Hl();let y={id:v,content:l,timeout:c};if((p=t.event)!=null&&p.rcbShowToast){const S=await o(de.SHOW_TOAST,{toast:y});if(S.defaultPrevented)return null;y=S.data.toast}return n(S=>[...S.slice(1),y]),v}v=Hl();let w={id:v,content:l,timeout:c};if((m=t.event)!=null&&m.rcbShowToast){const y=await o(de.SHOW_TOAST,{toast:w});if(y.defaultPrevented)return null;w=y.data.toast}return n(y=>[...y,w]),v},[t,o]),a=I.useCallback(async l=>{var c;const u=r.current.find(f=>f.id===l);return!u||(c=t.event)!=null&&c.rcbDismissToast&&(await o(de.DISMISS_TOAST,{toast:u})).defaultPrevented?null:(n(f=>f.filter(p=>p.id!==l)),l)},[o]),s=I.useCallback(l=>{const c=typeof l=="function"?l(r.current):l;n(c)},[r]);return{showToast:i,dismissToast:a,toasts:e,replaceToasts:s}},Vl=()=>{var t,e,n,r,o;const{settings:i}=Ce(),{paths:a,setSyncedPaths:s,syncedPathsRef:l}=Ta(),{flowRef:c,streamMessageMap:u,paramsInputRef:f,keepVoiceOnRef:p,timeoutIdRef:m}=lt(),{setSyncedIsBotTyping:v,setSyncedTextAreaDisabled:w,setSyncedTextAreaSensitiveMode:y,blockAllowsAttachment:S,setBlockAllowsAttachment:T}=ft(),{dispatchRcbEvent:P}=En(),{endStreamMessage:E,injectMessage:O,removeMessage:M,simulateStreamMessage:N,streamMessage:H}=no(),{showToast:z,dismissToast:Q}=Go(),{toggleChatWindow:U}=Zt(),{updateTextAreaFocus:j,setTextAreaValue:V}=ro(),{syncVoice:X}=Xd(),q=I.useCallback(async R=>{var ce;if((ce=i.event)!=null&&ce.rcbPostProcessBlock){const ne=await P(de.POST_PROCESS_BLOCK,{block:R});if(ne.defaultPrevented)return null;R=ne.data.block}return R},[(t=i.event)==null?void 0:t.rcbPostProcessBlock,P]),te=I.useCallback(async(R,ce)=>{var ne,$,ie,ae;if(!R)return;let Ae=c.current[R];if(!Ae)return void v(!1);if((ne=i.event)!=null&&ne.rcbPreProcessBlock){const ke=await P(de.PRE_PROCESS_BLOCK,{block:Ae});if(ke.defaultPrevented)return;Ae=ke.data.block}v(!0),($=i.chatInput)!=null&&$.blockSpam&&w(!0),y(!1);const ye={prevPath:ce,currPath:R,goToPath:F,setTextAreaValue:V,userInput:f.current,endStreamMessage:E,injectMessage:O,removeMessage:M,simulateStreamMessage:N,streamMessage:H,toggleChatWindow:U,showToast:z,dismissToast:Q};await(async(ke,Be,Je,Et,Ke,ut,wt)=>{if(!ke)throw new Error("Block is not valid.");for(const rt of Object.keys(ke))switch(rt){case"message":await ok(ke,Be,Je);break;case"options":await ak(ke,Be);break;case"checkboxes":await nk(ke,Be);break;case"component":await sk(ke,Be);break;case"chatDisabled":await ck(ke,Be,Ke);break;case"isSensitive":await Wg(ke,Be,ut);break;case"transition":await lk(ke,Be,Et,wt)}})(Ae,ye,((ie=i.botBubble)==null?void 0:ie.simulateStream)??!1,m,w,y,q),v(!1),"chatDisabled"in Ae||w((ae=i.chatInput)==null?void 0:ae.disabled),"isSensitive"in Ae||y(!1),T(typeof Ae.file=="function"),j(R),X(p.current&&!Ae.chatDisabled),R!==ce&&u.current.clear()},[c,j,X,(e=i.botBubble)==null?void 0:e.simulateStream,(n=i.chatInput)==null?void 0:n.disabled,f,E,O,M,N,H,U,z,Q,p,u]),Z=I.useCallback(()=>l.current.length>0?l.current.at(-1)??null:null,[]),ee=I.useCallback(()=>l.current.length>1?l.current.at(-2)??null:null,[]),F=I.useCallback(async R=>{var ce;const ne=Z(),$=ee();return((ce=i.event)==null||!ce.rcbChangePath||!(await P(de.CHANGE_PATH,{currPath:ne,prevPath:$,nextPath:R})).defaultPrevented)&&(s(ie=>[...ie,R]),await te(R,ne),!0)},[(r=i.chatInput)==null?void 0:r.blockSpam,(o=i.event)==null?void 0:o.rcbChangePath,te,P]),fe=I.useCallback(R=>{const ce=typeof R=="function"?R(l.current):R;s(ce)},[l]);return{getCurrPath:Z,getPrevPath:ee,goToPath:F,blockAllowsAttachment:S,setBlockAllowsAttachment:T,paths:a,replacePaths:fe,firePostProcessBlockEvent:q}},Jo=()=>{var t,e,n,r;const{settings:o}=Ce(),{endStreamMessage:i,injectMessage:a,removeMessage:s,simulateStreamMessage:l,streamMessage:c}=no(),{syncedPathsRef:u}=Ta(),{getCurrPath:f,getPrevPath:p,goToPath:m,firePostProcessBlockEvent:v}=Vl(),{setSyncedTextAreaSensitiveMode:w,setSyncedTextAreaDisabled:y,setSyncedIsBotTyping:S,setBlockAllowsAttachment:T,setInputLength:P,syncedVoiceToggledOnRef:E,syncedTextAreaSensitiveModeRef:O}=ft(),{flowRef:M,inputRef:N,keepVoiceOnRef:H,paramsInputRef:z,timeoutIdRef:Q}=lt(),{showToast:U,dismissToast:j}=Go(),{dispatchRcbEvent:V}=En(),{syncVoice:X}=Xd(),{setTextAreaValue:q}=ro(),{toggleChatWindow:te}=Zt(),Z=I.useCallback(async F=>{var fe,R,ce,ne,$,ie;const ae=f();if(ae&&M.current[ae]){if(O.current){if((fe=o?.sensitiveInput)!=null&&fe.hideInUserBubble)return;if((R=o?.sensitiveInput)!=null&&R.maskInUserBubble)return void((ce=o.userBubble)!=null&&ce.simulateStream?await l("*".repeat(((ne=o.sensitiveInput)==null?void 0:ne.asterisksCount)??10),"USER"):await a("*".repeat((($=o.sensitiveInput)==null?void 0:$.asterisksCount)??10),"USER"))}(ie=o.userBubble)!=null&&ie.simulateStream?await l(F,"USER"):await a(F,"USER")}},[M,f,o,a,l,O]),ee=I.useCallback(async(F,fe=!0)=>{var R,ce;if((F=F.trim())==="")return;fe&&await Z(F),Q.current&&clearTimeout(Q.current),N.current&&(q(""),P(0));const ne=f();if(!ne)return;let $=M.current[ne];const ie=await v($);ie&&((R=o.chatInput)!=null&&R.blockSpam&&y(!0),H.current=E.current,X(!1),setTimeout(()=>{S(!0)},400),w(!1),setTimeout(async()=>{var ae;const Ae={prevPath:p(),currPath:f(),goToPath:m,setTextAreaValue:q,userInput:z.current,injectMessage:a,simulateStreamMessage:l,streamMessage:c,removeMessage:s,endStreamMessage:i,toggleChatWindow:te,showToast:U,dismissToast:j},ye=u.current.length;await Vg(ie,Ae),u.current.length===ye&&(y("chatDisabled"in $?!!$.chatDisabled:!((ae=o.chatInput)==null||!ae.disabled)),Wg($,Ae,w),T(typeof $.file=="function"),X(H.current),S(!1))},(ce=o.chatInput)==null?void 0:ce.botDelay))},[Q,(t=o.chatInput)==null?void 0:t.blockSpam,(e=o.chatInput)==null?void 0:e.botDelay,(n=o.chatInput)==null?void 0:n.disabled,H,E,X,Z,p,f,m,a,l,c,s,i,te,U,j,M]);return{handleSubmitText:I.useCallback(async(F,fe=!0)=>{var R,ce;F=F??((R=N.current)==null?void 0:R.value),!((ce=o.event)!=null&&ce.rcbUserSubmitText&&(await V(de.USER_SUBMIT_TEXT,{inputText:F,sendInChat:fe})).defaultPrevented||!f())&&ee(F,fe)},[V,f,ee,N,(r=o.event)==null?void 0:r.rcbUserSubmitText])}},Yl=()=>{var t;const{settings:e}=Ce();return I.useMemo(()=>{var n;if(typeof window>"u"||!window.navigator)return!1;if((n=e.device)==null||!n.applyMobileOptimizations)return!0;const r=navigator.userAgent,o=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(r),i=window.innerWidth>=768;return o&&i},[(t=e.device)==null?void 0:t.applyMobileOptimizations])},kk=({buttons:t})=>{var e,n,r,o,i,a,s,l,c,u,f;const p=Yl(),{settings:m}=Ce(),{styles:v}=Qe(),{textAreaDisabled:w,textAreaSensitiveMode:y,inputLength:S,hasFlowStarted:T,setHasFlowStarted:P,setInputLength:E}=ft(),{inputRef:O}=lt(),[M,N]=I.useState(!1),[H,z]=I.useState(!1),{handleSubmitText:Q}=Jo(),{setTextAreaValue:U}=ro(),j={boxSizing:p?"content-box":"border-box",...v.chatInputAreaStyle},V={outline:w?"":"none",boxShadow:w?"":`0 0 5px ${(e=m.general)==null?void 0:e.primaryColor}`,boxSizing:p?"content-box":"border-box",...v.chatInputAreaStyle,...v.chatInputAreaFocusedStyle},X={cursor:`url("${(n=m.general)==null?void 0:n.actionDisabledIcon}"), auto`,caretColor:"transparent",boxSizing:p?"content-box":"border-box",...v.chatInputAreaStyle,...v.chatInputAreaDisabledStyle},q={color:"#989898",...v.characterLimitStyle},te={color:"#ff0000",...v.characterLimitReachedStyle},Z=w?(r=m.chatInput)==null?void 0:r.disabledPlaceholderText:(o=m.chatInput)==null?void 0:o.enabledPlaceholderText,ee=()=>{w||N(!0)},F=()=>{N(!1)},fe=()=>{z(!0)},R=()=>{z(!1)},ce=async $=>{var ie;if(!H&&$.key==="Enter"){if($.shiftKey)return void((ie=m.chatInput)!=null&&ie.allowNewline||$.preventDefault());$.preventDefault(),await Q()}},ne=$=>{O.current&&(U($.target.value),E(O.current.value.length))};return k.jsxs("div",{"aria-label":((i=m.ariaLabel)==null?void 0:i.inputTextArea)??"input text area",role:"textbox",onMouseDown:$=>{var ie;$.stopPropagation(),!T&&((ie=m.general)==null?void 0:ie.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&P(!0)},style:{...v.chatInputContainerStyle},className:"rcb-chat-input",children:[y&&(a=m.sensitiveInput)!=null&&a.maskInTextArea?k.jsx("input",{ref:O,type:"password",className:"rcb-chat-input-textarea",style:w?X:M?V:j,placeholder:Z,onChange:ne,onKeyDown:ce,onFocus:ee,onBlur:F,onCompositionStart:fe,onCompositionEnd:R}):k.jsx("textarea",{ref:O,style:w?X:M?V:j,rows:1,className:"rcb-chat-input-textarea",placeholder:Z,onChange:ne,onKeyDown:ce,onFocus:ee,onBlur:F,onCompositionStart:fe,onCompositionEnd:R}),k.jsxs(k.Fragment,{children:[t?.map(($,ie)=>k.jsx(I.Fragment,{children:$},ie)),((s=m.chatInput)==null?void 0:s.showCharacterCount)&&((l=m.chatInput)==null?void 0:l.characterLimit)!=null&&((c=m.chatInput)==null?void 0:c.characterLimit)>0&&k.jsxs("div",{className:"rcb-chat-input-char-counter",style:S>=((u=m.chatInput)==null?void 0:u.characterLimit)?te:q,children:[S,"/",(f=m.chatInput)==null?void 0:f.characterLimit]})]})]})},Sk=({buttons:t})=>{var e;const{settings:n}=Ce(),{styles:r}=Qe();return k.jsxs("div",{"data-testid":"chatbot-footer-container",style:{...r.footerStyle},className:"rcb-chat-footer-container",children:[k.jsx("div",{className:"rcb-chat-footer",children:t?.map((o,i)=>k.jsx(I.Fragment,{children:o},i))}),k.jsx("span",{children:(e=n.footer)==null?void 0:e.text})]})},Ck=()=>{var t,e,n,r,o,i,a;const{settings:s}=Ce(),{styles:l}=Qe(),{unreadCount:c}=ft(),{isChatWindowOpen:u,toggleChatWindow:f}=Zt(),[p,m]=I.useState(!1),v={backgroundImage:`linear-gradient(to right, ${(t=s.general)==null?void 0:t.secondaryColor},
|
|
67
|
+
${(e=s.general)==null?void 0:e.primaryColor})`,...l.chatButtonStyle},w={transform:"scale(1.05)",...l.chatButtonStyle,...l.chatButtonHoveredStyle},y={backgroundImage:`url(${(n=s.chatButton)==null?void 0:n.icon})`,fill:"#fff",width:75,height:75,...l.chatIconStyle};return k.jsx(k.Fragment,{children:!((r=s.general)!=null&&r.embedded)&&k.jsxs("div",{"aria-label":((o=s.ariaLabel)==null?void 0:o.chatButton)??"open chat",role:"button",style:p?w:v,className:"rcb-toggle-button "+(u?"rcb-button-hide":"rcb-button-show"),onMouseEnter:()=>{m(!0)},onMouseLeave:()=>{m(!1)},onClick:()=>f(!0),children:[(()=>{var S;const T=(S=s.chatButton)==null?void 0:S.icon;return T&&typeof T!="string"?T&&k.jsx("span",{className:"rcb-toggle-icon",children:k.jsx(T,{style:y})}):k.jsx("span",{className:"rcb-toggle-icon",style:y})})(),!((i=s.notification)!=null&&i.disabled)&&((a=s.notification)==null?void 0:a.showCount)&&k.jsx("span",{style:{...l.notificationBadgeStyle},className:"rcb-badge",children:c})]})})},Ek=()=>{var t,e,n,r;const o=Yl(),{settings:i}=Ce(),{styles:a}=Qe(),{chatBodyRef:s}=lt(),{isChatWindowOpen:l,toggleChatWindow:c}=Zt(),[u,f]=I.useState(!1),[p,m]=I.useState(!1),[v,w]=I.useState(0);I.useEffect(()=>{var T,P,E;const O=(T=i.tooltip)==null?void 0:T.mode;if(O==="ALWAYS")if(o){let M;M=l?(((P=s.current)==null?void 0:P.offsetWidth)??375)-(typeof((E=a.chatButtonStyle)==null?void 0:E.width)=="number"?a.chatButtonStyle.width:75):0,w(M),f(!0)}else f(!l);else O==="NEVER"?f(!1):O==="START"?p?f(!1):(m(!0),f(!0)):O==="CLOSE"&&f(!l)},[l]);const y={transform:`translateX(-${v}px)`,right:(((t=a.chatButtonStyle)==null?void 0:t.width)??75)+40,bottom:30,backgroundColor:(e=i.general)==null?void 0:e.secondaryColor,color:"#fff",...a.tooltipStyle},S={borderColor:`transparent transparent transparent ${y.backgroundColor}`};return k.jsx(k.Fragment,{children:!((n=i.general)!=null&&n.embedded)&&k.jsxs("div",{"data-testid":"chat-tooltip",style:y,className:"rcb-chat-tooltip "+(u?"rcb-tooltip-show":"rcb-tooltip-hide"),onClick:()=>c(!0),children:[k.jsx("span",{children:(r=i.tooltip)==null?void 0:r.text}),k.jsx("span",{className:"rcb-chat-tooltip-tail",style:S})]})})},Pk=({id:t,content:e,timeout:n})=>{var r,o;const{settings:i}=Ce(),{styles:a}=Qe(),[s]=I.useState({toastPromptStyle:{...a.toastPromptStyle},toastPromptHoveredStyle:{...a.toastPromptHoveredStyle}}),{dismissToast:l}=Go(),[c,u]=I.useState(!1),f={color:(r=i.general)==null?void 0:r.primaryColor,borderColor:(o=i.general)==null?void 0:o.primaryColor,...s.toastPromptHoveredStyle};return I.useEffect(()=>{if(n){const p=setTimeout(()=>{l(t)},n);return()=>clearTimeout(p)}},[t,l,n]),typeof e=="string"?k.jsx("div",{onMouseEnter:()=>{u(!0)},onMouseLeave:()=>{u(!1)},style:c?f:s.toastPromptStyle,onMouseDown:async p=>{var m;(m=i.toast)!=null&&m.dismissOnClick&&(p.preventDefault(),await l(t))},className:"rcb-toast-prompt",children:e}):k.jsx(k.Fragment,{children:e})},Dk=()=>{var t,e,n,r,o,i,a,s,l,c,u,f;const{styles:p}=Qe(),{toasts:m}=Zg(),v={bottom:`calc(${typeof((t=p.footerStyle)==null?void 0:t.height)=="number"?`${(e=p.footerStyle)==null?void 0:e.height}px`:((n=p.footerStyle)==null?void 0:n.height)??"50px"} + ${typeof((r=p.chatInputContainerStyle)==null?void 0:r.height)=="number"?`${(o=p.chatInputContainerStyle)==null?void 0:o.height}px`:((i=p.chatInputContainerStyle)==null?void 0:i.height)??"70px"} + 20px)`,width:300,minWidth:`calc(${typeof((a=p.chatWindowStyle)==null?void 0:a.width)=="number"?`${(s=p.chatWindowStyle)==null?void 0:s.width}px`:((l=p.chatWindowStyle)==null?void 0:l.width)??"375px"} / 2)`,maxWidth:`calc(${typeof((c=p.chatWindowStyle)==null?void 0:c.width)=="number"?`${(u=p.chatWindowStyle)==null?void 0:u.width}px`:((f=p.chatWindowStyle)==null?void 0:f.width)??"375px"} - 50px)`,...p.toastPromptContainerStyle};return k.jsx("div",{className:"rcb-toast-prompt-container",style:v,children:m.map(w=>k.jsx(Pk,{id:w.id,content:w.content,timeout:w.timeout},w.id))})},$g=({file:t,fileType:e,fileUrl:n})=>{var r,o,i;const{settings:a}=Ce(),{styles:s}=Qe(),l={backgroundColor:(r=a.general)==null?void 0:r.primaryColor,maxWidth:(o=a.userBubble)!=null&&o.showAvatar?"65%":"70%",...s.mediaDisplayContainerStyle};return k.jsx(k.Fragment,{children:n?k.jsxs(k.Fragment,{children:[e==="image"&&n&&k.jsx("div",{style:l,className:"rcb-media-display-image-container rcb-media-entry","data-testid":"media-display-image-container",children:k.jsx("img",{src:n,alt:"Image Display",className:"rcb-media-display-image"})}),e==="video"&&n&&k.jsx("div",{style:l,className:"rcb-media-display-video-container rcb-media-entry","data-testid":"media-display-video-container",children:k.jsxs("video",{controls:!0,className:"rcb-media-display-video",children:[k.jsx("source",{src:n,type:t.type}),"Your browser does not support the video tag."]})}),e==="audio"&&n&&k.jsxs("audio",{"data-testid":"media-display-audio-container",style:{maxWidth:(i=a.userBubble)!=null&&i.showAvatar?"65%":"70%"},controls:!0,className:"rcb-media-display-audio rcb-media-entry",children:[k.jsx("source",{src:n,type:t.type}),"Your browser does not support the audio tag."]})]}):k.jsx(k.Fragment,{})})},em=async t=>{if(!t)return{fileType:null,fileUrl:null};const e=t.type.split("/")[0];if(!["image","video","audio"].includes(e))return{fileType:null,fileUrl:null};try{return{fileType:e,fileUrl:await new Promise((n,r)=>{const o=new FileReader;o.onload=()=>n(o.result),o.onerror=()=>r(new Error("File reading failed")),o.readAsDataURL(t)})}}catch(n){return console.error(n),{fileType:null,fileUrl:null}}},Tk=()=>{var t,e,n,r,o,i;const{settings:a}=Ce(),{styles:s}=Qe(),{injectMessage:l,simulateStreamMessage:c,streamMessage:u,removeMessage:f,endStreamMessage:p}=no(),{getCurrPath:m,getPrevPath:v,goToPath:w,blockAllowsAttachment:y}=Vl(),{flowRef:S,inputRef:T}=lt(),P=S.current,{showToast:E,dismissToast:O}=Go(),{dispatchRcbEvent:M}=En(),{toggleChatWindow:N}=Zt(),{setTextAreaValue:H}=ro(),{handleSubmitText:z}=Jo(),Q={cursor:`url("${(t=a.general)==null?void 0:t.actionDisabledIcon}"), auto`,...s.fileAttachmentButtonStyle,...s.fileAttachmentButtonDisabledStyle},U={backgroundImage:`url(${(e=a.fileAttachment)==null?void 0:e.icon})`,fill:"#a6a6a6",...s.fileAttachmentIconStyle},j={backgroundImage:`url(${(n=a.fileAttachment)==null?void 0:n.icon})`,fill:"#a6a6a6",...s.fileAttachmentIconStyle,...s.fileAttachmentIconDisabledStyle};return k.jsxs("label",{"aria-label":((r=a.ariaLabel)==null?void 0:r.fileAttachmentButton)??"upload file",role:"button",className:y?"rcb-attach-button-enabled":"rcb-attach-button-disabled",style:y?{...s.fileAttachmentButtonStyle}:Q,children:[k.jsx("input",{className:"rcb-attach-input",role:"file",type:"file",onChange:async V=>{var X,q,te,Z;const ee=V.target.files;if(!ee)return;const F=Array.from(ee);if(V.target.value="",(X=a.event)!=null&&X.rcbUserUploadFile&&(await M(de.USER_UPLOAD_FILE,{files:F})).defaultPrevented)return;const fe=m();if(!fe)return;const R=P[fe];if(!R)return;const ce=R.file;if(ce!=null){const ne=[];for(let $=0;$<F.length;$++){if(ne.push(F[$].name),(q=a.fileAttachment)==null||!q.showMediaDisplay)continue;const ie=await em(F[$]);!ie.fileType||!ie.fileUrl||await l(k.jsx($g,{file:F[$],fileType:ie.fileType,fileUrl:ie.fileUrl}),"USER")}await z("📄 "+ne.join(", "),(te=a.fileAttachment)==null?void 0:te.sendFileName),await ce({userInput:(Z=T.current)==null?void 0:Z.value,prevPath:v(),currPath:m(),goToPath:w,setTextAreaValue:H,injectMessage:l,simulateStreamMessage:c,streamMessage:u,removeMessage:f,endStreamMessage:p,toggleChatWindow:N,showToast:E,dismissToast:O,files:F})}},multiple:(o=a.fileAttachment)==null?void 0:o.multiple,accept:(i=a.fileAttachment)==null?void 0:i.accept,disabled:!y}),(()=>{var V,X;const q=y?(V=a.fileAttachment)==null?void 0:V.icon:(X=a.fileAttachment)==null?void 0:X.iconDisabled;return q&&typeof q!="string"?q&&k.jsx("span",{className:y?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",children:k.jsx(q,{style:y?U:j})}):k.jsx("span",{className:y?"rcb-attach-icon-enabled":"rcb-attach-icon-disabled",style:y?U:j})})()]})},Bk=()=>{var t,e,n,r,o,i;const{settings:a}=Ce(),{styles:s}=Qe(),{syncedTextAreaDisabledRef:l}=ft(),{inputRef:c}=lt(),{textAreaDisabled:u,setTextAreaValue:f}=ro(),p=I.useRef(null),m=I.useRef(null),[v,w]=I.useState(!1),y={cursor:`url("${(t=a.general)==null?void 0:t.actionDisabledIcon}"), auto`,...s.emojiButtonStyle,...s.emojiButtonDisabledStyle},S={backgroundImage:`url(${(e=a.emoji)==null?void 0:e.icon})`,fill:"#a6a6a6",...s.emojiIconStyle},T={backgroundImage:`url(${(n=a.emoji)==null?void 0:n.icon})`,fill:"#a6a6a6",...s.emojiIconStyle,...s.emojiIconDisabledStyle};return I.useEffect(()=>{const P=O=>{const M=O.composedPath();p.current&&!M.includes(p.current)&&m.current&&!M.includes(m.current)&&w(!1)},E=()=>{(()=>{if(p.current&&m.current){const O=m.current.getBoundingClientRect(),M=p.current.offsetHeight,N=O.top-M-8;p.current.style.left=`${O.left}px`,p.current.style.top=`${N}px`}})()};return document.addEventListener("mousedown",P),window.addEventListener("resize",E),()=>{document.removeEventListener("mousedown",P),window.removeEventListener("resize",E)}},[]),k.jsxs(k.Fragment,{children:[k.jsx("div",{"aria-label":((r=a.ariaLabel)==null?void 0:r.emojiButton)??"emoji picker",role:"button",ref:m,className:u?"rcb-emoji-button-disabled":"rcb-emoji-button-enabled",style:u?y:{...s.emojiButtonStyle},onMouseDown:P=>{P.preventDefault(),l.current?w(!1):w(E=>!E)},children:(()=>{var P,E;const O=u?(P=a.emoji)==null?void 0:P.iconDisabled:(E=a.emoji)==null?void 0:E.icon;return O&&typeof O!="string"?O&&k.jsx("span",{className:u?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",children:k.jsx(O,{style:u?T:S})}):k.jsx("span",{className:u?"rcb-emoji-icon-disabled":"rcb-emoji-icon-enabled",style:u?T:S})})()}),v&&k.jsx("div",{className:"rcb-emoji-button-popup",ref:p,children:(i=(o=a.emoji)==null?void 0:o.list)==null?void 0:i.map((P,E)=>k.jsx("span",{className:"rcb-emoji",onMouseDown:O=>((M,N)=>{M.preventDefault(),c.current&&(f(c.current.value+N),setTimeout(()=>{const H=c.current;if(H){H.focus();const z=H.value.length;H.setSelectionRange(z,z)}},50)),w(!1)})(O,P),children:P},E))})]})},Ik=()=>{var t,e,n;const{settings:r}=Ce(),{styles:o}=Qe(),{audioToggledOn:i,toggleAudio:a}=Gg(),s={backgroundImage:`url(${(t=r.audio)==null?void 0:t.icon})`,fill:"#fcec3d",...o.audioIconStyle},l={backgroundImage:`url(${(e=r.audio)==null?void 0:e.iconDisabled})`,fill:"#e8eaed",...o.audioIconStyle,...o.audioIconDisabledStyle};return k.jsx("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.audioButton)??"toggle audio",role:"button",onMouseDown:async c=>{c.preventDefault(),await a()},style:i?{...o.audioButtonStyle}:{...o.audioButtonStyle,...o.audioButtonDisabledStyle},children:(()=>{var c,u;const f=i?(c=r.audio)==null?void 0:c.icon:(u=r.audio)==null?void 0:u.iconDisabled;return f&&typeof f!="string"?f&&k.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",children:k.jsx(f,{style:i?s:l,"data-testid":"rcb-audio-icon-svg"})}):k.jsx("span",{className:"rcb-audio-icon","data-testid":"rcb-audio-icon",style:i?s:l})})()})},Mk=()=>{var t,e;const{settings:n}=Ce(),{styles:r}=Qe(),{toggleChatWindow:o}=Zt(),i={backgroundImage:`url(${(t=n.header)==null?void 0:t.closeChatIcon})`,fill:"#e8eaed",stroke:"#e8eaed",...r.closeChatIconStyle};return k.jsx("div",{"aria-label":((e=n.ariaLabel)==null?void 0:e.closeChatButton)??"close chat",role:"button",onMouseDown:a=>{a.stopPropagation(),o(!1)},style:{...r.closeChatButtonStyle},children:(()=>{var a;const s=(a=n.header)==null?void 0:a.closeChatIcon;return s&&typeof s!="string"?s&&k.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",children:k.jsx(s,{style:i})}):k.jsx("span",{className:"rcb-close-chat-icon","data-testid":"rcb-close-chat-icon",style:i})})()})},Ok=()=>{var t,e,n;const{settings:r}=Ce(),{styles:o}=Qe(),{notificationsToggledOn:i,toggleNotifications:a}=(()=>{const{notificationsToggledOn:c,toggleNotifications:u,playNotificationSound:f}=Wd();return{notificationsToggledOn:c,toggleNotifications:u,playNotificationSound:f}})(),s={backgroundImage:`url(${(t=r.notification)==null?void 0:t.icon})`,fill:"#fcec3d",...o.notificationIconStyle},l={backgroundImage:`url(${(e=r.notification)==null?void 0:e.iconDisabled})`,fill:"#e8eaed",...o.notificationIconStyle,...o.notificationIconDisabledStyle};return k.jsx("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.notificationButton)??"toggle notifications",role:"button",onMouseDown:async c=>{c.preventDefault(),await a()},style:i?{...o.notificationButtonStyle}:{...o.notificationButtonStyle,...o.notificationButtonDisabledStyle},children:(()=>{var c,u;const f=i?(c=r.notification)==null?void 0:c.icon:(u=r.notification)==null?void 0:u.iconDisabled;return f&&typeof f!="string"?f&&k.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",children:k.jsx(f,{style:i?s:l,"data-testid":"rcb-notification-icon-svg"})}):k.jsx("span",{className:"rcb-notification-icon","data-testid":"rcb-notification-icon",style:i?s:l})})()})},_k=()=>{var t,e,n;const{settings:r}=Ce(),{styles:o}=Qe(),{injectMessage:i}=no(),{inputRef:a}=lt(),{voiceToggledOn:s,toggleVoice:l}=Xd(),{setInputLength:c,setTextAreaValue:u,textAreaDisabled:f}=ro(),{handleSubmitText:p}=Jo(),m=I.useRef([]),[v,w]=I.useState(!1);I.useEffect(()=>{var E;(E=r.voice)!=null&&E.sendAsAudio?(P(),m.current=[]):p()},[v]),I.useEffect(()=>{s?((E,O,M,N,H,z,Q)=>{var U;(U=E.voice)!=null&&U.sendAsAudio?wk(M,z):yk(E,O,M,N,H,Q)})(r,l,T,u,c,m,a):qd()},[s]);const y={backgroundImage:`url(${(t=r.voice)==null?void 0:t.icon})`,fill:"#9aa0a6",...o.voiceIconStyle},S={backgroundImage:`url(${(e=r.voice)==null?void 0:e.iconDisabled})`,fill:"#9aa0a6",...o.voiceIconStyle,...o.voiceIconDisabledStyle},T=()=>{w(E=>!E)},P=async()=>{const E=new Blob(m.current,{type:"audio/wav"}),O=new File([E],"voice-input.wav",{type:"audio/wav"}),M=await em(O);!M.fileType||!M.fileUrl||await i(k.jsx($g,{file:O,fileType:M.fileType,fileUrl:M.fileUrl}),"USER")};return k.jsx("div",{"aria-label":((n=r.ariaLabel)==null?void 0:n.voiceButton)??"toggle voice",role:"button",onMouseDown:async E=>{E.preventDefault(),!f&&await l()},style:s&&!f?{...o.voiceButtonStyle}:{...o.voiceButtonStyle,...o.voiceButtonDisabledStyle},className:s&&!f?"rcb-voice-button-enabled":"rcb-voice-button-disabled",children:(()=>{var E,O;const M=s?(E=r.voice)==null?void 0:E.icon:(O=r.voice)==null?void 0:O.iconDisabled;return M&&typeof M!="string"?M&&k.jsx("span",{className:"rcb-voice-icon "+(s&&!f?"on":""),children:k.jsx(M,{style:s&&!f?y:S})}):k.jsx("span",{className:"rcb-voice-icon"+(s&&!f?"-on":""),"data-testid":"rcb-voice-icon",style:s&&!f?y:S})})()})},Fk=()=>{var t,e,n,r,o,i,a,s;const{settings:l}=Ce(),{styles:c}=Qe(),{textAreaDisabled:u}=ft(),[f,p]=I.useState(!1),{handleSubmitText:m}=Jo(),v={backgroundColor:(t=l.general)==null?void 0:t.primaryColor,...c.sendButtonStyle},w={cursor:`url("${(e=l.general)==null?void 0:e.actionDisabledIcon}"), auto`,backgroundColor:(n=l.general)==null?void 0:n.primaryColor,...c.sendButtonStyle,...c.sendButtonDisabledStyle},y={backgroundColor:(r=l.general)==null?void 0:r.secondaryColor,...c.sendButtonStyle,...c.sendButtonHoveredStyle},S={backgroundImage:`url(${(o=l.chatInput)==null?void 0:o.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle},T={backgroundImage:`url(${(i=l.chatInput)==null?void 0:i.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle,...c.sendIconDisabledStyle},P={backgroundImage:`url(${(a=l.chatInput)==null?void 0:a.sendButtonIcon})`,fill:"#fff",...c.sendIconStyle,...c.sendIconHoveredStyle};return k.jsx("div",{"aria-label":((s=l.ariaLabel)==null?void 0:s.sendButton)??"send message",role:"button",onMouseEnter:()=>{p(!0)},onMouseLeave:()=>{p(!1)},onMouseDown:async E=>{E?.preventDefault(),!u&&await m()},style:u?w:f?y:v,className:"rcb-send-button",children:(()=>{var E;const O=(E=l.chatInput)==null?void 0:E.sendButtonIcon;return O&&typeof O!="string"?O&&k.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",children:k.jsx(O,{style:u?T:f?P:S})}):k.jsx("span",{className:"rcb-send-icon","data-testid":"rcb-send-icon",style:u?T:f?P:S})})()})},Rk=(t,e)=>{var n,r,o,i,a,s,l,c,u;const f={[$e.AUDIO_BUTTON]:(n=t.audio)==null?void 0:n.disabled,[$e.CLOSE_CHAT_BUTTON]:(r=t.general)==null?void 0:r.embedded,[$e.EMOJI_PICKER_BUTTON]:(o=t.emoji)==null?void 0:o.disabled,[$e.FILE_ATTACHMENT_BUTTON]:(i=t.fileAttachment)==null?void 0:i.disabled,[$e.NOTIFICATION_BUTTON]:(a=t.notification)==null?void 0:a.disabled,[$e.SEND_MESSAGE_BUTTON]:!1,[$e.VOICE_MESSAGE_BUTTON]:(s=t.voice)==null?void 0:s.disabled},p={},m=v=>v?v.map(w=>{if(typeof w=="string"){if((y=>Object.values($e).includes(y))(w)&&!f[w]){if(p[w])return p[w];const y=e[w];if(typeof y=="function"){const S=y();return p[w]=S,S}return null}return null}return w}).filter(w=>w!==null):[];return{header:m((l=t.header)==null?void 0:l.buttons),chatInput:m((c=t.chatInput)==null?void 0:c.buttons),footer:m((u=t.footer)==null?void 0:u.buttons)}},Lk=()=>{const{settings:t}=Ce(),e=I.useMemo(()=>({[$e.CLOSE_CHAT_BUTTON]:()=>k.jsx(Mk,{}),[$e.AUDIO_BUTTON]:()=>k.jsx(Ik,{}),[$e.NOTIFICATION_BUTTON]:()=>k.jsx(Ok,{}),[$e.EMOJI_PICKER_BUTTON]:()=>k.jsx(Bk,{}),[$e.FILE_ATTACHMENT_BUTTON]:()=>k.jsx(Tk,{}),[$e.SEND_MESSAGE_BUTTON]:()=>k.jsx(Fk,{}),[$e.VOICE_MESSAGE_BUTTON]:()=>k.jsx(_k,{})}),[]),{header:n,chatInput:r,footer:o}=I.useMemo(()=>Rk(t,e),[t,e]);return{headerButtons:I.useMemo(()=>n,[n]),chatInputButtons:I.useMemo(()=>r,[r]),footerButtons:I.useMemo(()=>o,[o])}},Gd=()=>{const{settings:t}=Ce(),{styles:e}=Qe(),{setSyncedMessages:n,syncedMessagesRef:r}=Qd(),{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:a,setHasChatHistoryLoaded:s}=ft(),{chatBodyRef:l}=lt(),{dispatchRcbEvent:c}=En(),u=I.useCallback(async()=>{var f,p;const m=Ud();if(!m||(f=t.event)!=null&&f.rcbLoadChatHistory&&(await c(de.LOAD_CHAT_HISTORY,{})).defaultPrevented)return;i(!0);const v=((p=l.current)==null?void 0:p.scrollHeight)??0;((w,y,S,T,P,E,O,M,N)=>{var H;if(Yg=!0,S!=null)try{const z=Pr(k.jsx(dk,{}),"SYSTEM"),Q=P.current.slice(1);T([z,...Q]);const U=S.map(j=>{if(j.type==="object"){const V=Xg(j.content,w,y);return{...j,content:V}}return j});setTimeout(()=>{var j;const V=P.current.slice(1);let X=(j=w.chatHistory)!=null&&j.autoLoad?Pr(k.jsx(k.Fragment,{}),"SYSTEM"):Pr(k.jsx(uk,{}),"SYSTEM");T([...U,X,...V]),N(!0)},500),setTimeout(()=>{if(!E.current)return;const{scrollHeight:j}=E.current,V=j-O;E.current.scrollTop+=V,M(!1)},510)}catch{Dr.removeItem((H=w.chatHistory)==null?void 0:H.storageKey)}})(t,e,m,n,r,l,v,i,s)},[t,e,c,r,l,i,s]);return{isLoadingChatHistory:o,setIsLoadingChatHistory:i,hasChatHistoryLoaded:a,showChatHistory:u}},Nk=()=>{var t,e,n;const{settings:r}=Ce(),{styles:o}=Qe(),{showChatHistory:i}=Gd(),[a,s]=I.useState(!1),l={color:(t=r.general)==null?void 0:t.primaryColor,borderColor:(e=r.general)==null?void 0:e.primaryColor,...o.chatHistoryButtonStyle,...o.chatHistoryButtonHoveredStyle};return k.jsx("div",{className:"rcb-view-history-container",children:k.jsx("div",{onMouseEnter:()=>{s(!0)},onMouseLeave:()=>{s(!1)},style:a?l:{...o.chatHistoryButtonStyle},onMouseDown:c=>{c.preventDefault(),i()},className:"rcb-view-history-button",role:"button",tabIndex:0,children:k.jsx("p",{children:(n=r.chatHistory)==null?void 0:n.viewChatHistoryButtonText})})})},zk=()=>{var t,e,n,r;const o=Yl(),{settings:i}=Ce(),{replaceMessages:a}=no(),{isBotTyping:s,isChatWindowOpen:l,setUnreadCount:c,setSyncedIsChatWindowOpen:u,setSyncedTextAreaDisabled:f,setSyncedAudioToggledOn:p,setSyncedVoiceToggledOn:m,setSyncedIsScrolling:v,syncedIsScrollingRef:w,syncedIsChatWindowOpenRef:y}=ft(),{chatBodyRef:S}=lt(),{viewportHeight:T,setViewportHeight:P,setViewportWidth:E,scrollToBottom:O}=Zt(),{setUpNotifications:M}=Wd(),{handleFirstInteraction:N}=(()=>{var U;const{settings:j}=Ce(),{hasInteractedPage:V,setHasInteractedPage:X,hasFlowStarted:q,setHasFlowStarted:te}=ft(),Z=I.useCallback(()=>{var ee;if(X(!0),!q&&((ee=j.general)==null?void 0:ee.flowStartTrigger)==="ON_PAGE_INTERACT"&&te(!0),!window.SpeechSynthesisUtterance)return void console.info("Speech Synthesis API is not supported in this environment.");const F=new window.SpeechSynthesisUtterance;F.text="",F.onend=()=>{window.removeEventListener("click",Z),window.removeEventListener("keydown",Z),window.removeEventListener("touchstart",Z)},window.speechSynthesis.speak(F)},[q,(U=j.general)==null?void 0:U.flowStartTrigger]);return{hasInteractedPage:V,handleFirstInteraction:Z}})(),{showChatHistory:H}=Gd(),z=I.useRef(0),Q=I.useRef(!1);I.useEffect(()=>(window.addEventListener("click",N),window.addEventListener("keydown",N),window.addEventListener("touchstart",N),()=>{window.removeEventListener("click",N),window.removeEventListener("keydown",N),window.removeEventListener("touchstart",N)}),[]),I.useEffect(()=>{const U=S.current;if(!U)return;const j=()=>{Q.current||(Q.current=!0,requestAnimationFrame(()=>{var V,X;if(!U)return;const{scrollTop:q,clientHeight:te,scrollHeight:Z}=U,ee=q+te<Z-(((V=i.chatWindow)==null?void 0:V.messagePromptOffset)??30);v(ee),w.current=ee,ee||(q+te>=Z-1&&(U.scrollTop=Z-te-1),(y.current||(X=i.general)!=null&&X.embedded)&&c(0)),Q.current=!1}))};return U.addEventListener("wheel",j,{passive:!0}),U.addEventListener("touchmove",j,{passive:!0}),()=>{U.removeEventListener("wheel",j),U.removeEventListener("touchmove",j)}},[]),I.useEffect(()=>{var U,j,V;f((U=i.chatInput)==null?void 0:U.disabled),u((j=i.chatWindow)==null?void 0:j.defaultOpen),p((V=i.audio)==null?void 0:V.defaultToggledOn),setTimeout(()=>{var X;m((X=i.voice)==null?void 0:X.defaultToggledOn)},1)},[]),I.useEffect(()=>{var U;(U=i.notification)!=null&&U.disabled||M()},[(t=i.notification)==null?void 0:t.disabled]),I.useEffect(()=>{!w.current&&S!=null&&S.current&&O()},[s]),I.useEffect(()=>{var U,j;if((U=i.chatHistory)!=null&&U.disabled)Dr&&Dr.removeItem(Ul);else if(jd(i),Ud().length>0){const V=Pr(k.jsx(Nk,{}),"SYSTEM");a([V]),(j=i.chatHistory)!=null&&j.autoLoad&&H()}},[(e=i.chatHistory)==null?void 0:e.storageKey,(n=i.chatHistory)==null?void 0:n.maxEntries,(r=i.chatHistory)==null?void 0:r.disabled]),I.useEffect(()=>{var U;o||(U=i.general)!=null&&U.embedded||!navigator.virtualKeyboard||(navigator.virtualKeyboard.overlaysContent=!0,navigator.virtualKeyboard.addEventListener("geometrychange",j=>{if(!j.target)return;const{x:V,y:X,width:q,height:te}=j.target.boundingRect;V==0&&X==0&&q==0&&te==0?(setTimeout(()=>{var Z;P((Z=window.visualViewport)==null?void 0:Z.height)},101),setTimeout(()=>{var Z,ee;T!=((Z=window.visualViewport)==null?void 0:Z.height)&&P((ee=window.visualViewport)==null?void 0:ee.height)},1001)):setTimeout(()=>{var Z;P(((Z=window.visualViewport)==null?void 0:Z.height)-te)},101)}))},[o]),I.useEffect(()=>{var U,j,V,X;if(o)return;l&&(P((U=window.visualViewport)==null?void 0:U.height),E((j=window.visualViewport)==null?void 0:j.width));const q=()=>window.scrollTo({top:0,left:0,behavior:"auto"}),te=()=>z.current=window.scrollY,Z=()=>{var F,fe;P((F=window.visualViewport)==null?void 0:F.height),E((fe=window.visualViewport)==null?void 0:fe.width)},ee=()=>{var F;window.removeEventListener("scroll",q),window.removeEventListener("scroll",te),(F=window.visualViewport)==null||F.removeEventListener("resize",Z)};return l?(ee(),document.body.style.position="fixed",window.addEventListener("scroll",q),(V=window.visualViewport)==null||V.addEventListener("resize",Z)):(document.body.style.position="static",ee(),window.scrollTo({top:z.current,left:0,behavior:"auto"}),window.addEventListener("scroll",te),(X=window.visualViewport)==null||X.removeEventListener("resize",Z)),ee},[l,o])},Qk="https://cdn.jsdelivr.net/gh/react-chatbotify/community-themes/themes",Hk="2592000",tm="RCB_THEME_CACHE_DATA",nm=async(t,e)=>{const{id:n,version:r,baseUrl:o=Qk,cacheDuration:i=Hk}=e,a=r||await(async(S,T)=>{const P=`${T}/${S}/meta.json`;try{const E=await fetch(P);return E.ok?(await E.json()).version:(console.error(`Failed to fetch meta.json from ${P}`),null)}catch(E){return console.error(`Failed to fetch meta.json from ${P}`,E),null}})(n,o);if(!a)return console.error(`Unable to find version for theme: ${n}`),{settings:{},inlineStyles:{},cssStylesText:""};const s=((S,T,P)=>{const E=localStorage.getItem(`${tm}_${S}_${T}`);if(!E)return null;try{const O=JSON.parse(E),M=new Date().getTime(),N=Math.floor(M/1e3);return O.cacheDate+P>=N?O:null}catch(O){return console.error(`Unable to fetch cache for ${S}`,O),null}})(n,a,i);if(s){const S=rm(t,s.cssStylesText);return{settings:s.settings,inlineStyles:s.inlineStyles,cssStylesText:S}}const l=`${o}/${n}/${a}/styles.css`,c=`${o}/${n}/${a}/settings.json`,u=`${o}/${n}/${a}/styles.json`;let f="";const p=await fetch(l);p.ok?f=await p.text():console.info(`Could not fetch styles.css from ${l}`);const m=await fetch(c);let v={};m.ok?v=await m.json():console.info(`Could not fetch settings.json from ${c}`);const w=await fetch(u);let y={};return w.ok?y=await w.json():console.info(`Could not fetch styles.json from ${u}`),((S,T,P,E,O)=>{const M=new Date().getTime(),N={settings:P,inlineStyles:E,cssStylesText:O,cacheDate:Math.floor(M/1e3)};localStorage.setItem(`${tm}_${S}_${T}`,JSON.stringify(N))})(n,a,v,y,f),{settings:v,inlineStyles:y,cssStylesText:rm(t,f)}},rm=(t,e)=>e.split(new RegExp("(?<=})")).map(n=>{const r=n.trim();return r.startsWith("@import")||r.startsWith("@keyframes")||r.startsWith("@media")?r:r?`#${t} ${r}`:""}).join(`
|
|
68
|
+
`),Uk=async(t,e,n,r)=>{var o,i;let a=ql(Rg),s=ql(Ng),l="";if(r!=null)if(Array.isArray(r))for(const c of r){const u=await nm(t,c);a=Nn(u.settings,a),s=Nn(u.inlineStyles,s),l+=u.cssStylesText}else{const c=await nm(t,r);a=Nn(c.settings,a),s=Nn(c.inlineStyles,s),l+=c.cssStylesText}return e!=null&&(a=Nn(e,a)),n!=null&&(s=Nn(n,s)),((o=a.chatInput)==null?void 0:o.botDelay)!=null&&((i=a.chatInput)==null?void 0:i.botDelay)<500&&(a.chatInput.botDelay=500),{settings:a,inlineStyles:s,cssStylesText:l}},Nn=(t,e)=>{const n=[{source:t,target:e}];for(;n.length;){const r=n.pop();if(r==null)continue;const{source:o,target:i}=r;for(const a of Object.keys(o)){const s=a;if(I.isValidElement(o[s]))i[s]=o[s];else if(typeof o[s]!="object"||o[s]===null||Array.isArray(o[s]))try{i[s]=o[s]}catch{}else(typeof i[s]!="object"||i[s]===null)&&(i[s]={}),n.push({source:o[s],target:i[s]})}}return e},ql=t=>{if(t===null||typeof t!="object")return t;const e=Array.isArray(t)?[]:{},n=[{source:t,target:e}],r=new WeakMap;for(r.set(t,e);n.length;){const o=n.pop();if(o==null)continue;const{source:i,target:a}=o;for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)){const l=i[s];if(l&&typeof l=="object")if(r.has(l))a[s]=r.get(l);else{const c=Array.isArray(l)?[]:{};r.set(l,c),a[s]=c,n.push({source:l,target:c})}else a[s]=l}}return e},om=()=>{const{settings:t,setSyncedSettings:e,syncedSettingsRef:n}=Ce(),r=I.useCallback(i=>{!i||Object.keys(i).length===0||e(ql(Nn(i,t)))},[t]),o=I.useCallback(i=>{const a=typeof i=="function"?i(n.current):i;e(a)},[n]);return{settings:t,replaceSettings:o,updateSettings:r}},im=()=>{const{styles:t,setSyncedStyles:e,syncedStylesRef:n}=Qe(),r=I.useCallback(i=>{!i||Object.keys(i).length===0||e(ql(Nn(i,t)))},[t]),o=I.useCallback(i=>{const a=typeof i=="function"?i(n.current):i;e(a)},[n]);return{styles:t,replaceStyles:o,updateStyles:r}},jk=({plugins:t,slots:e})=>{var n,r;const o=Yl(),{settings:i}=Ce(),{styles:a}=Qe(),{hasFlowStarted:s,setHasFlowStarted:l}=ft(),{inputRef:c}=lt(),{viewportHeight:u,viewportWidth:f,isChatWindowOpen:p}=Zt(),{goToPath:m}=Vl(),{headerButtons:v,chatInputButtons:w,footerButtons:y}=Lk();zk(),(T=>{const{updateSettings:P}=om(),{updateStyles:E}=im(),O=T?.map(M=>M());I.useEffect(()=>{let M={},N={};O?.forEach(H=>{H!=null&&H.settings&&Object.keys(H?.settings).length!==0&&(M=Nn(H.settings,M)),H!=null&&H.styles&&Object.keys(H?.styles).length!==0&&(N=Nn(H.styles,N))}),P(M),E(N)},[])})(t),I.useEffect(()=>{var T;(s||((T=i.general)==null?void 0:T.flowStartTrigger)==="ON_LOAD")&&m("start")},[s,(n=i.general)==null?void 0:n.flowStartTrigger]);const S=I.useMemo(()=>{var T;const P="rcb-chatbot-global ";return(T=i.general)!=null&&T.embedded?P+"rcb-window-embedded":p?P+"rcb-window-open":P+"rcb-window-close"},[i,p]);return k.jsx(k.Fragment,{children:(()=>{var T,P;return o&&((T=i.device)==null?void 0:T.desktopEnabled)||!o&&((P=i.device)==null?void 0:P.mobileEnabled)})()&&k.jsxs("div",{onMouseDown:T=>{var P,E;!s&&((P=i.general)==null?void 0:P.flowStartTrigger)==="ON_CHATBOT_INTERACT"&&l(!0),o?(E=c.current)==null||E.blur():T?.preventDefault()},className:S,children:[k.jsx(Ek,{}),k.jsx(Ck,{}),p&&!o&&!((r=i.general)!=null&&r.embedded)&&k.jsxs(k.Fragment,{children:[k.jsx("style",{children:`
|
|
69
|
+
html {
|
|
70
|
+
overflow: hidden !important;
|
|
71
|
+
touch-action: none !important;
|
|
72
|
+
scroll-behavior: auto !important;
|
|
73
|
+
}
|
|
74
|
+
`}),k.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#fff",zIndex:9999}})]}),k.jsx("div",{style:(()=>{var T,P;return o||(T=i.general)!=null&&T.embedded?(P=i.general)!=null&&P.embedded?{...a.chatWindowStyle}:{...a.chatWindowStyle,zIndex:1e4}:{...a.chatWindowStyle,borderRadius:"0px",left:"0px",right:"auto",top:"0px",bottom:"auto",width:`${f}px`,height:`${u}px`,zIndex:1e4}})(),className:"rcb-chat-window",children:(()=>{var T,P,E;const O=e?.chatBotHeader||W1,M=e?.chatBotBody||ek,N=e?.chatBotInput||kk,H=e?.chatBotFooter||Sk;return k.jsxs(k.Fragment,{children:[((T=i.general)==null?void 0:T.showHeader)&&k.jsx(O,{buttons:v}),k.jsx(M,{}),k.jsx(Dk,{}),((P=i.general)==null?void 0:P.showInputRow)&&k.jsx(N,{buttons:w}),((E=i.general)==null?void 0:E.showFooter)&&k.jsx(H,{buttons:y})]})})()})]})})},am=I.createContext(void 0),sm=()=>I.useContext(am),lm=({children:t})=>{var e;const n=I.useRef(""),r=I.useRef({}),[o,i,a]=Jt({}),[s,l,c]=Jt({}),[u,f]=I.useState(!1);return I.useEffect(()=>{f(!0)},[]),u?k.jsx("div",{style:{fontFamily:(e=o.general)==null?void 0:e.fontFamily},children:k.jsx(am.Provider,{value:{loadConfig:async(p,m,v,w,y,S)=>{n.current=p,r.current=m;const T=await Uk(p,v,w,y);S.current&&(S.current.textContent=T.cssStylesText),i(T.settings),l(T.inlineStyles)}},children:k.jsx(U1,{settings:o,setSyncedSettings:i,syncedSettingsRef:a,children:k.jsx(j1,{styles:s,setSyncedStyles:l,syncedStylesRef:c,children:k.jsx(xk,{children:k.jsx(V1,{botIdRef:n,flowRef:r,children:k.jsx(K1,{children:k.jsx(Y1,{settings:o,children:k.jsx(G1,{children:t})})})})})})})})}):null},Wk=({id:t,flow:e,settings:n,styles:r,themes:o,plugins:i,setConfigLoaded:a,styleRootRef:s})=>{const l=I.useMemo(()=>t,[]),c=sm(),{flowRef:u}=lt();return u&&u.current!==e&&(u.current=e),I.useEffect(()=>{(async()=>{var f,p;(f=n.event)!=null&&f.rcbPreLoadChatBot&&(await zd(de.PRE_LOAD_CHATBOT,{botId:l,currPath:null,prevPath:null},{flow:e,settings:n,styles:r,themes:o,plugins:i})).defaultPrevented||(c!=null&&c.loadConfig&&(await c.loadConfig(l,e,n,r,o,s),a(!0)),(p=n.event)!=null&&p.rcbPostLoadChatBot&&zd(de.POST_LOAD_CHATBOT,{botId:l,currPath:null,prevPath:null},{flow:e,settings:n,styles:r,themes:o,plugins:i}))})()},[o]),null},Jd=["Quickstart","API Docs","Examples","Github","Discord"],Vk={start:{message:"Hello, I am Tan Jin 👋! Welcome to React ChatBotify, I'm excited that you are using our chatbot 😊!",transition:{duration:1e3},chatDisabled:!0,path:"show_options"},show_options:{message:"It looks like you have not set up a conversation flow yet. No worries! Here are a few helpful things you can check out to get started:",options:Jd,path:"process_options"},prompt_again:{message:"Do you need any other help?",options:Jd,path:"process_options"},unknown_input:{message:"Sorry, I do not understand your message 😢! If you require further assistance, you may click on the Github option and open an issue there or visit our discord.",options:Jd,path:"process_options"},process_options:{transition:{duration:0},path:t=>{let e="";switch(t.userInput){case"Quickstart":e="https://react-chatbotify.com/docs/introduction/quickstart/";break;case"API Docs":e="https://react-chatbotify.com/docs/api/bot_options";break;case"Examples":e="https://react-chatbotify.com/docs/examples/basic_form";break;case"Github":e="https://github.com/react-chatbotify/react-chatbotify/";break;case"Discord":e="https://discord.gg/6R4DK4G5Zh";break;default:return"unknown_input"}return t.injectMessage("Sit tight! I'll send you right there!"),setTimeout(()=>{window.open(e)},1e3),"repeat"}},repeat:{transition:{duration:3e3},path:"prompt_again"}},Yk=({id:t,flow:e,settings:n,styles:r,themes:o,plugins:i,slots:a})=>{const s=I.useMemo(()=>t||"rcb-"+Hl(),[]),l=e&&Object.keys(e).length!==0?e:Vk,c=n||{},u=r||{},f=i||[],[p,m]=I.useState(!1),v=sm(),w=I.useRef(null),[y,S]=I.useState(o||[]);I.useEffect(()=>{o&&S(o)},[o]);const T=()=>k.jsxs(k.Fragment,{children:[k.jsx(Wk,{styleRootRef:w,id:s,flow:l,settings:c,styles:u,themes:y,plugins:f,setConfigLoaded:m}),p&&k.jsx(jk,{plugins:i,slots:a})]});return k.jsxs(v==null?lm:k.Fragment,{children:[k.jsx("style",{ref:w}),k.jsx("div",{id:s,children:T()})]})},qk=()=>{const{getBotId:t}=(()=>{const{botIdRef:e}=lt();return{getBotId:I.useCallback(()=>e.current,[e])}})();return{getBotId:t}},Kl=()=>{const{hasFlowStarted:t,restartFlow:e,getFlow:n}=(()=>{const{replaceMessages:r}=no(),{replacePaths:o,goToPath:i}=Vl(),{replaceToasts:a}=Go(),{hasFlowStarted:s}=ft(),{flowRef:l,timeoutIdRef:c}=lt(),{settings:u}=Ce();return{hasFlowStarted:s,restartFlow:I.useCallback(async()=>{jd(u),c.current&&clearTimeout(c.current),r([]),a([]),o([]),await i("start")},[c,u,r,a,o,jd,i]),getFlow:I.useCallback(()=>l?.current??{},[l])}})();return{hasFlowStarted:t,restartFlow:e,getFlow:n}},Ia=()=>{const{endStreamMessage:t,injectMessage:e,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:a}=no();return{endStreamMessage:t,injectMessage:e,removeMessage:n,simulateStreamMessage:r,streamMessage:o,messages:i,replaceMessages:a}},dn=(t,e)=>{const{getBotId:n}=qk();I.useEffect(()=>{const r=o=>{o.detail.botId===n()&&e(o)};return window.addEventListener(t,r),()=>{window.removeEventListener(t,r)}},[n,t,e])},cm=()=>{const{settings:t,replaceSettings:e,updateSettings:n}=om();return{settings:t,replaceSettings:e,updateSettings:n}},um=()=>{const{textAreaDisabled:t,toggleTextAreaDisabled:e,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:i,focusTextArea:a,blurTextArea:s}=ro();return{textAreaDisabled:t,toggleTextAreaDisabled:e,textAreaSensitiveMode:n,toggleTextAreaSensitiveMode:r,getTextAreaValue:o,setTextAreaValue:i,focusTextArea:a,blurTextArea:s}},dm=()=>{const{showChatHistory:t,hasChatHistoryLoaded:e}=Gd();return{showChatHistory:t,getHistoryMessages:Ud,setHistoryMessages:fk,hasChatHistoryLoaded:e}},Zd={a:{content:9,self:!1,type:105},address:{invalid:["h1","h2","h3","h4","h5","h6","address","article","aside","section","div","header","footer"],self:!1},audio:{children:["track","source"]},br:{type:9,void:!0},body:{content:127},button:{content:8,type:105},caption:{content:1,parent:["table"]},col:{parent:["colgroup"],void:!0},colgroup:{children:["col"],parent:["table"]},details:{children:["summary"],type:97},dd:{content:1,parent:["dl"]},dl:{children:["dt","dd"],type:1},dt:{content:1,invalid:["footer","header"],parent:["dl"]},figcaption:{content:1,parent:["figure"]},footer:{invalid:["footer","header"]},header:{invalid:["footer","header"]},hr:{type:1,void:!0},img:{void:!0},li:{content:1,parent:["ul","ol","menu"]},main:{self:!1},ol:{children:["li"],type:1},picture:{children:["source","img"],type:25},rb:{parent:["ruby","rtc"]},rp:{parent:["ruby","rtc"]},rt:{content:8,parent:["ruby","rtc"]},rtc:{content:8,parent:["ruby"]},ruby:{children:["rb","rp","rt","rtc"]},source:{parent:["audio","video","picture"],void:!0},summary:{content:8,parent:["details"]},table:{children:["caption","colgroup","thead","tbody","tfoot","tr"],type:1},tbody:{parent:["table"],children:["tr"]},td:{content:1,parent:["tr"]},tfoot:{parent:["table"],children:["tr"]},th:{content:1,parent:["tr"]},thead:{parent:["table"],children:["tr"]},tr:{parent:["table","tbody","thead","tfoot"],children:["th","td"]},track:{parent:["audio","video"],void:!0},ul:{children:["li"],type:1},video:{children:["track","source"]},wbr:{type:9,void:!0}};function oo(t){return e=>{Zd[e]={...t,...Zd[e]}}}["address","main","div","figure","p","pre"].forEach(oo({content:1,type:65})),["abbr","b","bdi","bdo","cite","code","data","dfn","em","i","kbd","mark","q","ruby","samp","strong","sub","sup","time","u","var"].forEach(oo({content:8,type:73})),["p","pre"].forEach(oo({content:8,type:65})),["s","small","span","del","ins"].forEach(oo({content:8,type:9})),["article","aside","footer","header","nav","section","blockquote"].forEach(oo({content:1,type:67})),["h1","h2","h3","h4","h5","h6"].forEach(oo({content:8,type:69})),["audio","canvas","iframe","img","video"].forEach(oo({type:89}));const $d=Object.freeze(Zd),Kk=["applet","base","body","command","embed","frame","frameset","head","html","link","meta","noscript","object","script","style","title"],Xk=Object.keys($d).filter(t=>t!=="canvas"&&t!=="iframe"),fm=Object.freeze({alt:1,cite:1,class:1,colspan:3,controls:4,datetime:1,default:4,disabled:4,dir:1,height:1,href:1,id:1,kind:1,label:1,lang:1,loading:1,loop:4,media:1,muted:4,poster:1,rel:1,role:1,rowspan:3,scope:1,sizes:1,span:3,start:3,style:5,src:1,srclang:1,srcset:1,tabindex:1,target:1,title:1,type:1,width:1}),Gk=Object.freeze({class:"className",colspan:"colSpan",datetime:"dateTime",rowspan:"rowSpan",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex"});function Xl(){return Xl=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Xl.apply(this,arguments)}function hm({attributes:t={},className:e,children:n=null,selfClose:r=!1,tagName:o}){const i=o;return r?I.createElement(i,Xl({className:e},t)):I.createElement(i,Xl({className:e},t),n)}class Jk{attribute(e,n){return n}node(e,n){return n}}function Zk(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var pm,Am;const $k=Zk((function(){if(Am)return pm;Am=1;var t=/["'&<>]/;return pm=function(e){var n=""+e,r=t.exec(n);if(!r)return n;var o,i="",a=0,s=0;for(a=r.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:o=""";break;case 38:o="&";break;case 39:o="'";break;case 60:o="<";break;case 62:o=">";break;default:continue}s!==a&&(i+=n.substring(s,a)),s=a+1,i+=o}return s!==a?i+n.substring(s,a):i}})());function dr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const eS=/(url|image|image-set)\(/i;class tS extends Jk{attribute(e,n){return e==="style"&&Object.keys(n).forEach(r=>{String(n[r]).match(eS)&&delete n[r]}),n}}const nS=/^<(!doctype|(html|head|body)(\s|>))/i,rS=/^(aria-|data-|\w+:)/iu,oS=/{{{(\w+)\/?}}}/;function iS(){if(!(typeof window>"u"||typeof document>"u"))return document.implementation.createHTMLDocument("Interweave")}let gm=class{constructor(t,e={},n=[],r=[]){var o;if(dr(this,"allowed",void 0),dr(this,"banned",void 0),dr(this,"blocked",void 0),dr(this,"container",void 0),dr(this,"content",[]),dr(this,"props",void 0),dr(this,"matchers",void 0),dr(this,"filters",void 0),dr(this,"keyIndex",void 0),t&&typeof t!="string")throw new TypeError("Interweave parser requires a valid string.");this.props=e,this.matchers=n,this.filters=[...r,new tS],this.keyIndex=-1,this.container=this.createContainer(t||""),this.allowed=new Set((o=e.allowList)!==null&&o!==void 0?o:Xk),this.banned=new Set(Kk),this.blocked=new Set(e.blockList)}applyAttributeFilters(t,e){return this.filters.reduce((n,r)=>n!==null&&typeof r.attribute=="function"?r.attribute(t,n):n,e)}applyNodeFilters(t,e){return this.filters.reduce((n,r)=>n!==null&&typeof r.node=="function"?r.node(t,n):n,e)}applyMatchers(t,e){const n={},{props:r}=this;let o=t,i=0,a=null;return this.matchers.forEach(s=>{const l=s.asTag().toLowerCase(),c=this.getTagConfig(l);if(r[s.inverseName]||!this.isTagAllowed(l)||!this.canRenderChild(e,c))return;let u="";for(;o&&(a=s.match(o));){const{index:f,length:p,match:m,valid:v,void:w,...y}=a,S=s.propName+String(i);f>0&&(u+=o.slice(0,f)),v?(u+=w?`{{{${S}/}}}`:`{{{${S}}}}${m}{{{/${S}}}}`,this.keyIndex+=1,i+=1,n[S]={children:m,matcher:s,props:{...r,...y,key:this.keyIndex}}):u+=m,s.greedy?(o=u+o.slice(f+p),u=""):o=o.slice(f+(p||m.length))}s.greedy||(o=u+o)}),i===0?t:this.replaceTokens(o,n)}canRenderChild(t,e){return!(!t.tagName||!e.tagName||t.void)&&(t.children.length>0?t.children.includes(e.tagName):!(t.invalid.length>0&&t.invalid.includes(e.tagName))&&(e.parent.length>0?e.parent.includes(t.tagName):!(!t.self&&t.tagName===e.tagName)&&!!(t&&t.content&e.type)))}convertLineBreaks(t){const{noHtml:e,disableLineBreaks:n}=this.props;if(e||n||t.match(/<((?:\/[ a-z]+)|(?:[ a-z]+\/))>/gi))return t;let r=t.replace(/\r\n/g,`
|
|
75
|
+
`);return r=r.replace(/\n{3,}/g,`
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
`),r=r.replace(/\n/g,"<br/>"),r}createContainer(t){var e;const n=(typeof global<"u"&&global.INTERWEAVE_SSR_POLYFILL||iS)();if(!n)return;const r=(e=this.props.containerTagName)!==null&&e!==void 0?e:"body",o=r==="body"||r==="fragment"?n.body:n.createElement(r);if(t.match(nS))throw new Error("HTML documents as Interweave content are not supported.");return o.innerHTML=this.convertLineBreaks(this.props.escapeHtml?$k(t):t),o}extractAttributes(t){const{allowAttributes:e}=this.props,n={};let r=0;return t.nodeType===1&&t.attributes&&([...t.attributes].forEach(o=>{const{name:i,value:a}=o,s=i.toLowerCase(),l=fm[s]||fm[i];if(!this.isSafe(t)||!s.match(rS)&&(!e&&(!l||l===2)||s.startsWith("on")||a.replace(/(\s|\0|�([9AD]);)/,"").match(/(javascript|vbscript|livescript|xss):/i)))return;let c=s==="style"?this.extractStyleAttribute(t):a;l===4?c=!0:l===3?c=Number.parseFloat(String(c)):l!==5&&(c=String(c)),n[Gk[s]||s]=this.applyAttributeFilters(s,c),r+=1}),r!==0)?n:null}extractStyleAttribute(t){const e={};return Array.from(t.style).forEach(n=>{const r=t.style[n];(typeof r=="string"||typeof r=="number")&&(e[n.replace(/-([a-z])/g,(o,i)=>String(i).toUpperCase())]=r)}),e}getTagConfig(t){const e={children:[],content:0,invalid:[],parent:[],self:!0,tagName:"",type:0,void:!1};return $d[t]?{...e,...$d[t],tagName:t}:e}isSafe(t){if(typeof HTMLAnchorElement<"u"&&t instanceof HTMLAnchorElement){const e=t.getAttribute("href");if(e!=null&&e.startsWith("#"))return!0;const n=t.protocol.toLowerCase();return n===":"||n==="http:"||n==="https:"||n==="mailto:"||n==="tel:"}return!0}isTagAllowed(t){return!this.banned.has(t)&&!this.blocked.has(t)&&(this.props.allowElements||this.allowed.has(t))}parse(){return this.container?this.parseNode(this.container,this.getTagConfig(this.container.nodeName.toLowerCase())):[]}parseNode(t,e){const{noHtml:n,noHtmlExceptMatchers:r,allowElements:o,transform:i,transformOnlyAllowList:a}=this.props;let s=[],l="";return[...t.childNodes].forEach(c=>{if(c.nodeType===1){const f=c.nodeName.toLowerCase(),p=this.getTagConfig(f);l&&(s.push(l),l="");const m=this.applyNodeFilters(f,c);if(!m)return;let v;if(i&&(!a||this.isTagAllowed(f))){this.keyIndex+=1;const w=this.keyIndex;v=this.parseNode(m,p);const y=i(m,v,p);if(y===null)return;if(typeof y<"u")return void s.push(I.cloneElement(y,{key:w}));this.keyIndex=w-1}if(this.banned.has(f))return;if(n||r&&f!=="br"||!this.isTagAllowed(f)||!o&&!this.canRenderChild(e,p))s=[...s,...this.parseNode(m,p.tagName?p:e)];else{var u;this.keyIndex+=1;const w=this.extractAttributes(m),y={tagName:f};w&&(y.attributes=w),p.void&&(y.selfClose=p.void),s.push(I.createElement(hm,{...y,key:this.keyIndex},(u=v)!==null&&u!==void 0?u:this.parseNode(m,p)))}}else if(c.nodeType===3){const f=n&&!r?c.textContent:this.applyMatchers(c.textContent||"",e);Array.isArray(f)?s=[...s,...f]:l+=f}}),l&&s.push(l),s}replaceTokens(t,e){if(!t.includes("{{{"))return t;const n=[];let r=t,o=null;for(;o=r.match(oS);){const[i,a]=o,s=o.index,l=i.includes("/");if(!e[a])throw new Error(`Token "${a}" found but no matching element to replace with.`);s>0&&(n.push(r.slice(0,s)),r=r.slice(s));const{children:c,matcher:u,props:f}=e[a];let p;if(l)p=i.length,n.push(u.createElement(c,f));else{const m=r.match(new RegExp(`{{{/${a}}}}`));if(!m)throw new Error(`Closing token missing for interpolated element "${a}".`);p=m.index+m[0].length,n.push(u.createElement(this.replaceTokens(r.slice(i.length,m.index),e),f))}r=r.slice(p)}return r.length>0&&n.push(r),n.length===0?"":n.length===1&&typeof n[0]=="string"?n[0]:n}};function aS(t){var e;const{attributes:n,className:r,containerTagName:o,content:i,emptyContent:a,parsedContent:s,tagName:l,noWrap:c}=t,u=(e=o??l)!==null&&e!==void 0?e:"span",f=u==="fragment"||c;let p;if(s)p=s;else{const m=new gm(i??"",t).parse();m.length>0&&(p=m)}return p||(p=a),f?I.createElement(I.Fragment,null,p):I.createElement(hm,{attributes:n,className:r,tagName:u},p)}function sS(t){const{attributes:e,className:n,content:r="",disableFilters:o=!1,disableMatchers:i=!1,emptyContent:a=null,filters:s=[],matchers:l=[],onAfterParse:c=null,onBeforeParse:u=null,tagName:f="span",noWrap:p=!1,...m}=t,v=i?[]:l,w=o?[]:s,y=u?[u]:[],S=c?[c]:[];v.forEach(O=>{O.onBeforeParse&&y.push(O.onBeforeParse.bind(O)),O.onAfterParse&&S.push(O.onAfterParse.bind(O))});const T=y.reduce((O,M)=>{const N=M(O,t);if(typeof N!="string")throw new TypeError("Interweave `onBeforeParse` must return a valid HTML string.");return N},r??""),P=new gm(T,m,v,w),E=S.reduce((O,M)=>{const N=M(O,t);if(!Array.isArray(N))throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");return N},P.parse());return I.createElement(aS,{attributes:e,className:n,containerTagName:t.containerTagName,emptyContent:a,noWrap:p,parsedContent:E.length===0?void 0:E,tagName:f})}const lS=({children:t})=>k.jsx("div",{style:{whiteSpace:"normal"},children:k.jsx(sS,{content:typeof t=="string"?t:""})}),cS={autoConfig:!0},mm=(t,e,n)=>{var r;if(!t.detail.currPath)return!1;const o=e[t.detail.currPath];return!!o&&(((r=o.renderHtml)==null?void 0:r.map(i=>i.toUpperCase()).includes(n))??!1)},uS=t=>{const e=[];let n="",r=!1;for(let o=0;o<t.length;o++){const i=t[o];i==="<"?r?(e.push(n),n=i):(r=!0,n=i):i===">"?(n+=i,e.push(n),n="",r=!1):r?n+=i:e.push(i)}return n!==""&&e.push(n),e},dS=t=>{const{getFlow:e}=Kl(),{messages:n,replaceMessages:r}=Ia(),{settings:o}=cm(),{hasChatHistoryLoaded:i}=dm(),a={...t,...cS},s=a.htmlComponent?a.htmlComponent:lS;I.useEffect(()=>{var u,f;if(i){const p=[...n];for(let m=0;m<p.length&&m<(((u=o.chatHistory)==null?void 0:u.maxEntries)??30);m++){const v=p[m];(f=v.tags)!=null&&f.includes("rcb-html-renderer-plugin:parsed")&&(v.contentWrapper=s)}r(p)}},[i]);const l=async u=>{var f;const p=(f=u.data.message)==null?void 0:f.sender.toUpperCase();typeof u.data.message.content=="string"&&mm(u,e(),p)&&(u.type==="rcb-start-simulate-stream-message"&&(u.data.simulateStreamChunker=uS),u.data.message.contentWrapper=s,u.data.message.tags||(u.data.message.tags=[]),u.data.message.tags.push("rcb-html-renderer-plugin:parsed"))};dn(de.PRE_INJECT_MESSAGE,l),dn(de.CHUNK_STREAM_MESSAGE,l),dn(de.START_STREAM_MESSAGE,l),dn(de.START_SIMULATE_STREAM_MESSAGE,l),dn(de.START_SPEAK_AUDIO,async u=>{mm(u,e(),"BOT")&&(u.data.textToRead=(f=>typeof window.DOMParser<"u"?new DOMParser().parseFromString(f,"text/html").body.textContent||"":f.replace(/<\/?[^>]+(>|$)/g,""))(u.data.textToRead))});const c={name:"@rcb-plugins/html-renderer"};return a!=null&&a.autoConfig&&(c.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0,rcbStartSpeakAudio:!0}}),c},fS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pS={};function bm(t,e){return(pS.jsx?hS:fS).test(t)}const AS=/[ \t\n\f\r]/g;function vm(t){return t.replace(AS,"")===""}class Ma{constructor(e,n,r){this.property=e,this.normal=n,r&&(this.space=r)}}function ym(t,e){const n={},r={};let o=-1;for(;++o<t.length;)Object.assign(n,t[o].property),Object.assign(r,t[o].normal);return new Ma(n,r,e)}function ef(t){return t.toLowerCase()}Ma.prototype.property={},Ma.prototype.normal={},Ma.prototype.space=null;class fn{constructor(e,n){this.property=e,this.attribute=n}}fn.prototype.space=null,fn.prototype.boolean=!1,fn.prototype.booleanish=!1,fn.prototype.overloadedBoolean=!1,fn.prototype.number=!1,fn.prototype.commaSeparated=!1,fn.prototype.spaceSeparated=!1,fn.prototype.commaOrSpaceSeparated=!1,fn.prototype.mustUseProperty=!1,fn.prototype.defined=!1;let gS=0;const Se=io(),ct=io(),wm=io(),re=io(),Ye=io(),Zo=io(),$t=io();function io(){return 2**++gS}const tf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:ct,commaOrSpaceSeparated:$t,commaSeparated:Zo,number:re,overloadedBoolean:wm,spaceSeparated:Ye},Symbol.toStringTag,{value:"Module"})),nf=Object.keys(tf);class rf extends fn{constructor(e,n,r,o){let i=-1;if(super(e,n),xm(this,"space",o),typeof r=="number")for(;++i<nf.length;){const a=nf[i];xm(this,nf[i],(r&tf[a])===tf[a])}}}function xm(t,e,n){n&&(t[e]=n)}rf.prototype.defined=!0;const mS={}.hasOwnProperty;function $o(t){const e={},n={};let r;for(r in t.properties)if(mS.call(t.properties,r)){const o=t.properties[r],i=new rf(r,t.transform(t.attributes||{},r),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),e[r]=i,n[ef(r)]=r,n[ef(i.attribute)]=r}return new Ma(e,n,t.space)}const km=$o({space:"xlink",transform:(t,e)=>"xlink:"+e.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Sm=$o({space:"xml",transform:(t,e)=>"xml:"+e.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Cm(t,e){return e in t?t[e]:e}function Em(t,e){return Cm(t,e.toLowerCase())}const Pm=$o({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Em,properties:{xmlns:null,xmlnsXLink:null}}),Dm=$o({transform:(t,e)=>e==="role"?e:"aria-"+e.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:ct,ariaAutoComplete:null,ariaBusy:ct,ariaChecked:ct,ariaColCount:re,ariaColIndex:re,ariaColSpan:re,ariaControls:Ye,ariaCurrent:null,ariaDescribedBy:Ye,ariaDetails:null,ariaDisabled:ct,ariaDropEffect:Ye,ariaErrorMessage:null,ariaExpanded:ct,ariaFlowTo:Ye,ariaGrabbed:ct,ariaHasPopup:null,ariaHidden:ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ye,ariaLevel:re,ariaLive:null,ariaModal:ct,ariaMultiLine:ct,ariaMultiSelectable:ct,ariaOrientation:null,ariaOwns:Ye,ariaPlaceholder:null,ariaPosInSet:re,ariaPressed:ct,ariaReadOnly:ct,ariaRelevant:null,ariaRequired:ct,ariaRoleDescription:Ye,ariaRowCount:re,ariaRowIndex:re,ariaRowSpan:re,ariaSelected:ct,ariaSetSize:re,ariaSort:null,ariaValueMax:re,ariaValueMin:re,ariaValueNow:re,ariaValueText:null,role:null}}),bS=$o({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Em,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zo,acceptCharset:Ye,accessKey:Ye,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:Ye,autoFocus:Se,autoPlay:Se,blocking:Ye,capture:null,charSet:null,checked:Se,cite:null,className:Ye,cols:re,colSpan:null,content:null,contentEditable:ct,controls:Se,controlsList:Ye,coords:re|Zo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:wm,draggable:ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:Ye,height:re,hidden:Se,high:re,href:null,hrefLang:null,htmlFor:Ye,httpEquiv:Ye,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:Ye,itemRef:Ye,itemScope:Se,itemType:Ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:re,manifest:null,max:null,maxLength:re,media:null,method:null,min:null,minLength:re,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,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:Se,optimum:re,pattern:null,ping:Ye,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:Ye,required:Se,reversed:Se,rows:re,rowSpan:re,sandbox:Ye,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shape:null,size:re,sizes:null,slot:null,span:re,spellCheck:ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:re,step:null,style:null,tabIndex:re,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:ct,width:re,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ye,axis:null,background:null,bgColor:null,border:re,borderColor:null,bottomMargin:re,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:re,leftMargin:re,link:null,longDesc:null,lowSrc:null,marginHeight:re,marginWidth:re,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:re,rules:null,scheme:null,scrolling:ct,standby:null,summary:null,text:null,topMargin:re,valueType:null,version:null,vAlign:null,vLink:null,vSpace:re,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Se,disableRemotePlayback:Se,prefix:null,property:null,results:re,security:null,unselectable:null}}),vS=$o({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:Cm,properties:{about:$t,accentHeight:re,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:re,amplitude:re,arabicForm:null,ascent:re,attributeName:null,attributeType:null,azimuth:re,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:re,by:null,calcMode:null,capHeight:re,className:Ye,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:re,diffuseConstant:re,direction:null,display:null,dur:null,divisor:re,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:re,enableBackground:null,end:null,event:null,exponent:re,externalResourcesRequired:null,fill:null,fillOpacity:re,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:Zo,g2:Zo,glyphName:Zo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:re,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:re,horizOriginX:re,horizOriginY:re,id:null,ideographic:re,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:re,k:re,k1:re,k2:re,k3:re,k4:re,kernelMatrix:$t,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:re,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:re,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:re,overlineThickness:re,paintOrder:null,panose1:null,path:null,pathLength:re,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:re,pointsAtY:re,pointsAtZ:re,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$t,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$t,rev:$t,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$t,requiredFeatures:$t,requiredFonts:$t,requiredFormats:$t,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:re,specularExponent:re,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:re,strikethroughThickness:re,string:null,stroke:null,strokeDashArray:$t,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:re,strokeOpacity:re,strokeWidth:null,style:null,surfaceScale:re,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$t,tabIndex:re,tableValues:null,target:null,targetX:re,targetY:re,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$t,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:re,underlineThickness:re,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:re,values:null,vAlphabetic:re,vMathematical:re,vectorEffect:null,vHanging:re,vIdeographic:re,version:null,vertAdvY:re,vertOriginX:re,vertOriginY:re,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:re,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),yS=/^data[-\w.:]+$/i,Tm=/-[a-z]/g,wS=/[A-Z]/g;function xS(t){return"-"+t.toLowerCase()}function kS(t){return t.charAt(1).toUpperCase()}const SS={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"},CS=ym([Sm,km,Pm,Dm,bS],"html"),of=ym([Sm,km,Pm,Dm,vS],"svg");function Bm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var af,Im,Mm,ei={},ES=(function(){if(Mm)return ei;Mm=1;var t=ei&&ei.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.default=function(n,r){var o=null;if(!n||typeof n!="string")return o;var i=(0,e.default)(n),a=typeof r=="function";return i.forEach(function(s){if(s.type==="declaration"){var l=s.property,c=s.value;a?r(l,c,s):c&&((o=o||{})[l]=c)}}),o};var e=t((function(){if(Im)return af;Im=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,o=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,c=/^\s+|\s+$/g,u="";function f(p){return p?p.replace(c,u):u}return af=function(p,m){if(typeof p!="string")throw new TypeError("First argument must be a string");if(!p)return[];m=m||{};var v=1,w=1;function y(z){var Q=z.match(r);Q&&(v+=Q.length);var U=z.lastIndexOf(`
|
|
79
|
+
`);w=~U?z.length-U:w+z.length}function S(){var z={line:v,column:w};return function(Q){return Q.position=new T(z),O(),Q}}function T(z){this.start=z,this.end={line:v,column:w},this.source=m.source}function P(z){var Q=new Error(m.source+":"+v+":"+w+": "+z);if(Q.reason=z,Q.filename=m.source,Q.line=v,Q.column=w,Q.source=p,!m.silent)throw Q}function E(z){var Q=z.exec(p);if(Q){var U=Q[0];return y(U),p=p.slice(U.length),Q}}function O(){E(o)}function M(z){var Q;for(z=z||[];Q=N();)Q!==!1&&z.push(Q);return z}function N(){var z=S();if(p.charAt(0)=="/"&&p.charAt(1)=="*"){for(var Q=2;u!=p.charAt(Q)&&(p.charAt(Q)!="*"||p.charAt(Q+1)!="/");)++Q;if(Q+=2,u===p.charAt(Q-1))return P("End of comment missing");var U=p.slice(2,Q-2);return w+=2,y(U),p=p.slice(Q),w+=2,z({type:"comment",comment:U})}}function H(){var z=S(),Q=E(i);if(Q){if(N(),!E(a))return P("property missing ':'");var U=E(s),j=z({type:"declaration",property:f(Q[0].replace(n,u)),value:U?f(U[0].replace(n,u)):u});return E(l),j}}return T.prototype.content=p,O(),(function(){var z,Q=[];for(M(Q);z=H();)z!==!1&&(Q.push(z),M(Q));return Q})()},af})());return ei})();const Om=Bm(ES),PS=Om.default||Om,_m=Fm("end"),sf=Fm("start");function Fm(t){return function(e){const n=e&&e.position&&e.position[t]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function Oa(t){return t&&typeof t=="object"?"position"in t||"type"in t?Rm(t.position):"start"in t||"end"in t?Rm(t):"line"in t||"column"in t?lf(t):"":""}function lf(t){return Lm(t&&t.line)+":"+Lm(t&&t.column)}function Rm(t){return lf(t&&t.start)+"-"+lf(t&&t.end)}function Lm(t){return t&&typeof t=="number"?t:1}class kt extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},a=!1;if(n&&(i="line"in n&&"column"in n||"start"in n&&"end"in n?{place:n}:"type"in n?{ancestors:[n],place:n.position}:{...n}),typeof e=="string"?o=e:!i.cause&&e&&(a=!0,o=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=s?s.line:void 0,this.name=Oa(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}kt.prototype.file="",kt.prototype.name="",kt.prototype.reason="",kt.prototype.message="",kt.prototype.stack="",kt.prototype.column=void 0,kt.prototype.line=void 0,kt.prototype.ancestors=void 0,kt.prototype.cause=void 0,kt.prototype.fatal=void 0,kt.prototype.place=void 0,kt.prototype.ruleId=void 0,kt.prototype.source=void 0;const cf={}.hasOwnProperty,DS=new Map,TS=/[A-Z]/g,BS=/-([a-z])/g,IS=new Set(["table","tbody","thead","tfoot","tr"]),MS=new Set(["td","th"]),Nm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function OS(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=(function(a,s){return l;function l(c,u,f,p){const m=Array.isArray(f.children),v=sf(c);return s(u,f,p,m,{columnNumber:v?v.column-1:void 0,fileName:a,lineNumber:v?v.line:void 0},void 0)}})(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=(function(a,s,l){return c;function c(u,f,p,m){const v=Array.isArray(p.children)?l:s;return m?v(f,p,m):v(f,p)}})(0,e.jsx,e.jsxs)}const o={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?of:CS,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},i=zm(o,t,void 0);return i&&typeof i!="string"?i:o.create(t,o.Fragment,{children:i||void 0},void 0)}function zm(t,e,n){return e.type==="element"?(function(r,o,i){const a=r.schema;let s=a;o.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=of,r.schema=s),r.ancestors.push(o);const l=Hm(r,o.tagName,!1),c=(function(f,p){const m={};let v,w;for(w in p.properties)if(w!=="children"&&cf.call(p.properties,w)){const y=_S(f,w,p.properties[w]);if(y){const[S,T]=y;f.tableCellAlignToStyle&&S==="align"&&typeof T=="string"&&MS.has(p.tagName)?v=T:m[S]=T}}return v&&((m.style||(m.style={}))[f.stylePropertyNameCase==="css"?"text-align":"textAlign"]=v),m})(r,o);let u=df(r,o);return IS.has(o.tagName)&&(u=u.filter(function(f){return typeof f!="string"||!(function(p){return typeof p=="object"?p.type==="text"&&vm(p.value):vm(p)})(f)})),Qm(r,c,l,o),uf(c,u),r.ancestors.pop(),r.schema=a,r.create(o,l,c,i)})(t,e,n):e.type==="mdxFlowExpression"||e.type==="mdxTextExpression"?(function(r,o){if(o.data&&o.data.estree&&r.evaluater){const i=o.data.estree.body[0];return i.type,r.evaluater.evaluateExpression(i.expression)}_a(r,o.position)})(t,e):e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement"?(function(r,o,i){const a=r.schema;let s=a;o.name==="svg"&&a.space==="html"&&(s=of,r.schema=s),r.ancestors.push(o);const l=o.name===null?r.Fragment:Hm(r,o.name,!0),c=(function(f,p){const m={};for(const v of p.attributes)if(v.type==="mdxJsxExpressionAttribute")if(v.data&&v.data.estree&&f.evaluater){const w=v.data.estree.body[0];w.type;const y=w.expression;y.type;const S=y.properties[0];S.type,Object.assign(m,f.evaluater.evaluateExpression(S.argument))}else _a(f,p.position);else{const w=v.name;let y;if(v.value&&typeof v.value=="object")if(v.value.data&&v.value.data.estree&&f.evaluater){const S=v.value.data.estree.body[0];S.type,y=f.evaluater.evaluateExpression(S.expression)}else _a(f,p.position);else y=v.value===null||v.value;m[w]=y}return m})(r,o),u=df(r,o);return Qm(r,c,l,o),uf(c,u),r.ancestors.pop(),r.schema=a,r.create(o,l,c,i)})(t,e,n):e.type==="mdxjsEsm"?(function(r,o){if(o.data&&o.data.estree&&r.evaluater)return r.evaluater.evaluateProgram(o.data.estree);_a(r,o.position)})(t,e):e.type==="root"?(function(r,o,i){const a={};return uf(a,df(r,o)),r.create(o,r.Fragment,a,i)})(t,e,n):e.type==="text"?(function(r,o){return o.value})(0,e):void 0}function Qm(t,e,n,r){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=r)}function uf(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function df(t,e){const n=[];let r=-1;const o=t.passKeys?new Map:DS;for(;++r<e.children.length;){const i=e.children[r];let a;if(t.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=o.get(l)||0;a=l+"-"+c,o.set(l,c+1)}}const s=zm(t,i,a);s!==void 0&&n.push(s)}return n}function _S(t,e,n){const r=(function(o,i){const a=ef(i);let s=i,l=fn;if(a in o.normal)return o.property[o.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&yS.test(i)){if(i.charAt(4)==="-"){const c=i.slice(5).replace(Tm,kS);s="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=i.slice(4);if(!Tm.test(c)){let u=c.replace(wS,xS);u.charAt(0)!=="-"&&(u="-"+u),i="data"+u}}l=rf}return new l(s,i)})(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?(function(o){const i={};return(o[o.length-1]===""?[...o,""]:o).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()})(n):(function(o){return o.join(" ").trim()})(n)),r.property==="style"){let o=typeof n=="object"?n:(function(i,a){const s={};try{PS(a,l)}catch(c){if(!i.ignoreInvalidStyle){const u=c,f=new kt("Cannot parse `style` attribute",{ancestors:i.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw f.file=i.filePath||void 0,f.url=Nm+"#cannot-parse-style-attribute",f}}return s;function l(c,u){let f=c;f.slice(0,2)!=="--"&&(f.slice(0,4)==="-ms-"&&(f="ms-"+f.slice(4)),f=f.replace(BS,RS)),s[f]=u}})(t,String(n));return t.stylePropertyNameCase==="css"&&(o=(function(i){const a={};let s;for(s in i)cf.call(i,s)&&(a[FS(s)]=i[s]);return a})(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&r.space?SS[r.property]||r.property:r.attribute,n]}}function Hm(t,e,n){let r;if(n)if(e.includes(".")){const o=e.split(".");let i,a=-1;for(;++a<o.length;){const s=bm(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};i=i?{type:"MemberExpression",object:i,property:s,computed:!(!a||s.type!=="Literal"),optional:!1}:s}r=i}else r=bm(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};else r={type:"Literal",value:e};if(r.type==="Literal"){const o=r.value;return cf.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(r);_a(t)}function _a(t,e){const n=new kt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=Nm+"#cannot-handle-mdx-estrees-without-createevaluater",n}function FS(t){let e=t.replace(TS,LS);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function RS(t,e){return e.toUpperCase()}function LS(t){return"-"+t.toLowerCase()}const ff={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Gl={};function Um(t,e,n){if((function(r){return!(!r||typeof r!="object")})(t)){if("value"in t)return t.type!=="html"||n?t.value:"";if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return jm(t.children,e,n)}return Array.isArray(t)?jm(t,e,n):""}function jm(t,e,n){const r=[];let o=-1;for(;++o<t.length;)r[o]=Um(t[o],e,n);return r.join("")}const Wm=document.createElement("i");function hf(t){const e="&"+t+";";Wm.innerHTML=e;const n=Wm.textContent;return(n.charCodeAt(n.length-1)!==59||t==="semi")&&n!==e&&n}function zn(t,e,n,r){const o=t.length;let i,a=0;if(e=e<0?-e>o?0:o+e:e>o?o:e,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(e,n),t.splice(...i);else for(n&&t.splice(e,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(e,0),t.splice(...i),a+=1e4,e+=1e4}function hn(t,e){return t.length>0?(zn(t,t.length,0,e),t):e}const Vm={}.hasOwnProperty;function NS(t){const e={};let n=-1;for(;++n<t.length;)zS(e,t[n]);return e}function zS(t,e){let n;for(n in e){const r=(Vm.call(t,n)?t[n]:void 0)||(t[n]={}),o=e[n];let i;if(o)for(i in o){Vm.call(r,i)||(r[i]=[]);const a=o[i];QS(r[i],Array.isArray(a)?a:a?[a]:[])}}}function QS(t,e){let n=-1;const r=[];for(;++n<e.length;)(e[n].add==="after"?t:r).push(e[n]);zn(t,0,0,r)}function Ym(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}function ti(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qn=Br(/[A-Za-z]/),en=Br(/[\dA-Za-z]/),HS=Br(/[#-'*+\--9=?A-Z^-~]/);function pf(t){return t!==null&&(t<32||t===127)}const Af=Br(/\d/),US=Br(/[\dA-Fa-f]/),jS=Br(/[!-/:-@[-`{-~]/);function ve(t){return t!==null&&t<-2}function Nt(t){return t!==null&&(t<0||t===32)}function Le(t){return t===-2||t===-1||t===32}const WS=Br(new RegExp("\\p{P}|\\p{S}","u")),VS=Br(/\s/);function Br(t){return function(e){return e!==null&&e>-1&&t.test(String.fromCharCode(e))}}function ni(t){const e=[];let n=-1,r=0,o=0;for(;++n<t.length;){const i=t.charCodeAt(n);let a="";if(i===37&&en(t.charCodeAt(n+1))&&en(t.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const s=t.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(a=String.fromCharCode(i,s),o=1):a="�"}else a=String.fromCharCode(i);a&&(e.push(t.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return e.join("")+t.slice(r)}function qe(t,e,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(s){return Le(s)?(t.enter(n),a(s)):e(s)};function a(s){return Le(s)&&i++<o?(t.consume(s),a):(t.exit(n),e(s))}}const YS={tokenize:function(t){const e=t.attempt(this.parser.constructs.contentInitial,function(i){return i===null?void t.consume(i):(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),qe(t,e,"linePrefix"))},function(i){return t.enter("paragraph"),r(i)});let n;return e;function r(i){const a=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,o(i)}function o(i){return i===null?(t.exit("chunkText"),t.exit("paragraph"),void t.consume(i)):ve(i)?(t.consume(i),t.exit("chunkText"),r):(t.consume(i),o)}}},qS={tokenize:function(t){const e=this,n=[];let r,o,i,a=0;return s;function s(P){if(a<n.length){const E=n[a];return e.containerState=E[1],t.attempt(E[0].continuation,l,c)(P)}return c(P)}function l(P){if(a++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,r&&T();const E=e.events.length;let O,M=E;for(;M--;)if(e.events[M][0]==="exit"&&e.events[M][1].type==="chunkFlow"){O=e.events[M][1].end;break}S(a);let N=E;for(;N<e.events.length;)e.events[N][1].end={...O},N++;return zn(e.events,M+1,0,e.events.slice(E)),e.events.length=N,c(P)}return s(P)}function c(P){if(a===n.length){if(!r)return p(P);if(r.currentConstruct&&r.currentConstruct.concrete)return v(P);e.interrupt=!(!r.currentConstruct||r._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(qm,u,f)(P)}function u(P){return r&&T(),S(a),p(P)}function f(P){return e.parser.lazy[e.now().line]=a!==n.length,i=e.now().offset,v(P)}function p(P){return e.containerState={},t.attempt(qm,m,v)(P)}function m(P){return a++,n.push([e.currentConstruct,e.containerState]),p(P)}function v(P){return P===null?(r&&T(),S(0),void t.consume(P)):(r=r||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),w(P))}function w(P){return P===null?(y(t.exit("chunkFlow"),!0),S(0),void t.consume(P)):ve(P)?(t.consume(P),y(t.exit("chunkFlow")),a=0,e.interrupt=void 0,s):(t.consume(P),w)}function y(P,E){const O=e.sliceStream(P);if(E&&O.push(null),P.previous=o,o&&(o.next=P),o=P,r.defineSkip(P.start),r.write(O),e.parser.lazy[P.start.line]){let M=r.events.length;for(;M--;)if(r.events[M][1].start.offset<i&&(!r.events[M][1].end||r.events[M][1].end.offset>i))return;const N=e.events.length;let H,z,Q=N;for(;Q--;)if(e.events[Q][0]==="exit"&&e.events[Q][1].type==="chunkFlow"){if(H){z=e.events[Q][1].end;break}H=!0}for(S(a),M=N;M<e.events.length;)e.events[M][1].end={...z},M++;zn(e.events,Q+1,0,e.events.slice(N)),e.events.length=M}}function S(P){let E=n.length;for(;E-- >P;){const O=n[E];e.containerState=O[1],O[0].exit.call(e,t)}n.length=P}function T(){r.write([null]),o=void 0,r=void 0,e.containerState._closeFlow=void 0}}},qm={tokenize:function(t,e,n){return qe(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Km(t){return t===null||Nt(t)||VS(t)?1:WS(t)?2:void 0}function gf(t,e,n){const r=[];let o=-1;for(;++o<t.length;){const i=t[o].resolveAll;i&&!r.includes(i)&&(e=i(e,n),r.push(i))}return e}const mf={name:"attention",resolveAll:function(t,e){let n,r,o,i,a,s,l,c,u=-1;for(;++u<t.length;)if(t[u][0]==="enter"&&t[u][1].type==="attentionSequence"&&t[u][1]._close){for(n=u;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[u][1]).charCodeAt(0)){if((t[n][1]._close||t[u][1]._open)&&(t[u][1].end.offset-t[u][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[u][1].end.offset-t[u][1].start.offset)%3))continue;s=t[n][1].end.offset-t[n][1].start.offset>1&&t[u][1].end.offset-t[u][1].start.offset>1?2:1;const f={...t[n][1].end},p={...t[u][1].start};Xm(f,-s),Xm(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...t[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...t[u][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...t[n][1].end},end:{...t[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},t[n][1].end={...i.start},t[u][1].start={...a.end},l=[],t[n][1].end.offset-t[n][1].start.offset&&(l=hn(l,[["enter",t[n][1],e],["exit",t[n][1],e]])),l=hn(l,[["enter",r,e],["enter",i,e],["exit",i,e],["enter",o,e]]),l=hn(l,gf(e.parser.constructs.insideSpan.null,t.slice(n+1,u),e)),l=hn(l,[["exit",o,e],["enter",a,e],["exit",a,e],["exit",r,e]]),t[u][1].end.offset-t[u][1].start.offset?(c=2,l=hn(l,[["enter",t[u][1],e],["exit",t[u][1],e]])):c=0,zn(t,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<t.length;)t[u][1].type==="attentionSequence"&&(t[u][1].type="data");return t},tokenize:function(t,e){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Km(r);let i;return function(s){return i=s,t.enter("attentionSequence"),a(s)};function a(s){if(s===i)return t.consume(s),a;const l=t.exit("attentionSequence"),c=Km(s),u=!c||c===2&&o||n.includes(s),f=!o||o===2&&c||n.includes(r);return l._open=!!(i===42?u:u&&(o||!f)),l._close=!!(i===42?f:f&&(c||!u)),e(s)}}};function Xm(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const KS={name:"autolink",tokenize:function(t,e,n){let r=0;return function(p){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),o};function o(p){return Qn(p)?(t.consume(p),i):p===64?n(p):l(p)}function i(p){return p===43||p===45||p===46||en(p)?(r=1,a(p)):l(p)}function a(p){return p===58?(t.consume(p),r=0,s):(p===43||p===45||p===46||en(p))&&r++<32?(t.consume(p),a):(r=0,l(p))}function s(p){return p===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):p===null||p===32||p===60||pf(p)?n(p):(t.consume(p),s)}function l(p){return p===64?(t.consume(p),c):HS(p)?(t.consume(p),l):n(p)}function c(p){return en(p)?u(p):n(p)}function u(p){return p===46?(t.consume(p),r=0,c):p===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(p),t.exit("autolinkMarker"),t.exit("autolink"),e):f(p)}function f(p){if((p===45||en(p))&&r++<63){const m=p===45?f:u;return t.consume(p),m}return n(p)}}},Jl={partial:!0,tokenize:function(t,e,n){return function(o){return Le(o)?qe(t,r,"linePrefix")(o):r(o)};function r(o){return o===null||ve(o)?e(o):n(o)}}},Gm={continuation:{tokenize:function(t,e,n){const r=this;return function(i){return Le(i)?qe(t,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)};function o(i){return t.attempt(Gm,e,n)(i)}}},exit:function(t){t.exit("blockQuote")},name:"blockQuote",tokenize:function(t,e,n){const r=this;return function(i){if(i===62){const a=r.containerState;return a.open||(t.enter("blockQuote",{_container:!0}),a.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(i),t.exit("blockQuoteMarker"),o}return n(i)};function o(i){return Le(i)?(t.enter("blockQuotePrefixWhitespace"),t.consume(i),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(i))}}},Jm={name:"characterEscape",tokenize:function(t,e,n){return function(o){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(o),t.exit("escapeMarker"),r};function r(o){return jS(o)?(t.enter("characterEscapeValue"),t.consume(o),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(o)}}},Zm={name:"characterReference",tokenize:function(t,e,n){const r=this;let o,i,a=0;return function(u){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(u),t.exit("characterReferenceMarker"),s};function s(u){return u===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(u),t.exit("characterReferenceMarkerNumeric"),l):(t.enter("characterReferenceValue"),o=31,i=en,c(u))}function l(u){return u===88||u===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(u),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),o=6,i=US,c):(t.enter("characterReferenceValue"),o=7,i=Af,c(u))}function c(u){if(u===59&&a){const f=t.exit("characterReferenceValue");return i!==en||hf(r.sliceSerialize(f))?(t.enter("characterReferenceMarker"),t.consume(u),t.exit("characterReferenceMarker"),t.exit("characterReference"),e):n(u)}return i(u)&&a++<o?(t.consume(u),c):n(u)}}},$m={partial:!0,tokenize:function(t,e,n){const r=this;return function(i){return i===null?n(i):(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),o)};function o(i){return r.parser.lazy[r.now().line]?n(i):e(i)}}},eb={concrete:!0,name:"codeFenced",tokenize:function(t,e,n){const r=this,o={partial:!0,tokenize:function(P,E,O){let M=0;return N;function N(j){return P.enter("lineEnding"),P.consume(j),P.exit("lineEnding"),H}function H(j){return P.enter("codeFencedFence"),Le(j)?qe(P,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):z(j)}function z(j){return j===i?(P.enter("codeFencedFenceSequence"),Q(j)):O(j)}function Q(j){return j===i?(M++,P.consume(j),Q):M>=s?(P.exit("codeFencedFenceSequence"),Le(j)?qe(P,U,"whitespace")(j):U(j)):O(j)}function U(j){return j===null||ve(j)?(P.exit("codeFencedFence"),E(j)):O(j)}}};let i,a=0,s=0;return function(P){return(function(E){const O=r.events[r.events.length-1];return a=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,i=E,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),l(E)})(P)};function l(P){return P===i?(s++,t.consume(P),l):s<3?n(P):(t.exit("codeFencedFenceSequence"),Le(P)?qe(t,c,"whitespace")(P):c(P))}function c(P){return P===null||ve(P)?(t.exit("codeFencedFence"),r.interrupt?e(P):t.check($m,m,T)(P)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),u(P))}function u(P){return P===null||ve(P)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),c(P)):Le(P)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),qe(t,f,"whitespace")(P)):P===96&&P===i?n(P):(t.consume(P),u)}function f(P){return P===null||ve(P)?c(P):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),p(P))}function p(P){return P===null||ve(P)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),c(P)):P===96&&P===i?n(P):(t.consume(P),p)}function m(P){return t.attempt(o,T,v)(P)}function v(P){return t.enter("lineEnding"),t.consume(P),t.exit("lineEnding"),w}function w(P){return a>0&&Le(P)?qe(t,y,"linePrefix",a+1)(P):y(P)}function y(P){return P===null||ve(P)?t.check($m,m,T)(P):(t.enter("codeFlowValue"),S(P))}function S(P){return P===null||ve(P)?(t.exit("codeFlowValue"),y(P)):(t.consume(P),S)}function T(P){return t.exit("codeFenced"),e(P)}}},bf={name:"codeIndented",tokenize:function(t,e,n){const r=this;return function(l){return t.enter("codeIndented"),qe(t,o,"linePrefix",5)(l)};function o(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(l):n(l)}function i(l){return l===null?s(l):ve(l)?t.attempt(XS,i,s)(l):(t.enter("codeFlowValue"),a(l))}function a(l){return l===null||ve(l)?(t.exit("codeFlowValue"),i(l)):(t.consume(l),a)}function s(l){return t.exit("codeIndented"),e(l)}}},XS={partial:!0,tokenize:function(t,e,n){const r=this;return o;function o(a){return r.parser.lazy[r.now().line]?n(a):ve(a)?(t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),o):qe(t,i,"linePrefix",5)(a)}function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?e(a):ve(a)?o(a):n(a)}}},GS={name:"codeText",previous:function(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"},resolve:function(t){let e,n,r=t.length-4,o=3;if(!(t[o][1].type!=="lineEnding"&&t[o][1].type!=="space"||t[r][1].type!=="lineEnding"&&t[r][1].type!=="space")){for(e=o;++e<r;)if(t[e][1].type==="codeTextData"){t[o][1].type="codeTextPadding",t[r][1].type="codeTextPadding",o+=2,r-=2;break}}for(e=o-1,r++;++e<=r;)n===void 0?e!==r&&t[e][1].type!=="lineEnding"&&(n=e):(e===r||t[e][1].type==="lineEnding")&&(t[n][1].type="codeTextData",e!==n+2&&(t[n][1].end=t[e-1][1].end,t.splice(n+2,e-n-2),r-=e-n-2,e=n+2),n=void 0);return t},tokenize:function(t,e,n){let r,o,i=0;return function(u){return t.enter("codeText"),t.enter("codeTextSequence"),a(u)};function a(u){return u===96?(t.consume(u),i++,a):(t.exit("codeTextSequence"),s(u))}function s(u){return u===null?n(u):u===32?(t.enter("space"),t.consume(u),t.exit("space"),s):u===96?(o=t.enter("codeTextSequence"),r=0,c(u)):ve(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),s):(t.enter("codeTextData"),l(u))}function l(u){return u===null||u===32||u===96||ve(u)?(t.exit("codeTextData"),s(u)):(t.consume(u),l)}function c(u){return u===96?(t.consume(u),r++,c):r===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(u)):(o.type="codeTextData",l(u))}}};class JS{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(e,r):e>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const o=n||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&Fa(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Fa(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Fa(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);Fa(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Fa(this.left,n.reverse())}}}function Fa(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function tb(t){const e={};let n,r,o,i,a,s,l,c=-1;const u=new JS(t);for(;++c<u.length;){for(;c in e;)c=e[c];if(n=u.get(c),c&&n[1].type==="chunkFlow"&&u.get(c-1)[1].type==="listItemPrefix"&&(s=n[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(e,ZS(u,c)),c=e[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--;)if(i=u.get(o),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if(i[1].type!=="linePrefix")break;r&&(n[1].end={...u.get(r)[1].start},a=u.slice(r,c),a.unshift(n),u.splice(r,c-r+1,a))}}return zn(t,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function ZS(t,e){const n=t.get(e)[1],r=t.get(e)[2];let o=e-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,f,p=-1,m=n,v=0,w=0;const y=[w];for(;m;){for(;t.get(++o)[1]!==m;);i.push(o),m._tokenizer||(u=r.sliceStream(m),m.next||u.push(null),f&&a.defineSkip(m.start),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=m,m=m.next}for(m=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(w=p+1,y.push(w),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(a.events=[],m?(m._tokenizer=void 0,m.previous=void 0):y.pop(),p=y.length;p--;){const S=s.slice(y[p],y[p+1]),T=i.pop();l.push([T,T+S.length-1]),t.splice(T,2,S)}for(l.reverse(),p=-1;++p<l.length;)c[v+l[p][0]]=v+l[p][1],v+=l[p][1]-l[p][0]-1;return c}const $S={resolve:function(t){return tb(t),t},tokenize:function(t,e){let n;return function(a){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),r(a)};function r(a){return a===null?o(a):ve(a)?t.check(eC,i,o)(a):(t.consume(a),r)}function o(a){return t.exit("chunkContent"),t.exit("content"),e(a)}function i(a){return t.consume(a),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eC={partial:!0,tokenize:function(t,e,n){const r=this;return function(i){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),qe(t,o,"linePrefix")};function o(i){if(i===null||ve(i))return n(i);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(i):t.interrupt(r.parser.constructs.flow,n,e)(i)}}};function nb(t,e,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(y){return y===60?(t.enter(r),t.enter(o),t.enter(i),t.consume(y),t.exit(i),f):y===null||y===32||y===41||pf(y)?n(y):(t.enter(r),t.enter(a),t.enter(s),t.enter("chunkString",{contentType:"string"}),v(y))};function f(y){return y===62?(t.enter(i),t.consume(y),t.exit(i),t.exit(o),t.exit(r),e):(t.enter(s),t.enter("chunkString",{contentType:"string"}),p(y))}function p(y){return y===62?(t.exit("chunkString"),t.exit(s),f(y)):y===null||y===60||ve(y)?n(y):(t.consume(y),y===92?m:p)}function m(y){return y===60||y===62||y===92?(t.consume(y),p):p(y)}function v(y){return u||y!==null&&y!==41&&!Nt(y)?u<c&&y===40?(t.consume(y),u++,v):y===41?(t.consume(y),u--,v):y===null||y===32||y===40||pf(y)?n(y):(t.consume(y),y===92?w:v):(t.exit("chunkString"),t.exit(s),t.exit(a),t.exit(r),e(y))}function w(y){return y===40||y===41||y===92?(t.consume(y),v):v(y)}}function rb(t,e,n,r,o,i){const a=this;let s,l=0;return function(p){return t.enter(r),t.enter(o),t.consume(p),t.exit(o),t.enter(i),c};function c(p){return l>999||p===null||p===91||p===93&&!s||p===94&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(p):p===93?(t.exit(i),t.enter(o),t.consume(p),t.exit(o),t.exit(r),e):ve(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),c):(t.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===null||p===91||p===93||ve(p)||l++>999?(t.exit("chunkString"),c(p)):(t.consume(p),s||(s=!Le(p)),p===92?f:u)}function f(p){return p===91||p===92||p===93?(t.consume(p),l++,u):u(p)}}function ob(t,e,n,r,o,i){let a;return function(f){return f===34||f===39||f===40?(t.enter(r),t.enter(o),t.consume(f),t.exit(o),a=f===40?41:f,s):n(f)};function s(f){return f===a?(t.enter(o),t.consume(f),t.exit(o),t.exit(r),e):(t.enter(i),l(f))}function l(f){return f===a?(t.exit(i),s(a)):f===null?n(f):ve(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),qe(t,l,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===a||f===null||ve(f)?(t.exit("chunkString"),l(f)):(t.consume(f),f===92?u:c)}function u(f){return f===a||f===92?(t.consume(f),c):c(f)}}function Ra(t,e){let n;return function r(o){return ve(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),n=!0,r):Le(o)?qe(t,r,n?"linePrefix":"lineSuffix")(o):e(o)}}const tC={name:"definition",tokenize:function(t,e,n){const r=this;let o;return function(f){return t.enter("definition"),(function(p){return rb.call(r,t,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)})(f)};function i(f){return o=ti(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(t.enter("definitionMarker"),t.consume(f),t.exit("definitionMarker"),a):n(f)}function a(f){return Nt(f)?Ra(t,s)(f):s(f)}function s(f){return nb(t,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function l(f){return t.attempt(nC,c,c)(f)}function c(f){return Le(f)?qe(t,u,"whitespace")(f):u(f)}function u(f){return f===null||ve(f)?(t.exit("definition"),r.parser.defined.push(o),e(f)):n(f)}}},nC={partial:!0,tokenize:function(t,e,n){return function(a){return Nt(a)?Ra(t,r)(a):n(a)};function r(a){return ob(t,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return Le(a)?qe(t,i,"whitespace")(a):i(a)}function i(a){return a===null||ve(a)?e(a):n(a)}}},rC={name:"hardBreakEscape",tokenize:function(t,e,n){return function(o){return t.enter("hardBreakEscape"),t.consume(o),r};function r(o){return ve(o)?(t.exit("hardBreakEscape"),e(o)):n(o)}}},oC={name:"headingAtx",resolve:function(t,e){let n,r,o=t.length-2,i=3;return t[i][1].type==="whitespace"&&(i+=2),o-2>i&&t[o][1].type==="whitespace"&&(o-=2),t[o][1].type==="atxHeadingSequence"&&(i===o-1||o-4>i&&t[o-2][1].type==="whitespace")&&(o-=i+1===o?2:4),o>i&&(n={type:"atxHeadingText",start:t[i][1].start,end:t[o][1].end},r={type:"chunkText",start:t[i][1].start,end:t[o][1].end,contentType:"text"},zn(t,i,o-i+1,[["enter",n,e],["enter",r,e],["exit",r,e],["exit",n,e]])),t},tokenize:function(t,e,n){let r=0;return function(l){return t.enter("atxHeading"),(function(c){return t.enter("atxHeadingSequence"),o(c)})(l)};function o(l){return l===35&&r++<6?(t.consume(l),o):l===null||Nt(l)?(t.exit("atxHeadingSequence"),i(l)):n(l)}function i(l){return l===35?(t.enter("atxHeadingSequence"),a(l)):l===null||ve(l)?(t.exit("atxHeading"),e(l)):Le(l)?qe(t,i,"whitespace")(l):(t.enter("atxHeadingText"),s(l))}function a(l){return l===35?(t.consume(l),a):(t.exit("atxHeadingSequence"),i(l))}function s(l){return l===null||l===35||Nt(l)?(t.exit("atxHeadingText"),i(l)):(t.consume(l),s)}}},iC=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ib=["pre","script","style","textarea"],aC={concrete:!0,name:"htmlFlow",resolveTo:function(t){let e=t.length;for(;e--&&(t[e][0]!=="enter"||t[e][1].type!=="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t},tokenize:function(t,e,n){const r=this;let o,i,a,s,l;return function(R){return(function(ce){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(ce),c})(R)};function c(R){return R===33?(t.consume(R),u):R===47?(t.consume(R),i=!0,m):R===63?(t.consume(R),o=3,r.interrupt?e:ee):Qn(R)?(t.consume(R),a=String.fromCharCode(R),v):n(R)}function u(R){return R===45?(t.consume(R),o=2,f):R===91?(t.consume(R),o=5,s=0,p):Qn(R)?(t.consume(R),o=4,r.interrupt?e:ee):n(R)}function f(R){return R===45?(t.consume(R),r.interrupt?e:ee):n(R)}function p(R){return R==="CDATA[".charCodeAt(s++)?(t.consume(R),s===6?r.interrupt?e:Q:p):n(R)}function m(R){return Qn(R)?(t.consume(R),a=String.fromCharCode(R),v):n(R)}function v(R){if(R===null||R===47||R===62||Nt(R)){const ce=R===47,ne=a.toLowerCase();return ce||i||!ib.includes(ne)?iC.includes(a.toLowerCase())?(o=6,ce?(t.consume(R),w):r.interrupt?e(R):Q(R)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?y(R):S(R)):(o=1,r.interrupt?e(R):Q(R))}return R===45||en(R)?(t.consume(R),a+=String.fromCharCode(R),v):n(R)}function w(R){return R===62?(t.consume(R),r.interrupt?e:Q):n(R)}function y(R){return Le(R)?(t.consume(R),y):H(R)}function S(R){return R===47?(t.consume(R),H):R===58||R===95||Qn(R)?(t.consume(R),T):Le(R)?(t.consume(R),S):H(R)}function T(R){return R===45||R===46||R===58||R===95||en(R)?(t.consume(R),T):P(R)}function P(R){return R===61?(t.consume(R),E):Le(R)?(t.consume(R),P):S(R)}function E(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(t.consume(R),l=R,O):Le(R)?(t.consume(R),E):M(R)}function O(R){return R===l?(t.consume(R),l=null,N):R===null||ve(R)?n(R):(t.consume(R),O)}function M(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Nt(R)?P(R):(t.consume(R),M)}function N(R){return R===47||R===62||Le(R)?S(R):n(R)}function H(R){return R===62?(t.consume(R),z):n(R)}function z(R){return R===null||ve(R)?Q(R):Le(R)?(t.consume(R),z):n(R)}function Q(R){return R===45&&o===2?(t.consume(R),X):R===60&&o===1?(t.consume(R),q):R===62&&o===4?(t.consume(R),F):R===63&&o===3?(t.consume(R),ee):R===93&&o===5?(t.consume(R),Z):!ve(R)||o!==6&&o!==7?R===null||ve(R)?(t.exit("htmlFlowData"),U(R)):(t.consume(R),Q):(t.exit("htmlFlowData"),t.check(sC,fe,U)(R))}function U(R){return t.check(lC,j,fe)(R)}function j(R){return t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),V}function V(R){return R===null||ve(R)?U(R):(t.enter("htmlFlowData"),Q(R))}function X(R){return R===45?(t.consume(R),ee):Q(R)}function q(R){return R===47?(t.consume(R),a="",te):Q(R)}function te(R){if(R===62){const ce=a.toLowerCase();return ib.includes(ce)?(t.consume(R),F):Q(R)}return Qn(R)&&a.length<8?(t.consume(R),a+=String.fromCharCode(R),te):Q(R)}function Z(R){return R===93?(t.consume(R),ee):Q(R)}function ee(R){return R===62?(t.consume(R),F):R===45&&o===2?(t.consume(R),ee):Q(R)}function F(R){return R===null||ve(R)?(t.exit("htmlFlowData"),fe(R)):(t.consume(R),F)}function fe(R){return t.exit("htmlFlow"),e(R)}}},sC={partial:!0,tokenize:function(t,e,n){return function(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),t.attempt(Jl,e,n)}}},lC={partial:!0,tokenize:function(t,e,n){const r=this;return function(i){return ve(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),o):n(i)};function o(i){return r.parser.lazy[r.now().line]?n(i):e(i)}}},cC={name:"htmlText",tokenize:function(t,e,n){const r=this;let o,i,a;return function(F){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(F),s};function s(F){return F===33?(t.consume(F),l):F===47?(t.consume(F),E):F===63?(t.consume(F),T):Qn(F)?(t.consume(F),N):n(F)}function l(F){return F===45?(t.consume(F),c):F===91?(t.consume(F),i=0,m):Qn(F)?(t.consume(F),S):n(F)}function c(F){return F===45?(t.consume(F),p):n(F)}function u(F){return F===null?n(F):F===45?(t.consume(F),f):ve(F)?(a=u,te(F)):(t.consume(F),u)}function f(F){return F===45?(t.consume(F),p):u(F)}function p(F){return F===62?q(F):F===45?f(F):u(F)}function m(F){return F==="CDATA[".charCodeAt(i++)?(t.consume(F),i===6?v:m):n(F)}function v(F){return F===null?n(F):F===93?(t.consume(F),w):ve(F)?(a=v,te(F)):(t.consume(F),v)}function w(F){return F===93?(t.consume(F),y):v(F)}function y(F){return F===62?q(F):F===93?(t.consume(F),y):v(F)}function S(F){return F===null||F===62?q(F):ve(F)?(a=S,te(F)):(t.consume(F),S)}function T(F){return F===null?n(F):F===63?(t.consume(F),P):ve(F)?(a=T,te(F)):(t.consume(F),T)}function P(F){return F===62?q(F):T(F)}function E(F){return Qn(F)?(t.consume(F),O):n(F)}function O(F){return F===45||en(F)?(t.consume(F),O):M(F)}function M(F){return ve(F)?(a=M,te(F)):Le(F)?(t.consume(F),M):q(F)}function N(F){return F===45||en(F)?(t.consume(F),N):F===47||F===62||Nt(F)?H(F):n(F)}function H(F){return F===47?(t.consume(F),q):F===58||F===95||Qn(F)?(t.consume(F),z):ve(F)?(a=H,te(F)):Le(F)?(t.consume(F),H):q(F)}function z(F){return F===45||F===46||F===58||F===95||en(F)?(t.consume(F),z):Q(F)}function Q(F){return F===61?(t.consume(F),U):ve(F)?(a=Q,te(F)):Le(F)?(t.consume(F),Q):H(F)}function U(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(t.consume(F),o=F,j):ve(F)?(a=U,te(F)):Le(F)?(t.consume(F),U):(t.consume(F),V)}function j(F){return F===o?(t.consume(F),o=void 0,X):F===null?n(F):ve(F)?(a=j,te(F)):(t.consume(F),j)}function V(F){return F===null||F===34||F===39||F===60||F===61||F===96?n(F):F===47||F===62||Nt(F)?H(F):(t.consume(F),V)}function X(F){return F===47||F===62||Nt(F)?H(F):n(F)}function q(F){return F===62?(t.consume(F),t.exit("htmlTextData"),t.exit("htmlText"),e):n(F)}function te(F){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(F),t.exit("lineEnding"),Z}function Z(F){return Le(F)?qe(t,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):ee(F)}function ee(F){return t.enter("htmlTextData"),a(F)}}},vf={name:"labelEnd",resolveAll:function(t){let e=-1;const n=[];for(;++e<t.length;){const r=t[e][1];if(n.push(t[e]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",e+=o}}return t.length!==n.length&&zn(t,0,t.length,n),t},resolveTo:function(t,e){let n,r,o,i,a=t.length,s=0;for(;a--;)if(n=t[a][1],r){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;t[a][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(o){if(t[a][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(r=a,n.type!=="labelLink")){s=2;break}}else n.type==="labelEnd"&&(o=a);const l={type:t[r][1].type==="labelLink"?"link":"image",start:{...t[r][1].start},end:{...t[t.length-1][1].end}},c={type:"label",start:{...t[r][1].start},end:{...t[o][1].end}},u={type:"labelText",start:{...t[r+s+2][1].end},end:{...t[o-2][1].start}};return i=[["enter",l,e],["enter",c,e]],i=hn(i,t.slice(r+1,r+s+3)),i=hn(i,[["enter",u,e]]),i=hn(i,gf(e.parser.constructs.insideSpan.null,t.slice(r+s+4,o-3),e)),i=hn(i,[["exit",u,e],t[o-2],t[o-1],["exit",c,e]]),i=hn(i,t.slice(o+1)),i=hn(i,[["exit",l,e]]),zn(t,r,t.length,i),t},tokenize:function(t,e,n){const r=this;let o,i,a=r.events.length;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(f){return o?o._inactive?u(f):(i=r.parser.defined.includes(ti(r.sliceSerialize({start:o.end,end:r.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelEnd"),s):n(f)};function s(f){return f===40?t.attempt(uC,c,i?c:u)(f):f===91?t.attempt(dC,c,i?l:u)(f):i?c(f):u(f)}function l(f){return t.attempt(fC,c,u)(f)}function c(f){return e(f)}function u(f){return o._balanced=!0,n(f)}}},uC={tokenize:function(t,e,n){return function(u){return t.enter("resource"),t.enter("resourceMarker"),t.consume(u),t.exit("resourceMarker"),r};function r(u){return Nt(u)?Ra(t,o)(u):o(u)}function o(u){return u===41?c(u):nb(t,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function i(u){return Nt(u)?Ra(t,s)(u):c(u)}function a(u){return n(u)}function s(u){return u===34||u===39||u===40?ob(t,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):c(u)}function l(u){return Nt(u)?Ra(t,c)(u):c(u)}function c(u){return u===41?(t.enter("resourceMarker"),t.consume(u),t.exit("resourceMarker"),t.exit("resource"),e):n(u)}}},dC={tokenize:function(t,e,n){const r=this;return function(a){return rb.call(r,t,o,i,"reference","referenceMarker","referenceString")(a)};function o(a){return r.parser.defined.includes(ti(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?e(a):n(a)}function i(a){return n(a)}}},fC={tokenize:function(t,e,n){return function(o){return t.enter("reference"),t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),r};function r(o){return o===93?(t.enter("referenceMarker"),t.consume(o),t.exit("referenceMarker"),t.exit("reference"),e):n(o)}}},hC={name:"labelStartImage",resolveAll:vf.resolveAll,tokenize:function(t,e,n){const r=this;return function(a){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(a),t.exit("labelImageMarker"),o};function o(a){return a===91?(t.enter("labelMarker"),t.consume(a),t.exit("labelMarker"),t.exit("labelImage"),i):n(a)}function i(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):e(a)}}},pC={name:"labelStartLink",resolveAll:vf.resolveAll,tokenize:function(t,e,n){const r=this;return function(i){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(i),t.exit("labelMarker"),t.exit("labelLink"),o};function o(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):e(i)}}},yf={name:"lineEnding",tokenize:function(t,e){return function(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),qe(t,e,"linePrefix")}}},Zl={name:"thematicBreak",tokenize:function(t,e,n){let r,o=0;return function(s){return t.enter("thematicBreak"),(function(l){return r=l,i(l)})(s)};function i(s){return s===r?(t.enter("thematicBreakSequence"),a(s)):o>=3&&(s===null||ve(s))?(t.exit("thematicBreak"),e(s)):n(s)}function a(s){return s===r?(t.consume(s),o++,a):(t.exit("thematicBreakSequence"),Le(s)?qe(t,i,"whitespace")(s):i(s))}}},zt={continuation:{tokenize:function(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(Jl,function(i){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,qe(t,e,"listItemIndent",r.containerState.size+1)(i)},function(i){return r.containerState.furtherBlankLines||!Le(i)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(i)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(gC,e,o)(i))});function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,qe(t,t.attempt(zt,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(t){t.exit(this.containerState.type)},name:"list",tokenize:function(t,e,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Af(p)){if(r.containerState.type||(r.containerState.type=m,t.enter(m,{_container:!0})),m==="listUnordered")return t.enter("listItemPrefix"),p===42||p===45?t.check(Zl,n,l)(p):l(p);if(!r.interrupt||p===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),s(p)}return n(p)};function s(p){return Af(p)&&++a<10?(t.consume(p),s):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(t.exit("listItemValue"),l(p)):n(p)}function l(p){return t.enter("listItemMarker"),t.consume(p),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,t.check(Jl,r.interrupt?n:c,t.attempt(AC,f,u))}function c(p){return r.containerState.initialBlankLine=!0,i++,f(p)}function u(p){return Le(p)?(t.enter("listItemPrefixWhitespace"),t.consume(p),t.exit("listItemPrefixWhitespace"),f):n(p)}function f(p){return r.containerState.size=i+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(p)}}},AC={partial:!0,tokenize:function(t,e,n){const r=this;return qe(t,function(o){const i=r.events[r.events.length-1];return!Le(o)&&i&&i[1].type==="listItemPrefixWhitespace"?e(o):n(o)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},gC={partial:!0,tokenize:function(t,e,n){const r=this;return qe(t,function(o){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?e(o):n(o)},"listItemIndent",r.containerState.size+1)}},ab={name:"setextUnderline",resolveTo:function(t,e){let n,r,o,i=t.length;for(;i--;)if(t[i][0]==="enter"){if(t[i][1].type==="content"){n=i;break}t[i][1].type==="paragraph"&&(r=i)}else t[i][1].type==="content"&&t.splice(i,1),!o&&t[i][1].type==="definition"&&(o=i);const a={type:"setextHeading",start:{...t[r][1].start},end:{...t[t.length-1][1].end}};return t[r][1].type="setextHeadingText",o?(t.splice(r,0,["enter",a,e]),t.splice(o+1,0,["exit",t[n][1],e]),t[n][1].end={...t[o][1].end}):t[n][1]=a,t.push(["exit",a,e]),t},tokenize:function(t,e,n){const r=this;let o;return function(s){let l,c=r.events.length;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){l=r.events[c][1].type==="paragraph";break}return r.parser.lazy[r.now().line]||!r.interrupt&&!l?n(s):(t.enter("setextHeadingLine"),o=s,(function(u){return t.enter("setextHeadingLineSequence"),i(u)})(s))};function i(s){return s===o?(t.consume(s),i):(t.exit("setextHeadingLineSequence"),Le(s)?qe(t,a,"lineSuffix")(s):a(s))}function a(s){return s===null||ve(s)?(t.exit("setextHeadingLine"),e(s)):n(s)}}},mC={tokenize:function(t){const e=this,n=t.attempt(Jl,function(o){return o===null?void t.consume(o):(t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n)},t.attempt(this.parser.constructs.flowInitial,r,qe(t,t.attempt(this.parser.constructs.flow,r,t.attempt($S,r)),"linePrefix")));return n;function r(o){if(o!==null)return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e.currentConstruct=void 0,n;t.consume(o)}}},bC={resolveAll:lb()},vC=sb("string"),yC=sb("text");function sb(t){return{resolveAll:lb(t==="text"?wC:void 0),tokenize:function(e){const n=this,r=this.parser.constructs[t],o=e.attempt(r,i,a);return i;function i(c){return l(c)?o(c):a(c)}function a(c){if(c!==null)return e.enter("data"),e.consume(c),s;e.consume(c)}function s(c){return l(c)?(e.exit("data"),o(c)):(e.consume(c),s)}function l(c){if(c===null)return!0;const u=r[c];let f=-1;if(u)for(;++f<u.length;){const p=u[f];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}}function lb(t){return function(e,n){let r,o=-1;for(;++o<=e.length;)r===void 0?e[o]&&e[o][1].type==="data"&&(r=o,o++):(!e[o]||e[o][1].type!=="data")&&(o!==r+2&&(e[r][1].end=e[o-1][1].end,e.splice(r+2,o-r-2),o=r+2),r=void 0);return t?t(e,n):e}}function wC(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const r=t[n-1][1],o=e.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const c=o[a];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(c===-2)i=!0,l++;else if(c!==-1){a++;break}}if(l){const c={type:n===t.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(t.splice(n,0,["enter",c,e],["exit",c,e]),n+=2)}n++}return t}const xC={42:zt,43:zt,45:zt,48:zt,49:zt,50:zt,51:zt,52:zt,53:zt,54:zt,55:zt,56:zt,57:zt,62:Gm},kC={91:tC},SC={[-2]:bf,[-1]:bf,32:bf},CC={35:oC,42:Zl,45:[ab,Zl],60:aC,61:ab,95:Zl,96:eb,126:eb},EC={38:Zm,92:Jm},PC={[-5]:yf,[-4]:yf,[-3]:yf,33:hC,38:Zm,42:mf,60:[KS,cC],91:pC,92:[rC,Jm],93:vf,95:mf,96:GS},DC={null:[mf,bC]},TC=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:kC,disable:{null:[]},document:xC,flow:CC,flowInitial:SC,insideSpan:DC,string:EC,text:PC},Symbol.toStringTag,{value:"Module"}));function BC(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],s=[];const l={attempt:w(function(T,P){y(T,P.from)}),check:w(v),consume:function(T){ve(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,S()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=T},enter:function(T,P){const E=P||{};return E.type=T,E.start=p(),c.events.push(["enter",E,c]),s.push(E),E},exit:function(T){const P=s.pop();return P.end=p(),c.events.push(["exit",P,c]),P},interrupt:w(v,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(T){o[T.line]=T.column,S()},events:[],now:p,parser:t,previous:null,sliceSerialize:function(T,P){return(function(E,O){let M=-1;const N=[];let H;for(;++M<E.length;){const z=E[M];let Q;if(typeof z=="string")Q=z;else switch(z){case-5:Q="\r";break;case-4:Q=`
|
|
80
|
+
`;break;case-3:Q=`\r
|
|
81
|
+
`;break;case-2:Q=O?" ":" ";break;case-1:if(!O&&H)continue;Q=" ";break;default:Q=String.fromCharCode(z)}H=z===-2,N.push(Q)}return N.join("")})(f(T),P)},sliceStream:f,write:function(T){return a=hn(a,T),(function(){let P;for(;r._index<a.length;){const E=a[r._index];if(typeof E=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<E.length;)m(E.charCodeAt(r._bufferIndex));else m(E)}})(),a[a.length-1]!==null?[]:(y(e,0),c.events=gf(i,c.events,c),c.events)}};let u=e.tokenize.call(c,l);return e.resolveAll&&i.push(e),c;function f(T){return(function(P,E){const O=E.start._index,M=E.start._bufferIndex,N=E.end._index,H=E.end._bufferIndex;let z;if(O===N)z=[P[O].slice(M,H)];else{if(z=P.slice(O,N),M>-1){const Q=z[0];typeof Q=="string"?z[0]=Q.slice(M):z.shift()}H>0&&z.push(P[N].slice(0,H))}return z})(a,T)}function p(){const{_bufferIndex:T,_index:P,line:E,column:O,offset:M}=r;return{_bufferIndex:T,_index:P,line:E,column:O,offset:M}}function m(T){u=u(T)}function v(T,P){P.restore()}function w(T,P){return function(E,O,M){let N,H,z,Q;return Array.isArray(E)?U(E):"tokenize"in E?U([E]):(function(q){return te;function te(Z){const ee=Z!==null&&q[Z],F=Z!==null&&q.null;return U([...Array.isArray(ee)?ee:ee?[ee]:[],...Array.isArray(F)?F:F?[F]:[]])(Z)}})(E);function U(q){return N=q,H=0,q.length===0?M:j(q[H])}function j(q){return function(te){return Q=(function(){const Z=p(),ee=c.previous,F=c.currentConstruct,fe=c.events.length,R=Array.from(s);return{from:fe,restore:ce};function ce(){r=Z,c.previous=ee,c.currentConstruct=F,c.events.length=fe,s=R,S()}})(),z=q,q.partial||(c.currentConstruct=q),q.name&&c.parser.constructs.disable.null.includes(q.name)?X():q.tokenize.call(P?Object.assign(Object.create(c),P):c,l,V,X)(te)}}function V(q){return T(z,Q),O}function X(q){return Q.restore(),++H<N.length?j(N[H]):M}}}function y(T,P){T.resolveAll&&!i.includes(T)&&i.push(T),T.resolve&&zn(c.events,P,c.events.length-P,T.resolve(c.events.slice(P),c)),T.resolveTo&&(c.events=T.resolveTo(c.events,c))}function S(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const cb=/[\0\t\n\r]/g,IC=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function MC(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),o=r===120||r===88;return Ym(n.slice(o?2:1),o?16:10)}return hf(n)||t}const ub={}.hasOwnProperty;function OC(t,e,n){return typeof e!="string"&&(n=e,e=void 0),(function(r){const o={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Wt),autolinkProtocol:j,autolinkEmail:j,atxHeading:l(_e),blockQuote:l(Ke),characterEscape:j,characterReference:j,codeFenced:l(ut),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:l(ut,c),codeText:l(wt,c),codeTextData:j,data:j,codeFlowValue:j,definition:l(rt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:l(dt),hardBreakEscape:l(ot),hardBreakTrailing:l(ot),htmlFlow:l(Pe,c),htmlFlowData:j,htmlText:l(Pe,c),htmlTextData:j,image:l(xt),label:c,link:l(Wt),listItem:l(Vt),listItemValue:w,listOrdered:l(gt,v),listUnordered:l(gt),paragraph:l(Pt),reference:ae,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:l(_e),strong:l(Mt),thematicBreak:l(He)},exit:{atxHeading:f(),atxHeadingSequence:H,autolink:f(),autolinkEmail:Et,autolinkProtocol:Je,blockQuote:f(),characterEscapeValue:V,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:ke,characterReference:Be,codeFenced:f(P),codeFencedFence:T,codeFencedFenceInfo:y,codeFencedFenceMeta:S,codeFlowValue:V,codeIndented:f(E),codeText:f(ee),codeTextData:V,data:V,definition:f(),definitionDestinationString:N,definitionLabelString:O,definitionTitleString:M,emphasis:f(),hardBreakEscape:f(q),hardBreakTrailing:f(q),htmlFlow:f(te),htmlFlowData:V,htmlText:f(Z),htmlTextData:V,image:f(fe),label:ce,labelText:R,lineEnding:X,link:f(F),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:Ae,resourceDestinationString:ne,resourceTitleString:$,resource:ie,setextHeading:f(U),setextHeadingLineSequence:Q,setextHeadingText:z,strong:f(),thematicBreak:f()}};db(o,(r||{}).mdastExtensions||[]);const i={};return a;function a(G){let ue={type:"root",children:[]};const pe={stack:[ue],tokenStack:[],config:o,enter:u,exit:p,buffer:c,resume:m,data:i},we=[];let xe=-1;for(;++xe<G.length;)(G[xe][1].type==="listOrdered"||G[xe][1].type==="listUnordered")&&(G[xe][0]==="enter"?we.push(xe):xe=s(G,we.pop(),xe));for(xe=-1;++xe<G.length;){const Y=o[G[xe][0]];ub.call(Y,G[xe][1].type)&&Y[G[xe][1].type].call(Object.assign({sliceSerialize:G[xe][2].sliceSerialize},pe),G[xe][1])}if(pe.tokenStack.length>0){const Y=pe.tokenStack[pe.tokenStack.length-1];(Y[1]||fb).call(pe,void 0,Y[0])}for(ue.position={start:Ir(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:Ir(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},xe=-1;++xe<o.transforms.length;)ue=o.transforms[xe](ue)||ue;return ue}function s(G,ue,pe){let we,xe,Y,se,he=ue-1,De=-1,Ee=!1;for(;++he<=pe;){const Ie=G[he];switch(Ie[1].type){case"listUnordered":case"listOrdered":case"blockQuote":Ie[0]==="enter"?De++:De--,se=void 0;break;case"lineEndingBlank":Ie[0]==="enter"&&(we&&!se&&!De&&!Y&&(Y=he),se=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:se=void 0}if(!De&&Ie[0]==="enter"&&Ie[1].type==="listItemPrefix"||De===-1&&Ie[0]==="exit"&&(Ie[1].type==="listUnordered"||Ie[1].type==="listOrdered")){if(we){let Ue=he;for(xe=void 0;Ue--;){const it=G[Ue];if(it[1].type==="lineEnding"||it[1].type==="lineEndingBlank"){if(it[0]==="exit")continue;xe&&(G[xe][1].type="lineEndingBlank",Ee=!0),it[1].type="lineEnding",xe=Ue}else if(it[1].type!=="linePrefix"&&it[1].type!=="blockQuotePrefix"&&it[1].type!=="blockQuotePrefixWhitespace"&&it[1].type!=="blockQuoteMarker"&&it[1].type!=="listItemIndent")break}Y&&(!xe||Y<xe)&&(we._spread=!0),we.end=Object.assign({},xe?G[xe][1].start:Ie[1].end),G.splice(xe||he,0,["exit",we,Ie[2]]),he++,pe++}if(Ie[1].type==="listItemPrefix"){const Ue={type:"listItem",_spread:!1,start:Object.assign({},Ie[1].start),end:void 0};we=Ue,G.splice(he,0,["enter",Ue,Ie[2]]),he++,pe++,Y=void 0,se=!0}}}return G[ue][1]._spread=Ee,pe}function l(G,ue){return pe;function pe(we){u.call(this,G(we),we),ue&&ue.call(this,we)}}function c(){this.stack.push({type:"fragment",children:[]})}function u(G,ue,pe){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([ue,pe||void 0]),G.position={start:Ir(ue.start),end:void 0}}function f(G){return ue;function ue(pe){G&&G.call(this,pe),p.call(this,pe)}}function p(G,ue){const pe=this.stack.pop(),we=this.tokenStack.pop();if(!we)throw new Error("Cannot close `"+G.type+"` ("+Oa({start:G.start,end:G.end})+"): it’s not open");we[0].type!==G.type&&(ue?ue.call(this,G,we[0]):(we[1]||fb).call(this,G,we[0])),pe.position.end=Ir(G.end)}function m(){return(function(G){return Um(G,typeof Gl.includeImageAlt!="boolean"||Gl.includeImageAlt,typeof Gl.includeHtml!="boolean"||Gl.includeHtml)})(this.stack.pop())}function v(){this.data.expectingFirstListItemValue=!0}function w(G){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0)}function y(){const G=this.resume();this.stack[this.stack.length-1].lang=G}function S(){const G=this.resume();this.stack[this.stack.length-1].meta=G}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function P(){const G=this.resume();this.stack[this.stack.length-1].value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const G=this.resume();this.stack[this.stack.length-1].value=G.replace(/(\r?\n|\r)$/g,"")}function O(G){const ue=this.resume(),pe=this.stack[this.stack.length-1];pe.label=ue,pe.identifier=ti(this.sliceSerialize(G)).toLowerCase()}function M(){const G=this.resume();this.stack[this.stack.length-1].title=G}function N(){const G=this.resume();this.stack[this.stack.length-1].url=G}function H(G){const ue=this.stack[this.stack.length-1];if(!ue.depth){const pe=this.sliceSerialize(G).length;ue.depth=pe}}function z(){this.data.setextHeadingSlurpLineEnding=!0}function Q(G){this.stack[this.stack.length-1].depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function j(G){const ue=this.stack[this.stack.length-1].children;let pe=ue[ue.length-1];(!pe||pe.type!=="text")&&(pe=Ot(),pe.position={start:Ir(G.start),end:void 0},ue.push(pe)),this.stack.push(pe)}function V(G){const ue=this.stack.pop();ue.value+=this.sliceSerialize(G),ue.position.end=Ir(G.end)}function X(G){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak)return ue.children[ue.children.length-1].position.end=Ir(G.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&o.canContainEols.includes(ue.type)&&(j.call(this,G),V.call(this,G))}function q(){this.data.atHardBreak=!0}function te(){const G=this.resume();this.stack[this.stack.length-1].value=G}function Z(){const G=this.resume();this.stack[this.stack.length-1].value=G}function ee(){const G=this.resume();this.stack[this.stack.length-1].value=G}function F(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ue,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function fe(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=ue,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function R(G){const ue=this.sliceSerialize(G),pe=this.stack[this.stack.length-2];pe.label=(function(we){return we.replace(IC,MC)})(ue),pe.identifier=ti(ue).toLowerCase()}function ce(){const G=this.stack[this.stack.length-1],ue=this.resume(),pe=this.stack[this.stack.length-1];if(this.data.inReference=!0,pe.type==="link"){const we=G.children;pe.children=we}else pe.alt=ue}function ne(){const G=this.resume();this.stack[this.stack.length-1].url=G}function $(){const G=this.resume();this.stack[this.stack.length-1].title=G}function ie(){this.data.inReference=void 0}function ae(){this.data.referenceType="collapsed"}function Ae(G){const ue=this.resume(),pe=this.stack[this.stack.length-1];pe.label=ue,pe.identifier=ti(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function ye(G){this.data.characterReferenceType=G.type}function ke(G){const ue=this.sliceSerialize(G),pe=this.data.characterReferenceType;let we;pe?(we=Ym(ue,pe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=hf(ue),this.stack[this.stack.length-1].value+=we}function Be(G){this.stack.pop().position.end=Ir(G.end)}function Je(G){V.call(this,G),this.stack[this.stack.length-1].url=this.sliceSerialize(G)}function Et(G){V.call(this,G),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(G)}function Ke(){return{type:"blockquote",children:[]}}function ut(){return{type:"code",lang:null,meta:null,value:""}}function wt(){return{type:"inlineCode",value:""}}function rt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function dt(){return{type:"emphasis",children:[]}}function _e(){return{type:"heading",depth:0,children:[]}}function ot(){return{type:"break"}}function Pe(){return{type:"html",value:""}}function xt(){return{type:"image",title:null,url:"",alt:null}}function Wt(){return{type:"link",title:null,url:"",children:[]}}function gt(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function Vt(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function Pt(){return{type:"paragraph",children:[]}}function Mt(){return{type:"strong",children:[]}}function Ot(){return{type:"text",value:""}}function He(){return{type:"thematicBreak"}}})(n)((function(r){for(;!tb(r););return r})((function(r){const o={constructs:NS([TC,...(r||{}).extensions||[]]),content:i(YS),defined:[],document:i(qS),flow:i(mC),lazy:{},string:i(vC),text:i(yC)};return o;function i(a){return function(s){return BC(o,a,s)}}})(n).document().write((function(){let r,o=1,i="",a=!0;return function(s,l,c){const u=[];let f,p,m,v,w;for(s=i+(typeof s=="string"?s.toString():new TextDecoder(l||void 0).decode(s)),m=0,i="",a&&(s.charCodeAt(0)===65279&&m++,a=void 0);m<s.length;){if(cb.lastIndex=m,f=cb.exec(s),v=f&&f.index!==void 0?f.index:s.length,w=s.charCodeAt(v),!f){i=s.slice(m);break}if(w===10&&m===v&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),m<v&&(u.push(s.slice(m,v)),o+=v-m),w){case 0:u.push(65533),o++;break;case 9:for(p=4*Math.ceil(o/4),u.push(-2);o++<p;)u.push(-1);break;case 10:u.push(-4),o=1;break;default:r=!0,o=1}m=v+1}return c&&(r&&u.push(-5),i&&u.push(i),u.push(null)),u}})()(t,e,!0))))}function Ir(t){return{line:t.line,column:t.column,offset:t.offset}}function db(t,e){let n=-1;for(;++n<e.length;){const r=e[n];Array.isArray(r)?db(t,r):_C(t,r)}}function _C(t,e){let n;for(n in e)if(ub.call(e,n))switch(n){case"canContainEols":{const r=e[n];r&&t[n].push(...r);break}case"transforms":{const r=e[n];r&&t[n].push(...r);break}case"enter":case"exit":{const r=e[n];r&&Object.assign(t[n],r);break}}}function fb(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Oa({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Oa({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Oa({start:e.start,end:e.end})+") is still open")}function FC(t){const e=this;e.parser=function(n){return OC(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function hb(t,e){const n=e.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];const o=t.all(e),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&a.type==="text"?a.value+=r:o.push({type:"text",value:r}),o}function pb(t){return t.spread??t.children.length>1}function RC(t){const e=String(t),n=/\r?\n|\r/g;let r=n.exec(e),o=0;const i=[];for(;r;)i.push(Ab(e.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(e);return i.push(Ab(e.slice(o),o>0,!1)),i.join("")}function Ab(t,e,n){let r=0,o=t.length;if(e){let i=t.codePointAt(r);for(;i===9||i===32;)r++,i=t.codePointAt(r)}if(n){let i=t.codePointAt(o-1);for(;i===9||i===32;)o--,i=t.codePointAt(o-1)}return o>r?t.slice(r,o):""}const LC={blockquote:function(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)},break:function(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
|
|
82
|
+
`}]},code:function(t,e){const n=e.value?e.value+`
|
|
83
|
+
`:"",r={};e.lang&&(r.className=["language-"+e.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return e.meta&&(o.data={meta:e.meta}),t.patch(e,o),o=t.applyData(e,o),o={type:"element",tagName:"pre",properties:{},children:[o]},t.patch(e,o),o},delete:function(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},emphasis:function(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},footnoteReference:function(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),o=ni(r.toLowerCase()),i=t.footnoteOrder.indexOf(r);let a,s=t.footnoteCounts.get(r);s===void 0?(s=0,t.footnoteOrder.push(r),a=t.footnoteOrder.length):a=i+1,s+=1,t.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};t.patch(e,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,c),t.applyData(e,c)},heading:function(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},html:function(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}},imageReference:function(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return hb(t,e);const o={src:ni(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return t.patch(e,i),t.applyData(e,i)},image:function(t,e){const n={src:ni(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,r),t.applyData(e,r)},inlineCode:function(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,r),t.applyData(e,r)},linkReference:function(t,e){const n=String(e.identifier).toUpperCase(),r=t.definitionById.get(n);if(!r)return hb(t,e);const o={href:ni(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:t.all(e)};return t.patch(e,i),t.applyData(e,i)},link:function(t,e){const n={href:ni(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const r={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,r),t.applyData(e,r)},listItem:function(t,e,n){const r=t.all(e),o=n?(function(u){let f=!1;if(u.type==="list"){f=u.spread||!1;const p=u.children;let m=-1;for(;!f&&++m<p.length;)f=pb(p[m])}return f})(n):pb(e),i={},a=[];if(typeof e.checked=="boolean"){const u=r[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const u=r[s];(o||s!==0||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
|
|
84
|
+
`}),u.type!=="element"||u.tagName!=="p"||o?a.push(u):a.push(...u.children)}const l=r[r.length-1];l&&(o||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
|
|
85
|
+
`});const c={type:"element",tagName:"li",properties:i,children:a};return t.patch(e,c),t.applyData(e,c)},list:function(t,e){const n={},r=t.all(e);let o=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++o<r.length;){const a=r[o];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(r,!0)};return t.patch(e,i),t.applyData(e,i)},paragraph:function(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},root:function(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)},strong:function(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},table:function(t,e){const n=t.all(e),r=n.shift(),o=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:t.wrap([r],!0)};t.patch(e.children[0],a),o.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},s=sf(e.children[1]),l=_m(e.children[e.children.length-1]);s&&l&&(a.position={start:s,end:l}),o.push(a)}const i={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(e,i),t.applyData(e,i)},tableCell:function(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)},tableRow:function(t,e,n){const r=n?n.children:void 0,o=(r?r.indexOf(e):1)===0?"th":"td",i=n&&n.type==="table"?n.align:void 0,a=i?i.length:e.children.length;let s=-1;const l=[];for(;++s<a;){const u=e.children[s],f={},p=i?i[s]:void 0;p&&(f.align=p);let m={type:"element",tagName:o,properties:f,children:[]};u&&(m.children=t.all(u),t.patch(u,m),m=t.applyData(u,m)),l.push(m)}const c={type:"element",tagName:"tr",properties:{},children:t.wrap(l,!0)};return t.patch(e,c),t.applyData(e,c)},text:function(t,e){const n={type:"text",value:RC(String(e.value))};return t.patch(e,n),t.applyData(e,n)},thematicBreak:function(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)},toml:$l,yaml:$l,definition:$l,footnoteDefinition:$l};function $l(){}const gb=typeof self=="object"?self:globalThis,mb=t=>((e,n)=>{const r=(i,a)=>(e.set(a,i),i),o=i=>{if(e.has(i))return e.get(i);const[a,s]=n[i];switch(a){case 0:case-1:return r(s,i);case 1:{const l=r([],i);for(const c of s)l.push(o(c));return l}case 2:{const l=r({},i);for(const[c,u]of s)l[o(c)]=o(u);return l}case 3:return r(new Date(s),i);case 4:{const{source:l,flags:c}=s;return r(new RegExp(l,c),i)}case 5:{const l=r(new Map,i);for(const[c,u]of s)l.set(o(c),o(u));return l}case 6:{const l=r(new Set,i);for(const c of s)l.add(o(c));return l}case 7:{const{name:l,message:c}=s;return r(new gb[l](c),i)}case 8:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:l}=new Uint8Array(s);return r(new DataView(l),s)}}return r(new gb[a](s),i)};return o})(new Map,t)(0),ri="",{toString:NC}={},{keys:zC}=Object,La=t=>{const e=typeof t;if(e!=="object"||!t)return[0,e];const n=NC.call(t).slice(8,-1);switch(n){case"Array":return[1,ri];case"Object":return[2,ri];case"Date":return[3,ri];case"RegExp":return[4,ri];case"Map":return[5,ri];case"Set":return[6,ri];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},ec=([t,e])=>t===0&&(e==="function"||e==="symbol"),bb=(t,{json:e,lossy:n}={})=>{const r=[];return((o,i,a,s)=>{const l=(u,f)=>{const p=s.push(u)-1;return a.set(f,p),p},c=u=>{if(a.has(u))return a.get(u);let[f,p]=La(u);switch(f){case 0:{let v=u;switch(p){case"bigint":f=8,v=u.toString();break;case"function":case"symbol":if(o)throw new TypeError("unable to serialize "+p);v=null;break;case"undefined":return l([-1],u)}return l([f,v],u)}case 1:{if(p){let y=u;return p==="DataView"?y=new Uint8Array(u.buffer):p==="ArrayBuffer"&&(y=new Uint8Array(u)),l([p,[...y]],u)}const v=[],w=l([f,v],u);for(const y of u)v.push(c(y));return w}case 2:{if(p)switch(p){case"BigInt":return l([p,u.toString()],u);case"Boolean":case"Number":case"String":return l([p,u.valueOf()],u)}if(i&&"toJSON"in u)return c(u.toJSON());const v=[],w=l([f,v],u);for(const y of zC(u))(o||!ec(La(u[y])))&&v.push([c(y),c(u[y])]);return w}case 3:return l([f,u.toISOString()],u);case 4:{const{source:v,flags:w}=u;return l([f,{source:v,flags:w}],u)}case 5:{const v=[],w=l([f,v],u);for(const[y,S]of u)(o||!ec(La(y))&&!ec(La(S)))&&v.push([c(y),c(S)]);return w}case 6:{const v=[],w=l([f,v],u);for(const y of u)(o||!ec(La(y)))&&v.push(c(y));return w}}const{message:m}=u;return l([f,{name:p,message:m}],u)};return c})(!(e||n),!!e,new Map,r)(t),r},tc=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?mb(bb(t,e)):structuredClone(t):(t,e)=>mb(bb(t,e));function QC(t,e){const n=[{type:"text",value:"↩"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function HC(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}const vb=function(t){if(t==null)return UC;if(typeof t=="function")return nc(t);if(typeof t=="object")return Array.isArray(t)?(function(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=vb(e[r]);return nc(o);function o(...i){let a=-1;for(;++a<n.length;)if(n[a].apply(this,i))return!0;return!1}})(t):(function(e){const n=e;return nc(r);function r(o){const i=o;let a;for(a in e)if(i[a]!==n[a])return!1;return!0}})(t);if(typeof t=="string")return(function(e){return nc(n);function n(r){return r&&r.type===e}})(t);throw new Error("Expected function, string, or object as test")};function nc(t){return function(e,n,r){return!(!(function(o){return o!==null&&typeof o=="object"&&"type"in o})(e)||!t.call(this,e,typeof n=="number"?n:void 0,r||void 0))}}function UC(){return!0}const yb=[],jC=!0,wb=!1;function WC(t,e,n,r){let o;typeof e=="function"&&typeof n!="function"?(r=n,n=e):o=e;const i=vb(o),a=r?-1:1;(function s(l,c,u){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const m=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+l.type+(m?"<"+m+">":"")+")"})}return p;function p(){let m,v,w,y=yb;if((!e||i(l,c,u[u.length-1]||void 0))&&(y=(function(S){return Array.isArray(S)?S:typeof S=="number"?[jC,S]:S==null?yb:[S]})(n(l,u)),y[0]===wb))return y;if("children"in l&&l.children){const S=l;if(S.children&&y[0]!=="skip")for(v=(r?S.children.length:-1)+a,w=u.concat(S);v>-1&&v<S.children.length;){const T=S.children[v];if(m=s(T,v,w)(),m[0]===wb)return m;v=typeof m[1]=="number"?m[1]:v+a}}return y}})(t,void 0,[])()}function xb(t,e,n,r){let o,i,a;typeof e=="function"?(i=void 0,a=e,o=n):(i=e,a=n,o=r),WC(t,i,function(s,l){const c=l[l.length-1],u=c?c.children.indexOf(s):void 0;return a(s,u,c)},o)}const wf={}.hasOwnProperty,VC={};function YC(t,e){const n=e||VC,r=new Map,o=new Map,i=new Map,a={...LC,...n.handlers},s={all:function(l){const c=[];if("children"in l){const u=l.children;let f=-1;for(;++f<u.length;){const p=s.one(u[f],l);if(p){if(f&&u[f-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=kb(p.value)),!Array.isArray(p)&&p.type==="element")){const m=p.children[0];m&&m.type==="text"&&(m.value=kb(m.value))}Array.isArray(p)?c.push(...p):c.push(p)}}}return c},applyData:KC,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(l,c){const u=l.type,f=s.handlers[u];if(wf.call(s.handlers,u)&&f)return f(s,l,c);if(s.options.passThrough&&s.options.passThrough.includes(u)){if("children"in l){const{children:p,...m}=l,v=tc(m);return v.children=s.all(l),v}return tc(l)}return(s.options.unknownHandler||XC)(s,l,c)},options:n,patch:qC,wrap:GC};return xb(t,function(l){if(l.type==="definition"||l.type==="footnoteDefinition"){const c=l.type==="definition"?r:o,u=String(l.identifier).toUpperCase();c.has(u)||c.set(u,l)}}),s}function qC(t,e){t.position&&(e.position=(function(n){const r=sf(n),o=_m(n);if(r&&o)return{start:r,end:o}})(t))}function KC(t,e){let n=e;if(t&&t.data){const r=t.data.hName,o=t.data.hChildren,i=t.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:"children"in n?n.children:[n]}),n.type==="element"&&i&&Object.assign(n.properties,tc(i)),"children"in n&&n.children&&o!=null&&(n.children=o)}return n}function XC(t,e){const n=e.data||{},r=!("value"in e)||wf.call(n,"hProperties")||wf.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:t.all(e)}:{type:"text",value:e.value};return t.patch(e,r),t.applyData(e,r)}function GC(t,e){const n=[];let r=-1;for(e&&n.push({type:"text",value:`
|
|
86
|
+
`});++r<t.length;)r&&n.push({type:"text",value:`
|
|
87
|
+
`}),n.push(t[r]);return e&&t.length>0&&n.push({type:"text",value:`
|
|
88
|
+
`}),n}function kb(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function Sb(t,e){const n=YC(t,e),r=n.one(t,void 0),o=(function(a){const s=typeof a.options.clobberPrefix=="string"?a.options.clobberPrefix:"user-content-",l=a.options.footnoteBackContent||QC,c=a.options.footnoteBackLabel||HC,u=a.options.footnoteLabel||"Footnotes",f=a.options.footnoteLabelTagName||"h2",p=a.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let v=-1;for(;++v<a.footnoteOrder.length;){const w=a.footnoteById.get(a.footnoteOrder[v]);if(!w)continue;const y=a.all(w),S=String(w.identifier).toUpperCase(),T=ni(S.toLowerCase());let P=0;const E=[],O=a.footnoteCounts.get(S);for(;O!==void 0&&++P<=O;){E.length>0&&E.push({type:"text",value:" "});let H=typeof l=="string"?l:l(v,P);typeof H=="string"&&(H={type:"text",value:H}),E.push({type:"element",tagName:"a",properties:{href:"#"+s+"fnref-"+T+(P>1?"-"+P:""),dataFootnoteBackref:"",ariaLabel:typeof c=="string"?c:c(v,P),className:["data-footnote-backref"]},children:Array.isArray(H)?H:[H]})}const M=y[y.length-1];if(M&&M.type==="element"&&M.tagName==="p"){const H=M.children[M.children.length-1];H&&H.type==="text"?H.value+=" ":M.children.push({type:"text",value:" "}),M.children.push(...E)}else y.push(...E);const N={type:"element",tagName:"li",properties:{id:s+"fn-"+T},children:a.wrap(y,!0)};a.patch(w,N),m.push(N)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:f,properties:{...tc(p),id:"footnote-label"},children:[{type:"text",value:u}]},{type:"text",value:`
|
|
89
|
+
`},{type:"element",tagName:"ol",properties:{},children:a.wrap(m,!0)},{type:"text",value:`
|
|
90
|
+
`}]}})(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:`
|
|
91
|
+
`},o),i}function JC(t,e){return t&&"run"in t?async function(n,r){const o=Sb(n,{file:r,...e});await t.run(o,r)}:function(n,r){return Sb(n,{file:r,...t||e})}}function Cb(t){if(t)throw t}var xf,Eb,ZC=(function(){if(Eb)return xf;Eb=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(l){return typeof Array.isArray=="function"?Array.isArray(l):e.call(l)==="[object Array]"},i=function(l){if(!l||e.call(l)!=="[object Object]")return!1;var c,u=t.call(l,"constructor"),f=l.constructor&&l.constructor.prototype&&t.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!u&&!f)return!1;for(c in l);return typeof c>"u"||t.call(l,c)},a=function(l,c){n&&c.name==="__proto__"?n(l,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):l[c.name]=c.newValue},s=function(l,c){if(c==="__proto__"){if(!t.call(l,c))return;if(r)return r(l,c).value}return l[c]};return xf=function l(){var c,u,f,p,m,v,w=arguments[0],y=1,S=arguments.length,T=!1;for(typeof w=="boolean"&&(T=w,w=arguments[1]||{},y=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});y<S;++y)if((c=arguments[y])!=null)for(u in c)f=s(w,u),w!==(p=s(c,u))&&(T&&p&&(i(p)||(m=o(p)))?(m?(m=!1,v=f&&o(f)?f:[]):v=f&&i(f)?f:{},a(w,{name:u,newValue:l(T,v,p)})):typeof p<"u"&&a(w,{name:u,newValue:p}));return w},xf})();const kf=Bm(ZC);function Sf(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return!(e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.toStringTag in t||Symbol.iterator in t)}function $C(){const t=[],e={run:function(...n){let r=-1;const o=n.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);(function i(a,...s){const l=t[++r];let c=-1;if(a)o(a);else{for(;++c<n.length;)(s[c]===null||s[c]===void 0)&&(s[c]=n[c]);n=s,l?(function(u,f){let p;return m;function m(...y){const S=u.length>y.length;let T;S&&y.push(v);try{T=u.apply(this,y)}catch(P){if(S&&p)throw P;return v(P)}S||(T&&T.then&&typeof T.then=="function"?T.then(w,v):T instanceof Error?v(T):w(T))}function v(y,...S){p||(p=!0,f(y,...S))}function w(y){v(null,y)}})(l,i)(...s):o(null,...s)}})(null,...n)},use:function(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return t.push(n),e}};return e}const Hn={basename:function(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Na(t);let n,r=0,o=-1,i=t.length;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":t.slice(r,o)}if(e===t)return"";let a=-1,s=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(t.codePointAt(i)===e.codePointAt(s--)?s<0&&(o=i):(s=-1,o=a));return r===o?o=a:o<0&&(o=t.length),t.slice(r,o)},dirname:function(t){if(Na(t),t.length===0)return".";let e,n=-1,r=t.length;for(;--r;)if(t.codePointAt(r)===47){if(e){n=r;break}}else e||(e=!0);return n<0?t.codePointAt(0)===47?"/":".":n===1&&t.codePointAt(0)===47?"//":t.slice(0,n)},extname:function(t){Na(t);let e,n=t.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=t.codePointAt(n);if(s!==47)r<0&&(e=!0,r=n+1),s===46?i<0?i=n:a!==1&&(a=1):i>-1&&(a=-1);else if(e){o=n+1;break}}return i<0||r<0||a===0||a===1&&i===r-1&&i===o+1?"":t.slice(i,r)},join:function(...t){let e,n=-1;for(;++n<t.length;)Na(t[n]),t[n]&&(e=e===void 0?t[n]:e+"/"+t[n]);return e===void 0?".":(function(r){Na(r);const o=r.codePointAt(0)===47;let i=(function(a,s){let l,c,u="",f=0,p=-1,m=0,v=-1;for(;++v<=a.length;){if(v<a.length)l=a.codePointAt(v);else{if(l===47)break;l=47}if(l===47){if(p!==v-1&&m!==1)if(p!==v-1&&m===2){if(u.length<2||f!==2||u.codePointAt(u.length-1)!==46||u.codePointAt(u.length-2)!==46){if(u.length>2){if(c=u.lastIndexOf("/"),c!==u.length-1){c<0?(u="",f=0):(u=u.slice(0,c),f=u.length-1-u.lastIndexOf("/")),p=v,m=0;continue}}else if(u.length>0){u="",f=0,p=v,m=0;continue}}s&&(u=u.length>0?u+"/..":"..",f=2)}else u.length>0?u+="/"+a.slice(p+1,v):u=a.slice(p+1,v),f=v-p-1;p=v,m=0}else l===46&&m>-1?m++:m=-1}return u})(r,!o);return i.length===0&&!o&&(i="."),i.length>0&&r.codePointAt(r.length-1)===47&&(i+="/"),o?"/"+i:i})(e)},sep:"/"};function Na(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const e2={cwd:function(){return"/"}};function Cf(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function t2(t){if(typeof t=="string")t=new URL(t);else if(!Cf(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){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 o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const o=n.codePointAt(r+2);if(o===70||o===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)})(t)}const Ef=["history","path","basename","stem","extname","dirname"];class Pb{constructor(e){let n;var r;n=e?Cf(e)?{path:e}:typeof e=="string"||(r=e)&&typeof r=="object"&&"byteLength"in r&&"byteOffset"in r?{value:e}:e:{},this.cwd="cwd"in n?"":e2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o,i=-1;for(;++i<Ef.length;){const a=Ef[i];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}for(o in n)Ef.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?Hn.basename(this.path):void 0}set basename(e){Df(e,"basename"),Pf(e,"basename"),this.path=Hn.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Hn.dirname(this.path):void 0}set dirname(e){Db(this.basename,"dirname"),this.path=Hn.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Hn.extname(this.path):void 0}set extname(e){if(Pf(e,"extname"),Db(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Hn.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Cf(e)&&(e=t2(e)),Df(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Hn.basename(this.path,this.extname):void 0}set stem(e){Df(e,"stem"),Pf(e,"stem"),this.path=Hn.join(this.dirname||"",e+(this.extname||""))}fail(e,n,r){const o=this.message(e,n,r);throw o.fatal=!0,o}info(e,n,r){const o=this.message(e,n,r);return o.fatal=void 0,o}message(e,n,r){const o=new kt(e,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function Pf(t,e){if(t&&t.includes(Hn.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Hn.sep+"`")}function Df(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function Db(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}const n2=function(t){const e=this.constructor.prototype,n=e[t],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,e),r},r2={}.hasOwnProperty;class Tf extends n2{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$C()}copy(){const e=new Tf;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];e.use(...r)}return e.data(kf(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(Mf("data",this.frozen),this.namespace[e]=n,this):r2.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Mf("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(e,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=rc(e),r=this.parser||this.Parser;return Bf("parse",r),r(String(n),n)}process(e,n){const r=this;return this.freeze(),Bf("process",this.parser||this.Parser),If("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,a){const s=rc(e),l=r.parse(s);function c(u,f){u||!f?a(u):i?i(f):n(void 0,f)}r.run(l,s,function(u,f,p){if(u||!f||!p)return c(u);const m=f,v=r.stringify(m,p);var w;typeof(w=v)=="string"||(function(y){return!!(y&&typeof y=="object"&&"byteLength"in y&&"byteOffset"in y)})(w)?p.value=v:p.result=v,c(u,p)})}}processSync(e){let n,r=!1;return this.freeze(),Bf("processSync",this.parser||this.Parser),If("processSync",this.compiler||this.Compiler),this.process(e,function(o,i){r=!0,Cb(o),n=i}),Bb("processSync","process",r),n}run(e,n,r){Tb(e),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(a,s){const l=rc(n);o.run(e,l,function(c,u,f){const p=u||e;c?s(c):a?a(p):r(void 0,p,f)})}}runSync(e,n){let r,o=!1;return this.run(e,n,function(i,a){Cb(i),r=a,o=!0}),Bb("runSync","run",o),r}stringify(e,n){this.freeze();const r=rc(n),o=this.compiler||this.Compiler;return If("stringify",o),Tb(e),o(e,r)}use(e,...n){const r=this.attachers,o=this.namespace;if(Mf("use",this.frozen),e!=null)if(typeof e=="function")l(e,n);else{if(typeof e!="object")throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):a(e)}return this;function i(c){if(typeof c=="function")l(c,[]);else{if(typeof c!="object")throw new TypeError("Expected usable value, not `"+c+"`");if(Array.isArray(c)){const[u,...f]=c;l(u,f)}else a(c)}}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(o.settings=kf(!0,o.settings,c.settings))}function s(c){let u=-1;if(c!=null){if(!Array.isArray(c))throw new TypeError("Expected a list of plugins, not `"+c+"`");for(;++u<c.length;)i(c[u])}}function l(c,u){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===c){p=f;break}if(p===-1)r.push([c,...u]);else if(u.length>0){let[m,...v]=u;const w=r[p][1];Sf(w)&&Sf(m)&&(m=kf(!0,w,m)),r[p]=[c,m,...v]}}}}const o2=new Tf().freeze();function Bf(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function If(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Mf(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tb(t){if(!Sf(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Bb(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function rc(t){return(function(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)})(t)?t:new Pb(t)}const Ib=[],Mb={allowDangerousHtml:!0},i2=/^(https?|ircs?|mailto|xmpp)$/i,a2=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function s2(t){const e=t.allowedElements,n=t.allowElement,r=t.children||"",o=t.className,i=t.components,a=t.disallowedElements,s=t.rehypePlugins||Ib,l=t.remarkPlugins||Ib,c=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Mb}:Mb,u=t.skipHtml,f=t.unwrapDisallowed,p=t.urlTransform||l2,m=o2().use(FC).use(l).use(JC,c).use(s),v=new Pb;typeof r=="string"&&(v.value=r);for(const S of a2)Object.hasOwn(t,S.from)&&(S.from,S.to&&S.to,S.id);const w=m.parse(v);let y=m.runSync(w,v);return o&&(y={type:"element",tagName:"div",properties:{className:o},children:y.type==="root"?y.children:[y]}),xb(y,function(S,T,P){if(S.type==="raw"&&P&&typeof T=="number")return u?P.children.splice(T,1):P.children[T]={type:"text",value:S.value},T;if(S.type==="element"){let E;for(E in ff)if(Object.hasOwn(ff,E)&&Object.hasOwn(S.properties,E)){const O=S.properties[E],M=ff[E];(M===null||M.includes(S.tagName))&&(S.properties[E]=p(String(O||""),E,S))}}if(S.type==="element"){let E=e?!e.includes(S.tagName):!!a&&a.includes(S.tagName);if(!E&&n&&typeof T=="number"&&(E=!n(S,T,P)),E&&P&&typeof T=="number")return f&&S.children?P.children.splice(T,1,...S.children):P.children.splice(T,1),T}}),OS(y,{Fragment:k.Fragment,components:i,ignoreInvalidStyle:!0,jsx:k.jsx,jsxs:k.jsxs,passKeys:!0,passNode:!0})}function l2(t){const e=t.indexOf(":"),n=t.indexOf("?"),r=t.indexOf("#"),o=t.indexOf("/");return e===-1||o!==-1&&e>o||n!==-1&&e>n||r!==-1&&e>r||i2.test(t.slice(0,e))?t:""}const c2=({children:t})=>k.jsx("div",{style:{whiteSpace:"normal"},children:k.jsx(s2,{components:{p:({...e})=>k.jsx("p",{style:{margin:0,marginBottom:"0.5em",lineHeight:1.4,textAlign:"left"},children:e.children}),ul:({...e})=>k.jsx("ul",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:e.children}),ol:({...e})=>k.jsx("ol",{style:{paddingLeft:"clamp(8px, 3.5vw, 16px)",margin:0,listStylePosition:"inside"},children:e.children}),li:({...e})=>k.jsx("li",{style:{marginBottom:"1px",lineHeight:1.4},children:e.children}),code:({inline:e,children:n})=>e?k.jsx("code",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"2px 4px",borderRadius:"4px",fontFamily:"inherit",fontSize:"0.95em"},children:n}):k.jsx("pre",{style:{backgroundColor:"rgba(0, 0, 0, 0.3)",padding:"8px",borderRadius:"4px",overflowX:"auto",margin:"0.5em 0",whiteSpace:"pre-wrap"},children:k.jsx("code",{children:n})}),blockquote:({...e})=>k.jsx("blockquote",{style:{margin:0,paddingLeft:"10px",borderLeft:"2px solid #ccc",color:"#666",fontStyle:"italic"},children:e.children})},children:typeof t=="string"?t:""})}),u2={autoConfig:!0},d2=t=>()=>(e=>{const{getFlow:n}=Kl(),{messages:r,replaceMessages:o}=Ia(),{settings:i}=cm(),{hasChatHistoryLoaded:a}=dm(),s={...e,...u2},l=s.markdownComponent?s.markdownComponent:c2;I.useEffect(()=>{var f,p;if(a){const m=[...r];for(let v=0;v<m.length&&v<(((f=i.chatHistory)==null?void 0:f.maxEntries)??30);v++){const w=m[v];(p=w.tags)!=null&&p.includes("rcb-markdown-renderer-plugin:parsed")&&(w.contentWrapper=l)}o(m)}},[a]);const c=async f=>{var p;const m=(p=f.data.message)==null?void 0:p.sender.toUpperCase();((v,w,y)=>{var S;if(typeof v.data.message.content!="string"||!v.detail.currPath)return!1;const T=w[v.detail.currPath];return!!T&&(((S=T.renderMarkdown)==null?void 0:S.map(P=>P.toUpperCase()).includes(y))??!1)})(f,n(),m)&&(f.data.message.contentWrapper=l,f.data.message.tags||(f.data.message.tags=[]),f.data.message.tags.push("rcb-markdown-renderer-plugin:parsed"))};dn(de.PRE_INJECT_MESSAGE,c),dn(de.CHUNK_STREAM_MESSAGE,c),dn(de.START_STREAM_MESSAGE,c),dn(de.START_SIMULATE_STREAM_MESSAGE,c);const u={name:"@rcb-plugins/markdown-renderer"};return s!=null&&s.autoConfig&&(u.settings={event:{rcbPreInjectMessage:!0,rcbChunkStreamMessage:!0,rcbStartSimulateStreamMessage:!0,rcbStartStreamMessage:!0}}),u})(t),oc={autoConfig:!0,promptBaseColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"},promptHoveredColors:{info:"#0056b3",warning:"#d39e00",error:"#c82333",success:"#218838"},textAreaHighlightColors:{info:"#007bff",warning:"#ffc107",error:"#dc3545",success:"#28a745"}},Ob=(t,e,n="validateTextInput")=>{var r;if((r=t.detail)==null||!r.currPath)return;const o=e[t.detail.currPath];if(!o)return;const i=o[n];return typeof i=="function"?i:void 0},f2=t=>{const{showToast:e}=(()=>{const{showToast:f,dismissToast:p,toasts:m,replaceToasts:v}=Go();return{showToast:f,dismissToast:p,toasts:m,replaceToasts:v}})(),{getFlow:n}=Kl(),{styles:r,updateStyles:o,replaceStyles:i}=(()=>{const{styles:f,replaceStyles:p,updateStyles:m}=im();return{styles:f,replaceStyles:p,updateStyles:m}})(),a=(f=>({...oc,...f,promptBaseColors:{...oc.promptBaseColors},promptHoveredColors:{...oc.promptHoveredColors},textAreaHighlightColors:{...oc.textAreaHighlightColors}}))(t),[s,l]=I.useState(0),c=I.useRef({});dn(de.USER_SUBMIT_TEXT,f=>{const p=f,m=Ob(p,n(),"validateTextInput");if(!m)return;const v=m(p.data.inputText);if(v!=null&&v.success||f.preventDefault(),!v.promptContent)return;s===0&&(c.current=structuredClone(r));const w=((y,S)=>{const T=y.promptType??"info";let P={};return S.advancedStyles&&(P=S.advancedStyles[T]),S.promptBaseColors&&(P.toastPromptStyle={color:S.promptBaseColors[T],borderColor:S.promptBaseColors[T]}),S.promptHoveredColors&&(P.toastPromptHoveredStyle={color:S.promptHoveredColors[T],borderColor:S.promptHoveredColors[T]}),S.textAreaHighlightColors&&(y.highlightTextArea??!0)&&(P.chatInputAreaStyle={boxShadow:`${S.textAreaHighlightColors[T]} 0px 0px 5px`}),P})(v,a);o(w),e(v.promptContent,v.promptDuration??3e3),l(y=>y+1)}),dn(de.USER_UPLOAD_FILE,f=>{var p,m;const v=f,w=(m=(p=v.data)==null?void 0:p.files)==null?void 0:m[0];if(!w)return console.error("No file uploaded."),void f.preventDefault();const y=Ob(v,n(),"validateFileInput");if(!y)return void console.error("Validator not found for file input.");const S=y(w);if(!S.success)return console.error("Validation failed:",S),S.promptContent&&e(S.promptContent,S.promptDuration??3e3),void f.preventDefault();console.log("Validation successful:",S)}),dn(de.DISMISS_TOAST,()=>{l(f=>f-1)}),I.useEffect(()=>{s===0&&setTimeout(()=>{i(c.current)})},[s,i]);const u={name:"@rcb-plugins/input-validator"};return a.autoConfig&&(u.settings={event:{rcbUserSubmitText:!0,rcbUserUploadFile:!0,rcbDismissToast:!0}}),u},_b=I.forwardRef((t,e)=>{let{embedded:n,currentOpen:r,enabled:o,onSetEnabled:i}=t;const a=Ia(),s=(()=>{const{isChatWindowOpen:u,toggleChatWindow:f,toggleIsBotTyping:p,scrollToBottom:m,getIsChatBotVisible:v}=Zt();return{isChatWindowOpen:u,toggleChatWindow:f,toggleIsBotTyping:p,scrollToBottom:m,getIsChatBotVisible:v}})(),l=I.useRef(null),c=I.useRef(!1);return I.useEffect(()=>{!n&&s&&s.toggleChatWindow&&(l.current===r||c.current||(setTimeout(()=>{s&&s.toggleChatWindow&&s.toggleChatWindow(r)},0),l.current=r),c.current=!1)},[r,n,s]),I.useEffect(()=>{const u=()=>{c.current=!0};return window.addEventListener("rcb-toggle-chat-window",u),()=>window.removeEventListener("rcb-toggle-chat-window",u)}),I.useImperativeHandle(e,()=>({addMessage:u=>{a&&a.injectMessage&&a.injectMessage(u)},openChat:()=>{!n&&s&&s.toggleChatWindow&&s.toggleChatWindow(!0)},closeChat:()=>{!n&&s&&s.toggleChatWindow&&s.toggleChatWindow(!1)},toggleChat:()=>{!n&&s&&s.toggleChatWindow&&s.toggleChatWindow()},setBotEnabled:u=>{i&&i(u)}}),[a,s,n,i]),null});_b.displayName="BotController";const Fb=t=>{let{loginUrl:e,className:n="",style:r,isHeaderButton:o=!1}=t;const i=o?{display:"inline-block",padding:"6px 12px",backgroundColor:"transparent",border:"1px solid #ccc",color:"white",textDecoration:"none",borderRadius:"4px",fontWeight:"normal",textAlign:"center",margin:"8px",fontSize:"12px",opacity:.8,transition:"all 0.2s ease"}:{display:"inline-block",padding:"10px 20px",backgroundColor:"white",border:"1px solid var(--primaryColor, #107180)",color:"var(--primaryColor, #107180)",textDecoration:"none",borderRadius:"4px",fontWeight:"bold",textAlign:"center",margin:"18px",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.2)"};return I.createElement(I.Fragment,null,o&&I.createElement("style",null,`
|
|
92
|
+
.rcb-chat-header-container .qa-bot-header-login-button:hover {
|
|
93
|
+
background-color: #0000001a !important;
|
|
94
|
+
opacity: 1 !important;
|
|
95
|
+
}
|
|
96
|
+
`),I.createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"qa-bot-login-button ".concat(o?"qa-bot-header-login-button":""," ").concat(n),style:Object.assign(Object.assign({},i),r)},"Log In"))},h2=()=>I.createElement("div",{className:"user-login-icon",style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"5px",display:"flex"},role:"img","aria-label":"User logged in",title:"User logged in"},I.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},I.createElement("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),I.createElement("circle",{cx:"12",cy:"7",r:"4"}))),bt=[];for(let t=0;t<256;++t)bt.push((t+256).toString(16).slice(1));let Of;const p2=new Uint8Array(16);var Rb={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Lb(t,e,n){var r;if(Rb.randomUUID&&!t)return Rb.randomUUID();const o=(t=t||{}).random??((r=t.rng)==null?void 0:r.call(t))??(function(){if(!Of){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Of=crypto.getRandomValues.bind(crypto)}return Of(p2)})();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=15&o[6]|64,o[8]=63&o[8]|128,(function(i,a=0){return(bt[i[a+0]]+bt[i[a+1]]+bt[i[a+2]]+bt[i[a+3]]+"-"+bt[i[a+4]]+bt[i[a+5]]+"-"+bt[i[a+6]]+bt[i[a+7]]+"-"+bt[i[a+8]]+bt[i[a+9]]+"-"+bt[i[a+10]]+bt[i[a+11]]+bt[i[a+12]]+bt[i[a+13]]+bt[i[a+14]]+bt[i[a+15]]).toLowerCase()})(o)}function ic(){return typeof localStorage<"u"&&localStorage.getItem("QA_BOT_DEBUG")==="true"}const A2="background: #1a5b6e; color: white; padding: 2px 6px; border-radius: 3px;",g2="background: #7c3aed; color: white; padding: 2px 6px; border-radius: 3px;",m2="background: #059669; color: white; padding: 2px 6px; border-radius: 3px;",b2="background: #f59e0b; color: #000; padding: 2px 6px; border-radius: 3px 0 0 3px; font-weight: bold;",v2="background: #fbbf24; color: #000; padding: 2px 6px; border-radius: 0 3px 3px 0;",y2=()=>{ic()&&console.log("%c QA Bot Core %c v".concat("0.2.19"," "),b2,v2)},ac=function(t){if(ic()){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console.log("%c[Session]%c ".concat(t),A2,"",...n)}},Un=function(t){if(ic()){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console.log("%c[History]%c ".concat(t),g2,"",...n)}},w2=(t,e)=>{ic()&&console.log("%c[Message]%c ".concat(t),m2,"",e)},x2=function(){console.warn(...arguments)},ao=function(){console.error(...arguments)},Nb="qa_bot_session_messages",zb=()=>"qa_bot_session_".concat(Lb()),za=()=>{try{const t=localStorage.getItem(Nb);return t?JSON.parse(t):{}}catch{return{}}},k2=(t,e,n,r,o)=>{const i=za();if(!i[t]&&(i[t]={messages:[],startedAt:new Date().toISOString(),preview:""},Un("NEW session created",{sessionId:t.slice(-12)})),i[t].messages.some(c=>c.id===e))return void Un("DUPLICATE message skipped",{sessionId:t.slice(-12),messageId:e.slice(-8),sender:r});const a={id:e,content:n,sender:r,type:o,timestamp:Date.now()};i[t].messages.push(a),Un("MESSAGE added",{sessionId:t.slice(-12),messageId:e.slice(-8),sender:r,totalInSession:i[t].messages.length});const s=i[t].messages,l=s.find(c=>{var u;return c.sender.toLowerCase()==="bot"&&((u=c.content)===null||u===void 0?void 0:u.trim())&&c.content.length>=100});if(l){const c=l.content;i[t].preview=c.slice(0,50)+(c.length>50?"...":"")}else{const c=s.find(u=>{var f;return u.sender.toLowerCase()==="user"&&((f=u.content)===null||f===void 0?void 0:f.trim())});if(c&&!i[t].preview){const u=c.content;i[t].preview=u.slice(0,50)+(u.length>50?"...":"")}}(c=>{var u;const f=()=>Object.values(c).reduce((p,m)=>p+m.messages.length,0);for(;f()>100&&Object.keys(c).length>1;){const p=(u=Object.entries(c).sort((m,v)=>{let[,w]=m,[,y]=v;return new Date(w.startedAt).getTime()-new Date(y.startedAt).getTime()})[0])===null||u===void 0?void 0:u[0];if(!p)break;delete c[p]}localStorage.setItem(Nb,JSON.stringify(c))})(i),Un("STORAGE state",{ourSessions:Object.keys(i).length,ourTotalMessages:Object.values(i).reduce((c,u)=>c+u.messages.length,0)})},Qb=t=>{var e,n;return(n=(e=za()[t])===null||e===void 0?void 0:e.messages.length)!==null&&n!==void 0?n:0},S2=t=>{const e=za()[t];return e!=null&&e.startedAt?Date.now()-new Date(e.startedAt).getTime():0},Hb=I.createContext(void 0),C2=t=>{let{children:e,getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}=t;return I.createElement(Hb.Provider,{value:{getSessionId:n,setSessionId:r,resetSession:o,clearResettingFlag:i}},e)},_f=()=>{const t=I.useContext(Hb);if(!t)throw new Error("useSession must be used within a SessionProvider");return t},E2=()=>{const[t,e]=I.useState(!1),[n,r]=I.useState([]),[o,i]=I.useState(null),[a,s]=I.useState(0),l=I.useRef(null),c=I.useRef(null),{replaceMessages:u}=Ia(),{toggleTextAreaDisabled:f}=um(),{setSessionId:p,getSessionId:m}=_f();I.useEffect(()=>{var w,y;const S=P=>{l.current&&!l.current.contains(P.target)&&c.current&&!c.current.contains(P.target)&&e(!1)},T=(y=(w=l.current)===null||w===void 0?void 0:w.getRootNode())!==null&&y!==void 0?y:document;return t&&T.addEventListener("mousedown",S),()=>{T.removeEventListener("mousedown",S)}},[t]);const v=w=>{var y;const S=m();if(Un("RESTORE requested",{targetSession:w.slice(-12),currentSession:S?.slice(-12)}),w===S)return Un("RESTORE skipped - already on this session"),void e(!1);const T=(O=>{var M;return((M=za()[O])===null||M===void 0?void 0:M.messages)||[]})(w).filter(O=>{var M;return(M=O.content)===null||M===void 0?void 0:M.trim()});Un("Stored messages from our localStorage",{count:T.length,ids:T.map(O=>O.id.slice(-8))});const P=T.map(O=>({id:O.id,content:O.content,sender:O.sender.toUpperCase(),type:O.type||"string",timestamp:new Date(O.timestamp).toISOString()}));var E;p(w),Un("Session ID updated",{newSession:w.slice(-12)}),u(P),Un("replaceMessages called",{count:P.length}),E=(y=c.current)===null||y===void 0?void 0:y.getRootNode(),setTimeout(()=>{const O=(E||document).querySelector(".rcb-chat-body-container");O&&O.querySelectorAll(".rcb-bot-message").forEach(M=>{var N;let H=M.innerHTML,z=!1;H.includes("](")&&(H=H.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>'),z=!0),H.includes("<a href=")&&(H=H.replace(/<a\s+href=["']([^"']+)["'][^&]*>([^&]+)<\/a>/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),z=!0),(H.includes("<a ")||!((N=M.textContent)===null||N===void 0)&&N.includes("<a href="))&&(M.textContent||"").includes("<a href=")&&(H=H.replace(/<a\s+href="([^"]+)"[^&]*>([^&]+)<\/a>/gi,'<a href="$1" target="_blank" rel="noopener noreferrer">$2</a>'),z=!0),z&&(M.innerHTML=H)})},50),f(!1),Un("Chat input enabled after restore"),e(!1)};return I.createElement("div",{style:{position:"relative"}},I.createElement("button",{ref:c,className:"history-button",onClick:()=>{if(!t&&(r((()=>{const w=za();return Object.entries(w).map(y=>{let[S,T]=y;return Object.assign({sessionId:S},T)}).sort((y,S)=>new Date(S.startedAt).getTime()-new Date(y.startedAt).getTime())})()),c.current)){const w=c.current.closest(".rcb-chat-window");if(w){const y=w.getBoundingClientRect(),S=c.current.getBoundingClientRect();i(y.width+3),s(y.right-S.right-18+4)}}e(!t)},style:{alignItems:"center",justifyContent:"center",width:"30px",height:"30px",borderRadius:"50%",backgroundColor:"var(--primaryColor, #1a5b6e)",marginRight:"18px",display:"flex",border:"none",cursor:"pointer",padding:0},"aria-label":"View chat history",title:"View chat history","aria-expanded":t,"aria-haspopup":"menu"},I.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},I.createElement("circle",{cx:"12",cy:"12",r:"10"}),I.createElement("polyline",{points:"12 6 12 12 16 14"}))),t&&I.createElement("div",{ref:l,role:"menu",style:{position:"absolute",right:a?"-".concat(a,"px"):"-18px",top:"100%",marginTop:"8px",width:o?"".concat(o,"px"):"550px",backgroundColor:"white",borderRadius:0,borderBottom:"3px solid var(--primaryColor, #1a5b6e)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.1)",maxHeight:"250px",overflowY:"auto",zIndex:1e3}},n.length===0?I.createElement("div",{style:{padding:"12px 16px",color:"#666",fontSize:"14px",textAlign:"center"}},"No chat history"):n.map(w=>I.createElement("button",{key:w.sessionId,role:"menuitem",onClick:()=>v(w.sessionId),style:{width:"100%",padding:"10px 14px",border:"none",backgroundColor:"transparent",cursor:"pointer",textAlign:"left",display:"flex",flexDirection:"column",gap:"2px",borderBottom:"1px solid #eee"},onMouseEnter:y=>{y.currentTarget.style.backgroundColor="#f5f5f5"},onMouseLeave:y=>{y.currentTarget.style.backgroundColor="transparent"}},I.createElement("span",{style:{fontSize:"14px",color:"#333",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},w.preview||"New conversation"),I.createElement("span",{style:{fontSize:"12px",color:"#888"}},(y=>{const S=new Date(y),T=new Date().getTime()-S.getTime(),P=Math.floor(T/864e5);return P===0?S.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):P===1?"Yesterday":P<7?S.toLocaleDateString([],{weekday:"short"}):S.toLocaleDateString([],{month:"short",day:"numeric"})})(w.startedAt))))))};function Ff(){return Ff=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ff.apply(null,arguments)}const Ub=({width:t=24,height:e=24,color:n="currentColor",children:r,...o})=>I.createElement("svg",Ff({xmlns:"http://www.w3.org/2000/svg",width:t,height:e,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false"},o),r),P2=t=>I.createElement(Ub,t,I.createElement("path",{d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})),jb=I.createContext(null),D2=t=>{let{trackEvent:e,children:n}=t;const r=I.useRef(e);return r.current=e,I.createElement(jb.Provider,{value:{trackEvent:o=>r.current(o)}},n)},T2=()=>{const{restartFlow:t}=Kl(),{setTextAreaValue:e}=um(),{messages:n}=Ia(),{getSessionId:r,resetSession:o,clearResettingFlag:i}=_f(),{trackEvent:a}=I.useContext(jb)||{trackEvent:()=>{}};return I.createElement("button",{onClick:async()=>{const s=r(),l=s?Qb(s):0;a({type:"chatbot_new_chat",previousMessageCount:l}),o(),await e(""),await t(),setTimeout(()=>{i()},100)},tabIndex:0,"aria-label":"New chat conversation",style:{backgroundColor:"var(--primaryColor, #107180)",border:"none",color:"#ffffff",fontSize:"14px",cursor:"pointer",padding:"8px 12px",borderRadius:"4px",transition:"all 0.2s ease",display:"flex",alignItems:"center",gap:"6px",fontWeight:"500"},onMouseEnter:s=>{s.target.style.backgroundColor="var(--secondaryColor, #0d5f6b)"},onMouseLeave:s=>{s.target.style.backgroundColor="var(--primaryColor, #107180)"}},I.createElement(P2,{width:16,height:16}),"New Chat")};function Rf(t){if(typeof t=="string")return t;if(typeof t=="number")return String(t);if(!t)return"";if(Array.isArray(t))return t.map(Rf).join("");if(typeof t=="object"&&t!==null&&"props"in t){const e=t.props;if(e&&"children"in e)return Rf(e.children)}return""}const B2=()=>{const{getSessionId:t}=_f(),e=I.useCallback(n=>{var r;const o=(r=n.data)===null||r===void 0?void 0:r.message;if(!(o!=null&&o.id))return;const i=o.sender,a=o.type||"string";let s;if(s=typeof o.content=="string"?o.content:Rf(o.content),w2("TRACKED",{id:o.id,sender:i,content:s.substring(0,50)+(s.length>50?"...":"")}),s.includes("rcb-options-container")||!s.trim())return;const l=t();k2(l,o.id,s,i,a)},[t]);return I.useEffect(()=>(window.addEventListener("rcb-pre-inject-message",e),()=>{window.removeEventListener("rcb-pre-inject-message",e)}),[e]),null},I2=()=>(I.useEffect(()=>{const t=a=>{if(!["ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter"," ","Home","End"].includes(a.key))return;const s=document.activeElement;if(s&&(s.tagName==="INPUT"||s.tagName==="TEXTAREA"||s.contentEditable==="true"||s.classList.contains("rcb-chat-input-textarea")))return;const l=document.querySelector(".rcb-chat-window");if(!l)return;const c=Array.from(l.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(p=>p.offsetParent!==null);if(c.length>0){const p=c[c.length-1].querySelector(".rcb-checkbox-container");if(p&&p.offsetParent!==null){const m=Array.from(p.querySelectorAll(".rcb-checkbox-row-container")),v=p.querySelector(".rcb-checkbox-next-button");if(m.length>0){const w=[...m];return v&&w.push(v),void((y,S)=>{y.preventDefault();let T=-1;for(let E=0;E<S.length;E++)if(S[E]===document.activeElement||S[E].contains(document.activeElement)){T=E;break}T===-1&&(T=0);let P=T;switch(y.key){case"ArrowDown":case"ArrowRight":P=T<S.length-1?T+1:0;break;case"ArrowUp":case"ArrowLeft":P=T>0?T-1:S.length-1;break;case"Home":P=0;break;case"End":P=S.length-1;break;case"Enter":case" ":{const E=S[T],O=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});return void E.dispatchEvent(O)}default:return}S[P].focus(),S[P].setAttribute("tabindex","0"),S[P].classList.add("keyboard-focused"),S.forEach((E,O)=>{O!==P&&(E.setAttribute("tabindex","-1"),E.classList.remove("keyboard-focused"))})})(a,w)}}}let u=[];if(c.length>0){const p=c[c.length-1],m=Array.from(p.querySelectorAll(".rcb-options-container")).filter(v=>v.offsetParent!==null);if(m.length>0){const v=m[m.length-1];u=Array.from(v.querySelectorAll(".rcb-options"))}}if(u.length===0)return;const f=u.findIndex(p=>p===document.activeElement);switch(a.key){case"ArrowDown":case"ArrowRight":{let p;a.preventDefault(),p=f<u.length-1?f+1:0,u[p].setAttribute("tabindex","0"),u.forEach((m,v)=>{v!==p&&(m.setAttribute("tabindex","-1"),m.classList.remove("keyboard-focused"))}),u[p].classList.add("keyboard-focused"),u[p].focus();break}case"ArrowUp":case"ArrowLeft":{let p;a.preventDefault(),p=f>0?f-1:u.length-1,u[p].setAttribute("tabindex","0"),u.forEach((m,v)=>{v!==p&&(m.setAttribute("tabindex","-1"),m.classList.remove("keyboard-focused"))}),u[p].classList.add("keyboard-focused"),u[p].focus();break}case"Enter":case" ":if(a.preventDefault(),document.activeElement&&u.includes(document.activeElement)){const p=document.activeElement;if(p.classList.contains("rcb-checkbox-row-container")||p.closest(".rcb-checkbox-row-container")){const m=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});p.dispatchEvent(m);const v=p.querySelector(".rcb-checkbox-label"),w=v?v.textContent:p.textContent||"checkbox",y=p.querySelector(".rcb-checkbox-mark"),S=y&&y.style.backgroundColor?"checked":"unchecked";e(`${w} ${S}`)}else{const m=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});p.dispatchEvent(m);const v=p.textContent||p.innerText;e(`Selected: ${v}`)}}break;case"Home":a.preventDefault(),u.length>0&&(u[0].setAttribute("tabindex","0"),u.forEach((p,m)=>{m!==0&&(p.setAttribute("tabindex","-1"),p.classList.remove("keyboard-focused"))}),u[0].classList.add("keyboard-focused"),u[0].focus());break;case"End":if(a.preventDefault(),u.length>0){const p=u.length-1;u[p].setAttribute("tabindex","0"),u.forEach((m,v)=>{v!==p&&(m.setAttribute("tabindex","-1"),m.classList.remove("keyboard-focused"))}),u[p].classList.add("keyboard-focused"),u[p].focus()}}},e=a=>{const s=document.createElement("div");s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true"),s.className="sr-only",s.textContent=a,document.body.appendChild(s),setTimeout(()=>{document.body.contains(s)&&document.body.removeChild(s)},1e3)},n=(a=null)=>{let s=a;if(s||(s=document.querySelector(".rcb-chat-window"),s||(s=document.querySelector('[class*="rcb-chat"]')),s||(s=document.querySelector(".qa-bot"))),!s)return;const l=s.closest(".embedded-qa-bot")!==null,c=Array.from(s.querySelectorAll(".rcb-message-container, .rcb-bot-message-container, .rcb-user-message-container")).filter(m=>m.offsetParent!==null);if(c.length===0)return;const u=c[c.length-1],f=Array.from(u.querySelectorAll(".rcb-options-container")).filter(m=>m.offsetParent!==null);let p=[];if(f.length>0){const m=f[f.length-1];p=Array.from(m.querySelectorAll(".rcb-options"))}if(p.length===0){let m=u.querySelector(".rcb-checkbox-container");if(!m&&s&&(m=s.querySelector(".rcb-checkbox-container")),m&&m.offsetParent!==null){const v=Array.from(m.querySelectorAll(".rcb-checkbox-row-container")).filter(w=>w.offsetParent!==null&&w.style.display!=="none");if(v.length>0){const w=m.querySelector(".rcb-checkbox-next-button"),y=[...v];if(w&&w.offsetParent!==null&&y.push(w),y.forEach((S,T)=>{S.setAttribute("tabindex",T===0?"0":"-1"),T===0?S.classList.add("keyboard-focused"):S.classList.remove("keyboard-focused")}),v.length>1){m.querySelectorAll(".keyboard-nav-hint").forEach(T=>T.remove());const S=document.createElement("div");S.className="keyboard-nav-hint",S.textContent="Use arrow keys ↕ to navigate, Enter to select/deselect, or click any option",S.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",m.insertBefore(S,m.firstChild)}return void setTimeout(()=>{y[0]&&y[0].offsetParent!==null&&!l&&y[0].focus()},150)}}}if(p.length>0){if(p.forEach((m,v)=>{const w=v===0?"0":"-1";m.setAttribute("tabindex",w),m.setAttribute("role","option"),m.setAttribute("aria-posinset",v+1),m.setAttribute("aria-setsize",p.length),v===0?m.classList.add("keyboard-focused"):m.classList.remove("keyboard-focused")}),p.length>1){const m=f.length>0?f[f.length-1]:null;if(m){m.querySelectorAll(".keyboard-nav-hint").forEach(w=>w.remove());const v=document.createElement("div");v.className="keyboard-nav-hint",v.textContent="Use arrow keys ↕ to navigate, Enter to select, or click any option",v.style.cssText="font-size: 12px !important; color: #666 !important; margin-bottom: 8px !important; font-style: italic !important; display: block !important;",m.insertBefore(v,m.firstChild)}}else{const m=f.length>0?f[f.length-1]:null;m&&m.querySelectorAll(".keyboard-nav-hint").forEach(v=>v.remove())}setTimeout(()=>{p[0]&&p[0].offsetParent!==null&&!l&&(p[0].focus(),p.length>1&&e(`${p.length} options available. Use arrow keys to navigate.`))},200)}},r=a=>{const s=a.querySelectorAll(".rcb-options");s.forEach((l,c)=>{l.hasAttribute("role")||(l.setAttribute("role","button"),l.setAttribute("tabindex",c===0?"0":"-1"),l.setAttribute("aria-posinset",c+1),l.setAttribute("aria-setsize",s.length))}),a.querySelectorAll(".rcb-checkbox-row-container").forEach((l,c)=>{l.hasAttribute("role")||(l.setAttribute("role","checkbox"),l.setAttribute("tabindex",c===0?"0":"-1"))})},o=new MutationObserver(a=>{a.forEach(s=>{var l,c;if(s.type==="childList"){const u=Array.from(s.addedNodes),f=u.some(m=>{var v,w,y,S;return m.nodeType===Node.ELEMENT_NODE&&(((v=m.classList)==null?void 0:v.contains("rcb-options-container"))||((w=m.classList)==null?void 0:w.contains("rcb-options"))||((y=m.querySelector)==null?void 0:y.call(m,".rcb-options-container"))||((S=m.querySelector)==null?void 0:S.call(m,".rcb-options")))}),p=u.some(m=>{var v,w;return m.nodeType===Node.ELEMENT_NODE&&(((v=m.classList)==null?void 0:v.contains("rcb-checkbox-container"))||((w=m.querySelector)==null?void 0:w.call(m,".rcb-checkbox-container")))});if(f||p){let m=s.target;for(;m&&!((l=m.classList)!=null&&l.contains("qa-bot"))&&!((c=m.classList)!=null&&c.contains("rcb-chat-window"));)m=m.parentElement;const v=m||document;r(v),v.querySelectorAll(".rcb-options[tabindex], .rcb-checkbox-row-container[tabindex], .rcb-checkbox-next-button[tabindex]").forEach(w=>{w.setAttribute("tabindex","-1"),w.classList.remove("keyboard-focused")}),setTimeout(()=>n(m),100)}}})});o.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("keydown",t),r(document),n();const i=setInterval(()=>{document.querySelectorAll(".qa-bot").forEach(a=>{const s=a.querySelectorAll(".rcb-options-container .rcb-options").length>0,l=a.querySelectorAll(".rcb-checkbox-row-container").length>0;if(s){r(a);const c=a.querySelectorAll(".rcb-options[tabindex]").length;a.querySelectorAll(".rcb-options").length>c&&n(a)}if(l){r(a);const c=a.querySelectorAll(".rcb-checkbox-row-container[tabindex]").length;a.querySelectorAll(".rcb-checkbox-row-container").length>c&&n(a)}})},1e3);return()=>{document.removeEventListener("keydown",t),o.disconnect(),clearInterval(i)}},[]),null),M2="#1a5b6e",O2="#107180",_2="Arial, sans-serif",Wb="Q&A Bot",F2="/chat-icon.svg",R2="Type your question here...",L2="Select an option to continue",N2=!1,z2="Ask me a question!",Vb="/login",Q2={general:{showHeader:!0,showFooter:!0},tooltip:{mode:"CLOSE"},chatInput:{disabled:!1,characterLimit:1e3,showCharacterCount:!1,allowNewline:!0,blockSpam:!1},chatWindow:{defaultOpen:!1,showScrollbar:!1},botBubble:{simulateStream:!0,streamSpeed:10,showAvatar:!1},userBubble:{showAvatar:!1},notification:{disabled:!0,showCount:!1},audio:{disabled:!0},emoji:{disabled:!0},fileAttachment:{disabled:!0}},Lf=I.forwardRef((t,e)=>{var n,r;const{apiKey:o,qaEndpoint:i,ratingEndpoint:a,welcomeMessage:s,open:l,onOpenChange:c,isLoggedIn:u,allowAnonAccess:f=!1,actingUser:p,primaryColor:m,secondaryColor:v,botName:w,logo:y,placeholder:S,errorMessage:T,embedded:P,footerText:E,footerLink:O,tooltipText:M,loginUrl:N,customFlow:H,onAnalyticsEvent:z}=t,Q=I.useRef("bot_".concat(Math.random().toString(36).substr(2,9)));I.useEffect(()=>{y2()},[]);const U=I.useRef(null);U.current===null&&(U.current=zb(),ac("CREATED",U.current));const j=I.useRef(!1),V=I.useRef({getSessionId:()=>U.current,isResetting:()=>j.current}),[X,q]=I.useState(u);I.useEffect(()=>{q(u)},[u]);const te=P!==void 0?P:N2,Z=I.useCallback(ne=>{var $;z&&z(Object.assign(Object.assign({},ne),{timestamp:Date.now(),sessionId:($=U.current)!==null&&$!==void 0?$:void 0,pageUrl:typeof window<"u"?window.location.href:void 0,isEmbedded:te}))},[z,te]),ee=I.useMemo(()=>{const ne=Object.assign({},Q2);ne.general=Object.assign(Object.assign({},ne.general),{primaryColor:m||M2,secondaryColor:v||O2,fontFamily:_2,embedded:te});const $=X===!1?[I.createElement(Fb,{key:"login-button",loginUrl:N||Vb,isHeaderButton:!0})]:[I.createElement(E2,{key:"history-button"}),I.createElement(h2,{key:"user-icon"})];ne.header={title:I.createElement("span",{style:{fontSize:14,fontWeight:500}},w||Wb),showAvatar:!0,avatar:y||F2,buttons:[...$,$e.CLOSE_CHAT_BUTTON]},ne.chatInput=Object.assign(Object.assign({},ne.chatInput),{disabled:!1,enabledPlaceholderText:S||R2,disabledPlaceholderText:T||L2}),ne.tooltip=Object.assign(Object.assign({},ne.tooltip),{text:M||z2});const ie=E?O?I.createElement("a",{href:O,target:"_blank",rel:"noopener noreferrer",key:"footer-link"},E):I.createElement("span",{key:"footer-text"},E):null;return ne.footer={text:ie,buttons:[I.createElement(T2,{key:"new-chat-button"})]},ne.event={rcbPreInjectMessage:!0,rcbPostInjectMessage:!0,rcbUserSubmitText:!0,rcbChangePath:!0,rcbToggleChatWindow:!0},ne},[m,v,w,y,S,T,te,M,X,N,E,O]),F=I.useRef(null),fe=(function(ne){let $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return I.useMemo(()=>{const ie=(ae,Ae)=>{if(ne.current){const ye=getComputedStyle(ne.current).getPropertyValue(ae);if(ye&&ye.trim()!=="")return ye.trim();if(ne.current.parentElement){const ke=getComputedStyle(ne.current.parentElement).getPropertyValue(ae);if(ke&&ke.trim()!=="")return ke.trim()}}return Ae};return{primaryColor:ie("--primaryColor",$.primaryColor),secondaryColor:ie("--secondaryColor",$.secondaryColor),fontFamily:ie("--fontFamily",$.fontFamily)}},[ne,$])})(F,ee.general);((ne,$)=>{I.useEffect(()=>{$.current&&(ne?$.current.classList.add("bot-logged-in"):$.current.classList.remove("bot-logged-in"))},[ne,$])})(X!==!1,F),(ne=>{let{settings:$,themeColors:ie}=ne;I.useEffect(()=>{ie&&(Object.entries(ie).forEach(ae=>{let[Ae,ye]=ae;ye&&document.documentElement.style.setProperty("--".concat(Ae),ye)}),ie.primaryColor&&document.documentElement.style.setProperty("--rcb-header-background",ie.primaryColor),ie.secondaryColor&&document.documentElement.style.setProperty("--rcb-header-background-hover",ie.secondaryColor))},[ie]),I.useEffect(()=>{var ae,Ae,ye;!((ae=$.header)===null||ae===void 0)&&ae.title&&typeof $.header.title=="string"&&($.header.title=I.createElement("div",{key:"header-title"},I.createElement("h1",{className:"sr-only"},$.header.title),I.createElement("span",{"aria-hidden":"true"},$.header.title))),!((Ae=$.general)===null||Ae===void 0)&&Ae.embedded&&$.chatWindow&&($.chatWindow.defaultOpen=!0),$.device={desktopEnabled:!0,mobileEnabled:!0,applyMobileOptimizations:!1},$.chatHistory={disabled:!0},$.chatButton=Object.assign(Object.assign({},$.chatButton),{icon:(ye=$.header)===null||ye===void 0?void 0:ye.avatar}),$.event={rcbToggleChatWindow:!0}},[$])})({settings:ee,themeColors:fe});const R=I.useMemo(()=>{const ne=($=>{let{endpoint:ie,ratingEndpoint:ae,apiKey:Ae,sessionId:ye,isResetting:ke=()=>!1,isLoggedIn:Be,allowAnonAccess:Je=!1,loginUrl:Et="/login",trackEvent:Ke}=$;if(Be===!1&&!Je)return Ke?.({type:"chatbot_login_prompt_shown"}),{qa_loop:{message:"To ask questions, please log in first.",component:I.createElement(Fb,{loginUrl:Et}),chatDisabled:!0,path:"qa_loop"}};let ut=null,wt=!1;if(!ie)throw new Error("Q&A endpoint is required");return{qa_loop:{message:async rt=>{const{userInput:dt}=rt;if(ke&&ke()||!dt||dt.trim()==="")return null;if(dt==="👍 Helpful"||dt==="👎 Not helpful"){if(ae&&ut)try{const _e=dt==="👍 Helpful",ot={"Content-Type":"application/json"};Ae&&(ot["X-API-KEY"]=Ae);const Pe=ye();Pe&&(ot["X-Session-ID"]=Pe,ot["X-Query-ID"]=ut),await fetch(ae,{method:"POST",headers:ot,credentials:"include",body:JSON.stringify({sessionId:Pe,queryId:ut,rating:_e?1:0})}),Ke?.({type:"chatbot_rating_sent",queryId:ut,rating:_e?"helpful":"not_helpful"})}catch(_e){ao("Error sending feedback:",_e)}return"Thanks for the feedback! Feel free to ask another question."}try{const _e=Lb();ut=_e,Ke?.({type:"chatbot_question_sent",queryId:_e,questionLength:dt.length});const ot={"Content-Type":"application/json"};Ae&&(ot["X-API-KEY"]=Ae);const Pe=ye();Pe&&(ot["X-Session-ID"]=Pe,ot["X-Query-ID"]=_e);const xt={query:dt,session_id:Pe,question_id:_e};ac("SENT to API",{session_id:Pe,question_id:_e});const Wt=Date.now(),gt=await fetch(ie,{method:"POST",headers:ot,credentials:"include",body:JSON.stringify(xt)}),Vt=Date.now()-Wt;if(!gt.ok)throw new Error("API returned ".concat(gt.status));const Pt=await gt.json(),Mt=Pt.response||Pt.answer||Pt.text||Pt.message;if(!Mt)throw new Error("Invalid response format from API");const Ot=(ue=>{if(!ue||typeof ue!="string")return ue;let pe=ue.replace(/\[(https?:\/\/[^\s]+?)\]/gi,"[$1]($1)");return pe=pe.replace(new RegExp(`(?<!\\]\\(|href=["']|\\[)https?:\\/\\/[^\\s[\\]()]+`,"gi"),we=>{let xe=we,Y="";const se=xe.match(/([.,;:!?]+)$/);return se&&(Y=se[1],xe=xe.slice(0,-Y.length)),"[".concat(xe,"](").concat(xe,")").concat(Y)}),pe})(Mt),He=(function(ue){const{confidence:pe,tools_used:we,metadata:xe}=ue;if(!(pe||we&&we.length!==0))return"";const Y=[];return pe&&Y.push("• Confidence: ".concat(pe)),we&&we.length>0&&Y.push("• Tools used: ".concat(we.join(", "))),xe!=null&&xe.agent&&Y.push("• Agent: ".concat(xe.agent)),`---
|
|
97
|
+
`.concat(Y.join(`
|
|
98
|
+
`))})(Pt),G=He?"".concat(Ot,`
|
|
99
|
+
|
|
100
|
+
`).concat(He):Ot;return await rt.injectMessage(G),Ke?.({type:"chatbot_answer_received",queryId:_e,responseTimeMs:Vt,success:!0,responseLength:Mt.length,hasMetadata:!!He}),wt=!0,setTimeout(async()=>{await rt.injectMessage("Feel free to ask another question.")},100),null}catch(_e){return ao("Error in Q&A flow:",_e),Ke?.({type:"chatbot_answer_error",queryId:ut??void 0,errorType:_e instanceof Error?_e.message:"unknown"}),"I apologize, but I'm having trouble processing your question. Please try again later."}},options:rt=>ke&&ke()||rt.userInput==="👍 Helpful"||rt.userInput==="👎 Not helpful"?[]:ae&&wt?["👍 Helpful","👎 Not helpful"]:[],renderMarkdown:["BOT"],chatDisabled:!1,path:"qa_loop"}}})({endpoint:i,ratingEndpoint:a,apiKey:o,sessionId:V.current.getSessionId,isResetting:V.current.isResetting,isLoggedIn:X,allowAnonAccess:f,loginUrl:N||Vb,trackEvent:Z});return Object.assign(Object.assign({start:{message:s,renderMarkdown:["BOT"],transition:{duration:0},path:"qa_loop"}},ne),H||{})},[o,i,a,s,X,f,N,H,p,Z]),ce=I.useMemo(()=>{return[()=>dS($),d2(),()=>f2(ne)];var ne,$},[]);return I.useEffect(()=>{const ne=()=>{const ie=document.querySelector(".rcb-chat-window");if(!ie)return;const ae=ie.querySelector(".rcb-send-button");ae&&(ae.hasAttribute("tabindex")||ae.setAttribute("tabindex","0"),ae.hasAttribute("data-keyboard-enabled")||(ae.setAttribute("data-keyboard-enabled","true"),ae.addEventListener("keydown",Ae=>{if(Ae.key==="Enter"||Ae.key===" "){Ae.preventDefault();const ye=ae&&Object.keys(ae).find(Be=>Be.startsWith("__reactProps"));if(ye){const Be=ae[ye],Je=Be?.onMouseDown;if(Je&&typeof Je=="function")return void Je(Ae)}const ke=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window});ae.dispatchEvent(ke)}})))},$=setInterval(ne,1e3);return ne(),()=>clearInterval($)},[]),I2(),I.useEffect(()=>{if(!te){const ne=$=>{const ie=$.data.newState;c?.(ie);const ae=U.current;Z(ie?{type:"chatbot_open"}:{type:"chatbot_close",messageCount:ae?Qb(ae):0,durationMs:ae?S2(ae):0})};return window.addEventListener("rcb-toggle-chat-window",ne),()=>{window.removeEventListener("rcb-toggle-chat-window",ne)}}},[te,c,Z]),I.createElement("div",{className:"qa-bot ".concat(!((n=ee.general)===null||n===void 0)&&n.embedded?"embedded-qa-bot":""),ref:F,role:"region","aria-label":w||Wb},I.createElement(C2,{getSessionId:()=>U.current,setSessionId:ne=>{const $=U.current;U.current=ne,ac("RESTORED","".concat($?.slice(-12)," -> ").concat(ne.slice(-12)))},resetSession:()=>{const ne=U.current;j.current=!0,U.current=zb(),ac("RESET","".concat(ne?.slice(-12)," -> ").concat(U.current.slice(-12)))},clearResettingFlag:()=>{j.current=!1}},I.createElement(D2,{trackEvent:Z},I.createElement(lm,null,I.createElement("div",null,I.createElement(B2,null),I.createElement(_b,{ref:e,embedded:((r=ee.general)===null||r===void 0?void 0:r.embedded)||!1,currentOpen:l||!1,enabled:X!==!1,onSetEnabled:ne=>q(!!ne&&void 0)}),I.createElement(Yk,{key:"chatbot-".concat(Q.current,"-").concat(X),settings:ee,flow:R,plugins:ce}),I.createElement("div",{role:"status","aria-live":"polite","aria-label":"Bot response updates",className:"sr-only",id:"bot-live-region"}),I.createElement("div",{id:"chat-input-help",className:"sr-only"},"Type your message and press Enter to send. Use arrow keys to navigate through response options."))))))});Lf.displayName="QABot",Ig('.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:var(--primaryColor,#107180)}.rcb-chat-window .rcb-bot-message a,.rcb-chat-window .rcb-bot-message a:link,.rcb-chat-window .rcb-bot-message a:visited{color:#fff!important;text-decoration:underline!important}.rcb-chat-window .rcb-bot-message a:hover{opacity:.85;text-decoration:underline!important}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .history-button,.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .history-button,.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.qa-bot.bot-logged-in .history-button:hover{opacity:.8}.qa-bot.bot-logged-in .history-button:focus{outline:2px solid #fff;outline-offset:2px}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--primaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:var(--primaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:var(--primaryColor,#107180)!important;border-color:var(--primaryColor,#107180)!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;outline:none!important}.rcb-options:active{background-color:var(--secondaryColor,#107180)!important;border-color:var(--secondaryColor,#107180)!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:var(--secondaryColor,#107180)!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=qa-bot-core]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}.rcb-chat-header-container{background:var(--primaryColor,#1a5b6e)!important;background:linear-gradient(135deg,var(--primaryColor,#1a5b6e) 0,var(--secondaryColor,#107180) 100%)!important}.rcb-toggle-button{align-items:center!important;background:var(--primaryColor,#1a5b6e)!important;display:flex!important;justify-content:center!important}.rcb-toggle-button svg{stroke:#fff!important;color:#fff!important}.rcb-toggle-button *,.rcb-toggle-button img,.rcb-toggle-button svg,.rcb-toggle-button>*{box-sizing:border-box!important;height:50px!important;left:0!important;margin:0 auto!important;max-height:50px!important;max-width:50px!important;min-height:50px!important;min-width:50px!important;padding:2px!important;position:relative!important;top:0!important;width:50px!important}.rcb-send-button{background-color:var(--primaryColor,#1a5b6e)!important}',{insertAt:"top"});const H2=()=>{const[t,e]=I.useState(!1),n=()=>typeof navigator<"u"&&navigator.mediaDevices!==void 0&&typeof navigator.mediaDevices.getDisplayMedia=="function";return{captureScreenshot:async()=>{if(!n())throw new Error("Screen capture is not available in this environment");try{e(!0);const r=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser",cursor:"always",width:{ideal:1920},height:{ideal:1080}},audio:!1}),o=document.createElement("video");o.srcObject=r,await new Promise(u=>{o.onloadedmetadata=()=>{o.play(),u()}});const i=document.createElement("canvas");i.width=o.videoWidth,i.height=o.videoHeight;const a=i.getContext("2d");if(!a)throw new Error("Could not get canvas context");a.drawImage(o,0,0,i.width,i.height);const s=await new Promise(u=>i.toBlob(u,"image/png"));if(!s)throw new Error("Could not create image blob");const l=new Date().toISOString().replace(/[:.]/g,"-"),c=new File([s],"screenshot-".concat(l,".png"),{type:"image/png"});return r.getTracks().forEach(u=>u.stop()),e(!1),c}catch(r){throw ao("Error capturing screenshot:",r),e(!1),r}},isCapturing:t,isScreenCaptureAvailable:n()}},U2=t=>I.createElement(Ub,t,I.createElement("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),I.createElement("polyline",{points:"17 8 12 3 7 8"}),I.createElement("line",{x1:"12",y1:"3",x2:"12",y2:"15"})),j2=t=>new Promise((e,n)=>{const r=new FileReader;r.onload=()=>{if(typeof r.result!="string")return void n(new Error("Failed to read file ".concat(t.name)));const o=r.result.split(",")[1];e({fileName:t.name,contentType:t.type,size:t.size,fileData:o})},r.onerror=()=>n(new Error("Failed to read file ".concat(t.name))),r.readAsDataURL(t)}),W2=t=>Promise.all(t.map(j2)),V2=t=>t<1024?"".concat(t," B"):t<1048576?"".concat((t/1024).toFixed(1)," KB"):"".concat((t/1048576).toFixed(1)," MB"),sc=t=>{let{onFileUpload:e,maxSizeMB:n=10,acceptedTypes:r="image/*,application/pdf,text/*,.doc,.docx",enableScreenshot:o=!1,className:i}=t;const[a,s]=I.useState(!1),[l,c]=I.useState([]),[u,f]=I.useState(null),p=I.useRef(null),{captureScreenshot:m,isCapturing:v,isScreenCaptureAvailable:w}=H2(),y=M=>{const N=document.createElement("div");N.setAttribute("aria-live","assertive"),N.setAttribute("aria-atomic","true"),N.className="sr-only",N.textContent=M,document.body.appendChild(N),setTimeout(()=>document.body.removeChild(N),1e3)},S=M=>{if(!M||M.length===0)return void x2("FileUploadComponent: No valid files provided to handleFiles");let N;try{N=Array.from(M)}catch(U){return ao("FileUploadComponent: Error converting files to array:",U),void y("Error processing selected files. Please try again.")}const H=[...l,...N];c(H);const z=N.length,Q=N.map(U=>U.name).join(", ");y("".concat(z," file").concat(z>1?"s":""," selected: ").concat(Q)),setTimeout(()=>{const U=document.querySelector(".rcb-chat-content");U&&(U.scrollTop=U.scrollHeight)},100),e&&e(H)},T=M=>{M.preventDefault(),M.stopPropagation(),M.type==="dragenter"||M.type==="dragover"?s(!0):M.type==="dragleave"&&s(!1)},P=()=>{try{p.current&&p.current.click()}catch(M){ao("FileUploadComponent: Error in handleButtonClick:",M),y("Error opening file selection dialog. Please try again.")}},E=()=>{f(null)},O=o&&w;return I.createElement("div",{className:"file-upload-container ".concat(i||""),style:{padding:"16px",margin:"8px 0"}},O&&I.createElement("div",{style:{display:"flex",justifyContent:"center",marginBottom:"10px"}},I.createElement("button",{onClick:M=>{M.preventDefault(),(async()=>{try{const N=await m();S([N]),y("Screenshot captured successfully")}catch{y("Error capturing screenshot. Please try again.")}})()},disabled:v,"aria-describedby":"screenshot-help","aria-label":v?"Taking screenshot, please wait":"Take a screenshot to attach",style:{display:"flex",alignItems:"center",gap:"8px",backgroundColor:"#107180",color:"white",border:"none",borderRadius:"5px",padding:"8px 12px",cursor:v?"not-allowed":"pointer",fontSize:"14px",fontWeight:"500",boxShadow:"0 1px 3px rgba(0,0,0,0.2)"}},I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},I.createElement("path",{d:"M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"}),I.createElement("circle",{cx:"12",cy:"13",r:"4"})),v?"Taking screenshot...":"Take screenshot..."),I.createElement("span",{id:"screenshot-help",className:"sr-only"},"Captures the current screen and adds it as an attachment")),I.createElement("div",{className:"file-upload-dropzone ".concat(a?"active":""),onDragEnter:T,onDragLeave:T,onDragOver:T,onDrop:M=>{var N;M.preventDefault(),M.stopPropagation(),s(!1);try{!((N=M.dataTransfer)===null||N===void 0)&&N.files&&M.dataTransfer.files.length>0&&S(M.dataTransfer.files)}catch(H){ao("FileUploadComponent: Error in handleDrop:",H),y("Error processing dropped files. Please try again.")}},role:"button",tabIndex:0,"aria-label":"File upload area. Click to select files or drag and drop files here.","aria-describedby":"upload-instructions",onKeyDown:M=>{M.key!=="Enter"&&M.key!==" "||(M.preventDefault(),P())},style:{padding:"20px",border:"2px dashed #ccc",borderRadius:"8px",backgroundColor:a?"#f0f8ff":"#fafafa",transition:"all 0.3s ease"}},I.createElement("input",{ref:p,type:"file",className:"file-input",onChange:M=>{var N;try{!((N=M.target)===null||N===void 0)&&N.files&&M.target.files.length>0&&S(M.target.files)}catch(H){ao("FileUploadComponent: Error in handleFileSelect:",H),y("Error processing selected files. Please try again.")}},multiple:!0,style:{display:"none"},"aria-label":"Select files to upload",accept:r}),I.createElement("div",{className:"upload-content",onClick:P,style:{cursor:"pointer",flexDirection:"column",alignItems:"center",display:"flex",textAlign:"center",padding:"12px"}},I.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px"}},I.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"10px"}},I.createElement(U2,null),I.createElement("p",{style:{margin:0,fontWeight:"bold"}},"Upload Files")),I.createElement("p",{id:"upload-instructions",style:{margin:0,fontSize:"14px",color:"#666"}},"Drag and drop files here or click to select. (Max ",n,"MB each)")),l.length>0&&I.createElement("div",{className:"selected-files",style:{display:"flex",flexWrap:"wrap",gap:"8px",marginTop:"12px",alignItems:"center"}},I.createElement("span",{style:{fontWeight:400,color:"#888",fontSize:"13px",marginRight:"8px",alignSelf:"center"}},"Selected files:"),l.map((M,N)=>I.createElement("span",{key:N,style:{background:"#fff",color:"#107180",borderRadius:"5px",padding:"4px 12px",fontSize:"14px",marginRight:"4px",marginBottom:"4px",border:"1px solid #ccc",display:"flex",alignItems:"center",gap:"6px",cursor:"pointer"},onClick:H=>{H.stopPropagation(),(z=>{f(z)})(M)}},I.createElement("span",{onClick:H=>{H.stopPropagation(),(z=>{const Q=l.filter((U,j)=>j!==z);c(Q),e&&e(Q)})(N)},style:{cursor:"pointer",color:"#888",fontWeight:"bold",fontSize:"15px",marginRight:"4px",userSelect:"none",lineHeight:1},title:"Remove file","aria-label":"Remove ".concat(M.name)},"×"),M.name," (",V2(M.size),")"))))),(()=>{if(!u)return null;const M=u.type.startsWith("image/"),N=u.type.startsWith("text/"),H=u.type==="application/pdf";return I.createElement("div",{style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},onClick:E},I.createElement("div",{style:{backgroundColor:"white",padding:"20px",borderRadius:"8px",maxWidth:"90%",maxHeight:"90%",overflow:"auto",position:"relative"},onClick:z=>z.stopPropagation()},I.createElement("button",{onClick:E,style:{position:"absolute",top:"10px",right:"10px",background:"none",border:"none",fontSize:"24px",cursor:"pointer",color:"#666"}},"×"),I.createElement("h3",{style:{marginTop:0,marginBottom:"16px"}},u.name),M&&I.createElement("img",{src:URL.createObjectURL(u),alt:u.name,style:{maxWidth:"100%",maxHeight:"70vh"}}),N&&I.createElement("pre",{style:{whiteSpace:"pre-wrap",wordWrap:"break-word",maxHeight:"70vh",overflow:"auto",padding:"16px",backgroundColor:"#f5f5f5",borderRadius:"4px"}},URL.createObjectURL(u)),H&&I.createElement("iframe",{src:URL.createObjectURL(u),style:{width:"100%",height:"70vh",border:"none"},title:u.name}),!M&&!N&&!H&&I.createElement("div",{style:{padding:"20px",textAlign:"center"}},"Preview not available for this file type")))})())};function Y2(t,e){if(!e||Object.keys(e).length===0)return t;const n={};for(const[r,o]of Object.entries(t)){let i=Object.assign({},o);if(i.chatDisabled===void 0){const a=!(!i.options&&!i.checkboxes);i.chatDisabled=a}n[r]=i}return n}function lc(t){return async e=>{const n=await t(e);await e.injectMessage(n)}}const q2=I.forwardRef((t,e)=>{const[n,r]=I.useState(t.defaultOpen||!1),o=I.useRef(null);return I.useImperativeHandle(e,()=>({addMessage:i=>{var a;(a=o.current)===null||a===void 0||a.addMessage(i)},setBotEnabled:i=>{var a;(a=o.current)===null||a===void 0||a.setBotEnabled(i)},openChat:()=>{var i;r(!0),(i=o.current)===null||i===void 0||i.openChat()},closeChat:()=>{var i;r(!1),(i=o.current)===null||i===void 0||i.closeChat()},toggleChat:()=>{var i;r(a=>!a),(i=o.current)===null||i===void 0||i.toggleChat()}}),[]),I.createElement(Lf,{ref:o,apiKey:t.apiKey,qaEndpoint:t.qaEndpoint,ratingEndpoint:t.ratingEndpoint,welcomeMessage:t.welcomeMessage,primaryColor:t.primaryColor,secondaryColor:t.secondaryColor,botName:t.botName,logo:t.logo,placeholder:t.placeholder,errorMessage:t.errorMessage,embedded:t.embedded,isLoggedIn:t.isLoggedIn,allowAnonAccess:t.allowAnonAccess,open:n,onOpenChange:r,footerText:t.footerText,footerLink:t.footerLink,tooltipText:t.tooltipText,onAnalyticsEvent:t.onAnalyticsEvent})});q2.displayName="ProgrammaticQABot";const Mr={QA_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/api/",RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/chat/rating/",METRICS_API_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/api/",METRICS_RATING_ENDPOINT:"https://access-ai-grace1-external.ccs.uky.edu/access/xdmod/chat/rating/",METRICS_QUESTIONS_URL:"https://metrics.access-ci.org/qa_bot_faq",NETLIFY_BASE_URL:"https://access-jsm-api.netlify.app",DEFAULT_API_KEY:"demo-key"},fr={BOT_NAME:"ACCESS Q&A",LOGO:"https://support.access-ci.org/themes/contrib/asp-theme/images/icons/ACCESS-arrrow.svg",WELCOME_MESSAGE:"Hello! What can I help you with?",WELCOME_MESSAGE_LOGGED_OUT:"To ask questions, please log in.",LOGIN_URL:"/login",PRIMARY_COLOR:"#1a5b6e",SECONDARY_COLOR:"#107180",TOOLTIP:"Ask me about ACCESS! 😊"},Yb={SESSION_ID:"access-qa-bot-session-id"};function K2({welcome:t,setTicketForm:e,isLoggedIn:n,trackEvent:r}){return{start:{message:t,options:["Ask a question about ACCESS","Open a Help Ticket","Usage and performance of ACCESS resources (XDMoD)","Report a security issue"],path:o=>(r({type:"chatbot_menu_selected",selection:o.userInput}),o.userInput==="Ask a question about ACCESS"?n?"go_ahead_and_ask":"qa_loop":o.userInput==="Open a Help Ticket"?(e({}),"help_ticket"):o.userInput==="Usage and performance of ACCESS resources (XDMoD)"?"metrics_intro":o.userInput==="Report a security issue"?(e({}),r({type:"chatbot_security_started"}),"security_incident"):"start")},go_ahead_and_ask:{message:`Go ahead and ask your question! I'll do my best to help.
|
|
101
|
+
|
|
102
|
+
<em>This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.</em> <a href="https://support.access-ci.org/tools/access-qa-tool/privacy">Privacy Notice</a>`,renderHtml:["BOT"],path:"qa_loop"}}}let Nf=null;function X2(t){Nf=t}function me(){return Nf?Nf.ticketForm||{}:(console.warn("Form context not available, returning empty form"),{})}function vt(t={}){const e=me();return{...e,email:t.email||e.email,name:t.name||e.name,accessId:t.accessId||e.accessId}}function zf(t){return t&&t.length>0?`
|
|
103
|
+
Attachments: ${t.length} file(s) attached`:""}const oi={SUPPORT:17,LOGIN_ACCESS:30,LOGIN_PROVIDER:31,SECURITY:26};async function G2(t,e="support",n=[]){const r={support:oi.SUPPORT,general_help:oi.SUPPORT,loginAccess:oi.LOGIN_ACCESS,loginProvider:oi.LOGIN_PROVIDER,security:oi.SECURITY}[e]||oi.SUPPORT,o={serviceDeskId:e==="security"?3:2,requestTypeId:r,requestFieldValues:{...t}};return n.length>0&&(o.attachments=await W2(n)),o}async function J2(t,e){var n,r;const o=`${Mr.NETLIFY_BASE_URL}/api/v1/${e}`;try{const i=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!i.ok){let s="";try{const l=await i.text();try{const c=JSON.parse(l);s=c.message||c.error||l}catch{s=l}}catch{s=`HTTP ${i.status} ${i.statusText}`}return i.status===403?s="The ticket service is temporarily unavailable. Please try again later or contact support directly.":i.status===404?s="Ticket service not found. Please try again later.":i.status===500?s="Server error. Please try again later.":i.status===401&&(s="Authentication error with the ticket service. Please contact support."),{success:!1,status:i.status,error:s}}const a=await i.json();return{success:!0,ticketKey:(n=a.data)==null?void 0:n.ticketKey,ticketUrl:(r=a.data)==null?void 0:r.ticketUrl}}catch(i){return{success:!1,error:i instanceof Error?i.message:"Unknown error"}}}async function cc(t,e,n=[]){try{const r=await G2(t,e,n);return await J2(r,e==="security"?"security-incidents":"tickets")}catch(r){return{success:!1,error:r instanceof Error?r.message:"Unknown error"}}}function Qf(t,e="ticket"){return t?t.success?t.ticketUrl&&t.ticketKey?`Your ${e} has been submitted successfully.
|
|
104
|
+
|
|
105
|
+
Ticket: <a href="${t.ticketUrl}" target="_blank">${t.ticketKey}</a>
|
|
106
|
+
|
|
107
|
+
Our support team will review your request and respond accordingly. Thank you for contacting ACCESS.`:`Your ${e} has been submitted successfully.
|
|
108
|
+
|
|
109
|
+
Our support team will review your request and respond accordingly. Thank you for contacting ACCESS.`:`We apologize, but there was an error submitting your ${e}: ${t.error||"Unknown error"}
|
|
110
|
+
|
|
111
|
+
Please try again or contact our support team directly.`:`We apologize, but there was an error submitting your ${e}.
|
|
112
|
+
|
|
113
|
+
Please try again or contact our support team directly.`}function uc(t){return!t||t.trim()===""?{success:!1,promptContent:"Email is required",promptDuration:3e3,promptType:"error"}:/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)?{success:!0}:{success:!1,promptContent:"Please enter a valid email address",promptDuration:3e3,promptType:"error"}}function Qa(){return()=>({success:!0})}function Ha(t){return!t||t.trim()===""||t.trim().toLowerCase()==="skip"?"":t.trim()}function Z2({ticketForm:t,setTicketForm:e,userInfo:n,trackEvent:r}){let o=null;const i=async(a,s=[])=>{o=await cc(a,"loginAccess",s),o.success?(e(l=>({...l,ticketKey:o.ticketKey,ticketUrl:o.ticketUrl})),r({type:"chatbot_ticket_submitted",ticketType:"access_login",success:!0,ticketKey:o.ticketKey})):(e(l=>({...l,submissionError:o.error})),r({type:"chatbot_ticket_error",ticketType:"access_login",errorType:o.error||"unknown"}))};return{access_help:{message:`If you're having trouble logging into the ACCESS website, here are some common issues:
|
|
114
|
+
|
|
115
|
+
• Make sure you're using a supported browser (Chrome, Firefox, Safari)
|
|
116
|
+
• Clear your browser cookies and cache
|
|
117
|
+
• Check if you're using the correct identity provider
|
|
118
|
+
|
|
119
|
+
Would you like to submit a help ticket for ACCESS login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],path:a=>a.userInput==="Yes, let's create a ticket"?"access_login_description":"start"},access_login_description:{message:"Describe your login issue.",function:a=>{const s=me();e({...s,description:a.userInput,email:n.email||s.email,name:n.name||s.name,accessId:n.accessId||s.accessId}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"description"})},path:"access_login_identity"},access_login_identity:{message:"Which identity provider were you using?",options:["ACCESS","Github","Google","Institution","Microsoft","ORCID","Other"],function:a=>{const s=me();e({...s,identityProvider:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"identity_provider"})},path:"access_login_browser"},access_login_browser:{message:"Which browser were you using?",options:["Chrome","Firefox","Edge","Safari","Other"],function:a=>{const s=me();e({...s,browser:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"browser"})},path:"access_login_attachment"},access_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:a=>{const s=me();e({...s,wantsAttachment:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"attachment_choice"})},path:a=>{if(a.userInput==="Yes")return"access_login_upload";const s=vt(n);return s.email?s.name?s.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"}},access_login_upload:{message:"Please upload your screenshot.",component:k.jsx(sc,{onFileUpload:a=>{e(s=>({...s,uploadedFiles:a})),a.forEach(s=>{r({type:"chatbot_file_uploaded",fileType:s.type||"unknown",fileSize:s.size})})},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const a=me();e({...a,uploadConfirmed:!0}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"file_upload"})},path:()=>{const a=vt(n);return a.email?a.name?a.accessId?"access_login_summary":"access_login_accessid":"access_login_name":"access_login_email"}},access_login_email:{message:"What is your email?",validateTextInput:uc,function:a=>{const s=me();e({...s,email:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"email"})},path:()=>{const a=vt(n);return a.name?a.accessId?"access_login_summary":"access_login_accessid":"access_login_name"}},access_login_name:{message:"What is your name?",function:a=>{const s=me();e({...s,name:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"name"})},path:()=>vt(n).accessId?"access_login_summary":"access_login_accessid"},access_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:Qa(),function:a=>{const s=me();e({...s,accessId:Ha(a.userInput)}),r({type:"chatbot_ticket_step",ticketType:"access_login",step:"access_id"})},path:"access_login_summary"},access_login_summary:{message:a=>{const s=me(),l=vt(n),c=zf(s.uploadedFiles);let u=l.accessId;return a.prevPath==="access_login_accessid"&&a.userInput&&(u=a.userInput),`Thank you for providing your ACCESS login issue details. Here's a summary:
|
|
120
|
+
|
|
121
|
+
Name: ${l.name||"Not provided"}
|
|
122
|
+
Email: ${l.email||"Not provided"}
|
|
123
|
+
ACCESS ID: ${u||"Not provided"}
|
|
124
|
+
Identity Provider: ${s.identityProvider||"Not provided"}
|
|
125
|
+
Browser: ${s.browser||"Not provided"}
|
|
126
|
+
Issue Description: ${s.description||"Not provided"}${c}
|
|
127
|
+
|
|
128
|
+
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],renderHtml:["BOT","USER"],function:async a=>{if(a.userInput==="Submit Ticket"){const s=me(),l=vt(n),c={email:l.email||"",name:l.name||"",accessId:l.accessId||"",description:s.description||"",identityProvider:s.identityProvider||"",browser:s.browser||""};await i(c,s.uploadedFiles||[])}},path:a=>a.userInput==="Submit Ticket"?"access_login_success":"start"},access_login_success:{message:lc(()=>Qf(o,"ACCESS login ticket")),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}function $2({ticketForm:t,setTicketForm:e,userInfo:n,trackEvent:r}){let o=null;const i=async(a,s=[])=>{o=await cc(a,"loginProvider",s),o.success?(e(l=>({...l,ticketKey:o.ticketKey,ticketUrl:o.ticketUrl})),r({type:"chatbot_ticket_submitted",ticketType:"resource_login",success:!0,ticketKey:o.ticketKey})):(e(l=>({...l,submissionError:o.error})),r({type:"chatbot_ticket_error",ticketType:"resource_login",errorType:o.error||"unknown"}))};return{resource_help:{message:`If you're having trouble logging into an affiliated infrastructure or resource provider, here are some common issues:
|
|
129
|
+
|
|
130
|
+
• Ensure your allocation is active
|
|
131
|
+
• Confirm you have the correct username for that resource
|
|
132
|
+
• Check <a href="https://operations.access-ci.org/infrastructure_news_view">System Status News</a> to see if the resource is undergoing maintenance
|
|
133
|
+
|
|
134
|
+
Would you like to submit a help ticket for resource provider login issues?`,options:["Yes, let's create a ticket","Back to Main Menu"],renderHtml:["BOT"],path:a=>a.userInput==="Yes, let's create a ticket"?"resource_login_resource":"start"},resource_login_resource:{message:"Which ACCESS Resource are you trying to access?",options:["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"],function:a=>{const s=me();e({...s,resource:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"resource_selection"})},path:"resource_login_userid"},resource_login_userid:{message:"What is your user ID at the resource?",function:a=>{const s=me();e({...s,userIdResource:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"user_id"})},path:"resource_login_description"},resource_login_description:{message:"Please describe the issue you're having logging in.",function:a=>{const s=me();e({...s,description:a.userInput,email:n.email||s.email,name:n.name||s.name,accessId:n.accessId||s.accessId}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"description"})},path:"resource_login_attachment"},resource_login_attachment:{message:"Would you like to attach a screenshot?",options:["Yes","No"],function:a=>{const s=me();e({...s,wantsAttachment:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"attachment_choice"})},path:a=>{if(a.userInput==="Yes")return"resource_login_upload";const s=vt(n);return s.email?s.name?s.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name":"resource_login_email"}},resource_login_upload:{message:"Please upload your screenshot.",component:k.jsx(sc,{onFileUpload:a=>{e(s=>({...s,uploadedFiles:a})),a.forEach(s=>{r({type:"chatbot_file_uploaded",fileType:s.type||"unknown",fileSize:s.size})})},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const a=me();e({...a,uploadConfirmed:!0}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"file_upload"})},path:()=>{const a=vt(n);return a.email?a.name?a.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name":"resource_login_email"}},resource_login_email:{message:"What is your email?",validateTextInput:uc,function:a=>{const s=me();e({...s,email:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"email"})},path:()=>{const a=vt(n);return a.name?a.accessId?"resource_login_summary":"resource_login_accessid":"resource_login_name"}},resource_login_name:{message:"What is your name?",function:a=>{const s=me();e({...s,name:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"name"})},path:()=>vt(n).accessId?"resource_login_summary":"resource_login_accessid"},resource_login_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:Qa(),function:a=>{const s=me();e({...s,accessId:Ha(a.userInput)}),r({type:"chatbot_ticket_step",ticketType:"resource_login",step:"access_id"})},path:"resource_login_summary"},resource_login_summary:{message:a=>{const s=me(),l=vt(n),c=zf(s.uploadedFiles);let u=l.accessId;return a.prevPath==="resource_login_accessid"&&a.userInput&&(u=a.userInput),`Thank you for providing your resource login issue details. Here's a summary:
|
|
135
|
+
|
|
136
|
+
Name: ${l.name||"Not provided"}
|
|
137
|
+
Email: ${l.email||"Not provided"}
|
|
138
|
+
ACCESS ID: ${u||"Not provided"}
|
|
139
|
+
Resource: ${s.resource||"Not provided"}
|
|
140
|
+
Resource User ID: ${s.userIdResource||"Not provided"}
|
|
141
|
+
Issue Description: ${s.description||"Not provided"}${c}
|
|
142
|
+
|
|
143
|
+
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async a=>{if(a.userInput==="Submit Ticket"){const s=me(),l=vt(n),c={email:l.email||"",name:l.name||"",accessId:l.accessId||"",accessResource:s.resource||"",description:s.description||"",userIdAtResource:s.userIdResource||""};await i(c,s.uploadedFiles||[])}},path:a=>a.userInput==="Submit Ticket"?"resource_login_success":"start"},resource_login_success:{message:lc(()=>Qf(o,"resource login ticket")),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const eE=[" C, C++","Abaqus","ACCESS","ACCESS-credits","ACCESS-website","Accounts","ACLS","Adding users","Affiliations","Affinity Groups","AI","Algorithms","Allocation extension","Allocation Management","Allocation proposal","Allocation Time","Allocation users","AMBER","AMIE","Anaconda","Analysis","API","Application Status","ARCGIS","Architecture","Archiving","Astrophysics","ATLAS","Authentication","AWS","AZURE","Backup","BASH","Batch Jobs","Benchmarking","Big Data","Bioinformatics","Biology","Ceph","CFD","cgroups","CHARMM","Checkpoint","cilogon","citation","Cloud","Cloud Computing","Cloud Lab","Cloud Storage","Cluster Management","Cluster Support","CMMC","Community Outreach","Compiling","Composible Systems","Computataional Chemistry","COMSOL","Conda","Condo","Containers","Core dump","Core hours","CP2K","CPU architecture","CPU bound","CUDA","Cybersecurity","CYVERSE","Data","Data Storage","Data-access-protocols","Data-analysis","Data-compliance","Data-lifecycle","Data-management","Data-management-software","Data-provenance","Data-reproducibility","Data-retention","Data-science","Data-sharing","Data-transfer","Data-wrangling","Database-update","Debugging","Debugging, Optimizatio and Profiling","Deep-learning","Dependencies","Deployment","DFT","Distributed-computing","DNS","Docker","Documentation","DOI","DTN","Easybuild","Email","Encryption","Environment-modules","Errors","Extension","FastX","Federated-authentication","File transfers","File-formats","File-limits","File-systems","File-transfer","Finite-element-analysis","Firewall","Fortran","Frameworks and IDE's","GAMESS","Gateways","GATK","Gaussian","GCC","Genomics","GIS","Git","Globus","GPFS","GPU","Gravitational-waves","Gridengine","GROMACS","Hadoop","Hardware","Image-processing","Infiniband","Interactive-mode","Interconnect","IO-Issue","ISILON","Java","Jekyll","Jetstream","Job-accounting","Job-array","Job-charging","Job-failure","Job-sizing","Job-submission","Julia","Jupyterhub","Key-management","Kubernetes","KyRIC","LAMMPS","Library-paths","License","Linear-programming","Linux","LMOD","login","LSF","Lustre","Machine-learning","Management","Materials-science","Mathematica","MATLAB","Memory","Metadata","Modules","Molecular-dynamics","Monte-carlo","MPI","NAMD","NetCDF","Networking","Neural-networks","NFS","NLP","NoMachine","Nvidia","Oceanography","OnDemnad","Open-science-grid","Open-storage-network","OpenCV","Openfoam","OpenMP","OpenMPI","OpenSHIFT","Openstack","Optimization","OS","OSG","Parallelization","Parameter-sweeps","Paraview","Particle-physics","password","PBS","Pegasus","Pending-jobs","Performance-tuning","Permissions","Physiology","PIP","PODMAN","Portals","Pre-emption","Professional and Workforce Development","Professional-development","Profile","Profiling","Programming","Programming Languages","Programming-best-practices","Project-management","Project-renewal","Provisioning","Pthreads","Publication-database","Putty","Python","Pytorch","Quantum-computing","Quantum-mechanics","Quota","R","RDP","React","Reporting","Research-facilitation","Research-grants","Resources","Rstudio-server","S3","Samba","SAS","Scaling","Schedulers","Scheduling","Science DMZ","Science Gateways","Scikit-learn","Scratch","screen","scripting","SDN","Secure Computing and Data","Secure-data-architecture","Serverless-hpc","setup","sftp","SGE","Shell Scripting","Shifter","Singularity","SLURM","SMB","Smrtanalysis","Software Installations","Software-carpentry","SPACK","SPARK","Spectrum-scale","SPSS","SQL","SSH","Stampede2","STATA","Storage","Supplement","Support","TCP","Technical-training-for-hpc","Tensorflow","Terminal-emulation-and-window-management","Tickets","Timing-issue","TMUX","Tools","Training","Transfer SUs","Trinity","Tuning","Unix-environment","Upgrading","Vectorization","Version-control","vim","VNC","VPN","Workflow","Workforce-development","X11","Xalt","XDMoD","XML","XSEDE","I don't see a relevant keyword"],tE=["ACES","Anvil","Bridges-2","DARWIN","Delta","DeltaAI","Derecho","Expanse","FASTER","Granite","Jetstream2","KyRIC","Launch","Neocortex","Ookami","Open Science Grid","Open Storage Network","Ranch","Stampede3"];function nE({ticketForm:t,setTicketForm:e,userInfo:n,trackEvent:r}){let o=null;const i=async(a,s=[])=>{o=await cc(a,"support",s),o.success?(e(l=>({...l,ticketKey:o.ticketKey,ticketUrl:o.ticketUrl})),r({type:"chatbot_ticket_submitted",ticketType:"general_help",success:!0,ticketKey:o.ticketKey})):(e(l=>({...l,submissionError:o.error})),r({type:"chatbot_ticket_error",ticketType:"general_help",errorType:o.error||"unknown"}))};return{general_help_summary_subject:{message:"Provide a short title for your ticket.",function:a=>{const s=me();e({...s,summary:a.userInput,email:n.email||s.email,name:n.name||s.name,accessId:n.accessId||s.accessId}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"title"})},path:"general_help_category"},general_help_category:{message:"What type of issue are you experiencing?",options:["User Account Question","Allocation Question","User Support Question","CSSN/CCEP Question","Training Question","Metrics Question","OnDemand Question","Pegasus Question","XDMoD Question","Some Other Question"],function:a=>{const s=me();e({...s,category:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"category"})},path:"general_help_description"},general_help_description:{message:"Please describe your issue.",function:a=>{const s=me();e({...s,description:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"description"})},path:"general_help_attachment"},general_help_attachment:{message:"Would you like to attach a file to your ticket?",options:["Yes","No"],function:a=>{const s=me();e({...s,wantsAttachment:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"attachment_choice"})},path:a=>a.userInput==="Yes"?"general_help_upload":"general_help_resource"},general_help_upload:{message:"Please upload your file.",component:k.jsx(sc,{onFileUpload:a=>{e(s=>({...s,uploadedFiles:a})),a.forEach(s=>{r({type:"chatbot_file_uploaded",fileType:s.type||"unknown",fileSize:s.size})})},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const a=me();e({...a,uploadConfirmed:!0}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"file_upload"})},path:"general_help_resource"},general_help_resource:{message:"Does your problem involve an ACCESS Resource?",options:["Yes","No"],function:a=>{const s=me();e({...s,involvesResource:a.userInput.toLowerCase()}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"resource_choice"})},path:a=>a.userInput==="Yes"?"general_help_resource_details":"general_help_keywords"},general_help_resource_details:{message:"Please select the ACCESS Resource involved with your issue:",options:tE,function:a=>{const s=me();e({...s,resourceDetails:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"resource_selection"})},path:"general_help_user_id_at_resource"},general_help_user_id_at_resource:{message:"What is your User ID at the selected resource(s)? (Optional - press Enter to skip)",validateTextInput:Qa(),function:a=>{const s=me();e({...s,userIdAtResource:Ha(a.userInput)}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"resource_user_id"})},path:"general_help_keywords"},general_help_keywords:{message:"Please add up to 5 keywords to help route your ticket.",checkboxes:{items:eE,min:0,max:5},function:a=>{const s=me();e({...s,keywords:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"keywords"})},path:a=>a.userInput&&a.userInput.includes("I don't see a relevant keyword")?"general_help_additional_keywords":"general_help_priority"},general_help_additional_keywords:{message:"Please enter additional keywords, separated by commas:",function:a=>{const s=me(),l=s.keywords||[],c=a.userInput,u=(Array.isArray(l)?[...l]:String(l).split(",").map(p=>p.trim())).filter(p=>p!=="I don't see a relevant keyword"),f=u.length>0?[...u,c].join(", "):c;e({...s,keywords:f,suggestedKeyword:c}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"additional_keywords"})},path:"general_help_priority"},general_help_priority:{message:"Please select a priority for your issue:",options:["Lowest","Low","Medium","High","Highest"],function:a=>{const s=me();e({...s,priority:a.userInput.toLowerCase()}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"priority"})},path:()=>{const a=vt(n);return a.email?a.name?a.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name":"general_help_email"}},general_help_email:{message:"What is your email address?",validateTextInput:uc,function:a=>{const s=me();e({...s,email:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"email"})},path:()=>{const a=vt(n);return a.name?a.accessId?"general_help_ticket_summary":"general_help_accessid":"general_help_name"}},general_help_name:{message:"What is your name?",function:a=>{const s=me();e({...s,name:a.userInput}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"name"})},path:()=>vt(n).accessId?"general_help_ticket_summary":"general_help_accessid"},general_help_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:Qa(),function:a=>{const s=me();e({...s,accessId:Ha(a.userInput)}),r({type:"chatbot_ticket_step",ticketType:"general_help",step:"access_id"})},path:"general_help_ticket_summary"},general_help_ticket_summary:{message:a=>{const s=me(),l=vt(n),c=zf(s.uploadedFiles);let u=l.accessId;a.prevPath==="general_help_accessid"&&a.userInput&&(u=a.userInput);let f="";return s.involvesResource==="yes"&&(f=`
|
|
144
|
+
Resource: ${s.resourceDetails||"Not specified"}`,s.userIdAtResource&&(f+=`
|
|
145
|
+
User ID at Resource: ${s.userIdAtResource}`)),`Thank you for providing your issue details. Here's a summary:
|
|
146
|
+
|
|
147
|
+
Name: ${l.name||"Not provided"}
|
|
148
|
+
Email: ${l.email||"Not provided"}
|
|
149
|
+
ACCESS ID: ${u||"Not provided"}
|
|
150
|
+
Issue Summary: ${s.summary||"Not provided"}
|
|
151
|
+
Category: ${s.category||"Not provided"}
|
|
152
|
+
Priority: ${s.priority||"Not provided"}
|
|
153
|
+
Keywords: ${s.keywords||"Not provided"}
|
|
154
|
+
Issue Description: ${s.description||"Not provided"}${f}${c}
|
|
155
|
+
|
|
156
|
+
Would you like to submit this ticket?`},options:["Submit Ticket","Back to Main Menu"],function:async a=>{if(a.userInput==="Submit Ticket"){const s=me(),l=vt(n),c={email:l.email||"",summary:s.summary||"General Support Ticket",description:s.description||"",priority:s.priority||"medium",accessId:l.accessId||"",name:l.name||"",issueType:s.category||"",hasResourceProblem:s.involvesResource==="yes"?"Yes":"No",userIdAtResource:s.userIdAtResource||"",resourceName:s.resourceDetails||"",keywords:s.keywords||"",noRelevantKeyword:s.suggestedKeyword?"checked":"",suggestedKeyword:s.suggestedKeyword||""};await i(c,s.uploadedFiles||[])}},path:a=>a.userInput==="Submit Ticket"?"general_help_success":"start"},general_help_success:{message:lc(()=>Qf(o,"support ticket")),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const rE={"Logging into ACCESS website":"access_login","Logging into a resource":"resource_login","Another question":"general_help"};function oE({ticketForm:t,setTicketForm:e,userInfo:n,trackEvent:r}){const o=Z2({ticketForm:t,setTicketForm:e,userInfo:n,trackEvent:r}),i=$2({ticketForm:t,setTicketForm:e,userInfo:n,trackEvent:r}),a=nE({ticketForm:t,setTicketForm:e,userInfo:n,trackEvent:r});return{help_ticket:{message:"What is your help ticket related to?",options:["Logging into ACCESS website","Logging into a resource","Another question"],function:s=>{e(l=>({...l,ticketType:s.userInput})),r({type:"chatbot_ticket_started",ticketType:rE[s.userInput]||s.userInput})},path:s=>s.userInput==="Logging into ACCESS website"?"access_help":s.userInput==="Logging into a resource"?"resource_help":s.userInput==="Another question"?"general_help_summary_subject":"help_ticket"},...o,...i,...a}}function so(t){const e=me();return{...e,email:t.email||e.email,name:t.name||e.name,accessId:t.accessId||e.accessId}}function iE(t){return t?t.success?t.ticketUrl&&t.ticketKey?`Your security incident report has been submitted successfully.
|
|
157
|
+
|
|
158
|
+
Ticket: <a href="${t.ticketUrl}" target="_blank">${t.ticketKey}</a>
|
|
159
|
+
|
|
160
|
+
Our cybersecurity team will review your report and respond accordingly. Thank you for helping keep ACCESS secure.`:`Your security incident report has been submitted successfully.
|
|
161
|
+
|
|
162
|
+
Our cybersecurity team will review your report and respond accordingly. Thank you for helping keep ACCESS secure.`:`We apologize, but there was an error submitting your security incident report: ${t.error}
|
|
163
|
+
|
|
164
|
+
Please try again or contact our cybersecurity team directly.`:`We apologize, but there was an error submitting your security incident report.
|
|
165
|
+
|
|
166
|
+
Please try again or contact our cybersecurity team directly.`}function aE({ticketForm:t,setTicketForm:e,userInfo:n,trackEvent:r}){let o=null,i=null;const a=async(s,l=[],c)=>{i=await cc(s,"security",l),i.success?(e(u=>({...u,ticketKey:i.ticketKey,ticketUrl:i.ticketUrl})),r({type:"chatbot_security_submitted",success:!0,priority:c||"unknown",ticketKey:i.ticketKey})):(e(u=>({...u,submissionError:i.error})),r({type:"chatbot_ticket_error",ticketType:"security",errorType:i.error||"unknown"}))};return{security_incident:{message:"You're reporting a security incident. Please provide a brief summary of the security concern.",function:s=>{const l=me();e({...l,summary:s.userInput,email:n.email||l.email,name:n.name||l.name,accessId:n.accessId||l.accessId}),r({type:"chatbot_ticket_step",ticketType:"security",step:"summary"})},path:"security_priority"},security_priority:{message:"What is the priority level of this security incident?",options:["Critical","High","Medium","Low"],function:s=>{const l=me();e({...l,priority:s.userInput.toLowerCase()}),r({type:"chatbot_ticket_step",ticketType:"security",step:"priority"})},path:"security_description"},security_description:{message:"Please provide a detailed description of the security incident or concern.",function:s=>{const l=me();e({...l,description:s.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"description"})},path:"security_attachment"},security_attachment:{message:"Do you have any files (screenshots, logs, etc.) that would help with this security incident?",options:["Yes","No"],function:s=>{const l=me();e({...l,wantsAttachment:s.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"attachment_choice"})},path:s=>s.userInput==="Yes"?"security_upload":"security_contact_check"},security_upload:{message:"Please upload your files.",component:k.jsx(sc,{onFileUpload:s=>{e(l=>({...l,uploadedFiles:s})),s.forEach(l=>{r({type:"chatbot_file_uploaded",fileType:l.type||"unknown",fileSize:l.size})})},enableScreenshot:!0,maxSizeMB:10}),options:["Continue"],function:()=>{const s=me();e({...s,uploadConfirmed:!0}),r({type:"chatbot_ticket_step",ticketType:"security",step:"file_upload"})},path:"security_contact_check"},security_contact_check:{message:()=>{const s=so(n);return s.name&&s.email&&s.accessId?`I have your contact information:
|
|
167
|
+
|
|
168
|
+
Name: ${s.name}
|
|
169
|
+
Email: ${s.email}
|
|
170
|
+
ACCESS ID: ${s.accessId}
|
|
171
|
+
|
|
172
|
+
Is this correct?`:"I need your contact information."},options:()=>{const s=so(n);return s.name&&s.email&&s.accessId?["Yes, that's correct","Let me update it"]:[]},chatDisabled:()=>{const s=so(n);return!!(s.name&&s.email&&s.accessId)},path:s=>s.userInput==="Yes, that's correct"?"security_summary":s.userInput==="Let me update it"?"security_name":"security_email"},security_email:{message:"What is your email address?",validateTextInput:uc,function:s=>{const l=me();e({...l,email:s.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"email"})},path:()=>{const s=so(n);return s.name?s.accessId?"security_summary":"security_accessid":"security_name"}},security_name:{message:"What is your name?",function:s=>{const l=me();e({...l,name:s.userInput}),r({type:"chatbot_ticket_step",ticketType:"security",step:"name"})},path:()=>{const s=so(n);return s.email?s.accessId?"security_summary":"security_accessid":"security_email"}},security_accessid:{message:"What is your ACCESS ID? (Optional - press Enter to skip)",validateTextInput:Qa(),function:s=>{const l=Ha(s.userInput);o=l;const c=me();e({...c,accessId:l}),r({type:"chatbot_ticket_step",ticketType:"security",step:"access_id"})},path:"security_summary"},security_summary:{message:()=>{const s=me(),l=so(n),c={...s,name:l.name||s.name,email:l.email||s.email,accessId:o||l.accessId||s.accessId};let u="";s.uploadedFiles&&s.uploadedFiles.length>0&&(u=`
|
|
173
|
+
Attachments: ${s.uploadedFiles.length} file(s) attached`);const f=c.accessId||"Not provided";return`Here's a summary of your security incident report:
|
|
174
|
+
|
|
175
|
+
Summary: ${c.summary||"Not provided"}
|
|
176
|
+
Priority: ${c.priority||"Not provided"}
|
|
177
|
+
Name: ${c.name||"Not provided"}
|
|
178
|
+
Email: ${c.email||"Not provided"}
|
|
179
|
+
ACCESS ID: ${f}
|
|
180
|
+
Description: ${c.description||"Not provided"}${u}
|
|
181
|
+
|
|
182
|
+
Would you like to submit this security incident report?`},options:["Submit Security Report","Back to Main Menu"],function:async s=>{if(s.userInput==="Submit Security Report"){const l=me(),c=so(n),u={...l,name:c.name||l.name,email:c.email||l.email,accessId:o||c.accessId||l.accessId},f={summary:u.summary||"",priority:u.priority||"",description:u.description||"",name:u.name||"",email:u.email||"",accessId:u.accessId||""};await a(f,l.uploadedFiles||[],u.priority)}},path:s=>s.userInput==="Submit Security Report"?"security_success":"start"},security_success:{message:lc(()=>iE(i)),options:["Back to Main Menu"],renderHtml:["BOT"],path:"start"}}}const yt=[];for(let t=0;t<256;++t)yt.push((t+256).toString(16).slice(1));function sE(t,e=0){return(yt[t[e+0]]+yt[t[e+1]]+yt[t[e+2]]+yt[t[e+3]]+"-"+yt[t[e+4]]+yt[t[e+5]]+"-"+yt[t[e+6]]+yt[t[e+7]]+"-"+yt[t[e+8]]+yt[t[e+9]]+"-"+yt[t[e+10]]+yt[t[e+11]]+yt[t[e+12]]+yt[t[e+13]]+yt[t[e+14]]+yt[t[e+15]]).toLowerCase()}let Hf;const lE=new Uint8Array(16);function cE(){if(!Hf){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Hf=crypto.getRandomValues.bind(crypto)}return Hf(lE)}const uE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),qb={randomUUID:uE};function Uf(t,e,n){var r;if(qb.randomUUID&&!t)return qb.randomUUID();t=t||{};const o=t.random??((r=t.rng)==null?void 0:r.call(t))??cE();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=o[6]&15|64,o[8]=o[8]&63|128,sE(o)}function dE({sessionId:t,apiKey:e,trackEvent:n}){let r=null;return{metrics_intro:{message:`Please type your question about usage and performance metrics (XDMoD) below. You can see some <a target="_blank" href="${Mr.METRICS_QUESTIONS_URL}">examples here</a>.
|
|
183
|
+
|
|
184
|
+
<em>This assistant is powered by AI. Responses may not always be accurate. Do not share passwords or secrets.</em> <a href="https://support.access-ci.org/tools/access-qa-tool/privacy">Privacy Notice</a>`,renderHtml:["BOT"],path:"metrics_loop"},metrics_loop:{message:async o=>{const{userInput:i}=o;if(i==="👍 Helpful"||i==="👎 Not helpful"){if(e&&t&&r){const a={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":e,"X-Session-ID":t,"X-Query-ID":r,"X-Feedback":i==="👍 Helpful"?"1":"0"};try{await fetch(Mr.METRICS_RATING_ENDPOINT,{method:"POST",headers:a})}catch(s){console.error("Error sending metrics feedback:",s)}}return"Thanks for the feedback! Ask another question about usage and performance metrics (XDMoD) or start a new chat."}else try{const a=Uf();r=a,n({type:"chatbot_metrics_question_sent",queryId:a});const s={"Content-Type":"application/json","X-Origin":"metrics","X-API-KEY":e,"X-Session-ID":t,"X-Query-ID":a},l=(await(await fetch(Mr.METRICS_API_ENDPOINT,{method:"POST",headers:s,body:JSON.stringify({query:i})})).json()).response,c=l;return await o.injectMessage(c),setTimeout(async()=>{await o.injectMessage("Ask another question about usage and performance metrics (XDMoD) or start a new chat.")},100),null}catch(a){return console.error("Error in metrics flow:",a),"I'm sorry, there was an error processing your question. Please try again."}},renderMarkdown:["BOT"],options:o=>o.userInput==="👍 Helpful"||o.userInput==="👎 Not helpful"?[]:["👍 Helpful","👎 Not helpful"],chatDisabled:!1,path:"metrics_loop"}}}function fE(){if(typeof window>"u")return Uf();let t=localStorage.getItem(Yb.SESSION_ID);return t||(t=Uf(),localStorage.setItem(Yb.SESSION_ID,t)),t}const Kb="access-qa-bot-shadow-overrides",hE=`
|
|
185
|
+
.rcb-checkbox-container {
|
|
186
|
+
display: flex !important;
|
|
187
|
+
flex-wrap: wrap !important;
|
|
188
|
+
gap: 8px !important;
|
|
189
|
+
margin-left: 16px !important;
|
|
190
|
+
padding-top: 12px !important;
|
|
191
|
+
max-width: 100% !important;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.rcb-checkbox-row-container {
|
|
195
|
+
display: flex !important;
|
|
196
|
+
align-items: center !important;
|
|
197
|
+
background-color: #ffffff !important;
|
|
198
|
+
border: 1px solid #d0d0d0 !important;
|
|
199
|
+
border-radius: 6px !important;
|
|
200
|
+
cursor: pointer !important;
|
|
201
|
+
padding: 8px 12px !important;
|
|
202
|
+
margin: 0 !important;
|
|
203
|
+
min-height: auto !important;
|
|
204
|
+
max-height: auto !important;
|
|
205
|
+
width: auto !important;
|
|
206
|
+
flex: 0 0 auto !important;
|
|
207
|
+
transition: all 0.2s ease !important;
|
|
208
|
+
font-size: 14px !important;
|
|
209
|
+
font-weight: 400 !important;
|
|
210
|
+
color: var(--primaryColor, #107180) !important;
|
|
211
|
+
text-align: center !important;
|
|
212
|
+
box-sizing: border-box !important;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.rcb-checkbox-row-container:hover {
|
|
216
|
+
background-color: #e8f4f8 !important;
|
|
217
|
+
border-color: var(--primaryColor, #107180) !important;
|
|
218
|
+
transform: translateY(-1px) !important;
|
|
219
|
+
box-shadow: 0 2px 4px rgba(16, 113, 128, 0.2) !important;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.rcb-checkbox-row-container[data-checked="true"] {
|
|
223
|
+
background-color: var(--primaryColor, #107180) !important;
|
|
224
|
+
border-color: var(--primaryColor, #107180) !important;
|
|
225
|
+
color: white !important;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.rcb-checkbox-row {
|
|
229
|
+
margin-left: 0px !important;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.rcb-checkbox-mark {
|
|
233
|
+
width: 14px !important;
|
|
234
|
+
height: 14px !important;
|
|
235
|
+
margin-right: 6px !important;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.rcb-checkbox-label {
|
|
239
|
+
font-size: 13px !important;
|
|
240
|
+
margin: 0 !important;
|
|
241
|
+
white-space: nowrap !important;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.rcb-checkbox-next-button {
|
|
245
|
+
background-color: #ffffff !important;
|
|
246
|
+
border: 1px solid #d0d0d0 !important;
|
|
247
|
+
border-radius: 6px !important;
|
|
248
|
+
cursor: pointer !important;
|
|
249
|
+
padding: 8px 12px !important;
|
|
250
|
+
margin: 0 !important;
|
|
251
|
+
min-height: auto !important;
|
|
252
|
+
max-height: auto !important;
|
|
253
|
+
width: auto !important;
|
|
254
|
+
flex: 0 0 auto !important;
|
|
255
|
+
transition: all 0.2s ease !important;
|
|
256
|
+
font-size: 14px !important;
|
|
257
|
+
font-weight: 400 !important;
|
|
258
|
+
color: var(--secondaryColor, #107180) !important;
|
|
259
|
+
text-align: center !important;
|
|
260
|
+
box-sizing: border-box !important;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.rcb-checkbox-next-button:hover {
|
|
264
|
+
background-color: #e8f4f8 !important;
|
|
265
|
+
border-color: var(--secondaryColor, #107180) !important;
|
|
266
|
+
transform: translateY(-1px) !important;
|
|
267
|
+
box-shadow: 0 2px 4px rgba(16, 113, 128, 0.2) !important;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.rcb-options-container {
|
|
271
|
+
display: flex !important;
|
|
272
|
+
flex-direction: row !important;
|
|
273
|
+
flex-wrap: wrap !important;
|
|
274
|
+
gap: 8px !important;
|
|
275
|
+
margin: 16px 16px !important;
|
|
276
|
+
padding: 0 !important;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.rcb-options {
|
|
280
|
+
border: 1px solid #d0d0d0 !important;
|
|
281
|
+
outline: none !important;
|
|
282
|
+
background-color: #ffffff !important;
|
|
283
|
+
border-radius: 6px !important;
|
|
284
|
+
padding: 8px 12px !important;
|
|
285
|
+
cursor: pointer !important;
|
|
286
|
+
transition: all 0.2s ease !important;
|
|
287
|
+
text-align: center !important;
|
|
288
|
+
font-size: 14px !important;
|
|
289
|
+
font-weight: 400 !important;
|
|
290
|
+
color: var(--secondaryColor, #107180) !important;
|
|
291
|
+
width: auto !important;
|
|
292
|
+
flex: 0 0 auto !important;
|
|
293
|
+
box-sizing: border-box !important;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.rcb-options:hover {
|
|
297
|
+
background-color: #e8f4f8 !important;
|
|
298
|
+
border-color: var(--secondaryColor, #107180) !important;
|
|
299
|
+
transform: translateY(-1px) !important;
|
|
300
|
+
box-shadow: 0 2px 4px rgba(16, 113, 128, 0.2) !important;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.rcb-options:active {
|
|
304
|
+
background-color: var(--secondaryColor, #107180) !important;
|
|
305
|
+
border-color: var(--secondaryColor, #107180) !important;
|
|
306
|
+
color: white !important;
|
|
307
|
+
transform: translateY(0) !important;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.rcb-bot-message a,
|
|
311
|
+
.rcb-chat-window .rcb-bot-message a:link,
|
|
312
|
+
.rcb-chat-window .rcb-bot-message a:visited {
|
|
313
|
+
color: #ffffff !important;
|
|
314
|
+
text-decoration: underline !important;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.rcb-bot-message a:hover {
|
|
318
|
+
opacity: 0.85;
|
|
319
|
+
text-decoration: underline !important;
|
|
320
|
+
}
|
|
321
|
+
`;function pE(t){if(!t)return;const e=t.getRootNode();if(!(e instanceof ShadowRoot)||e.getElementById(Kb))return;const n=document.createElement("style");n.id=Kb,n.textContent=hE,e.appendChild(n)}const jf=I.forwardRef((t,e)=>{const{apiKey:n=Mr.DEFAULT_API_KEY,isLoggedIn:r=!1,loginUrl:o=fr.LOGIN_URL,userEmail:i,userName:a,accessId:s,actingUser:l,ringEffect:c,defaultOpen:u,onClose:f,open:p,onOpenChange:m,embedded:v=!1,welcome:w,qaEndpoint:y,ratingEndpoint:S,onAnalyticsEvent:T}=t,P=I.useRef(null),E=I.useRef(null),[O,M]=I.useState({}),N=I.useMemo(()=>({email:i,name:a,accessId:s}),[i,a,s]);I.useEffect(()=>{pE(E.current)},[]),I.useEffect(()=>{X2({ticketForm:O,setTicketForm:M})},[O]),I.useImperativeHandle(e,()=>({addMessage:V=>{var X,q;(q=(X=P.current)==null?void 0:X.addMessage)==null||q.call(X,V)}}));const H=w||(r?fr.WELCOME_MESSAGE:fr.WELCOME_MESSAGE_LOGGED_OUT),z=I.useMemo(()=>fE(),[]),Q=I.useCallback(V=>{T&&T({...V,type:V.type,timestamp:V.timestamp??Date.now(),sessionId:V.sessionId??z})},[T,z]),U=I.useCallback(V=>{T&&T({...V,type:V.type,timestamp:typeof V.timestamp=="number"?V.timestamp:Date.now(),sessionId:typeof V.sessionId=="string"?V.sessionId:z})},[T,z]),j=I.useMemo(()=>{const V=K2({welcome:H,setTicketForm:M,isLoggedIn:r,trackEvent:Q}),X=oE({ticketForm:{},setTicketForm:M,userInfo:N,trackEvent:Q}),q=aE({ticketForm:{},setTicketForm:M,userInfo:N,trackEvent:Q}),te=dE({sessionId:z,apiKey:n,trackEvent:Q}),Z={...V,...X,...q,...te};return Y2(Z,{disableOnOptions:!0})},[H,N,z,n,r,Q]);return k.jsx("div",{ref:E,children:k.jsx(Lf,{ref:P,isLoggedIn:r,actingUser:l,onAnalyticsEvent:U,apiKey:n,qaEndpoint:y||Mr.QA_ENDPOINT,ratingEndpoint:S||Mr.RATING_ENDPOINT,botName:fr.BOT_NAME,logo:fr.LOGO,primaryColor:fr.PRIMARY_COLOR,secondaryColor:fr.SECONDARY_COLOR,welcomeMessage:H,tooltipText:fr.TOOLTIP,loginUrl:o,open:p,onOpenChange:m,embedded:v,footerText:"AI-powered · Privacy Notice",footerLink:"https://support.access-ci.org/tools/access-qa-tool/privacy",customFlow:j})})});jf.displayName="AccessQABot";const AE=Object.freeze(Object.defineProperty({__proto__:null,API_CONFIG:Mr,AccessQABot:jf,BOT_CONFIG:fr,QABot:jf},Symbol.toStringTag,{value:"Module"}));function Me({alt:t=null,name:e=null,src:n=null}){return e?k.jsx("i",{className:`icon bi bi-${e}`}):k.jsx("img",{className:"icon",alt:t,src:n})}const Xb=()=>{const t=new Event("accessci-update-sections");document.dispatchEvent(t)};function jn({children:t,headerComponents:e=null,icon:n=null,sectionId:r=null,title:o}){const i=r||o.toLowerCase().replace(/[^0-9a-z]+/g,"-");return I.useLayoutEffect(()=>(Xb(),Xb),[]),k.jsxs("section",{id:i,"data-section-title":o,"data-section-icon":n,children:[k.jsxs("div",{className:"flex-header",children:[k.jsxs("h2",{children:[n?k.jsx(Me,{name:n}):null,o]}),e?k.jsx("div",{className:"header-components",children:e}):null]}),t]})}function gE({infoGroupId:t}){const e=It(`https://support.access-ci.org/api/1.0/affinity_groups/${t}`);if(!e||e.error||!e.length)return;const n=kd(e[0].slack_link);return k.jsxs(jn,{title:"User Community",icon:"people-fill",children:[k.jsx("p",{children:"Join the community by participating in an affinity group! Members get update about announcements, events, and outages."}),k.jsxs("div",{className:"button-group",children:[k.jsxs("a",{href:e[0].url,className:"btn secondary",children:[k.jsx(Me,{name:"person-plus-fill"})," Join Affinity Group"]}),n?k.jsxs("a",{href:n,className:"btn",children:[k.jsx(Me,{name:"slack"})," Connect on Slack"]}):null,k.jsxs("a",{href:"#questions-and-answers",className:"btn",children:[k.jsx(Me,{name:"chat-fill"})," Ask and Answer Questions"]})]})]})}function mE({infoGroupId:t}){const e=ka(t),n=It(e&&e.infoResourceIds.length?`https://operations-api.access-ci.org/wh2/cider/v1/info_resourceid/${e.infoResourceIds[0]}/?format=json`:null);if(!e)return;const{accessAllocated:r,name:o,description:i,imageUri:a,organizations:s}=e,l=r?"https://allocations.access-ci.org/get-your-first-project":null,c=n&&n.results?(n.results.compute||n.results.storage||{}).user_guide_url:null;return k.jsxs("div",{className:"resource-group-description",children:[a?k.jsx("img",{className:"resource-group-feature-image",src:a}):null,k.jsx("h1",{children:e.name}),s.map(u=>k.jsx("p",{children:k.jsxs("a",{href:u.organization_url||"#",children:[u.organization_favicon_url?k.jsx(Me,{alt:u.organization_name,src:u.organization_favicon_url}):null,u.organization_name]})},u.organization_name)),i?k.jsx("p",{children:i}):null,k.jsxs("div",{style:{marginTop:"1rem"},children:[l?k.jsxs("a",{href:l,className:"btn secondary lg",children:[k.jsx(Me,{name:"check2-circle"})," Get Started with ",o]}):null,c?k.jsxs("a",{href:c,className:"btn lg",children:[k.jsx(Me,{name:"book"})," User Guide"]}):null]})]})}function bE({column:t,row:e,style:n={}}){const r=t.format?t.format(e[t.key],e):e[t.key],o=["cell"];return t.class&&o.push(t.class),t.rowClass&&o.push(t.rowClass(e)),k.jsx("td",{className:o.join(" "),style:n,children:r})}const vE={text:bE};function dc({columns:t,rows:e,classes:n,frozenColumns:r=0,maxHeight:o=400,minWidth:i,rowClasses:a=[],scrollResetOnUpdate:s=!1}){const l=I.useRef();I.useLayoutEffect(()=>{l.current&&s&&(l.current.scrollTop=0)},[e]);const c=[0];for(let v=0;v<r;v++)c[v+1]=c[v]+(t[v].width||100);const u=(v,w)=>v<r?{position:"sticky",left:`${c[v]}px`,minWidth:`${t[v].width||100}px`,width:`${t[v].width||100}px`,zIndex:w||1}:{},f=t.map((v,w)=>k.jsx("th",{className:v.headerClass||v.class||"",style:u(w,100),children:v.formatHeader?v.formatHeader(v.name,v):v.name},v.key)),p=e.map((v,w)=>{const y=t.map((S,T)=>{const P=vE[S.type||"text"];return k.jsx(P,{column:S,row:v,style:u(T)},S.key)});return k.jsx("tr",{className:a[w]||"",children:y},w)}),m={};return i&&(m.minWidth=i),k.jsx("div",{className:`grid ${n||""}`,style:{maxHeight:Number.isInteger(o)?`${o}px`:o||null},ref:l,children:k.jsxs("table",{className:"table",style:m,children:[k.jsx("thead",{children:k.jsx("tr",{children:f})}),k.jsx("tbody",{children:p})]})})}function yE({infoGroupId:t}){const e=It(`https://support.access-ci.org/api/1.0/affinity_groups/${t}`),n=e&&!e.error&&e.length?e[0].field_ask_ci_locale:null,r=n?`${n}.json`:null,o=It(r);if(!o||o.error||!o.topic_list||!o.topic_list.topics||!o.topic_list.topics.length)return;const i=[{key:"title",name:"Topic",format:(s,l)=>k.jsxs(k.Fragment,{children:[l.pinned?k.jsx(Me,{name:"pin-fill"}):null,k.jsx("a",{href:`https://ask.cyberinfrastructure.org/t/${l.slug}/${l.id}`,children:s})]})},{key:"posts_count",name:"Posts",format:s=>s.toLocaleString("en-us")},{key:"bumped_at",name:"Last Update",format:s=>new Date(s).toLocaleString("en-US",{dateStyle:"medium"})}],a=[k.jsx("a",{href:n,className:"btn secondary",children:"Ask a Question"},"ask"),k.jsx("a",{href:n,className:"btn",children:"View All Topics"},"all")];return k.jsx(jn,{title:"Questions and Answers",icon:"chat-fill",headerComponents:a,children:k.jsx(dc,{columns:i,rows:o.topic_list.topics.slice(0,5)})})}var Qt="top",pn="bottom",An="right",Ht="left",Wf="auto",Ua=[Qt,pn,An,Ht],ii="start",ja="end",wE="clippingParents",Gb="viewport",Wa="popper",xE="reference",Jb=Ua.reduce(function(t,e){return t.concat([e+"-"+ii,e+"-"+ja])},[]),Zb=[].concat(Ua,[Wf]).reduce(function(t,e){return t.concat([e,e+"-"+ii,e+"-"+ja])},[]),kE="beforeRead",SE="read",CE="afterRead",EE="beforeMain",PE="main",DE="afterMain",TE="beforeWrite",BE="write",IE="afterWrite",ME=[kE,SE,CE,EE,PE,DE,TE,BE,IE];function Wn(t){return t?(t.nodeName||"").toLowerCase():null}function tn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function lo(t){var e=tn(t).Element;return t instanceof e||t instanceof Element}function gn(t){var e=tn(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Vf(t){if(typeof ShadowRoot>"u")return!1;var e=tn(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function OE(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},o=e.attributes[n]||{},i=e.elements[n];!gn(i)||!Wn(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function _E(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],i=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(l,c){return l[c]="",l},{});!gn(o)||!Wn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const $b={name:"applyStyles",enabled:!0,phase:"write",fn:OE,effect:_E,requires:["computeStyles"]};function Vn(t){return t.split("-")[0]}var co=Math.max,fc=Math.min,ai=Math.round;function Yf(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function e0(){return!/^((?!chrome|android).)*safari/i.test(Yf())}function si(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),o=1,i=1;e&&gn(t)&&(o=t.offsetWidth>0&&ai(r.width)/t.offsetWidth||1,i=t.offsetHeight>0&&ai(r.height)/t.offsetHeight||1);var a=lo(t)?tn(t):window,s=a.visualViewport,l=!e0()&&n,c=(r.left+(l&&s?s.offsetLeft:0))/o,u=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:u,right:c+f,bottom:u+p,left:c,x:c,y:u}}function qf(t){var e=si(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function t0(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Vf(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hr(t){return tn(t).getComputedStyle(t)}function FE(t){return["table","td","th"].indexOf(Wn(t))>=0}function Or(t){return((lo(t)?t.ownerDocument:t.document)||window.document).documentElement}function hc(t){return Wn(t)==="html"?t:t.assignedSlot||t.parentNode||(Vf(t)?t.host:null)||Or(t)}function n0(t){return!gn(t)||hr(t).position==="fixed"?null:t.offsetParent}function RE(t){var e=/firefox/i.test(Yf()),n=/Trident/i.test(Yf());if(n&&gn(t)){var r=hr(t);if(r.position==="fixed")return null}var o=hc(t);for(Vf(o)&&(o=o.host);gn(o)&&["html","body"].indexOf(Wn(o))<0;){var i=hr(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Va(t){for(var e=tn(t),n=n0(t);n&&FE(n)&&hr(n).position==="static";)n=n0(n);return n&&(Wn(n)==="html"||Wn(n)==="body"&&hr(n).position==="static")?e:n||RE(t)||e}function Kf(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ya(t,e,n){return co(t,fc(e,n))}function LE(t,e,n){var r=Ya(t,e,n);return r>n?n:r}function r0(){return{top:0,right:0,bottom:0,left:0}}function o0(t){return Object.assign({},r0(),t)}function i0(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var NE=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,o0(typeof e!="number"?e:i0(e,Ua))};function zE(t){var e,n=t.state,r=t.name,o=t.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Vn(n.placement),l=Kf(s),c=[Ht,An].indexOf(s)>=0,u=c?"height":"width";if(!(!i||!a)){var f=NE(o.padding,n),p=qf(i),m=l==="y"?Qt:Ht,v=l==="y"?pn:An,w=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],y=a[l]-n.rects.reference[l],S=Va(i),T=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,P=w/2-y/2,E=f[m],O=T-p[u]-f[v],M=T/2-p[u]/2+P,N=Ya(E,M,O),H=l;n.modifiersData[r]=(e={},e[H]=N,e.centerOffset=N-M,e)}}function QE(t){var e=t.state,n=t.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||t0(e.elements.popper,o)&&(e.elements.arrow=o))}const HE={name:"arrow",enabled:!0,phase:"main",fn:zE,effect:QE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function li(t){return t.split("-")[1]}var UE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jE(t,e){var n=t.x,r=t.y,o=e.devicePixelRatio||1;return{x:ai(n*o)/o||0,y:ai(r*o)/o||0}}function a0(t){var e,n=t.popper,r=t.popperRect,o=t.placement,i=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,f=t.isFixed,p=a.x,m=p===void 0?0:p,v=a.y,w=v===void 0?0:v,y=typeof u=="function"?u({x:m,y:w}):{x:m,y:w};m=y.x,w=y.y;var S=a.hasOwnProperty("x"),T=a.hasOwnProperty("y"),P=Ht,E=Qt,O=window;if(c){var M=Va(n),N="clientHeight",H="clientWidth";if(M===tn(n)&&(M=Or(n),hr(M).position!=="static"&&s==="absolute"&&(N="scrollHeight",H="scrollWidth")),M=M,o===Qt||(o===Ht||o===An)&&i===ja){E=pn;var z=f&&M===O&&O.visualViewport?O.visualViewport.height:M[N];w-=z-r.height,w*=l?1:-1}if(o===Ht||(o===Qt||o===pn)&&i===ja){P=An;var Q=f&&M===O&&O.visualViewport?O.visualViewport.width:M[H];m-=Q-r.width,m*=l?1:-1}}var U=Object.assign({position:s},c&&UE),j=u===!0?jE({x:m,y:w},tn(n)):{x:m,y:w};if(m=j.x,w=j.y,l){var V;return Object.assign({},U,(V={},V[E]=T?"0":"",V[P]=S?"0":"",V.transform=(O.devicePixelRatio||1)<=1?"translate("+m+"px, "+w+"px)":"translate3d("+m+"px, "+w+"px, 0)",V))}return Object.assign({},U,(e={},e[E]=T?w+"px":"",e[P]=S?m+"px":"",e.transform="",e))}function WE(t){var e=t.state,n=t.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,c={placement:Vn(e.placement),variation:li(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,a0(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,a0(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const VE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:WE,data:{}};var pc={passive:!0};function YE(t){var e=t.state,n=t.instance,r=t.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=tn(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,pc)}),s&&l.addEventListener("resize",n.update,pc),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,pc)}),s&&l.removeEventListener("resize",n.update,pc)}}const qE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:YE,data:{}};var KE={left:"right",right:"left",bottom:"top",top:"bottom"};function Ac(t){return t.replace(/left|right|bottom|top/g,function(e){return KE[e]})}var XE={start:"end",end:"start"};function s0(t){return t.replace(/start|end/g,function(e){return XE[e]})}function Xf(t){var e=tn(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Gf(t){return si(Or(t)).left+Xf(t).scrollLeft}function GE(t,e){var n=tn(t),r=Or(t),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=e0();(c||!c&&e==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Gf(t),y:l}}function JE(t){var e,n=Or(t),r=Xf(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=co(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=co(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Gf(t),l=-r.scrollTop;return hr(o||n).direction==="rtl"&&(s+=co(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function Jf(t){var e=hr(t),n=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function l0(t){return["html","body","#document"].indexOf(Wn(t))>=0?t.ownerDocument.body:gn(t)&&Jf(t)?t:l0(hc(t))}function qa(t,e){var n;e===void 0&&(e=[]);var r=l0(t),o=r===((n=t.ownerDocument)==null?void 0:n.body),i=tn(r),a=o?[i].concat(i.visualViewport||[],Jf(r)?r:[]):r,s=e.concat(a);return o?s:s.concat(qa(hc(a)))}function Zf(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ZE(t,e){var n=si(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function c0(t,e,n){return e===Gb?Zf(GE(t,n)):lo(e)?ZE(e,n):Zf(JE(Or(t)))}function $E(t){var e=qa(hc(t)),n=["absolute","fixed"].indexOf(hr(t).position)>=0,r=n&&gn(t)?Va(t):t;return lo(r)?e.filter(function(o){return lo(o)&&t0(o,r)&&Wn(o)!=="body"}):[]}function eP(t,e,n,r){var o=e==="clippingParents"?$E(t):[].concat(e),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,c){var u=c0(t,c,r);return l.top=co(u.top,l.top),l.right=fc(u.right,l.right),l.bottom=fc(u.bottom,l.bottom),l.left=co(u.left,l.left),l},c0(t,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function u0(t){var e=t.reference,n=t.element,r=t.placement,o=r?Vn(r):null,i=r?li(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(o){case Qt:l={x:a,y:e.y-n.height};break;case pn:l={x:a,y:e.y+e.height};break;case An:l={x:e.x+e.width,y:s};break;case Ht:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var c=o?Kf(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case ii:l[c]=l[c]-(e[u]/2-n[u]/2);break;case ja:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function Ka(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=r===void 0?t.placement:r,i=n.strategy,a=i===void 0?t.strategy:i,s=n.boundary,l=s===void 0?wE:s,c=n.rootBoundary,u=c===void 0?Gb:c,f=n.elementContext,p=f===void 0?Wa:f,m=n.altBoundary,v=m===void 0?!1:m,w=n.padding,y=w===void 0?0:w,S=o0(typeof y!="number"?y:i0(y,Ua)),T=p===Wa?xE:Wa,P=t.rects.popper,E=t.elements[v?T:p],O=eP(lo(E)?E:E.contextElement||Or(t.elements.popper),l,u,a),M=si(t.elements.reference),N=u0({reference:M,element:P,placement:o}),H=Zf(Object.assign({},P,N)),z=p===Wa?H:M,Q={top:O.top-z.top+S.top,bottom:z.bottom-O.bottom+S.bottom,left:O.left-z.left+S.left,right:z.right-O.right+S.right},U=t.modifiersData.offset;if(p===Wa&&U){var j=U[o];Object.keys(Q).forEach(function(V){var X=[An,pn].indexOf(V)>=0?1:-1,q=[Qt,pn].indexOf(V)>=0?"y":"x";Q[V]+=j[q]*X})}return Q}function tP(t,e){e===void 0&&(e={});var n=e,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?Zb:l,u=li(r),f=u?s?Jb:Jb.filter(function(v){return li(v)===u}):Ua,p=f.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=f);var m=p.reduce(function(v,w){return v[w]=Ka(t,{placement:w,boundary:o,rootBoundary:i,padding:a})[Vn(w)],v},{});return Object.keys(m).sort(function(v,w){return m[v]-m[w]})}function nP(t){if(Vn(t)===Wf)return[];var e=Ac(t);return[s0(t),e,s0(e)]}function rP(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,w=n.allowedAutoPlacements,y=e.options.placement,S=Vn(y),T=S===y,P=l||(T||!v?[Ac(y)]:nP(y)),E=[y].concat(P).reduce(function($,ie){return $.concat(Vn(ie)===Wf?tP(e,{placement:ie,boundary:u,rootBoundary:f,padding:c,flipVariations:v,allowedAutoPlacements:w}):ie)},[]),O=e.rects.reference,M=e.rects.popper,N=new Map,H=!0,z=E[0],Q=0;Q<E.length;Q++){var U=E[Q],j=Vn(U),V=li(U)===ii,X=[Qt,pn].indexOf(j)>=0,q=X?"width":"height",te=Ka(e,{placement:U,boundary:u,rootBoundary:f,altBoundary:p,padding:c}),Z=X?V?An:Ht:V?pn:Qt;O[q]>M[q]&&(Z=Ac(Z));var ee=Ac(Z),F=[];if(i&&F.push(te[j]<=0),s&&F.push(te[Z]<=0,te[ee]<=0),F.every(function($){return $})){z=U,H=!1;break}N.set(U,F)}if(H)for(var fe=v?3:1,R=function(ie){var ae=E.find(function(Ae){var ye=N.get(Ae);if(ye)return ye.slice(0,ie).every(function(ke){return ke})});if(ae)return z=ae,"break"},ce=fe;ce>0;ce--){var ne=R(ce);if(ne==="break")break}e.placement!==z&&(e.modifiersData[r]._skip=!0,e.placement=z,e.reset=!0)}}const oP={name:"flip",enabled:!0,phase:"main",fn:rP,requiresIfExists:["offset"],data:{_skip:!1}};function d0(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function f0(t){return[Qt,An,pn,Ht].some(function(e){return t[e]>=0})}function iP(t){var e=t.state,n=t.name,r=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,a=Ka(e,{elementContext:"reference"}),s=Ka(e,{altBoundary:!0}),l=d0(a,r),c=d0(s,o,i),u=f0(l),f=f0(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const aP={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:iP};function sP(t,e,n){var r=Vn(t),o=[Ht,Qt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Ht,An].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function lP(t){var e=t.state,n=t.options,r=t.name,o=n.offset,i=o===void 0?[0,0]:o,a=Zb.reduce(function(u,f){return u[f]=sP(f,e.rects,i),u},{}),s=a[e.placement],l=s.x,c=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=a}const cP={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lP};function uP(t){var e=t.state,n=t.name;e.modifiersData[n]=u0({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const dP={name:"popperOffsets",enabled:!0,phase:"read",fn:uP,data:{}};function fP(t){return t==="x"?"y":"x"}function hP(t){var e=t.state,n=t.options,r=t.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,w=v===void 0?0:v,y=Ka(e,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),S=Vn(e.placement),T=li(e.placement),P=!T,E=Kf(S),O=fP(E),M=e.modifiersData.popperOffsets,N=e.rects.reference,H=e.rects.popper,z=typeof w=="function"?w(Object.assign({},e.rects,{placement:e.placement})):w,Q=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),U=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,j={x:0,y:0};if(M){if(i){var V,X=E==="y"?Qt:Ht,q=E==="y"?pn:An,te=E==="y"?"height":"width",Z=M[E],ee=Z+y[X],F=Z-y[q],fe=m?-H[te]/2:0,R=T===ii?N[te]:H[te],ce=T===ii?-H[te]:-N[te],ne=e.elements.arrow,$=m&&ne?qf(ne):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:r0(),ae=ie[X],Ae=ie[q],ye=Ya(0,N[te],$[te]),ke=P?N[te]/2-fe-ye-ae-Q.mainAxis:R-ye-ae-Q.mainAxis,Be=P?-N[te]/2+fe+ye+Ae+Q.mainAxis:ce+ye+Ae+Q.mainAxis,Je=e.elements.arrow&&Va(e.elements.arrow),Et=Je?E==="y"?Je.clientTop||0:Je.clientLeft||0:0,Ke=(V=U?.[E])!=null?V:0,ut=Z+ke-Ke-Et,wt=Z+Be-Ke,rt=Ya(m?fc(ee,ut):ee,Z,m?co(F,wt):F);M[E]=rt,j[E]=rt-Z}if(s){var dt,_e=E==="x"?Qt:Ht,ot=E==="x"?pn:An,Pe=M[O],xt=O==="y"?"height":"width",Wt=Pe+y[_e],gt=Pe-y[ot],Vt=[Qt,Ht].indexOf(S)!==-1,Pt=(dt=U?.[O])!=null?dt:0,Mt=Vt?Wt:Pe-N[xt]-H[xt]-Pt+Q.altAxis,Ot=Vt?Pe+N[xt]+H[xt]-Pt-Q.altAxis:gt,He=m&&Vt?LE(Mt,Pe,Ot):Ya(m?Mt:Wt,Pe,m?Ot:gt);M[O]=He,j[O]=He-Pe}e.modifiersData[r]=j}}const pP={name:"preventOverflow",enabled:!0,phase:"main",fn:hP,requiresIfExists:["offset"]};function AP(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function gP(t){return t===tn(t)||!gn(t)?Xf(t):AP(t)}function mP(t){var e=t.getBoundingClientRect(),n=ai(e.width)/t.offsetWidth||1,r=ai(e.height)/t.offsetHeight||1;return n!==1||r!==1}function bP(t,e,n){n===void 0&&(n=!1);var r=gn(e),o=gn(e)&&mP(e),i=Or(e),a=si(t,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Wn(e)!=="body"||Jf(i))&&(s=gP(e)),gn(e)?(l=si(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=Gf(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function vP(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=e.get(s);l&&o(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||o(i)}),r}function yP(t){var e=vP(t);return ME.reduce(function(n,r){return n.concat(e.filter(function(o){return o.phase===r}))},[])}function wP(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function xP(t){var e=t.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var h0={placement:"bottom",modifiers:[],strategy:"absolute"};function p0(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function kP(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,o=e.defaultOptions,i=o===void 0?h0:o;return function(s,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},h0,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],p=!1,m={state:u,setOptions:function(S){var T=typeof S=="function"?S(u.options):S;w(),u.options=Object.assign({},i,u.options,T),u.scrollParents={reference:lo(s)?qa(s):s.contextElement?qa(s.contextElement):[],popper:qa(l)};var P=yP(xP([].concat(r,u.options.modifiers)));return u.orderedModifiers=P.filter(function(E){return E.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var S=u.elements,T=S.reference,P=S.popper;if(p0(T,P)){u.rects={reference:bP(T,Va(P),u.options.strategy==="fixed"),popper:qf(P)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(Q){return u.modifiersData[Q.name]=Object.assign({},Q.data)});for(var E=0;E<u.orderedModifiers.length;E++){if(u.reset===!0){u.reset=!1,E=-1;continue}var O=u.orderedModifiers[E],M=O.fn,N=O.options,H=N===void 0?{}:N,z=O.name;typeof M=="function"&&(u=M({state:u,options:H,name:z,instance:m})||u)}}}},update:wP(function(){return new Promise(function(y){m.forceUpdate(),y(u)})}),destroy:function(){w(),p=!0}};if(!p0(s,l))return m;m.setOptions(c).then(function(y){!p&&c.onFirstUpdate&&c.onFirstUpdate(y)});function v(){u.orderedModifiers.forEach(function(y){var S=y.name,T=y.options,P=T===void 0?{}:T,E=y.effect;if(typeof E=="function"){var O=E({state:u,name:S,instance:m,options:P}),M=function(){};f.push(O||M)}})}function w(){f.forEach(function(y){return y()}),f=[]}return m}}var SP=[qE,dP,VE,$b,cP,oP,pP,HE,aP],CP=kP({defaultModifiers:SP}),EP="tippy-box",A0="tippy-content",PP="tippy-backdrop",g0="tippy-arrow",m0="tippy-svg-arrow",uo={passive:!0,capture:!0},b0=function(){return document.body};function DP(t,e){return{}.hasOwnProperty.call(t,e)}function $f(t,e,n){if(Array.isArray(t)){var r=t[e];return r??(Array.isArray(n)?n[e]:n)}return t}function eh(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function v0(t,e){return typeof t=="function"?t.apply(void 0,e):t}function y0(t,e){if(e===0)return t;var n;return function(r){clearTimeout(n),n=setTimeout(function(){t(r)},e)}}function TP(t,e){var n=Object.assign({},t);return e.forEach(function(r){delete n[r]}),n}function BP(t){return t.split(/\s+/).filter(Boolean)}function ci(t){return[].concat(t)}function w0(t,e){t.indexOf(e)===-1&&t.push(e)}function IP(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function MP(t){return t.split("-")[0]}function gc(t){return[].slice.call(t)}function x0(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function Xa(){return document.createElement("div")}function Ga(t){return["Element","Fragment"].some(function(e){return eh(t,e)})}function OP(t){return eh(t,"NodeList")}function _P(t){return eh(t,"MouseEvent")}function FP(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function RP(t){return Ga(t)?[t]:OP(t)?gc(t):Array.isArray(t)?t:gc(document.querySelectorAll(t))}function th(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function k0(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function LP(t){var e,n=ci(t),r=n[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function NP(t,e){var n=e.clientX,r=e.clientY;return t.every(function(o){var i=o.popperRect,a=o.popperState,s=o.props,l=s.interactiveBorder,c=MP(a.placement),u=a.modifiersData.offset;if(!u)return!0;var f=c==="bottom"?u.top.y:0,p=c==="top"?u.bottom.y:0,m=c==="right"?u.left.x:0,v=c==="left"?u.right.x:0,w=i.top-r+f>l,y=r-i.bottom-p>l,S=i.left-n+m>l,T=n-i.right-v>l;return w||y||S||T})}function nh(t,e,n){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){t[r](o,n)})}function S0(t,e){for(var n=e;n;){var r;if(t.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Yn={isTouch:!1},C0=0;function zP(){Yn.isTouch||(Yn.isTouch=!0,window.performance&&document.addEventListener("mousemove",E0))}function E0(){var t=performance.now();t-C0<20&&(Yn.isTouch=!1,document.removeEventListener("mousemove",E0)),C0=t}function QP(){var t=document.activeElement;if(FP(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function HP(){document.addEventListener("touchstart",zP,uo),window.addEventListener("blur",QP)}var UP=typeof window<"u"&&typeof document<"u",jP=UP?!!window.msCrypto:!1;function ui(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function P0(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function WP(t){return P0(`
|
|
322
|
+
%ctippy.js
|
|
323
|
+
|
|
324
|
+
%c`+P0(t)+`
|
|
325
|
+
|
|
326
|
+
%c👷 This is a development-only message. It will be removed in production.
|
|
327
|
+
`)}function D0(t){return[WP(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var Ja;VP();function VP(){Ja=new Set}function pr(t,e){if(t&&!Ja.has(e)){var n;Ja.add(e),(n=console).warn.apply(n,D0(e))}}function rh(t,e){if(t&&!Ja.has(e)){var n;Ja.add(e),(n=console).error.apply(n,D0(e))}}function YP(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;rh(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),rh(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var T0={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},qP={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},nn=Object.assign({appendTo:b0,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},T0,qP),KP=Object.keys(nn),XP=function(e){M0(e,[]);var n=Object.keys(e);n.forEach(function(r){nn[r]=e[r]})};function B0(t){var e=t.plugins||[],n=e.reduce(function(r,o){var i=o.name,a=o.defaultValue;if(i){var s;r[i]=t[i]!==void 0?t[i]:(s=nn[i])!=null?s:a}return r},{});return Object.assign({},t,n)}function GP(t,e){var n=e?Object.keys(B0(Object.assign({},nn,{plugins:e}))):KP,r=n.reduce(function(o,i){var a=(t.getAttribute("data-tippy-"+i)||"").trim();if(!a)return o;if(i==="content")o[i]=a;else try{o[i]=JSON.parse(a)}catch{o[i]=a}return o},{});return r}function I0(t,e){var n=Object.assign({},e,{content:v0(e.content,[t])},e.ignoreAttributes?{}:GP(t,e.plugins));return n.aria=Object.assign({},nn.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}function M0(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(r){var o=TP(nn,Object.keys(T0)),i=!DP(o,r);i&&(i=e.filter(function(a){return a.name===r}).length===0),pr(i,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
|
|
328
|
+
|
|
329
|
+
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
330
|
+
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var JP=function(){return"innerHTML"};function oh(t,e){t[JP()]=e}function O0(t){var e=Xa();return t===!0?e.className=g0:(e.className=m0,Ga(t)?e.appendChild(t):oh(e,t)),e}function _0(t,e){Ga(e.content)?(oh(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?oh(t,e.content):t.textContent=e.content)}function ih(t){var e=t.firstElementChild,n=gc(e.children);return{box:e,content:n.find(function(r){return r.classList.contains(A0)}),arrow:n.find(function(r){return r.classList.contains(g0)||r.classList.contains(m0)}),backdrop:n.find(function(r){return r.classList.contains(PP)})}}function F0(t){var e=Xa(),n=Xa();n.className=EP,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Xa();r.className=A0,r.setAttribute("data-state","hidden"),_0(r,t.props),e.appendChild(n),n.appendChild(r),o(t.props,t.props);function o(i,a){var s=ih(e),l=s.box,c=s.content,u=s.arrow;a.theme?l.setAttribute("data-theme",a.theme):l.removeAttribute("data-theme"),typeof a.animation=="string"?l.setAttribute("data-animation",a.animation):l.removeAttribute("data-animation"),a.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof a.maxWidth=="number"?a.maxWidth+"px":a.maxWidth,a.role?l.setAttribute("role",a.role):l.removeAttribute("role"),(i.content!==a.content||i.allowHTML!==a.allowHTML)&&_0(c,t.props),a.arrow?u?i.arrow!==a.arrow&&(l.removeChild(u),l.appendChild(O0(a.arrow))):l.appendChild(O0(a.arrow)):u&&l.removeChild(u)}return{popper:e,onUpdate:o}}F0.$$tippy=!0;var ZP=1,mc=[],ah=[];function $P(t,e){var n=I0(t,Object.assign({},nn,B0(x0(e)))),r,o,i,a=!1,s=!1,l=!1,c=!1,u,f,p,m=[],v=y0(ut,n.interactiveDebounce),w,y=ZP++,S=null,T=IP(n.plugins),P={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},E={id:y,reference:t,popper:Xa(),popperInstance:S,props:n,state:P,plugins:T,clearDelayTimeouts:Mt,setProps:Ot,setContent:He,show:G,hide:ue,hideWithInteractivity:pe,enable:Vt,disable:Pt,unmount:we,destroy:xe};if(!n.render)return rh(!0,"render() function has not been supplied."),E;var O=n.render(E),M=O.popper,N=O.onUpdate;M.setAttribute("data-tippy-root",""),M.id="tippy-"+E.id,E.popper=M,t._tippy=E,M._tippy=E;var H=T.map(function(Y){return Y.fn(E)}),z=t.hasAttribute("aria-expanded");return Je(),fe(),Z(),ee("onCreate",[E]),n.showOnCreate&&Wt(),M.addEventListener("mouseenter",function(){E.props.interactive&&E.state.isVisible&&E.clearDelayTimeouts()}),M.addEventListener("mouseleave",function(){E.props.interactive&&E.props.trigger.indexOf("mouseenter")>=0&&X().addEventListener("mousemove",v)}),E;function Q(){var Y=E.props.touch;return Array.isArray(Y)?Y:[Y,0]}function U(){return Q()[0]==="hold"}function j(){var Y;return!!((Y=E.props.render)!=null&&Y.$$tippy)}function V(){return w||t}function X(){var Y=V().parentNode;return Y?LP(Y):document}function q(){return ih(M)}function te(Y){return E.state.isMounted&&!E.state.isVisible||Yn.isTouch||u&&u.type==="focus"?0:$f(E.props.delay,Y?0:1,nn.delay)}function Z(Y){Y===void 0&&(Y=!1),M.style.pointerEvents=E.props.interactive&&!Y?"":"none",M.style.zIndex=""+E.props.zIndex}function ee(Y,se,he){if(he===void 0&&(he=!0),H.forEach(function(Ee){Ee[Y]&&Ee[Y].apply(Ee,se)}),he){var De;(De=E.props)[Y].apply(De,se)}}function F(){var Y=E.props.aria;if(Y.content){var se="aria-"+Y.content,he=M.id,De=ci(E.props.triggerTarget||t);De.forEach(function(Ee){var Ie=Ee.getAttribute(se);if(E.state.isVisible)Ee.setAttribute(se,Ie?Ie+" "+he:he);else{var Ue=Ie&&Ie.replace(he,"").trim();Ue?Ee.setAttribute(se,Ue):Ee.removeAttribute(se)}})}}function fe(){if(!(z||!E.props.aria.expanded)){var Y=ci(E.props.triggerTarget||t);Y.forEach(function(se){E.props.interactive?se.setAttribute("aria-expanded",E.state.isVisible&&se===V()?"true":"false"):se.removeAttribute("aria-expanded")})}}function R(){X().removeEventListener("mousemove",v),mc=mc.filter(function(Y){return Y!==v})}function ce(Y){if(!(Yn.isTouch&&(l||Y.type==="mousedown"))){var se=Y.composedPath&&Y.composedPath()[0]||Y.target;if(!(E.props.interactive&&S0(M,se))){if(ci(E.props.triggerTarget||t).some(function(he){return S0(he,se)})){if(Yn.isTouch||E.state.isVisible&&E.props.trigger.indexOf("click")>=0)return}else ee("onClickOutside",[E,Y]);E.props.hideOnClick===!0&&(E.clearDelayTimeouts(),E.hide(),s=!0,setTimeout(function(){s=!1}),E.state.isMounted||ae())}}}function ne(){l=!0}function $(){l=!1}function ie(){var Y=X();Y.addEventListener("mousedown",ce,!0),Y.addEventListener("touchend",ce,uo),Y.addEventListener("touchstart",$,uo),Y.addEventListener("touchmove",ne,uo)}function ae(){var Y=X();Y.removeEventListener("mousedown",ce,!0),Y.removeEventListener("touchend",ce,uo),Y.removeEventListener("touchstart",$,uo),Y.removeEventListener("touchmove",ne,uo)}function Ae(Y,se){ke(Y,function(){!E.state.isVisible&&M.parentNode&&M.parentNode.contains(M)&&se()})}function ye(Y,se){ke(Y,se)}function ke(Y,se){var he=q().box;function De(Ee){Ee.target===he&&(nh(he,"remove",De),se())}if(Y===0)return se();nh(he,"remove",f),nh(he,"add",De),f=De}function Be(Y,se,he){he===void 0&&(he=!1);var De=ci(E.props.triggerTarget||t);De.forEach(function(Ee){Ee.addEventListener(Y,se,he),m.push({node:Ee,eventType:Y,handler:se,options:he})})}function Je(){U()&&(Be("touchstart",Ke,{passive:!0}),Be("touchend",wt,{passive:!0})),BP(E.props.trigger).forEach(function(Y){if(Y!=="manual")switch(Be(Y,Ke),Y){case"mouseenter":Be("mouseleave",wt);break;case"focus":Be(jP?"focusout":"blur",rt);break;case"focusin":Be("focusout",rt);break}})}function Et(){m.forEach(function(Y){var se=Y.node,he=Y.eventType,De=Y.handler,Ee=Y.options;se.removeEventListener(he,De,Ee)}),m=[]}function Ke(Y){var se,he=!1;if(!(!E.state.isEnabled||dt(Y)||s)){var De=((se=u)==null?void 0:se.type)==="focus";u=Y,w=Y.currentTarget,fe(),!E.state.isVisible&&_P(Y)&&mc.forEach(function(Ee){return Ee(Y)}),Y.type==="click"&&(E.props.trigger.indexOf("mouseenter")<0||a)&&E.props.hideOnClick!==!1&&E.state.isVisible?he=!0:Wt(Y),Y.type==="click"&&(a=!he),he&&!De&>(Y)}}function ut(Y){var se=Y.target,he=V().contains(se)||M.contains(se);if(!(Y.type==="mousemove"&&he)){var De=xt().concat(M).map(function(Ee){var Ie,Ue=Ee._tippy,it=(Ie=Ue.popperInstance)==null?void 0:Ie.state;return it?{popperRect:Ee.getBoundingClientRect(),popperState:it,props:n}:null}).filter(Boolean);NP(De,Y)&&(R(),gt(Y))}}function wt(Y){var se=dt(Y)||E.props.trigger.indexOf("click")>=0&&a;if(!se){if(E.props.interactive){E.hideWithInteractivity(Y);return}gt(Y)}}function rt(Y){E.props.trigger.indexOf("focusin")<0&&Y.target!==V()||E.props.interactive&&Y.relatedTarget&&M.contains(Y.relatedTarget)||gt(Y)}function dt(Y){return Yn.isTouch?U()!==Y.type.indexOf("touch")>=0:!1}function _e(){ot();var Y=E.props,se=Y.popperOptions,he=Y.placement,De=Y.offset,Ee=Y.getReferenceClientRect,Ie=Y.moveTransition,Ue=j()?ih(M).arrow:null,it=Ee?{getBoundingClientRect:Ee,contextElement:Ee.contextElement||V()}:t,yo={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(at){var Zn=at.state;if(j()){var ms=q(),xo=ms.box;["placement","reference-hidden","escaped"].forEach(function(jr){jr==="placement"?xo.setAttribute("data-placement",Zn.placement):Zn.attributes.popper["data-popper-"+jr]?xo.setAttribute("data-"+jr,""):xo.removeAttribute("data-"+jr)}),Zn.attributes.popper={}}}},wn=[{name:"offset",options:{offset:De}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ie}},yo];j()&&Ue&&wn.push({name:"arrow",options:{element:Ue,padding:3}}),wn.push.apply(wn,se?.modifiers||[]),E.popperInstance=CP(it,M,Object.assign({},se,{placement:he,onFirstUpdate:p,modifiers:wn}))}function ot(){E.popperInstance&&(E.popperInstance.destroy(),E.popperInstance=null)}function Pe(){var Y=E.props.appendTo,se,he=V();E.props.interactive&&Y===b0||Y==="parent"?se=he.parentNode:se=v0(Y,[he]),se.contains(M)||se.appendChild(M),E.state.isMounted=!0,_e(),pr(E.props.interactive&&Y===nn.appendTo&&he.nextElementSibling!==M,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
|
|
331
|
+
|
|
332
|
+
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
|
|
333
|
+
|
|
334
|
+
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
|
|
335
|
+
|
|
336
|
+
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function xt(){return gc(M.querySelectorAll("[data-tippy-root]"))}function Wt(Y){E.clearDelayTimeouts(),Y&&ee("onTrigger",[E,Y]),ie();var se=te(!0),he=Q(),De=he[0],Ee=he[1];Yn.isTouch&&De==="hold"&&Ee&&(se=Ee),se?r=setTimeout(function(){E.show()},se):E.show()}function gt(Y){if(E.clearDelayTimeouts(),ee("onUntrigger",[E,Y]),!E.state.isVisible){ae();return}if(!(E.props.trigger.indexOf("mouseenter")>=0&&E.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Y.type)>=0&&a)){var se=te(!1);se?o=setTimeout(function(){E.state.isVisible&&E.hide()},se):i=requestAnimationFrame(function(){E.hide()})}}function Vt(){E.state.isEnabled=!0}function Pt(){E.hide(),E.state.isEnabled=!1}function Mt(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)}function Ot(Y){if(pr(E.state.isDestroyed,ui("setProps")),!E.state.isDestroyed){ee("onBeforeUpdate",[E,Y]),Et();var se=E.props,he=I0(t,Object.assign({},se,x0(Y),{ignoreAttributes:!0}));E.props=he,Je(),se.interactiveDebounce!==he.interactiveDebounce&&(R(),v=y0(ut,he.interactiveDebounce)),se.triggerTarget&&!he.triggerTarget?ci(se.triggerTarget).forEach(function(De){De.removeAttribute("aria-expanded")}):he.triggerTarget&&t.removeAttribute("aria-expanded"),fe(),Z(),N&&N(se,he),E.popperInstance&&(_e(),xt().forEach(function(De){requestAnimationFrame(De._tippy.popperInstance.forceUpdate)})),ee("onAfterUpdate",[E,Y])}}function He(Y){E.setProps({content:Y})}function G(){pr(E.state.isDestroyed,ui("show"));var Y=E.state.isVisible,se=E.state.isDestroyed,he=!E.state.isEnabled,De=Yn.isTouch&&!E.props.touch,Ee=$f(E.props.duration,0,nn.duration);if(!(Y||se||he||De)&&!V().hasAttribute("disabled")&&(ee("onShow",[E],!1),E.props.onShow(E)!==!1)){if(E.state.isVisible=!0,j()&&(M.style.visibility="visible"),Z(),ie(),E.state.isMounted||(M.style.transition="none"),j()){var Ie=q(),Ue=Ie.box,it=Ie.content;th([Ue,it],0)}p=function(){var wn;if(!(!E.state.isVisible||c)){if(c=!0,M.offsetHeight,M.style.transition=E.props.moveTransition,j()&&E.props.animation){var wo=q(),at=wo.box,Zn=wo.content;th([at,Zn],Ee),k0([at,Zn],"visible")}F(),fe(),w0(ah,E),(wn=E.popperInstance)==null||wn.forceUpdate(),ee("onMount",[E]),E.props.animation&&j()&&ye(Ee,function(){E.state.isShown=!0,ee("onShown",[E])})}},Pe()}}function ue(){pr(E.state.isDestroyed,ui("hide"));var Y=!E.state.isVisible,se=E.state.isDestroyed,he=!E.state.isEnabled,De=$f(E.props.duration,1,nn.duration);if(!(Y||se||he)&&(ee("onHide",[E],!1),E.props.onHide(E)!==!1)){if(E.state.isVisible=!1,E.state.isShown=!1,c=!1,a=!1,j()&&(M.style.visibility="hidden"),R(),ae(),Z(!0),j()){var Ee=q(),Ie=Ee.box,Ue=Ee.content;E.props.animation&&(th([Ie,Ue],De),k0([Ie,Ue],"hidden"))}F(),fe(),E.props.animation?j()&&Ae(De,E.unmount):E.unmount()}}function pe(Y){pr(E.state.isDestroyed,ui("hideWithInteractivity")),X().addEventListener("mousemove",v),w0(mc,v),v(Y)}function we(){pr(E.state.isDestroyed,ui("unmount")),E.state.isVisible&&E.hide(),E.state.isMounted&&(ot(),xt().forEach(function(Y){Y._tippy.unmount()}),M.parentNode&&M.parentNode.removeChild(M),ah=ah.filter(function(Y){return Y!==E}),E.state.isMounted=!1,ee("onHidden",[E]))}function xe(){pr(E.state.isDestroyed,ui("destroy")),!E.state.isDestroyed&&(E.clearDelayTimeouts(),E.unmount(),Et(),delete t._tippy,E.state.isDestroyed=!0,ee("onDestroy",[E]))}}function Za(t,e){e===void 0&&(e={});var n=nn.plugins.concat(e.plugins||[]);YP(t),M0(e,n),HP();var r=Object.assign({},e,{plugins:n}),o=RP(t);{var i=Ga(r.content),a=o.length>1;pr(i&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
|
|
337
|
+
|
|
338
|
+
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
339
|
+
|
|
340
|
+
`,`1) content: element.innerHTML
|
|
341
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var s=o.reduce(function(l,c){var u=c&&$P(c,r);return u&&l.push(u),l},[]);return Ga(t)?s[0]:s}Za.defaultProps=nn,Za.setDefaultProps=XP,Za.currentInput=Yn,Object.assign({},$b,{effect:function(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}}),Za.setDefaultProps({render:F0});function eD({color:t="var(--contrast-6)",icon:e="info-circle-fill",tooltip:n}){const r=I.useRef(null);return I.useLayoutEffect(()=>{r.current&&Za(r.current,{content:n,theme:"access",appendTo:r.current.parentElement})},[r.current]),k.jsx("button",{className:"info-tip",style:{color:t},ref:r,children:k.jsx(Me,{name:e})})}function tD({infoGroupId:t}){const e=It(`https://support.access-ci.org/api/1.0/kb/${t}`);if(!(!e||e.error||!e.length))return k.jsx(jn,{title:"Documentation",icon:"book",children:k.jsx("ul",{children:e.map(({title:n,description:r,link:o})=>k.jsxs("li",{children:[k.jsx("a",{href:JA(o),children:n}),r?k.jsx(eD,{tooltip:kd(r)}):null]},n))})})}function nD({children:t,icon:e="megaphone-fill"}){return k.jsxs("div",{className:"alert",children:[e?k.jsx(Me,{name:e}):null,k.jsx("div",{className:"alert-body",children:t})]})}function rD({children:t}){const[e,n]=I.useState(!1);return k.jsxs("div",{className:`expand-text ${e?"expanded":"contracted"}`,children:[t,k.jsxs("button",{className:"expand-button",onClick:()=>n(!e),children:[k.jsx(Me,{name:`caret-${e?"up":"left"}-fill`}),e?"Less":"More"]})]})}function oD({date__end:t,date__start:e,description:n,location:r,registration:o,speaker:i,title:a}){const s=o,l=s?k.jsx("a",{href:s,children:a}):a,c=[];let u=null;const f=e,p=t;if(f){const m=new Date(f),v=new Date(p||f),[w,y]=[m,v].map(M=>M.toLocaleString("en-US",{dateStyle:"long"})),[S,T]=[m,v].map(M=>M.toLocaleString("en-US",{timeStyle:"short"})),P=m.toLocaleTimeString("en-US",{timeZoneName:"short"}).split(" ")[2],E=[`${w},`,S];(T!=S||y!=w)&&(E.push("-"),y!=w&&E.push(`${y},`),E.push(T)),E.push(`(${P})`),c.push(k.jsx(Me,{name:"calendar"}),E.join(" ")),i&&c.push(k.jsx(Me,{name:"people-fill"}),i),r&&c.push(k.jsx(Me,{name:"geo-alt-fill"}),r);const O=m.toLocaleString("en-US",{dateStyle:"medium"}).split(",")[0].split(" ").map(M=>k.jsx("span",{children:M},M));u=s?k.jsx("a",{href:s,className:"event-icon",children:O}):k.jsx("div",{className:"event-icon",children:O})}return k.jsxs("div",{className:"event",children:[u,k.jsxs("div",{className:"event-details",children:[k.jsx("h3",{children:l}),c.length?k.jsx("div",{className:"event-metadata",children:c}):null,n?k.jsx(rD,{children:k.jsx("div",{children:Sd(n)})}):null]})]})}function iD({infoGroupId:t}){const e=ka(t),n=It("https://operations-api.access-ci.org/wh2/news/v1/affiliation/access-ci.org/current_outages/"),r=It("https://operations-api.access-ci.org/wh2/news/v1/affiliation/access-ci.org/future_outages/"),o=It(`https://support.access-ci.org/api/1.1/events/ag/${t}`),i=xd([e,n,r],(s,l,c)=>[...l.results,...c.results].filter(u=>u.AffectedResources.some(f=>s.infoResourceIds.includes(f.ResourceID))),[]),a=xd([o],s=>s.filter(l=>new Date(l.date__start)>=new Date),[]);if(!(!i.length&&!a.length))return k.jsxs(jn,{title:"Announcements and Events",icon:"calendar3",children:[i.map(({Subject:s,Content:l})=>k.jsxs(nD,{children:[s," ",k.jsx("a",{href:"https://operations.access-ci.org/infrastructure_news_view",children:"Learn more."})]},s)),a.map(s=>k.jsx(oD,{...s},s.title))]})}function aD({children:t,headingLevel:e=2,title:n}){const[r,o]=I.useState(!1),i=`h${e}`;return k.jsxs("div",{className:"accordion",children:[k.jsx(i,{className:"accordion-heading",children:k.jsxs("button",{"aria-expanded":r,onClick:()=>o(!r),children:[n,k.jsx(Me,{name:r?"caret-up-fill":"caret-down-fill"})]})}),k.jsx("div",{className:"accordion-content",style:{display:r?"block":"none"},children:t})]})}function sD({resource_descriptive_name:t,resource_description:e,compute:n,storage:r}){const o=(n||r||{}).recommended_use;return k.jsxs(aD,{title:t,children:[e?Sd(e):null,o?k.jsxs(k.Fragment,{children:[k.jsx("h3",{children:"Recommended Use"}),Sd(o)]}):null]})}function lD({infoGroupId:t}){const e=ka(t),n=It(e?e.infoResourceIds.map(l=>`https://operations-api.access-ci.org/wh2/cider/v1/info_resourceid/${l}/?format=json`):null,{defaultValue:[]}),r=n.filter(l=>l.results&&l.results.cider_type=="Compute").map(l=>({...l.results.compute,key:l.results.info_resourceid,name:l.results.resource_descriptive_name,format:(c,u)=>{const f=l.results.compute[u.attr];return u.format&&f?u.format(f,u):f||k.jsx(k.Fragment,{children:"—"})}})),o=n.length?[{name:"Nodes",attr:"node_count",format:l=>l.toLocaleString("en-us")},{name:"CPU Type",attr:"cpu_type"},{name:"CPU Speed",attr:"cpu_speed_ghz",format:l=>`${l} Ghz`},{name:"CPU Cores per Node",attr:"cpu_count_per_node"},{name:"RAM per CPU Core",attr:"memory_per_cpu_gb",format:l=>`${l.toLocaleString("en-us")} GB`},{name:"GPU",attr:"gpu_description"},{name:"Local Storage per Node",attr:"local_storage_per_node_gb",format:l=>`${l.toLocaleString("en-us")} GB`},{name:"Network Interconnect",attr:"interconnect"},{name:"Operating System",attr:"operating_system"},{name:"Batch System",attr:"batch_system"}].filter(l=>r.some(c=>c[l.attr])):[],i={key:"name",name:"Attribute",format:l=>k.jsx("strong",{children:l})},a=r.length>0&&o.length>0,s={compute:[],storage:[],other:[]};for(let{results:l}of n)(s[l.cider_type.toLowerCase()]||s.other).push(k.jsx(sD,{...l},l.resource_descriptive_name));return k.jsxs(k.Fragment,{children:[a||s.compute.length>0?k.jsxs(jn,{title:"Compute Resources",icon:"cpu-fill",children:[s.compute,a&&k.jsxs(k.Fragment,{children:[k.jsx("h3",{children:"Specifications"}),k.jsx(dc,{columns:[i,...r],rows:o,maxHeight:null})]})]}):null,s.storage.length>0?k.jsx(jn,{title:"Storage Resources",icon:"hdd-fill",children:s.storage}):null,s.other.length>0?k.jsx(jn,{title:"Other Resources",icon:"stars",children:s.other}):null]})}function R0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function L0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?R0(Object(n),!0).forEach(function(r){uD(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bc(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bc=function(e){return typeof e}:bc=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bc(t)}function vc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cD(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yc(t,e,n){return e&&cD(t.prototype,e),t}function uD(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dD(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sh(t,e)}function di(t){return di=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},di(t)}function sh(t,e){return sh=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},sh(t,e)}function fD(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pD(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hD(t)}function AD(t){var e=fD();return function(){var r=di(t),o;if(e){var i=di(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return pD(this,o)}}function gD(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=di(t),t!==null););return t}function wc(){return typeof Reflect<"u"&&Reflect.get?wc=Reflect.get:wc=function(e,n,r){var o=gD(e,n);if(o){var i=Object.getOwnPropertyDescriptor(o,n);return i.get?i.get.call(arguments.length<3?e:r):i.value}},wc.apply(this,arguments)}var mD={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function _r(t){console.error("[Glide warn]: ".concat(t))}function Pn(t){return parseInt(t)}function lh(t){return typeof t=="string"}function $a(t){var e=bc(t);return e==="function"||e==="object"&&!!t}function xc(t){return typeof t=="function"}function bD(t){return typeof t>"u"}function ch(t){return t.constructor===Array}function vD(t,e,n){var r={};for(var o in e)xc(e[o])?r[o]=e[o](t,r,n):_r("Extension must be a function");for(var i in r)xc(r[i].mount)&&r[i].mount();return r}function nt(t,e,n){Object.defineProperty(t,e,n)}function N0(t,e){var n=Object.assign({},t,e);if(e.hasOwnProperty("classes")){n.classes=Object.assign({},t.classes,e.classes);var r=["direction","type","slide","arrow","nav"];r.forEach(function(o){e.classes.hasOwnProperty(o)&&(n.classes[o]=L0(L0({},t.classes[o]),e.classes[o]))})}return e.hasOwnProperty("breakpoints")&&(n.breakpoints=Object.assign({},t.breakpoints,e.breakpoints)),n}var yD=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vc(this,t),this.events=e,this.hop=e.hasOwnProperty}return yc(t,[{key:"on",value:function(n,r){if(ch(n)){for(var o=0;o<n.length;o++)this.on(n[o],r);return}this.hop.call(this.events,n)||(this.events[n]=[]);var i=this.events[n].push(r)-1;return{remove:function(){delete this.events[n][i]}}}},{key:"emit",value:function(n,r){if(ch(n)){for(var o=0;o<n.length;o++)this.emit(n[o],r);return}this.hop.call(this.events,n)&&this.events[n].forEach(function(i){i(r||{})})}}]),t})(),wD=(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};vc(this,t),this._c={},this._t=[],this._e=new yD,this.disabled=!1,this.selector=e,this.settings=N0(mD,n),this.index=this.settings.startAt}return yc(t,[{key:"mount",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this._e.emit("mount.before"),$a(n)?this._c=vD(this,n,this._e):_r("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ch(n)?this._t=n:_r("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.settings=N0(this.settings,n),n.hasOwnProperty("startAt")&&(this.index=n.startAt),this._e.emit("update"),this}},{key:"go",value:function(n){return this._c.Run.make(n),this}},{key:"move",value:function(n){return this._c.Transition.disable(),this._c.Move.make(n),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n&&(this.settings.autoplay=n),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(n,r){return this._e.on(n,r),this}},{key:"isType",value:function(n){return this.settings.type===n}},{key:"settings",get:function(){return this._o},set:function(n){$a(n)?this._o=n:_r("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(n){this._i=Pn(n)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(n){this._d=!!n}}]),t})();function xD(t,e,n){var r={mount:function(){this._o=!1},make:function(c){var u=this;t.disabled||(!t.settings.waitForTransition||t.disable(),this.move=c,n.emit("run.before",this.move),this.calculate(),n.emit("run",this.move),e.Transition.after(function(){u.isStart()&&n.emit("run.start",u.move),u.isEnd()&&n.emit("run.end",u.move),u.isOffset()&&(u._o=!1,n.emit("run.offset",u.move)),n.emit("run.after",u.move),t.enable()}))},calculate:function(){var c=this.move,u=this.length,f=c.steps,p=c.direction,m=1;if(p==="="){if(t.settings.bound&&Pn(f)>u){t.index=u;return}t.index=f;return}if(p===">"&&f===">"){t.index=u;return}if(p==="<"&&f==="<"){t.index=0;return}if(p==="|"&&(m=t.settings.perView||1),p===">"||p==="|"&&f===">"){var v=o(m);v>u&&(this._o=!0),t.index=i(v,m);return}if(p==="<"||p==="|"&&f==="<"){var w=a(m);w<0&&(this._o=!0),t.index=s(w,m);return}_r("Invalid direction pattern [".concat(p).concat(f,"] has been used"))},isStart:function(){return t.index<=0},isEnd:function(){return t.index>=this.length},isOffset:function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;return c?this._o?c==="|>"?this.move.direction==="|"&&this.move.steps===">":c==="|<"?this.move.direction==="|"&&this.move.steps==="<":this.move.direction===c:!1:this._o},isBound:function(){return t.isType("slider")&&t.settings.focusAt!=="center"&&t.settings.bound}};function o(l){var c=t.index;return t.isType("carousel")?c+l:c+(l-c%l)}function i(l,c){var u=r.length;return l<=u?l:t.isType("carousel")?l-(u+1):t.settings.rewind?r.isBound()&&!r.isEnd()?u:0:r.isBound()?u:Math.floor(u/c)*c}function a(l){var c=t.index;if(t.isType("carousel"))return c-l;var u=Math.ceil(c/l);return(u-1)*l}function s(l,c){var u=r.length;return l>=0?l:t.isType("carousel")?l+(u+1):t.settings.rewind?r.isBound()&&r.isStart()?u:Math.floor(u/c)*c:0}return nt(r,"move",{get:function(){return this._m},set:function(c){var u=c.substr(1);this._m={direction:c.substr(0,1),steps:u?Pn(u)?Pn(u):u:0}}}),nt(r,"length",{get:function(){var c=t.settings,u=e.Html.slides.length;return this.isBound()?u-1-(Pn(c.perView)-1)+Pn(c.focusAt):u-1}}),nt(r,"offset",{get:function(){return this._o}}),r}function z0(){return new Date().getTime()}function Q0(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,o,i,a,s=0,l=function(){s=n.leading===!1?0:z0(),r=null,a=t.apply(o,i),r||(o=i=null)},c=function(){var f=z0();!s&&n.leading===!1&&(s=f);var p=e-(f-s);return o=this,i=arguments,p<=0||p>e?(r&&(clearTimeout(r),r=null),s=f,a=t.apply(o,i),r||(o=i=null)):!r&&n.trailing!==!1&&(r=setTimeout(l,p)),a};return c.cancel=function(){clearTimeout(r),s=0,r=o=i=null},c}var kc={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function kD(t,e,n){var r={apply:function(i){for(var a=0,s=i.length;a<s;a++){var l=i[a].style,c=e.Direction.value;a!==0?l[kc[c][0]]="".concat(this.value/2,"px"):l[kc[c][0]]="",a!==i.length-1?l[kc[c][1]]="".concat(this.value/2,"px"):l[kc[c][1]]=""}},remove:function(i){for(var a=0,s=i.length;a<s;a++){var l=i[a].style;l.marginLeft="",l.marginRight=""}}};return nt(r,"value",{get:function(){return Pn(t.settings.gap)}}),nt(r,"grow",{get:function(){return r.value*e.Sizes.length}}),nt(r,"reductor",{get:function(){var i=t.settings.perView;return r.value*(i-1)/i}}),n.on(["build.after","update"],Q0(function(){r.apply(e.Html.wrapper.children)},30)),n.on("destroy",function(){r.remove(e.Html.wrapper.children)}),r}function H0(t){if(t&&t.parentNode){for(var e=t.parentNode.firstChild,n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}return[]}function uh(t){return Array.prototype.slice.call(t)}var SD='[data-glide-el="track"]';function CD(t,e,n){var r={mount:function(){this.root=t.selector,this.track=this.root.querySelector(SD),this.collectSlides()},collectSlides:function(){this.slides=uh(this.wrapper.children).filter(function(i){return!i.classList.contains(t.settings.classes.slide.clone)})}};return nt(r,"root",{get:function(){return r._r},set:function(i){lh(i)&&(i=document.querySelector(i)),i!==null?r._r=i:_r("Root element must be a existing Html node")}}),nt(r,"track",{get:function(){return r._t},set:function(i){r._t=i}}),nt(r,"wrapper",{get:function(){return r.track.children[0]}}),n.on("update",function(){r.collectSlides()}),r}function ED(t,e,n){var r={mount:function(){this.value=t.settings.peek}};return nt(r,"value",{get:function(){return r._v},set:function(i){$a(i)?(i.before=Pn(i.before),i.after=Pn(i.after)):i=Pn(i),r._v=i}}),nt(r,"reductor",{get:function(){var i=r.value,a=t.settings.perView;return $a(i)?i.before/a+i.after/a:i*2/a}}),n.on(["resize","update"],function(){r.mount()}),r}function PD(t,e,n){var r={mount:function(){this._o=0},make:function(){var i=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.offset=a,n.emit("move",{movement:this.value}),e.Transition.after(function(){n.emit("move.after",{movement:i.value})})}};return nt(r,"offset",{get:function(){return r._o},set:function(i){r._o=bD(i)?0:Pn(i)}}),nt(r,"translate",{get:function(){return e.Sizes.slideWidth*t.index}}),nt(r,"value",{get:function(){var i=this.offset,a=this.translate;return e.Direction.is("rtl")?a+i:a-i}}),n.on(["build.before","run"],function(){r.make()}),r}function DD(t,e,n){var r={setupSlides:function(){for(var i="".concat(this.slideWidth,"px"),a=e.Html.slides,s=0;s<a.length;s++)a[s].style.width=i},setupWrapper:function(){e.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var i=e.Html.slides,a=0;a<i.length;a++)i[a].style.width="";e.Html.wrapper.style.width=""}};return nt(r,"length",{get:function(){return e.Html.slides.length}}),nt(r,"width",{get:function(){return e.Html.track.offsetWidth}}),nt(r,"wrapperSize",{get:function(){return r.slideWidth*r.length+e.Gaps.grow+e.Clones.grow}}),nt(r,"slideWidth",{get:function(){return r.width/t.settings.perView-e.Peek.reductor-e.Gaps.reductor}}),n.on(["build.before","resize","update"],function(){r.setupSlides(),r.setupWrapper()}),n.on("destroy",function(){r.remove()}),r}function TD(t,e,n){var r={mount:function(){n.emit("build.before"),this.typeClass(),this.activeClass(),n.emit("build.after")},typeClass:function(){e.Html.root.classList.add(t.settings.classes.type[t.settings.type])},activeClass:function(){var i=t.settings.classes,a=e.Html.slides[t.index];a&&(a.classList.add(i.slide.active),H0(a).forEach(function(s){s.classList.remove(i.slide.active)}))},removeClasses:function(){var i=t.settings.classes,a=i.type,s=i.slide;e.Html.root.classList.remove(a[t.settings.type]),e.Html.slides.forEach(function(l){l.classList.remove(s.active)})}};return n.on(["destroy","update"],function(){r.removeClasses()}),n.on(["resize","update"],function(){r.mount()}),n.on("move.after",function(){r.activeClass()}),r}function BD(t,e,n){var r={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=e.Html.slides,s=t.settings,l=s.perView,c=s.classes,u=s.cloningRatio;if(a.length>0)for(var f=+!!t.settings.peek,p=l+f+Math.round(l/2),m=a.slice(0,p).reverse(),v=a.slice(p*-1),w=0;w<Math.max(u,Math.floor(l/a.length));w++){for(var y=0;y<m.length;y++){var S=m[y].cloneNode(!0);S.classList.add(c.slide.clone),i.push(S)}for(var T=0;T<v.length;T++){var P=v[T].cloneNode(!0);P.classList.add(c.slide.clone),i.unshift(P)}}return i},append:function(){for(var i=this.items,a=e.Html,s=a.wrapper,l=a.slides,c=Math.floor(i.length/2),u=i.slice(0,c).reverse(),f=i.slice(c*-1).reverse(),p="".concat(e.Sizes.slideWidth,"px"),m=0;m<f.length;m++)s.appendChild(f[m]);for(var v=0;v<u.length;v++)s.insertBefore(u[v],l[0]);for(var w=0;w<i.length;w++)i[w].style.width=p},remove:function(){for(var i=this.items,a=0;a<i.length;a++)e.Html.wrapper.removeChild(i[a])}};return nt(r,"grow",{get:function(){return(e.Sizes.slideWidth+e.Gaps.value)*r.items.length}}),n.on("update",function(){r.remove(),r.mount(),r.append()}),n.on("build.before",function(){t.isType("carousel")&&r.append()}),n.on("destroy",function(){r.remove()}),r}var U0=(function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vc(this,t),this.listeners=e}return yc(t,[{key:"on",value:function(n,r,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;lh(n)&&(n=[n]);for(var a=0;a<n.length;a++)this.listeners[n[a]]=o,r.addEventListener(n[a],this.listeners[n[a]],i)}},{key:"off",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;lh(n)&&(n=[n]);for(var i=0;i<n.length;i++)r.removeEventListener(n[i],this.listeners[n[i]],o)}},{key:"destroy",value:function(){delete this.listeners}}]),t})();function ID(t,e,n){var r=new U0,o={mount:function(){this.bind()},bind:function(){r.on("resize",window,Q0(function(){n.emit("resize")},t.settings.throttle))},unbind:function(){r.off("resize",window)}};return n.on("destroy",function(){o.unbind(),r.destroy()}),o}var MD=["ltr","rtl"],OD={">":"<","<":">","=":"="};function _D(t,e,n){var r={mount:function(){this.value=t.settings.direction},resolve:function(i){var a=i.slice(0,1);return this.is("rtl")?i.split(a).join(OD[a]):i},is:function(i){return this.value===i},addClass:function(){e.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){e.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return nt(r,"value",{get:function(){return r._v},set:function(i){MD.indexOf(i)>-1?r._v=i:_r("Direction value must be `ltr` or `rtl`")}}),n.on(["destroy","update"],function(){r.removeClass()}),n.on("update",function(){r.mount()}),n.on(["build.before","update"],function(){r.addClass()}),r}function FD(t,e){return{modify:function(r){return e.Direction.is("rtl")?-r:r}}}function RD(t,e){return{modify:function(r){var o=Math.floor(r/e.Sizes.slideWidth);return r+e.Gaps.value*o}}}function LD(t,e){return{modify:function(r){return r+e.Clones.grow/2}}}function ND(t,e){return{modify:function(r){if(t.settings.focusAt>=0){var o=e.Peek.value;return $a(o)?r-o.before:r-o}return r}}}function zD(t,e){return{modify:function(r){var o=e.Gaps.value,i=e.Sizes.width,a=t.settings.focusAt,s=e.Sizes.slideWidth;return a==="center"?r-(i/2-s/2):r-s*a-o*a}}}function QD(t,e,n){var r=[RD,LD,ND,zD].concat(t._t,[FD]);return{mutate:function(i){for(var a=0;a<r.length;a++){var s=r[a];xc(s)&&xc(s().modify)?i=s(t,e,n).modify(i):_r("Transformer should be a function that returns an object with `modify()` method")}return i}}}function HD(t,e,n){var r={set:function(i){var a=QD(t,e).mutate(i),s="translate3d(".concat(-1*a,"px, 0px, 0px)");e.Html.wrapper.style.mozTransform=s,e.Html.wrapper.style.webkitTransform=s,e.Html.wrapper.style.transform=s},remove:function(){e.Html.wrapper.style.transform=""},getStartIndex:function(){var i=e.Sizes.length,a=t.index,s=t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?i+(a-s):(a+s)%i},getTravelDistance:function(){var i=e.Sizes.slideWidth*t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?i*-1:i}};return n.on("move",function(o){if(!t.isType("carousel")||!e.Run.isOffset())return r.set(o.movement);e.Transition.after(function(){n.emit("translate.jump"),r.set(e.Sizes.slideWidth*t.index)});var i=e.Sizes.slideWidth*e.Translate.getStartIndex();return r.set(i-e.Translate.getTravelDistance())}),n.on("destroy",function(){r.remove()}),r}function UD(t,e,n){var r=!1,o={compose:function(a){var s=t.settings;return r?"".concat(a," 0ms ").concat(s.animationTimingFunc):"".concat(a," ").concat(this.duration,"ms ").concat(s.animationTimingFunc)},set:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";e.Html.wrapper.style.transition=this.compose(a)},remove:function(){e.Html.wrapper.style.transition=""},after:function(a){setTimeout(function(){a()},this.duration)},enable:function(){r=!1,this.set()},disable:function(){r=!0,this.set()}};return nt(o,"duration",{get:function(){var a=t.settings;return t.isType("slider")&&e.Run.offset?a.rewindDuration:a.animationDuration}}),n.on("move",function(){o.set()}),n.on(["build.before","resize","translate.jump"],function(){o.disable()}),n.on("run",function(){o.enable()}),n.on("destroy",function(){o.remove()}),o}var j0=!1;try{var W0=Object.defineProperty({},"passive",{get:function(){j0=!0}});window.addEventListener("testPassive",null,W0),window.removeEventListener("testPassive",null,W0)}catch{}var V0=j0,jD='[data-glide-el="controls[nav]"]',dh='[data-glide-el^="controls"]',WD="".concat(dh,' [data-glide-dir*="<"]'),VD="".concat(dh,' [data-glide-dir*=">"]');function YD(t,e,n){var r=new U0,o=V0?{passive:!0}:!1,i={mount:function(){this._n=e.Html.root.querySelectorAll(jD),this._c=e.Html.root.querySelectorAll(dh),this._arrowControls={previous:e.Html.root.querySelectorAll(WD),next:e.Html.root.querySelectorAll(VD)},this.addBindings()},setActive:function(){for(var s=0;s<this._n.length;s++)this.addClass(this._n[s].children)},removeActive:function(){for(var s=0;s<this._n.length;s++)this.removeClass(this._n[s].children)},addClass:function(s){var l=t.settings,c=s[t.index];c&&(c.classList.add(l.classes.nav.active),H0(c).forEach(function(u){u.classList.remove(l.classes.nav.active)}))},removeClass:function(s){var l=s[t.index];l?.classList.remove(t.settings.classes.nav.active)},setArrowState:function(){if(!t.settings.rewind){var s=i._arrowControls.next,l=i._arrowControls.previous;this.resetArrowState(s,l),t.index===0&&this.disableArrow(l),t.index===e.Run.length&&this.disableArrow(s)}},resetArrowState:function(){for(var s=t.settings,l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];c.forEach(function(f){uh(f).forEach(function(p){p.classList.remove(s.classes.arrow.disabled)})})},disableArrow:function(){for(var s=t.settings,l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];c.forEach(function(f){uh(f).forEach(function(p){p.classList.add(s.classes.arrow.disabled)})})},addBindings:function(){for(var s=0;s<this._c.length;s++)this.bind(this._c[s].children)},removeBindings:function(){for(var s=0;s<this._c.length;s++)this.unbind(this._c[s].children)},bind:function(s){for(var l=0;l<s.length;l++)r.on("click",s[l],this.click),r.on("touchstart",s[l],this.click,o)},unbind:function(s){for(var l=0;l<s.length;l++)r.off(["click","touchstart"],s[l])},click:function(s){!V0&&s.type==="touchstart"&&s.preventDefault();var l=s.currentTarget.getAttribute("data-glide-dir");e.Run.make(e.Direction.resolve(l))}};return nt(i,"items",{get:function(){return i._c}}),n.on(["mount.after","move.after"],function(){i.setActive()}),n.on(["mount.after","run"],function(){i.setArrowState()}),n.on("destroy",function(){i.removeBindings(),i.removeActive(),r.destroy()}),i}var qD={Html:CD,Translate:HD,Transition:UD,Direction:_D,Peek:ED,Sizes:DD,Gaps:kD,Move:PD,Clones:BD,Resize:ID,Build:TD,Run:xD},KD=(function(t){dD(n,t);var e=AD(n);function n(){return vc(this,n),e.apply(this,arguments)}return yc(n,[{key:"mount",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return wc(di(n.prototype),"mount",this).call(this,Object.assign({},qD,o))}}]),n})(wD);function Sc({children:t,cssClass:e=""}){const n=I.useRef(null);return I.useEffect(()=>{n.current&&new KD(n.current).mount({Controls:YD})},[]),k.jsx("section",{className:`carousel ${e}`,children:k.jsxs("div",{className:"glide",ref:n,children:[k.jsx("div",{className:"glide__track","data-glide-el":"track",children:k.jsx("ul",{className:"glide__slides",children:t})}),k.jsxs("div",{className:"glide__arrows","data-glide-el":"controls",children:[k.jsx("button",{className:"glide__arrow glide__arrow--left","data-glide-dir":"<",children:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:k.jsx("path",{d:"M0 12l10.975 11 2.848-2.828-6.176-6.176H24v-3.992H7.646l6.176-6.176L10.975 1 0 12z"})})}),k.jsx("button",{className:"glide__arrow glide__arrow--right","data-glide-dir":">",children:k.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",children:k.jsx("path",{d:"M13.025 1l-2.847 2.828 6.176 6.176h-16.354v3.992h16.354l-6.176 6.176 2.847 2.828 10.975-11z"})})})]})]})})}function Y0({children:t}){return k.jsx("li",{className:"glide__slide",children:t})}function XD({title:t,description:e,linkText:n,linkURI:r,imageURI:o,imageAltText:i}){return k.jsx(Y0,{children:k.jsxs("span",{className:"slide-inner",children:[o&&k.jsx("a",{href:r,className:"slide-image",children:k.jsx("img",{src:o,alt:i})}),k.jsxs("span",{className:"slide-text",children:[t&&k.jsx("h2",{children:t}),e&&k.jsx("p",{children:e}),n&&k.jsx("a",{href:r,children:n})]})]})})}Sc.Slide=Y0,Sc.ImageSlide=XD;function GD({children:t,maxHeight:e="400px"}){return k.jsx("div",{className:"scroll-text",children:k.jsx("div",{className:"scroll-text-inner",style:{maxHeight:e},children:t})})}const JD="https://allocations.access-ci.org/current-projects.json";function Cc({icon:t,text:e,title:n}){if(e)return k.jsxs("abbr",{className:"project-meta",title:n,children:[k.jsx(Me,{name:t}),e]})}function ZD({infoGroupId:t}){const e=ka(t),n=It(e?`${JD}?${e.infoResourceIds.map(o=>`info_resourceids[]=${o}`).join("&")}`:null);if(!n||!n.projects||!n.projects.length)return null;const r=[{key:"resourceName",name:"Resource"},{key:"allocation",name:"Current Allocation",format:(o,i)=>i.units=="[Yes = 1, No = 0]"?o==1?"Yes":"No":`${o.toLocaleString("en-us")} ${i.units||""}`}];return k.jsx(jn,{title:"Recent Projects",icon:"pc-display",children:k.jsx(Sc,{cssclassName:"carousel-projects",children:n.projects.map(o=>k.jsxs(Sc.Slide,{children:[k.jsx("h3",{children:o.requestTitle}),k.jsxs("div",{className:"project-metadata",children:[k.jsx(Cc,{icon:"cash-coin",text:o.allocationType,title:"Allocation Type"}),k.jsx(Cc,{icon:"person-fill",text:`${o.pi} (${o.piInstitution})`,title:"Primary Investigator"}),k.jsx(Cc,{icon:"folder",text:o.fos,title:"Field of Science"}),k.jsx(Cc,{icon:"calendar-range",text:[o.beginDate,o.endDate].map(i=>new Date(i).toLocaleString("en-US",{dateStyle:"medium"})).join(" to "),title:"Project Dates"})]}),k.jsxs(GD,{children:[k.jsx("p",{children:o.abstract}),k.jsx(dc,{columns:r,rows:o.resources,maxHeight:null})]})]},o.requestTitle))})})}function es(t){return t+.5|0}const Fr=(t,e,n)=>Math.max(Math.min(t,n),e);function ts(t){return Fr(es(t*2.55),0,255)}function Rr(t){return Fr(es(t*255),0,255)}function Ar(t){return Fr(es(t/2.55)/100,0,1)}function q0(t){return Fr(es(t*100),0,100)}const mn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},fh=[..."0123456789ABCDEF"],$D=t=>fh[t&15],eT=t=>fh[(t&240)>>4]+fh[t&15],Ec=t=>(t&240)>>4===(t&15),tT=t=>Ec(t.r)&&Ec(t.g)&&Ec(t.b)&&Ec(t.a);function nT(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&mn[t[1]]*17,g:255&mn[t[2]]*17,b:255&mn[t[3]]*17,a:e===5?mn[t[4]]*17:255}:(e===7||e===9)&&(n={r:mn[t[1]]<<4|mn[t[2]],g:mn[t[3]]<<4|mn[t[4]],b:mn[t[5]]<<4|mn[t[6]],a:e===9?mn[t[7]]<<4|mn[t[8]]:255})),n}const rT=(t,e)=>t<255?e(t):"";function oT(t){var e=tT(t)?$D:eT;return t?"#"+e(t.r)+e(t.g)+e(t.b)+rT(t.a,e):void 0}const iT=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function K0(t,e,n){const r=e*Math.min(n,1-n),o=(i,a=(i+t/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0),o(8),o(4)]}function aT(t,e,n){const r=(o,i=(o+t/60)%6)=>n-n*e*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function sT(t,e,n){const r=K0(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)r[o]*=1-e-n,r[o]+=e;return r}function lT(t,e,n,r,o){return t===o?(e-n)/r+(e<n?6:0):e===o?(n-t)/r+2:(t-e)/r+4}function hh(t){const n=t.r/255,r=t.g/255,o=t.b/255,i=Math.max(n,r,o),a=Math.min(n,r,o),s=(i+a)/2;let l,c,u;return i!==a&&(u=i-a,c=s>.5?u/(2-i-a):u/(i+a),l=lT(n,r,o,u,i),l=l*60+.5),[l|0,c||0,s]}function ph(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(Rr)}function Ah(t,e,n){return ph(K0,t,e,n)}function cT(t,e,n){return ph(sT,t,e,n)}function uT(t,e,n){return ph(aT,t,e,n)}function X0(t){return(t%360+360)%360}function dT(t){const e=iT.exec(t);let n=255,r;if(!e)return;e[5]!==r&&(n=e[6]?ts(+e[5]):Rr(+e[5]));const o=X0(+e[2]),i=+e[3]/100,a=+e[4]/100;return e[1]==="hwb"?r=cT(o,i,a):e[1]==="hsv"?r=uT(o,i,a):r=Ah(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}function fT(t,e){var n=hh(t);n[0]=X0(n[0]+e),n=Ah(n),t.r=n[0],t.g=n[1],t.b=n[2]}function hT(t){if(!t)return;const e=hh(t),n=e[0],r=q0(e[1]),o=q0(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${o}%, ${Ar(t.a)})`:`hsl(${n}, ${r}%, ${o}%)`}const G0={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},J0={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function pT(){const t={},e=Object.keys(J0),n=Object.keys(G0);let r,o,i,a,s;for(r=0;r<e.length;r++){for(a=s=e[r],o=0;o<n.length;o++)i=n[o],s=s.replace(i,G0[i]);i=parseInt(J0[a],16),t[s]=[i>>16&255,i>>8&255,i&255]}return t}let Pc;function AT(t){Pc||(Pc=pT(),Pc.transparent=[0,0,0,0]);const e=Pc[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const gT=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function mT(t){const e=gT.exec(t);let n=255,r,o,i;if(e){if(e[7]!==r){const a=+e[7];n=e[8]?ts(a):Fr(a*255,0,255)}return r=+e[1],o=+e[3],i=+e[5],r=255&(e[2]?ts(r):Fr(r,0,255)),o=255&(e[4]?ts(o):Fr(o,0,255)),i=255&(e[6]?ts(i):Fr(i,0,255)),{r,g:o,b:i,a:n}}}function bT(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ar(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const gh=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,fi=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function vT(t,e,n){const r=fi(Ar(t.r)),o=fi(Ar(t.g)),i=fi(Ar(t.b));return{r:Rr(gh(r+n*(fi(Ar(e.r))-r))),g:Rr(gh(o+n*(fi(Ar(e.g))-o))),b:Rr(gh(i+n*(fi(Ar(e.b))-i))),a:t.a+n*(e.a-t.a)}}function Dc(t,e,n){if(t){let r=hh(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,e===0?360:1)),r=Ah(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Z0(t,e){return t&&Object.assign(e||{},t)}function $0(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Rr(t[3]))):(e=Z0(t,{r:0,g:0,b:0,a:1}),e.a=Rr(e.a)),e}function yT(t){return t.charAt(0)==="r"?mT(t):dT(t)}class ns{constructor(e){if(e instanceof ns)return e;const n=typeof e;let r;n==="object"?r=$0(e):n==="string"&&(r=nT(e)||AT(e)||yT(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Z0(this._rgb);return e&&(e.a=Ar(e.a)),e}set rgb(e){this._rgb=$0(e)}rgbString(){return this._valid?bT(this._rgb):void 0}hexString(){return this._valid?oT(this._rgb):void 0}hslString(){return this._valid?hT(this._rgb):void 0}mix(e,n){if(e){const r=this.rgb,o=e.rgb;let i;const a=n===i?.5:n,s=2*a-1,l=r.a-o.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;i=1-c,r.r=255&c*r.r+i*o.r+.5,r.g=255&c*r.g+i*o.g+.5,r.b=255&c*r.b+i*o.b+.5,r.a=a*r.a+(1-a)*o.a,this.rgb=r}return this}interpolate(e,n){return e&&(this._rgb=vT(this._rgb,e._rgb,n)),this}clone(){return new ns(this.rgb)}alpha(e){return this._rgb.a=Rr(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=es(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Dc(this._rgb,2,e),this}darken(e){return Dc(this._rgb,2,-e),this}saturate(e){return Dc(this._rgb,1,e),this}desaturate(e){return Dc(this._rgb,1,-e),this}rotate(e){return fT(this._rgb,e),this}}function gr(){}const wT=(()=>{let t=0;return()=>t++})();function We(t){return t==null}function ht(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function Oe(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function bn(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function qn(t,e){return bn(t)?t:e}function Re(t,e){return typeof t>"u"?e:t}const xT=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,ev=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Ge(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Ne(t,e,n,r){let o,i,a;if(ht(t))for(i=t.length,o=0;o<i;o++)e.call(n,t[o],o);else if(Oe(t))for(a=Object.keys(t),i=a.length,o=0;o<i;o++)e.call(n,t[a[o]],a[o])}function Tc(t,e){let n,r,o,i;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(o=t[n],i=e[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function Bc(t){if(ht(t))return t.map(Bc);if(Oe(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let o=0;for(;o<r;++o)e[n[o]]=Bc(t[n[o]]);return e}return t}function tv(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function kT(t,e,n,r){if(!tv(t))return;const o=e[t],i=n[t];Oe(o)&&Oe(i)?rs(o,i,r):e[t]=Bc(i)}function rs(t,e,n){const r=ht(e)?e:[e],o=r.length;if(!Oe(t))return t;n=n||{};const i=n.merger||kT;let a;for(let s=0;s<o;++s){if(a=r[s],!Oe(a))continue;const l=Object.keys(a);for(let c=0,u=l.length;c<u;++c)i(l[c],t,a,n)}return t}function os(t,e){return rs(t,e,{merger:ST})}function ST(t,e,n){if(!tv(t))return;const r=e[t],o=n[t];Oe(r)&&Oe(o)?os(r,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Bc(o))}const nv={"":t=>t,x:t=>t.x,y:t=>t.y};function CT(t){const e=t.split("."),n=[];let r="";for(const o of e)r+=o,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function ET(t){const e=CT(t);return n=>{for(const r of e){if(r==="")break;n=n&&n[r]}return n}}function Lr(t,e){return(nv[e]||(nv[e]=ET(e)))(t)}function mh(t){return t.charAt(0).toUpperCase()+t.slice(1)}const is=t=>typeof t<"u",Nr=t=>typeof t=="function",rv=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function PT(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const pt=Math.PI,rn=2*pt,Ic=Number.POSITIVE_INFINITY,DT=pt/180,on=pt/2,fo=pt/4,ov=pt*2/3,iv=Math.log10,zr=Math.sign;function Mc(t,e,n){return Math.abs(t-e)<n}function av(t){const e=Math.round(t);t=Mc(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(iv(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function TT(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r===0&&(e.push(r),e.push(t/r));return n===(n|0)&&e.push(n),e.sort((o,i)=>o-i).pop(),e}function BT(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function Oc(t){return!BT(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function IT(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function MT(t,e,n){let r,o,i;for(r=0,o=t.length;r<o;r++)i=t[r][n],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function Kn(t){return t*(pt/180)}function OT(t){return t*(180/pt)}function sv(t){if(!bn(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function _T(t,e){const n=e.x-t.x,r=e.y-t.y,o=Math.sqrt(n*n+r*r);let i=Math.atan2(r,n);return i<-.5*pt&&(i+=rn),{angle:i,distance:o}}function FT(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ho(t){return(t%rn+rn)%rn}function bh(t,e,n,r){const o=ho(t),i=ho(e),a=ho(n),s=ho(i-o),l=ho(a-o),c=ho(o-i),u=ho(o-a);return o===i||o===a||r&&i===a||s>l&&c<u}function Dn(t,e,n){return Math.max(e,Math.min(n,t))}function RT(t){return Dn(t,-32768,32767)}function hi(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function vh(t,e,n){n=n||(a=>t[a]<e);let r=t.length-1,o=0,i;for(;r-o>1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const yh=(t,e,n,r)=>vh(t,n,r?o=>{const i=t[o][e];return i<n||i===n&&t[o+1][e]===n}:o=>t[o][e]<n),LT=(t,e,n)=>vh(t,n,r=>t[r][e]>=n);function NT(t,e,n){let r=0,o=t.length;for(;r<o&&t[r]<e;)r++;for(;o>r&&t[o-1]>n;)o--;return r>0||o<t.length?t.slice(r,o):t}const lv=["push","pop","shift","splice","unshift"];function zT(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),lv.forEach(n=>{const r="_onData"+mh(n),o=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...i){const a=o.apply(this,i);return t._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...i)}),a}})})}function cv(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,o=r.indexOf(e);o!==-1&&r.splice(o,1),!(r.length>0)&&(lv.forEach(i=>{delete t[i]}),delete t._chartjs)}function uv(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const dv=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function fv(t,e){let n=[],r=!1;return function(...o){n=o,r||(r=!0,dv.call(window,()=>{r=!1,t.apply(e,n)}))}}function QT(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}const wh=t=>t==="start"?"left":t==="end"?"right":"center",St=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,HT=(t,e,n,r)=>t===(r?"left":"right")?n:t==="center"?(e+n)/2:e,_c=t=>t===0||t===1,hv=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*rn/n)),pv=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*rn/n)+1,as={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*on)+1,easeOutSine:t=>Math.sin(t*on),easeInOutSine:t=>-.5*(Math.cos(pt*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>_c(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>_c(t)?t:hv(t,.075,.3),easeOutElastic:t=>_c(t)?t:pv(t,.075,.3),easeInOutElastic(t){return _c(t)?t:t<.5?.5*hv(t*2,.1125,.45):.5+.5*pv(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-as.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?as.easeInBounce(t*2)*.5:as.easeOutBounce(t*2-1)*.5+.5};function Av(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function gv(t){return Av(t)?t:new ns(t)}function xh(t){return Av(t)?t:new ns(t).saturate(.5).darken(.1).hexString()}const UT=["x","y","borderWidth","radius","tension"],jT=["color","borderColor","backgroundColor"];function WT(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:jT},numbers:{type:"number",properties:UT}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function VT(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const mv=new Map;function YT(t,e){e=e||{};const n=t+JSON.stringify(e);let r=mv.get(n);return r||(r=new Intl.NumberFormat(t,e),mv.set(n,r)),r}function Fc(t,e,n){return YT(e,n).format(t)}const qT={values(t){return ht(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const r=this.chart.options.locale;let o,i=t;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),i=KT(t,n)}const a=iv(Math.abs(i)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Fc(t,r,l)}};function KT(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var bv={formatters:qT};function XT(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:bv.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const po=Object.create(null),kh=Object.create(null);function ss(t,e){if(!e)return t;const n=e.split(".");for(let r=0,o=n.length;r<o;++r){const i=n[r];t=t[i]||(t[i]=Object.create(null))}return t}function Sh(t,e,n){return typeof e=="string"?rs(ss(t,e),n):rs(ss(t,""),e)}class GT{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,o)=>xh(o.backgroundColor),this.hoverBorderColor=(r,o)=>xh(o.borderColor),this.hoverColor=(r,o)=>xh(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return Sh(this,e,n)}get(e){return ss(this,e)}describe(e,n){return Sh(kh,e,n)}override(e,n){return Sh(po,e,n)}route(e,n,r,o){const i=ss(this,e),a=ss(this,r),s="_"+n;Object.defineProperties(i,{[s]:{value:i[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[o];return Oe(l)?Object.assign({},c,l):Re(l,c)},set(l){this[s]=l}}})}apply(e){e.forEach(n=>n(this))}}var et=new GT({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[WT,VT,XT]);function JT(t){return!t||We(t.size)||We(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function vv(t,e,n,r,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,n.push(o)),i>r&&(r=i),r}function Ao(t,e,n){const r=t.currentDevicePixelRatio,o=n!==0?Math.max(n/2,.5):0;return Math.round((e-o)*r)/r+o}function yv(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function wv(t,e,n,r){xv(t,e,n,r,null)}function xv(t,e,n,r,o){let i,a,s,l,c,u,f,p;const m=e.pointStyle,v=e.rotation,w=e.radius;let y=(v||0)*DT;if(m&&typeof m=="object"&&(i=m.toString(),i==="[object HTMLImageElement]"||i==="[object HTMLCanvasElement]")){t.save(),t.translate(n,r),t.rotate(y),t.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),t.restore();return}if(!(isNaN(w)||w<=0)){switch(t.beginPath(),m){default:o?t.ellipse(n,r,o/2,w,0,0,rn):t.arc(n,r,w,0,rn),t.closePath();break;case"triangle":u=o?o/2:w,t.moveTo(n+Math.sin(y)*u,r-Math.cos(y)*w),y+=ov,t.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*w),y+=ov,t.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*w),t.closePath();break;case"rectRounded":c=w*.516,l=w-c,a=Math.cos(y+fo)*l,f=Math.cos(y+fo)*(o?o/2-c:l),s=Math.sin(y+fo)*l,p=Math.sin(y+fo)*(o?o/2-c:l),t.arc(n-f,r-s,c,y-pt,y-on),t.arc(n+p,r-a,c,y-on,y),t.arc(n+f,r+s,c,y,y+on),t.arc(n-p,r+a,c,y+on,y+pt),t.closePath();break;case"rect":if(!v){l=Math.SQRT1_2*w,u=o?o/2:l,t.rect(n-u,r-l,2*u,2*l);break}y+=fo;case"rectRot":f=Math.cos(y)*(o?o/2:w),a=Math.cos(y)*w,s=Math.sin(y)*w,p=Math.sin(y)*(o?o/2:w),t.moveTo(n-f,r-s),t.lineTo(n+p,r-a),t.lineTo(n+f,r+s),t.lineTo(n-p,r+a),t.closePath();break;case"crossRot":y+=fo;case"cross":f=Math.cos(y)*(o?o/2:w),a=Math.cos(y)*w,s=Math.sin(y)*w,p=Math.sin(y)*(o?o/2:w),t.moveTo(n-f,r-s),t.lineTo(n+f,r+s),t.moveTo(n+p,r-a),t.lineTo(n-p,r+a);break;case"star":f=Math.cos(y)*(o?o/2:w),a=Math.cos(y)*w,s=Math.sin(y)*w,p=Math.sin(y)*(o?o/2:w),t.moveTo(n-f,r-s),t.lineTo(n+f,r+s),t.moveTo(n+p,r-a),t.lineTo(n-p,r+a),y+=fo,f=Math.cos(y)*(o?o/2:w),a=Math.cos(y)*w,s=Math.sin(y)*w,p=Math.sin(y)*(o?o/2:w),t.moveTo(n-f,r-s),t.lineTo(n+f,r+s),t.moveTo(n+p,r-a),t.lineTo(n-p,r+a);break;case"line":a=o?o/2:Math.cos(y)*w,s=Math.sin(y)*w,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(y)*(o?o/2:w),r+Math.sin(y)*w);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function kv(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Ch(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Eh(t){t.restore()}function ZT(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),We(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function $T(t,e,n,r,o){if(o.strikethrough||o.underline){const i=t.measureText(r),a=e-i.actualBoundingBoxLeft,s=e+i.actualBoundingBoxRight,l=n-i.actualBoundingBoxAscent,c=n+i.actualBoundingBoxDescent,u=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,u),t.lineTo(s,u),t.stroke()}}function eB(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function ls(t,e,n,r,o,i={}){const a=ht(e)?e:[e],s=i.strokeWidth>0&&i.strokeColor!=="";let l,c;for(t.save(),t.font=o.string,ZT(t,i),l=0;l<a.length;++l)c=a[l],i.backdrop&&eB(t,i.backdrop),s&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),We(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(c,n,r,i.maxWidth)),t.fillText(c,n,r,i.maxWidth),$T(t,n,r,c,i),r+=Number(o.lineHeight);t.restore()}function Rc(t,e){const{x:n,y:r,w:o,h:i,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*pt,pt,!0),t.lineTo(n,r+i-a.bottomLeft),t.arc(n+a.bottomLeft,r+i-a.bottomLeft,a.bottomLeft,pt,on,!0),t.lineTo(n+o-a.bottomRight,r+i),t.arc(n+o-a.bottomRight,r+i-a.bottomRight,a.bottomRight,on,0,!0),t.lineTo(n+o,r+a.topRight),t.arc(n+o-a.topRight,r+a.topRight,a.topRight,0,-on,!0),t.lineTo(n+a.topLeft,r)}const tB=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,nB=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function rB(t,e){const n=(""+t).match(tB);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const oB=t=>+t||0;function Sv(t,e){const n={},r=Oe(e),o=r?Object.keys(e):e,i=Oe(t)?r?a=>Re(t[a],t[e[a]]):a=>t[a]:()=>t;for(const a of o)n[a]=oB(i(a));return n}function Cv(t){return Sv(t,{top:"y",right:"x",bottom:"y",left:"x"})}function pi(t){return Sv(t,["topLeft","topRight","bottomLeft","bottomRight"])}function vn(t){const e=Cv(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Ct(t,e){t=t||{},e=e||et.font;let n=Re(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let r=Re(t.style,e.style);r&&!(""+r).match(nB)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const o={family:Re(t.family,e.family),lineHeight:rB(Re(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:Re(t.weight,e.weight),string:""};return o.string=JT(o),o}function Lc(t,e,n,r){let o,i,a;for(o=0,i=t.length;o<i;++o)if(a=t[o],a!==void 0&&a!==void 0)return a}function iB(t,e,n){const{min:r,max:o}=t,i=ev(e,(o-r)/2),a=(s,l)=>n&&s===0?0:s+l;return{min:a(r,-Math.abs(i)),max:a(o,i)}}function Ai(t,e){return Object.assign(Object.create(t),e)}function Ph(t,e=[""],n,r,o=()=>t[0]){const i=n||t;typeof r>"u"&&(r=Bv("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:r,_getTarget:o,override:s=>Ph([s,...t],e,i,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete t[0][l],!0},get(s,l){return Pv(s,l,()=>hB(l,e,t,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(s,l){return Iv(s).includes(l)},ownKeys(s){return Iv(s)},set(s,l,c){const u=s._storage||(s._storage=o());return s[l]=u[l]=c,delete s._keys,!0}})}function gi(t,e,n,r){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Ev(t,r),setContext:i=>gi(t,i,n,r),override:i=>gi(t.override(i),e,n,r)};return new Proxy(o,{deleteProperty(i,a){return delete i[a],delete t[a],!0},get(i,a,s){return Pv(i,a,()=>sB(i,a,s))},getOwnPropertyDescriptor(i,a){return i._descriptors.allKeys?Reflect.has(t,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,a)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(i,a){return Reflect.has(t,a)},ownKeys(){return Reflect.ownKeys(t)},set(i,a,s){return t[a]=s,delete i[a],!0}})}function Ev(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:r,isScriptable:Nr(n)?n:()=>n,isIndexable:Nr(r)?r:()=>r}}const aB=(t,e)=>t?t+mh(e):e,Dh=(t,e)=>Oe(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Pv(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const r=n();return t[e]=r,r}function sB(t,e,n){const{_proxy:r,_context:o,_subProxy:i,_descriptors:a}=t;let s=r[e];return Nr(s)&&a.isScriptable(e)&&(s=lB(e,s,t,n)),ht(s)&&s.length&&(s=cB(e,s,t,a.isIndexable)),Dh(e,s)&&(s=gi(s,o,i&&i[e],a)),s}function lB(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=e(i,a||r);return s.delete(t),Dh(t,l)&&(l=Th(o._scopes,o,t,l)),l}function cB(t,e,n,r){const{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=n;if(typeof i.index<"u"&&r(t))return e[i.index%e.length];if(Oe(e[0])){const l=e,c=o._scopes.filter(u=>u!==l);e=[];for(const u of l){const f=Th(c,o,t,u);e.push(gi(f,i,a&&a[t],s))}}return e}function Dv(t,e,n){return Nr(t)?t(e,n):t}const uB=(t,e)=>t===!0?e:typeof t=="string"?Lr(e,t):void 0;function dB(t,e,n,r,o){for(const i of e){const a=uB(n,i);if(a){t.add(a);const s=Dv(a._fallback,n,o);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function Th(t,e,n,r){const o=e._rootScopes,i=Dv(e._fallback,n,r),a=[...t,...o],s=new Set;s.add(r);let l=Tv(s,a,n,i||n,r);return l===null||typeof i<"u"&&i!==n&&(l=Tv(s,a,i,l,r),l===null)?!1:Ph(Array.from(s),[""],o,i,()=>fB(e,n,r))}function Tv(t,e,n,r,o){for(;n;)n=dB(t,e,n,r,o);return n}function fB(t,e,n){const r=t._getTarget();e in r||(r[e]={});const o=r[e];return ht(o)&&Oe(n)?n:o||{}}function hB(t,e,n,r){let o;for(const i of e)if(o=Bv(aB(i,t),n),typeof o<"u")return Dh(t,o)?Th(n,r,t,o):o}function Bv(t,e){for(const n of e){if(!n)continue;const r=n[t];if(typeof r<"u")return r}}function Iv(t){let e=t._keys;return e||(e=t._keys=pB(t._scopes)),e}function pB(t){const e=new Set;for(const n of t)for(const r of Object.keys(n).filter(o=>!o.startsWith("_")))e.add(r);return Array.from(e)}function AB(t,e,n,r){const{iScale:o}=t,{key:i="r"}=this._parsing,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=e[c],a[s]={r:o.parse(Lr(u,i),c)};return a}function Bh(){return typeof window<"u"&&typeof document<"u"}function Ih(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Nc(t,e,n){let r;return typeof t=="string"?(r=parseInt(t,10),t.indexOf("%")!==-1&&(r=r/100*e.parentNode[n])):r=t,r}const zc=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function gB(t,e){return zc(t).getPropertyValue(e)}const mB=["top","right","bottom","left"];function go(t,e,n){const r={};n=n?"-"+n:"";for(let o=0;o<4;o++){const i=mB[o];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const bB=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function vB(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:o,offsetY:i}=r;let a=!1,s,l;if(bB(o,i,t.target))s=o,l=i;else{const c=e.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function mo(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,o=zc(n),i=o.boxSizing==="border-box",a=go(o,"padding"),s=go(o,"border","width"),{x:l,y:c,box:u}=vB(t,n),f=a.left+(u&&s.left),p=a.top+(u&&s.top);let{width:m,height:v}=e;return i&&(m-=a.width+s.width,v-=a.height+s.height),{x:Math.round((l-f)/m*n.width/r),y:Math.round((c-p)/v*n.height/r)}}function yB(t,e,n){let r,o;if(e===void 0||n===void 0){const i=t&&Ih(t);if(!i)e=t.clientWidth,n=t.clientHeight;else{const a=i.getBoundingClientRect(),s=zc(i),l=go(s,"border","width"),c=go(s,"padding");e=a.width-c.width-l.width,n=a.height-c.height-l.height,r=Nc(s.maxWidth,i,"clientWidth"),o=Nc(s.maxHeight,i,"clientHeight")}}return{width:e,height:n,maxWidth:r||Ic,maxHeight:o||Ic}}const Qr=t=>Math.round(t*10)/10;function wB(t,e,n,r){const o=zc(t),i=go(o,"margin"),a=Nc(o.maxWidth,t,"clientWidth")||Ic,s=Nc(o.maxHeight,t,"clientHeight")||Ic,l=yB(t,e,n);let{width:c,height:u}=l;if(o.boxSizing==="content-box"){const p=go(o,"border","width"),m=go(o,"padding");c-=m.width+p.width,u-=m.height+p.height}return c=Math.max(0,c-i.width),u=Math.max(0,r?c/r:u-i.height),c=Qr(Math.min(c,a,l.maxWidth)),u=Qr(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Qr(c/2)),(e!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Qr(Math.floor(u*r))),{width:c,height:u}}function Mv(t,e,n){const r=e||1,o=Qr(t.height*r),i=Qr(t.width*r);t.height=Qr(t.height),t.width=Qr(t.width);const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),t.currentDevicePixelRatio!==r||a.height!==o||a.width!==i?(t.currentDevicePixelRatio=r,a.height=o,a.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0):!1}const xB=(function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Bh()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t})();function Ov(t,e){const n=gB(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const kB=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},SB=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function mi(t,e,n){return t?kB(e,n):SB()}function _v(t,e){let n,r;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Fv(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Qc(t,e,n){return t.options.clip?t[n]:e[n]}function CB(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:Qc(n,e,"left"),right:Qc(n,e,"right"),top:Qc(r,e,"top"),bottom:Qc(r,e,"bottom")}:e}function EB(t,e){const n=e._clip;if(n.disabled)return!1;const r=CB(e,t.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:r.bottom+(n.bottom===!0?0:n.bottom)}}class PB{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,r,o){const i=n.listeners[o],a=n.duration;i.forEach(s=>s({chart:e,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=dv.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((r,o)=>{if(!r.running||!r.items.length)return;const i=r.items;let a=i.length-1,s=!1,l;for(;a>=0;--a)l=i[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(e),s=!0):(i[a]=i[i.length-1],i.pop());s&&(o.draw(),this._notify(o,r,e,"progress")),i.length||(r.running=!1,this._notify(o,r,e,"complete"),r.initial=!1),n+=i.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let r=n.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,r)),r}listen(e,n,r){this._getAnims(e).listeners[n].push(r)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,o)=>Math.max(r,o._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const r=n.items;let o=r.length-1;for(;o>=0;--o)r[o].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var mr=new PB;const Rv="transparent",DB={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const r=gv(t||Rv),o=r.valid&&gv(e||Rv);return o&&o.valid?o.mix(r,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class TB{constructor(e,n,r,o){const i=n[r];o=Lc([e.to,o,i,e.from]);const a=Lc([e.from,i,o]);this._active=!0,this._fn=e.fn||DB[e.type||typeof a],this._easing=as[e.easing]||as.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=a,this._to=o,this._promises=void 0}active(){return this._active}update(e,n,r){if(this._active){this._notify(!1);const o=this._target[this._prop],i=r-this._start,a=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=Lc([e.to,n,o,e.from]),this._from=Lc([e.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,r=this._duration,o=this._prop,i=this._from,a=this._loop,s=this._to;let l;if(this._active=i!==s&&(a||n<r),!this._active){this._target[o]=s,this._notify(!0);return}if(n<0){this._target[o]=i;return}l=n/r%2,l=a&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(i,s,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,r)=>{e.push({res:n,rej:r})})}_notify(e){const n=e?"res":"rej",r=this._promises||[];for(let o=0;o<r.length;o++)r[o][n]()}}class Lv{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!Oe(e))return;const n=Object.keys(et.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(o=>{const i=e[o];if(!Oe(i))return;const a={};for(const s of n)a[s]=i[s];(ht(i.properties)&&i.properties||[o]).forEach(s=>{(s===o||!r.has(s))&&r.set(s,a)})})}_animateOptions(e,n){const r=n.options,o=IB(e,r);if(!o)return[];const i=this._createAnimations(o,r);return r.$shared&&BB(e.options.$animations,r).then(()=>{e.options=r},()=>{}),i}_createAnimations(e,n){const r=this._properties,o=[],i=e.$animations||(e.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(e,n));continue}const u=n[c];let f=i[c];const p=r.get(c);if(f)if(p&&f.active()){f.update(p,u,s);continue}else f.cancel();if(!p||!p.duration){e[c]=u;continue}i[c]=f=new TB(p,e,c,u),o.push(f)}return o}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const r=this._createAnimations(e,n);if(r.length)return mr.add(this._chart,r),!0}}function BB(t,e){const n=[],r=Object.keys(e);for(let o=0;o<r.length;o++){const i=t[r[o]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function IB(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Nv(t,e){const n=t&&t.options||{},r=n.reverse,o=n.min===void 0?e:0,i=n.max===void 0?e:0;return{start:r?i:o,end:r?o:i}}function MB(t,e,n){if(n===!1)return!1;const r=Nv(t,n),o=Nv(e,n);return{top:o.end,right:r.end,bottom:o.start,left:r.start}}function OB(t){let e,n,r,o;return Oe(t)?(e=t.top,n=t.right,r=t.bottom,o=t.left):e=n=r=o=t,{top:e,right:n,bottom:r,left:o,disabled:t===!1}}function zv(t,e){const n=[],r=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=r.length;o<i;++o)n.push(r[o].index);return n}function Qv(t,e,n,r={}){const o=t.keys,i=r.mode==="single";let a,s,l,c;if(e===null)return;let u=!1;for(a=0,s=o.length;a<s;++a){if(l=+o[a],l===n){if(u=!0,r.all)continue;break}c=t.values[l],bn(c)&&(i||e===0||zr(e)===zr(c))&&(e+=c)}return!u&&!r.all?0:e}function _B(t,e){const{iScale:n,vScale:r}=e,o=n.axis==="x"?"x":"y",i=r.axis==="x"?"x":"y",a=Object.keys(t),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[o]:u,[i]:t[u]};return s}function Mh(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function FB(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}function RB(t){const{min:e,max:n,minDefined:r,maxDefined:o}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}function LB(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function Hv(t,e,n,r){for(const o of e.getMatchingVisibleMetas(r).reverse()){const i=t[o.index];if(n&&i>0||!n&&i<0)return o.index}return null}function Uv(t,e){const{chart:n,_cachedMeta:r}=t,o=n._stacks||(n._stacks={}),{iScale:i,vScale:a,index:s}=r,l=i.axis,c=a.axis,u=FB(i,a,r),f=e.length;let p;for(let m=0;m<f;++m){const v=e[m],{[l]:w,[c]:y}=v,S=v._stacks||(v._stacks={});p=S[c]=LB(o,u,w),p[s]=y,p._top=Hv(p,a,!0,r.type),p._bottom=Hv(p,a,!1,r.type);const T=p._visualValues||(p._visualValues={});T[s]=y}}function Oh(t,e){const n=t.scales;return Object.keys(n).filter(r=>n[r].axis===e).shift()}function NB(t,e){return Ai(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function zB(t,e,n){return Ai(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function cs(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const o of e){const i=o._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const _h=t=>t==="reset"||t==="none",jv=(t,e)=>e?t:Object.assign({},t),QB=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:zv(n,!0),values:null};class Hc{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Mh(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&cs(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,r=this.getDataset(),o=(f,p,m,v)=>f==="x"?p:f==="r"?v:m,i=n.xAxisID=Re(r.xAxisID,Oh(e,"x")),a=n.yAxisID=Re(r.yAxisID,Oh(e,"y")),s=n.rAxisID=Re(r.rAxisID,Oh(e,"r")),l=n.indexAxis,c=n.iAxisID=o(l,i,a,s),u=n.vAxisID=o(l,a,i,s);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&cv(this._data,this),e._stacked&&cs(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),r=this._data;if(Oe(n)){const o=this._cachedMeta;this._data=_B(n,o)}else if(r!==n){if(r){cv(r,this);const o=this._cachedMeta;cs(o),o._parsed=[]}n&&Object.isExtensible(n)&&zT(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,r=this.getDataset();let o=!1;this._dataCheck();const i=n._stacked;n._stacked=Mh(n.vScale,n),n.stack!==r.stack&&(o=!0,cs(n),n.stack=r.stack),this._resyncElements(e),(o||i!==n._stacked)&&(Uv(this,n._parsed),n._stacked=Mh(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:r,_data:o}=this,{iScale:i,_stacked:a}=r,s=i.axis;let l=e===0&&n===o.length?!0:r._sorted,c=e>0&&r._parsed[e-1],u,f,p;if(this._parsing===!1)r._parsed=o,r._sorted=!0,p=o;else{ht(o[e])?p=this.parseArrayData(r,o,e,n):Oe(o[e])?p=this.parseObjectData(r,o,e,n):p=this.parsePrimitiveData(r,o,e,n);const m=()=>f[s]===null||c&&f[s]<c[s];for(u=0;u<n;++u)r._parsed[u+e]=f=p[u],l&&(m()&&(l=!1),c=f);r._sorted=l}a&&Uv(this,p)}parsePrimitiveData(e,n,r,o){const{iScale:i,vScale:a}=e,s=i.axis,l=a.axis,c=i.getLabels(),u=i===a,f=new Array(o);let p,m,v;for(p=0,m=o;p<m;++p)v=p+r,f[p]={[s]:u||i.parse(c[v],v),[l]:a.parse(n[v],v)};return f}parseArrayData(e,n,r,o){const{xScale:i,yScale:a}=e,s=new Array(o);let l,c,u,f;for(l=0,c=o;l<c;++l)u=l+r,f=n[u],s[l]={x:i.parse(f[0],u),y:a.parse(f[1],u)};return s}parseObjectData(e,n,r,o){const{xScale:i,yScale:a}=e,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=new Array(o);let u,f,p,m;for(u=0,f=o;u<f;++u)p=u+r,m=n[p],c[u]={x:i.parse(Lr(m,s),p),y:a.parse(Lr(m,l),p)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,r){const o=this.chart,i=this._cachedMeta,a=n[e.axis],s={keys:zv(o,!0),values:n._stacks[e.axis]._visualValues};return Qv(s,a,i.index,{mode:r})}updateRangeFromParsed(e,n,r,o){const i=r[n.axis];let a=i===null?NaN:i;const s=o&&r._stacks[n.axis];o&&s&&(o.values=s,a=Qv(o,i,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,n){const r=this._cachedMeta,o=r._parsed,i=r._sorted&&e===r.iScale,a=o.length,s=this._getOtherScale(e),l=QB(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:f}=RB(s);let p,m;function v(){m=o[p];const w=m[s.axis];return!bn(m[e.axis])||u>w||f<w}for(p=0;p<a&&!(!v()&&(this.updateRangeFromParsed(c,e,m,l),i));++p);if(i){for(p=a-1;p>=0;--p)if(!v()){this.updateRangeFromParsed(c,e,m,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,r=[];let o,i,a;for(o=0,i=n.length;o<i;++o)a=n[o][e.axis],bn(a)&&r.push(a);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,r=n.iScale,o=n.vScale,i=this.getParsed(e);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:o?""+o.getLabelForValue(i[o.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=OB(Re(this.options.clip,MB(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,r=this._cachedMeta,o=r.data||[],i=n.chartArea,a=[],s=this._drawStart||0,l=this._drawCount||o.length-s,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(e,i,s,l),u=s;u<s+l;++u){const f=o[u];f.hidden||(f.active&&c?a.push(f):f.draw(e,i))}for(u=0;u<a.length;++u)a[u].draw(e,i)}getStyle(e,n){const r=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,n,r){const o=this.getDataset();let i;if(e>=0&&e<this._cachedMeta.data.length){const a=this._cachedMeta.data[e];i=a.$context||(a.$context=zB(this.getContext(),e,a)),i.parsed=this.getParsed(e),i.raw=o.data[e],i.index=i.dataIndex=e}else i=this.$context||(this.$context=NB(this.chart.getContext(),this.index)),i.dataset=o,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=r,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",r){const o=n==="active",i=this._cachedDataOpts,a=e+"-"+n,s=i[a],l=this.enableOptionSharing&&is(r);if(s)return jv(s,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,e),f=o?[`${e}Hover`,"hover",e,""]:[e,""],p=c.getOptionScopes(this.getDataset(),u),m=Object.keys(et.elements[e]),v=()=>this.getContext(r,o,n),w=c.resolveNamedOptions(p,m,v,f);return w.$shared&&(w.$shared=l,i[a]=Object.freeze(jv(w,l))),w}_resolveAnimations(e,n,r){const o=this.chart,i=this._cachedDataOpts,a=`animation-${n}`,s=i[a];if(s)return s;let l;if(o.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,n),p=u.getOptionScopes(this.getDataset(),f);l=u.createResolver(p,this.getContext(e,r,n))}const c=new Lv(o,l&&l.animations);return l&&l._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||_h(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const r=this.resolveDataElementOptions(e,n),o=this._sharedOptions,i=this.getSharedOptions(r),a=this.includeOptions(n,i)||i!==o;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:a}}updateElement(e,n,r,o){_h(o)?Object.assign(e,r):this._resolveAnimations(n,o).update(e,r)}updateSharedOptions(e,n,r){e&&!_h(n)&&this._resolveAnimations(void 0,n).update(e,r)}_setStyle(e,n,r,o){e.active=o;const i=this.getStyle(n,o);this._resolveAnimations(n,r,o).update(e,{options:!o&&this.getSharedOptions(i)||i})}removeHoverStyle(e,n,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,n,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const o=r.length,i=n.length,a=Math.min(i,o);a&&this.parse(0,a),i>o?this._insertElements(o,i-o,e):i<o&&this._removeElements(i,o-i)}_insertElements(e,n,r=!0){const o=this._cachedMeta,i=o.data,a=e+n;let s;const l=c=>{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(i),s=e;s<a;++s)i[s]=new this.dataElementType;this._parsing&&l(o._parsed),this.parse(e,n),r&&this.updateElements(i,e,n,"reset")}updateElements(e,n,r,o){}_removeElements(e,n){const r=this._cachedMeta;if(this._parsing){const o=r._parsed.splice(e,n);r._stacked&&cs(r,o)}r.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,r,o]=e;this[n](r,o)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function HB(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let o=0,i=n.length;o<i;o++)r=r.concat(n[o].controller.getAllParsedValues(t));t._cache.$bar=uv(r.sort((o,i)=>o-i))}return t._cache.$bar}function UB(t){const e=t.iScale,n=HB(e,t.type);let r=e._length,o,i,a,s;const l=()=>{a===32767||a===-32768||(is(s)&&(r=Math.min(r,Math.abs(a-s)||r)),s=a)};for(o=0,i=n.length;o<i;++o)a=e.getPixelForValue(n[o]),l();for(s=void 0,o=0,i=e.ticks.length;o<i;++o)a=e.getPixelForTick(o),l();return r}function jB(t,e,n,r){const o=n.barThickness;let i,a;return We(o)?(i=e.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:e.pixels[t]-i/2}}function WB(t,e,n,r){const o=e.pixels,i=o[t];let a=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;a===null&&(a=i-(s===null?e.end-e.start:s-i)),s===null&&(s=i+i-a);const c=i-(i-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}function VB(t,e,n,r){const o=n.parse(t[0],r),i=n.parse(t[1],r),a=Math.min(o,i),s=Math.max(o,i);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:i,min:a,max:s}}function Wv(t,e,n,r){return ht(t)?VB(t,e,n,r):e[n.axis]=n.parse(t,r),e}function Vv(t,e,n,r){const o=t.iScale,i=t.vScale,a=o.getLabels(),s=o===i,l=[];let c,u,f,p;for(c=n,u=n+r;c<u;++c)p=e[c],f={},f[o.axis]=s||o.parse(a[c],c),l.push(Wv(p,f,i,c));return l}function Fh(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function YB(t,e,n){return t!==0?zr(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function qB(t){let e,n,r,o,i;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(o="end",i="start"):(o="start",i="end"),{start:n,end:r,reverse:e,top:o,bottom:i}}function KB(t,e,n,r){let o=e.borderSkipped;const i={};if(!o){t.borderSkipped=i;return}if(o===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:a,end:s,reverse:l,top:c,bottom:u}=qB(t);o==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?o=c:(n._bottom||0)===r?o=u:(i[Yv(u,a,s,l)]=!0,o=c)),i[Yv(o,a,s,l)]=!0,t.borderSkipped=i}function Yv(t,e,n,r){return r?(t=XB(t,e,n),t=qv(t,n,e)):t=qv(t,e,n),t}function XB(t,e,n){return t===e?n:t===n?e:t}function qv(t,e,n){return t==="start"?e:t==="end"?n:t}function GB(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class JB extends Hc{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,n,r,o){return Vv(e,n,r,o)}parseArrayData(e,n,r,o){return Vv(e,n,r,o)}parseObjectData(e,n,r,o){const{iScale:i,vScale:a}=e,{xAxisKey:s="x",yAxisKey:l="y"}=this._parsing,c=i.axis==="x"?s:l,u=a.axis==="x"?s:l,f=[];let p,m,v,w;for(p=r,m=r+o;p<m;++p)w=n[p],v={},v[i.axis]=i.parse(Lr(w,c),p),f.push(Wv(Lr(w,u),v,a,p));return f}updateRangeFromParsed(e,n,r,o){super.updateRangeFromParsed(e,n,r,o);const i=r._custom;i&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:r,vScale:o}=n,i=this.getParsed(e),a=i._custom,s=Fh(a)?"["+a.start+", "+a.end+"]":""+o.getLabelForValue(i[o.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,r,o){const i=o==="reset",{index:a,_cachedMeta:{vScale:s}}=this,l=s.getBasePixel(),c=s.isHorizontal(),u=this._getRuler(),{sharedOptions:f,includeOptions:p}=this._getSharedOptions(n,o);for(let m=n;m<n+r;m++){const v=this.getParsed(m),w=i||We(v[s.axis])?{base:l,head:l}:this._calculateBarValuePixels(m),y=this._calculateBarIndexPixels(m,u),S=(v._stacks||{})[s.axis],T={horizontal:c,base:w.base,enableBorderRadius:!S||Fh(v._custom)||a===S._top||a===S._bottom,x:c?w.head:y.center,y:c?y.center:w.head,height:c?y.size:Math.abs(w.size),width:c?Math.abs(w.size):y.size};p&&(T.options=f||this.resolveDataElementOptions(m,e[m].active?"active":o));const P=T.options||e[m].options;KB(T,P,S,a),GB(T,P,u.ratio),this.updateElement(e[m],m,T,o)}}_getStacks(e,n){const{iScale:r}=this._cachedMeta,o=r.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),i=r.options.stacked,a=[],s=this._cachedMeta.controller.getParsed(n),l=s&&s[r.axis],c=u=>{const f=u._parsed.find(m=>m[r.axis]===l),p=f&&f[u.vScale.axis];if(We(p)||isNaN(p))return!0};for(const u of o)if(!(n!==void 0&&c(u))&&((i===!1||a.indexOf(u.stack)===-1||i===void 0&&u.stack===void 0)&&a.push(u.stack),u.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const e=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(e).filter(r=>e[r].axis===n).shift()}_getAxis(){const e={},n=this.getFirstScaleIdForIndexAxis();for(const r of this.chart.data.datasets)e[Re(this.chart.options.indexAxis==="x"?r.xAxisID:r.yAxisID,n)]=!0;return Object.keys(e)}_getStackIndex(e,n,r){const o=this._getStacks(e,r),i=n!==void 0?o.indexOf(n):-1;return i===-1?o.length-1:i}_getRuler(){const e=this.options,n=this._cachedMeta,r=n.iScale,o=[];let i,a;for(i=0,a=n.data.length;i<a;++i)o.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const s=e.barThickness;return{min:s||UB(n),pixels:o,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:s?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:r,index:o},options:{base:i,minBarLength:a}}=this,s=i||0,l=this.getParsed(e),c=l._custom,u=Fh(c);let f=l[n.axis],p=0,m=r?this.applyStack(n,l,r):f,v,w;m!==f&&(p=m-f,m=f),u&&(f=c.barStart,m=c.barEnd-c.barStart,f!==0&&zr(f)!==zr(c.barEnd)&&(p=0),p+=f);const y=!We(i)&&!u?i:p;let S=n.getPixelForValue(y);if(this.chart.getDataVisibility(e)?v=n.getPixelForValue(p+m):v=S,w=v-S,Math.abs(w)<a){w=YB(w,n,s)*a,f===s&&(S-=w/2);const T=n.getPixelForDecimal(0),P=n.getPixelForDecimal(1),E=Math.min(T,P),O=Math.max(T,P);S=Math.max(Math.min(S,O),E),v=S+w,r&&!u&&(l._stacks[n.axis]._visualValues[o]=n.getValueForPixel(v)-n.getValueForPixel(S))}if(S===n.getPixelForValue(s)){const T=zr(w)*n.getLineWidthForValue(s)/2;S+=T,w-=T}return{size:w,base:S,head:v,center:v+w/2}}_calculateBarIndexPixels(e,n){const r=n.scale,o=this.options,i=o.skipNull,a=Re(o.maxBarThickness,1/0);let s,l;const c=this._getAxisCount();if(n.grouped){const u=i?this._getStackCount(e):n.stackCount,f=o.barThickness==="flex"?WB(e,n,o,u*c):jB(e,n,o,u*c),p=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,m=this._getAxis().indexOf(Re(p,this.getFirstScaleIdForIndexAxis())),v=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0)+m;s=f.start+f.chunk*v+f.chunk/2,l=Math.min(a,f.chunk*f.ratio)}else s=r.getPixelForValue(this.getParsed(e)[r.axis],e),l=Math.min(a,n.min*n.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}}draw(){const e=this._cachedMeta,n=e.vScale,r=e.data,o=r.length;let i=0;for(;i<o;++i)this.getParsed(i)[n.axis]!==null&&!r[i].hidden&&r[i].draw(this._ctx)}}function ZB(t,e,n){let r=1,o=1,i=0,a=0;if(e<rn){const s=t,l=s+e,c=Math.cos(s),u=Math.sin(s),f=Math.cos(l),p=Math.sin(l),m=(P,E,O)=>bh(P,s,l,!0)?1:Math.max(E,E*n,O,O*n),v=(P,E,O)=>bh(P,s,l,!0)?-1:Math.min(E,E*n,O,O*n),w=m(0,c,f),y=m(on,u,p),S=v(pt,c,f),T=v(pt+on,u,p);r=(w-S)/2,o=(y-T)/2,i=-(w+S)/2,a=-(y+T)/2}return{ratioX:r,ratioY:o,offsetX:i,offsetY:a}}class $B extends Hc{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data,{labels:{pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:s}}=e.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const f=e.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:f.backgroundColor,fontColor:i,hidden:!e.getDataVisibility(c),lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:f.borderWidth,strokeStyle:f.borderColor,textAlign:o,pointStyle:r,borderRadius:a&&(s||f.borderRadius),index:c}}):[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}};constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const r=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=r;else{let i=l=>+r[l];if(Oe(r[e])){const{key:l="value"}=this._parsing;i=c=>+Lr(r[c],l)}let a,s;for(a=e,s=e+n;a<s;++a)o._parsed[a]=i(a)}}_getRotation(){return Kn(this.options.rotation-90)}_getCircumference(){return Kn(this.options.circumference)}_getRotationExtents(){let e=rn,n=-rn;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const o=this.chart.getDatasetMeta(r).controller,i=o._getRotation(),a=o._getCircumference();e=Math.min(e,i),n=Math.max(n,i+a)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:r}=n,o=this._cachedMeta,i=o.data,a=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-a)/2,0),l=Math.min(xT(this.options.cutout,s),1),c=this._getRingWeight(this.index),{circumference:u,rotation:f}=this._getRotationExtents(),{ratioX:p,ratioY:m,offsetX:v,offsetY:w}=ZB(f,u,l),y=(r.width-a)/p,S=(r.height-a)/m,T=Math.max(Math.min(y,S)/2,0),P=ev(this.options.radius,T),E=Math.max(P*l,0),O=(P-E)/this._getVisibleDatasetWeightTotal();this.offsetX=v*P,this.offsetY=w*P,o.total=this.calculateTotal(),this.outerRadius=P-O*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-O*c,0),this.updateElements(i,0,i.length,e)}_circumference(e,n){const r=this.options,o=this._cachedMeta,i=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||o._parsed[e]===null||o.data[e].hidden?0:this.calculateCircumference(o._parsed[e]*i/rn)}updateElements(e,n,r,o){const i=o==="reset",a=this.chart,s=a.chartArea,c=a.options.animation,u=(s.left+s.right)/2,f=(s.top+s.bottom)/2,p=i&&c.animateScale,m=p?0:this.innerRadius,v=p?0:this.outerRadius,{sharedOptions:w,includeOptions:y}=this._getSharedOptions(n,o);let S=this._getRotation(),T;for(T=0;T<n;++T)S+=this._circumference(T,i);for(T=n;T<n+r;++T){const P=this._circumference(T,i),E=e[T],O={x:u+this.offsetX,y:f+this.offsetY,startAngle:S,endAngle:S+P,circumference:P,outerRadius:v,innerRadius:m};y&&(O.options=w||this.resolveDataElementOptions(T,E.active?"active":o)),S+=P,this.updateElement(E,T,O,o)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let r=0,o;for(o=0;o<n.length;o++){const i=e._parsed[o];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(o)&&!n[o].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?rn*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,o=r.data.labels||[],i=Fc(n._parsed[e],r.options.locale);return{label:o[e]||"",value:i}}getMaxBorderWidth(e){let n=0;const r=this.chart;let o,i,a,s,l;if(!e){for(o=0,i=r.data.datasets.length;o<i;++o)if(r.isDatasetVisible(o)){a=r.getDatasetMeta(o),e=a.data,s=a.controller;break}}if(!e)return 0;for(o=0,i=e.length;o<i;++o)l=s.resolveDataElementOptions(o),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let r=0,o=e.length;r<o;++r){const i=this.resolveDataElementOptions(r);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(e){return Math.max(Re(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class eI extends Hc{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:o}}=e.legend.options;return n.labels.map((i,a)=>{const l=e.getDatasetMeta(0).controller.getStyle(a);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:o,lineWidth:l.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(a),index:a}})}return[]}},onClick(e,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,r=this.chart,o=r.data.labels||[],i=Fc(n._parsed[e].r,r.options.locale);return{label:o[e]||"",value:i}}parseObjectData(e,n,r,o){return AB.bind(this)(e,n,r,o)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,o)=>{const i=this.getParsed(o).r;!isNaN(i)&&this.chart.getDataVisibility(o)&&(i<n.min&&(n.min=i),i>n.max&&(n.max=i))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,r=e.options,o=Math.min(n.right-n.left,n.bottom-n.top),i=Math.max(o/2,0),a=Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0),s=(i-a)/e.getVisibleDatasetCount();this.outerRadius=i-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(e,n,r,o){const i=o==="reset",a=this.chart,l=a.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,f=c.yCenter,p=c.getIndexAngle(0)-.5*pt;let m=p,v;const w=360/this.countVisibleElements();for(v=0;v<n;++v)m+=this._computeAngle(v,o,w);for(v=n;v<n+r;v++){const y=e[v];let S=m,T=m+this._computeAngle(v,o,w),P=a.getDataVisibility(v)?c.getDistanceFromCenterForValue(this.getParsed(v).r):0;m=T,i&&(l.animateScale&&(P=0),l.animateRotate&&(S=T=p));const E={x:u,y:f,innerRadius:0,outerRadius:P,startAngle:S,endAngle:T,options:this.resolveDataElementOptions(v,y.active?"active":o)};this.updateElement(y,v,E,o)}}countVisibleElements(){const e=this._cachedMeta;let n=0;return e.data.forEach((r,o)=>{!isNaN(this.getParsed(o).r)&&this.chart.getDataVisibility(o)&&n++}),n}_computeAngle(e,n,r){return this.chart.getDataVisibility(e)?Kn(this.resolveDataElementOptions(e,n).angle||r):0}}function bo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Rh{static override(e){Object.assign(Rh.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return bo()}parse(){return bo()}format(){return bo()}add(){return bo()}diff(){return bo()}startOf(){return bo()}endOf(){return bo()}}var tI={_date:Rh};function nI(t,e,n,r){const{controller:o,data:i,_sorted:a}=t,s=o._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&e===s.axis&&e!=="r"&&a&&i.length){const c=s._reversePixels?LT:yh;if(r){if(o._sharedOptions){const u=i[0],f=typeof u.getRange=="function"&&u.getRange(e);if(f){const p=c(i,e,n-f),m=c(i,e,n+f);return{lo:p.lo,hi:m.hi}}}}else{const u=c(i,e,n);if(l){const{vScale:f}=o._cachedMeta,{_parsed:p}=t,m=p.slice(0,u.lo+1).reverse().findIndex(w=>!We(w[f.axis]));u.lo-=Math.max(0,m);const v=p.slice(u.hi).findIndex(w=>!We(w[f.axis]));u.hi+=Math.max(0,v)}return u}}return{lo:0,hi:i.length-1}}function Uc(t,e,n,r,o){const i=t.getSortedVisibleDatasetMetas(),a=n[e];for(let s=0,l=i.length;s<l;++s){const{index:c,data:u}=i[s],{lo:f,hi:p}=nI(i[s],e,a,o);for(let m=f;m<=p;++m){const v=u[m];v.skip||r(v,c,m)}}}function rI(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(r,o){const i=e?Math.abs(r.x-o.x):0,a=n?Math.abs(r.y-o.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}function Lh(t,e,n,r,o){const i=[];return!o&&!t.isPointInArea(e)||Uc(t,n,e,function(s,l,c){!o&&!kv(s,t.chartArea,0)||s.inRange(e.x,e.y,r)&&i.push({element:s,datasetIndex:l,index:c})},!0),i}function oI(t,e,n,r){let o=[];function i(a,s,l){const{startAngle:c,endAngle:u}=a.getProps(["startAngle","endAngle"],r),{angle:f}=_T(a,{x:e.x,y:e.y});bh(f,c,u)&&o.push({element:a,datasetIndex:s,index:l})}return Uc(t,n,e,i),o}function iI(t,e,n,r,o,i){let a=[];const s=rI(n);let l=Number.POSITIVE_INFINITY;function c(u,f,p){const m=u.inRange(e.x,e.y,o);if(r&&!m)return;const v=u.getCenterPoint(o);if(!(!!i||t.isPointInArea(v))&&!m)return;const y=s(e,v);y<l?(a=[{element:u,datasetIndex:f,index:p}],l=y):y===l&&a.push({element:u,datasetIndex:f,index:p})}return Uc(t,n,e,c),a}function Nh(t,e,n,r,o,i){return!i&&!t.isPointInArea(e)?[]:n==="r"&&!r?oI(t,e,n,o):iI(t,e,n,r,o,i)}function Kv(t,e,n,r,o){const i=[],a=n==="x"?"inXRange":"inYRange";let s=!1;return Uc(t,n,e,(l,c,u)=>{l[a]&&l[a](e[n],o)&&(i.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(e.x,e.y,o))}),r&&!s?[]:i}var aI={modes:{index(t,e,n,r){const o=mo(e,t),i=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?Lh(t,o,i,r,a):Nh(t,o,i,!1,r,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,f=c.data[u];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,n,r){const o=mo(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?Lh(t,o,i,r,a):Nh(t,o,i,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=t.getDatasetMeta(l).data;s=[];for(let u=0;u<c.length;++u)s.push({element:c[u],datasetIndex:l,index:u})}return s},point(t,e,n,r){const o=mo(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;return Lh(t,o,i,r,a)},nearest(t,e,n,r){const o=mo(e,t),i=n.axis||"xy",a=n.includeInvisible||!1;return Nh(t,o,i,n.intersect,r,a)},x(t,e,n,r){const o=mo(e,t);return Kv(t,o,"x",n.intersect,r)},y(t,e,n,r){const o=mo(e,t);return Kv(t,o,"y",n.intersect,r)}}};const Xv=["left","top","right","bottom"];function us(t,e){return t.filter(n=>n.pos===e)}function Gv(t,e){return t.filter(n=>Xv.indexOf(n.pos)===-1&&n.box.axis===e)}function ds(t,e){return t.sort((n,r)=>{const o=e?r:n,i=e?n:r;return o.weight===i.weight?o.index-i.index:o.weight-i.weight})}function sI(t){const e=[];let n,r,o,i,a,s;for(n=0,r=(t||[]).length;n<r;++n)o=t[n],{position:i,options:{stack:a,stackWeight:s=1}}=o,e.push({index:n,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&i+a,stackWeight:s});return e}function lI(t){const e={};for(const n of t){const{stack:r,pos:o,stackWeight:i}=n;if(!r||!Xv.includes(o))continue;const a=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=i}return e}function cI(t,e){const n=lI(t),{vBoxMaxWidth:r,hBoxMaxHeight:o}=e;let i,a,s;for(i=0,a=t.length;i<a;++i){s=t[i];const{fullSize:l}=s.box,c=n[s.stack],u=c&&s.stackWeight/c.weight;s.horizontal?(s.width=u?u*r:l&&e.availableWidth,s.height=o):(s.width=r,s.height=u?u*o:l&&e.availableHeight)}return n}function uI(t){const e=sI(t),n=ds(e.filter(c=>c.box.fullSize),!0),r=ds(us(e,"left"),!0),o=ds(us(e,"right")),i=ds(us(e,"top"),!0),a=ds(us(e,"bottom")),s=Gv(e,"x"),l=Gv(e,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:o.concat(l).concat(a).concat(s),chartArea:us(e,"chartArea"),vertical:r.concat(o).concat(l),horizontal:i.concat(a).concat(s)}}function Jv(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Zv(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function dI(t,e,n,r){const{pos:o,box:i}=n,a=t.maxPadding;if(!Oe(o)){n.size&&(t[o]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?i.height:i.width),n.size=f.size/f.count,t[o]+=n.size}i.getPadding&&Zv(a,i.getPadding());const s=Math.max(0,e.outerWidth-Jv(a,t,"left","right")),l=Math.max(0,e.outerHeight-Jv(a,t,"top","bottom")),c=s!==t.w,u=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function fI(t){const e=t.maxPadding;function n(r){const o=Math.max(e[r]-t[r],0);return t[r]+=o,o}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function hI(t,e){const n=e.maxPadding;function r(o){const i={left:0,top:0,right:0,bottom:0};return o.forEach(a=>{i[a]=Math.max(e[a],n[a])}),i}return r(t?["left","right"]:["top","bottom"])}function fs(t,e,n,r){const o=[];let i,a,s,l,c,u;for(i=0,a=t.length,c=0;i<a;++i){s=t[i],l=s.box,l.update(s.width||e.w,s.height||e.h,hI(s.horizontal,e));const{same:f,other:p}=dI(e,n,s,r);c|=f&&o.length,u=u||p,l.fullSize||o.push(s)}return c&&fs(o,e,n,r)||u}function jc(t,e,n,r,o){t.top=n,t.left=e,t.right=e+r,t.bottom=n+o,t.width=r,t.height=o}function $v(t,e,n,r){const o=n.padding;let{x:i,y:a}=e;for(const s of t){const l=s.box,c=r[s.stack]||{placed:0,weight:1},u=s.stackWeight/c.weight||1;if(s.horizontal){const f=e.w*u,p=c.size||l.height;is(c.start)&&(a=c.start),l.fullSize?jc(l,o.left,a,n.outerWidth-o.right-o.left,p):jc(l,e.left+c.placed,a,f,p),c.start=a,c.placed+=f,a=l.bottom}else{const f=e.h*u,p=c.size||l.width;is(c.start)&&(i=c.start),l.fullSize?jc(l,i,o.top,p,n.outerHeight-o.bottom-o.top):jc(l,i,e.top+c.placed,p,f),c.start=i,c.placed+=f,i=l.right}}e.x=i,e.y=a}var yn={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const o=vn(t.options.layout.padding),i=Math.max(e-o.width,0),a=Math.max(n-o.height,0),s=uI(t.boxes),l=s.vertical,c=s.horizontal;Ne(t.boxes,w=>{typeof w.beforeLayout=="function"&&w.beforeLayout()});const u=l.reduce((w,y)=>y.box.options&&y.box.options.display===!1?w:w+1,0)||1,f=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),p=Object.assign({},o);Zv(p,vn(r));const m=Object.assign({maxPadding:p,w:i,h:a,x:o.left,y:o.top},o),v=cI(l.concat(c),f);fs(s.fullSize,m,f,v),fs(l,m,f,v),fs(c,m,f,v)&&fs(l,m,f,v),fI(m),$v(s.leftAndTop,m,f,v),m.x+=m.w,m.y+=m.h,$v(s.rightAndBottom,m,f,v),t.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},Ne(s.chartArea,w=>{const y=w.box;Object.assign(y,t.chartArea),y.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class ey{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,r){}removeEventListener(e,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,r,o){return n=Math.max(0,n||e.width),r=r||e.height,{width:n,height:Math.max(0,o?Math.floor(n/o):r)}}isAttached(e){return!0}updateConfig(e){}}class pI extends ey{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Wc="$chartjs",AI={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ty=t=>t===null||t==="";function gI(t,e){const n=t.style,r=t.getAttribute("height"),o=t.getAttribute("width");if(t[Wc]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ty(o)){const i=Ov(t,"width");i!==void 0&&(t.width=i)}if(ty(r))if(t.style.height==="")t.height=t.width/(e||2);else{const i=Ov(t,"height");i!==void 0&&(t.height=i)}return t}const ny=xB?{passive:!0}:!1;function mI(t,e,n){t&&t.addEventListener(e,n,ny)}function bI(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,ny)}function vI(t,e){const n=AI[t.type]||t.type,{x:r,y:o}=mo(t,e);return{type:n,chart:e,native:t,x:r!==void 0?r:null,y:o!==void 0?o:null}}function Vc(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function yI(t,e,n){const r=t.canvas,o=new MutationObserver(i=>{let a=!1;for(const s of i)a=a||Vc(s.addedNodes,r),a=a&&!Vc(s.removedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function wI(t,e,n){const r=t.canvas,o=new MutationObserver(i=>{let a=!1;for(const s of i)a=a||Vc(s.removedNodes,r),a=a&&!Vc(s.addedNodes,r);a&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const hs=new Map;let ry=0;function oy(){const t=window.devicePixelRatio;t!==ry&&(ry=t,hs.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function xI(t,e){hs.size||window.addEventListener("resize",oy),hs.set(t,e)}function kI(t){hs.delete(t),hs.size||window.removeEventListener("resize",oy)}function SI(t,e,n){const r=t.canvas,o=r&&Ih(r);if(!o)return;const i=fv((s,l)=>{const c=o.clientWidth;n(s,l),c<o.clientWidth&&n()},window),a=new ResizeObserver(s=>{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||i(c,u)});return a.observe(o),xI(t,i),a}function zh(t,e,n){n&&n.disconnect(),e==="resize"&&kI(t)}function CI(t,e,n){const r=t.canvas,o=fv(i=>{t.ctx!==null&&n(vI(i,t))},t);return mI(r,e,o),o}class EI extends ey{acquireContext(e,n){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(gI(e,n),r):null}releaseContext(e){const n=e.canvas;if(!n[Wc])return!1;const r=n[Wc].initial;["height","width"].forEach(i=>{const a=r[i];We(a)?n.removeAttribute(i):n.setAttribute(i,a)});const o=r.style||{};return Object.keys(o).forEach(i=>{n.style[i]=o[i]}),n.width=n.width,delete n[Wc],!0}addEventListener(e,n,r){this.removeEventListener(e,n);const o=e.$proxies||(e.$proxies={}),a={attach:yI,detach:wI,resize:SI}[n]||CI;o[n]=a(e,n,r)}removeEventListener(e,n){const r=e.$proxies||(e.$proxies={}),o=r[n];if(!o)return;({attach:zh,detach:zh,resize:zh}[n]||bI)(e,n,o),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,r,o){return wB(e,n,r,o)}isAttached(e){const n=e&&Ih(e);return!!(n&&n.isConnected)}}function PI(t){return!Bh()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?pI:EI}let bi=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:n,y:r}=this.getProps(["x","y"],e);return{x:n,y:r}}hasValue(){return Oc(this.x)&&Oc(this.y)}getProps(e,n){const r=this.$animations;if(!n||!r)return this;const o={};return e.forEach(i=>{o[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),o}};function DI(t,e){const n=t.options.ticks,r=TI(t),o=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?II(e):[],a=i.length,s=i[0],l=i[a-1],c=[];if(a>o)return MI(e,c,i,a/o),c;const u=BI(i,e,o);if(a>0){let f,p;const m=a>1?Math.round((l-s)/(a-1)):null;for(Yc(e,c,u,We(m)?0:s-m,s),f=0,p=a-1;f<p;f++)Yc(e,c,u,i[f],i[f+1]);return Yc(e,c,u,l,We(m)?e.length:l+m),c}return Yc(e,c,u),c}function TI(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(r,o))}function BI(t,e,n){const r=OI(t),o=e.length/n;if(!r)return Math.max(o,1);const i=TT(r);for(let a=0,s=i.length-1;a<s;a++){const l=i[a];if(l>o)return l}return Math.max(o,1)}function II(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}function MI(t,e,n,r){let o=0,i=n[0],a;for(r=Math.ceil(r),a=0;a<t.length;a++)a===i&&(e.push(t[a]),o++,i=n[o*r])}function Yc(t,e,n,r,o){const i=Re(r,0),a=Math.min(Re(o,t.length),t.length);let s=0,l,c,u;for(n=Math.ceil(n),o&&(l=o-r,n=l/Math.floor(l/n)),u=i;u<0;)s++,u=Math.round(i+s*n);for(c=Math.max(i,0);c<a;c++)c===u&&(e.push(t[c]),s++,u=Math.round(i+s*n))}function OI(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}const _I=t=>t==="left"?"right":t==="right"?"left":t,iy=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,ay=(t,e)=>Math.min(e||t,t);function sy(t,e){const n=[],r=t.length/e,o=t.length;let i=0;for(;i<o;i+=r)n.push(t[Math.floor(i)]);return n}function FI(t,e,n){const r=t.ticks.length,o=Math.min(e,r-1),i=t._startPixel,a=t._endPixel,s=1e-6;let l=t.getPixelForTick(o),c;if(!(n&&(r===1?c=Math.max(l-i,a-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(o-1))/2,l+=o<e?c:-c,l<i-s||l>a+s)))return l}function RI(t,e){Ne(t,n=>{const r=n.gc,o=r.length/2;let i;if(o>e){for(i=0;i<o;++i)delete n.data[r[i]];r.splice(0,o)}})}function ps(t){return t.drawTicks?t.tickLength:0}function ly(t,e){if(!t.display)return 0;const n=Ct(t.font,e),r=vn(t.padding);return(ht(t.text)?t.text.length:1)*n.lineHeight+r.height}function LI(t,e){return Ai(t,{scale:e,type:"scale"})}function NI(t,e,n){return Ai(t,{tick:n,index:e,type:"tick"})}function zI(t,e,n){let r=wh(t);return(n&&e!=="right"||!n&&e==="right")&&(r=_I(r)),r}function QI(t,e,n,r){const{top:o,left:i,bottom:a,right:s,chart:l}=t,{chartArea:c,scales:u}=l;let f=0,p,m,v;const w=a-o,y=s-i;if(t.isHorizontal()){if(m=St(r,i,s),Oe(n)){const S=Object.keys(n)[0],T=n[S];v=u[S].getPixelForValue(T)+w-e}else n==="center"?v=(c.bottom+c.top)/2+w-e:v=iy(t,n,e);p=s-i}else{if(Oe(n)){const S=Object.keys(n)[0],T=n[S];m=u[S].getPixelForValue(T)-y+e}else n==="center"?m=(c.left+c.right)/2-y+e:m=iy(t,n,e);v=St(r,a,o),f=n==="left"?-on:on}return{titleX:m,titleY:v,maxWidth:p,rotation:f}}class vi extends bi{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:r,_suggestedMax:o}=this;return e=qn(e,Number.POSITIVE_INFINITY),n=qn(n,Number.NEGATIVE_INFINITY),r=qn(r,Number.POSITIVE_INFINITY),o=qn(o,Number.NEGATIVE_INFINITY),{min:qn(e,r),max:qn(n,o),minDefined:bn(e),maxDefined:bn(n)}}getMinMax(e){let{min:n,max:r,minDefined:o,maxDefined:i}=this.getUserBounds(),a;if(o&&i)return{min:n,max:r};const s=this.getMatchingVisibleMetas();for(let l=0,c=s.length;l<c;++l)a=s[l].controller.getMinMax(this,e),o||(n=Math.min(n,a.min)),i||(r=Math.max(r,a.max));return n=i&&n>r?r:n,r=o&&n>r?n:r,{min:qn(n,qn(r,n)),max:qn(r,qn(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ge(this.options.beforeUpdate,[this])}update(e,n,r){const{beginAtZero:o,grace:i,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=iB(this,i,o),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s<this.ticks.length;this._convertTicksToLabels(l?sy(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source==="auto")&&(this.ticks=DI(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,e=!e),this._startPixel=n,this._endPixel=r,this._reversePixels=e,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ge(this.options.afterUpdate,[this])}beforeSetDimensions(){Ge(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ge(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Ge(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ge(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let r,o,i;for(r=0,o=e.length;r<o;r++)i=e[r],i.label=Ge(n.callback,[i.value,r,e],this)}afterTickToLabelConversion(){Ge(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ge(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,r=ay(this.ticks.length,e.ticks.maxTicksLimit),o=n.minRotation||0,i=n.maxRotation;let a=o,s,l,c;if(!this._isVisible()||!n.display||o>=i||r<=1||!this.isHorizontal()){this.labelRotation=o;return}const u=this._getLabelSizes(),f=u.widest.width,p=u.highest.height,m=Dn(this.chart.width-f,0,this.maxWidth);s=e.offset?this.maxWidth/r:m/(r-1),f+6>s&&(s=m/(r-(e.offset?.5:1)),l=this.maxHeight-ps(e.grid)-n.padding-ly(e.title,this.chart.options.font),c=Math.sqrt(f*f+p*p),a=OT(Math.min(Math.asin(Dn((u.highest.height+6)/s,-1,1)),Math.asin(Dn(l/c,-1,1))-Math.asin(Dn(p/c,-1,1)))),a=Math.max(o,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){Ge(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ge(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:r,title:o,grid:i}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=ly(o,n.options.font);if(s?(e.width=this.maxWidth,e.height=ps(i)+l):(e.height=this.maxHeight,e.width=ps(i)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:f,highest:p}=this._getLabelSizes(),m=r.padding*2,v=Kn(this.labelRotation),w=Math.cos(v),y=Math.sin(v);if(s){const S=r.mirror?0:y*f.width+w*p.height;e.height=Math.min(this.maxHeight,e.height+S+m)}else{const S=r.mirror?0:w*f.width+y*p.height;e.width=Math.min(this.maxWidth,e.width+S+m)}this._calculatePadding(c,u,y,w)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,r,o){const{ticks:{align:i,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,m=0;l?c?(p=o*e.width,m=r*n.height):(p=r*e.height,m=o*n.width):i==="start"?m=n.width:i==="end"?p=e.width:i!=="inner"&&(p=e.width/2,m=n.width/2),this.paddingLeft=Math.max((p-u+a)*this.width/(this.width-u),0),this.paddingRight=Math.max((m-f+a)*this.width/(this.width-f),0)}else{let u=n.height/2,f=e.height/2;i==="start"?(u=0,f=e.height):i==="end"&&(u=n.height,f=0),this.paddingTop=u+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ge(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,r;for(n=0,r=e.length;n<r;n++)We(e[n].label)&&(e.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=sy(r,n)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,r){const{ctx:o,_longestTextCache:i}=this,a=[],s=[],l=Math.floor(n/ay(n,r));let c=0,u=0,f,p,m,v,w,y,S,T,P,E,O;for(f=0;f<n;f+=l){if(v=e[f].label,w=this._resolveTickFontOptions(f),o.font=y=w.string,S=i[y]=i[y]||{data:{},gc:[]},T=w.lineHeight,P=E=0,!We(v)&&!ht(v))P=vv(o,S.data,S.gc,P,v),E=T;else if(ht(v))for(p=0,m=v.length;p<m;++p)O=v[p],!We(O)&&!ht(O)&&(P=vv(o,S.data,S.gc,P,O),E+=T);a.push(P),s.push(E),c=Math.max(P,c),u=Math.max(E,u)}RI(i,n);const M=a.indexOf(c),N=s.indexOf(u),H=z=>({width:a[z]||0,height:s[z]||0});return{first:H(0),last:H(n-1),widest:H(M),highest:H(N),widths:a,heights:s}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return RT(this._alignToPixels?Ao(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const r=n[e];return r.$context||(r.$context=NI(this.getContext(),e,r))}return this.$context||(this.$context=LI(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=Kn(this.labelRotation),r=Math.abs(Math.cos(n)),o=Math.abs(Math.sin(n)),i=this._getLabelSizes(),a=e.autoSkipPadding||0,s=i?i.widest.width+a:0,l=i?i.highest.height+a:0;return this.isHorizontal()?l*r>s*o?s/r:l/o:l*o<s*r?l/r:s/o}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,r=this.chart,o=this.options,{grid:i,position:a,border:s}=o,l=i.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),p=ps(i),m=[],v=s.setContext(this.getContext()),w=v.display?v.width:0,y=w/2,S=function(te){return Ao(r,te,w)};let T,P,E,O,M,N,H,z,Q,U,j,V;if(a==="top")T=S(this.bottom),N=this.bottom-p,z=T-y,U=S(e.top)+y,V=e.bottom;else if(a==="bottom")T=S(this.top),U=e.top,V=S(e.bottom)-y,N=T+y,z=this.top+p;else if(a==="left")T=S(this.right),M=this.right-p,H=T-y,Q=S(e.left)+y,j=e.right;else if(a==="right")T=S(this.left),Q=e.left,j=S(e.right)-y,M=T+y,H=this.left+p;else if(n==="x"){if(a==="center")T=S((e.top+e.bottom)/2+.5);else if(Oe(a)){const te=Object.keys(a)[0],Z=a[te];T=S(this.chart.scales[te].getPixelForValue(Z))}U=e.top,V=e.bottom,N=T+y,z=N+p}else if(n==="y"){if(a==="center")T=S((e.left+e.right)/2);else if(Oe(a)){const te=Object.keys(a)[0],Z=a[te];T=S(this.chart.scales[te].getPixelForValue(Z))}M=T-y,H=M-p,Q=e.left,j=e.right}const X=Re(o.ticks.maxTicksLimit,f),q=Math.max(1,Math.ceil(f/X));for(P=0;P<f;P+=q){const te=this.getContext(P),Z=i.setContext(te),ee=s.setContext(te),F=Z.lineWidth,fe=Z.color,R=ee.dash||[],ce=ee.dashOffset,ne=Z.tickWidth,$=Z.tickColor,ie=Z.tickBorderDash||[],ae=Z.tickBorderDashOffset;E=FI(this,P,l),E!==void 0&&(O=Ao(r,E,F),c?M=H=Q=j=O:N=z=U=V=O,m.push({tx1:M,ty1:N,tx2:H,ty2:z,x1:Q,y1:U,x2:j,y2:V,width:F,color:fe,borderDash:R,borderDashOffset:ce,tickWidth:ne,tickColor:$,tickBorderDash:ie,tickBorderDashOffset:ae}))}return this._ticksLength=f,this._borderValue=T,m}_computeLabelItems(e){const n=this.axis,r=this.options,{position:o,ticks:i}=r,a=this.isHorizontal(),s=this.ticks,{align:l,crossAlign:c,padding:u,mirror:f}=i,p=ps(r.grid),m=p+u,v=f?-u:m,w=-Kn(this.labelRotation),y=[];let S,T,P,E,O,M,N,H,z,Q,U,j,V="middle";if(o==="top")M=this.bottom-v,N=this._getXAxisLabelAlignment();else if(o==="bottom")M=this.top+v,N=this._getXAxisLabelAlignment();else if(o==="left"){const q=this._getYAxisLabelAlignment(p);N=q.textAlign,O=q.x}else if(o==="right"){const q=this._getYAxisLabelAlignment(p);N=q.textAlign,O=q.x}else if(n==="x"){if(o==="center")M=(e.top+e.bottom)/2+m;else if(Oe(o)){const q=Object.keys(o)[0],te=o[q];M=this.chart.scales[q].getPixelForValue(te)+m}N=this._getXAxisLabelAlignment()}else if(n==="y"){if(o==="center")O=(e.left+e.right)/2-m;else if(Oe(o)){const q=Object.keys(o)[0],te=o[q];O=this.chart.scales[q].getPixelForValue(te)}N=this._getYAxisLabelAlignment(p).textAlign}n==="y"&&(l==="start"?V="top":l==="end"&&(V="bottom"));const X=this._getLabelSizes();for(S=0,T=s.length;S<T;++S){P=s[S],E=P.label;const q=i.setContext(this.getContext(S));H=this.getPixelForTick(S)+i.labelOffset,z=this._resolveTickFontOptions(S),Q=z.lineHeight,U=ht(E)?E.length:1;const te=U/2,Z=q.color,ee=q.textStrokeColor,F=q.textStrokeWidth;let fe=N;a?(O=H,N==="inner"&&(S===T-1?fe=this.options.reverse?"left":"right":S===0?fe=this.options.reverse?"right":"left":fe="center"),o==="top"?c==="near"||w!==0?j=-U*Q+Q/2:c==="center"?j=-X.highest.height/2-te*Q+Q:j=-X.highest.height+Q/2:c==="near"||w!==0?j=Q/2:c==="center"?j=X.highest.height/2-te*Q:j=X.highest.height-U*Q,f&&(j*=-1),w!==0&&!q.showLabelBackdrop&&(O+=Q/2*Math.sin(w))):(M=H,j=(1-U)*Q/2);let R;if(q.showLabelBackdrop){const ce=vn(q.backdropPadding),ne=X.heights[S],$=X.widths[S];let ie=j-ce.top,ae=0-ce.left;switch(V){case"middle":ie-=ne/2;break;case"bottom":ie-=ne;break}switch(N){case"center":ae-=$/2;break;case"right":ae-=$;break;case"inner":S===T-1?ae-=$:S>0&&(ae-=$/2);break}R={left:ae,top:ie,width:$+ce.width,height:ne+ce.height,color:q.backdropColor}}y.push({label:E,font:z,textOffset:j,options:{rotation:w,color:Z,strokeColor:ee,strokeWidth:F,textAlign:fe,textBaseline:V,translation:[O,M],backdrop:R}})}return y}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-Kn(this.labelRotation))return e==="top"?"left":"right";let o="center";return n.align==="start"?o="left":n.align==="end"?o="right":n.align==="inner"&&(o="inner"),o}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:r,mirror:o,padding:i}}=this.options,a=this._getLabelSizes(),s=e+i,l=a.widest.width;let c,u;return n==="left"?o?(u=this.right+i,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?o?(u=this.left+i,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:r,top:o,width:i,height:a}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(r,o,i,a),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const o=this.ticks.findIndex(i=>i.value===e);return o>=0?n.setContext(this.getContext(o)).lineWidth:0}drawGrid(e){const n=this.options.grid,r=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let i,a;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,a=o.length;i<a;++i){const l=o[i];n.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:r,grid:o}}=this,i=r.setContext(this.getContext()),a=r.display?i.width:0;if(!a)return;const s=o.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,f,p;this.isHorizontal()?(c=Ao(e,this.left,a)-a/2,u=Ao(e,this.right,s)+s/2,f=p=l):(f=Ao(e,this.top,a)-a/2,p=Ao(e,this.bottom,s)+s/2,c=u=l),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(c,f),n.lineTo(u,p),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,o=this._computeLabelArea();o&&Ch(r,o);const i=this.getLabelItems(e);for(const a of i){const s=a.options,l=a.font,c=a.label,u=a.textOffset;ls(r,c,0,u,l,s)}o&&Eh(r)}drawTitle(){const{ctx:e,options:{position:n,title:r,reverse:o}}=this;if(!r.display)return;const i=Ct(r.font),a=vn(r.padding),s=r.align;let l=i.lineHeight/2;n==="bottom"||n==="center"||Oe(n)?(l+=a.bottom,ht(r.text)&&(l+=i.lineHeight*(r.text.length-1))):l+=a.top;const{titleX:c,titleY:u,maxWidth:f,rotation:p}=QI(this,l,n,s);ls(e,r.text,0,0,i,{color:r.color,maxWidth:f,rotation:p,textAlign:zI(s,n,o),textBaseline:"middle",translation:[c,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,r=Re(e.grid&&e.grid.z,-1),o=Re(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==vi.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:o,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",o=[];let i,a;for(i=0,a=n.length;i<a;++i){const s=n[i];s[r]===this.id&&(!e||s.type===e)&&o.push(s)}return o}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return Ct(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class qc{constructor(e,n,r){this.type=e,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let r;jI(n)&&(r=this.register(n));const o=this.items,i=e.id,a=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in o||(o[i]=e,HI(e,a,r),this.override&&et.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const n=this.items,r=e.id,o=this.scope;r in n&&delete n[r],o&&r in et[o]&&(delete et[o][r],this.override&&delete po[r])}}function HI(t,e,n){const r=rs(Object.create(null),[n?et.get(n):{},et.get(e),t.defaults]);et.set(e,r),t.defaultRoutes&&UI(e,t.defaultRoutes),t.descriptors&&et.describe(e,t.descriptors)}function UI(t,e){Object.keys(e).forEach(n=>{const r=n.split("."),o=r.pop(),i=[t].concat(r).join("."),a=e[n].split("."),s=a.pop(),l=a.join(".");et.route(i,o,l,s)})}function jI(t){return"id"in t&&"defaults"in t}class WI{constructor(){this.controllers=new qc(Hc,"datasets",!0),this.elements=new qc(bi,"elements"),this.plugins=new qc(Object,"plugins"),this.scales=new qc(vi,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,r){[...n].forEach(o=>{const i=r||this._getRegistryForType(o);r||i.isForType(o)||i===this.plugins&&o.id?this._exec(e,i,o):Ne(o,a=>{const s=r||this._getRegistryForType(a);this._exec(e,s,a)})})}_exec(e,n,r){const o=mh(e);Ge(r["before"+o],[],r),n[e](r),Ge(r["after"+o],[],r)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(e))return r}return this.plugins}_get(e,n,r){const o=n.get(e);if(o===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return o}}var Xn=new WI;class VI{constructor(){this._init=void 0}notify(e,n,r,o){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const i=o?this._descriptors(e).filter(o):this._descriptors(e),a=this._notify(i,e,n,r);return n==="afterDestroy"&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),a}_notify(e,n,r,o){o=o||{};for(const i of e){const a=i.plugin,s=a[r],l=[n,o,i.options];if(Ge(s,l,a)===!1&&o.cancelable)return!1}return!0}invalidate(){We(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const r=e&&e.config,o=Re(r.options&&r.options.plugins,{}),i=YI(r);return o===!1&&!n?[]:KI(e,i,o,n)}_notifyStateChanges(e){const n=this._oldCache||[],r=this._cache,o=(i,a)=>i.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(o(n,r),e,"stop"),this._notify(o(r,n),e,"start")}}function YI(t){const e={},n=[],r=Object.keys(Xn.plugins.items);for(let i=0;i<r.length;i++)n.push(Xn.getPlugin(r[i]));const o=t.plugins||[];for(let i=0;i<o.length;i++){const a=o[i];n.indexOf(a)===-1&&(n.push(a),e[a.id]=!0)}return{plugins:n,localIds:e}}function qI(t,e){return!e&&t===!1?null:t===!0?{}:t}function KI(t,{plugins:e,localIds:n},r,o){const i=[],a=t.getContext();for(const s of e){const l=s.id,c=qI(r[l],o);c!==null&&i.push({plugin:s,options:XI(t.config,{plugin:s,local:n[l]},c,a)})}return i}function XI(t,{plugin:e,local:n},r,o){const i=t.pluginScopeKeys(e),a=t.getOptionScopes(r,i);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Qh(t,e){const n=et.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function GI(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function JI(t,e){return t===e?"_index_":"_value_"}function cy(t){if(t==="x"||t==="y"||t==="r")return t}function ZI(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Hh(t,...e){if(cy(t))return t;for(const n of e){const r=n.axis||ZI(n.position)||t.length>1&&cy(t[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function uy(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function $I(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(r=>r.xAxisID===t||r.yAxisID===t);if(n.length)return uy(t,"x",n[0])||uy(t,"y",n[0])}return{}}function e3(t,e){const n=po[t.type]||{scales:{}},r=e.scales||{},o=Qh(t.type,e),i=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!Oe(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=Hh(a,s,$I(a,t),et.scales[s.type]),c=JI(l,o),u=n.scales||{};i[a]=os(Object.create(null),[{axis:l},s,u[l],u[c]])}),t.data.datasets.forEach(a=>{const s=a.type||t.type,l=a.indexAxis||Qh(s,e),u=(po[s]||{}).scales||{};Object.keys(u).forEach(f=>{const p=GI(f,l),m=a[p+"AxisID"]||p;i[m]=i[m]||Object.create(null),os(i[m],[{axis:p},r[m],u[f]])})}),Object.keys(i).forEach(a=>{const s=i[a];os(s,[et.scales[s.type],et.scale])}),i}function dy(t){const e=t.options||(t.options={});e.plugins=Re(e.plugins,{}),e.scales=e3(t,e)}function fy(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function t3(t){return t=t||{},t.data=fy(t.data),dy(t),t}const hy=new Map,py=new Set;function Kc(t,e){let n=hy.get(t);return n||(n=e(),hy.set(t,n),py.add(n)),n}const As=(t,e,n)=>{const r=Lr(e,n);r!==void 0&&t.add(r)};let n3=class{constructor(e){this._config=t3(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=fy(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),dy(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Kc(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return Kc(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return Kc(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,r=this.type;return Kc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const r=this._scopeCache;let o=r.get(e);return(!o||n)&&(o=new Map,r.set(e,o)),o}getOptionScopes(e,n,r){const{options:o,type:i}=this,a=this._cachedScopes(e,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(f=>As(l,e,f))),u.forEach(f=>As(l,o,f)),u.forEach(f=>As(l,po[i]||{},f)),u.forEach(f=>As(l,et,f)),u.forEach(f=>As(l,kh,f))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),py.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,po[n]||{},et.datasets[n]||{},{type:n},et,kh]}resolveNamedOptions(e,n,r,o=[""]){const i={$shared:!0},{resolver:a,subPrefixes:s}=Ay(this._resolverCache,e,o);let l=a;if(o3(a,n)){i.$shared=!1,r=Nr(r)?r():r;const c=this.createResolver(e,r,s);l=gi(a,r,c)}for(const c of n)i[c]=l[c];return i}createResolver(e,n,r=[""],o){const{resolver:i}=Ay(this._resolverCache,e,r);return Oe(n)?gi(i,n,void 0,o):i}};function Ay(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const o=n.join();let i=r.get(o);return i||(i={resolver:Ph(e,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(o,i)),i}const r3=t=>Oe(t)&&Object.getOwnPropertyNames(t).some(e=>Nr(t[e]));function o3(t,e){const{isScriptable:n,isIndexable:r}=Ev(t);for(const o of e){const i=n(o),a=r(o),s=(a||i)&&t[o];if(i&&(Nr(s)||r3(s))||a&&ht(s))return!0}return!1}var i3="4.5.1";const a3=["top","bottom","left","right","chartArea"];function gy(t,e){return t==="top"||t==="bottom"||a3.indexOf(t)===-1&&e==="x"}function my(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function by(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Ge(n&&n.onComplete,[t],e)}function s3(t){const e=t.chart,n=e.options.animation;Ge(n&&n.onProgress,[t],e)}function vy(t){return Bh()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Xc={},yy=t=>{const e=vy(t);return Object.values(Xc).filter(n=>n.canvas===e).pop()};function l3(t,e,n){const r=Object.keys(t);for(const o of r){const i=+o;if(i>=e){const a=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=a)}}}function c3(t,e,n,r){return!n||t.type==="mouseout"?null:r?e:t}let Uh=class{static defaults=et;static instances=Xc;static overrides=po;static registry=Xn;static version=i3;static getChart=yy;static register(...e){Xn.add(...e),wy()}static unregister(...e){Xn.remove(...e),wy()}constructor(e,n){const r=this.config=new n3(n),o=vy(e),i=yy(o);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||PI(o)),this.platform.updateConfig(r);const s=this.platform.acquireContext(o,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=wT(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new VI,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=QT(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],Xc[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}mr.listen(this,"complete",by),mr.listen(this,"progress",s3),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:r,height:o,_aspectRatio:i}=this;return We(e)?n&&i?i:o?r/o:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Xn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Mv(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return yv(this.canvas,this.ctx),this}stop(){return mr.stop(this),this}resize(e,n){mr.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const r=this.options,o=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(o,e,n,i),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Mv(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),Ge(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ne(n,(r,o)=>{r.id=o})}buildOrUpdateScales(){const e=this.options,n=e.scales,r=this.scales,o=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let i=[];n&&(i=i.concat(Object.keys(n).map(a=>{const s=n[a],l=Hh(a,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Ne(i,a=>{const s=a.options,l=s.id,c=Hh(l,s),u=Re(s.type,a.dtype);(s.position===void 0||gy(s.position,c)!==gy(a.dposition))&&(s.position=a.dposition),o[l]=!0;let f=null;if(l in r&&r[l].type===u)f=r[l];else{const p=Xn.getScale(u);f=new p({id:l,type:u,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(s,e)}),Ne(o,(a,s)=>{a||delete r[s]}),Ne(r,a=>{yn.configure(this,a,a.options),yn.addBox(this,a)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,r=e.length;if(e.sort((o,i)=>o.index-i.index),r>n){for(let o=n;o<r;++o)this._destroyDatasetMeta(o);e.splice(n,r-n)}this._sortedMetasets=e.slice(0).sort(my("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((r,o)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(o)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let r,o;for(this._removeUnreferencedMetasets(),r=0,o=n.length;r<o;r++){const i=n[r];let a=this.getDatasetMeta(r);const s=i.type||this.config.type;if(a.type&&a.type!==s&&(this._destroyDatasetMeta(r),a=this.getDatasetMeta(r)),a.type=s,a.indexAxis=i.indexAxis||Qh(s,this.options),a.order=i.order||0,a.index=r,a.label=""+i.label,a.visible=this.isDatasetVisible(r),a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{const l=Xn.getController(s),{datasetElementType:c,dataElementType:u}=et.datasets[s];Object.assign(l,{dataElementType:Xn.getElement(u),datasetElementType:c&&Xn.getElement(c)}),a.controller=new l(this,r),e.push(a.controller)}}return this._updateMetasets(),e}_resetElements(){Ne(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),o=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:f}=this.getDatasetMeta(c),p=!o&&i.indexOf(f)===-1;f.buildOrUpdateElements(p),a=Math.max(+f.getMaxOverflow(),a)}a=this._minPadding=r.layout.autoPadding?a:0,this._updateLayout(a),o||Ne(i,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(my("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Ne(this.scales,e=>{yn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!rv(n,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:o,count:i}of n){const a=r==="_removeElements"?-i:i;l3(e,o,a)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(e.filter(a=>a[0]===i).map((a,s)=>s+","+a.splice(1).join(","))),o=r(0);for(let i=1;i<n;i++)if(!rv(o,r(i)))return;return Array.from(o).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;yn.update(this,this.width,this.height,e);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ne(this.boxes,o=>{r&&o.position==="chartArea"||(o.configure&&o.configure(),this._layers.push(...o._layers()))},this),this._layers.forEach((o,i)=>{o._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,Nr(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const r=this.getDatasetMeta(e),o={meta:r,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",o)!==!1&&(r.controller._update(n),o.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",o))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(mr.has(this)?this.attached&&!mr.running(this)&&mr.start(this):(this.draw(),by({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:o}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(r,o)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,r=[];let o,i;for(o=0,i=n.length;o<i;++o){const a=n[o];(!e||a.visible)&&r.push(a)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,r={meta:e,index:e.index,cancelable:!0},o=EB(this,e);this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(o&&Ch(n,o),e.controller.draw(),o&&Eh(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(e){return kv(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,r,o){const i=aI.modes[n];return typeof i=="function"?i(this,e,r,o):[]}getDatasetMeta(e){const n=this.data.datasets[e],r=this._metasets;let o=r.filter(i=>i&&i._dataset===n).pop();return o||(o={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},r.push(o)),o}getContext(){return this.$context||(this.$context=Ai(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(e,n){const r=this.getDatasetMeta(e);r.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,r){const o=r?"show":"hide",i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,o);is(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),a.update(i,{visible:r}),this.update(s=>s.datasetIndex===e?o:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),mr.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),yv(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Xc[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,r=(i,a)=>{n.addEventListener(this,i,a),e[i]=a},o=(i,a,s)=>{i.offsetX=a,i.offsetY=s,this._eventHandler(i)};Ne(this.options.events,i=>r(i,o))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},o=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},i=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const s=()=>{o("attach",s),this.attached=!0,this.resize(),r("resize",i),r("detach",a)};a=()=>{this.attached=!1,o("resize",i),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){Ne(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},Ne(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,r){const o=r?"set":"remove";let i,a,s,l;for(n==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+o+"DatasetHoverStyle"]()),s=0,l=e.length;s<l;++s){a=e[s];const c=a&&this.getDatasetMeta(a.datasetIndex).controller;c&&c[o+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],r=e.map(({datasetIndex:i,index:a})=>{const s=this.getDatasetMeta(i);if(!s)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:s.data[a],index:a}});!Tc(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(e,n,r){return this._plugins.notify(this,e,n,r)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,r){const o=this.options.hover,i=(l,c)=>l.filter(u=>!c.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),a=i(n,e),s=r?e:i(e,n);a.length&&this.updateHoverStyle(a,o.mode,!1),s.length&&o.mode&&this.updateHoverStyle(s,o.mode,!0)}_eventHandler(e,n){const r={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},o=a=>(a.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,o)===!1)return;const i=this._handleEvent(e,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,o),(i||r.changed)&&this.render(),this}_handleEvent(e,n,r){const{_active:o=[],options:i}=this,a=n,s=this._getActiveElements(e,o,r,a),l=PT(e),c=c3(e,this._lastEvent,r,l);r&&(this._lastEvent=null,Ge(i.onHover,[e,s,this],this),l&&Ge(i.onClick,[e,s,this],this));const u=!Tc(s,o);return(u||n)&&(this._active=s,this._updateHoverStyles(s,o,n)),this._lastEvent=c,u}_getActiveElements(e,n,r,o){if(e.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,o)}};function wy(){return Ne(Uh.instances,t=>t._plugins.invalidate())}function xy(t,e){const{x:n,y:r,base:o,width:i,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,c,u,f;return t.horizontal?(f=a/2,s=Math.min(n,o),l=Math.max(n,o),c=r-f,u=r+f):(f=i/2,s=n-f,l=n+f,c=Math.min(r,o),u=Math.max(r,o)),{left:s,top:c,right:l,bottom:u}}function Hr(t,e,n,r){return t?0:Dn(e,n,r)}function u3(t,e,n){const r=t.options.borderWidth,o=t.borderSkipped,i=Cv(r);return{t:Hr(o.top,i.top,0,n),r:Hr(o.right,i.right,0,e),b:Hr(o.bottom,i.bottom,0,n),l:Hr(o.left,i.left,0,e)}}function d3(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,i=pi(o),a=Math.min(e,n),s=t.borderSkipped,l=r||Oe(o);return{topLeft:Hr(!l||s.top||s.left,i.topLeft,0,a),topRight:Hr(!l||s.top||s.right,i.topRight,0,a),bottomLeft:Hr(!l||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:Hr(!l||s.bottom||s.right,i.bottomRight,0,a)}}function f3(t){const e=xy(t),n=e.right-e.left,r=e.bottom-e.top,o=u3(t,n/2,r/2),i=d3(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:i},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function jh(t,e,n,r){const o=e===null,i=n===null,s=t&&!(o&&i)&&xy(t,r);return s&&(o||hi(e,s.left,s.right))&&(i||hi(n,s.top,s.bottom))}function h3(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function p3(t,e){t.rect(e.x,e.y,e.w,e.h)}function Wh(t,e,n={}){const r=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,i=(t.x+t.w!==n.x+n.w?e:0)-r,a=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+r,y:t.y+o,w:t.w+i,h:t.h+a,radius:t.radius}}class A3 extends bi{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:r,backgroundColor:o}}=this,{inner:i,outer:a}=f3(this),s=h3(a.radius)?Rc:p3;e.save(),(a.w!==i.w||a.h!==i.h)&&(e.beginPath(),s(e,Wh(a,n,i)),e.clip(),s(e,Wh(i,-n,a)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),s(e,Wh(i,n)),e.fillStyle=o,e.fill(),e.restore()}inRange(e,n,r){return jh(this,e,n,r)}inXRange(e,n){return jh(this,e,null,n)}inYRange(e,n){return jh(this,null,e,n)}getCenterPoint(e){const{x:n,y:r,base:o,horizontal:i}=this.getProps(["x","y","base","horizontal"],e);return{x:i?(n+o)/2:n,y:i?r:(r+o)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}const Vh=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],ky=Vh.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function Sy(t){return Vh[t%Vh.length]}function Cy(t){return ky[t%ky.length]}function g3(t,e){return t.borderColor=Sy(e),t.backgroundColor=Cy(e),++e}function m3(t,e){return t.backgroundColor=t.data.map(()=>Sy(e++)),e}function b3(t,e){return t.backgroundColor=t.data.map(()=>Cy(e++)),e}function v3(t){let e=0;return(n,r)=>{const o=t.getDatasetMeta(r).controller;o instanceof $B?e=m3(n,e):o instanceof eI?e=b3(n,e):o&&(e=g3(n,e))}}function Ey(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function y3(t){return t&&(t.borderColor||t.backgroundColor)}function w3(){return et.borderColor!=="rgba(0,0,0,0.1)"||et.backgroundColor!=="rgba(0,0,0,0.1)"}var x3={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:r},options:o}=t.config,{elements:i}=o,a=Ey(r)||y3(o)||i&&Ey(i)||w3();if(!n.forceOverride&&a)return;const s=v3(t);r.forEach(s)}};const Py=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}},k3=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Dy extends bi{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,r){this.maxWidth=e,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Ge(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(r=>e.filter(r,this.chart.data))),e.sort&&(n=n.sort((r,o)=>e.sort(r,o,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,o=Ct(r.font),i=o.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=Py(r,i);let c,u;n.font=o.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(a,i,s,l)+10):(u=this.maxHeight,c=this._fitCols(a,o,s,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,r,o){const{ctx:i,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=o+s;let f=e;i.textAlign="left",i.textBaseline="middle";let p=-1,m=-u;return this.legendItems.forEach((v,w)=>{const y=r+n/2+i.measureText(v.text).width;(w===0||c[c.length-1]+y+2*s>a)&&(f+=u,c[c.length-(w>0?0:1)]=0,m+=u,p++),l[w]={left:0,top:m,row:p,width:y,height:o},c[c.length-1]+=y+s}),f}_fitCols(e,n,r,o){const{ctx:i,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=a-e;let f=s,p=0,m=0,v=0,w=0;return this.legendItems.forEach((y,S)=>{const{itemWidth:T,itemHeight:P}=S3(r,n,i,y,o);S>0&&m+P+2*s>u&&(f+=p+s,c.push({width:p,height:m}),v+=p+s,w++,p=m=0),l[S]={left:v,top:m,col:w,width:T,height:P},p=Math.max(p,T),m+=P+s}),f+=p,c.push({width:p,height:m}),f}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:o},rtl:i}}=this,a=mi(i,this.left,this.width);if(this.isHorizontal()){let s=0,l=St(r,this.left+o,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=St(r,this.left+o,this.right-this.lineWidths[s])),c.top+=this.top+e+o,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+o}else{let s=0,l=St(r,this.top+e+o,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=St(r,this.top+e+o,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+o,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+o}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Ch(e,this),this._draw(),Eh(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:r,ctx:o}=this,{align:i,labels:a}=e,s=et.color,l=mi(e.rtl,this.left,this.width),c=Ct(a.font),{padding:u}=a,f=c.size,p=f/2;let m;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;const{boxWidth:v,boxHeight:w,itemHeight:y}=Py(a,f),S=function(M,N,H){if(isNaN(v)||v<=0||isNaN(w)||w<0)return;o.save();const z=Re(H.lineWidth,1);if(o.fillStyle=Re(H.fillStyle,s),o.lineCap=Re(H.lineCap,"butt"),o.lineDashOffset=Re(H.lineDashOffset,0),o.lineJoin=Re(H.lineJoin,"miter"),o.lineWidth=z,o.strokeStyle=Re(H.strokeStyle,s),o.setLineDash(Re(H.lineDash,[])),a.usePointStyle){const Q={radius:w*Math.SQRT2/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:z},U=l.xPlus(M,v/2),j=N+p;xv(o,Q,U,j,a.pointStyleWidth&&v)}else{const Q=N+Math.max((f-w)/2,0),U=l.leftForLtr(M,v),j=pi(H.borderRadius);o.beginPath(),Object.values(j).some(V=>V!==0)?Rc(o,{x:U,y:Q,w:v,h:w,radius:j}):o.rect(U,Q,v,w),o.fill(),z!==0&&o.stroke()}o.restore()},T=function(M,N,H){ls(o,H.text,M,N+y/2,c,{strikethrough:H.hidden,textAlign:l.textAlign(H.textAlign)})},P=this.isHorizontal(),E=this._computeTitleHeight();P?m={x:St(i,this.left+u,this.right-r[0]),y:this.top+u+E,line:0}:m={x:this.left+u,y:St(i,this.top+E+u,this.bottom-n[0].height),line:0},_v(this.ctx,e.textDirection);const O=y+u;this.legendItems.forEach((M,N)=>{o.strokeStyle=M.fontColor,o.fillStyle=M.fontColor;const H=o.measureText(M.text).width,z=l.textAlign(M.textAlign||(M.textAlign=a.textAlign)),Q=v+p+H;let U=m.x,j=m.y;l.setWidth(this.width),P?N>0&&U+Q+u>this.right&&(j=m.y+=O,m.line++,U=m.x=St(i,this.left+u,this.right-r[m.line])):N>0&&j+O>this.bottom&&(U=m.x=U+n[m.line].width+u,m.line++,j=m.y=St(i,this.top+E+u,this.bottom-n[m.line].height));const V=l.x(U);if(S(V,j,M),U=HT(z,U+v+p,P?U+Q:this.right,e.rtl),T(l.x(U),j,M),P)m.x+=Q+u;else if(typeof M.text!="string"){const X=c.lineHeight;m.y+=Ty(M,X)+u}else m.y+=O}),Fv(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,r=Ct(n.font),o=vn(n.padding);if(!n.display)return;const i=mi(e.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=o.top+l;let u,f=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),u=this.top+c,f=St(e.align,f,this.right-p);else{const v=this.columnSizes.reduce((w,y)=>Math.max(w,y.height),0);u=c+St(e.align,this.top,this.bottom-v-e.labels.padding-this._computeTitleHeight())}const m=St(s,f,f+p);a.textAlign=i.textAlign(wh(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,ls(a,n.text,m,u,r)}_computeTitleHeight(){const e=this.options.title,n=Ct(e.font),r=vn(e.padding);return e.display?n.lineHeight+r.height:0}_getLegendItemAt(e,n){let r,o,i;if(hi(e,this.left,this.right)&&hi(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(o=i[r],hi(e,o.left,o.left+o.width)&&hi(n,o.top,o.top+o.height))return this.legendItems[r]}return null}handleEvent(e){const n=this.options;if(!P3(e.type,n))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const o=this._hoveredItem,i=k3(o,r);o&&!i&&Ge(n.onLeave,[e,o,this],this),this._hoveredItem=r,r&&!i&&Ge(n.onHover,[e,r,this],this)}else r&&Ge(n.onClick,[e,r,this],this)}}function S3(t,e,n,r,o){const i=C3(r,t,e,n),a=E3(o,r,e.lineHeight);return{itemWidth:i,itemHeight:a}}function C3(t,e,n,r){let o=t.text;return o&&typeof o!="string"&&(o=o.reduce((i,a)=>i.length>a.length?i:a)),e+n.size/2+r.measureText(o).width}function E3(t,e,n){let r=t;return typeof e.text!="string"&&(r=Ty(e,n)),r}function Ty(t,e){const n=t.text?t.text.length:0;return e*n}function P3(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var D3={id:"legend",_element:Dy,start(t,e,n){const r=t.legend=new Dy({ctx:t.ctx,options:n,chart:t});yn.configure(t,r,n),yn.addBox(t,r)},stop(t){yn.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;yn.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,o=n.chart;o.isDatasetVisible(r)?(o.hide(r),e.hidden=!0):(o.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:o,color:i,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=vn(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class By extends bi{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const o=ht(r.text)?r.text.length:1;this._padding=vn(r.padding);const i=o*Ct(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:r,bottom:o,right:i,options:a}=this,s=a.align;let l=0,c,u,f;return this.isHorizontal()?(u=St(s,r,i),f=n+e,c=i-r):(a.position==="left"?(u=r+e,f=St(s,o,n),l=pt*-.5):(u=i-e,f=St(s,n,o),l=pt*.5),c=o-n),{titleX:u,titleY:f,maxWidth:c,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const r=Ct(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(i);ls(e,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:wh(n.align),textBaseline:"middle",translation:[a,s]})}}function T3(t,e){const n=new By({ctx:t.ctx,options:e,chart:t});yn.configure(t,n,e),yn.addBox(t,n),t.titleBlock=n}var B3={id:"title",_element:By,start(t,e,n){T3(t,n)},stop(t){const e=t.titleBlock;yn.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;yn.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const gs={average(t){if(!t.length)return!1;let e,n,r=new Set,o=0,i=0;for(e=0,n=t.length;e<n;++e){const s=t[e].element;if(s&&s.hasValue()){const l=s.tooltipPosition();r.add(l.x),o+=l.y,++i}}return i===0||r.size===0?!1:{x:[...r].reduce((s,l)=>s+l)/r.size,y:o/i}},nearest(t,e){if(!t.length)return!1;let n=e.x,r=e.y,o=Number.POSITIVE_INFINITY,i,a,s;for(i=0,a=t.length;i<a;++i){const l=t[i].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=FT(e,c);u<o&&(o=u,s=l)}}if(s){const l=s.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Gn(t,e){return e&&(ht(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function br(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(`
|
|
342
|
+
`)>-1?t.split(`
|
|
343
|
+
`):t}function I3(t,e){const{element:n,datasetIndex:r,index:o}=e,i=t.getDatasetMeta(r).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:t,label:a,parsed:i.getParsed(o),raw:t.data.datasets[r].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:r,element:n}}function Iy(t,e){const n=t.chart.ctx,{body:r,footer:o,title:i}=t,{boxWidth:a,boxHeight:s}=e,l=Ct(e.bodyFont),c=Ct(e.titleFont),u=Ct(e.footerFont),f=i.length,p=o.length,m=r.length,v=vn(e.padding);let w=v.height,y=0,S=r.reduce((E,O)=>E+O.before.length+O.lines.length+O.after.length,0);if(S+=t.beforeBody.length+t.afterBody.length,f&&(w+=f*c.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),S){const E=e.displayColors?Math.max(s,l.lineHeight):l.lineHeight;w+=m*E+(S-m)*l.lineHeight+(S-1)*e.bodySpacing}p&&(w+=e.footerMarginTop+p*u.lineHeight+(p-1)*e.footerSpacing);let T=0;const P=function(E){y=Math.max(y,n.measureText(E).width+T)};return n.save(),n.font=c.string,Ne(t.title,P),n.font=l.string,Ne(t.beforeBody.concat(t.afterBody),P),T=e.displayColors?a+2+e.boxPadding:0,Ne(r,E=>{Ne(E.before,P),Ne(E.lines,P),Ne(E.after,P)}),T=0,n.font=u.string,Ne(t.footer,P),n.restore(),y+=v.width,{width:y,height:w}}function M3(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function O3(t,e,n,r){const{x:o,width:i}=r,a=n.caretSize+n.caretPadding;if(t==="left"&&o+i+a>e.width||t==="right"&&o-i-a<0)return!0}function _3(t,e,n,r){const{x:o,width:i}=n,{width:a,chartArea:{left:s,right:l}}=t;let c="center";return r==="center"?c=o<=(s+l)/2?"left":"right":o<=i/2?c="left":o>=a-i/2&&(c="right"),O3(c,t,e,n)&&(c="center"),c}function My(t,e,n){const r=n.yAlign||e.yAlign||M3(t,n);return{xAlign:n.xAlign||e.xAlign||_3(t,e,n,r),yAlign:r}}function F3(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function R3(t,e,n){let{y:r,height:o}=t;return e==="top"?r+=n:e==="bottom"?r-=o+n:r-=o/2,r}function Oy(t,e,n,r){const{caretSize:o,caretPadding:i,cornerRadius:a}=t,{xAlign:s,yAlign:l}=n,c=o+i,{topLeft:u,topRight:f,bottomLeft:p,bottomRight:m}=pi(a);let v=F3(e,s);const w=R3(e,l,c);return l==="center"?s==="left"?v+=c:s==="right"&&(v-=c):s==="left"?v-=Math.max(u,p)+o:s==="right"&&(v+=Math.max(f,m)+o),{x:Dn(v,0,r.width-e.width),y:Dn(w,0,r.height-e.height)}}function Gc(t,e,n){const r=vn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function _y(t){return Gn([],br(t))}function L3(t,e,n){return Ai(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Fy(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const Ry={beforeTitle:gr,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:gr,beforeBody:gr,beforeLabel:gr,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return We(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:gr,afterBody:gr,beforeFooter:gr,footer:gr,afterFooter:gr};function Ut(t,e,n,r){const o=t[e].call(n,r);return typeof o>"u"?Ry[e].call(n,r):o}class Ly extends bi{static positioners=gs;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),o=r.enabled&&n.options.animation&&r.animations,i=new Lv(this.chart,o);return o._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=L3(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,o=Ut(r,"beforeTitle",this,e),i=Ut(r,"title",this,e),a=Ut(r,"afterTitle",this,e);let s=[];return s=Gn(s,br(o)),s=Gn(s,br(i)),s=Gn(s,br(a)),s}getBeforeBody(e,n){return _y(Ut(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,o=[];return Ne(e,i=>{const a={before:[],lines:[],after:[]},s=Fy(r,i);Gn(a.before,br(Ut(s,"beforeLabel",this,i))),Gn(a.lines,Ut(s,"label",this,i)),Gn(a.after,br(Ut(s,"afterLabel",this,i))),o.push(a)}),o}getAfterBody(e,n){return _y(Ut(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,o=Ut(r,"beforeFooter",this,e),i=Ut(r,"footer",this,e),a=Ut(r,"afterFooter",this,e);let s=[];return s=Gn(s,br(o)),s=Gn(s,br(i)),s=Gn(s,br(a)),s}_createItems(e){const n=this._active,r=this.chart.data,o=[],i=[],a=[];let s=[],l,c;for(l=0,c=n.length;l<c;++l)s.push(I3(this.chart,n[l]));return e.filter&&(s=s.filter((u,f,p)=>e.filter(u,f,p,r))),e.itemSort&&(s=s.sort((u,f)=>e.itemSort(u,f,r))),Ne(s,u=>{const f=Fy(e.callbacks,u);o.push(Ut(f,"labelColor",this,u)),i.push(Ut(f,"labelPointStyle",this,u)),a.push(Ut(f,"labelTextColor",this,u))}),this.labelColors=o,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=s,s}update(e,n){const r=this.options.setContext(this.getContext()),o=this._active;let i,a=[];if(!o.length)this.opacity!==0&&(i={opacity:0});else{const s=gs[r.position].call(this,o,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=Iy(this,r),c=Object.assign({},s,l),u=My(this.chart,r,c),f=Oy(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,o){const i=this.getCaretPosition(e,r,o);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(e,n,r){const{xAlign:o,yAlign:i}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:f}=pi(s),{x:p,y:m}=e,{width:v,height:w}=n;let y,S,T,P,E,O;return i==="center"?(E=m+w/2,o==="left"?(y=p,S=y-a,P=E+a,O=E-a):(y=p+v,S=y+a,P=E-a,O=E+a),T=y):(o==="left"?S=p+Math.max(l,u)+a:o==="right"?S=p+v-Math.max(c,f)-a:S=this.caretX,i==="top"?(P=m,E=P-a,y=S-a,T=S+a):(P=m+w,E=P+a,y=S+a,T=S-a),O=P),{x1:y,x2:S,x3:T,y1:P,y2:E,y3:O}}drawTitle(e,n,r){const o=this.title,i=o.length;let a,s,l;if(i){const c=mi(r.rtl,this.x,this.width);for(e.x=Gc(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Ct(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;l<i;++l)n.fillText(o[l],c.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+s,l+1===i&&(e.y+=r.titleMarginBottom-s)}}_drawColorBox(e,n,r,o,i){const a=this.labelColors[r],s=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=i,u=Ct(i.bodyFont),f=Gc(this,"left",i),p=o.x(f),m=l<u.lineHeight?(u.lineHeight-l)/2:0,v=n.y+m;if(i.usePointStyle){const w={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},y=o.leftForLtr(p,c)+c/2,S=v+l/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,wv(e,w,y,S),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,wv(e,w,y,S)}else{e.lineWidth=Oe(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const w=o.leftForLtr(p,c),y=o.leftForLtr(o.xPlus(p,1),c-2),S=pi(a.borderRadius);Object.values(S).some(T=>T!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Rc(e,{x:w,y:v,w:c,h:l,radius:S}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Rc(e,{x:y,y:v+1,w:c-2,h:l-2,radius:S}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(w,v,c,l),e.strokeRect(w,v,c,l),e.fillStyle=a.backgroundColor,e.fillRect(y,v+1,c-2,l-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:o}=this,{bodySpacing:i,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,f=Ct(r.bodyFont);let p=f.lineHeight,m=0;const v=mi(r.rtl,this.x,this.width),w=function(H){n.fillText(H,v.x(e.x+m),e.y+p/2),e.y+=p+i},y=v.textAlign(a);let S,T,P,E,O,M,N;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,e.x=Gc(this,y,r),n.fillStyle=r.bodyColor,Ne(this.beforeBody,w),m=s&&y!=="right"?a==="center"?c/2+u:c+2+u:0,E=0,M=o.length;E<M;++E){for(S=o[E],T=this.labelTextColors[E],n.fillStyle=T,Ne(S.before,w),P=S.lines,s&&P.length&&(this._drawColorBox(n,e,E,v,r),p=Math.max(f.lineHeight,l)),O=0,N=P.length;O<N;++O)w(P[O]),p=f.lineHeight;Ne(S.after,w)}m=0,p=f.lineHeight,Ne(this.afterBody,w),e.y-=i}drawFooter(e,n,r){const o=this.footer,i=o.length;let a,s;if(i){const l=mi(r.rtl,this.x,this.width);for(e.x=Gc(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",a=Ct(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,s=0;s<i;++s)n.fillText(o[s],l.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+r.footerSpacing}}drawBackground(e,n,r,o){const{xAlign:i,yAlign:a}=this,{x:s,y:l}=e,{width:c,height:u}=r,{topLeft:f,topRight:p,bottomLeft:m,bottomRight:v}=pi(o.cornerRadius);n.fillStyle=o.backgroundColor,n.strokeStyle=o.borderColor,n.lineWidth=o.borderWidth,n.beginPath(),n.moveTo(s+f,l),a==="top"&&this.drawCaret(e,n,r,o),n.lineTo(s+c-p,l),n.quadraticCurveTo(s+c,l,s+c,l+p),a==="center"&&i==="right"&&this.drawCaret(e,n,r,o),n.lineTo(s+c,l+u-v),n.quadraticCurveTo(s+c,l+u,s+c-v,l+u),a==="bottom"&&this.drawCaret(e,n,r,o),n.lineTo(s+m,l+u),n.quadraticCurveTo(s,l+u,s,l+u-m),a==="center"&&i==="left"&&this.drawCaret(e,n,r,o),n.lineTo(s,l+f),n.quadraticCurveTo(s,l,s+f,l),n.closePath(),n.fill(),o.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,o=r&&r.x,i=r&&r.y;if(o||i){const a=gs[e.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=Iy(this,e),l=Object.assign({},a,this._size),c=My(n,e,l),u=Oy(e,l,c,n);(o._to!==u.x||i._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const o={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=vn(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(e.save(),e.globalAlpha=r,this.drawBackground(i,e,o,n),_v(e,n.textDirection),i.y+=a.top,this.drawTitle(i,e,n),this.drawBody(i,e,n),this.drawFooter(i,e,n),Fv(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,o=e.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),i=!Tc(r,o),a=this._positionChanged(o,n);(i||a)&&(this._active=o,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const o=this.options,i=this._active||[],a=this._getActiveElements(e,i,n,r),s=this._positionChanged(a,e),l=n||!Tc(a,i)||s;return l&&(this._active=a,(o.enabled||o.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,r,o){const i=this.options;if(e.type==="mouseout")return[];if(!o)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(e,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:r,caretY:o,options:i}=this,a=gs[i.position].call(this,e,n);return a!==!1&&(r!==a.x||o!==a.y)}}var N3={id:"tooltip",_element:Ly,positioners:gs,afterInit(t,e,n){n&&(t.tooltip=new Ly({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Ry},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const z3=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function Q3(t,e,n,r){const o=t.indexOf(e);if(o===-1)return z3(t,e,n,r);const i=t.lastIndexOf(e);return o!==i?n:o}const H3=(t,e)=>t===null?null:Dn(Math.round(t),0,e);function Ny(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class U3 extends vi{static id="category";static defaults={ticks:{callback:Ny}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:o,label:i}of n)r[o]===i&&r.splice(o,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(We(e))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===e?n:Q3(r,e,Re(n,e),this._addedLabels),H3(n,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:o}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),n||(o=this.getLabels().length-1)),this.min=r,this.max=o}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,o=[];let i=this.getLabels();i=e===0&&n===i.length-1?i:i.slice(e,n+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=e;a<=n;a++)o.push({value:a});return o}getLabelForValue(e){return Ny.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function j3(t,e){const n=[],{bounds:o,step:i,min:a,max:s,precision:l,count:c,maxTicks:u,maxDigits:f,includeBounds:p}=t,m=i||1,v=u-1,{min:w,max:y}=e,S=!We(a),T=!We(s),P=!We(c),E=(y-w)/(f+1);let O=av((y-w)/v/m)*m,M,N,H,z;if(O<1e-14&&!S&&!T)return[{value:w},{value:y}];z=Math.ceil(y/O)-Math.floor(w/O),z>v&&(O=av(z*O/v/m)*m),We(l)||(M=Math.pow(10,l),O=Math.ceil(O*M)/M),o==="ticks"?(N=Math.floor(w/O)*O,H=Math.ceil(y/O)*O):(N=w,H=y),S&&T&&i&&IT((s-a)/i,O/1e3)?(z=Math.round(Math.min((s-a)/O,u)),O=(s-a)/z,N=a,H=s):P?(N=S?a:N,H=T?s:H,z=c-1,O=(H-N)/z):(z=(H-N)/O,Mc(z,Math.round(z),O/1e3)?z=Math.round(z):z=Math.ceil(z));const Q=Math.max(sv(O),sv(N));M=Math.pow(10,We(l)?Q:l),N=Math.round(N*M)/M,H=Math.round(H*M)/M;let U=0;for(S&&(p&&N!==a?(n.push({value:a}),N<a&&U++,Mc(Math.round((N+U*O)*M)/M,a,zy(a,E,t))&&U++):N<a&&U++);U<z;++U){const j=Math.round((N+U*O)*M)/M;if(T&&j>s)break;n.push({value:j})}return T&&p&&H!==s?n.length&&Mc(n[n.length-1].value,s,zy(s,E,t))?n[n.length-1].value=s:n.push({value:s}):(!T||H===s)&&n.push({value:H}),n}function zy(t,e,{horizontal:n,minRotation:r}){const o=Kn(r),i=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/i,a)}class W3 extends vi{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return We(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:o,max:i}=this;const a=l=>o=n?o:l,s=l=>i=r?i:l;if(e){const l=zr(o),c=zr(i);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(o===i){let l=i===0?1:Math.abs(i*.05);s(i+l),e||a(o-l)}this.min=o,this.max=i}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,o;return r?(o=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,o>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${o} ticks. Limiting to 1000.`),o=1e3)):(o=this.computeTickLimit(),n=n||11),n&&(o=Math.min(n,o)),o}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const o={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=j3(o,i);return e.bounds==="ticks"&&MT(a,this,"value"),e.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const o=(r-n)/Math.max(e.length-1,1)/2;n-=o,r+=o}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return Fc(e,this.chart.options.locale,this.options.ticks.format)}}class V3 extends W3{static id="linear";static defaults={ticks:{callback:bv.formatters.numeric}};determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=bn(e)?e:0,this.max=bn(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=Kn(this.options.ticks.minRotation),o=(e?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/o))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const Jc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},jt=Object.keys(Jc);function Qy(t,e){return t-e}function Hy(t,e){if(We(e))return null;const n=t._adapter,{parser:r,round:o,isoWeekday:i}=t._parseOpts;let a=e;return typeof r=="function"&&(a=r(a)),bn(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(o&&(a=o==="week"&&(Oc(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,o)),+a)}function Uy(t,e,n,r){const o=jt.length;for(let i=jt.indexOf(t);i<o-1;++i){const a=Jc[jt[i]],s=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-e)/(s*a.size))<=r)return jt[i]}return jt[o-1]}function Y3(t,e,n,r,o){for(let i=jt.length-1;i>=jt.indexOf(n);i--){const a=jt[i];if(Jc[a].common&&t._adapter.diff(o,r,a)>=e-1)return a}return jt[n?jt.indexOf(n):0]}function q3(t){for(let e=jt.indexOf(t)+1,n=jt.length;e<n;++e)if(Jc[jt[e]].common)return jt[e]}function jy(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:o}=vh(n,e),i=n[r]>=e?n[r]:n[o];t[i]=!0}}function K3(t,e,n,r){const o=t._adapter,i=+o.startOf(e[0].value,r),a=e[e.length-1].value;let s,l;for(s=i;s<=a;s=+o.add(s,1,r))l=n[s],l>=0&&(e[l].major=!0);return e}function Wy(t,e,n){const r=[],o={},i=e.length;let a,s;for(a=0;a<i;++a)s=e[a],o[s]=a,r.push({value:s,major:!1});return i===0||!n?r:K3(t,r,o,n)}class Vy extends vi{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),o=this._adapter=new tI._date(e.adapters.date);o.init(n),os(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:Hy(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:o,max:i,minDefined:a,maxDefined:s}=this.getUserBounds();function l(c){!a&&!isNaN(c.min)&&(o=Math.min(o,c.min)),!s&&!isNaN(c.max)&&(i=Math.max(i,c.max))}(!a||!s)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),o=bn(o)&&!isNaN(o)?o:+n.startOf(Date.now(),r),i=bn(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,this.min=Math.min(o,i-1),this.max=Math.max(o+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,o=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&o.length&&(this.min=this._userMin||o[0],this.max=this._userMax||o[o.length-1]);const i=this.min,a=this.max,s=NT(o,i,a);return this._unit=n.unit||(r.autoSkip?Uy(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):Y3(this,s.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:q3(this._unit),this.initOffsets(o),e.reverse&&s.reverse(),Wy(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,o,i;this.options.offset&&e.length&&(o=this.getDecimalForValue(e[0]),e.length===1?n=1-o:n=(this.getDecimalForValue(e[1])-o)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?r=i:r=(i-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=Dn(n,0,a),r=Dn(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,o=this.options,i=o.time,a=i.unit||Uy(i.minUnit,n,r,this._getLabelCapacity(n)),s=Re(o.ticks.stepSize,1),l=a==="week"?i.isoWeekday:!1,c=Oc(l)||l===!0,u={};let f=n,p,m;if(c&&(f=+e.startOf(f,"isoWeek",l)),f=+e.startOf(f,c?"day":a),e.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const v=o.ticks.source==="data"&&this.getDataTimestamps();for(p=f,m=0;p<r;p=+e.add(p,s,a),m++)jy(u,p,v);return(p===r||o.bounds==="ticks"||m===1)&&jy(u,p,v),Object.keys(u).sort(Qy).map(w=>+w)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const o=this.options.time.displayFormats,i=this._unit,a=n||o[i];return this._adapter.format(e,a)}_tickFormatFunction(e,n,r,o){const i=this.options,a=i.ticks.callback;if(a)return Ge(a,[e,n,r],this);const s=i.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],f=c&&s[c],p=r[n],m=c&&f&&p&&p.major;return this._adapter.format(e,o||(m?f:u))}generateTickLabels(e){let n,r,o;for(n=0,r=e.length;n<r;++n)o=e[n],o.label=this._tickFormatFunction(o.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,o=Kn(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(o),a=Math.sin(o),s=this._resolveTickFontOptions(0).size;return{w:r*i+s*a,h:r*a+s*i}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,o=r[n.unit]||r.millisecond,i=this._tickFormatFunction(e,0,Wy(this,[e],this._majorUnit),o),a=this._getLabelSize(i),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const o=this.getMatchingVisibleMetas();if(this._normalized&&o.length)return this._cache.data=o[0].controller.getAllParsedValues(this);for(n=0,r=o.length;n<r;++n)e=e.concat(o[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const o=this.getLabels();for(n=0,r=o.length;n<r;++n)e.push(Hy(this,o[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return uv(e.sort(Qy))}}function Zc(t,e,n){let r=0,o=t.length-1,i,a,s,l;n?(e>=t[r].pos&&e<=t[o].pos&&({lo:r,hi:o}=yh(t,"pos",e)),{pos:i,time:s}=t[r],{pos:a,time:l}=t[o]):(e>=t[r].time&&e<=t[o].time&&({lo:r,hi:o}=yh(t,"time",e)),{time:i,pos:s}=t[r],{time:a,pos:l}=t[o]);const c=a-i;return c?s+(l-s)*(e-i)/c:s}class J8 extends Vy{static id="timeseries";static defaults=Vy.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Zc(n,this.min),this._tableRange=Zc(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,o=[],i=[];let a,s,l,c,u;for(a=0,s=e.length;a<s;++a)c=e[a],c>=n&&c<=r&&o.push(c);if(o.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=o.length;a<s;++a)u=o[a+1],l=o[a-1],c=o[a],Math.round((u+l)/2)!==c&&i.push({time:c,pos:a/(s-1)});return i}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((o,i)=>o-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(Zc(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return Zc(this._table,r*this._tableRange+this._minPos,!0)}}Uh.register(x3,JB,A3,U3,V3,D3,B3,N3);function X3({type:t="bar",data:e,options:n}){const r=I.useRef(null),o=I.useRef(null);return I.useLayoutEffect(()=>{o.current&&(r.current?(r.current.options=n,r.current.data=e,r.current.update()):r.current=new Uh(o.current,{type:t,data:e,options:n}))},[t,e,n]),k.jsx("div",{className:"chart",children:k.jsx("canvas",{ref:o})})}const Yy=["--teal-700","--yellow-400","--teal-400","--orange-400","--green-400","--red-400"],Yh=["0 - 1s","1 - 30s","30s - 30min","30 - 60min","1 - 5hr","5 - 10hr","10 - 18hr","18+hr"],qh=(t,e,n=0)=>`${t.toFixed(n)} ${e}${t==1?"":"s"}`,qy=t=>{const e=t/3600;if(e>=1)return qh(e,"hour",1);const n=t/60;return n>=1?qh(n,"minute",0):qh(t,"second",0)},$c=t=>t.replace(/ \([^)]+\)/,"");function G3({infoGroupId:t}){const[e,n]=I.useState("overview"),r=Sw(t).filter(c=>c.cider_type=="Compute"),o=It(r.length?r.map(c=>`https://rest-test.ccr.xdmod.org/rest/v0.1/custom_queries/wait_times/${c.info_resourceid}/`):null,{defaultValue:[]}),i=It(e!=="overview"?`https://rest-test.ccr.xdmod.org/rest/v0.1/custom_queries/wait_times/${e}/queue/job_walltime`:null);if(!o.length||!r.length)return;const a=o.map((c,u)=>c.error?c:{...c.data[0],...r[u]}).filter(c=>!c.error);if(!a.length)return;const s=[k.jsxs("select",{value:e,onChange:c=>n(c.target.value),children:[k.jsx("option",{value:"overview",children:"Overview"},"overview"),a.map(c=>k.jsx("option",{value:c.info_resourceid,children:$c(c.resource_descriptive_name)},c.info_resourceid))]},"select")];let l=null;if(e==="overview")l=k.jsx("div",{className:"cards",children:a.map(({info_resourceid:c,job_count:u,median_expansion_factor:f,median_wait_time:p,median_wall_time:m,resource_descriptive_name:v})=>k.jsxs("p",{className:"card metrics-overview",children:[k.jsxs("b",{children:[$c(v),":"]})," Users ran"," ",k.jsxs("strong",{children:[k.jsx(Me,{name:"file-earmark-code"}),parseInt(u).toLocaleString("en-us")," jobs"]})," ","during the last 30 days. Waiting in the queue caused an average"," ",k.jsxs("strong",{children:[k.jsx(Me,{name:"calculator"}),((f-1)*100).toLocaleString("en-us",{maximumFractionDigits:0}),"% increase"]})," ","in the total completion time. The average job waited for"," ",k.jsxs("strong",{children:[k.jsx(Me,{name:"hourglass-split"})," ",qy(p)]})," ","and ran for"," ",k.jsxs("strong",{children:[k.jsx(Me,{name:"stopwatch"}),qy(m)]}),"."," ",k.jsx("a",{title:`Wait time chart for ${$c(v)}`,href:"#",onClick:w=>{w.preventDefault(),n(c)},children:"View chart »"})]},c))});else if(i&&i.info_resource_id===e){const c={},u=Yh;for(let v of i.data)c[v.queue]=c[v.queue]||{label:v.queue,data:Array(Yh.length).fill(null)},c[v.queue].data[Yh.indexOf(v.job_walltime)]=v.median_wait_time/60;const f=Object.values(c);f.forEach((v,w)=>{let y=Yy[w%(Yy.length-1)];v.backgroundColor=getComputedStyle(document.body).getPropertyValue(y)});const p=a.find(v=>v.info_resourceid==i.info_resource_id),m={interaction:{intersect:!1,mode:"index"},plugins:{title:{display:!0,text:`Median Wait Time by Queue on ${$c(p.resource_descriptive_name)}: Last 30 Days`}},scales:{x:{title:{display:!0,text:"Job Wall Time (Run Time)"}},y:{title:{display:!0,text:"Median Wait Time (Minutes)"}}}};l=k.jsxs(k.Fragment,{children:[k.jsx(X3,{type:"bar",data:{labels:u,datasets:f},options:m}),k.jsx("p",{children:k.jsx("a",{href:"#",onClick:v=>{v.preventDefault(),n("overview")},children:"« Back to overview"})})]})}return k.jsxs(jn,{title:"Wait Time",icon:"hourglass-split",headerComponents:s,children:[l,k.jsxs("p",{className:"metrics-disclaimer",children:[k.jsx(Me,{name:"info-circle"}),"These metrics describe activity from ACCESS projects. Many resources have additional projects that are not part of ACCESS."]})]})}function vr(t){return Array.isArray?Array.isArray(t):Gy(t)==="[object Array]"}function J3(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-1/0?"-0":e}function Z3(t){return t==null?"":J3(t)}function Jn(t){return typeof t=="string"}function Ky(t){return typeof t=="number"}function $3(t){return t===!0||t===!1||e8(t)&&Gy(t)=="[object Boolean]"}function Xy(t){return typeof t=="object"}function e8(t){return Xy(t)&&t!==null}function an(t){return t!=null}function Kh(t){return!t.trim().length}function Gy(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const t8="Incorrect 'index' type",n8=t=>`Invalid value for key ${t}`,r8=t=>`Pattern length exceeds max of ${t}.`,o8=t=>`Missing ${t} property in key`,i8=t=>`Property 'weight' in key '${t}' must be a positive integer`,Jy=Object.prototype.hasOwnProperty;class a8{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(r=>{let o=Zy(r);this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Zy(t){let e=null,n=null,r=null,o=1,i=null;if(Jn(t)||vr(t))r=t,e=$y(t),n=Xh(t);else{if(!Jy.call(t,"name"))throw new Error(o8("name"));const a=t.name;if(r=a,Jy.call(t,"weight")&&(o=t.weight,o<=0))throw new Error(i8(a));e=$y(a),n=Xh(a),i=t.getFn}return{path:e,id:n,weight:o,src:r,getFn:i}}function $y(t){return vr(t)?t:t.split(".")}function Xh(t){return vr(t)?t.join("."):t}function s8(t,e){let n=[],r=!1;const o=(i,a,s)=>{if(an(i))if(!a[s])n.push(i);else{let l=a[s];const c=i[l];if(!an(c))return;if(s===a.length-1&&(Jn(c)||Ky(c)||$3(c)))n.push(Z3(c));else if(vr(c)){r=!0;for(let u=0,f=c.length;u<f;u+=1)o(c[u],a,s+1)}else a.length&&o(c,a,s+1)}};return o(t,Jn(e)?e.split("."):e,0),r?n:n[0]}var be={...{isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:s8,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const l8=/[^ ]+/g;function c8(t=1,e=3){const n=new Map,r=Math.pow(10,e);return{get(o){const i=o.match(l8).length;if(n.has(i))return n.get(i);const a=1/Math.pow(i,.5*t),s=parseFloat(Math.round(a*r)/r);return n.set(i,s),s},clear(){n.clear()}}}class Gh{constructor({getFn:e=be.getFn,fieldNormWeight:n=be.fieldNormWeight}={}){this.norm=c8(n,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Jn(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();Jn(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(e,n){return e[this._keysMap[n]]}size(){return this.records.length}_addString(e,n){if(!an(e)||Kh(e))return;let r={v:e,i:n,n:this.norm.get(e)};this.records.push(r)}_addObject(e,n){let r={i:n,$:{}};this.keys.forEach((o,i)=>{let a=o.getFn?o.getFn(e):this.getFn(e,o.path);if(an(a)){if(vr(a)){let s=[];const l=[{nestedArrIndex:-1,value:a}];for(;l.length;){const{nestedArrIndex:c,value:u}=l.pop();if(an(u))if(Jn(u)&&!Kh(u)){let f={v:u,i:c,n:this.norm.get(u)};s.push(f)}else vr(u)&&u.forEach((f,p)=>{l.push({nestedArrIndex:p,value:f})})}r.$[i]=s}else if(Jn(a)&&!Kh(a)){let s={v:a,n:this.norm.get(a)};r.$[i]=s}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function ew(t,e,{getFn:n=be.getFn,fieldNormWeight:r=be.fieldNormWeight}={}){const o=new Gh({getFn:n,fieldNormWeight:r});return o.setKeys(t.map(Zy)),o.setSources(e),o.create(),o}function u8(t,{getFn:e=be.getFn,fieldNormWeight:n=be.fieldNormWeight}={}){const{keys:r,records:o}=t,i=new Gh({getFn:e,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i}function eu(t,{errors:e=0,currentLocation:n=0,expectedLocation:r=0,distance:o=be.distance,ignoreLocation:i=be.ignoreLocation}={}){const a=e/t.length;if(i)return a;const s=Math.abs(r-n);return o?a+s/o:s?1:a}function d8(t=[],e=be.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let a=t.length;i<a;i+=1){let s=t[i];s&&r===-1?r=i:!s&&r!==-1&&(o=i-1,o-r+1>=e&&n.push([r,o]),r=-1)}return t[i-1]&&i-r>=e&&n.push([r,i-1]),n}const vo=32;function f8(t,e,n,{location:r=be.location,distance:o=be.distance,threshold:i=be.threshold,findAllMatches:a=be.findAllMatches,minMatchCharLength:s=be.minMatchCharLength,includeMatches:l=be.includeMatches,ignoreLocation:c=be.ignoreLocation}={}){if(e.length>vo)throw new Error(r8(vo));const u=e.length,f=t.length,p=Math.max(0,Math.min(r,f));let m=i,v=p;const w=s>1||l,y=w?Array(f):[];let S;for(;(S=t.indexOf(e,v))>-1;){let N=eu(e,{currentLocation:S,expectedLocation:p,distance:o,ignoreLocation:c});if(m=Math.min(N,m),v=S+u,w){let H=0;for(;H<u;)y[S+H]=1,H+=1}}v=-1;let T=[],P=1,E=u+f;const O=1<<u-1;for(let N=0;N<u;N+=1){let H=0,z=E;for(;H<z;)eu(e,{errors:N,currentLocation:p+z,expectedLocation:p,distance:o,ignoreLocation:c})<=m?H=z:E=z,z=Math.floor((E-H)/2+H);E=z;let Q=Math.max(1,p-z+1),U=a?f:Math.min(p+z,f)+u,j=Array(U+2);j[U+1]=(1<<N)-1;for(let X=U;X>=Q;X-=1){let q=X-1,te=n[t.charAt(q)];if(w&&(y[q]=+!!te),j[X]=(j[X+1]<<1|1)&te,N&&(j[X]|=(T[X+1]|T[X])<<1|1|T[X+1]),j[X]&O&&(P=eu(e,{errors:N,currentLocation:q,expectedLocation:p,distance:o,ignoreLocation:c}),P<=m)){if(m=P,v=q,v<=p)break;Q=Math.max(1,2*p-v)}}if(eu(e,{errors:N+1,currentLocation:p,expectedLocation:p,distance:o,ignoreLocation:c})>m)break;T=j}const M={isMatch:v>=0,score:Math.max(.001,P)};if(w){const N=d8(y,s);N.length?l&&(M.indices=N):M.isMatch=!1}return M}function h8(t){let e={};for(let n=0,r=t.length;n<r;n+=1){const o=t.charAt(n);e[o]=(e[o]||0)|1<<r-n-1}return e}const tu=String.prototype.normalize?(t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(t=>t);class tw{constructor(e,{location:n=be.location,threshold:r=be.threshold,distance:o=be.distance,includeMatches:i=be.includeMatches,findAllMatches:a=be.findAllMatches,minMatchCharLength:s=be.minMatchCharLength,isCaseSensitive:l=be.isCaseSensitive,ignoreDiacritics:c=be.ignoreDiacritics,ignoreLocation:u=be.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:a,minMatchCharLength:s,isCaseSensitive:l,ignoreDiacritics:c,ignoreLocation:u},e=l?e:e.toLowerCase(),e=c?tu(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const f=(m,v)=>{this.chunks.push({pattern:m,alphabet:h8(m),startIndex:v})},p=this.pattern.length;if(p>vo){let m=0;const v=p%vo,w=p-v;for(;m<w;)f(this.pattern.substr(m,vo),m),m+=vo;if(v){const y=p-vo;f(this.pattern.substr(y),y)}}else f(this.pattern,0)}searchIn(e){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:o}=this.options;if(e=n?e:e.toLowerCase(),e=r?tu(e):e,this.pattern===e){let w={isMatch:!0,score:0};return o&&(w.indices=[[0,e.length-1]]),w}const{location:i,distance:a,threshold:s,findAllMatches:l,minMatchCharLength:c,ignoreLocation:u}=this.options;let f=[],p=0,m=!1;this.chunks.forEach(({pattern:w,alphabet:y,startIndex:S})=>{const{isMatch:T,score:P,indices:E}=f8(e,w,y,{location:i+S,distance:a,threshold:s,findAllMatches:l,minMatchCharLength:c,includeMatches:o,ignoreLocation:u});T&&(m=!0),p+=P,T&&E&&(f=[...f,...E])});let v={isMatch:m,score:m?p/this.chunks.length:1};return m&&o&&(v.indices=f),v}}class Ur{constructor(e){this.pattern=e}static isMultiMatch(e){return nw(e,this.multiRegex)}static isSingleMatch(e){return nw(e,this.singleRegex)}search(){}}function nw(t,e){const n=t.match(e);return n?n[1]:null}class p8 extends Ur{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class A8 extends Ur{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class g8 extends Ur{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class m8 extends Ur{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class b8 extends Ur{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class v8 extends Ur{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class rw extends Ur{constructor(e,{location:n=be.location,threshold:r=be.threshold,distance:o=be.distance,includeMatches:i=be.includeMatches,findAllMatches:a=be.findAllMatches,minMatchCharLength:s=be.minMatchCharLength,isCaseSensitive:l=be.isCaseSensitive,ignoreDiacritics:c=be.ignoreDiacritics,ignoreLocation:u=be.ignoreLocation}={}){super(e),this._bitapSearch=new tw(e,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:a,minMatchCharLength:s,isCaseSensitive:l,ignoreDiacritics:c,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class ow extends Ur{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,r;const o=[],i=this.pattern.length;for(;(r=e.indexOf(this.pattern,n))>-1;)n=r+i,o.push([r,n-1]);const a=!!o.length;return{isMatch:a,score:a?0:1,indices:o}}}const Jh=[p8,ow,g8,m8,v8,b8,A8,rw],iw=Jh.length,y8=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,w8="|";function x8(t,e={}){return t.split(w8).map(n=>{let r=n.trim().split(y8).filter(i=>i&&!!i.trim()),o=[];for(let i=0,a=r.length;i<a;i+=1){const s=r[i];let l=!1,c=-1;for(;!l&&++c<iw;){const u=Jh[c];let f=u.isMultiMatch(s);f&&(o.push(new u(f,e)),l=!0)}if(!l)for(c=-1;++c<iw;){const u=Jh[c];let f=u.isSingleMatch(s);if(f){o.push(new u(f,e));break}}}return o})}const k8=new Set([rw.type,ow.type]);class S8{constructor(e,{isCaseSensitive:n=be.isCaseSensitive,ignoreDiacritics:r=be.ignoreDiacritics,includeMatches:o=be.includeMatches,minMatchCharLength:i=be.minMatchCharLength,ignoreLocation:a=be.ignoreLocation,findAllMatches:s=be.findAllMatches,location:l=be.location,threshold:c=be.threshold,distance:u=be.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:o,minMatchCharLength:i,findAllMatches:s,ignoreLocation:a,location:l,threshold:c,distance:u},e=n?e:e.toLowerCase(),e=r?tu(e):e,this.pattern=e,this.query=x8(this.pattern,this.options)}static condition(e,n){return n.useExtendedSearch}searchIn(e){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:o,ignoreDiacritics:i}=this.options;e=o?e:e.toLowerCase(),e=i?tu(e):e;let a=0,s=[],l=0;for(let c=0,u=n.length;c<u;c+=1){const f=n[c];s.length=0,a=0;for(let p=0,m=f.length;p<m;p+=1){const v=f[p],{isMatch:w,indices:y,score:S}=v.search(e);if(w){if(a+=1,l+=S,r){const T=v.constructor.type;k8.has(T)?s=[...s,...y]:s.push(y)}}else{l=0,a=0,s.length=0;break}}if(a){let p={isMatch:!0,score:l/a};return r&&(p.indices=s),p}}return{isMatch:!1,score:1}}}const Zh=[];function C8(...t){Zh.push(...t)}function $h(t,e){for(let n=0,r=Zh.length;n<r;n+=1){let o=Zh[n];if(o.condition(t,e))return new o(t,e)}return new tw(t,e)}const nu={AND:"$and",OR:"$or"},ep={PATH:"$path",PATTERN:"$val"},tp=t=>!!(t[nu.AND]||t[nu.OR]),E8=t=>!!t[ep.PATH],P8=t=>!vr(t)&&Xy(t)&&!tp(t),aw=t=>({[nu.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function sw(t,e,{auto:n=!0}={}){const r=o=>{let i=Object.keys(o);const a=E8(o);if(!a&&i.length>1&&!tp(o))return r(aw(o));if(P8(o)){const l=a?o[ep.PATH]:i[0],c=a?o[ep.PATTERN]:o[l];if(!Jn(c))throw new Error(n8(l));const u={keyId:Xh(l),pattern:c};return n&&(u.searcher=$h(c,e)),u}let s={children:[],operator:i[0]};return i.forEach(l=>{const c=o[l];vr(c)&&c.forEach(u=>{s.children.push(r(u))})}),s};return tp(t)||(t=aw(t)),r(t)}function D8(t,{ignoreFieldNorm:e=be.ignoreFieldNorm}){t.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:i,score:a})=>{const s=o?o.weight:null;r*=Math.pow(a===0&&s?Number.EPSILON:a,(s||1)*(e?1:i))}),n.score=r})}function T8(t,e){const n=t.matches;e.matches=[],an(n)&&n.forEach(r=>{if(!an(r.indices)||!r.indices.length)return;const{indices:o,value:i}=r;let a={indices:o,value:i};r.key&&(a.key=r.key.src),r.idx>-1&&(a.refIndex=r.idx),e.matches.push(a)})}function B8(t,e){e.score=t.score}function I8(t,e,{includeMatches:n=be.includeMatches,includeScore:r=be.includeScore}={}){const o=[];return n&&o.push(T8),r&&o.push(B8),t.map(i=>{const{idx:a}=i,s={item:e[a],refIndex:a};return o.length&&o.forEach(l=>{l(i,s)}),s})}class yi{constructor(e,n={},r){this.options={...be,...n},this.options.useExtendedSearch,this._keyStore=new a8(this.options.keys),this.setCollection(e,r)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof Gh))throw new Error(t8);this._myIndex=n||ew(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){an(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let r=0,o=this._docs.length;r<o;r+=1){const i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,o-=1,n.push(i))}return n}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:n=-1}={}){const{includeMatches:r,includeScore:o,shouldSort:i,sortFn:a,ignoreFieldNorm:s}=this.options;let l=Jn(e)?Jn(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return D8(l,{ignoreFieldNorm:s}),i&&l.sort(a),Ky(n)&&n>-1&&(l=l.slice(0,n)),I8(l,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(e){const n=$h(e,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:i,i:a,n:s})=>{if(!an(i))return;const{isMatch:l,score:c,indices:u}=n.searchIn(i);l&&o.push({item:i,idx:a,matches:[{score:c,value:i,norm:s,indices:u}]})}),o}_searchLogical(e){const n=sw(e,this.options),r=(s,l,c)=>{if(!s.children){const{keyId:f,searcher:p}=s,m=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(l,f),searcher:p});return m&&m.length?[{idx:c,item:l,matches:m}]:[]}const u=[];for(let f=0,p=s.children.length;f<p;f+=1){const m=s.children[f],v=r(m,l,c);if(v.length)u.push(...v);else if(s.operator===nu.AND)return[]}return u},o=this._myIndex.records,i={},a=[];return o.forEach(({$:s,i:l})=>{if(an(s)){let c=r(n,s,l);c.length&&(i[l]||(i[l]={idx:l,item:s,matches:[]},a.push(i[l])),c.forEach(({matches:u})=>{i[l].matches.push(...u)}))}}),a}_searchObjectList(e){const n=$h(e,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:a,i:s})=>{if(!an(a))return;let l=[];r.forEach((c,u)=>{l.push(...this._findMatches({key:c,value:a[u],searcher:n}))}),l.length&&i.push({idx:s,item:a,matches:l})}),i}_findMatches({key:e,value:n,searcher:r}){if(!an(n))return[];let o=[];if(vr(n))n.forEach(({v:i,i:a,n:s})=>{if(!an(i))return;const{isMatch:l,score:c,indices:u}=r.searchIn(i);l&&o.push({score:c,key:e,value:i,idx:a,norm:s,indices:u})});else{const{v:i,n:a}=n,{isMatch:s,score:l,indices:c}=r.searchIn(i);s&&o.push({score:l,key:e,value:i,norm:a,indices:c})}return o}}yi.version="7.1.0",yi.createIndex=ew,yi.parseIndex=u8,yi.config=be,yi.parseQuery=sw,C8(S8);function M8({highlight:t,text:e}){if(!t||!t.length)return e;const n=new RegExp(t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"gi"),r=[...e.matchAll(n)];if(!r.length)return e;const o=[];let i=0;for(let a of r)a.index>i&&o.push(e.substr(i,a.index)),o.push(k.jsx("span",{className:"highlight",children:a[0]})),i=a.index+a[0].length;return o.push(e.substr(i)),o}function O8({delay:t=300,placeholder:e,setSearchText:n,width:r="calc(var(--width) / 4)"}){const o=I.useRef(null),i=I.useRef(null),[a,s]=I.useState(""),l=()=>{s(""),n(""),o.current.value="",o.current.focus()};return I.useLayoutEffect(()=>{o.current&&o.current.addEventListener("keyup",()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{i.current=null,n(o.current.value),s(o.current.value)},t)})},[o.current]),k.jsx(k.Fragment,{children:k.jsxs("div",{className:"search",children:[k.jsx("input",{placeholder:e,style:{width:r},ref:o}),a.length?k.jsx("button",{className:"btn btn-clear",title:"Clear search",onClick:l,children:k.jsx(Me,{name:"x-lg"})}):null]})})}const _8=["software_name","software_description","software_web_page","software_documentation","software_use_link","software_versions"];function F8({infoGroupId:t}){const e=It("https://sds-ara-api.access-ci.org/api/v1",{body:JSON.stringify({rps:[t],columns:_8}),headers:{"Content-Type":"application/json","X-API-Key":"asSuQQ0IfIEUrSRTl44aqn2ZpMPpJ_G02BgemAY4WN0"},method:"POST"}),[n,r]=I.useState(""),o=I.useMemo(()=>e?.data&&e.data.length?new yi(e.data,{keys:[{name:"software_name",weight:.6},{name:"software_description",weight:.4}]}):null,[e?.data]);if(!e?.data||!e.data.length)return;const i=p=>k.jsx(M8,{text:p,highlight:n}),c=[{key:"software_name",name:"Package",format:(p,m)=>{const v=i(p),w=m.software_web_page||m.software_documentation,y=m.software_use_link&&m.software_use_link.length?m.software_use_link[0]:"";return k.jsxs("span",{style:{lineHeight:1.3},children:[w?k.jsx("a",{href:w,children:v},"name"):v," ",m.software_documentation&&k.jsx("a",{href:m.software_documentation,title:`Documentation for ${p}`,children:k.jsx(Me,{name:"book"})},"documentation")," ",y&&y!=m.software_documentation&&k.jsx("a",{href:y,title:`Usage example for ${p}`,children:k.jsx(Me,{name:"terminal"})},"use")]})}},{key:"software_versions",name:"Versions",format:(p,m)=>m.rps[t].software_versions.join(", ")},{key:"software_description",name:"Description",format:(p,m)=>{const v=/Description Source:[ ]+(http[^ ]+)/,w=p.match(v);return k.jsxs(k.Fragment,{children:[i(p.replace(v,""))," ",w?k.jsx("a",{href:w[1],title:`Description source for ${m.software_name}`,children:k.jsx(Me,{name:"info-circle"})}):null]})}}],u=n.length?o.search(n).map(p=>p.item):e.data,f=[k.jsx(O8,{placeholder:"Search software packages...",setSearchText:r},"search")];return k.jsx(jn,{title:"Software",icon:"terminal",headerComponents:f,children:k.jsx(dc,{columns:c,rows:u,scrollResetOnUpdate:!0})})}function R8({prompt:t="Jump To:"}){const[e,n]=I.useState([]),r=I.useRef(null),o=()=>{const a=[];for(let s of r.current.querySelectorAll("[data-section-title]"))a.push({icon:s.dataset.sectionIcon,id:s.id,title:s.dataset.sectionTitle});n(a)},i=a=>{const s=r.current.querySelector(`#${a}`);s&&s.scrollIntoView()};return I.useEffect(()=>{r.current&&(o(),document.addEventListener("accessci-update-sections",o))},[r.current]),k.jsx("div",{ref:a=>r.current=a?.parentElement,children:e.length>=2?k.jsxs("nav",{className:"section-navigation",children:[t?k.jsx("h2",{children:t}):null,k.jsx("ul",{children:e.map(({icon:a,id:s,title:l})=>k.jsx("li",{children:k.jsxs("a",{href:`#${s}`,onClick:c=>{c.preventDefault(),i(s)},children:[a?k.jsxs(k.Fragment,{children:[k.jsx(Me,{name:a})," "]}):null,l]})},s))})]}):null})}function L8({baseUri:t,showBreadcrumbs:e=!0}){const{infoGroupId:n}=gx(),r=ka(n),o=[{name:"Resources",href:t}];return r&&o.push({name:r.name}),k.jsxs(k.Fragment,{children:[e&&k.jsx(vd,{expandWidth:!0,items:o,topBorder:!0}),k.jsxs("div",{className:"resource-group-detail",children:[k.jsx(mE,{infoGroupId:n}),k.jsx(R8,{}),k.jsx(lD,{infoGroupId:n}),k.jsx(tD,{infoGroupId:n}),k.jsx(iD,{infoGroupId:n}),k.jsx(gE,{infoGroupId:n}),k.jsx(F8,{infoGroupId:n}),k.jsx(ZD,{infoGroupId:n}),k.jsx(G3,{infoGroupId:n}),k.jsx(yE,{infoGroupId:n})]})]})}const N8=Object.freeze(Object.defineProperty({__proto__:null,default:L8},Symbol.toStringTag,{value:"Module"})),z8={"ACCESS Pegasus":"https://pegasus.isi.edu/wordpress/wp-content/uploads/2016/01/favicon.ico","ACCESS OnDemand":"https://openondemand.org/themes/fire/theme/assets/media/favicons/favicon.ico","Advance reservations":"calendar-check","Composable hardware fabric":"boxes","Compute Resources":"cpu-fill","CPU Compute":"cpu-fill","GPU Compute":"cpu","Innovative / Novel Compute":"lightbulb","Large Memory Nodes":"arrows-fullscreen",Preemption:"clock-history","Science Gateway support":"globe","Service / Other":"stars","Storage Resources":"hdd-fill","Virtual Machines":"pc-display-horizontal",Cloud:"cloud",Storage:"hdd-fill"};function lw({active:t,tagCategory:e,tagId:n,iconUri:r,name:o,toggleTag:i}){const a=r||z8[o]||"tag";return k.jsx("li",{className:`tag tag-category-${e.name.toLowerCase().replace(/[^a-z]+/g,"-")}${t.tagIds.has(n)?" active":""}`,children:k.jsxs("button",{href:"#",disabled:t.disabledTagIds.has(n),onClick:s=>{s.preventDefault(),i(n)},children:[a.startsWith("http")?k.jsx(Me,{alt:o,src:a}):k.jsx(Me,{name:a}),o]})})}function cw({children:t}){return k.jsx("ul",{className:"tags",children:t})}function Q8({active:t,baseUri:e,description:n,imageType:r,imageUri:o,name:i,infoGroupId:a,parentInfoGroupId:s,tags:l,toggleTag:c}){const u=`${e}/${s||a}`;return k.jsxs("div",{className:"resource-group",children:[k.jsx("a",{className:`resource-group-image image-type-${r}`,href:u,children:o?k.jsx("img",{src:o}):k.jsx(Me,{name:"motherboard"})}),k.jsxs("div",{className:"resource-group-text",children:[k.jsx("h3",{children:k.jsx("a",{href:u,children:i})}),k.jsx(cw,{children:l.map(f=>k.jsx(lw,{...f,active:t,toggleTag:c},f.tagId))}),k.jsxs("p",{children:[n&&n,k.jsx("br",{}),k.jsxs("a",{href:u,children:["Learn more about ",i," »"]})]})]})]})}function H8({active:t,baseUri:e,name:n,resourceGroups:r,toggleTag:o}){return k.jsxs(k.Fragment,{children:[k.jsx("h2",{children:n}),r.filter(({infoGroupId:i})=>t.infoGroupIds.has(i)).map(i=>k.jsx(Q8,{...i,baseUri:e,active:t,toggleTag:o},i.infoGroupId))]})}function U8({active:t,clearTags:e,tagCategories:n,toggleTag:r}){const[o,i]=I.useState(!1),a=I.useRef(null);return I.useEffect(()=>{const s=()=>i(!1);return document.body.addEventListener("click",s),()=>document.body.removeEventListener("click",s)},[]),k.jsxs("section",{className:"filters-outer",onClick:s=>{s.stopPropagation()},children:[k.jsxs("button",{ref:a,onClick:()=>i(!o),className:`btn-filters btn ${o?"active":""}`,children:[k.jsx(Me,{name:"filter"})," Filters",t.tagIds.size>0?k.jsx("span",{className:"active-tag-count",children:t.tagIds.size}):null]}),o?k.jsxs("div",{className:"filters-inner",children:[n.map(s=>k.jsxs(k.Fragment,{children:[k.jsx("h2",{children:s.name}),k.jsx(cw,{children:s.tags.map(l=>k.jsx(lw,{...l,active:t,toggleTag:r}))})]})),k.jsxs("button",{onClick:e,disabled:t.tagIds.size==0,className:"btn danger",children:[k.jsx(Me,{name:"trash"})," Clear Filters"]})]}):null]})}function j8({setBotOpen:t}){const e=I.useRef(null),n=[{title:"Browse resources",icon:"filter-square",description:"Filter resources to find the best match for your research.",onClick:r=>{r.preventDefault(),e.current&&e.current.nextSibling.scrollIntoView({bahavior:"smooth"})}},{title:"Ask a question",icon:"question-circle",onClick:r=>{r.preventDefault(),t(!0)},description:"You have resource questions. Our Q&A bot has answers!",login:!0},{title:"Get suggestions",icon:"card-checklist",href:"https://ara.access-ci.org/",description:"Fill out a form to get resource recommendations."},{title:"Read news",icon:"newspaper",href:"https://access-ci.org/tag/resource-providers/",description:"See the latest news from resource providers."}];return k.jsxs("section",{id:"resource-pathways",ref:e,children:[k.jsxs("p",{className:"intro",children:["ACCESS provides advanced computing resources ",k.jsx("strong",{children:"at no cost"})," ","to researchers and educators."]}),k.jsx("ul",{className:"resource-pathways",children:n.map(({title:r,icon:o,href:i,description:a,login:s,onClick:l},c)=>k.jsx("li",{className:`resource-pathway-${c}`,children:k.jsxs("a",{href:i||"#",onClick:l,children:[o?k.jsx(Me,{name:o}):null," ",k.jsxs("span",{className:"detail",children:[k.jsx("span",{className:"title",children:r}),k.jsx("span",{className:"description",children:a}),s?k.jsxs("span",{className:"login",children:[k.jsx(Me,{name:"key"})," Requires ACCESS Login"]}):null]})]})},r))})]})}function W8({baseUri:t,title:e,setBotOpen:n,showBreadcrumbs:r=!0,showTitle:o=!0}){const[i,a]=I.useState([]),s=GA(),l=I.useMemo(()=>s?Ew(s,i):null,[s,i]),c=f=>a(i.includes(f)?i.filter(p=>p!=f):[...i,f]),u=()=>a([]);return k.jsxs(k.Fragment,{children:[r&&k.jsx(vd,{expandWidth:!0,items:[{name:"Resources"}],topBorder:!0}),e&&k.jsx("h1",{className:o?"":"visually-hidden",children:e}),k.jsx(j8,{setBotOpen:n}),k.jsxs("div",{id:"browse-resources",children:[l?k.jsx(U8,{tagCategories:s.tagCategories,active:l,clearTags:u,toggleTag:c}):null,s?s.resourceCategories.filter(({resourceCategoryId:f})=>l.resourceCategoryIds.has(f)).map(f=>k.jsx(H8,{...f,active:l,baseUri:t,clearTags:u,toggleTag:c},f.name)):null]})]})}const V8=Object.freeze(Object.defineProperty({__proto__:null,default:W8},Symbol.toStringTag,{value:"Module"}));mt.Breadcrumbs=x1,mt.Footer=k1,mt.FooterMenus=S1,mt.Header=C1,mt.QABot=E1,mt.ResourceCatalog=P1,mt.SiteMenus=D1,mt.TableOfContents=T1,mt.UniversalMenus=B1,Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"})}));
|