@cimulate/copilot-widget 1.7.9 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cimulate-copilot-widget.css +1 -1
- package/dist/cimulate-copilot-widget.d.ts +76 -26
- package/dist/cimulate-copilot-widget.es.js +26344 -25277
- package/dist/cimulate-copilot-widget.umd.js +33 -33
- package/dist/copilot.css +1 -0
- package/dist/copilot.d.ts +20 -0
- package/dist/copilot.es.js +37355 -0
- package/dist/copilot.umd.js +46 -0
- package/dist/messaging.css +1 -0
- package/dist/messaging.d.ts +324 -0
- package/dist/messaging.es.js +34481 -0
- package/dist/messaging.umd.js +52 -0
- package/package.json +30 -5
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
(function(Ie,Be){typeof exports=="object"&&typeof module!="undefined"?Be(exports):typeof define=="function"&&define.amd?define(["exports"],Be):(Ie=typeof globalThis!="undefined"?globalThis:Ie||self,Be(Ie.CimulateMessaging={}))})(this,(function(Ie){"use strict";var RM=Object.defineProperty,LM=Object.defineProperties;var DM=Object.getOwnPropertyDescriptors;var Pc=Object.getOwnPropertySymbols;var C_=Object.prototype.hasOwnProperty,v_=Object.prototype.propertyIsEnumerable;var bs=(Ie,Be)=>(Be=Symbol[Ie])?Be:Symbol.for("Symbol."+Ie),MM=Ie=>{throw TypeError(Ie)},Za=Math.pow,em=(Ie,Be,We)=>Be in Ie?RM(Ie,Be,{enumerable:!0,configurable:!0,writable:!0,value:We}):Ie[Be]=We,U=(Ie,Be)=>{for(var We in Be||(Be={}))C_.call(Be,We)&&em(Ie,We,Be[We]);if(Pc)for(var We of Pc(Be))v_.call(Be,We)&&em(Ie,We,Be[We]);return Ie},re=(Ie,Be)=>LM(Ie,DM(Be));var Zt=(Ie,Be)=>{var We={};for(var nt in Ie)C_.call(Ie,nt)&&Be.indexOf(nt)<0&&(We[nt]=Ie[nt]);if(Ie!=null&&Pc)for(var nt of Pc(Ie))Be.indexOf(nt)<0&&v_.call(Ie,nt)&&(We[nt]=Ie[nt]);return We};var Ne=(Ie,Be,We)=>em(Ie,typeof Be!="symbol"?Be+"":Be,We);var et=(Ie,Be,We)=>new Promise((nt,Et)=>{var dt=Tt=>{try{Pt(We.next(Tt))}catch(sn){Et(sn)}},Pe=Tt=>{try{Pt(We.throw(Tt))}catch(sn){Et(sn)}},Pt=Tt=>Tt.done?nt(Tt.value):Promise.resolve(Tt.value).then(dt,Pe);Pt((We=We.apply(Ie,Be)).next())}),so=function(Ie,Be){this[0]=Ie,this[1]=Be},tm=(Ie,Be,We)=>{var nt=(Pe,Pt,Tt,sn)=>{try{var ao=We[Pe](Pt),_s=(Pt=ao.value)instanceof so,Rc=ao.done;Promise.resolve(_s?Pt[0]:Pt).then($n=>_s?nt(Pe==="return"?Pe:"next",Pt[1]?{done:$n.done,value:$n.value}:$n,Tt,sn):Tt({value:$n,done:Rc})).catch($n=>nt("throw",$n,Tt,sn))}catch($n){sn($n)}},Et=Pe=>dt[Pe]=Pt=>new Promise((Tt,sn)=>nt(Pe,Pt,Tt,sn)),dt={};return We=We.apply(Ie,Be),dt[bs("asyncIterator")]=()=>dt,Et("next"),Et("throw"),Et("return"),dt},nm=Ie=>{var Be=Ie[bs("asyncIterator")],We=!1,nt,Et={};return Be==null?(Be=Ie[bs("iterator")](),nt=dt=>Et[dt]=Pe=>Be[dt](Pe)):(Be=Be.call(Ie),nt=dt=>Et[dt]=Pe=>{if(We){if(We=!1,dt==="throw")throw Pe;return Pe}return We=!0,{done:!1,value:new so(new Promise(Pt=>{var Tt=Be[dt](Pe);Tt instanceof Object||MM("Object expected"),Pt(Tt)}),1)}}),Et[bs("iterator")]=()=>Et,nt("next"),"throw"in Be?nt("throw"):Et.throw=dt=>{throw dt},"return"in Be&&nt("return"),Et},k_=(Ie,Be,We)=>(Be=Ie[bs("asyncIterator")])?Be.call(Ie):(Ie=Ie[bs("iterator")](),Be={},We=(nt,Et)=>(Et=Ie[nt])&&(Be[nt]=dt=>new Promise((Pe,Pt,Tt)=>(dt=Et.call(Ie,dt),Tt=dt.done,Promise.resolve(dt.value).then(sn=>Pe({value:sn,done:Tt}),Pt)))),We("next"),We("return"),Be);var Be=document.createElement("style");Be.textContent=`.cim-widget-icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;background-color:transparent;border:1px solid transparent;border-radius:4px;padding:0;cursor:pointer;color:#333;font-size:18px;svg{padding:6px;height:100%;width:100%}&:hover{background-color:#f0f0f0}&:disabled,&[disabled]{opacity:.6;background-color:#f9f9f9;cursor:not-allowed}}.cim-widget-icon-image{object-fit:contain;padding:6px;width:.875em;height:.875em}.cim-widget-minimized-container{--base-color: var(--cim-widget-primary-color, #3182ce);--base-color-darken: color-mix(in srgb, var(--base-color), black 20%);position:fixed;bottom:1rem;right:1rem;display:flex;align-items:center;justify-content:center;.cim-widget-minimized-button{height:3rem;width:3rem;border-radius:2rem;padding:.5rem;color:#fff;box-shadow:0 4px 6px #00000040,0 1px 3px #00000050;background-color:var(--base-color);transition:background-color .1s ease-in-out;&:active{transform:translateY(1px);box-shadow:0 4px 6px #00000020,0 1px 3px #00000030}&:hover{background-color:var(--base-color-darken)}}.cim-widget-minimized-icon-img{object-fit:contain;width:stretch;height:stretch}}.cim-widget-button{--base-color: var(--cim-widget-primary-color, #3182ce);padding:.25rem .5rem;min-height:32px;background-color:var(--base-color);border-radius:4px;border-color:var(--base-color);border-style:solid;color:#fff;font-family:var(--cim-widget-font-family, inherit);cursor:pointer;&:disabled,&[disabled]{cursor:not-allowed;opacity:.6}&:hover{background-color:color-mix(in srgb,var(--base-color),black 20%);border-color:color-mix(in srgb,var(--base-color),black 20%)}&:focus-visible{outline:2px solid color-mix(in srgb,var(--base-color),white 25%)}}.cim-widget-disclaimer{display:flex;flex-direction:column;padding:0 .5rem .5rem;gap:.5rem}.cim-widget-disclaimer-text{font-size:.75rem;color:#00000090;margin:0}.cim-widget-disclaimer-image{object-fit:contain;height:100%;width:100%}.cim-widget-search-bar-wrapper{display:flex;flex-direction:column;padding:.5rem;gap:.5rem;&.with-attachments{border-top:1px solid var(--cim-widget-border-color)}}.cim-widget-search-bar{display:flex;align-items:center;gap:4px;font-family:var(--cim-widget-font-family)}.cim-widget-image-file-preview{display:inline-flex;align-items:center;gap:8px;padding-left:.5rem}.cim-widget-image-preview{object-fit:contain;max-height:2.5rem;&.modal{max-height:3.5rem}}.cim-widget-image-file-name{width:100%;font-size:.8rem;color:#00000090;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;line-clamp:3;overflow:hidden}.cim-widget-close-button.clear-attachment{padding:.15rem;color:#00000090}.cim-widget-search-input{width:100%;height:100%;min-height:2rem;padding:0 8px;background-color:transparent;border:1px solid #00000040;border-radius:4px}.cim-widget-connection-status-icon{display:inline-block;min-width:8px;width:.6rem;height:.5rem;border-radius:50%;margin:.35rem;vertical-align:middle;&.connected{background-color:#00d60080}&.disconnected{background-color:#c9c7c7}}.cim-widget-image-upload-button{display:inline-flex;height:100%;border-radius:4px;cursor:pointer;&:hover{background-color:#f0f0f0}&.disabled{opacity:.6;background-color:#f9f9f9;cursor:not-allowed}}.cim-widget-image-upload-label{display:inline-flex;justify-content:center;align-items:center;padding:8px;margin-bottom:0;cursor:pointer;&.disabled{cursor:not-allowed}}.cim-widget-search-button{display:inline-flex;align-items:center;white-space:nowrap;gap:.25rem}.cim-widget-search-button-icon{--base-color: var(--cim-widget-primary-color, #3182ce);background-color:var(--base-color);border-color:var(--base-color);color:#fff;&:disabled,&[disabled]{background-color:var(--base-color);border-color:var(--base-color);opacity:.6}&:hover{background-color:color-mix(in srgb,var(--base-color),black 20%);border-color:color-mix(in srgb,var(--base-color),black 20%)}}.cim-widget-search-button-icon-image{object-fit:contain;width:1.25em;height:1.25em}.cim-widget-file-input{display:none}.cim-widget-escalate-btn{display:inline-flex;align-items:center;justify-content:center;padding:6px;border:none;border-radius:4px;background:transparent;color:var(--cim-widget-primary-color, #6b7280);cursor:pointer;transition:background-color .15s ease,color .15s ease}.cim-widget-escalate-btn:hover:not(:disabled){background-color:#f3f4f6;color:var(--cim-widget-primary-color, #3182ce)}.cim-widget-escalate-btn:disabled{opacity:.4;cursor:not-allowed}.cim-widget-overflow-menu{position:relative;height:auto;width:auto}.cim-widget-overflow-menu-list{width:130px;background:#fff;padding:.25rem 0;border-radius:.5rem;border:1px solid var(--cim-widget-border-color)}.cim-widget-overflow-menu-button-trigger,.cim-widget-overflow-menu-button{display:inline-flex;align-items:center;width:100%;background-color:#fff;border:1px solid transparent;border-radius:4px;cursor:pointer;color:#333;&:hover{background-color:#f0f0f0}}.cim-widget-overflow-menu-button{gap:.5rem;padding:.5rem .75rem;svg{font-size:.75rem}}.cim-widget-carousel{position:relative;width:100%}.cim-widget-carousel__item-group{padding:4px 0;justify-content:flex-start}.cim-widget-carousel__item{flex-shrink:0;>*{height:100%}}.cim-widget-carousel__control{position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);display:flex;justify-content:space-between;pointer-events:none;padding:0 4px}.cim-widget-carousel__prev-trigger,.cim-widget-carousel__next-trigger{pointer-events:auto;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;border:1px solid var(--cim-widget-border-color, #d1d5db);background-color:var(--cim-widget-background-color, #ffffff);color:var(--cim-widget-font-color, #3f3f46);cursor:pointer;box-shadow:0 1px 3px #0000001a;transition:background-color .15s ease,box-shadow .15s ease}.cim-widget-carousel__prev-trigger:hover,.cim-widget-carousel__next-trigger:hover{background-color:#f9fafb;box-shadow:0 2px 6px #0000001f}.cim-widget-carousel__prev-trigger:disabled,.cim-widget-carousel__next-trigger:disabled{opacity:.4;cursor:not-allowed}.cim-widget-carousel__indicator-group{display:flex;justify-content:center;gap:6px;padding-top:12px}.cim-widget-carousel__indicator{width:8px;height:8px;border-radius:50%;border:none;background-color:var(--cim-widget-border-color, #d1d5db);cursor:pointer;padding:0;transition:background-color .2s ease,transform .2s ease}.cim-widget-carousel__indicator[data-current]{background-color:var(--cim-widget-font-color, #1a202c);transform:scale(1.25)}.cim-widget-carousel__indicator:hover:not([data-current]){background-color:var(--cim-widget-font-color, #1a202c);opacity:.5}.cim-widget-close-button{display:flex;align-items:center;justify-content:center;padding:.5rem;border-radius:4px;border:1px solid transparent;background-color:transparent;cursor:pointer;&:hover{background-color:#f0f0f0}}.cim-widget-clear-chat-icon-button{min-height:32px}.cim-widget-toggle-modal-button.dialog{display:none}@media(min-width:576px){.cim-widget-toggle-modal-button.dialog{display:inline-flex}}.cim-widget-blinking-cursor{display:inline-flex;margin-left:2px;line-height:0;animation:cursor-blink 1.5s steps(2) infinite}@keyframes cursor-blink{0%{opacity:0}}.cim-widget-ul{list-style-type:disc;padding-left:1.5rem}.cim-widget-ol{list-style-type:decimal;padding-left:1.5rem}.cim-widget-table-container{margin-top:1rem;margin-bottom:1rem;margin-right:.5rem;overflow-x:auto}.cim-widget-table{border-radius:.5rem;border-width:1px;border-style:solid;border-color:var(--cim-widget-border-color);border-collapse:collapse;width:100%}.cim-widget-thead{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-secondary-color) 5%,transparent);border-bottom-width:2px;border-color:var(--cim-widget-border-color)}.cim-widget-tbody{border-width:0px;box-sizing:border-box;background-color:#ffffff90;overflow-wrap:break-word}.cim-widget-tr{border-style:solid;border-bottom-width:1px;border-color:var(--cim-widget-border-color)}.cim-widget-th{padding:.5rem 1rem;text-align:left;font-weight:700;border-bottom-width:1px;border-color:var(--cim-widget-border-color)}.cim-widget-td{padding:.5rem 1rem;border-bottom-width:1px;border-color:var(--cim-widget-border-color)}.cim-widget-message-container pre{margin:0}.cim-widget-connecting-indicator{--cim-loader-color: var(--cim-widget-primary-color);--cim-loader-size: 8px;--cim-loader-speed: 1.4s;--cim-loader-gap: .5rem;display:flex;align-items:center;gap:var(--cim-loader-gap)}.cim-widget-connecting-indicator.embedded{padding:12px 4px}.cim-widget-connecting-indicator.standalone{padding:12px 1rem}.cim-widget-connecting-pulse-wrapper{position:relative;width:calc(var(--cim-loader-size) * 2);height:calc(var(--cim-loader-size) * 2);display:flex;align-items:center;justify-content:center}.cim-widget-connecting-pulse{width:var(--cim-loader-size);height:var(--cim-loader-size);border-radius:50%;background-color:var(--cim-loader-color);animation:cim-widget-pulse var(--cim-loader-speed) ease-in-out infinite}.cim-widget-connecting-ring{position:absolute;width:var(--cim-loader-size);height:var(--cim-loader-size);border-radius:50%;border:1.5px solid var(--cim-loader-color);animation:cim-widget-ring-expand var(--cim-loader-speed) ease-out infinite}.cim-widget-connecting-text{font-size:12px;color:var(--cim-widget-font-color);font-family:var(--cim-widget-font-family, inherit);opacity:0;transform:translateY(4px);transition:opacity .4s ease,transform .4s ease}.cim-widget-connecting-text--visible{opacity:1;transform:translateY(0)}@keyframes cim-widget-pulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.6);opacity:.4}}@keyframes cim-widget-ring-expand{0%{transform:scale(1);opacity:.6}to{transform:scale(2.8);opacity:0}}@media(prefers-reduced-motion:reduce){.cim-widget-connecting-pulse,.cim-widget-connecting-ring{animation:none!important}.cim-widget-connecting-pulse{opacity:.6}.cim-widget-connecting-text{animation:none!important;transition:none!important}}.cim-widget-processing-indicator{--cim-loader-color: var(--cim-widget-primary-color);--cim-loader-speed: 1.8s;display:flex;flex-direction:column;gap:8px}.cim-widget-processing-indicator.embedded{max-width:80%;padding:1rem;border-radius:8px;background-color:color-mix(in hsl decreasing hue,var(--cim-widget-secondary-color) 5%,transparent)}.cim-widget-processing-indicator.standalone{padding:0 1rem}.cim-widget-processing-shimmer-bar{height:10px;border-radius:4px;background:linear-gradient(90deg,var(--cim-widget-border-color) 25%,color-mix(in srgb,var(--cim-loader-color) 15%,var(--cim-widget-background-color)) 50%,var(--cim-widget-border-color) 75%);background-size:200% 100%;animation:cim-widget-shimmer var(--cim-loader-speed) ease-in-out infinite}.cim-widget-processing-shimmer-bar:nth-child(2){width:75%;animation-delay:.15s}.cim-widget-processing-shimmer-bar:nth-child(3){width:50%;animation-delay:.3s}@keyframes cim-widget-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}@media(prefers-reduced-motion:reduce){.cim-widget-processing-shimmer-bar{animation:none!important;background:var(--cim-widget-border-color)!important}}.cim-widget-msg-product-card{display:flex;flex-direction:column;width:180px;min-width:180px;height:100%;background-color:var(--cim-widget-background-color, #ffffff);border:1px solid var(--cim-widget-border-color, #d1d5db);border-radius:4px;overflow:hidden;transition:box-shadow .2s ease}.cim-widget-msg-product-card:hover{box-shadow:0 2px 8px #0000001f}.cim-widget-msg-product-card__image-wrapper{position:relative;width:100%;height:100%;aspect-ratio:1 / 1;overflow:hidden;background-color:#f9fafb}.cim-widget-msg-product-card__image{width:100%;height:100%;object-fit:contain;display:block}.cim-widget-msg-product-card__content{display:flex;flex-direction:column;justify-content:space-between;gap:8px;padding:12px;height:40%}.cim-widget-msg-product-card__title,.cim-widget-msg-product-card__title-link{font-family:var(--cim-widget-font-family, "Inter", sans-serif);font-weight:600;font-size:14px;line-height:1.3;letter-spacing:-.3px;color:var(--cim-widget-font-color, #3f3f46);margin:0;display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cim-widget-msg-product-card__title-link{text-decoration:none}.cim-widget-msg-product-card__title-link:hover{text-decoration:underline}.cim-widget-msg-product-card__price-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.cim-widget-msg-product-card__prices{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}.cim-widget-msg-product-card__price{font-family:var(--cim-widget-font-family, "Inter", sans-serif);font-weight:600;font-size:14px;line-height:1.2;letter-spacing:-.3px;color:var(--cim-widget-font-color, #3f3f46)}.cim-widget-msg-product-card__compare-price{font-family:var(--cim-widget-font-family, "Inter", sans-serif);font-weight:400;font-size:13px;line-height:1.2;color:var(--cim-widget-font-color, #3f3f46);opacity:.6;text-decoration:line-through}.cim-widget-msg-product-card__add-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;border:none;border-radius:4px;background-color:var(--cim-widget-primary-color, #141415);color:#fff;cursor:pointer;transition:opacity .15s ease}.cim-widget-msg-product-card__add-btn:hover{opacity:.85}.cim-widget-msg-product-card__add-btn svg{width:14px;height:14px}.cim-widget-message-group,.cim-widget-message{display:flex;flex-direction:column}.cim-widget-message-group{gap:.5rem;padding:1rem;margin-bottom:1rem;border-radius:8px;&.standalone{padding:0 1rem}.cim-widget-message-group-child{max-width:100%;margin-bottom:.25rem}}.cim-widget-message-group.embedded{max-width:80%;background-color:color-mix(in hsl decreasing hue,var(--cim-widget-secondary-color) 5%,transparent)}.cim-widget-message{margin-bottom:1rem}.cim-widget-message.standalone{border-radius:0;background-color:transparent;padding:0 1rem}.cim-widget-message.embedded{margin-bottom:1rem}.message{border-radius:.5rem}.widget-message{display:flex;align-self:flex-start}.user-message{display:flex;align-self:flex-end;padding:1rem}.cim-widget-reset-message{font-size:.75rem;font-style:italic;color:color-mix(in hsl decreasing hue,var(--cim-widget-font-color) 75%,white)}.cim-widget-start-search-message{font-size:.875rem;font-weight:700;color:var(--cim-widget-font-color)}.cim-widget-user-message{display:flex;flex-direction:column;gap:.5rem;.cim-widget-user-message-row{display:inline-flex;align-items:center;gap:.5rem}}.cim-widget-user-message.embedded{display:inline-flex;align-self:flex-end;border-radius:8px;padding:.5rem 1rem;background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 10%,transparent);max-width:80%;min-width:50%}.cim-widget-user-message.standalone{margin:.5rem 0}.cim-widget-user-message-image{object-fit:contain;border-radius:8px;&.embedded{max-height:2.5rem}&.standalone{max-height:3.5rem}}.cim-widget-user-message-text{font-weight:700}.cim-widget-user-message-text.standalone{font-size:1.125rem;margin:0}.cim-widget-user-message-text.embedded{margin:0}.cim-widget-message-icon.user-message-icon.embedded{color:var(--cim-widget-primary-color)}.cim-widget-message-group-child{display:flex;flex-direction:column;gap:.25rem}.cim-widget-embedded-chat{position:relative;width:100%;height:100%;margin:0 auto;border-radius:8px;border:1px solid var(--cim-widget-border-color)}.cim-widget-embedded-chat>.cim-widget-message-container{padding-top:2rem;padding-left:1rem;padding-right:1rem}.cim-widget-embedded-chat-menu{position:absolute;top:.25rem;right:.25rem}.cim-widget-overflow-menu-button-trigger.chat{border:1px solid var(--cim-widget-border-color)}.cim-widget-left-right-toggle-button{display:none}@media(min-width:576px){.cim-widget-left-right-toggle-button{display:inline-flex}}.cim-widget-dialog{position:fixed;width:35dvw;height:55dvh;border-radius:.5rem;border:1px solid var(--cim-widget-border-color);font-size:.875rem;z-index:9999;&.bottom-left{bottom:.5rem;left:.5rem}&.bottom-right{bottom:.5rem;right:.5rem}}.cim-widget-dialog-content{display:flex;flex-direction:column;height:100%}.cim-widget-dialog-header{display:inline-flex;align-items:center;padding:1rem 1rem 0;margin-bottom:.5rem;gap:8px}.cim-widget-dialog-controls{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center}.cim-widget-dialog-logo{object-fit:contain;max-width:50%;max-height:3rem}.cim-widget-dialog-title{margin-top:0;margin-bottom:0}@media(576px<=width<=768px){.cim-widget-dialog{width:50%}}@media(max-width:576px){.cim-widget-dialog{height:100%;width:100%;border-radius:0;&.bottom-left{bottom:0;left:0}&.bottom-right{bottom:0;right:0}}}.cim-widget-modal-container{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;height:100dvh;width:100dvw;z-index:9999}.cim-widget-modal-backdrop{position:absolute;top:0;left:0;height:100%;width:100%;background:#00000080}.cim-widget-modal{position:fixed;width:70dvw;height:80dvh;border-radius:.5rem;border:1px solid var(--cim-widget-border-color);overflow-y:hidden;&.fullscreen{height:100%;width:100%;border-radius:0}}.cim-widget-modal-content{display:flex;flex-direction:column;height:100%}.cim-widget-modal-header{display:inline-flex;align-items:center;padding:1rem 1rem 0;margin-bottom:1rem;gap:8px}.cim-widget-modal-controls{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center}.cim-widget-modal-logo{object-fit:contain;max-width:50%;max-height:3rem}.cim-widget-modal-title{margin-top:0;margin-bottom:0}.cim-widget-modal-fullscreen-button,.cim-widget-modal-toggle-dialog-button{display:none}@media(max-width:576px){.cim-widget-modal{height:100%;width:100%;border-radius:0}}@media(min-width:576px){.cim-widget-modal-fullscreen-button,.cim-widget-modal-toggle-dialog-button{display:inline-flex}}.cim-widget-container{box-sizing:border-box;display:flex;flex-direction:column;background-color:var(--cim-widget-background-color);font-family:var(--cim-widget-font-family, inherit);color:var(--cim-widget-font-color, inherit)}.cim-widget-message-container p{margin:.25rem 0;padding:0;+p{margin-top:.5rem}}.cim-widget-message-container span{line-height:1}.cim-widget-header{font-weight:700;color:inherit}.cim-widget-header.h1{margin-top:2rem;margin-bottom:2rem;font-size:1rem}.cim-widget-header.h2{margin-top:1.5rem;margin-bottom:1.5rem;font-size:1rem}.cim-widget-header.h3{margin-top:1rem;margin-bottom:1rem;font-size:1rem}.cim-widget-link{color:var(--cim-widget-primary-color);text-decoration:underline;cursor:pointer}.cim-widget-link:hover{color:var(--cim-widget-secondary-color);text-decoration:none}.cim-widget-text{line-height:1.5;color:inherit;margin-bottom:.25rem}.cim-widget-text.italic{font-style:italic}.cim-widget-text.bold{font-weight:700}.cim-widget-message-container{flex:1;overflow-y:auto;padding:1rem}.cim-widget-message-icon{display:inline-flex;align-items:center;margin-right:.25rem}.cim-widget-message-icon.embedded{font-size:1rem;color:var(--cim-widget-secondary-color)}.cim-widget-message-icon.standalone{font-size:1.5rem;color:var(--cim-widget-primary-color)}.cim-widget-suggestion-container.embedded{display:inline-flex;flex-wrap:wrap;gap:.5rem}.cim-widget-suggestion-button.embedded{height:auto;padding:.2rem .5rem;border:1px solid var(--cim-widget-primary-color);border-radius:4px;background-color:transparent;font-size:.875rem;font-weight:600;font-family:inherit;color:var(--cim-widget-primary-color);white-space:normal;word-break:break-word;text-align:left;cursor:pointer}.cim-widget-suggestion-button.embedded:hover{background-color:#fff;color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}.cim-widget-suggestion-container.standalone{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.5rem;padding:.5rem 0}@media(max-width:768px){.cim-widget-suggestion-container.standalone{grid-template-columns:repeat(1,1fr)}}.cim-widget-suggestion-button.standalone{display:inline-flex;align-items:center;padding:.5rem 1rem;border:1px solid var(--cim-widget-primary-color);background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 5%,transparent);font-weight:700;color:var(--cim-widget-primary-color);text-align:left;white-space:normal;word-break:break-word}.cim-widget-suggestion-button.standalone:hover{background-color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 15%,transparent);color:color-mix(in hsl decreasing hue,var(--cim-widget-primary-color) 85%,black)}.cim-widget-suggestion-button:disabled{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a;cursor:not-allowed}.cim-widget-suggestion-button:disabled:hover{border-color:#8a8a8a;background-color:#f9f9f9;color:#8a8a8a}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(Be);function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nt={exports:{}},Et={},dt={exports:{}},Pe={};var Pt;function Tt(){if(Pt)return Pe;Pt=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function b(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function A(D,Q,N){this.props=D,this.context=Q,this.refs=S,this.updater=N||T}A.prototype.isReactComponent={},A.prototype.setState=function(D,Q){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,Q,"setState")},A.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function v(){}v.prototype=A.prototype;function I(D,Q,N){this.props=D,this.context=Q,this.refs=S,this.updater=N||T}var k=I.prototype=new v;k.constructor=I,x(k,A.prototype),k.isPureReactComponent=!0;var M=Array.isArray,Y=Object.prototype.hasOwnProperty,F={current:null},J={key:!0,ref:!0,__self:!0,__source:!0};function Ee(D,Q,N){var be,Le={},Oe=null,ze=null;if(Q!=null)for(be in Q.ref!==void 0&&(ze=Q.ref),Q.key!==void 0&&(Oe=""+Q.key),Q)Y.call(Q,be)&&!J.hasOwnProperty(be)&&(Le[be]=Q[be]);var we=arguments.length-2;if(we===1)Le.children=N;else if(1<we){for(var Ye=Array(we),ut=0;ut<we;ut++)Ye[ut]=arguments[ut+2];Le.children=Ye}if(D&&D.defaultProps)for(be in we=D.defaultProps,we)Le[be]===void 0&&(Le[be]=we[be]);return{$$typeof:e,type:D,key:Oe,ref:ze,props:Le,_owner:F.current}}function xe(D,Q){return{$$typeof:e,type:D.type,key:Q,ref:D.ref,props:D.props,_owner:D._owner}}function z(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function se(D){var Q={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(N){return Q[N]})}var me=/\/+/g;function de(D,Q){return typeof D=="object"&&D!==null&&D.key!=null?se(""+D.key):Q.toString(36)}function le(D,Q,N,be,Le){var Oe=typeof D;(Oe==="undefined"||Oe==="boolean")&&(D=null);var ze=!1;if(D===null)ze=!0;else switch(Oe){case"string":case"number":ze=!0;break;case"object":switch(D.$$typeof){case e:case t:ze=!0}}if(ze)return ze=D,Le=Le(ze),D=be===""?"."+de(ze,0):be,M(Le)?(N="",D!=null&&(N=D.replace(me,"$&/")+"/"),le(Le,Q,N,"",function(ut){return ut})):Le!=null&&(z(Le)&&(Le=xe(Le,N+(!Le.key||ze&&ze.key===Le.key?"":(""+Le.key).replace(me,"$&/")+"/")+D)),Q.push(Le)),1;if(ze=0,be=be===""?".":be+":",M(D))for(var we=0;we<D.length;we++){Oe=D[we];var Ye=be+de(Oe,we);ze+=le(Oe,Q,N,Ye,Le)}else if(Ye=b(D),typeof Ye=="function")for(D=Ye.call(D),we=0;!(Oe=D.next()).done;)Oe=Oe.value,Ye=be+de(Oe,we++),ze+=le(Oe,Q,N,Ye,Le);else if(Oe==="object")throw Q=String(D),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.");return ze}function Te(D,Q,N){if(D==null)return D;var be=[],Le=0;return le(D,be,"","",function(Oe){return Q.call(N,Oe,Le++)}),be}function Re(D){if(D._status===-1){var Q=D._result;Q=Q(),Q.then(function(N){(D._status===0||D._status===-1)&&(D._status=1,D._result=N)},function(N){(D._status===0||D._status===-1)&&(D._status=2,D._result=N)}),D._status===-1&&(D._status=0,D._result=Q)}if(D._status===1)return D._result.default;throw D._result}var ce={current:null},G={transition:null},ee={ReactCurrentDispatcher:ce,ReactCurrentBatchConfig:G,ReactCurrentOwner:F};function w(){throw Error("act(...) is not supported in production builds of React.")}return Pe.Children={map:Te,forEach:function(D,Q,N){Te(D,function(){Q.apply(this,arguments)},N)},count:function(D){var Q=0;return Te(D,function(){Q++}),Q},toArray:function(D){return Te(D,function(Q){return Q})||[]},only:function(D){if(!z(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},Pe.Component=A,Pe.Fragment=n,Pe.Profiler=o,Pe.PureComponent=I,Pe.StrictMode=r,Pe.Suspense=d,Pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,Pe.act=w,Pe.cloneElement=function(D,Q,N){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var be=x({},D.props),Le=D.key,Oe=D.ref,ze=D._owner;if(Q!=null){if(Q.ref!==void 0&&(Oe=Q.ref,ze=F.current),Q.key!==void 0&&(Le=""+Q.key),D.type&&D.type.defaultProps)var we=D.type.defaultProps;for(Ye in Q)Y.call(Q,Ye)&&!J.hasOwnProperty(Ye)&&(be[Ye]=Q[Ye]===void 0&&we!==void 0?we[Ye]:Q[Ye])}var Ye=arguments.length-2;if(Ye===1)be.children=N;else if(1<Ye){we=Array(Ye);for(var ut=0;ut<Ye;ut++)we[ut]=arguments[ut+2];be.children=we}return{$$typeof:e,type:D.type,key:Le,ref:Oe,props:be,_owner:ze}},Pe.createContext=function(D){return D={$$typeof:u,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:a,_context:D},D.Consumer=D},Pe.createElement=Ee,Pe.createFactory=function(D){var Q=Ee.bind(null,D);return Q.type=D,Q},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(D){return{$$typeof:c,render:D}},Pe.isValidElement=z,Pe.lazy=function(D){return{$$typeof:m,_payload:{_status:-1,_result:D},_init:Re}},Pe.memo=function(D,Q){return{$$typeof:h,type:D,compare:Q===void 0?null:Q}},Pe.startTransition=function(D){var Q=G.transition;G.transition={};try{D()}finally{G.transition=Q}},Pe.unstable_act=w,Pe.useCallback=function(D,Q){return ce.current.useCallback(D,Q)},Pe.useContext=function(D){return ce.current.useContext(D)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(D){return ce.current.useDeferredValue(D)},Pe.useEffect=function(D,Q){return ce.current.useEffect(D,Q)},Pe.useId=function(){return ce.current.useId()},Pe.useImperativeHandle=function(D,Q,N){return ce.current.useImperativeHandle(D,Q,N)},Pe.useInsertionEffect=function(D,Q){return ce.current.useInsertionEffect(D,Q)},Pe.useLayoutEffect=function(D,Q){return ce.current.useLayoutEffect(D,Q)},Pe.useMemo=function(D,Q){return ce.current.useMemo(D,Q)},Pe.useReducer=function(D,Q,N){return ce.current.useReducer(D,Q,N)},Pe.useRef=function(D){return ce.current.useRef(D)},Pe.useState=function(D){return ce.current.useState(D)},Pe.useSyncExternalStore=function(D,Q,N){return ce.current.useSyncExternalStore(D,Q,N)},Pe.useTransition=function(){return ce.current.useTransition()},Pe.version="18.3.1",Pe}var sn;function ao(){return sn||(sn=1,dt.exports=Tt()),dt.exports}var _s;function Rc(){if(_s)return Et;_s=1;var e=ao(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(c,d,h){var m,g={},b=null,T=null;h!==void 0&&(b=""+h),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(T=d.ref);for(m in d)r.call(d,m)&&!a.hasOwnProperty(m)&&(g[m]=d[m]);if(c&&c.defaultProps)for(m in d=c.defaultProps,d)g[m]===void 0&&(g[m]=d[m]);return{$$typeof:t,type:c,key:b,ref:T,props:g,_owner:o.current}}return Et.Fragment=n,Et.jsx=u,Et.jsxs=u,Et}var $n;function P_(){return $n||($n=1,nt.exports=Rc()),nt.exports}var L=P_();const or=Object.create(null);or.open="0",or.close="1",or.ping="2",or.pong="3",or.message="4",or.upgrade="5",or.noop="6";const eu=Object.create(null);Object.keys(or).forEach(e=>{eu[or[e]]=e});const Lc={type:"error",data:"parser error"},rm=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",im=typeof ArrayBuffer=="function",om=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Dc=({type:e,data:t},n,r)=>rm&&t instanceof Blob?n?r(t):sm(t,r):im&&(t instanceof ArrayBuffer||om(t))?n?r(t):sm(new Blob([t]),r):r(or[e]+(t||"")),sm=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function am(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Mc;function R_(e,t){if(rm&&e.data instanceof Blob)return e.data.arrayBuffer().then(am).then(t);if(im&&(e.data instanceof ArrayBuffer||om(e.data)))return t(am(e.data));Dc(e,!1,n=>{Mc||(Mc=new TextEncoder),t(Mc.encode(n))})}const um="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xs=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(let e=0;e<um.length;e++)xs[um.charCodeAt(e)]=e;const L_=e=>{let t=e.length*.75,n=e.length,r,o=0,a,u,c,d;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const h=new ArrayBuffer(t),m=new Uint8Array(h);for(r=0;r<n;r+=4)a=xs[e.charCodeAt(r)],u=xs[e.charCodeAt(r+1)],c=xs[e.charCodeAt(r+2)],d=xs[e.charCodeAt(r+3)],m[o++]=a<<2|u>>4,m[o++]=(u&15)<<4|c>>2,m[o++]=(c&3)<<6|d&63;return h},D_=typeof ArrayBuffer=="function",Fc=(e,t)=>{if(typeof e!="string")return{type:"message",data:lm(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:M_(e.substring(1),t)}:eu[n]?e.length>1?{type:eu[n],data:e.substring(1)}:{type:eu[n]}:Lc},M_=(e,t)=>{if(D_){const n=L_(e);return lm(n,t)}else return{base64:!0,data:e}},lm=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,cm="",F_=(e,t)=>{const n=e.length,r=new Array(n);let o=0;e.forEach((a,u)=>{Dc(a,!1,c=>{r[u]=c,++o===n&&t(r.join(cm))})})},B_=(e,t)=>{const n=e.split(cm),r=[];for(let o=0;o<n.length;o++){const a=Fc(n[o],t);if(r.push(a),a.type==="error")break}return r};function U_(){return new TransformStream({transform(e,t){R_(e,n=>{const r=n.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const a=new DataView(o.buffer);a.setUint8(0,126),a.setUint16(1,r)}else{o=new Uint8Array(9);const a=new DataView(o.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}let Bc;function tu(e){return e.reduce((t,n)=>t+n.length,0)}function nu(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function H_(e,t){Bc||(Bc=new TextDecoder);const n=[];let r=0,o=-1,a=!1;return new TransformStream({transform(u,c){for(n.push(u);;){if(r===0){if(tu(n)<1)break;const d=nu(n,1);a=(d[0]&128)===128,o=d[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(tu(n)<2)break;const d=nu(n,2);o=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),r=3}else if(r===2){if(tu(n)<8)break;const d=nu(n,8),h=new DataView(d.buffer,d.byteOffset,d.length),m=h.getUint32(0);if(m>Math.pow(2,21)-1){c.enqueue(Lc);break}o=m*Math.pow(2,32)+h.getUint32(4),r=3}else{if(tu(n)<o)break;const d=nu(n,o);c.enqueue(Fc(a?d:Bc.decode(d),t)),r=0}if(o===0||o>e){c.enqueue(Lc);break}}}})}const dm=4;function wt(e){if(e)return z_(e)}function z_(e){for(var t in wt.prototype)e[t]=wt.prototype[t];return e}wt.prototype.on=wt.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},wt.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},wt.prototype.off=wt.prototype.removeListener=wt.prototype.removeAllListeners=wt.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this},wt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},wt.prototype.emitReserved=wt.prototype.emit,wt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},wt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const ru=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),On=typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")(),j_="arraybuffer";function FM(){}function fm(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const $_=On.setTimeout,V_=On.clearTimeout;function iu(e,t){t.useNativeTimers?(e.setTimeoutFn=$_.bind(On),e.clearTimeoutFn=V_.bind(On)):(e.setTimeoutFn=On.setTimeout.bind(On),e.clearTimeoutFn=On.clearTimeout.bind(On))}const Y_=1.33;function q_(e){return typeof e=="string"?W_(e):Math.ceil((e.byteLength||e.size)*Y_)}function W_(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function hm(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function G_(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function K_(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let a=n[r].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class Q_ extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Uc extends wt{constructor(t){super(),this.writable=!1,iu(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new Q_(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Fc(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=G_(t);return n.length?"?"+n:""}}class X_ extends Uc{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};B_(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,F_(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=hm()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let pm=!1;try{pm=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){}const J_=pm;function Z_(){}class ex extends X_{constructor(t){if(super(t),typeof location!="undefined"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location!="undefined"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,a)=>{this.onError("xhr post error",o,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class sr extends wt{constructor(t,n,r){super(),this.createRequest=t,iu(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=fm(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch(o){}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(o){}try{r.setRequestHeader("Accept","*/*")}catch(o){}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document!="undefined"&&(this._index=sr.requestsCount++,sr.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr=="undefined"||this._xhr===null)){if(this._xhr.onreadystatechange=Z_,t)try{this._xhr.abort()}catch(n){}typeof document!="undefined"&&delete sr.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(sr.requestsCount=0,sr.requests={},typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",mm);else if(typeof addEventListener=="function"){const e="onpagehide"in On?"pagehide":"unload";addEventListener(e,mm,!1)}}function mm(){for(let e in sr.requests)sr.requests.hasOwnProperty(e)&&sr.requests[e].abort()}const tx=(function(){const e=gm({xdomain:!1});return e&&e.responseType!==null})();class nx extends ex{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=tx&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new sr(gm,this.uri(),t)}}function gm(e){const t=e.xdomain;try{if(typeof XMLHttpRequest!="undefined"&&(!t||J_))return new XMLHttpRequest}catch(n){}if(!t)try{return new On[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(n){}}const Em=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class rx extends Uc{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=Em?{}:fm(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;Dc(r,this.supportsBinary,a=>{try{this.doWrite(r,a)}catch(u){}o&&ru(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=hm()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Hc=On.WebSocket||On.MozWebSocket;class ix extends rx{createSocket(t,n,r){return Em?new Hc(t,n,r):n?new Hc(t,n):new Hc(t)}doWrite(t,n){this.ws.send(n)}}class ox extends Uc{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=H_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=U_();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();const a=()=>{r.read().then(({done:c,value:d})=>{c||(this.onPacket(d),a())}).catch(c=>{})};a();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&ru(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const sx={websocket:ix,webtransport:ox,polling:nx},ax=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ux=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function zc(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=ax.exec(e||""),a={},u=14;for(;u--;)a[ux[u]]=o[u]||"";return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=lx(a,a.path),a.queryKey=cx(a,a.query),a}function lx(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function cx(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,a){o&&(n[o]=a)}),n}const jc=typeof addEventListener=="function"&&typeof removeEventListener=="function",ou=[];jc&&addEventListener("offline",()=>{ou.forEach(e=>e())},!1);class zr extends wt{constructor(t,n){if(super(),this.binaryType=j_,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=zc(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=zc(n.host).host);iu(this,n),this.secure=n.secure!=null?n.secure:typeof location!="undefined"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=n.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=K_(this.opts.query)),jc&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ou.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=dm,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&zr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",zr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(n+=q_(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,ru(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const a={type:t,data:n,options:r};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(zr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),jc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=ou.indexOf(this._offlineEventListener);r!==-1&&ou.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}zr.protocol=dm;class dx extends zr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;zr.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",g=>{if(!r)if(g.type==="pong"&&g.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;zr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(m(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const b=new Error("probe error");b.transport=n.name,this.emitReserved("upgradeError",b)}}))};function a(){r||(r=!0,m(),n.close(),n=null)}const u=g=>{const b=new Error("probe error: "+g);b.transport=n.name,a(),this.emitReserved("upgradeError",b)};function c(){u("transport closed")}function d(){u("socket closed")}function h(g){n&&g.name!==n.name&&a()}const m=()=>{n.removeListener("open",o),n.removeListener("error",u),n.removeListener("close",c),this.off("close",d),this.off("upgrading",h)};n.once("open",o),n.once("error",u),n.once("close",c),this.once("close",d),this.once("upgrading",h),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let fx=class extends dx{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>sx[o]).filter(o=>!!o)),super(t,r)}};function hx(e,t="",n){let r=e;n=n||typeof location!="undefined"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n!="undefined"?e=n.protocol+"//"+e:e="https://"+e),r=zc(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const a=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port+t,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}const px=typeof ArrayBuffer=="function",mx=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ym=Object.prototype.toString,gx=typeof Blob=="function"||typeof Blob!="undefined"&&ym.call(Blob)==="[object BlobConstructor]",Ex=typeof File=="function"||typeof File!="undefined"&&ym.call(File)==="[object FileConstructor]";function $c(e){return px&&(e instanceof ArrayBuffer||mx(e))||gx&&e instanceof Blob||Ex&&e instanceof File}function su(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(su(e[n]))return!0;return!1}if($c(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return su(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&su(e[n]))return!0;return!1}function yx(e){const t=[],n=e.data,r=e;return r.data=Vc(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Vc(e,t){if(!e)return e;if($c(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Vc(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Vc(e[r],t));return n}return e}function Tx(e,t){return e.data=Yc(e.data,t),delete e.attachments,e}function Yc(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Yc(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Yc(e[n],t));return e}const bx=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Ke;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Ke||(Ke={}));class _x{constructor(t){this.replacer=t}encode(t){return(t.type===Ke.EVENT||t.type===Ke.ACK)&&su(t)?this.encodeAsBinary({type:t.type===Ke.EVENT?Ke.BINARY_EVENT:Ke.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===Ke.BINARY_EVENT||t.type===Ke.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=yx(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}}class qc extends wt{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===Ke.BINARY_EVENT;r||n.type===Ke.BINARY_ACK?(n.type=r?Ke.EVENT:Ke.ACK,this.reconstructor=new xx(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if($c(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(Ke[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Ke.BINARY_EVENT||r.type===Ke.BINARY_ACK){const a=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const u=t.substring(a,n);if(u!=Number(u)||t.charAt(n)!=="-")throw new Error("Illegal attachments");const c=Number(u);if(!Sx(c)||c<0)throw new Error("Illegal attachments");if(c>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=c}if(t.charAt(n+1)==="/"){const a=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(a,n)}else r.nsp="/";const o=t.charAt(n+1);if(o!==""&&Number(o)==o){const a=n+1;for(;++n;){const u=t.charAt(n);if(u==null||Number(u)!=u){--n;break}if(n===t.length)break}r.id=Number(t.substring(a,n+1))}if(t.charAt(++n)){const a=this.tryParse(t.substr(n));if(qc.isPayloadValid(r.type,a))r.data=a;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch(n){return!1}}static isPayloadValid(t,n){switch(t){case Ke.CONNECT:return Tm(n);case Ke.DISCONNECT:return n===void 0;case Ke.CONNECT_ERROR:return typeof n=="string"||Tm(n);case Ke.EVENT:case Ke.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&bx.indexOf(n[0])===-1);case Ke.ACK:case Ke.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class xx{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Tx(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Sx=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function Tm(e){return Object.prototype.toString.call(e)==="[object Object]"}const wx=Object.freeze(Object.defineProperty({__proto__:null,Decoder:qc,Encoder:_x,get PacketType(){return Ke}},Symbol.toStringTag,{value:"Module"}));function Vn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Ax=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class bm extends wt{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Vn(t,"open",this.onopen.bind(this)),Vn(t,"packet",this.onpacket.bind(this)),Vn(t,"error",this.onerror.bind(this)),Vn(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,o,a;if(Ax.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const u={type:Ke.EVENT,data:n};if(u.options={},u.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const m=this.ids++,g=n.pop();this._registerAckCallback(m,g),u.id=m}const c=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,d=this.connected&&!(!((a=this.io.engine)===null||a===void 0)&&a._hasPingExpired());return this.flags.volatile&&!c||(d?(this.notifyOutgoingListeners(u),this.packet(u)):this.sendBuffer.push(u)),this.flags={},this}_registerAckCallback(t,n){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===t&&this.sendBuffer.splice(c,1);n.call(this,new Error("operation has timed out"))},o),u=(...c)=>{this.io.clearTimeoutFn(a),n.apply(this,c)};u.withError=!0,this.acks[t]=u}emitWithAck(t,...n){return new Promise((r,o)=>{const a=(u,c)=>u?o(u):r(c);a.withError=!0,n.push(a),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...a)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...a)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Ke.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Ke.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ke.EVENT:case Ke.BINARY_EVENT:this.onevent(t);break;case Ke.ACK:case Ke.BINARY_ACK:this.onack(t);break;case Ke.DISCONNECT:this.ondisconnect();break;case Ke.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:Ke.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ke.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function uo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}uo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0},uo.prototype.reset=function(){this.attempts=0},uo.prototype.setMin=function(e){this.ms=e},uo.prototype.setMax=function(e){this.max=e},uo.prototype.setJitter=function(e){this.jitter=e};class Wc extends wt{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,iu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new uo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||wx;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new fx(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Vn(n,"open",function(){r.onopen(),t&&t()}),a=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),t?t(c):this.maybeReconnectOnOpen()},u=Vn(n,"error",a);if(this._timeout!==!1){const c=this._timeout,d=this.setTimeoutFn(()=>{o(),a(new Error("timeout")),n.close()},c);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(o),this.subs.push(u),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Vn(t,"ping",this.onping.bind(this)),Vn(t,"data",this.ondata.bind(this)),Vn(t,"error",this.onerror.bind(this)),Vn(t,"close",this.onclose.bind(this)),Vn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){ru(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new bm(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ss={};function Gc(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=hx(e,t.path||"/socket.io"),r=n.source,o=n.id,a=n.path,u=Ss[o]&&a in Ss[o].nsps,c=t.forceNew||t["force new connection"]||t.multiplex===!1||u;let d;return c?d=new Wc(r,t):(Ss[o]||(Ss[o]=new Wc(r,t)),d=Ss[o]),n.query&&!t.query&&(t.query=n.queryKey),d.socket(n.path,t)}Object.assign(Gc,{Manager:Wc,Socket:bm,io:Gc,connect:Gc});const _m=Object.prototype.toString;typeof Blob=="function"||typeof Blob!="undefined"&&_m.call(Blob),typeof File=="function"||typeof File!="undefined"&&_m.call(File);var xm;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(xm||(xm={}));var te=ao();const bi=We(te);class Cx{constructor(){this.listeners=new Map,this.onceListeners=new Map}on(t,n){this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(n)}once(t,n){this.onceListeners.has(t)||this.onceListeners.set(t,new Set),this.onceListeners.get(t).add(n)}off(t,n){var r,o;return t?n?((r=this.listeners.get(t))==null||r.delete(n),void((o=this.onceListeners.get(t))==null?void 0:o.delete(n))):(this.listeners.delete(t),void this.onceListeners.delete(t)):(this.listeners.clear(),void this.onceListeners.clear())}emit(t,...n){const r=this.listeners.get(t);if(r)for(const a of r)try{a(...n)}catch(u){}const o=this.onceListeners.get(t);if(o){for(const a of o)try{a(...n)}catch(u){}this.onceListeners.delete(t)}}}class vx{constructor(t,n,r,o,a){this.url=t,this.headers=n,this.onEvent=r,this.onClose=o,this.logger=a,this.controller=null,this.reading=!1}connect(){return et(this,null,function*(){if(this.reading)return void this.logger.warn("SSE already connected, ignoring duplicate connect()");this.controller=new AbortController,this.reading=!0;const t=yield fetch(this.url,{method:"GET",headers:re(U({},this.headers),{Accept:"text/event-stream","Cache-Control":"no-cache"}),signal:this.controller.signal});if(!t.ok){this.reading=!1;const n=yield t.text().catch(()=>t.statusText);throw new Error(`SSE connection failed (${t.status}): ${n}`)}if(!t.body)throw this.reading=!1,new Error("SSE response has no body stream");this.readStream(t.body)})}disconnect(){this.reading=!1,this.controller&&(this.controller.abort(),this.controller=null)}get isConnected(){return this.reading}readStream(t){return et(this,null,function*(){const n=t.getReader(),r=new TextDecoder;let o="";try{for(;this.reading;){const{value:a,done:u}=yield n.read();if(u)break;let c;for(o+=r.decode(a,{stream:!0}),o=o.replace(/\r\n/g,`
|
|
3
|
+
`).replace(/\r/g,`
|
|
4
|
+
`);(c=o.indexOf(`
|
|
5
|
+
|
|
6
|
+
`))>=0;){const d=o.slice(0,c);o=o.slice(c+2),this.parseFrame(d)}}}catch(a){return a instanceof DOMException&&a.name==="AbortError"?void this.logger.debug("SSE stream aborted (intentional disconnect)"):(this.logger.error("SSE stream error:",a),this.reading=!1,void this.onClose(a instanceof Error?a.message:"Unknown stream error"))}finally{n.releaseLock()}this.reading=!1,this.logger.info("SSE stream ended"),this.onClose("stream_ended")})}parseFrame(t){let n="message";const r=[];for(const a of t.split(`
|
|
7
|
+
`))if(a.startsWith("event:"))n=a.slice(6).trim();else if(a.startsWith("data:")){const u=a.slice(5);r.push(u.startsWith(" ")?u.slice(1):u)}else a.startsWith(":");if(r.length===0)return;const o=r.join(`
|
|
8
|
+
`);this.logger.debug(`SSE event: ${n}`,o.slice(0,200)),this.onEvent(n,o)}}class _i extends Error{constructor(t,n="unknown",r){super(t,r),this.name="AgentforceClientError",this.type=n}}let kx=class extends _i{constructor(t,n,r,o){super(t,"api",o),this.name="AgentforceApiError",this.statusCode=n,this.responseBody=r}};class Sm extends _i{constructor(t,n=1,r){super(t,"network",r),this.name="AgentforceNetworkError",this.attemptsMade=n}}let Nx=class extends _i{constructor(t,n){super(t,"auth",n),this.name="AgentforceAuthError"}};class Ox{constructor(t){this.prefix="[Agentforce]",this.enabled=t}info(t,...n){this.enabled&&console.log(`${this.prefix} ${t}`,...n)}warn(t,...n){this.enabled&&console.warn(`${this.prefix} ${t}`,...n)}error(t,...n){this.enabled&&console.error(`${this.prefix} ${t}`,...n)}debug(t,...n){this.enabled&&console.debug(`${this.prefix} ${t}`,...n)}}class Ix extends Cx{constructor({baseURL:t,orgId:n,esDeveloperName:r,options:o={}}){var u,c,d,h,m,g,b;super(),this._accessToken=null,this._conversationId=null,this._isConnected=!1,this.sseReader=null,this.reconnectAttempts=0,this.reconnectTimeout=null,this.intentionalDisconnect=!1,this.baseURL=t.replace(/\/+$/,""),this.orgId=n,this.esDeveloperName=r;const a={maxRetries:(u=o.maxRetries)!=null?u:3,timeout:(c=o.timeout)!=null?c:15e3,maxReconnectAttempts:(d=o.maxReconnectAttempts)!=null?d:5,reconnectDelay:(h=o.reconnectDelay)!=null?h:2e3,enableLogging:(m=o.enableLogging)!=null?m:!1,platform:(g=o.platform)!=null?g:"Web",capabilitiesVersion:(b=o.capabilitiesVersion)!=null?b:"1"};this.maxRetries=a.maxRetries,this.timeout=a.timeout,this.maxReconnectAttempts=a.maxReconnectAttempts,this.reconnectDelay=a.reconnectDelay,this.platform=a.platform,this.capabilitiesVersion=a.capabilitiesVersion,this.logger=new Ox(a.enableLogging),this.logger.info(`Client initialized for ${this.baseURL}`)}get isConnected(){return this._isConnected}get conversationId(){return this._conversationId}get accessToken(){return this._accessToken}connect(){return et(this,null,function*(){this.intentionalDisconnect=!1,this.reconnectAttempts=0,this.logger.info("Connecting..."),this._accessToken=yield this.fetchAccessToken(),this.logger.info("Access token acquired"),yield this.openSSE()})}disconnect(){this.intentionalDisconnect=!0,this.clearReconnectTimer(),this.closeSSE(),this._isConnected=!1,this.logger.info("Disconnected")}createConversation(t){return et(this,null,function*(){this.assertConnected();const n=crypto.randomUUID(),r={conversationId:n,esDeveloperName:this.esDeveloperName,routingAttributes:t!=null?t:{}};return yield this.executeRequest("POST","/iamessage/api/v2/conversation",r),this._conversationId=n,this.logger.info(`Conversation created: ${n}`),n})}sendMessage(t){return et(this,null,function*(){if(this.assertConnected(),!this._conversationId)throw new _i("No active conversation. Call createConversation() first.","unknown");const n=crypto.randomUUID(),r={message:{id:n,messageType:"StaticContentMessage",staticContent:{formatType:"Text",text:t}},esDeveloperName:this.esDeveloperName};yield this.executeRequest("POST",`/iamessage/api/v2/conversation/${this._conversationId}/message`,r),this.logger.debug(`Message sent: ${n}`)})}endConversation(){return et(this,null,function*(){if(!this._conversationId||!this._accessToken)return;const t=this._conversationId;this._conversationId=null;try{yield this.executeRequest("DELETE",`/iamessage/api/v2/conversation/${t}?esDeveloperName=${encodeURIComponent(this.esDeveloperName)}`),this.logger.info(`Conversation ended: ${t}`)}catch(n){this.logger.warn(`Failed to end conversation (best effort): ${n instanceof Error?n.message:String(n)}`)}})}openSSE(){return et(this,null,function*(){this.closeSSE();const t=`${this.baseURL}/eventrouter/v1/sse`,n={Authorization:`Bearer ${this._accessToken}`,"X-Org-Id":this.orgId};this.sseReader=new vx(t,n,(r,o)=>this.handleSSEEvent(r,o),r=>this.handleSSEClose(r),this.logger),yield this.sseReader.connect(),this._isConnected=!0,this.emit("connected"),this.logger.info("SSE stream connected")})}closeSSE(){this.sseReader&&(this.sseReader.disconnect(),this.sseReader=null)}handleSSEClose(t){this._isConnected=!1,this.emit("disconnected",{reason:t}),this.intentionalDisconnect||this.attemptReconnect()}attemptReconnect(){if(this.reconnectAttempts>=this.maxReconnectAttempts)return this.logger.error(`Max reconnect attempts (${this.maxReconnectAttempts}) reached.`),void this.emit("error",{code:"MAX_RECONNECT",message:`Failed to reconnect after ${this.maxReconnectAttempts} attempts`,recoverable:!1});this.reconnectAttempts++;const t=500*Math.random(),n=Math.min(this.reconnectDelay*Math.pow(2,this.reconnectAttempts-1)+t,3e4);this.logger.info(`Reconnecting in ${n.toFixed(0)}ms (attempt ${this.reconnectAttempts}/${this.maxReconnectAttempts})...`),this.emit("reconnecting",{attempt:this.reconnectAttempts,maxAttempts:this.maxReconnectAttempts}),this.reconnectTimeout=setTimeout(()=>et(this,null,function*(){try{if(this.intentionalDisconnect||(this._accessToken=yield this.fetchAccessToken(),this.intentionalDisconnect))return;yield this.openSSE(),this.reconnectAttempts=0,this.logger.info("Reconnected successfully")}catch(r){if(this.intentionalDisconnect)return;this.logger.error(`Reconnect attempt ${this.reconnectAttempts} failed: ${r instanceof Error?r.message:String(r)}`),this.attemptReconnect()}}),n)}clearReconnectTimer(){this.reconnectTimeout&&(clearTimeout(this.reconnectTimeout),this.reconnectTimeout=null)}handleSSEEvent(t,n){if(t==="ping")return;let r;try{r=JSON.parse(n)}catch(o){return void this.logger.debug(`Non-JSON SSE event (${t}): ${n.slice(0,100)}`)}switch(t){case"CONVERSATION_ROUTING_RESULT":this.handleRoutingResult(r);break;case"CONVERSATION_MESSAGE":this.handleConversationMessage(r);break;case"CONVERSATION_STREAMING_TOKEN":this.handleStreamingToken(r);break;case"CONVERSATION_TYPING_STARTED_INDICATOR":this.handleTypingStarted(r);break;case"CONVERSATION_TYPING_STOPPED_INDICATOR":this.handleTypingStopped(r);break;case"CONVERSATION_PARTICIPANT_CHANGED":this.handleParticipantChanged(r);break;case"CONVERSATION_CLOSE_CONVERSATION":this.handleConversationClosed(r);break;default:this.logger.debug(`Unknown SSE event: ${t}`)}}handleRoutingResult(t){let n=t;t.conversationEntry&&(n=this.parseEntryPayload(t.conversationEntry));const r=n.failureType||n.routingFailureType||"",o=!r||r==="None"||r==="NO_ERROR";this.emit("routing_result",{conversationId:this._conversationId||"",isSuccessful:o,failureType:o?void 0:r,raw:n}),o||this.emit("error",{code:"ROUTING_FAILED",message:`Routing failed: ${r}`,recoverable:!1})}handleConversationMessage(t){var c;const n=t.conversationEntry;if(!n)return;const r=((c=n.sender)==null?void 0:c.role)||"";if(r==="EndUser"||r==="Customer")return;const o=this.parseEntryPayload(n),a=this.getNestedValue(o,"abstractMessage"),u=this.getNestedString(a,"staticContent","text")||this.getNestedString(a,"content","text")||"";u&&this.emit("message",{conversationId:this._conversationId||"",messageId:n.identifier||"",content:u,sender:{role:r,name:n.senderDisplayName},timestamp:n.transcriptedTimestamp||new Date().toISOString(),raw:o})}handleStreamingToken(t){const n=t.token||t.text||"";n&&this.emit("streaming_token",{conversationId:this._conversationId||"",token:String(n)})}handleTypingStarted(t){var n;this.emit("typing_started",{conversationId:this._conversationId||"",participant:(n=t.conversationEntry)!=null&&n.sender?{role:t.conversationEntry.sender.role||"",name:t.conversationEntry.senderDisplayName}:void 0})}handleTypingStopped(t){var n;this.emit("typing_stopped",{conversationId:this._conversationId||"",participant:(n=t.conversationEntry)!=null&&n.sender?{role:t.conversationEntry.sender.role||"",name:t.conversationEntry.senderDisplayName}:void 0})}handleParticipantChanged(t){var a,u,c,d;let n=t;t.conversationEntry&&(n=this.parseEntryPayload(t.conversationEntry));const r=((a=t.conversationEntry)==null?void 0:a.senderDisplayName)||n.participantName||((u=n.participant)==null?void 0:u.displayName)||"Agent",o=n.operation||n.event||"";this.emit("participant_changed",{conversationId:this._conversationId||"",participant:{role:((d=(c=t.conversationEntry)==null?void 0:c.sender)==null?void 0:d.role)||"",name:r},action:o})}handleConversationClosed(t){this.emit("conversation_closed",{conversationId:t.conversationId||this._conversationId||""}),this._conversationId=null}fetchAccessToken(){return et(this,null,function*(){const t={orgId:this.orgId,esDeveloperName:this.esDeveloperName,capabilitiesVersion:this.capabilitiesVersion,platform:this.platform},n=yield this.executeRequest("POST","/iamessage/api/v2/authorization/unauthenticated/access-token",t,{useAuth:!1});if(!n.accessToken)throw new Nx("Token response missing accessToken field");return n.accessToken})}executeRequest(t,n,r,o){return et(this,null,function*(){const a=(o==null?void 0:o.useAuth)!==!1;let u=0;for(;;){let c;try{const d=new AbortController;c=setTimeout(()=>d.abort(),(o==null?void 0:o.timeout)||this.timeout);const h=U({"Content-Type":"application/json"},o==null?void 0:o.headers);a&&this._accessToken&&(h.Authorization=`Bearer ${this._accessToken}`);const m={method:t,headers:h,signal:(o==null?void 0:o.signal)||d.signal};r&&t==="POST"&&(m.body=JSON.stringify(r));const g=yield fetch(`${this.baseURL}${n}`,m);if(clearTimeout(c),!g.ok){const b=yield g.text().catch(()=>g.statusText);if(g.status===401&&a&&u===0){this.logger.info("Got 401 — refreshing token and retrying..."),this._accessToken=yield this.fetchAccessToken(),u++;continue}throw new kx(`Request ${t} ${n} failed (${g.status}): ${b}`,g.status,b)}return g.status===204||t==="DELETE"?{}:g.text().then(b=>b?JSON.parse(b):null)}catch(d){if(clearTimeout(c),d instanceof _i)throw d;if(d instanceof DOMException&&d.name==="AbortError")throw new Sm("Request timeout exceeded",u+1,{cause:d});if(d instanceof TypeError){if(u<this.maxRetries){u++;const h=100*Math.random(),m=300*Math.pow(2,u-1)+h;this.logger.info(`Network error, retrying (${u}/${this.maxRetries}) in ${m.toFixed(0)}ms...`),yield new Promise(g=>setTimeout(g,m));continue}throw new Sm(`Network error: ${d.message}`,u,{cause:d})}throw new _i(`Unexpected error: ${d instanceof Error?d.message:String(d)}`,"unknown",{cause:d instanceof Error?d:void 0})}}})}assertConnected(){if(!this._isConnected||!this._accessToken)throw new _i("Client is not connected. Call connect() first.","unknown")}parseEntryPayload(t){if(!t.entryPayload)return{};if(typeof t.entryPayload=="string")try{return JSON.parse(t.entryPayload)}catch(n){return{}}return t.entryPayload}getNestedValue(t,...n){let r=t;for(const o of n){if(r==null||typeof r!="object")return;r=r[o]}return r}getNestedString(t,...n){const r=this.getNestedValue(t,...n);return typeof r=="string"?r:""}}const wm={PAGE_CHANGED:"page-changed",PAGE_SIZE_CHANGED:"page-size-changed",FACET_FILTERS_CHANGED:"facet-filters-changed",RANGE_FILTERS_CHANGED:"range-filters-changed",CATALOG_SEGMENT_CHANGED:"catalog-segment-changed",PRICEBOOKS_CHANGED:"pricebooks-changed"},Ar=U({SEARCH_CONTEXT_UPDATED:"search-context-updated",QUERY_CHANGED:"query-changed"},wm),Px={"search-context":Ar.SEARCH_CONTEXT_UPDATED,query:Ar.QUERY_CHANGED,page:Ar.PAGE_CHANGED,pageSize:Ar.PAGE_SIZE_CHANGED,includeFacets:Ar.FACET_FILTERS_CHANGED,facetFilters:Ar.FACET_FILTERS_CHANGED,rangeFilters:Ar.RANGE_FILTERS_CHANGED,catalogSegment:Ar.CATALOG_SEGMENT_CHANGED,pricebooks:Ar.PRICEBOOKS_CHANGED},X="cim-widget",lo=`--${X}`,xi={primaryColor:"#3182ce",secondaryColor:"#2c5282",fontColor:"#1a202c",fontFamily:"inherit",backgroundColor:"#ffffff",borderColor:"#dddddd"},Rx=(e=xi)=>({[`${lo}-primary-color`]:e.primaryColor||xi.primaryColor,[`${lo}-secondary-color`]:e.secondaryColor||xi.secondaryColor,[`${lo}-font-color`]:e.fontColor||xi.fontColor,[`${lo}-font-family`]:e.fontFamily||xi.fontFamily,[`${lo}-background-color`]:e.backgroundColor||xi.backgroundColor,[`${lo}-border-color`]:e.borderColor||xi.borderColor});function Am(e,t){return function(){return e.apply(t,arguments)}}const{toString:Lx}=Object.prototype,{getPrototypeOf:au}=Object,{iterator:uu,toStringTag:Cm}=Symbol,lu=(e=>t=>{const n=Lx.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Yn=e=>(e=e.toLowerCase(),t=>lu(t)===e),cu=e=>t=>typeof t===e,{isArray:co}=Array,fo=cu("undefined");function ws(e){return e!==null&&!fo(e)&&e.constructor!==null&&!fo(e.constructor)&&an(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vm=Yn("ArrayBuffer");function Dx(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vm(e.buffer),t}const Mx=cu("string"),an=cu("function"),km=cu("number"),As=e=>e!==null&&typeof e=="object",Fx=e=>e===!0||e===!1,du=e=>{if(lu(e)!=="object")return!1;const t=au(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Cm in e)&&!(uu in e)},Bx=e=>{if(!As(e)||ws(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},Ux=Yn("Date"),Hx=Yn("File"),zx=e=>!!(e&&typeof e.uri!="undefined"),jx=e=>e&&typeof e.getParts!="undefined",$x=Yn("Blob"),Vx=Yn("FileList"),Yx=e=>As(e)&&an(e.pipe);function qx(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const Nm=qx(),Om=typeof Nm.FormData!="undefined"?Nm.FormData:void 0,Wx=e=>{if(!e)return!1;if(Om&&e instanceof Om)return!0;const t=au(e);if(!t||t===Object.prototype||!an(e.append))return!1;const n=lu(e);return n==="formdata"||n==="object"&&an(e.toString)&&e.toString()==="[object FormData]"},Gx=Yn("URLSearchParams"),[Kx,Qx,Xx,Jx]=["ReadableStream","Request","Response","Headers"].map(Yn),Zx=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let r,o;if(typeof e!="object"&&(e=[e]),co(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ws(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let c;for(r=0;r<u;r++)c=a[r],t.call(null,e[c],c,e)}}function Im(e,t){if(ws(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Si=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,Pm=e=>!fo(e)&&e!==Si;function Kc(...e){const{caseless:t,skipUndefined:n}=Pm(this)&&this||{},r={},o=(a,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const c=t&&Im(r,u)||u,d=Qc(r,c)?r[c]:void 0;du(d)&&du(a)?r[c]=Kc(d,a):du(a)?r[c]=Kc({},a):co(a)?r[c]=a.slice():(!n||!fo(a))&&(r[c]=a)};for(let a=0,u=e.length;a<u;a++)e[a]&&Cs(e[a],o);return r}const eS=(e,t,n,{allOwnKeys:r}={})=>(Cs(t,(o,a)=>{n&&an(o)?Object.defineProperty(e,a,{__proto__:null,value:Am(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),tS=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),nS=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},rS=(e,t,n,r)=>{let o,a,u;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)u=o[a],(!r||r(u,e,t))&&!c[u]&&(t[u]=e[u],c[u]=!0);e=n!==!1&&au(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},iS=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},oS=e=>{if(!e)return null;if(co(e))return e;let t=e.length;if(!km(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},sS=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&au(Uint8Array)),aS=(e,t)=>{const r=(e&&e[uu]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},uS=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},lS=Yn("HTMLFormElement"),cS=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Qc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),dS=Yn("RegExp"),Rm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Cs(n,(o,a)=>{let u;(u=t(o,a,e))!==!1&&(r[a]=u||o)}),Object.defineProperties(e,r)},fS=e=>{Rm(e,(t,n)=>{if(an(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(an(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},hS=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return co(e)?r(e):r(String(e).split(t)),n},pS=()=>{},mS=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function gS(e){return!!(e&&an(e.append)&&e[Cm]==="FormData"&&e[uu])}const ES=e=>{const t=new WeakSet,n=r=>{if(As(r)){if(t.has(r))return;if(ws(r))return r;if(!("toJSON"in r)){t.add(r);const o=co(r)?[]:{};return Cs(r,(a,u)=>{const c=n(a);!fo(c)&&(o[u]=c)}),t.delete(r),o}}return r};return n(e)},yS=Yn("AsyncFunction"),TS=e=>e&&(As(e)||an(e))&&an(e.then)&&an(e.catch),Lm=((e,t)=>e?setImmediate:t?((n,r)=>(Si.addEventListener("message",({source:o,data:a})=>{o===Si&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Si.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",an(Si.postMessage)),bS=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Si):typeof process!="undefined"&&process.nextTick||Lm,j={isArray:co,isArrayBuffer:vm,isBuffer:ws,isFormData:Wx,isArrayBufferView:Dx,isString:Mx,isNumber:km,isBoolean:Fx,isObject:As,isPlainObject:du,isEmptyObject:Bx,isReadableStream:Kx,isRequest:Qx,isResponse:Xx,isHeaders:Jx,isUndefined:fo,isDate:Ux,isFile:Hx,isReactNativeBlob:zx,isReactNative:jx,isBlob:$x,isRegExp:dS,isFunction:an,isStream:Yx,isURLSearchParams:Gx,isTypedArray:sS,isFileList:Vx,forEach:Cs,merge:Kc,extend:eS,trim:Zx,stripBOM:tS,inherits:nS,toFlatObject:rS,kindOf:lu,kindOfTest:Yn,endsWith:iS,toArray:oS,forEachEntry:aS,matchAll:uS,isHTMLForm:lS,hasOwnProperty:Qc,hasOwnProp:Qc,reduceDescriptors:Rm,freezeMethods:fS,toObjectSet:hS,toCamelCase:cS,noop:pS,toFiniteNumber:mS,findKey:Im,global:Si,isContextDefined:Pm,isSpecCompliantForm:gS,toJSONObject:ES,isAsyncFn:yS,isThenable:TS,setImmediate:Lm,asap:bS,isIterable:e=>e!=null&&an(e[uu])},_S=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xS=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
9
|
+
`).forEach(function(u){o=u.indexOf(":"),n=u.substring(0,o).trim().toLowerCase(),r=u.substring(o+1).trim(),!(!n||t[n]&&_S[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function SS(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const wS=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),AS=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Xc(e,t){return j.isArray(e)?e.map(n=>Xc(n,t)):SS(String(e).replace(t,""))}const CS=e=>Xc(e,wS),vS=e=>Xc(e,AS);function Dm(e){const t=Object.create(null);return j.forEach(e.toJSON(),(n,r)=>{t[r]=vS(n)}),t}const Mm=Symbol("internals");function vs(e){return e&&String(e).trim().toLowerCase()}function fu(e){return e===!1||e==null?e:j.isArray(e)?e.map(fu):CS(String(e))}function kS(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const NS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jc(e,t,n,r,o){if(j.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!j.isString(t)){if(j.isString(r))return t.indexOf(r)!==-1;if(j.isRegExp(r))return r.test(t)}}function OS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function IS(e,t){const n=j.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(o,a,u){return this[r].call(this,t,o,a,u)},configurable:!0})})}let en=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(c,d,h){const m=vs(d);if(!m)throw new Error("header name must be a non-empty string");const g=j.findKey(o,m);(!g||o[g]===void 0||h===!0||h===void 0&&o[g]!==!1)&&(o[g||d]=fu(c))}const u=(c,d)=>j.forEach(c,(h,m)=>a(h,m,d));if(j.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(j.isString(t)&&(t=t.trim())&&!NS(t))u(xS(t),n);else if(j.isObject(t)&&j.isIterable(t)){let c={},d,h;for(const m of t){if(!j.isArray(m))throw TypeError("Object iterator must return a key-value pair");c[h=m[0]]=(d=c[h])?j.isArray(d)?[...d,m[1]]:[d,m[1]]:m[1]}u(c,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=vs(t),t){const r=j.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return kS(o);if(j.isFunction(n))return n.call(this,o,r);if(j.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=vs(t),t){const r=j.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Jc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(u){if(u=vs(u),u){const c=j.findKey(r,u);c&&(!n||Jc(r,r[c],c,n))&&(delete r[c],o=!0)}}return j.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||Jc(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return j.forEach(this,(o,a)=>{const u=j.findKey(r,a);if(u){n[u]=fu(o),delete n[a];return}const c=t?OS(a):String(a).trim();c!==a&&delete n[a],n[c]=fu(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return j.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&j.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
10
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Mm]=this[Mm]={accessors:{}}).accessors,o=this.prototype;function a(u){const c=vs(u);r[c]||(IS(o,u),r[c]=!0)}return j.isArray(t)?t.forEach(a):a(t),this}};en.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),j.reduceDescriptors(en.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),j.freezeMethods(en);const PS="[REDACTED ****]";function RS(e){if(j.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(j.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function LS(e,t){const n=new Set(t.map(a=>String(a).toLowerCase())),r=[],o=a=>{if(a===null||typeof a!="object"||j.isBuffer(a))return a;if(r.indexOf(a)!==-1)return;a instanceof en&&(a=a.toJSON()),r.push(a);let u;if(j.isArray(a))u=[],a.forEach((c,d)=>{const h=o(c);j.isUndefined(h)||(u[d]=h)});else{if(!j.isPlainObject(a)&&RS(a))return r.pop(),a;u=Object.create(null);for(const[c,d]of Object.entries(a)){const h=n.has(c.toLowerCase())?PS:o(d);j.isUndefined(h)||(u[c]=h)}}return r.pop(),u};return o(e)}let Ce=class N_ extends Error{static from(t,n,r,o,a,u){const c=new N_(t.message,n||t.code,r,o,a);return c.cause=t,c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),u&&Object.assign(c,u),c}constructor(t,n,r,o,a){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),a&&(this.response=a,this.status=a.status)}toJSON(){const t=this.config,n=t&&j.hasOwnProp(t,"redact")?t.redact:void 0,r=j.isArray(n)&&n.length>0?LS(t,n):j.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};Ce.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Ce.ERR_BAD_OPTION="ERR_BAD_OPTION",Ce.ECONNABORTED="ECONNABORTED",Ce.ETIMEDOUT="ETIMEDOUT",Ce.ECONNREFUSED="ECONNREFUSED",Ce.ERR_NETWORK="ERR_NETWORK",Ce.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Ce.ERR_DEPRECATED="ERR_DEPRECATED",Ce.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Ce.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Ce.ERR_CANCELED="ERR_CANCELED",Ce.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Ce.ERR_INVALID_URL="ERR_INVALID_URL",Ce.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const DS=null;function Zc(e){return j.isPlainObject(e)||j.isArray(e)}function Fm(e){return j.endsWith(e,"[]")?e.slice(0,-2):e}function ed(e,t,n){return e?e.concat(t).map(function(o,a){return o=Fm(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function MS(e){return j.isArray(e)&&!e.some(Zc)}const FS=j.toFlatObject(j,{},null,function(t){return/^is[A-Z]/.test(t)});function hu(e,t,n){if(!j.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=j.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,v){return!j.isUndefined(v[A])});const r=n.metaTokens,o=n.visitor||g,a=n.dots,u=n.indexes,c=n.Blob||typeof Blob!="undefined"&&Blob,d=n.maxDepth===void 0?100:n.maxDepth,h=c&&j.isSpecCompliantForm(t);if(!j.isFunction(o))throw new TypeError("visitor must be a function");function m(S){if(S===null)return"";if(j.isDate(S))return S.toISOString();if(j.isBoolean(S))return S.toString();if(!h&&j.isBlob(S))throw new Ce("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(S)||j.isTypedArray(S)?h&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function g(S,A,v){let I=S;if(j.isReactNative(t)&&j.isReactNativeBlob(S))return t.append(ed(v,A,a),m(S)),!1;if(S&&!v&&typeof S=="object"){if(j.endsWith(A,"{}"))A=r?A:A.slice(0,-2),S=JSON.stringify(S);else if(j.isArray(S)&&MS(S)||(j.isFileList(S)||j.endsWith(A,"[]"))&&(I=j.toArray(S)))return A=Fm(A),I.forEach(function(M,Y){!(j.isUndefined(M)||M===null)&&t.append(u===!0?ed([A],Y,a):u===null?A:A+"[]",m(M))}),!1}return Zc(S)?!0:(t.append(ed(v,A,a),m(S)),!1)}const b=[],T=Object.assign(FS,{defaultVisitor:g,convertValue:m,isVisitable:Zc});function x(S,A,v=0){if(!j.isUndefined(S)){if(v>d)throw new Ce("Object is too deeply nested ("+v+" levels). Max depth: "+d,Ce.ERR_FORM_DATA_DEPTH_EXCEEDED);if(b.indexOf(S)!==-1)throw Error("Circular reference detected in "+A.join("."));b.push(S),j.forEach(S,function(k,M){(!(j.isUndefined(k)||k===null)&&o.call(t,k,j.isString(M)?M.trim():M,A,T))===!0&&x(k,A?A.concat(M):[M],v+1)}),b.pop()}}if(!j.isObject(e))throw new TypeError("data must be an object");return x(e),t}function Bm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function td(e,t){this._pairs=[],e&&hu(e,this,t)}const Um=td.prototype;Um.append=function(t,n){this._pairs.push([t,n])},Um.toString=function(t){const n=t?function(r){return t.call(this,r,Bm)}:Bm;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function BS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Hm(e,t,n){if(!t)return e;const r=n&&n.encode||BS,o=j.isFunction(n)?{serialize:n}:n,a=o&&o.serialize;let u;if(a?u=a(t,o):u=j.isURLSearchParams(t)?t.toString():new td(t,o).toString(r),u){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class zm{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){j.forEach(this.handlers,function(r){r!==null&&t(r)})}}const nd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},US={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams!="undefined"?URLSearchParams:td,FormData:typeof FormData!="undefined"?FormData:null,Blob:typeof Blob!="undefined"?Blob:null},protocols:["http","https","file","blob","url","data"]},rd=typeof window!="undefined"&&typeof document!="undefined",id=typeof navigator=="object"&&navigator||void 0,HS=rd&&(!id||["ReactNative","NativeScript","NS"].indexOf(id.product)<0),zS=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jS=rd&&window.location.href||"http://localhost",Vt=U(U({},Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rd,hasStandardBrowserEnv:HS,hasStandardBrowserWebWorkerEnv:zS,navigator:id,origin:jS},Symbol.toStringTag,{value:"Module"}))),US);function $S(e,t){return hu(e,new Vt.classes.URLSearchParams,U({visitor:function(n,r,o,a){return Vt.isNode&&j.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function VS(e){return j.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function YS(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function jm(e){function t(n,r,o,a){let u=n[a++];if(u==="__proto__")return!0;const c=Number.isFinite(+u),d=a>=n.length;return u=!u&&j.isArray(o)?o.length:u,d?(j.hasOwnProp(o,u)?o[u]=j.isArray(o[u])?o[u].concat(r):[o[u],r]:o[u]=r,!c):((!j.hasOwnProp(o,u)||!j.isObject(o[u]))&&(o[u]=[]),t(n,r,o[u],a)&&j.isArray(o[u])&&(o[u]=YS(o[u])),!c)}if(j.isFormData(e)&&j.isFunction(e.entries)){const n={};return j.forEachEntry(e,(r,o)=>{t(VS(r),o,n,0)}),n}return null}const ho=(e,t)=>e!=null&&j.hasOwnProp(e,t)?e[t]:void 0;function qS(e,t,n){if(j.isString(e))try{return(t||JSON.parse)(e),j.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ks={transitional:nd,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=j.isObject(t);if(a&&j.isHTMLForm(t)&&(t=new FormData(t)),j.isFormData(t))return o?JSON.stringify(jm(t)):t;if(j.isArrayBuffer(t)||j.isBuffer(t)||j.isStream(t)||j.isFile(t)||j.isBlob(t)||j.isReadableStream(t))return t;if(j.isArrayBufferView(t))return t.buffer;if(j.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(a){const d=ho(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return $S(t,d).toString();if((c=j.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=ho(this,"env"),m=h&&h.FormData;return hu(c?{"files[]":t}:t,m&&new m,d)}}return a||o?(n.setContentType("application/json",!1),qS(t)):t}],transformResponse:[function(t){const n=ho(this,"transitional")||ks.transitional,r=n&&n.forcedJSONParsing,o=ho(this,"responseType"),a=o==="json";if(j.isResponse(t)||j.isReadableStream(t))return t;if(t&&j.isString(t)&&(r&&!o||a)){const c=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t,ho(this,"parseReviver"))}catch(d){if(c)throw d.name==="SyntaxError"?Ce.from(d,Ce.ERR_BAD_RESPONSE,this,null,ho(this,"response")):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vt.classes.FormData,Blob:Vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch","query"],e=>{ks.headers[e]={}});function od(e,t){const n=this||ks,r=t||n,o=en.from(r.headers);let a=r.data;return j.forEach(e,function(c){a=c.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function $m(e){return!!(e&&e.__CANCEL__)}let Ns=class extends Ce{constructor(t,n,r){super(t==null?"canceled":t,Ce.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Vm(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ce("Request failed with status code "+n.status,n.status>=400&&n.status<500?Ce.ERR_BAD_REQUEST:Ce.ERR_BAD_RESPONSE,n.config,n.request,n))}function WS(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function GS(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,u;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),m=r[a];u||(u=h),n[o]=d,r[o]=h;let g=a,b=0;for(;g!==o;)b+=n[g++],g=g%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),h-u<t)return;const T=m&&h-m;return T?Math.round(b*1e3/T):void 0}}function KS(e,t){let n=0,r=1e3/t,o,a;const u=(h,m=Date.now())=>{n=m,o=null,a&&(clearTimeout(a),a=null),e(...h)};return[(...h)=>{const m=Date.now(),g=m-n;g>=r?u(h,m):(o=h,a||(a=setTimeout(()=>{a=null,u(o)},r-g)))},()=>o&&u(o)]}const pu=(e,t,n=3)=>{let r=0;const o=GS(50,250);return KS(a=>{if(!a||typeof a.loaded!="number")return;const u=a.loaded,c=a.lengthComputable?a.total:void 0,d=c!=null?Math.min(u,c):u,h=Math.max(0,d-r),m=o(h);r=Math.max(r,d);const g={loaded:d,total:c,progress:c?d/c:void 0,bytes:h,rate:m||void 0,estimated:m&&c?(c-d)/m:void 0,event:a,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(g)},n)},Ym=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},qm=e=>(...t)=>j.asap(()=>e(...t)),QS=Vt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Vt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Vt.origin),Vt.navigator&&/(msie|trident)/i.test(Vt.navigator.userAgent)):()=>!0,XS=Vt.hasStandardBrowserEnv?{write(e,t,n,r,o,a,u){if(typeof document=="undefined")return;const c=[`${e}=${encodeURIComponent(t)}`];j.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),j.isString(r)&&c.push(`path=${r}`),j.isString(o)&&c.push(`domain=${o}`),a===!0&&c.push("secure"),j.isString(u)&&c.push(`SameSite=${u}`),document.cookie=c.join("; ")},read(e){if(typeof document=="undefined")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===e)return decodeURIComponent(r.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function JS(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ZS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Wm(e,t,n){let r=!JS(t);return e&&(r||n===!1)?ZS(e,t):t}const Gm=e=>e instanceof en?U({},e):e;function wi(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(h,m,g,b){return j.isPlainObject(h)&&j.isPlainObject(m)?j.merge.call({caseless:b},h,m):j.isPlainObject(m)?j.merge({},m):j.isArray(m)?m.slice():m}function o(h,m,g,b){if(j.isUndefined(m)){if(!j.isUndefined(h))return r(void 0,h,g,b)}else return r(h,m,g,b)}function a(h,m){if(!j.isUndefined(m))return r(void 0,m)}function u(h,m){if(j.isUndefined(m)){if(!j.isUndefined(h))return r(void 0,h)}else return r(void 0,m)}function c(h,m,g){if(j.hasOwnProp(t,g))return r(h,m);if(j.hasOwnProp(e,g))return r(void 0,h)}const d={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,allowedSocketPaths:u,responseEncoding:u,validateStatus:c,headers:(h,m,g)=>o(Gm(h),Gm(m),g,!0)};return j.forEach(Object.keys(U(U({},e),t)),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;const g=j.hasOwnProp(d,m)?d[m]:o,b=j.hasOwnProp(e,m)?e[m]:void 0,T=j.hasOwnProp(t,m)?t[m]:void 0,x=g(b,T,m);j.isUndefined(x)&&g!==c||(n[m]=x)}),n}const ew=["content-type","content-length"];function tw(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,o])=>{ew.includes(r.toLowerCase())&&e.set(r,o)})}const nw=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),Km=e=>{const t=wi({},e),n=b=>j.hasOwnProp(t,b)?t[b]:void 0,r=n("data");let o=n("withXSRFToken");const a=n("xsrfHeaderName"),u=n("xsrfCookieName");let c=n("headers");const d=n("auth"),h=n("baseURL"),m=n("allowAbsoluteUrls"),g=n("url");if(t.headers=c=en.from(c),t.url=Hm(Wm(h,g,m),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?nw(d.password):""))),j.isFormData(r)&&(Vt.hasStandardBrowserEnv||Vt.hasStandardBrowserWebWorkerEnv?c.setContentType(void 0):j.isFunction(r.getHeaders)&&tw(c,r.getHeaders(),n("formDataHeaderPolicy"))),Vt.hasStandardBrowserEnv&&(j.isFunction(o)&&(o=o(t)),o===!0||o==null&&QS(t.url))){const T=a&&u&&XS.read(u);T&&c.set(a,T)}return t},rw=typeof XMLHttpRequest!="undefined"&&function(e){return new Promise(function(n,r){const o=Km(e);let a=o.data;const u=en.from(o.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:h}=o,m,g,b,T,x;function S(){T&&T(),x&&x(),o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function v(){if(!A)return;const k=en.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),Y={data:!c||c==="text"||c==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:k,config:e,request:A};Vm(function(J){n(J),S()},function(J){r(J),S()},Y),A=null}"onloadend"in A?A.onloadend=v:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.startsWith("file:"))||setTimeout(v)},A.onabort=function(){A&&(r(new Ce("Request aborted",Ce.ECONNABORTED,e,A)),S(),A=null)},A.onerror=function(M){const Y=M&&M.message?M.message:"Network Error",F=new Ce(Y,Ce.ERR_NETWORK,e,A);F.event=M||null,r(F),S(),A=null},A.ontimeout=function(){let M=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const Y=o.transitional||nd;o.timeoutErrorMessage&&(M=o.timeoutErrorMessage),r(new Ce(M,Y.clarifyTimeoutError?Ce.ETIMEDOUT:Ce.ECONNABORTED,e,A)),S(),A=null},a===void 0&&u.setContentType(null),"setRequestHeader"in A&&j.forEach(Dm(u),function(M,Y){A.setRequestHeader(Y,M)}),j.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),c&&c!=="json"&&(A.responseType=o.responseType),h&&([b,x]=pu(h,!0),A.addEventListener("progress",b)),d&&A.upload&&([g,T]=pu(d),A.upload.addEventListener("progress",g),A.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(m=k=>{A&&(r(!k||k.type?new Ns(null,e,A):k),A.abort(),S(),A=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const I=WS(o.url);if(I&&!Vt.protocols.includes(I)){r(new Ce("Unsupported protocol "+I+":",Ce.ERR_BAD_REQUEST,e));return}A.send(a||null)})},iw=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const o=function(d){if(!r){r=!0,u();const h=d instanceof Error?d:this.reason;n.abort(h instanceof Ce?h:new Ns(h instanceof Error?h.message:h))}};let a=t&&setTimeout(()=>{a=null,o(new Ce(`timeout of ${t}ms exceeded`,Ce.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),e=null)};e.forEach(d=>d.addEventListener("abort",o));const{signal:c}=n;return c.unsubscribe=()=>j.asap(u),c},ow=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},sw=function(e,t){return tm(this,null,function*(){try{for(var n=k_(aw(e)),r,o,a;r=!(o=yield new so(n.next())).done;r=!1){const u=o.value;yield*nm(ow(u,t))}}catch(o){a=[o]}finally{try{r&&(o=n.return)&&(yield new so(o.call(n)))}finally{if(a)throw a[0]}}})},aw=function(e){return tm(this,null,function*(){if(e[Symbol.asyncIterator]){yield*nm(e);return}const t=e.getReader();try{for(;;){const{done:n,value:r}=yield new so(t.read());if(n)break;yield r}}finally{yield new so(t.cancel())}})},Qm=(e,t,n,r)=>{const o=sw(e,t);let a=0,u,c=h=>{u||(u=!0,r&&r(h))};return new ReadableStream({pull(h){return et(this,null,function*(){try{const{done:m,value:g}=yield o.next();if(m){c(),h.close();return}let b=g.byteLength;if(n){let T=a+=b;n(T)}h.enqueue(new Uint8Array(g))}catch(m){throw c(m),m}})},cancel(h){return c(h),o.return()}},{highWaterMark:2})};function uw(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let u=r.length;const c=r.length;for(let T=0;T<c;T++)if(r.charCodeAt(T)===37&&T+2<c){const x=r.charCodeAt(T+1),S=r.charCodeAt(T+2);(x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102)&&(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102)&&(u-=2,T+=2)}let d=0,h=c-1;const m=T=>T>=2&&r.charCodeAt(T-2)===37&&r.charCodeAt(T-1)===51&&(r.charCodeAt(T)===68||r.charCodeAt(T)===100);h>=0&&(r.charCodeAt(h)===61?(d++,h--):m(h)&&(d++,h-=3)),d===1&&h>=0&&(r.charCodeAt(h)===61||m(h))&&d++;const b=Math.floor(u/4)*3-(d||0);return b>0?b:0}if(typeof Buffer!="undefined"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let a=0;for(let u=0,c=r.length;u<c;u++){const d=r.charCodeAt(u);if(d<128)a+=1;else if(d<2048)a+=2;else if(d>=55296&&d<=56319&&u+1<c){const h=r.charCodeAt(u+1);h>=56320&&h<=57343?(a+=4,u++):a+=3}else a+=3}return a}const sd="1.16.1",Xm=64*1024,{isFunction:mu}=j,Jm=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},lw=e=>{const t=j.global!==void 0&&j.global!==null?j.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=j.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:a,Response:u}=e,c=o?mu(o):typeof fetch=="function",d=mu(a),h=mu(u);if(!c)return!1;const m=c&&mu(n),g=c&&(typeof r=="function"?(v=>I=>v.encode(I))(new r):v=>et(null,null,function*(){return new Uint8Array(yield new a(v).arrayBuffer())})),b=d&&m&&Jm(()=>{let v=!1;const I=new a(Vt.origin,{body:new n,method:"POST",get duplex(){return v=!0,"half"}}),k=I.headers.has("Content-Type");return I.body!=null&&I.body.cancel(),v&&!k}),T=h&&m&&Jm(()=>j.isReadableStream(new u("").body)),x={stream:T&&(v=>v.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!x[v]&&(x[v]=(I,k)=>{let M=I&&I[v];if(M)return M.call(I);throw new Ce(`Response type '${v}' is not supported`,Ce.ERR_NOT_SUPPORT,k)})});const S=v=>et(null,null,function*(){if(v==null)return 0;if(j.isBlob(v))return v.size;if(j.isSpecCompliantForm(v))return(yield new a(Vt.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(j.isArrayBufferView(v)||j.isArrayBuffer(v))return v.byteLength;if(j.isURLSearchParams(v)&&(v=v+""),j.isString(v))return(yield g(v)).byteLength}),A=(v,I)=>et(null,null,function*(){const k=j.toFiniteNumber(v.getContentLength());return k==null?S(I):k});return v=>et(null,null,function*(){let{url:I,method:k,data:M,signal:Y,cancelToken:F,timeout:J,onDownloadProgress:Ee,onUploadProgress:xe,responseType:z,headers:se,withCredentials:me="same-origin",fetchOptions:de,maxContentLength:le,maxBodyLength:Te}=Km(v);const Re=j.isNumber(le)&&le>-1,ce=j.isNumber(Te)&&Te>-1;let G=o||fetch;z=z?(z+"").toLowerCase():"text";let ee=iw([Y,F&&F.toAbortSignal()],J),w=null;const D=ee&&ee.unsubscribe&&(()=>{ee.unsubscribe()});let Q;try{if(Re&&typeof I=="string"&&I.startsWith("data:")&&uw(I)>le)throw new Ce("maxContentLength size of "+le+" exceeded",Ce.ERR_BAD_RESPONSE,v,w);if(ce&&k!=="get"&&k!=="head"){const we=yield A(se,M);if(typeof we=="number"&&isFinite(we)&&we>Te)throw new Ce("Request body larger than maxBodyLength limit",Ce.ERR_BAD_REQUEST,v,w)}if(xe&&b&&k!=="get"&&k!=="head"&&(Q=yield A(se,M))!==0){let we=new a(I,{method:"POST",body:M,duplex:"half"}),Ye;if(j.isFormData(M)&&(Ye=we.headers.get("content-type"))&&se.setContentType(Ye),we.body){const[ut,pn]=Ym(Q,pu(qm(xe)));M=Qm(we.body,Xm,ut,pn)}}j.isString(me)||(me=me?"include":"omit");const N=d&&"credentials"in a.prototype;if(j.isFormData(M)){const we=se.getContentType();we&&/^multipart\/form-data/i.test(we)&&!/boundary=/i.test(we)&&se.delete("content-type")}se.set("User-Agent","axios/"+sd,!1);const be=re(U({},de),{signal:ee,method:k.toUpperCase(),headers:Dm(se.normalize()),body:M,duplex:"half",credentials:N?me:void 0});w=d&&new a(I,be);let Le=yield d?G(w,de):G(I,be);if(Re){const we=j.toFiniteNumber(Le.headers.get("content-length"));if(we!=null&&we>le)throw new Ce("maxContentLength size of "+le+" exceeded",Ce.ERR_BAD_RESPONSE,v,w)}const Oe=T&&(z==="stream"||z==="response");if(T&&Le.body&&(Ee||Re||Oe&&D)){const we={};["status","statusText","headers"].forEach(Xn=>{we[Xn]=Le[Xn]});const Ye=j.toFiniteNumber(Le.headers.get("content-length")),[ut,pn]=Ee&&Ym(Ye,pu(qm(Ee),!0))||[];let Yi=0;const Xr=Xn=>{if(Re&&(Yi=Xn,Yi>le))throw new Ce("maxContentLength size of "+le+" exceeded",Ce.ERR_BAD_RESPONSE,v,w);ut&&ut(Xn)};Le=new u(Qm(Le.body,Xm,Xr,()=>{pn&&pn(),D&&D()}),we)}z=z||"text";let ze=yield x[j.findKey(x,z)||"text"](Le,v);if(Re&&!T&&!Oe){let we;if(ze!=null&&(typeof ze.byteLength=="number"?we=ze.byteLength:typeof ze.size=="number"?we=ze.size:typeof ze=="string"&&(we=typeof r=="function"?new r().encode(ze).byteLength:ze.length)),typeof we=="number"&&we>le)throw new Ce("maxContentLength size of "+le+" exceeded",Ce.ERR_BAD_RESPONSE,v,w)}return!Oe&&D&&D(),yield new Promise((we,Ye)=>{Vm(we,Ye,{data:ze,headers:en.from(Le.headers),status:Le.status,statusText:Le.statusText,config:v,request:w})})}catch(N){if(D&&D(),ee&&ee.aborted&&ee.reason instanceof Ce){const be=ee.reason;throw be.config=v,w&&(be.request=w),N!==be&&(be.cause=N),be}throw N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new Ce("Network Error",Ce.ERR_NETWORK,v,w,N&&N.response),{cause:N.cause||N}):Ce.from(N,N&&N.code,v,w,N&&N.response)}})},cw=new Map,Zm=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let u=a.length,c=u,d,h,m=cw;for(;c--;)d=a[c],h=m.get(d),h===void 0&&m.set(d,h=c?new Map:lw(t)),m=h;return h};Zm();const ad={http:DS,xhr:rw,fetch:{get:Zm}};j.forEach(ad,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(n){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const e0=e=>`- ${e}`,dw=e=>j.isFunction(e)||e===null||e===!1;function fw(e,t){e=j.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let u=0;u<n;u++){r=e[u];let c;if(o=r,!dw(r)&&(o=ad[(c=String(r)).toLowerCase()],o===void 0))throw new Ce(`Unknown adapter '${c}'`);if(o&&(j.isFunction(o)||(o=o.get(t))))break;a[c||"#"+u]=o}if(!o){const u=Object.entries(a).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?u.length>1?`since :
|
|
11
|
+
`+u.map(e0).join(`
|
|
12
|
+
`):" "+e0(u[0]):"as no adapter specified";throw new Ce("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return o}const t0={getAdapter:fw,adapters:ad};function ud(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ns(null,e)}function n0(e){return ud(e),e.headers=en.from(e.headers),e.data=od.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),t0.getAdapter(e.adapter||ks.adapter,e)(e).then(function(r){ud(e),e.response=r;try{r.data=od.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=en.from(r.headers),r},function(r){if(!$m(r)&&(ud(e),r&&r.response)){e.response=r.response;try{r.response.data=od.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=en.from(r.response.headers)}return Promise.reject(r)})}const gu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const r0={};gu.transitional=function(t,n,r){function o(a,u){return"[Axios v"+sd+"] Transitional option '"+a+"'"+u+(r?". "+r:"")}return(a,u,c)=>{if(t===!1)throw new Ce(o(u," has been removed"+(n?" in "+n:"")),Ce.ERR_DEPRECATED);return n&&!r0[u]&&(r0[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,u,c):!0}},gu.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function hw(e,t,n){if(typeof e!="object")throw new Ce("options must be an object",Ce.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],u=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(u){const c=e[a],d=c===void 0||u(c,a,e);if(d!==!0)throw new Ce("option "+a+" must be "+d,Ce.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ce("Unknown option "+a,Ce.ERR_BAD_OPTION)}}const Eu={assertOptions:hw,validators:gu},In=Eu.validators;let Ai=class{constructor(t){this.defaults=t||{},this.interceptors={request:new zm,response:new zm}}request(t,n){return et(this,null,function*(){try{return yield this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=(()=>{if(!o.stack)return"";const u=o.stack.indexOf(`
|
|
13
|
+
`);return u===-1?"":o.stack.slice(u+1)})();try{if(!r.stack)r.stack=a;else if(a){const u=a.indexOf(`
|
|
14
|
+
`),c=u===-1?-1:a.indexOf(`
|
|
15
|
+
`,u+1),d=c===-1?"":a.slice(c+1);String(r.stack).endsWith(d)||(r.stack+=`
|
|
16
|
+
`+a)}}catch(u){}}throw r}})}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wi(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&Eu.assertOptions(r,{silentJSONParsing:In.transitional(In.boolean),forcedJSONParsing:In.transitional(In.boolean),clarifyTimeoutError:In.transitional(In.boolean),legacyInterceptorReqResOrdering:In.transitional(In.boolean)},!1),o!=null&&(j.isFunction(o)?n.paramsSerializer={serialize:o}:Eu.assertOptions(o,{encode:In.function,serialize:In.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Eu.assertOptions(n,{baseUrl:In.spelling("baseURL"),withXsrfToken:In.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=a&&j.merge(a.common,a[n.method]);a&&j.forEach(["delete","get","head","post","put","patch","query","common"],x=>{delete a[x]}),n.headers=en.concat(u,a);const c=[];let d=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(n)===!1)return;d=d&&S.synchronous;const A=n.transitional||nd;A&&A.legacyInterceptorReqResOrdering?c.unshift(S.fulfilled,S.rejected):c.push(S.fulfilled,S.rejected)});const h=[];this.interceptors.response.forEach(function(S){h.push(S.fulfilled,S.rejected)});let m,g=0,b;if(!d){const x=[n0.bind(this),void 0];for(x.unshift(...c),x.push(...h),b=x.length,m=Promise.resolve(n);g<b;)m=m.then(x[g++],x[g++]);return m}b=c.length;let T=n;for(;g<b;){const x=c[g++],S=c[g++];try{T=x(T)}catch(A){S.call(this,A);break}}try{m=n0.call(this,T)}catch(x){return Promise.reject(x)}for(g=0,b=h.length;g<b;)m=m.then(h[g++],h[g++]);return m}getUri(t){t=wi(this.defaults,t);const n=Wm(t.baseURL,t.url,t.allowAbsoluteUrls);return Hm(n,t.params,t.paramsSerializer)}};j.forEach(["delete","get","head","options"],function(t){Ai.prototype[t]=function(n,r){return this.request(wi(r||{},{method:t,url:n,data:(r||{}).data}))}}),j.forEach(["post","put","patch","query"],function(t){function n(r){return function(a,u,c){return this.request(wi(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}Ai.prototype[t]=n(),t!=="query"&&(Ai.prototype[t+"Form"]=n(!0))});let pw=class O_{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const u=new Promise(c=>{r.subscribe(c),a=c}).then(o);return u.cancel=function(){r.unsubscribe(a)},u},t(function(a,u,c){r.reason||(r.reason=new Ns(a,u,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new O_(function(o){t=o}),cancel:t}}};function mw(e){return function(n){return e.apply(null,n)}}function gw(e){return j.isObject(e)&&e.isAxiosError===!0}const ld={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ld).forEach(([e,t])=>{ld[t]=e});function i0(e){const t=new Ai(e),n=Am(Ai.prototype.request,t);return j.extend(n,Ai.prototype,t,{allOwnKeys:!0}),j.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return i0(wi(e,o))},n}const bt=i0(ks);bt.Axios=Ai,bt.CanceledError=Ns,bt.CancelToken=pw,bt.isCancel=$m,bt.VERSION=sd,bt.toFormData=hu,bt.AxiosError=Ce,bt.Cancel=bt.CanceledError,bt.all=function(t){return Promise.all(t)},bt.spread=mw,bt.isAxiosError=gw,bt.mergeConfig=wi,bt.AxiosHeaders=en,bt.formToJSON=e=>jm(j.isHTMLForm(e)?new FormData(e):e),bt.getAdapter=t0.getAdapter,bt.HttpStatusCode=ld,bt.default=bt;const{Axios:VM,AxiosError:YM,CanceledError:qM,isCancel:WM,CancelToken:GM,VERSION:KM,all:QM,Cancel:XM,isAxiosError:JM,spread:ZM,toFormData:eF,AxiosHeaders:tF,HttpStatusCode:nF,formToJSON:rF,getAdapter:iF,mergeConfig:oF,create:sF}=bt;class Ew{constructor(t,n,r,o=!1){Ne(this,"CIMULATE_API_HEADER","x-cimulate-api-key");Ne(this,"CIMULATE_SEARCH_API_HOST","search.cimulate");Ne(this,"CIMULATE_SEARCH_API_PATH","api/v1");Ne(this,"baseApiUrl");Ne(this,"headers",{});Ne(this,"fetchConfig",()=>et(this,null,function*(){try{const t=yield bt.get(`${this.apiUrl}/configs/copilot`,{headers:this.headers}),{customer_config:n}=t.data,r=atob(n);return JSON.parse(r)}catch(t){throw console.error("Error fetching customer config:",t),t}}));Ne(this,"_mapCopilotUrlToSearchUrl",(t="",n=!1)=>{if(t.endsWith("io")){const o=new URL(t);return o.hostname=o.hostname.replace(/^copilot\./,"api."),o.origin}return n?`https://staging.${this.CIMULATE_SEARCH_API_HOST}.ai`:`https://prod.${this.CIMULATE_SEARCH_API_HOST}.ai`});if(n&&r||!n&&!r)throw new Error("Provide exactly one authentication method: either 'apiKey' or 'apiToken', but not both.");n?this.headers[this.CIMULATE_API_HEADER]=n:r&&(this.headers.Authorization=`Bearer ${r}`),this.baseApiUrl=this._mapCopilotUrlToSearchUrl(t,o)}get apiUrl(){return`${this.baseApiUrl}/${this.CIMULATE_SEARCH_API_PATH}`}}class yw{constructor(t,n,r,o=!1){Ne(this,"apiService");Ne(this,"config",null);Ne(this,"getConfig",()=>et(this,null,function*(){if(this.config)return this.config;try{const t=yield this.apiService.fetchConfig();return this.config=t,this.config}catch(t){throw console.error("Failed to fetch customer config:",t),t}}));Ne(this,"getPid",t=>this.getProductFieldValue(t,"pidCol"));Ne(this,"getName",t=>this.getProductFieldValue(t,"nameCol"));Ne(this,"getDescription",t=>this.getProductFieldValue(t,"description"));Ne(this,"getBrand",t=>this.getProductFieldValue(t,"productBrandCol"));Ne(this,"getPrice",t=>this.getProductFieldValue(t,"priceCol"));Ne(this,"getRelativePdp",t=>this.getProductFieldValue(t,"relativePdpCol"));Ne(this,"getPdp",t=>this.getProductFieldValue(t,"pdpCol"));Ne(this,"getImage",t=>this.getProductFieldValue(t,"imageCol"));Ne(this,"getProductHiddenFields",()=>{const t=this.getProductField("productHiddenFields");return Array.isArray(t)?t:[]});Ne(this,"getProductField",t=>this.config?this.config[t]:"");Ne(this,"getProductFieldValue",(t,n)=>{const r=this.getProductField(n);return r&&t[r]||""});this.apiService=new Ew(t,n,r,o)}getPriceDisplay(t){const n=this.getPrice(t);return n?typeof n=="string"?n.includes("$")?n:`$${n}`:typeof n=="number"?new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(n):n:""}}const Ci=(e,t,n,...r)=>{if(!e)return;const o=["background: linear-gradient(90deg,rgba(253, 99, 99, 1) 0%, rgba(245, 139, 35, 1) 65%)","font-weight: bold","color: transparent","background-clip: text","text-fill-color: transparent"].join(";");console[t]("%c[cimulate-widget]",o,n,...r)};class Tw{constructor(t=!1){Ne(this,"isDevelopment");Ne(this,"_log",(t,n,...r)=>{Ci(this.isDevelopment,t,n,...r)});this.isDevelopment=t}log(t,...n){this._log("log",t,...n)}warn(t,...n){this._log("warn",t,...n)}error(t,...n){this._log("error",t,...n)}info(t,...n){this._log("info",t,...n)}debug(t,...n){this._log("debug",t,...n)}}const o0=te.createContext(null),bw=({mode:e,logoUrl:t,headerText:n="Your Search Assistant",globalClassName:r="",entryMessage:o,openLinksInNewTab:a=!1,disclaimerText:u,disclaimerMarkdown:c,clientContext:d,searchPlaceholder:h,searchButtonLabel:m,searchConfig:g,componentConfig:b,conversationHistory:T,resetConversationMessage:x="",apiKey:S,apiToken:A,baseUrl:v,theme:I,isDevelopment:k,__features:M,children:Y})=>{const F=te.useMemo(()=>e==="messaging"?{config:null}:new yw(v,S,A,k),[e,v,S,A,k]),J=te.useMemo(()=>new Tw(k),[k]);te.useEffect(()=>{e!=="messaging"&&(!F||F.config||F.getConfig())},[F,e]);const Ee=te.useMemo(()=>Rx(I),[I]),xe=te.useMemo(()=>{const se=(g==null?void 0:g.placeholder)||h,me=(g==null?void 0:g.buttonLabel)||m;let de="icon";return g!=null&&g.buttonType?de=g.buttonType:m&&(de="text"),re(U({},g||{}),{placeholder:se,buttonLabel:me,buttonType:de})},[g,h,m]),z=te.useMemo(()=>({configModule:F,logoUrl:t,headerText:n,entryMessage:o,globalClassName:r,openLinksInNewTab:a,disclaimerText:u,disclaimerMarkdown:c,clientContext:d,themeVariables:Ee,logger:J,searchConfig:xe,enableMinimize:!!(b!=null&&b.enableMinimize),resetConversationMessage:x,conversationHistory:{sinceHours:typeof(T==null?void 0:T.sinceHours)=="number"?T.sinceHours:1,limit:T==null?void 0:T.limit},features:M}),[F,t,n,o,r,d,u,c,a,xe,b,x,J,Ee,T,M]);return L.jsx(o0.Provider,{value:z,children:Y})},tn=()=>{const e=te.useContext(o0);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},s0={connectionStatus:"disconnected",loading:!0,conversationId:null,messages:[],streamingContent:"",isAgentTyping:!1,routingResult:null,error:null};function _w(e,t){switch(t.type){case"SET_CONNECTION_STATUS":return U(re(U({},e),{connectionStatus:t.status}),t.status==="connected"||t.status==="connecting"?{error:null}:{});case"SET_LOADING":return re(U({},e),{loading:t.isLoading});case"SET_CONVERSATION_ID":return re(U({},e),{conversationId:t.id});case"ADD_MESSAGE":return re(U({},e),{messages:[...e.messages,re(U({},t.message),{type:"ADD_MESSAGE"})]});case"APPEND_STREAMING_TOKEN":return re(U({},e),{streamingContent:e.streamingContent+t.token});case"FLUSH_STREAMING":return re(U({},e),{messages:[...e.messages,re(U({},t.message),{type:"FLUSH_STREAMING"})],streamingContent:"",isAgentTyping:!1,loading:!1});case"SET_AGENT_TYPING":return re(U({},e),{isAgentTyping:t.isTyping,loading:t.isTyping});case"SET_ROUTING_RESULT":return re(U({},e),{routingResult:t.result});case"SET_ERROR":return re(U({},e),{error:t.error,loading:!1});case"RESET":return re(U({},s0),{connectionStatus:e.connectionStatus,loading:!0});default:return e}}const a0=te.createContext({connectionStatus:"disconnected",isConnected:!1,isAgentTyping:!1,conversationId:null,messages:[],streamingContent:"",loading:!0,error:null,sendMessage:()=>{},resetConversation:()=>{}}),u0=({scrt2Url:e,orgId:t,esDeveloperName:n,routingAttributes:r,enableLogging:o=!1,onConnect:a,onMessage:u,onError:c,children:d})=>{const{logger:h}=tn(),[m,g]=te.useReducer(_w,s0),b=te.useRef(null),T=te.useRef(u),x=te.useRef(c),S=te.useRef(a);T.current=u,x.current=c,S.current=a,te.useEffect(()=>{const k=new Ix({baseURL:e,orgId:t,esDeveloperName:n,options:{enableLogging:o}});return b.current=k,k.on("connected",()=>{var M;g({type:"SET_CONNECTION_STATUS",status:"connected"}),(M=S.current)==null||M.call(S)}),k.on("disconnected",()=>{g({type:"SET_CONNECTION_STATUS",status:"disconnected"})}),k.on("reconnecting",()=>{g({type:"SET_CONNECTION_STATUS",status:"reconnecting"})}),k.on("message",M=>{var F;const Y={id:M.messageId||crypto.randomUUID(),role:"agent",content:M.content,timestamp:M.timestamp,sender:M.sender,raw:M};g({type:"FLUSH_STREAMING",message:Y}),(F=T.current)==null||F.call(T,Y)}),k.on("streaming_token",M=>{g({type:"APPEND_STREAMING_TOKEN",token:M.token})}),k.on("typing_started",()=>{g({type:"SET_AGENT_TYPING",isTyping:!0})}),k.on("typing_stopped",()=>{g({type:"SET_AGENT_TYPING",isTyping:!1})}),k.on("routing_result",M=>{var Y;if(g({type:"SET_ROUTING_RESULT",result:M}),!M.isSuccessful){const F=`Routing failed: ${M.failureType||"unknown"}`;g({type:"SET_ERROR",error:F}),(Y=x.current)==null||Y.call(x,F)}}),k.on("participant_changed",M=>{if(M.participant.name==="Automated Process")return;const Y={id:crypto.randomUUID(),role:"system",content:M.action==="add"?`${M.participant.name||"Agent"} joined the conversation`:`${M.participant.name||"Agent"} left the conversation`,timestamp:new Date().toISOString()};h==null||h.log("🦜 MessagingProvider participant_changed event received",{event:M}),g({type:"ADD_MESSAGE",message:Y})}),k.on("conversation_closed",()=>{const M={id:crypto.randomUUID(),role:"system",content:"Conversation reset",timestamp:new Date().toISOString()};g({type:"ADD_MESSAGE",message:M}),g({type:"SET_CONVERSATION_ID",id:null})}),k.on("error",M=>{var Y;h==null||h.log("🦜 MessagingProvider ERROR event received",{event:M}),g({type:"SET_ERROR",error:M.message}),M.recoverable||g({type:"SET_CONNECTION_STATUS",status:"error"}),(Y=x.current)==null||Y.call(x,M.message)}),g({type:"SET_CONNECTION_STATUS",status:"connecting"}),k.connect().then(()=>k.createConversation(r)).then(M=>{g({type:"SET_CONVERSATION_ID",id:M})}).catch(M=>{var Y;g({type:"SET_CONNECTION_STATUS",status:"error"}),g({type:"SET_ERROR",error:M.message}),(Y=x.current)==null||Y.call(x,M.message)}),()=>{k.endConversation().finally(()=>{k.disconnect(),k.off()}),b.current=null}},[e,t,n]);const A=te.useCallback(k=>{if(!k.trim())return;const M=b.current;if(!M)return;const Y={id:crypto.randomUUID(),role:"user",content:k,timestamp:new Date().toISOString()};g({type:"ADD_MESSAGE",message:Y}),g({type:"SET_LOADING",isLoading:!0}),M.sendMessage(k).catch(F=>{var J;g({type:"SET_ERROR",error:F.message}),(J=x.current)==null||J.call(x,F.message)})},[]),v=te.useCallback(()=>{const k=b.current;k&&(g({type:"RESET"}),g({type:"SET_CONNECTION_STATUS",status:"connecting"}),k.endConversation().then(()=>k.createConversation(r)).then(M=>{g({type:"SET_CONVERSATION_ID",id:M}),g({type:"SET_CONNECTION_STATUS",status:"connected"})}).catch(M=>{var Y;g({type:"SET_ERROR",error:M.message}),g({type:"SET_CONNECTION_STATUS",status:"error"}),(Y=x.current)==null||Y.call(x,M.message)}))},[r]),I=te.useMemo(()=>({connectionStatus:m.connectionStatus,isConnected:m.connectionStatus==="connected",isAgentTyping:m.isAgentTyping,conversationId:m.conversationId,messages:m.messages,streamingContent:m.streamingContent,error:m.error,loading:m.loading,sendMessage:A,resetConversation:v}),[m,A,v]);return L.jsx(a0.Provider,{value:I,children:d})};function xw(){var e=te.useRef(!0);return e.current?(e.current=!1,!0):e.current}function Sw(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function ww(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var cd=typeof window!="undefined",yu=function(e){te.useEffect(e,[])},Aw=function(e){var t=te.useRef(e);t.current=e,yu(function(){return function(){return t.current()}})},Cw=function(e){var t=te.useRef(0),n=te.useState(e),r=n[0],o=n[1],a=te.useCallback(function(u){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){o(u)})},[]);return Aw(function(){cancelAnimationFrame(t.current)}),[r,a]},vw=function(e,t){return e===t};function kw(e,t){t===void 0&&(t=vw);var n=te.useRef(),r=te.useRef(e),o=xw();return!o&&!t(r.current,e)&&(n.current=r.current,r.current=e),n.current}var Nw=function(e){var t={},n=t.initialWidth,r=n===void 0?1/0:n,o=t.initialHeight,a=o===void 0?1/0:o,u=t.onChange,c=Cw({width:cd?window.innerWidth:r,height:cd?window.innerHeight:a}),d=c[0],h=c[1];return te.useEffect(function(){if(cd){var m=function(){var g=window.innerWidth,b=window.innerHeight;h({width:g,height:b}),u&&u(g,b)};return Sw(window,"resize",m),function(){ww(window,"resize",m)}}},[]),d};const Tu="cimulate",Ow=`${Tu}:pdp-update`,Iw=`${Tu}:browse-update`,Pw=`${Tu}:search-update`,dd=`${Tu}:ui-state-update`,ar=U({CONTEXT_UPDATED:"browse-context-updated",CATEGORY_ID_CHANGED:"category-id-changed",CATEGORY_NAME_CHANGED:"category-name-changed"},wm),Rw={"browse-context":ar.CONTEXT_UPDATED,categoryId:ar.CATEGORY_ID_CHANGED,categoryName:ar.CATEGORY_NAME_CHANGED,page:ar.PAGE_CHANGED,pageSize:ar.PAGE_SIZE_CHANGED,includeFacets:ar.FACET_FILTERS_CHANGED,facetFilters:ar.FACET_FILTERS_CHANGED,rangeFilters:ar.RANGE_FILTERS_CHANGED,catalogSegment:ar.CATALOG_SEGMENT_CHANGED,pricebooks:ar.PRICEBOOKS_CHANGED},Lw=e=>{window.addEventListener(dd,e)},Dw=e=>{window.removeEventListener(dd,e)},Mw=(e,t)=>{const n=new CustomEvent(dd,{detail:{property:e,value:t}});window.dispatchEvent(n)},l0=e=>{if(!["ask_cim","search","browse","pdp"].includes(e))throw new Error(`Invalid entryType: "${e}". Must be 'ask_cim', 'search', 'browse', or 'pdp'.`);at.entryTypeProxy.entryType=e},vi=e=>{const t=at.statusProxy.isOpen,n=typeof e=="boolean"?e:!t;at.statusProxy.isOpen=n,n&&(at.statusProxy.isMinimized=!1)},bu=e=>{const t=at.statusProxy.isMinimized,n=typeof e=="boolean"?e:!t;at.statusProxy.isMinimized=n,n&&(at.statusProxy.isOpen=!1)},fd=e=>{at.modalProxy.isFullscreen=e},_u=e=>{if(!["chat","dialog","modal"].includes(e))throw new Error(`Invalid type: ${e}. Must be 'chat', 'dialog', or 'modal'.`);at.statusProxy.type=e,e==="dialog"||e==="chat"?at.modeProxy.mode="embedded":at.modeProxy.mode="standalone"},hd=e=>{const t=["top","top-left","top-right","bottom","bottom-left","bottom-right","left","right","center"];if(!t.includes(e))throw new Error(`Invalid position: ${e}. Must be one of ${t.join(", ")}.`);at.dialogProxy.position=e};class Fw{constructor(){Ne(this,"initialState",{connected:!1,mode:"embedded",entryType:"search",status:{type:"dialog",isOpen:!1,isMinimized:!1},dialog:{position:"bottom-left"},modal:{isFullscreen:!1}});Ne(this,"connectedProxy");Ne(this,"modeProxy");Ne(this,"entryTypeProxy");Ne(this,"statusProxy");Ne(this,"dialogProxy");Ne(this,"modalProxy",{isFullscreen:!1});Ne(this,"_fullGet",(t,n)=>Reflect.get(t,n));Ne(this,"_fullSet",(t,n,r)=>{if(!(n in t))throw new Error(`Property ${n} does not exist on UIState`);return Mw(n,r),Reflect.set(t,n,r)});this.connectedProxy=new Proxy({connected:this.initialState.connected},{get:this._fullGet,set:this._fullSet}),this.modeProxy=new Proxy({mode:this.initialState.mode},{get:this._fullGet,set:this._fullSet}),this.entryTypeProxy=new Proxy({entryType:this.initialState.entryType},{get:this._fullGet,set:this._fullSet}),this.statusProxy=new Proxy({type:this.initialState.status.type,isOpen:this.initialState.status.isOpen,isMinimized:this.initialState.status.isMinimized},{get:this._fullGet,set:this._fullSet}),this.dialogProxy=new Proxy({position:this.initialState.dialog.position},{get:this._fullGet,set:this._fullSet}),this.modalProxy=new Proxy({isFullscreen:this.initialState.modal.isFullscreen},{get:this._fullGet,set:this._fullSet})}get connected(){return this.connectedProxy.connected}get mode(){return this.modeProxy.mode}get isOpen(){return!!this.statusProxy.isOpen}get isMinimized(){return!!this.statusProxy.isMinimized}get type(){return this.statusProxy.type}get entryType(){return this.entryTypeProxy.entryType}get position(){return this.dialogProxy.position}get state(){return{connected:this.connected,mode:this.mode,entryType:this.entryType,status:{type:this.type,isOpen:this.isOpen,isMinimized:this.isMinimized},dialog:{position:this.position},modal:{isFullscreen:this.modalProxy.isFullscreen}}}}const at=new Fw,c0=te.createContext({mode:at.modeProxy.mode,entryType:at.entryType,status:at.statusProxy,dialogPosition:at.dialogProxy.position,isModalFullscreen:at.modalProxy.isFullscreen,previousComponentType:at.statusProxy.type}),Bw=({entryType:e,componentConfig:t,componentType:n,children:r})=>{const[o,a]=te.useState(e!=null?e:at.entryTypeProxy.entryType),[u,c]=te.useState(at.modeProxy.mode),[d,h]=te.useState({type:n||at.statusProxy.type,isOpen:at.statusProxy.isOpen,isMinimized:at.statusProxy.isMinimized}),[m,g]=te.useState(at.dialogProxy.position),[b,T]=te.useState(at.modalProxy.isFullscreen),x=kw(d.type);te.useEffect(()=>{const A=v=>{const{property:I,value:k}=v.detail||{};if(!(!I||k===void 0)){if(I==="mode"){c(k);return}if(I==="entryType"){a(k);return}if(I==="isMinimized"){h(M=>re(U({},M),{isMinimized:k}));return}if(I==="isOpen"){h(M=>re(U({},M),{isOpen:k}));return}if(I==="type"){h(M=>re(U({},M),{type:k}));return}if(I==="position"){g(k);return}if(I==="isFullscreen"){T(k);return}}};return Lw(A),()=>{Dw(A)}},[]),yu(()=>{e&&l0(e)}),yu(()=>{const A=n||(t==null?void 0:t.type);A&&_u(A),t&&"isOpen"in t&&vi(!!t.isOpen),t&&"isMinimized"in t&&bu(!!t.isMinimized)}),yu(()=>{if(!(t!=null&&t.options))return;const{dialogPosition:A}=t.options;A&&hd(A),"isModalFullscreen"in t.options&&fd(!!t.options.isModalFullscreen)});const S=te.useMemo(()=>({mode:u,entryType:o,status:d,previousComponentType:x||"dialog",dialogPosition:m,isModalFullscreen:b}),[u,o,d,x,m,b]);return L.jsx(c0.Provider,{value:S,children:r})},d0=({mode:e,apiKey:t,apiToken:n,baseUrl:r,logoUrl:o,headerText:a,theme:u,openLinksInNewTab:c,globalClassName:d,isDevelopment:h=!1,componentType:m,componentConfig:g,entryType:b,entryMessage:T,disclaimerText:x,disclaimerMarkdown:S,clientContext:A,searchPlaceholder:v,searchButtonLabel:I,searchConfig:k,resetConversationMessage:M,conversationHistory:Y,messagingConfig:F,__features:J,children:Ee})=>L.jsx(bw,{mode:e,baseUrl:r,apiKey:t,apiToken:n,logoUrl:o,headerText:a,entryMessage:T,theme:u,globalClassName:d,openLinksInNewTab:c,searchPlaceholder:v,searchButtonLabel:I,searchConfig:k,componentConfig:g,clientContext:A,disclaimerMarkdown:S,disclaimerText:x,resetConversationMessage:M,conversationHistory:Y,isDevelopment:h,__features:J,children:L.jsx(Bw,{entryType:b,componentConfig:g,componentType:m,children:L.jsx(u0,{scrt2Url:(F==null?void 0:F.scrt2Url)||"",orgId:(F==null?void 0:F.orgId)||"",esDeveloperName:(F==null?void 0:F.esDeveloperName)||"",routingAttributes:(F==null?void 0:F.routingAttributes)||{},enableLogging:h,children:Ee})})}),po=()=>{const e=te.useContext(c0);if(!e)throw new Error("useUIState must be used within a UIStateProvider");return e};var pd={exports:{}},un={},md={exports:{}},gd={};var f0;function Uw(){return f0||(f0=1,(function(e){function t(G,ee){var w=G.length;G.push(ee);e:for(;0<w;){var D=w-1>>>1,Q=G[D];if(0<o(Q,ee))G[D]=ee,G[w]=Q,w=D;else break e}}function n(G){return G.length===0?null:G[0]}function r(G){if(G.length===0)return null;var ee=G[0],w=G.pop();if(w!==ee){G[0]=w;e:for(var D=0,Q=G.length,N=Q>>>1;D<N;){var be=2*(D+1)-1,Le=G[be],Oe=be+1,ze=G[Oe];if(0>o(Le,w))Oe<Q&&0>o(ze,Le)?(G[D]=ze,G[Oe]=w,D=Oe):(G[D]=Le,G[be]=w,D=be);else if(Oe<Q&&0>o(ze,w))G[D]=ze,G[Oe]=w,D=Oe;else break e}}return ee}function o(G,ee){var w=G.sortIndex-ee.sortIndex;return w!==0?w:G.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var d=[],h=[],m=1,g=null,b=3,T=!1,x=!1,S=!1,A=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(G){for(var ee=n(h);ee!==null;){if(ee.callback===null)r(h);else if(ee.startTime<=G)r(h),ee.sortIndex=ee.expirationTime,t(d,ee);else break;ee=n(h)}}function M(G){if(S=!1,k(G),!x)if(n(d)!==null)x=!0,Re(Y);else{var ee=n(h);ee!==null&&ce(M,ee.startTime-G)}}function Y(G,ee){x=!1,S&&(S=!1,v(Ee),Ee=-1),T=!0;var w=b;try{for(k(ee),g=n(d);g!==null&&(!(g.expirationTime>ee)||G&&!se());){var D=g.callback;if(typeof D=="function"){g.callback=null,b=g.priorityLevel;var Q=D(g.expirationTime<=ee);ee=e.unstable_now(),typeof Q=="function"?g.callback=Q:g===n(d)&&r(d),k(ee)}else r(d);g=n(d)}if(g!==null)var N=!0;else{var be=n(h);be!==null&&ce(M,be.startTime-ee),N=!1}return N}finally{g=null,b=w,T=!1}}var F=!1,J=null,Ee=-1,xe=5,z=-1;function se(){return!(e.unstable_now()-z<xe)}function me(){if(J!==null){var G=e.unstable_now();z=G;var ee=!0;try{ee=J(!0,G)}finally{ee?de():(F=!1,J=null)}}else F=!1}var de;if(typeof I=="function")de=function(){I(me)};else if(typeof MessageChannel!="undefined"){var le=new MessageChannel,Te=le.port2;le.port1.onmessage=me,de=function(){Te.postMessage(null)}}else de=function(){A(me,0)};function Re(G){J=G,F||(F=!0,de())}function ce(G,ee){Ee=A(function(){G(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(G){G.callback=null},e.unstable_continueExecution=function(){x||T||(x=!0,Re(Y))},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xe=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(G){switch(b){case 1:case 2:case 3:var ee=3;break;default:ee=b}var w=b;b=ee;try{return G()}finally{b=w}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(G,ee){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var w=b;b=G;try{return ee()}finally{b=w}},e.unstable_scheduleCallback=function(G,ee,w){var D=e.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?D+w:D):w=D,G){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=w+Q,G={id:m++,callback:ee,priorityLevel:G,startTime:w,expirationTime:Q,sortIndex:-1},w>D?(G.sortIndex=w,t(h,G),n(d)===null&&G===n(h)&&(S?(v(Ee),Ee=-1):S=!0,ce(M,w-D))):(G.sortIndex=Q,t(d,G),x||T||(x=!0,Re(Y))),G},e.unstable_shouldYield=se,e.unstable_wrapCallback=function(G){var ee=b;return function(){var w=b;b=ee;try{return G.apply(this,arguments)}finally{b=w}}}})(gd)),gd}var h0;function Hw(){return h0||(h0=1,md.exports=Uw()),md.exports}var p0;function zw(){if(p0)return un;p0=1;var e=ao(),t=Hw();function n(i){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+i,l=1;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function a(i,s){u(i,s),u(i+"Capture",s)}function u(i,s){for(o[i]=s,i=0;i<s.length;i++)r.add(s[i])}var c=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},g={};function b(i){return d.call(g,i)?!0:d.call(m,i)?!1:h.test(i)?g[i]=!0:(m[i]=!0,!1)}function T(i,s,l,f){if(l!==null&&l.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return f?!1:l!==null?!l.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function x(i,s,l,f){if(s===null||typeof s=="undefined"||T(i,s,l,f))return!0;if(f)return!1;if(l!==null)switch(l.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function S(i,s,l,f,E,y,_){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=f,this.attributeNamespace=E,this.mustUseProperty=l,this.propertyName=i,this.type=s,this.sanitizeURL=y,this.removeEmptyString=_}var A={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){A[i]=new S(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var s=i[0];A[s]=new S(s,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){A[i]=new S(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){A[i]=new S(i,2,!1,i,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".split(" ").forEach(function(i){A[i]=new S(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){A[i]=new S(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){A[i]=new S(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){A[i]=new S(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){A[i]=new S(i,5,!1,i.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function I(i){return i[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".split(" ").forEach(function(i){var s=i.replace(v,I);A[s]=new S(s,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var s=i.replace(v,I);A[s]=new S(s,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var s=i.replace(v,I);A[s]=new S(s,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){A[i]=new S(i,1,!1,i.toLowerCase(),null,!1,!1)}),A.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){A[i]=new S(i,1,!1,i.toLowerCase(),null,!0,!0)});function k(i,s,l,f){var E=A.hasOwnProperty(s)?A[s]:null;(E!==null?E.type!==0:f||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(x(s,l,E,f)&&(l=null),f||E===null?b(s)&&(l===null?i.removeAttribute(s):i.setAttribute(s,""+l)):E.mustUseProperty?i[E.propertyName]=l===null?E.type===3?!1:"":l:(s=E.attributeName,f=E.attributeNamespace,l===null?i.removeAttribute(s):(E=E.type,l=E===3||E===4&&l===!0?"":""+l,f?i.setAttributeNS(f,s,l):i.setAttribute(s,l))))}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Y=Symbol.for("react.element"),F=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),Ee=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),se=Symbol.for("react.context"),me=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),Te=Symbol.for("react.memo"),Re=Symbol.for("react.lazy"),ce=Symbol.for("react.offscreen"),G=Symbol.iterator;function ee(i){return i===null||typeof i!="object"?null:(i=G&&i[G]||i["@@iterator"],typeof i=="function"?i:null)}var w=Object.assign,D;function Q(i){if(D===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);D=s&&s[1]||""}return`
|
|
17
|
+
`+D+i}var N=!1;function be(i,s){if(!i||N)return"";N=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(W){var f=W}Reflect.construct(i,[],s)}else{try{s.call()}catch(W){f=W}i.call(s.prototype)}else{try{throw Error()}catch(W){f=W}i()}}catch(W){if(W&&f&&typeof W.stack=="string"){for(var E=W.stack.split(`
|
|
18
|
+
`),y=f.stack.split(`
|
|
19
|
+
`),_=E.length-1,P=y.length-1;1<=_&&0<=P&&E[_]!==y[P];)P--;for(;1<=_&&0<=P;_--,P--)if(E[_]!==y[P]){if(_!==1||P!==1)do if(_--,P--,0>P||E[_]!==y[P]){var B=`
|
|
20
|
+
`+E[_].replace(" at new "," at ");return i.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",i.displayName)),B}while(1<=_&&0<=P);break}}}finally{N=!1,Error.prepareStackTrace=l}return(i=i?i.displayName||i.name:"")?Q(i):""}function Le(i){switch(i.tag){case 5:return Q(i.type);case 16:return Q("Lazy");case 13:return Q("Suspense");case 19:return Q("SuspenseList");case 0:case 2:case 15:return i=be(i.type,!1),i;case 11:return i=be(i.type.render,!1),i;case 1:return i=be(i.type,!0),i;default:return""}}function Oe(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case J:return"Fragment";case F:return"Portal";case xe:return"Profiler";case Ee:return"StrictMode";case de:return"Suspense";case le:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case se:return(i.displayName||"Context")+".Consumer";case z:return(i._context.displayName||"Context")+".Provider";case me:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case Te:return s=i.displayName||null,s!==null?s:Oe(i.type)||"Memo";case Re:s=i._payload,i=i._init;try{return Oe(i(s))}catch(l){}}return null}function ze(i){var s=i.type;switch(i.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=s.render,i=i.displayName||i.name||"",s.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Oe(s);case 8:return s===Ee?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function we(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ye(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function ut(i){var s=Ye(i)?"checked":"value",l=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),f=""+i[s];if(!i.hasOwnProperty(s)&&typeof l!="undefined"&&typeof l.get=="function"&&typeof l.set=="function"){var E=l.get,y=l.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return E.call(this)},set:function(_){f=""+_,y.call(this,_)}}),Object.defineProperty(i,s,{enumerable:l.enumerable}),{getValue:function(){return f},setValue:function(_){f=""+_},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function pn(i){i._valueTracker||(i._valueTracker=ut(i))}function Yi(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var l=s.getValue(),f="";return i&&(f=Ye(i)?i.checked?"true":"false":i.value),i=f,i!==l?(s.setValue(i),!0):!1}function Xr(i){if(i=i||(typeof document!="undefined"?document:void 0),typeof i=="undefined")return null;try{return i.activeElement||i.body}catch(s){return i.body}}function Xn(i,s){var l=s.checked;return w({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l!=null?l:i._wrapperState.initialChecked})}function pa(i,s){var l=s.defaultValue==null?"":s.defaultValue,f=s.checked!=null?s.checked:s.defaultChecked;l=we(s.value!=null?s.value:l),i._wrapperState={initialChecked:f,initialValue:l,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function ma(i,s){s=s.checked,s!=null&&k(i,"checked",s,!1)}function Go(i,s){ma(i,s);var l=we(s.value),f=s.type;if(l!=null)f==="number"?(l===0&&i.value===""||i.value!=l)&&(i.value=""+l):i.value!==""+l&&(i.value=""+l);else if(f==="submit"||f==="reset"){i.removeAttribute("value");return}s.hasOwnProperty("value")?Ko(i,s.type,l):s.hasOwnProperty("defaultValue")&&Ko(i,s.type,we(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(i.defaultChecked=!!s.defaultChecked)}function _l(i,s,l){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var f=s.type;if(!(f!=="submit"&&f!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+i._wrapperState.initialValue,l||s===i.value||(i.value=s),i.defaultValue=s}l=i.name,l!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,l!==""&&(i.name=l)}function Ko(i,s,l){(s!=="number"||Xr(i.ownerDocument)!==i)&&(l==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+l&&(i.defaultValue=""+l))}var Jr=Array.isArray;function Zr(i,s,l,f){if(i=i.options,s){s={};for(var E=0;E<l.length;E++)s["$"+l[E]]=!0;for(l=0;l<i.length;l++)E=s.hasOwnProperty("$"+i[l].value),i[l].selected!==E&&(i[l].selected=E),E&&f&&(i[l].defaultSelected=!0)}else{for(l=""+we(l),s=null,E=0;E<i.length;E++){if(i[E].value===l){i[E].selected=!0,f&&(i[E].defaultSelected=!0);return}s!==null||i[E].disabled||(s=i[E])}s!==null&&(s.selected=!0)}}function ga(i,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return w({},s,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function xl(i,s){var l=s.value;if(l==null){if(l=s.children,s=s.defaultValue,l!=null){if(s!=null)throw Error(n(92));if(Jr(l)){if(1<l.length)throw Error(n(93));l=l[0]}s=l}s==null&&(s=""),l=s}i._wrapperState={initialValue:we(l)}}function Sl(i,s){var l=we(s.value),f=we(s.defaultValue);l!=null&&(l=""+l,l!==i.value&&(i.value=l),s.defaultValue==null&&i.defaultValue!==l&&(i.defaultValue=l)),f!=null&&(i.defaultValue=""+f)}function wl(i){var s=i.textContent;s===i._wrapperState.initialValue&&s!==""&&s!==null&&(i.value=s)}function Z(i){switch(i){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ye(i,s){return i==null||i==="http://www.w3.org/1999/xhtml"?Z(s):i==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var Ue,qe=(function(i){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(s,l,f,E){MSApp.execUnsafeLocalFunction(function(){return i(s,l,f,E)})}:i})(function(i,s){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=s;else{for(Ue=Ue||document.createElement("div"),Ue.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Ue.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;s.firstChild;)i.appendChild(s.firstChild)}});function Xe(i,s){if(s){var l=i.firstChild;if(l&&l===i.lastChild&&l.nodeType===3){l.nodeValue=s;return}}i.textContent=s}var Ht={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},Pr=["Webkit","ms","Moz","O"];Object.keys(Ht).forEach(function(i){Pr.forEach(function(s){s=s+i.charAt(0).toUpperCase()+i.substring(1),Ht[s]=Ht[i]})});function Mn(i,s,l){return s==null||typeof s=="boolean"||s===""?"":l||typeof s!="number"||s===0||Ht.hasOwnProperty(i)&&Ht[i]?(""+s).trim():s+"px"}function ei(i,s){i=i.style;for(var l in s)if(s.hasOwnProperty(l)){var f=l.indexOf("--")===0,E=Mn(l,s[l],f);l==="float"&&(l="cssFloat"),f?i.setProperty(l,E):i[l]=E}}var qi=w({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zt(i,s){if(s){if(qi[i]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function Tr(i,s){if(i.indexOf("-")===-1)return typeof s.is=="string";switch(i){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 An=null;function mh(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var gh=null,Qo=null,Xo=null;function $T(i){if(i=Ba(i)){if(typeof gh!="function")throw Error(n(280));var s=i.stateNode;s&&(s=Wl(s),gh(i.stateNode,i.type,s))}}function VT(i){Qo?Xo?Xo.push(i):Xo=[i]:Qo=i}function YT(){if(Qo){var i=Qo,s=Xo;if(Xo=Qo=null,$T(i),s)for(i=0;i<s.length;i++)$T(s[i])}}function qT(i,s){return i(s)}function WT(){}var Eh=!1;function GT(i,s,l){if(Eh)return i(s,l);Eh=!0;try{return qT(i,s,l)}finally{Eh=!1,(Qo!==null||Xo!==null)&&(WT(),YT())}}function Ea(i,s){var l=i.stateNode;if(l===null)return null;var f=Wl(l);if(f===null)return null;l=f[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(i=i.type,f=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!f;break e;default:i=!1}if(i)return null;if(l&&typeof l!="function")throw Error(n(231,s,typeof l));return l}var yh=!1;if(c)try{var ya={};Object.defineProperty(ya,"passive",{get:function(){yh=!0}}),window.addEventListener("test",ya,ya),window.removeEventListener("test",ya,ya)}catch(i){yh=!1}function U5(i,s,l,f,E,y,_,P,B){var W=Array.prototype.slice.call(arguments,3);try{s.apply(l,W)}catch(oe){this.onError(oe)}}var Ta=!1,Al=null,Cl=!1,Th=null,H5={onError:function(i){Ta=!0,Al=i}};function z5(i,s,l,f,E,y,_,P,B){Ta=!1,Al=null,U5.apply(H5,arguments)}function j5(i,s,l,f,E,y,_,P,B){if(z5.apply(this,arguments),Ta){if(Ta){var W=Al;Ta=!1,Al=null}else throw Error(n(198));Cl||(Cl=!0,Th=W)}}function Wi(i){var s=i,l=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(l=s.return),i=s.return;while(i)}return s.tag===3?l:null}function KT(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function QT(i){if(Wi(i)!==i)throw Error(n(188))}function $5(i){var s=i.alternate;if(!s){if(s=Wi(i),s===null)throw Error(n(188));return s!==i?null:i}for(var l=i,f=s;;){var E=l.return;if(E===null)break;var y=E.alternate;if(y===null){if(f=E.return,f!==null){l=f;continue}break}if(E.child===y.child){for(y=E.child;y;){if(y===l)return QT(E),i;if(y===f)return QT(E),s;y=y.sibling}throw Error(n(188))}if(l.return!==f.return)l=E,f=y;else{for(var _=!1,P=E.child;P;){if(P===l){_=!0,l=E,f=y;break}if(P===f){_=!0,f=E,l=y;break}P=P.sibling}if(!_){for(P=y.child;P;){if(P===l){_=!0,l=y,f=E;break}if(P===f){_=!0,f=y,l=E;break}P=P.sibling}if(!_)throw Error(n(189))}}if(l.alternate!==f)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?i:s}function XT(i){return i=$5(i),i!==null?JT(i):null}function JT(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var s=JT(i);if(s!==null)return s;i=i.sibling}return null}var ZT=t.unstable_scheduleCallback,eb=t.unstable_cancelCallback,V5=t.unstable_shouldYield,Y5=t.unstable_requestPaint,xt=t.unstable_now,q5=t.unstable_getCurrentPriorityLevel,bh=t.unstable_ImmediatePriority,tb=t.unstable_UserBlockingPriority,vl=t.unstable_NormalPriority,W5=t.unstable_LowPriority,nb=t.unstable_IdlePriority,kl=null,br=null;function G5(i){if(br&&typeof br.onCommitFiberRoot=="function")try{br.onCommitFiberRoot(kl,i,void 0,(i.current.flags&128)===128)}catch(s){}}var Jn=Math.clz32?Math.clz32:X5,K5=Math.log,Q5=Math.LN2;function X5(i){return i>>>=0,i===0?32:31-(K5(i)/Q5|0)|0}var Nl=64,Ol=4194304;function ba(i){switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function Il(i,s){var l=i.pendingLanes;if(l===0)return 0;var f=0,E=i.suspendedLanes,y=i.pingedLanes,_=l&268435455;if(_!==0){var P=_&~E;P!==0?f=ba(P):(y&=_,y!==0&&(f=ba(y)))}else _=l&~E,_!==0?f=ba(_):y!==0&&(f=ba(y));if(f===0)return 0;if(s!==0&&s!==f&&(s&E)===0&&(E=f&-f,y=s&-s,E>=y||E===16&&(y&4194240)!==0))return s;if((f&4)!==0&&(f|=l&16),s=i.entangledLanes,s!==0)for(i=i.entanglements,s&=f;0<s;)l=31-Jn(s),E=1<<l,f|=i[l],s&=~E;return f}function J5(i,s){switch(i){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Z5(i,s){for(var l=i.suspendedLanes,f=i.pingedLanes,E=i.expirationTimes,y=i.pendingLanes;0<y;){var _=31-Jn(y),P=1<<_,B=E[_];B===-1?((P&l)===0||(P&f)!==0)&&(E[_]=J5(P,s)):B<=s&&(i.expiredLanes|=P),y&=~P}}function _h(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function rb(){var i=Nl;return Nl<<=1,(Nl&4194240)===0&&(Nl=64),i}function xh(i){for(var s=[],l=0;31>l;l++)s.push(i);return s}function _a(i,s,l){i.pendingLanes|=s,s!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,s=31-Jn(s),i[s]=l}function e8(i,s){var l=i.pendingLanes&~s;i.pendingLanes=s,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=s,i.mutableReadLanes&=s,i.entangledLanes&=s,s=i.entanglements;var f=i.eventTimes;for(i=i.expirationTimes;0<l;){var E=31-Jn(l),y=1<<E;s[E]=0,f[E]=-1,i[E]=-1,l&=~y}}function Sh(i,s){var l=i.entangledLanes|=s;for(i=i.entanglements;l;){var f=31-Jn(l),E=1<<f;E&s|i[f]&s&&(i[f]|=s),l&=~E}}var tt=0;function ib(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var ob,wh,sb,ab,ub,Ah=!1,Pl=[],ti=null,ni=null,ri=null,xa=new Map,Sa=new Map,ii=[],t8="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function lb(i,s){switch(i){case"focusin":case"focusout":ti=null;break;case"dragenter":case"dragleave":ni=null;break;case"mouseover":case"mouseout":ri=null;break;case"pointerover":case"pointerout":xa.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sa.delete(s.pointerId)}}function wa(i,s,l,f,E,y){return i===null||i.nativeEvent!==y?(i={blockedOn:s,domEventName:l,eventSystemFlags:f,nativeEvent:y,targetContainers:[E]},s!==null&&(s=Ba(s),s!==null&&wh(s)),i):(i.eventSystemFlags|=f,s=i.targetContainers,E!==null&&s.indexOf(E)===-1&&s.push(E),i)}function n8(i,s,l,f,E){switch(s){case"focusin":return ti=wa(ti,i,s,l,f,E),!0;case"dragenter":return ni=wa(ni,i,s,l,f,E),!0;case"mouseover":return ri=wa(ri,i,s,l,f,E),!0;case"pointerover":var y=E.pointerId;return xa.set(y,wa(xa.get(y)||null,i,s,l,f,E)),!0;case"gotpointercapture":return y=E.pointerId,Sa.set(y,wa(Sa.get(y)||null,i,s,l,f,E)),!0}return!1}function cb(i){var s=Gi(i.target);if(s!==null){var l=Wi(s);if(l!==null){if(s=l.tag,s===13){if(s=KT(l),s!==null){i.blockedOn=s,ub(i.priority,function(){sb(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){i.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Rl(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var l=vh(i.domEventName,i.eventSystemFlags,s[0],i.nativeEvent);if(l===null){l=i.nativeEvent;var f=new l.constructor(l.type,l);An=f,l.target.dispatchEvent(f),An=null}else return s=Ba(l),s!==null&&wh(s),i.blockedOn=l,!1;s.shift()}return!0}function db(i,s,l){Rl(i)&&l.delete(s)}function r8(){Ah=!1,ti!==null&&Rl(ti)&&(ti=null),ni!==null&&Rl(ni)&&(ni=null),ri!==null&&Rl(ri)&&(ri=null),xa.forEach(db),Sa.forEach(db)}function Aa(i,s){i.blockedOn===s&&(i.blockedOn=null,Ah||(Ah=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,r8)))}function Ca(i){function s(E){return Aa(E,i)}if(0<Pl.length){Aa(Pl[0],i);for(var l=1;l<Pl.length;l++){var f=Pl[l];f.blockedOn===i&&(f.blockedOn=null)}}for(ti!==null&&Aa(ti,i),ni!==null&&Aa(ni,i),ri!==null&&Aa(ri,i),xa.forEach(s),Sa.forEach(s),l=0;l<ii.length;l++)f=ii[l],f.blockedOn===i&&(f.blockedOn=null);for(;0<ii.length&&(l=ii[0],l.blockedOn===null);)cb(l),l.blockedOn===null&&ii.shift()}var Jo=M.ReactCurrentBatchConfig,Ll=!0;function i8(i,s,l,f){var E=tt,y=Jo.transition;Jo.transition=null;try{tt=1,Ch(i,s,l,f)}finally{tt=E,Jo.transition=y}}function o8(i,s,l,f){var E=tt,y=Jo.transition;Jo.transition=null;try{tt=4,Ch(i,s,l,f)}finally{tt=E,Jo.transition=y}}function Ch(i,s,l,f){if(Ll){var E=vh(i,s,l,f);if(E===null)Vh(i,s,f,Dl,l),lb(i,f);else if(n8(E,i,s,l,f))f.stopPropagation();else if(lb(i,f),s&4&&-1<t8.indexOf(i)){for(;E!==null;){var y=Ba(E);if(y!==null&&ob(y),y=vh(i,s,l,f),y===null&&Vh(i,s,f,Dl,l),y===E)break;E=y}E!==null&&f.stopPropagation()}else Vh(i,s,f,null,l)}}var Dl=null;function vh(i,s,l,f){if(Dl=null,i=mh(f),i=Gi(i),i!==null)if(s=Wi(i),s===null)i=null;else if(l=s.tag,l===13){if(i=KT(s),i!==null)return i;i=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null);return Dl=i,null}function fb(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(q5()){case bh:return 1;case tb:return 4;case vl:case W5:return 16;case nb:return 536870912;default:return 16}default:return 16}}var oi=null,kh=null,Ml=null;function hb(){if(Ml)return Ml;var i,s=kh,l=s.length,f,E="value"in oi?oi.value:oi.textContent,y=E.length;for(i=0;i<l&&s[i]===E[i];i++);var _=l-i;for(f=1;f<=_&&s[l-f]===E[y-f];f++);return Ml=E.slice(i,1<f?1-f:void 0)}function Fl(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Bl(){return!0}function pb(){return!1}function Cn(i){function s(l,f,E,y,_){this._reactName=l,this._targetInst=E,this.type=f,this.nativeEvent=y,this.target=_,this.currentTarget=null;for(var P in i)i.hasOwnProperty(P)&&(l=i[P],this[P]=l?l(y):y[P]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Bl:pb,this.isPropagationStopped=pb,this}return w(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Bl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Bl)},persist:function(){},isPersistent:Bl}),s}var Zo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nh=Cn(Zo),va=w({},Zo,{view:0,detail:0}),s8=Cn(va),Oh,Ih,ka,Ul=w({},va,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rh,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==ka&&(ka&&i.type==="mousemove"?(Oh=i.screenX-ka.screenX,Ih=i.screenY-ka.screenY):Ih=Oh=0,ka=i),Oh)},movementY:function(i){return"movementY"in i?i.movementY:Ih}}),mb=Cn(Ul),a8=w({},Ul,{dataTransfer:0}),u8=Cn(a8),l8=w({},va,{relatedTarget:0}),Ph=Cn(l8),c8=w({},Zo,{animationName:0,elapsedTime:0,pseudoElement:0}),d8=Cn(c8),f8=w({},Zo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),h8=Cn(f8),p8=w({},Zo,{data:0}),gb=Cn(p8),m8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g8={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},E8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y8(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=E8[i])?!!s[i]:!1}function Rh(){return y8}var T8=w({},va,{key:function(i){if(i.key){var s=m8[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Fl(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?g8[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rh,charCode:function(i){return i.type==="keypress"?Fl(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Fl(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),b8=Cn(T8),_8=w({},Ul,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eb=Cn(_8),x8=w({},va,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rh}),S8=Cn(x8),w8=w({},Zo,{propertyName:0,elapsedTime:0,pseudoElement:0}),A8=Cn(w8),C8=w({},Ul,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),v8=Cn(C8),k8=[9,13,27,32],Lh=c&&"CompositionEvent"in window,Na=null;c&&"documentMode"in document&&(Na=document.documentMode);var N8=c&&"TextEvent"in window&&!Na,yb=c&&(!Lh||Na&&8<Na&&11>=Na),Tb=" ",bb=!1;function _b(i,s){switch(i){case"keyup":return k8.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xb(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var es=!1;function O8(i,s){switch(i){case"compositionend":return xb(s);case"keypress":return s.which!==32?null:(bb=!0,Tb);case"textInput":return i=s.data,i===Tb&&bb?null:i;default:return null}}function I8(i,s){if(es)return i==="compositionend"||!Lh&&_b(i,s)?(i=hb(),Ml=kh=oi=null,es=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return yb&&s.locale!=="ko"?null:s.data;default:return null}}var P8={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Sb(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!P8[i.type]:s==="textarea"}function wb(i,s,l,f){VT(f),s=Vl(s,"onChange"),0<s.length&&(l=new Nh("onChange","change",null,l,f),i.push({event:l,listeners:s}))}var Oa=null,Ia=null;function R8(i){jb(i,0)}function Hl(i){var s=os(i);if(Yi(s))return i}function L8(i,s){if(i==="change")return s}var Ab=!1;if(c){var Dh;if(c){var Mh="oninput"in document;if(!Mh){var Cb=document.createElement("div");Cb.setAttribute("oninput","return;"),Mh=typeof Cb.oninput=="function"}Dh=Mh}else Dh=!1;Ab=Dh&&(!document.documentMode||9<document.documentMode)}function vb(){Oa&&(Oa.detachEvent("onpropertychange",kb),Ia=Oa=null)}function kb(i){if(i.propertyName==="value"&&Hl(Ia)){var s=[];wb(s,Ia,i,mh(i)),GT(R8,s)}}function D8(i,s,l){i==="focusin"?(vb(),Oa=s,Ia=l,Oa.attachEvent("onpropertychange",kb)):i==="focusout"&&vb()}function M8(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Hl(Ia)}function F8(i,s){if(i==="click")return Hl(s)}function B8(i,s){if(i==="input"||i==="change")return Hl(s)}function U8(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Zn=typeof Object.is=="function"?Object.is:U8;function Pa(i,s){if(Zn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var l=Object.keys(i),f=Object.keys(s);if(l.length!==f.length)return!1;for(f=0;f<l.length;f++){var E=l[f];if(!d.call(s,E)||!Zn(i[E],s[E]))return!1}return!0}function Nb(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Ob(i,s){var l=Nb(i);i=0;for(var f;l;){if(l.nodeType===3){if(f=i+l.textContent.length,i<=s&&f>=s)return{node:l,offset:s-i};i=f}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Nb(l)}}function Ib(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?Ib(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function Pb(){for(var i=window,s=Xr();s instanceof i.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch(f){l=!1}if(l)i=s.contentWindow;else break;s=Xr(i.document)}return s}function Fh(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function H8(i){var s=Pb(),l=i.focusedElem,f=i.selectionRange;if(s!==l&&l&&l.ownerDocument&&Ib(l.ownerDocument.documentElement,l)){if(f!==null&&Fh(l)){if(s=f.start,i=f.end,i===void 0&&(i=s),"selectionStart"in l)l.selectionStart=s,l.selectionEnd=Math.min(i,l.value.length);else if(i=(s=l.ownerDocument||document)&&s.defaultView||window,i.getSelection){i=i.getSelection();var E=l.textContent.length,y=Math.min(f.start,E);f=f.end===void 0?y:Math.min(f.end,E),!i.extend&&y>f&&(E=f,f=y,y=E),E=Ob(l,y);var _=Ob(l,f);E&&_&&(i.rangeCount!==1||i.anchorNode!==E.node||i.anchorOffset!==E.offset||i.focusNode!==_.node||i.focusOffset!==_.offset)&&(s=s.createRange(),s.setStart(E.node,E.offset),i.removeAllRanges(),y>f?(i.addRange(s),i.extend(_.node,_.offset)):(s.setEnd(_.node,_.offset),i.addRange(s)))}}for(s=[],i=l;i=i.parentNode;)i.nodeType===1&&s.push({element:i,left:i.scrollLeft,top:i.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<s.length;l++)i=s[l],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var z8=c&&"documentMode"in document&&11>=document.documentMode,ts=null,Bh=null,Ra=null,Uh=!1;function Rb(i,s,l){var f=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Uh||ts==null||ts!==Xr(f)||(f=ts,"selectionStart"in f&&Fh(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Ra&&Pa(Ra,f)||(Ra=f,f=Vl(Bh,"onSelect"),0<f.length&&(s=new Nh("onSelect","select",null,s,l),i.push({event:s,listeners:f}),s.target=ts)))}function zl(i,s){var l={};return l[i.toLowerCase()]=s.toLowerCase(),l["Webkit"+i]="webkit"+s,l["Moz"+i]="moz"+s,l}var ns={animationend:zl("Animation","AnimationEnd"),animationiteration:zl("Animation","AnimationIteration"),animationstart:zl("Animation","AnimationStart"),transitionend:zl("Transition","TransitionEnd")},Hh={},Lb={};c&&(Lb=document.createElement("div").style,"AnimationEvent"in window||(delete ns.animationend.animation,delete ns.animationiteration.animation,delete ns.animationstart.animation),"TransitionEvent"in window||delete ns.transitionend.transition);function jl(i){if(Hh[i])return Hh[i];if(!ns[i])return i;var s=ns[i],l;for(l in s)if(s.hasOwnProperty(l)&&l in Lb)return Hh[i]=s[l];return i}var Db=jl("animationend"),Mb=jl("animationiteration"),Fb=jl("animationstart"),Bb=jl("transitionend"),Ub=new Map,Hb="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function si(i,s){Ub.set(i,s),a(s,[i])}for(var zh=0;zh<Hb.length;zh++){var jh=Hb[zh],j8=jh.toLowerCase(),$8=jh[0].toUpperCase()+jh.slice(1);si(j8,"on"+$8)}si(Db,"onAnimationEnd"),si(Mb,"onAnimationIteration"),si(Fb,"onAnimationStart"),si("dblclick","onDoubleClick"),si("focusin","onFocus"),si("focusout","onBlur"),si(Bb,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var La="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),V8=new Set("cancel close invalid load scroll toggle".split(" ").concat(La));function zb(i,s,l){var f=i.type||"unknown-event";i.currentTarget=l,j5(f,s,void 0,i),i.currentTarget=null}function jb(i,s){s=(s&4)!==0;for(var l=0;l<i.length;l++){var f=i[l],E=f.event;f=f.listeners;e:{var y=void 0;if(s)for(var _=f.length-1;0<=_;_--){var P=f[_],B=P.instance,W=P.currentTarget;if(P=P.listener,B!==y&&E.isPropagationStopped())break e;zb(E,P,W),y=B}else for(_=0;_<f.length;_++){if(P=f[_],B=P.instance,W=P.currentTarget,P=P.listener,B!==y&&E.isPropagationStopped())break e;zb(E,P,W),y=B}}}if(Cl)throw i=Th,Cl=!1,Th=null,i}function lt(i,s){var l=s[Qh];l===void 0&&(l=s[Qh]=new Set);var f=i+"__bubble";l.has(f)||($b(s,i,2,!1),l.add(f))}function $h(i,s,l){var f=0;s&&(f|=4),$b(l,i,f,s)}var $l="_reactListening"+Math.random().toString(36).slice(2);function Da(i){if(!i[$l]){i[$l]=!0,r.forEach(function(l){l!=="selectionchange"&&(V8.has(l)||$h(l,!1,i),$h(l,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[$l]||(s[$l]=!0,$h("selectionchange",!1,s))}}function $b(i,s,l,f){switch(fb(s)){case 1:var E=i8;break;case 4:E=o8;break;default:E=Ch}l=E.bind(null,s,l,i),E=void 0,!yh||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(E=!0),f?E!==void 0?i.addEventListener(s,l,{capture:!0,passive:E}):i.addEventListener(s,l,!0):E!==void 0?i.addEventListener(s,l,{passive:E}):i.addEventListener(s,l,!1)}function Vh(i,s,l,f,E){var y=f;if((s&1)===0&&(s&2)===0&&f!==null)e:for(;;){if(f===null)return;var _=f.tag;if(_===3||_===4){var P=f.stateNode.containerInfo;if(P===E||P.nodeType===8&&P.parentNode===E)break;if(_===4)for(_=f.return;_!==null;){var B=_.tag;if((B===3||B===4)&&(B=_.stateNode.containerInfo,B===E||B.nodeType===8&&B.parentNode===E))return;_=_.return}for(;P!==null;){if(_=Gi(P),_===null)return;if(B=_.tag,B===5||B===6){f=y=_;continue e}P=P.parentNode}}f=f.return}GT(function(){var W=y,oe=mh(l),ue=[];e:{var ne=Ub.get(i);if(ne!==void 0){var _e=Nh,Ae=i;switch(i){case"keypress":if(Fl(l)===0)break e;case"keydown":case"keyup":_e=b8;break;case"focusin":Ae="focus",_e=Ph;break;case"focusout":Ae="blur",_e=Ph;break;case"beforeblur":case"afterblur":_e=Ph;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_e=mb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_e=u8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_e=S8;break;case Db:case Mb:case Fb:_e=d8;break;case Bb:_e=A8;break;case"scroll":_e=s8;break;case"wheel":_e=v8;break;case"copy":case"cut":case"paste":_e=h8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_e=Eb}var ve=(s&4)!==0,St=!ve&&i==="scroll",$=ve?ne!==null?ne+"Capture":null:ne;ve=[];for(var H=W,q;H!==null;){q=H;var ge=q.stateNode;if(q.tag===5&&ge!==null&&(q=ge,$!==null&&(ge=Ea(H,$),ge!=null&&ve.push(Ma(H,ge,q)))),St)break;H=H.return}0<ve.length&&(ne=new _e(ne,Ae,null,l,oe),ue.push({event:ne,listeners:ve}))}}if((s&7)===0){e:{if(ne=i==="mouseover"||i==="pointerover",_e=i==="mouseout"||i==="pointerout",ne&&l!==An&&(Ae=l.relatedTarget||l.fromElement)&&(Gi(Ae)||Ae[Rr]))break e;if((_e||ne)&&(ne=oe.window===oe?oe:(ne=oe.ownerDocument)?ne.defaultView||ne.parentWindow:window,_e?(Ae=l.relatedTarget||l.toElement,_e=W,Ae=Ae?Gi(Ae):null,Ae!==null&&(St=Wi(Ae),Ae!==St||Ae.tag!==5&&Ae.tag!==6)&&(Ae=null)):(_e=null,Ae=W),_e!==Ae)){if(ve=mb,ge="onMouseLeave",$="onMouseEnter",H="mouse",(i==="pointerout"||i==="pointerover")&&(ve=Eb,ge="onPointerLeave",$="onPointerEnter",H="pointer"),St=_e==null?ne:os(_e),q=Ae==null?ne:os(Ae),ne=new ve(ge,H+"leave",_e,l,oe),ne.target=St,ne.relatedTarget=q,ge=null,Gi(oe)===W&&(ve=new ve($,H+"enter",Ae,l,oe),ve.target=q,ve.relatedTarget=St,ge=ve),St=ge,_e&&Ae)t:{for(ve=_e,$=Ae,H=0,q=ve;q;q=rs(q))H++;for(q=0,ge=$;ge;ge=rs(ge))q++;for(;0<H-q;)ve=rs(ve),H--;for(;0<q-H;)$=rs($),q--;for(;H--;){if(ve===$||$!==null&&ve===$.alternate)break t;ve=rs(ve),$=rs($)}ve=null}else ve=null;_e!==null&&Vb(ue,ne,_e,ve,!1),Ae!==null&&St!==null&&Vb(ue,St,Ae,ve,!0)}}e:{if(ne=W?os(W):window,_e=ne.nodeName&&ne.nodeName.toLowerCase(),_e==="select"||_e==="input"&&ne.type==="file")var ke=L8;else if(Sb(ne))if(Ab)ke=B8;else{ke=M8;var Me=D8}else(_e=ne.nodeName)&&_e.toLowerCase()==="input"&&(ne.type==="checkbox"||ne.type==="radio")&&(ke=F8);if(ke&&(ke=ke(i,W))){wb(ue,ke,l,oe);break e}Me&&Me(i,ne,W),i==="focusout"&&(Me=ne._wrapperState)&&Me.controlled&&ne.type==="number"&&Ko(ne,"number",ne.value)}switch(Me=W?os(W):window,i){case"focusin":(Sb(Me)||Me.contentEditable==="true")&&(ts=Me,Bh=W,Ra=null);break;case"focusout":Ra=Bh=ts=null;break;case"mousedown":Uh=!0;break;case"contextmenu":case"mouseup":case"dragend":Uh=!1,Rb(ue,l,oe);break;case"selectionchange":if(z8)break;case"keydown":case"keyup":Rb(ue,l,oe)}var Fe;if(Lh)e:{switch(i){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else es?_b(i,l)&&(He="onCompositionEnd"):i==="keydown"&&l.keyCode===229&&(He="onCompositionStart");He&&(yb&&l.locale!=="ko"&&(es||He!=="onCompositionStart"?He==="onCompositionEnd"&&es&&(Fe=hb()):(oi=oe,kh="value"in oi?oi.value:oi.textContent,es=!0)),Me=Vl(W,He),0<Me.length&&(He=new gb(He,i,null,l,oe),ue.push({event:He,listeners:Me}),Fe?He.data=Fe:(Fe=xb(l),Fe!==null&&(He.data=Fe)))),(Fe=N8?O8(i,l):I8(i,l))&&(W=Vl(W,"onBeforeInput"),0<W.length&&(oe=new gb("onBeforeInput","beforeinput",null,l,oe),ue.push({event:oe,listeners:W}),oe.data=Fe))}jb(ue,s)})}function Ma(i,s,l){return{instance:i,listener:s,currentTarget:l}}function Vl(i,s){for(var l=s+"Capture",f=[];i!==null;){var E=i,y=E.stateNode;E.tag===5&&y!==null&&(E=y,y=Ea(i,l),y!=null&&f.unshift(Ma(i,y,E)),y=Ea(i,s),y!=null&&f.push(Ma(i,y,E))),i=i.return}return f}function rs(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function Vb(i,s,l,f,E){for(var y=s._reactName,_=[];l!==null&&l!==f;){var P=l,B=P.alternate,W=P.stateNode;if(B!==null&&B===f)break;P.tag===5&&W!==null&&(P=W,E?(B=Ea(l,y),B!=null&&_.unshift(Ma(l,B,P))):E||(B=Ea(l,y),B!=null&&_.push(Ma(l,B,P)))),l=l.return}_.length!==0&&i.push({event:s,listeners:_})}var Y8=/\r\n?/g,q8=/\u0000|\uFFFD/g;function Yb(i){return(typeof i=="string"?i:""+i).replace(Y8,`
|
|
21
|
+
`).replace(q8,"")}function Yl(i,s,l){if(s=Yb(s),Yb(i)!==s&&l)throw Error(n(425))}function ql(){}var Yh=null,qh=null;function Wh(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Gh=typeof setTimeout=="function"?setTimeout:void 0,W8=typeof clearTimeout=="function"?clearTimeout:void 0,qb=typeof Promise=="function"?Promise:void 0,G8=typeof queueMicrotask=="function"?queueMicrotask:typeof qb!="undefined"?function(i){return qb.resolve(null).then(i).catch(K8)}:Gh;function K8(i){setTimeout(function(){throw i})}function Kh(i,s){var l=s,f=0;do{var E=l.nextSibling;if(i.removeChild(l),E&&E.nodeType===8)if(l=E.data,l==="/$"){if(f===0){i.removeChild(E),Ca(s);return}f--}else l!=="$"&&l!=="$?"&&l!=="$!"||f++;l=E}while(l);Ca(s)}function ai(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return i}function Wb(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var l=i.data;if(l==="$"||l==="$!"||l==="$?"){if(s===0)return i;s--}else l==="/$"&&s++}i=i.previousSibling}return null}var is=Math.random().toString(36).slice(2),_r="__reactFiber$"+is,Fa="__reactProps$"+is,Rr="__reactContainer$"+is,Qh="__reactEvents$"+is,Q8="__reactListeners$"+is,X8="__reactHandles$"+is;function Gi(i){var s=i[_r];if(s)return s;for(var l=i.parentNode;l;){if(s=l[Rr]||l[_r]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(i=Wb(i);i!==null;){if(l=i[_r])return l;i=Wb(i)}return s}i=l,l=i.parentNode}return null}function Ba(i){return i=i[_r]||i[Rr],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function os(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function Wl(i){return i[Fa]||null}var Xh=[],ss=-1;function ui(i){return{current:i}}function ct(i){0>ss||(i.current=Xh[ss],Xh[ss]=null,ss--)}function st(i,s){ss++,Xh[ss]=i.current,i.current=s}var li={},Kt=ui(li),mn=ui(!1),Ki=li;function as(i,s){var l=i.type.contextTypes;if(!l)return li;var f=i.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===s)return f.__reactInternalMemoizedMaskedChildContext;var E={},y;for(y in l)E[y]=s[y];return f&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=s,i.__reactInternalMemoizedMaskedChildContext=E),E}function gn(i){return i=i.childContextTypes,i!=null}function Gl(){ct(mn),ct(Kt)}function Gb(i,s,l){if(Kt.current!==li)throw Error(n(168));st(Kt,s),st(mn,l)}function Kb(i,s,l){var f=i.stateNode;if(s=s.childContextTypes,typeof f.getChildContext!="function")return l;f=f.getChildContext();for(var E in f)if(!(E in s))throw Error(n(108,ze(i)||"Unknown",E));return w({},l,f)}function Kl(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||li,Ki=Kt.current,st(Kt,i),st(mn,mn.current),!0}function Qb(i,s,l){var f=i.stateNode;if(!f)throw Error(n(169));l?(i=Kb(i,s,Ki),f.__reactInternalMemoizedMergedChildContext=i,ct(mn),ct(Kt),st(Kt,i)):ct(mn),st(mn,l)}var Lr=null,Ql=!1,Jh=!1;function Xb(i){Lr===null?Lr=[i]:Lr.push(i)}function J8(i){Ql=!0,Xb(i)}function ci(){if(!Jh&&Lr!==null){Jh=!0;var i=0,s=tt;try{var l=Lr;for(tt=1;i<l.length;i++){var f=l[i];do f=f(!0);while(f!==null)}Lr=null,Ql=!1}catch(E){throw Lr!==null&&(Lr=Lr.slice(i+1)),ZT(bh,ci),E}finally{tt=s,Jh=!1}}return null}var us=[],ls=0,Xl=null,Jl=0,Fn=[],Bn=0,Qi=null,Dr=1,Mr="";function Xi(i,s){us[ls++]=Jl,us[ls++]=Xl,Xl=i,Jl=s}function Jb(i,s,l){Fn[Bn++]=Dr,Fn[Bn++]=Mr,Fn[Bn++]=Qi,Qi=i;var f=Dr;i=Mr;var E=32-Jn(f)-1;f&=~(1<<E),l+=1;var y=32-Jn(s)+E;if(30<y){var _=E-E%5;y=(f&(1<<_)-1).toString(32),f>>=_,E-=_,Dr=1<<32-Jn(s)+E|l<<E|f,Mr=y+i}else Dr=1<<y|l<<E|f,Mr=i}function Zh(i){i.return!==null&&(Xi(i,1),Jb(i,1,0))}function ep(i){for(;i===Xl;)Xl=us[--ls],us[ls]=null,Jl=us[--ls],us[ls]=null;for(;i===Qi;)Qi=Fn[--Bn],Fn[Bn]=null,Mr=Fn[--Bn],Fn[Bn]=null,Dr=Fn[--Bn],Fn[Bn]=null}var vn=null,kn=null,pt=!1,er=null;function Zb(i,s){var l=jn(5,null,null,0);l.elementType="DELETED",l.stateNode=s,l.return=i,s=i.deletions,s===null?(i.deletions=[l],i.flags|=16):s.push(l)}function e2(i,s){switch(i.tag){case 5:var l=i.type;return s=s.nodeType!==1||l.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(i.stateNode=s,vn=i,kn=ai(s.firstChild),!0):!1;case 6:return s=i.pendingProps===""||s.nodeType!==3?null:s,s!==null?(i.stateNode=s,vn=i,kn=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(l=Qi!==null?{id:Dr,overflow:Mr}:null,i.memoizedState={dehydrated:s,treeContext:l,retryLane:1073741824},l=jn(18,null,null,0),l.stateNode=s,l.return=i,i.child=l,vn=i,kn=null,!0):!1;default:return!1}}function tp(i){return(i.mode&1)!==0&&(i.flags&128)===0}function np(i){if(pt){var s=kn;if(s){var l=s;if(!e2(i,s)){if(tp(i))throw Error(n(418));s=ai(l.nextSibling);var f=vn;s&&e2(i,s)?Zb(f,l):(i.flags=i.flags&-4097|2,pt=!1,vn=i)}}else{if(tp(i))throw Error(n(418));i.flags=i.flags&-4097|2,pt=!1,vn=i}}}function t2(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;vn=i}function Zl(i){if(i!==vn)return!1;if(!pt)return t2(i),pt=!0,!1;var s;if((s=i.tag!==3)&&!(s=i.tag!==5)&&(s=i.type,s=s!=="head"&&s!=="body"&&!Wh(i.type,i.memoizedProps)),s&&(s=kn)){if(tp(i))throw n2(),Error(n(418));for(;s;)Zb(i,s),s=ai(s.nextSibling)}if(t2(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8){var l=i.data;if(l==="/$"){if(s===0){kn=ai(i.nextSibling);break e}s--}else l!=="$"&&l!=="$!"&&l!=="$?"||s++}i=i.nextSibling}kn=null}}else kn=vn?ai(i.stateNode.nextSibling):null;return!0}function n2(){for(var i=kn;i;)i=ai(i.nextSibling)}function cs(){kn=vn=null,pt=!1}function rp(i){er===null?er=[i]:er.push(i)}var Z8=M.ReactCurrentBatchConfig;function Ua(i,s,l){if(i=l.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var f=l.stateNode}if(!f)throw Error(n(147,i));var E=f,y=""+i;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===y?s.ref:(s=function(_){var P=E.refs;_===null?delete P[y]:P[y]=_},s._stringRef=y,s)}if(typeof i!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,i))}return i}function ec(i,s){throw i=Object.prototype.toString.call(s),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i))}function r2(i){var s=i._init;return s(i._payload)}function i2(i){function s($,H){if(i){var q=$.deletions;q===null?($.deletions=[H],$.flags|=16):q.push(H)}}function l($,H){if(!i)return null;for(;H!==null;)s($,H),H=H.sibling;return null}function f($,H){for($=new Map;H!==null;)H.key!==null?$.set(H.key,H):$.set(H.index,H),H=H.sibling;return $}function E($,H){return $=yi($,H),$.index=0,$.sibling=null,$}function y($,H,q){return $.index=q,i?(q=$.alternate,q!==null?(q=q.index,q<H?($.flags|=2,H):q):($.flags|=2,H)):($.flags|=1048576,H)}function _($){return i&&$.alternate===null&&($.flags|=2),$}function P($,H,q,ge){return H===null||H.tag!==6?(H=Gp(q,$.mode,ge),H.return=$,H):(H=E(H,q),H.return=$,H)}function B($,H,q,ge){var ke=q.type;return ke===J?oe($,H,q.props.children,ge,q.key):H!==null&&(H.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===Re&&r2(ke)===H.type)?(ge=E(H,q.props),ge.ref=Ua($,H,q),ge.return=$,ge):(ge=wc(q.type,q.key,q.props,null,$.mode,ge),ge.ref=Ua($,H,q),ge.return=$,ge)}function W($,H,q,ge){return H===null||H.tag!==4||H.stateNode.containerInfo!==q.containerInfo||H.stateNode.implementation!==q.implementation?(H=Kp(q,$.mode,ge),H.return=$,H):(H=E(H,q.children||[]),H.return=$,H)}function oe($,H,q,ge,ke){return H===null||H.tag!==7?(H=oo(q,$.mode,ge,ke),H.return=$,H):(H=E(H,q),H.return=$,H)}function ue($,H,q){if(typeof H=="string"&&H!==""||typeof H=="number")return H=Gp(""+H,$.mode,q),H.return=$,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case Y:return q=wc(H.type,H.key,H.props,null,$.mode,q),q.ref=Ua($,null,H),q.return=$,q;case F:return H=Kp(H,$.mode,q),H.return=$,H;case Re:var ge=H._init;return ue($,ge(H._payload),q)}if(Jr(H)||ee(H))return H=oo(H,$.mode,q,null),H.return=$,H;ec($,H)}return null}function ne($,H,q,ge){var ke=H!==null?H.key:null;if(typeof q=="string"&&q!==""||typeof q=="number")return ke!==null?null:P($,H,""+q,ge);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case Y:return q.key===ke?B($,H,q,ge):null;case F:return q.key===ke?W($,H,q,ge):null;case Re:return ke=q._init,ne($,H,ke(q._payload),ge)}if(Jr(q)||ee(q))return ke!==null?null:oe($,H,q,ge,null);ec($,q)}return null}function _e($,H,q,ge,ke){if(typeof ge=="string"&&ge!==""||typeof ge=="number")return $=$.get(q)||null,P(H,$,""+ge,ke);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case Y:return $=$.get(ge.key===null?q:ge.key)||null,B(H,$,ge,ke);case F:return $=$.get(ge.key===null?q:ge.key)||null,W(H,$,ge,ke);case Re:var Me=ge._init;return _e($,H,q,Me(ge._payload),ke)}if(Jr(ge)||ee(ge))return $=$.get(q)||null,oe(H,$,ge,ke,null);ec(H,ge)}return null}function Ae($,H,q,ge){for(var ke=null,Me=null,Fe=H,He=H=0,Ut=null;Fe!==null&&He<q.length;He++){Fe.index>He?(Ut=Fe,Fe=null):Ut=Fe.sibling;var Ze=ne($,Fe,q[He],ge);if(Ze===null){Fe===null&&(Fe=Ut);break}i&&Fe&&Ze.alternate===null&&s($,Fe),H=y(Ze,H,He),Me===null?ke=Ze:Me.sibling=Ze,Me=Ze,Fe=Ut}if(He===q.length)return l($,Fe),pt&&Xi($,He),ke;if(Fe===null){for(;He<q.length;He++)Fe=ue($,q[He],ge),Fe!==null&&(H=y(Fe,H,He),Me===null?ke=Fe:Me.sibling=Fe,Me=Fe);return pt&&Xi($,He),ke}for(Fe=f($,Fe);He<q.length;He++)Ut=_e(Fe,$,He,q[He],ge),Ut!==null&&(i&&Ut.alternate!==null&&Fe.delete(Ut.key===null?He:Ut.key),H=y(Ut,H,He),Me===null?ke=Ut:Me.sibling=Ut,Me=Ut);return i&&Fe.forEach(function(Ti){return s($,Ti)}),pt&&Xi($,He),ke}function ve($,H,q,ge){var ke=ee(q);if(typeof ke!="function")throw Error(n(150));if(q=ke.call(q),q==null)throw Error(n(151));for(var Me=ke=null,Fe=H,He=H=0,Ut=null,Ze=q.next();Fe!==null&&!Ze.done;He++,Ze=q.next()){Fe.index>He?(Ut=Fe,Fe=null):Ut=Fe.sibling;var Ti=ne($,Fe,Ze.value,ge);if(Ti===null){Fe===null&&(Fe=Ut);break}i&&Fe&&Ti.alternate===null&&s($,Fe),H=y(Ti,H,He),Me===null?ke=Ti:Me.sibling=Ti,Me=Ti,Fe=Ut}if(Ze.done)return l($,Fe),pt&&Xi($,He),ke;if(Fe===null){for(;!Ze.done;He++,Ze=q.next())Ze=ue($,Ze.value,ge),Ze!==null&&(H=y(Ze,H,He),Me===null?ke=Ze:Me.sibling=Ze,Me=Ze);return pt&&Xi($,He),ke}for(Fe=f($,Fe);!Ze.done;He++,Ze=q.next())Ze=_e(Fe,$,He,Ze.value,ge),Ze!==null&&(i&&Ze.alternate!==null&&Fe.delete(Ze.key===null?He:Ze.key),H=y(Ze,H,He),Me===null?ke=Ze:Me.sibling=Ze,Me=Ze);return i&&Fe.forEach(function(PM){return s($,PM)}),pt&&Xi($,He),ke}function St($,H,q,ge){if(typeof q=="object"&&q!==null&&q.type===J&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case Y:e:{for(var ke=q.key,Me=H;Me!==null;){if(Me.key===ke){if(ke=q.type,ke===J){if(Me.tag===7){l($,Me.sibling),H=E(Me,q.props.children),H.return=$,$=H;break e}}else if(Me.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===Re&&r2(ke)===Me.type){l($,Me.sibling),H=E(Me,q.props),H.ref=Ua($,Me,q),H.return=$,$=H;break e}l($,Me);break}else s($,Me);Me=Me.sibling}q.type===J?(H=oo(q.props.children,$.mode,ge,q.key),H.return=$,$=H):(ge=wc(q.type,q.key,q.props,null,$.mode,ge),ge.ref=Ua($,H,q),ge.return=$,$=ge)}return _($);case F:e:{for(Me=q.key;H!==null;){if(H.key===Me)if(H.tag===4&&H.stateNode.containerInfo===q.containerInfo&&H.stateNode.implementation===q.implementation){l($,H.sibling),H=E(H,q.children||[]),H.return=$,$=H;break e}else{l($,H);break}else s($,H);H=H.sibling}H=Kp(q,$.mode,ge),H.return=$,$=H}return _($);case Re:return Me=q._init,St($,H,Me(q._payload),ge)}if(Jr(q))return Ae($,H,q,ge);if(ee(q))return ve($,H,q,ge);ec($,q)}return typeof q=="string"&&q!==""||typeof q=="number"?(q=""+q,H!==null&&H.tag===6?(l($,H.sibling),H=E(H,q),H.return=$,$=H):(l($,H),H=Gp(q,$.mode,ge),H.return=$,$=H),_($)):l($,H)}return St}var ds=i2(!0),o2=i2(!1),tc=ui(null),nc=null,fs=null,ip=null;function op(){ip=fs=nc=null}function sp(i){var s=tc.current;ct(tc),i._currentValue=s}function ap(i,s,l){for(;i!==null;){var f=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,f!==null&&(f.childLanes|=s)):f!==null&&(f.childLanes&s)!==s&&(f.childLanes|=s),i===l)break;i=i.return}}function hs(i,s){nc=i,ip=fs=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&s)!==0&&(En=!0),i.firstContext=null)}function Un(i){var s=i._currentValue;if(ip!==i)if(i={context:i,memoizedValue:s,next:null},fs===null){if(nc===null)throw Error(n(308));fs=i,nc.dependencies={lanes:0,firstContext:i}}else fs=fs.next=i;return s}var Ji=null;function up(i){Ji===null?Ji=[i]:Ji.push(i)}function s2(i,s,l,f){var E=s.interleaved;return E===null?(l.next=l,up(s)):(l.next=E.next,E.next=l),s.interleaved=l,Fr(i,f)}function Fr(i,s){i.lanes|=s;var l=i.alternate;for(l!==null&&(l.lanes|=s),l=i,i=i.return;i!==null;)i.childLanes|=s,l=i.alternate,l!==null&&(l.childLanes|=s),l=i,i=i.return;return l.tag===3?l.stateNode:null}var di=!1;function lp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function a2(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function Br(i,s){return{eventTime:i,lane:s,tag:0,payload:null,callback:null,next:null}}function fi(i,s,l){var f=i.updateQueue;if(f===null)return null;if(f=f.shared,(Je&2)!==0){var E=f.pending;return E===null?s.next=s:(s.next=E.next,E.next=s),f.pending=s,Fr(i,l)}return E=f.interleaved,E===null?(s.next=s,up(f)):(s.next=E.next,E.next=s),f.interleaved=s,Fr(i,l)}function rc(i,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194240)!==0)){var f=s.lanes;f&=i.pendingLanes,l|=f,s.lanes=l,Sh(i,l)}}function u2(i,s){var l=i.updateQueue,f=i.alternate;if(f!==null&&(f=f.updateQueue,l===f)){var E=null,y=null;if(l=l.firstBaseUpdate,l!==null){do{var _={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};y===null?E=y=_:y=y.next=_,l=l.next}while(l!==null);y===null?E=y=s:y=y.next=s}else E=y=s;l={baseState:f.baseState,firstBaseUpdate:E,lastBaseUpdate:y,shared:f.shared,effects:f.effects},i.updateQueue=l;return}i=l.lastBaseUpdate,i===null?l.firstBaseUpdate=s:i.next=s,l.lastBaseUpdate=s}function ic(i,s,l,f){var E=i.updateQueue;di=!1;var y=E.firstBaseUpdate,_=E.lastBaseUpdate,P=E.shared.pending;if(P!==null){E.shared.pending=null;var B=P,W=B.next;B.next=null,_===null?y=W:_.next=W,_=B;var oe=i.alternate;oe!==null&&(oe=oe.updateQueue,P=oe.lastBaseUpdate,P!==_&&(P===null?oe.firstBaseUpdate=W:P.next=W,oe.lastBaseUpdate=B))}if(y!==null){var ue=E.baseState;_=0,oe=W=B=null,P=y;do{var ne=P.lane,_e=P.eventTime;if((f&ne)===ne){oe!==null&&(oe=oe.next={eventTime:_e,lane:0,tag:P.tag,payload:P.payload,callback:P.callback,next:null});e:{var Ae=i,ve=P;switch(ne=s,_e=l,ve.tag){case 1:if(Ae=ve.payload,typeof Ae=="function"){ue=Ae.call(_e,ue,ne);break e}ue=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=ve.payload,ne=typeof Ae=="function"?Ae.call(_e,ue,ne):Ae,ne==null)break e;ue=w({},ue,ne);break e;case 2:di=!0}}P.callback!==null&&P.lane!==0&&(i.flags|=64,ne=E.effects,ne===null?E.effects=[P]:ne.push(P))}else _e={eventTime:_e,lane:ne,tag:P.tag,payload:P.payload,callback:P.callback,next:null},oe===null?(W=oe=_e,B=ue):oe=oe.next=_e,_|=ne;if(P=P.next,P===null){if(P=E.shared.pending,P===null)break;ne=P,P=ne.next,ne.next=null,E.lastBaseUpdate=ne,E.shared.pending=null}}while(!0);if(oe===null&&(B=ue),E.baseState=B,E.firstBaseUpdate=W,E.lastBaseUpdate=oe,s=E.shared.interleaved,s!==null){E=s;do _|=E.lane,E=E.next;while(E!==s)}else y===null&&(E.shared.lanes=0);to|=_,i.lanes=_,i.memoizedState=ue}}function l2(i,s,l){if(i=s.effects,s.effects=null,i!==null)for(s=0;s<i.length;s++){var f=i[s],E=f.callback;if(E!==null){if(f.callback=null,f=l,typeof E!="function")throw Error(n(191,E));E.call(f)}}}var Ha={},xr=ui(Ha),za=ui(Ha),ja=ui(Ha);function Zi(i){if(i===Ha)throw Error(n(174));return i}function cp(i,s){switch(st(ja,s),st(za,i),st(xr,Ha),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:ye(null,"");break;default:i=i===8?s.parentNode:s,s=i.namespaceURI||null,i=i.tagName,s=ye(s,i)}ct(xr),st(xr,s)}function ps(){ct(xr),ct(za),ct(ja)}function c2(i){Zi(ja.current);var s=Zi(xr.current),l=ye(s,i.type);s!==l&&(st(za,i),st(xr,l))}function dp(i){za.current===i&&(ct(xr),ct(za))}var mt=ui(0);function oc(i){for(var s=i;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var fp=[];function hp(){for(var i=0;i<fp.length;i++)fp[i]._workInProgressVersionPrimary=null;fp.length=0}var sc=M.ReactCurrentDispatcher,pp=M.ReactCurrentBatchConfig,eo=0,gt=null,Ot=null,Ft=null,ac=!1,$a=!1,Va=0,eM=0;function Qt(){throw Error(n(321))}function mp(i,s){if(s===null)return!1;for(var l=0;l<s.length&&l<i.length;l++)if(!Zn(i[l],s[l]))return!1;return!0}function gp(i,s,l,f,E,y){if(eo=y,gt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,sc.current=i===null||i.memoizedState===null?iM:oM,i=l(f,E),$a){y=0;do{if($a=!1,Va=0,25<=y)throw Error(n(301));y+=1,Ft=Ot=null,s.updateQueue=null,sc.current=sM,i=l(f,E)}while($a)}if(sc.current=cc,s=Ot!==null&&Ot.next!==null,eo=0,Ft=Ot=gt=null,ac=!1,s)throw Error(n(300));return i}function Ep(){var i=Va!==0;return Va=0,i}function Sr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?gt.memoizedState=Ft=i:Ft=Ft.next=i,Ft}function Hn(){if(Ot===null){var i=gt.alternate;i=i!==null?i.memoizedState:null}else i=Ot.next;var s=Ft===null?gt.memoizedState:Ft.next;if(s!==null)Ft=s,Ot=i;else{if(i===null)throw Error(n(310));Ot=i,i={memoizedState:Ot.memoizedState,baseState:Ot.baseState,baseQueue:Ot.baseQueue,queue:Ot.queue,next:null},Ft===null?gt.memoizedState=Ft=i:Ft=Ft.next=i}return Ft}function Ya(i,s){return typeof s=="function"?s(i):s}function yp(i){var s=Hn(),l=s.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=i;var f=Ot,E=f.baseQueue,y=l.pending;if(y!==null){if(E!==null){var _=E.next;E.next=y.next,y.next=_}f.baseQueue=E=y,l.pending=null}if(E!==null){y=E.next,f=f.baseState;var P=_=null,B=null,W=y;do{var oe=W.lane;if((eo&oe)===oe)B!==null&&(B=B.next={lane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),f=W.hasEagerState?W.eagerState:i(f,W.action);else{var ue={lane:oe,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null};B===null?(P=B=ue,_=f):B=B.next=ue,gt.lanes|=oe,to|=oe}W=W.next}while(W!==null&&W!==y);B===null?_=f:B.next=P,Zn(f,s.memoizedState)||(En=!0),s.memoizedState=f,s.baseState=_,s.baseQueue=B,l.lastRenderedState=f}if(i=l.interleaved,i!==null){E=i;do y=E.lane,gt.lanes|=y,to|=y,E=E.next;while(E!==i)}else E===null&&(l.lanes=0);return[s.memoizedState,l.dispatch]}function Tp(i){var s=Hn(),l=s.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=i;var f=l.dispatch,E=l.pending,y=s.memoizedState;if(E!==null){l.pending=null;var _=E=E.next;do y=i(y,_.action),_=_.next;while(_!==E);Zn(y,s.memoizedState)||(En=!0),s.memoizedState=y,s.baseQueue===null&&(s.baseState=y),l.lastRenderedState=y}return[y,f]}function d2(){}function f2(i,s){var l=gt,f=Hn(),E=s(),y=!Zn(f.memoizedState,E);if(y&&(f.memoizedState=E,En=!0),f=f.queue,bp(m2.bind(null,l,f,i),[i]),f.getSnapshot!==s||y||Ft!==null&&Ft.memoizedState.tag&1){if(l.flags|=2048,qa(9,p2.bind(null,l,f,E,s),void 0,null),Bt===null)throw Error(n(349));(eo&30)!==0||h2(l,s,E)}return E}function h2(i,s,l){i.flags|=16384,i={getSnapshot:s,value:l},s=gt.updateQueue,s===null?(s={lastEffect:null,stores:null},gt.updateQueue=s,s.stores=[i]):(l=s.stores,l===null?s.stores=[i]:l.push(i))}function p2(i,s,l,f){s.value=l,s.getSnapshot=f,g2(s)&&E2(i)}function m2(i,s,l){return l(function(){g2(s)&&E2(i)})}function g2(i){var s=i.getSnapshot;i=i.value;try{var l=s();return!Zn(i,l)}catch(f){return!0}}function E2(i){var s=Fr(i,1);s!==null&&ir(s,i,1,-1)}function y2(i){var s=Sr();return typeof i=="function"&&(i=i()),s.memoizedState=s.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:i},s.queue=i,i=i.dispatch=rM.bind(null,gt,i),[s.memoizedState,i]}function qa(i,s,l,f){return i={tag:i,create:s,destroy:l,deps:f,next:null},s=gt.updateQueue,s===null?(s={lastEffect:null,stores:null},gt.updateQueue=s,s.lastEffect=i.next=i):(l=s.lastEffect,l===null?s.lastEffect=i.next=i:(f=l.next,l.next=i,i.next=f,s.lastEffect=i)),i}function T2(){return Hn().memoizedState}function uc(i,s,l,f){var E=Sr();gt.flags|=i,E.memoizedState=qa(1|s,l,void 0,f===void 0?null:f)}function lc(i,s,l,f){var E=Hn();f=f===void 0?null:f;var y=void 0;if(Ot!==null){var _=Ot.memoizedState;if(y=_.destroy,f!==null&&mp(f,_.deps)){E.memoizedState=qa(s,l,y,f);return}}gt.flags|=i,E.memoizedState=qa(1|s,l,y,f)}function b2(i,s){return uc(8390656,8,i,s)}function bp(i,s){return lc(2048,8,i,s)}function _2(i,s){return lc(4,2,i,s)}function x2(i,s){return lc(4,4,i,s)}function S2(i,s){if(typeof s=="function")return i=i(),s(i),function(){s(null)};if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function w2(i,s,l){return l=l!=null?l.concat([i]):null,lc(4,4,S2.bind(null,s,i),l)}function _p(){}function A2(i,s){var l=Hn();s=s===void 0?null:s;var f=l.memoizedState;return f!==null&&s!==null&&mp(s,f[1])?f[0]:(l.memoizedState=[i,s],i)}function C2(i,s){var l=Hn();s=s===void 0?null:s;var f=l.memoizedState;return f!==null&&s!==null&&mp(s,f[1])?f[0]:(i=i(),l.memoizedState=[i,s],i)}function v2(i,s,l){return(eo&21)===0?(i.baseState&&(i.baseState=!1,En=!0),i.memoizedState=l):(Zn(l,s)||(l=rb(),gt.lanes|=l,to|=l,i.baseState=!0),s)}function tM(i,s){var l=tt;tt=l!==0&&4>l?l:4,i(!0);var f=pp.transition;pp.transition={};try{i(!1),s()}finally{tt=l,pp.transition=f}}function k2(){return Hn().memoizedState}function nM(i,s,l){var f=gi(i);if(l={lane:f,action:l,hasEagerState:!1,eagerState:null,next:null},N2(i))O2(s,l);else if(l=s2(i,s,l,f),l!==null){var E=on();ir(l,i,f,E),I2(l,s,f)}}function rM(i,s,l){var f=gi(i),E={lane:f,action:l,hasEagerState:!1,eagerState:null,next:null};if(N2(i))O2(s,E);else{var y=i.alternate;if(i.lanes===0&&(y===null||y.lanes===0)&&(y=s.lastRenderedReducer,y!==null))try{var _=s.lastRenderedState,P=y(_,l);if(E.hasEagerState=!0,E.eagerState=P,Zn(P,_)){var B=s.interleaved;B===null?(E.next=E,up(s)):(E.next=B.next,B.next=E),s.interleaved=E;return}}catch(W){}l=s2(i,s,E,f),l!==null&&(E=on(),ir(l,i,f,E),I2(l,s,f))}}function N2(i){var s=i.alternate;return i===gt||s!==null&&s===gt}function O2(i,s){$a=ac=!0;var l=i.pending;l===null?s.next=s:(s.next=l.next,l.next=s),i.pending=s}function I2(i,s,l){if((l&4194240)!==0){var f=s.lanes;f&=i.pendingLanes,l|=f,s.lanes=l,Sh(i,l)}}var cc={readContext:Un,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useInsertionEffect:Qt,useLayoutEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useMutableSource:Qt,useSyncExternalStore:Qt,useId:Qt,unstable_isNewReconciler:!1},iM={readContext:Un,useCallback:function(i,s){return Sr().memoizedState=[i,s===void 0?null:s],i},useContext:Un,useEffect:b2,useImperativeHandle:function(i,s,l){return l=l!=null?l.concat([i]):null,uc(4194308,4,S2.bind(null,s,i),l)},useLayoutEffect:function(i,s){return uc(4194308,4,i,s)},useInsertionEffect:function(i,s){return uc(4,2,i,s)},useMemo:function(i,s){var l=Sr();return s=s===void 0?null:s,i=i(),l.memoizedState=[i,s],i},useReducer:function(i,s,l){var f=Sr();return s=l!==void 0?l(s):s,f.memoizedState=f.baseState=s,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:s},f.queue=i,i=i.dispatch=nM.bind(null,gt,i),[f.memoizedState,i]},useRef:function(i){var s=Sr();return i={current:i},s.memoizedState=i},useState:y2,useDebugValue:_p,useDeferredValue:function(i){return Sr().memoizedState=i},useTransition:function(){var i=y2(!1),s=i[0];return i=tM.bind(null,i[1]),Sr().memoizedState=i,[s,i]},useMutableSource:function(){},useSyncExternalStore:function(i,s,l){var f=gt,E=Sr();if(pt){if(l===void 0)throw Error(n(407));l=l()}else{if(l=s(),Bt===null)throw Error(n(349));(eo&30)!==0||h2(f,s,l)}E.memoizedState=l;var y={value:l,getSnapshot:s};return E.queue=y,b2(m2.bind(null,f,y,i),[i]),f.flags|=2048,qa(9,p2.bind(null,f,y,l,s),void 0,null),l},useId:function(){var i=Sr(),s=Bt.identifierPrefix;if(pt){var l=Mr,f=Dr;l=(f&~(1<<32-Jn(f)-1)).toString(32)+l,s=":"+s+"R"+l,l=Va++,0<l&&(s+="H"+l.toString(32)),s+=":"}else l=eM++,s=":"+s+"r"+l.toString(32)+":";return i.memoizedState=s},unstable_isNewReconciler:!1},oM={readContext:Un,useCallback:A2,useContext:Un,useEffect:bp,useImperativeHandle:w2,useInsertionEffect:_2,useLayoutEffect:x2,useMemo:C2,useReducer:yp,useRef:T2,useState:function(){return yp(Ya)},useDebugValue:_p,useDeferredValue:function(i){var s=Hn();return v2(s,Ot.memoizedState,i)},useTransition:function(){var i=yp(Ya)[0],s=Hn().memoizedState;return[i,s]},useMutableSource:d2,useSyncExternalStore:f2,useId:k2,unstable_isNewReconciler:!1},sM={readContext:Un,useCallback:A2,useContext:Un,useEffect:bp,useImperativeHandle:w2,useInsertionEffect:_2,useLayoutEffect:x2,useMemo:C2,useReducer:Tp,useRef:T2,useState:function(){return Tp(Ya)},useDebugValue:_p,useDeferredValue:function(i){var s=Hn();return Ot===null?s.memoizedState=i:v2(s,Ot.memoizedState,i)},useTransition:function(){var i=Tp(Ya)[0],s=Hn().memoizedState;return[i,s]},useMutableSource:d2,useSyncExternalStore:f2,useId:k2,unstable_isNewReconciler:!1};function tr(i,s){if(i&&i.defaultProps){s=w({},s),i=i.defaultProps;for(var l in i)s[l]===void 0&&(s[l]=i[l]);return s}return s}function xp(i,s,l,f){s=i.memoizedState,l=l(f,s),l=l==null?s:w({},s,l),i.memoizedState=l,i.lanes===0&&(i.updateQueue.baseState=l)}var dc={isMounted:function(i){return(i=i._reactInternals)?Wi(i)===i:!1},enqueueSetState:function(i,s,l){i=i._reactInternals;var f=on(),E=gi(i),y=Br(f,E);y.payload=s,l!=null&&(y.callback=l),s=fi(i,y,E),s!==null&&(ir(s,i,E,f),rc(s,i,E))},enqueueReplaceState:function(i,s,l){i=i._reactInternals;var f=on(),E=gi(i),y=Br(f,E);y.tag=1,y.payload=s,l!=null&&(y.callback=l),s=fi(i,y,E),s!==null&&(ir(s,i,E,f),rc(s,i,E))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var l=on(),f=gi(i),E=Br(l,f);E.tag=2,s!=null&&(E.callback=s),s=fi(i,E,f),s!==null&&(ir(s,i,f,l),rc(s,i,f))}};function P2(i,s,l,f,E,y,_){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(f,y,_):s.prototype&&s.prototype.isPureReactComponent?!Pa(l,f)||!Pa(E,y):!0}function R2(i,s,l){var f=!1,E=li,y=s.contextType;return typeof y=="object"&&y!==null?y=Un(y):(E=gn(s)?Ki:Kt.current,f=s.contextTypes,y=(f=f!=null)?as(i,E):li),s=new s(l,y),i.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=dc,i.stateNode=s,s._reactInternals=i,f&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=E,i.__reactInternalMemoizedMaskedChildContext=y),s}function L2(i,s,l,f){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,f),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,f),s.state!==i&&dc.enqueueReplaceState(s,s.state,null)}function Sp(i,s,l,f){var E=i.stateNode;E.props=l,E.state=i.memoizedState,E.refs={},lp(i);var y=s.contextType;typeof y=="object"&&y!==null?E.context=Un(y):(y=gn(s)?Ki:Kt.current,E.context=as(i,y)),E.state=i.memoizedState,y=s.getDerivedStateFromProps,typeof y=="function"&&(xp(i,s,y,l),E.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(s=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),s!==E.state&&dc.enqueueReplaceState(E,E.state,null),ic(i,l,E,f),E.state=i.memoizedState),typeof E.componentDidMount=="function"&&(i.flags|=4194308)}function ms(i,s){try{var l="",f=s;do l+=Le(f),f=f.return;while(f);var E=l}catch(y){E=`
|
|
22
|
+
Error generating stack: `+y.message+`
|
|
23
|
+
`+y.stack}return{value:i,source:s,stack:E,digest:null}}function wp(i,s,l){return{value:i,source:null,stack:l!=null?l:null,digest:s!=null?s:null}}function Ap(i,s){try{console.error(s.value)}catch(l){setTimeout(function(){throw l})}}var aM=typeof WeakMap=="function"?WeakMap:Map;function D2(i,s,l){l=Br(-1,l),l.tag=3,l.payload={element:null};var f=s.value;return l.callback=function(){yc||(yc=!0,Hp=f),Ap(i,s)},l}function M2(i,s,l){l=Br(-1,l),l.tag=3;var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var E=s.value;l.payload=function(){return f(E)},l.callback=function(){Ap(i,s)}}var y=i.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(l.callback=function(){Ap(i,s),typeof f!="function"&&(pi===null?pi=new Set([this]):pi.add(this));var _=s.stack;this.componentDidCatch(s.value,{componentStack:_!==null?_:""})}),l}function F2(i,s,l){var f=i.pingCache;if(f===null){f=i.pingCache=new aM;var E=new Set;f.set(s,E)}else E=f.get(s),E===void 0&&(E=new Set,f.set(s,E));E.has(l)||(E.add(l),i=_M.bind(null,i,s,l),s.then(i,i))}function B2(i){do{var s;if((s=i.tag===13)&&(s=i.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return i;i=i.return}while(i!==null);return null}function U2(i,s,l,f,E){return(i.mode&1)===0?(i===s?i.flags|=65536:(i.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(s=Br(-1,1),s.tag=2,fi(l,s,1))),l.lanes|=1),i):(i.flags|=65536,i.lanes=E,i)}var uM=M.ReactCurrentOwner,En=!1;function rn(i,s,l,f){s.child=i===null?o2(s,null,l,f):ds(s,i.child,l,f)}function H2(i,s,l,f,E){l=l.render;var y=s.ref;return hs(s,E),f=gp(i,s,l,f,y,E),l=Ep(),i!==null&&!En?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~E,Ur(i,s,E)):(pt&&l&&Zh(s),s.flags|=1,rn(i,s,f,E),s.child)}function z2(i,s,l,f,E){if(i===null){var y=l.type;return typeof y=="function"&&!Wp(y)&&y.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(s.tag=15,s.type=y,j2(i,s,y,f,E)):(i=wc(l.type,null,f,s,s.mode,E),i.ref=s.ref,i.return=s,s.child=i)}if(y=i.child,(i.lanes&E)===0){var _=y.memoizedProps;if(l=l.compare,l=l!==null?l:Pa,l(_,f)&&i.ref===s.ref)return Ur(i,s,E)}return s.flags|=1,i=yi(y,f),i.ref=s.ref,i.return=s,s.child=i}function j2(i,s,l,f,E){if(i!==null){var y=i.memoizedProps;if(Pa(y,f)&&i.ref===s.ref)if(En=!1,s.pendingProps=f=y,(i.lanes&E)!==0)(i.flags&131072)!==0&&(En=!0);else return s.lanes=i.lanes,Ur(i,s,E)}return Cp(i,s,l,f,E)}function $2(i,s,l){var f=s.pendingProps,E=f.children,y=i!==null?i.memoizedState:null;if(f.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},st(Es,Nn),Nn|=l;else{if((l&1073741824)===0)return i=y!==null?y.baseLanes|l:l,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:i,cachePool:null,transitions:null},s.updateQueue=null,st(Es,Nn),Nn|=i,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},f=y!==null?y.baseLanes:l,st(Es,Nn),Nn|=f}else y!==null?(f=y.baseLanes|l,s.memoizedState=null):f=l,st(Es,Nn),Nn|=f;return rn(i,s,E,l),s.child}function V2(i,s){var l=s.ref;(i===null&&l!==null||i!==null&&i.ref!==l)&&(s.flags|=512,s.flags|=2097152)}function Cp(i,s,l,f,E){var y=gn(l)?Ki:Kt.current;return y=as(s,y),hs(s,E),l=gp(i,s,l,f,y,E),f=Ep(),i!==null&&!En?(s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~E,Ur(i,s,E)):(pt&&f&&Zh(s),s.flags|=1,rn(i,s,l,E),s.child)}function Y2(i,s,l,f,E){if(gn(l)){var y=!0;Kl(s)}else y=!1;if(hs(s,E),s.stateNode===null)hc(i,s),R2(s,l,f),Sp(s,l,f,E),f=!0;else if(i===null){var _=s.stateNode,P=s.memoizedProps;_.props=P;var B=_.context,W=l.contextType;typeof W=="object"&&W!==null?W=Un(W):(W=gn(l)?Ki:Kt.current,W=as(s,W));var oe=l.getDerivedStateFromProps,ue=typeof oe=="function"||typeof _.getSnapshotBeforeUpdate=="function";ue||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(P!==f||B!==W)&&L2(s,_,f,W),di=!1;var ne=s.memoizedState;_.state=ne,ic(s,f,_,E),B=s.memoizedState,P!==f||ne!==B||mn.current||di?(typeof oe=="function"&&(xp(s,l,oe,f),B=s.memoizedState),(P=di||P2(s,l,P,f,ne,B,W))?(ue||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(s.flags|=4194308)):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=f,s.memoizedState=B),_.props=f,_.state=B,_.context=W,f=P):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),f=!1)}else{_=s.stateNode,a2(i,s),P=s.memoizedProps,W=s.type===s.elementType?P:tr(s.type,P),_.props=W,ue=s.pendingProps,ne=_.context,B=l.contextType,typeof B=="object"&&B!==null?B=Un(B):(B=gn(l)?Ki:Kt.current,B=as(s,B));var _e=l.getDerivedStateFromProps;(oe=typeof _e=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(P!==ue||ne!==B)&&L2(s,_,f,B),di=!1,ne=s.memoizedState,_.state=ne,ic(s,f,_,E);var Ae=s.memoizedState;P!==ue||ne!==Ae||mn.current||di?(typeof _e=="function"&&(xp(s,l,_e,f),Ae=s.memoizedState),(W=di||P2(s,l,W,f,ne,Ae,B)||!1)?(oe||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(f,Ae,B),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(f,Ae,B)),typeof _.componentDidUpdate=="function"&&(s.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof _.componentDidUpdate!="function"||P===i.memoizedProps&&ne===i.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||P===i.memoizedProps&&ne===i.memoizedState||(s.flags|=1024),s.memoizedProps=f,s.memoizedState=Ae),_.props=f,_.state=Ae,_.context=B,f=W):(typeof _.componentDidUpdate!="function"||P===i.memoizedProps&&ne===i.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||P===i.memoizedProps&&ne===i.memoizedState||(s.flags|=1024),f=!1)}return vp(i,s,l,f,y,E)}function vp(i,s,l,f,E,y){V2(i,s);var _=(s.flags&128)!==0;if(!f&&!_)return E&&Qb(s,l,!1),Ur(i,s,y);f=s.stateNode,uM.current=s;var P=_&&typeof l.getDerivedStateFromError!="function"?null:f.render();return s.flags|=1,i!==null&&_?(s.child=ds(s,i.child,null,y),s.child=ds(s,null,P,y)):rn(i,s,P,y),s.memoizedState=f.state,E&&Qb(s,l,!0),s.child}function q2(i){var s=i.stateNode;s.pendingContext?Gb(i,s.pendingContext,s.pendingContext!==s.context):s.context&&Gb(i,s.context,!1),cp(i,s.containerInfo)}function W2(i,s,l,f,E){return cs(),rp(E),s.flags|=256,rn(i,s,l,f),s.child}var kp={dehydrated:null,treeContext:null,retryLane:0};function Np(i){return{baseLanes:i,cachePool:null,transitions:null}}function G2(i,s,l){var f=s.pendingProps,E=mt.current,y=!1,_=(s.flags&128)!==0,P;if((P=_)||(P=i!==null&&i.memoizedState===null?!1:(E&2)!==0),P?(y=!0,s.flags&=-129):(i===null||i.memoizedState!==null)&&(E|=1),st(mt,E&1),i===null)return np(s),i=s.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((s.mode&1)===0?s.lanes=1:i.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(_=f.children,i=f.fallback,y?(f=s.mode,y=s.child,_={mode:"hidden",children:_},(f&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=_):y=Ac(_,f,0,null),i=oo(i,f,l,null),y.return=s,i.return=s,y.sibling=i,s.child=y,s.child.memoizedState=Np(l),s.memoizedState=kp,i):Op(s,_));if(E=i.memoizedState,E!==null&&(P=E.dehydrated,P!==null))return lM(i,s,_,f,P,E,l);if(y){y=f.fallback,_=s.mode,E=i.child,P=E.sibling;var B={mode:"hidden",children:f.children};return(_&1)===0&&s.child!==E?(f=s.child,f.childLanes=0,f.pendingProps=B,s.deletions=null):(f=yi(E,B),f.subtreeFlags=E.subtreeFlags&14680064),P!==null?y=yi(P,y):(y=oo(y,_,l,null),y.flags|=2),y.return=s,f.return=s,f.sibling=y,s.child=f,f=y,y=s.child,_=i.child.memoizedState,_=_===null?Np(l):{baseLanes:_.baseLanes|l,cachePool:null,transitions:_.transitions},y.memoizedState=_,y.childLanes=i.childLanes&~l,s.memoizedState=kp,f}return y=i.child,i=y.sibling,f=yi(y,{mode:"visible",children:f.children}),(s.mode&1)===0&&(f.lanes=l),f.return=s,f.sibling=null,i!==null&&(l=s.deletions,l===null?(s.deletions=[i],s.flags|=16):l.push(i)),s.child=f,s.memoizedState=null,f}function Op(i,s){return s=Ac({mode:"visible",children:s},i.mode,0,null),s.return=i,i.child=s}function fc(i,s,l,f){return f!==null&&rp(f),ds(s,i.child,null,l),i=Op(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function lM(i,s,l,f,E,y,_){if(l)return s.flags&256?(s.flags&=-257,f=wp(Error(n(422))),fc(i,s,_,f)):s.memoizedState!==null?(s.child=i.child,s.flags|=128,null):(y=f.fallback,E=s.mode,f=Ac({mode:"visible",children:f.children},E,0,null),y=oo(y,E,_,null),y.flags|=2,f.return=s,y.return=s,f.sibling=y,s.child=f,(s.mode&1)!==0&&ds(s,i.child,null,_),s.child.memoizedState=Np(_),s.memoizedState=kp,y);if((s.mode&1)===0)return fc(i,s,_,null);if(E.data==="$!"){if(f=E.nextSibling&&E.nextSibling.dataset,f)var P=f.dgst;return f=P,y=Error(n(419)),f=wp(y,f,void 0),fc(i,s,_,f)}if(P=(_&i.childLanes)!==0,En||P){if(f=Bt,f!==null){switch(_&-_){case 4:E=2;break;case 16:E=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:E=32;break;case 536870912:E=268435456;break;default:E=0}E=(E&(f.suspendedLanes|_))!==0?0:E,E!==0&&E!==y.retryLane&&(y.retryLane=E,Fr(i,E),ir(f,i,E,-1))}return qp(),f=wp(Error(n(421))),fc(i,s,_,f)}return E.data==="$?"?(s.flags|=128,s.child=i.child,s=xM.bind(null,i),E._reactRetry=s,null):(i=y.treeContext,kn=ai(E.nextSibling),vn=s,pt=!0,er=null,i!==null&&(Fn[Bn++]=Dr,Fn[Bn++]=Mr,Fn[Bn++]=Qi,Dr=i.id,Mr=i.overflow,Qi=s),s=Op(s,f.children),s.flags|=4096,s)}function K2(i,s,l){i.lanes|=s;var f=i.alternate;f!==null&&(f.lanes|=s),ap(i.return,s,l)}function Ip(i,s,l,f,E){var y=i.memoizedState;y===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:f,tail:l,tailMode:E}:(y.isBackwards=s,y.rendering=null,y.renderingStartTime=0,y.last=f,y.tail=l,y.tailMode=E)}function Q2(i,s,l){var f=s.pendingProps,E=f.revealOrder,y=f.tail;if(rn(i,s,f.children,l),f=mt.current,(f&2)!==0)f=f&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&K2(i,l,s);else if(i.tag===19)K2(i,l,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}f&=1}if(st(mt,f),(s.mode&1)===0)s.memoizedState=null;else switch(E){case"forwards":for(l=s.child,E=null;l!==null;)i=l.alternate,i!==null&&oc(i)===null&&(E=l),l=l.sibling;l=E,l===null?(E=s.child,s.child=null):(E=l.sibling,l.sibling=null),Ip(s,!1,E,l,y);break;case"backwards":for(l=null,E=s.child,s.child=null;E!==null;){if(i=E.alternate,i!==null&&oc(i)===null){s.child=E;break}i=E.sibling,E.sibling=l,l=E,E=i}Ip(s,!0,l,null,y);break;case"together":Ip(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function hc(i,s){(s.mode&1)===0&&i!==null&&(i.alternate=null,s.alternate=null,s.flags|=2)}function Ur(i,s,l){if(i!==null&&(s.dependencies=i.dependencies),to|=s.lanes,(l&s.childLanes)===0)return null;if(i!==null&&s.child!==i.child)throw Error(n(153));if(s.child!==null){for(i=s.child,l=yi(i,i.pendingProps),s.child=l,l.return=s;i.sibling!==null;)i=i.sibling,l=l.sibling=yi(i,i.pendingProps),l.return=s;l.sibling=null}return s.child}function cM(i,s,l){switch(s.tag){case 3:q2(s),cs();break;case 5:c2(s);break;case 1:gn(s.type)&&Kl(s);break;case 4:cp(s,s.stateNode.containerInfo);break;case 10:var f=s.type._context,E=s.memoizedProps.value;st(tc,f._currentValue),f._currentValue=E;break;case 13:if(f=s.memoizedState,f!==null)return f.dehydrated!==null?(st(mt,mt.current&1),s.flags|=128,null):(l&s.child.childLanes)!==0?G2(i,s,l):(st(mt,mt.current&1),i=Ur(i,s,l),i!==null?i.sibling:null);st(mt,mt.current&1);break;case 19:if(f=(l&s.childLanes)!==0,(i.flags&128)!==0){if(f)return Q2(i,s,l);s.flags|=128}if(E=s.memoizedState,E!==null&&(E.rendering=null,E.tail=null,E.lastEffect=null),st(mt,mt.current),f)break;return null;case 22:case 23:return s.lanes=0,$2(i,s,l)}return Ur(i,s,l)}var X2,Pp,J2,Z2;X2=function(i,s){for(var l=s.child;l!==null;){if(l.tag===5||l.tag===6)i.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Pp=function(){},J2=function(i,s,l,f){var E=i.memoizedProps;if(E!==f){i=s.stateNode,Zi(xr.current);var y=null;switch(l){case"input":E=Xn(i,E),f=Xn(i,f),y=[];break;case"select":E=w({},E,{value:void 0}),f=w({},f,{value:void 0}),y=[];break;case"textarea":E=ga(i,E),f=ga(i,f),y=[];break;default:typeof E.onClick!="function"&&typeof f.onClick=="function"&&(i.onclick=ql)}zt(l,f);var _;l=null;for(W in E)if(!f.hasOwnProperty(W)&&E.hasOwnProperty(W)&&E[W]!=null)if(W==="style"){var P=E[W];for(_ in P)P.hasOwnProperty(_)&&(l||(l={}),l[_]="")}else W!=="dangerouslySetInnerHTML"&&W!=="children"&&W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&W!=="autoFocus"&&(o.hasOwnProperty(W)?y||(y=[]):(y=y||[]).push(W,null));for(W in f){var B=f[W];if(P=E!=null?E[W]:void 0,f.hasOwnProperty(W)&&B!==P&&(B!=null||P!=null))if(W==="style")if(P){for(_ in P)!P.hasOwnProperty(_)||B&&B.hasOwnProperty(_)||(l||(l={}),l[_]="");for(_ in B)B.hasOwnProperty(_)&&P[_]!==B[_]&&(l||(l={}),l[_]=B[_])}else l||(y||(y=[]),y.push(W,l)),l=B;else W==="dangerouslySetInnerHTML"?(B=B?B.__html:void 0,P=P?P.__html:void 0,B!=null&&P!==B&&(y=y||[]).push(W,B)):W==="children"?typeof B!="string"&&typeof B!="number"||(y=y||[]).push(W,""+B):W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&(o.hasOwnProperty(W)?(B!=null&&W==="onScroll"&<("scroll",i),y||P===B||(y=[])):(y=y||[]).push(W,B))}l&&(y=y||[]).push("style",l);var W=y;(s.updateQueue=W)&&(s.flags|=4)}},Z2=function(i,s,l,f){l!==f&&(s.flags|=4)};function Wa(i,s){if(!pt)switch(i.tailMode){case"hidden":s=i.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?i.tail=null:l.sibling=null;break;case"collapsed":l=i.tail;for(var f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:f.sibling=null}}function Xt(i){var s=i.alternate!==null&&i.alternate.child===i.child,l=0,f=0;if(s)for(var E=i.child;E!==null;)l|=E.lanes|E.childLanes,f|=E.subtreeFlags&14680064,f|=E.flags&14680064,E.return=i,E=E.sibling;else for(E=i.child;E!==null;)l|=E.lanes|E.childLanes,f|=E.subtreeFlags,f|=E.flags,E.return=i,E=E.sibling;return i.subtreeFlags|=f,i.childLanes=l,s}function dM(i,s,l){var f=s.pendingProps;switch(ep(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(s),null;case 1:return gn(s.type)&&Gl(),Xt(s),null;case 3:return f=s.stateNode,ps(),ct(mn),ct(Kt),hp(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(i===null||i.child===null)&&(Zl(s)?s.flags|=4:i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,er!==null&&($p(er),er=null))),Pp(i,s),Xt(s),null;case 5:dp(s);var E=Zi(ja.current);if(l=s.type,i!==null&&s.stateNode!=null)J2(i,s,l,f,E),i.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!f){if(s.stateNode===null)throw Error(n(166));return Xt(s),null}if(i=Zi(xr.current),Zl(s)){f=s.stateNode,l=s.type;var y=s.memoizedProps;switch(f[_r]=s,f[Fa]=y,i=(s.mode&1)!==0,l){case"dialog":lt("cancel",f),lt("close",f);break;case"iframe":case"object":case"embed":lt("load",f);break;case"video":case"audio":for(E=0;E<La.length;E++)lt(La[E],f);break;case"source":lt("error",f);break;case"img":case"image":case"link":lt("error",f),lt("load",f);break;case"details":lt("toggle",f);break;case"input":pa(f,y),lt("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!y.multiple},lt("invalid",f);break;case"textarea":xl(f,y),lt("invalid",f)}zt(l,y),E=null;for(var _ in y)if(y.hasOwnProperty(_)){var P=y[_];_==="children"?typeof P=="string"?f.textContent!==P&&(y.suppressHydrationWarning!==!0&&Yl(f.textContent,P,i),E=["children",P]):typeof P=="number"&&f.textContent!==""+P&&(y.suppressHydrationWarning!==!0&&Yl(f.textContent,P,i),E=["children",""+P]):o.hasOwnProperty(_)&&P!=null&&_==="onScroll"&<("scroll",f)}switch(l){case"input":pn(f),_l(f,y,!0);break;case"textarea":pn(f),wl(f);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(f.onclick=ql)}f=E,s.updateQueue=f,f!==null&&(s.flags|=4)}else{_=E.nodeType===9?E:E.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=Z(l)),i==="http://www.w3.org/1999/xhtml"?l==="script"?(i=_.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof f.is=="string"?i=_.createElement(l,{is:f.is}):(i=_.createElement(l),l==="select"&&(_=i,f.multiple?_.multiple=!0:f.size&&(_.size=f.size))):i=_.createElementNS(i,l),i[_r]=s,i[Fa]=f,X2(i,s,!1,!1),s.stateNode=i;e:{switch(_=Tr(l,f),l){case"dialog":lt("cancel",i),lt("close",i),E=f;break;case"iframe":case"object":case"embed":lt("load",i),E=f;break;case"video":case"audio":for(E=0;E<La.length;E++)lt(La[E],i);E=f;break;case"source":lt("error",i),E=f;break;case"img":case"image":case"link":lt("error",i),lt("load",i),E=f;break;case"details":lt("toggle",i),E=f;break;case"input":pa(i,f),E=Xn(i,f),lt("invalid",i);break;case"option":E=f;break;case"select":i._wrapperState={wasMultiple:!!f.multiple},E=w({},f,{value:void 0}),lt("invalid",i);break;case"textarea":xl(i,f),E=ga(i,f),lt("invalid",i);break;default:E=f}zt(l,E),P=E;for(y in P)if(P.hasOwnProperty(y)){var B=P[y];y==="style"?ei(i,B):y==="dangerouslySetInnerHTML"?(B=B?B.__html:void 0,B!=null&&qe(i,B)):y==="children"?typeof B=="string"?(l!=="textarea"||B!=="")&&Xe(i,B):typeof B=="number"&&Xe(i,""+B):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(o.hasOwnProperty(y)?B!=null&&y==="onScroll"&<("scroll",i):B!=null&&k(i,y,B,_))}switch(l){case"input":pn(i),_l(i,f,!1);break;case"textarea":pn(i),wl(i);break;case"option":f.value!=null&&i.setAttribute("value",""+we(f.value));break;case"select":i.multiple=!!f.multiple,y=f.value,y!=null?Zr(i,!!f.multiple,y,!1):f.defaultValue!=null&&Zr(i,!!f.multiple,f.defaultValue,!0);break;default:typeof E.onClick=="function"&&(i.onclick=ql)}switch(l){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}}f&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Xt(s),null;case 6:if(i&&s.stateNode!=null)Z2(i,s,i.memoizedProps,f);else{if(typeof f!="string"&&s.stateNode===null)throw Error(n(166));if(l=Zi(ja.current),Zi(xr.current),Zl(s)){if(f=s.stateNode,l=s.memoizedProps,f[_r]=s,(y=f.nodeValue!==l)&&(i=vn,i!==null))switch(i.tag){case 3:Yl(f.nodeValue,l,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&Yl(f.nodeValue,l,(i.mode&1)!==0)}y&&(s.flags|=4)}else f=(l.nodeType===9?l:l.ownerDocument).createTextNode(f),f[_r]=s,s.stateNode=f}return Xt(s),null;case 13:if(ct(mt),f=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(pt&&kn!==null&&(s.mode&1)!==0&&(s.flags&128)===0)n2(),cs(),s.flags|=98560,y=!1;else if(y=Zl(s),f!==null&&f.dehydrated!==null){if(i===null){if(!y)throw Error(n(318));if(y=s.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[_r]=s}else cs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Xt(s),y=!1}else er!==null&&($p(er),er=null),y=!0;if(!y)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=l,s):(f=f!==null,f!==(i!==null&&i.memoizedState!==null)&&f&&(s.child.flags|=8192,(s.mode&1)!==0&&(i===null||(mt.current&1)!==0?It===0&&(It=3):qp())),s.updateQueue!==null&&(s.flags|=4),Xt(s),null);case 4:return ps(),Pp(i,s),i===null&&Da(s.stateNode.containerInfo),Xt(s),null;case 10:return sp(s.type._context),Xt(s),null;case 17:return gn(s.type)&&Gl(),Xt(s),null;case 19:if(ct(mt),y=s.memoizedState,y===null)return Xt(s),null;if(f=(s.flags&128)!==0,_=y.rendering,_===null)if(f)Wa(y,!1);else{if(It!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(_=oc(i),_!==null){for(s.flags|=128,Wa(y,!1),f=_.updateQueue,f!==null&&(s.updateQueue=f,s.flags|=4),s.subtreeFlags=0,f=l,l=s.child;l!==null;)y=l,i=f,y.flags&=14680066,_=y.alternate,_===null?(y.childLanes=0,y.lanes=i,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=_.childLanes,y.lanes=_.lanes,y.child=_.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=_.memoizedProps,y.memoizedState=_.memoizedState,y.updateQueue=_.updateQueue,y.type=_.type,i=_.dependencies,y.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),l=l.sibling;return st(mt,mt.current&1|2),s.child}i=i.sibling}y.tail!==null&&xt()>ys&&(s.flags|=128,f=!0,Wa(y,!1),s.lanes=4194304)}else{if(!f)if(i=oc(_),i!==null){if(s.flags|=128,f=!0,l=i.updateQueue,l!==null&&(s.updateQueue=l,s.flags|=4),Wa(y,!0),y.tail===null&&y.tailMode==="hidden"&&!_.alternate&&!pt)return Xt(s),null}else 2*xt()-y.renderingStartTime>ys&&l!==1073741824&&(s.flags|=128,f=!0,Wa(y,!1),s.lanes=4194304);y.isBackwards?(_.sibling=s.child,s.child=_):(l=y.last,l!==null?l.sibling=_:s.child=_,y.last=_)}return y.tail!==null?(s=y.tail,y.rendering=s,y.tail=s.sibling,y.renderingStartTime=xt(),s.sibling=null,l=mt.current,st(mt,f?l&1|2:l&1),s):(Xt(s),null);case 22:case 23:return Yp(),f=s.memoizedState!==null,i!==null&&i.memoizedState!==null!==f&&(s.flags|=8192),f&&(s.mode&1)!==0?(Nn&1073741824)!==0&&(Xt(s),s.subtreeFlags&6&&(s.flags|=8192)):Xt(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function fM(i,s){switch(ep(s),s.tag){case 1:return gn(s.type)&&Gl(),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return ps(),ct(mn),ct(Kt),hp(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 5:return dp(s),null;case 13:if(ct(mt),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(n(340));cs()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return ct(mt),null;case 4:return ps(),null;case 10:return sp(s.type._context),null;case 22:case 23:return Yp(),null;case 24:return null;default:return null}}var pc=!1,Jt=!1,hM=typeof WeakSet=="function"?WeakSet:Set,Se=null;function gs(i,s){var l=i.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(f){yt(i,s,f)}else l.current=null}function Rp(i,s,l){try{l()}catch(f){yt(i,s,f)}}var e_=!1;function pM(i,s){if(Yh=Ll,i=Pb(),Fh(i)){if("selectionStart"in i)var l={start:i.selectionStart,end:i.selectionEnd};else e:{l=(l=i.ownerDocument)&&l.defaultView||window;var f=l.getSelection&&l.getSelection();if(f&&f.rangeCount!==0){l=f.anchorNode;var E=f.anchorOffset,y=f.focusNode;f=f.focusOffset;try{l.nodeType,y.nodeType}catch(ge){l=null;break e}var _=0,P=-1,B=-1,W=0,oe=0,ue=i,ne=null;t:for(;;){for(var _e;ue!==l||E!==0&&ue.nodeType!==3||(P=_+E),ue!==y||f!==0&&ue.nodeType!==3||(B=_+f),ue.nodeType===3&&(_+=ue.nodeValue.length),(_e=ue.firstChild)!==null;)ne=ue,ue=_e;for(;;){if(ue===i)break t;if(ne===l&&++W===E&&(P=_),ne===y&&++oe===f&&(B=_),(_e=ue.nextSibling)!==null)break;ue=ne,ne=ue.parentNode}ue=_e}l=P===-1||B===-1?null:{start:P,end:B}}else l=null}l=l||{start:0,end:0}}else l=null;for(qh={focusedElem:i,selectionRange:l},Ll=!1,Se=s;Se!==null;)if(s=Se,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Se=i;else for(;Se!==null;){s=Se;try{var Ae=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(Ae!==null){var ve=Ae.memoizedProps,St=Ae.memoizedState,$=s.stateNode,H=$.getSnapshotBeforeUpdate(s.elementType===s.type?ve:tr(s.type,ve),St);$.__reactInternalSnapshotBeforeUpdate=H}break;case 3:var q=s.stateNode.containerInfo;q.nodeType===1?q.textContent="":q.nodeType===9&&q.documentElement&&q.removeChild(q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ge){yt(s,s.return,ge)}if(i=s.sibling,i!==null){i.return=s.return,Se=i;break}Se=s.return}return Ae=e_,e_=!1,Ae}function Ga(i,s,l){var f=s.updateQueue;if(f=f!==null?f.lastEffect:null,f!==null){var E=f=f.next;do{if((E.tag&i)===i){var y=E.destroy;E.destroy=void 0,y!==void 0&&Rp(s,l,y)}E=E.next}while(E!==f)}}function mc(i,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&i)===i){var f=l.create;l.destroy=f()}l=l.next}while(l!==s)}}function Lp(i){var s=i.ref;if(s!==null){var l=i.stateNode;i.tag,i=l,typeof s=="function"?s(i):s.current=i}}function t_(i){var s=i.alternate;s!==null&&(i.alternate=null,t_(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&(delete s[_r],delete s[Fa],delete s[Qh],delete s[Q8],delete s[X8])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function n_(i){return i.tag===5||i.tag===3||i.tag===4}function r_(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||n_(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Dp(i,s,l){var f=i.tag;if(f===5||f===6)i=i.stateNode,s?l.nodeType===8?l.parentNode.insertBefore(i,s):l.insertBefore(i,s):(l.nodeType===8?(s=l.parentNode,s.insertBefore(i,l)):(s=l,s.appendChild(i)),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=ql));else if(f!==4&&(i=i.child,i!==null))for(Dp(i,s,l),i=i.sibling;i!==null;)Dp(i,s,l),i=i.sibling}function Mp(i,s,l){var f=i.tag;if(f===5||f===6)i=i.stateNode,s?l.insertBefore(i,s):l.appendChild(i);else if(f!==4&&(i=i.child,i!==null))for(Mp(i,s,l),i=i.sibling;i!==null;)Mp(i,s,l),i=i.sibling}var jt=null,nr=!1;function hi(i,s,l){for(l=l.child;l!==null;)i_(i,s,l),l=l.sibling}function i_(i,s,l){if(br&&typeof br.onCommitFiberUnmount=="function")try{br.onCommitFiberUnmount(kl,l)}catch(P){}switch(l.tag){case 5:Jt||gs(l,s);case 6:var f=jt,E=nr;jt=null,hi(i,s,l),jt=f,nr=E,jt!==null&&(nr?(i=jt,l=l.stateNode,i.nodeType===8?i.parentNode.removeChild(l):i.removeChild(l)):jt.removeChild(l.stateNode));break;case 18:jt!==null&&(nr?(i=jt,l=l.stateNode,i.nodeType===8?Kh(i.parentNode,l):i.nodeType===1&&Kh(i,l),Ca(i)):Kh(jt,l.stateNode));break;case 4:f=jt,E=nr,jt=l.stateNode.containerInfo,nr=!0,hi(i,s,l),jt=f,nr=E;break;case 0:case 11:case 14:case 15:if(!Jt&&(f=l.updateQueue,f!==null&&(f=f.lastEffect,f!==null))){E=f=f.next;do{var y=E,_=y.destroy;y=y.tag,_!==void 0&&((y&2)!==0||(y&4)!==0)&&Rp(l,s,_),E=E.next}while(E!==f)}hi(i,s,l);break;case 1:if(!Jt&&(gs(l,s),f=l.stateNode,typeof f.componentWillUnmount=="function"))try{f.props=l.memoizedProps,f.state=l.memoizedState,f.componentWillUnmount()}catch(P){yt(l,s,P)}hi(i,s,l);break;case 21:hi(i,s,l);break;case 22:l.mode&1?(Jt=(f=Jt)||l.memoizedState!==null,hi(i,s,l),Jt=f):hi(i,s,l);break;default:hi(i,s,l)}}function o_(i){var s=i.updateQueue;if(s!==null){i.updateQueue=null;var l=i.stateNode;l===null&&(l=i.stateNode=new hM),s.forEach(function(f){var E=SM.bind(null,i,f);l.has(f)||(l.add(f),f.then(E,E))})}}function rr(i,s){var l=s.deletions;if(l!==null)for(var f=0;f<l.length;f++){var E=l[f];try{var y=i,_=s,P=_;e:for(;P!==null;){switch(P.tag){case 5:jt=P.stateNode,nr=!1;break e;case 3:jt=P.stateNode.containerInfo,nr=!0;break e;case 4:jt=P.stateNode.containerInfo,nr=!0;break e}P=P.return}if(jt===null)throw Error(n(160));i_(y,_,E),jt=null,nr=!1;var B=E.alternate;B!==null&&(B.return=null),E.return=null}catch(W){yt(E,s,W)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)s_(s,i),s=s.sibling}function s_(i,s){var l=i.alternate,f=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(rr(s,i),wr(i),f&4){try{Ga(3,i,i.return),mc(3,i)}catch(ve){yt(i,i.return,ve)}try{Ga(5,i,i.return)}catch(ve){yt(i,i.return,ve)}}break;case 1:rr(s,i),wr(i),f&512&&l!==null&&gs(l,l.return);break;case 5:if(rr(s,i),wr(i),f&512&&l!==null&&gs(l,l.return),i.flags&32){var E=i.stateNode;try{Xe(E,"")}catch(ve){yt(i,i.return,ve)}}if(f&4&&(E=i.stateNode,E!=null)){var y=i.memoizedProps,_=l!==null?l.memoizedProps:y,P=i.type,B=i.updateQueue;if(i.updateQueue=null,B!==null)try{P==="input"&&y.type==="radio"&&y.name!=null&&ma(E,y),Tr(P,_);var W=Tr(P,y);for(_=0;_<B.length;_+=2){var oe=B[_],ue=B[_+1];oe==="style"?ei(E,ue):oe==="dangerouslySetInnerHTML"?qe(E,ue):oe==="children"?Xe(E,ue):k(E,oe,ue,W)}switch(P){case"input":Go(E,y);break;case"textarea":Sl(E,y);break;case"select":var ne=E._wrapperState.wasMultiple;E._wrapperState.wasMultiple=!!y.multiple;var _e=y.value;_e!=null?Zr(E,!!y.multiple,_e,!1):ne!==!!y.multiple&&(y.defaultValue!=null?Zr(E,!!y.multiple,y.defaultValue,!0):Zr(E,!!y.multiple,y.multiple?[]:"",!1))}E[Fa]=y}catch(ve){yt(i,i.return,ve)}}break;case 6:if(rr(s,i),wr(i),f&4){if(i.stateNode===null)throw Error(n(162));E=i.stateNode,y=i.memoizedProps;try{E.nodeValue=y}catch(ve){yt(i,i.return,ve)}}break;case 3:if(rr(s,i),wr(i),f&4&&l!==null&&l.memoizedState.isDehydrated)try{Ca(s.containerInfo)}catch(ve){yt(i,i.return,ve)}break;case 4:rr(s,i),wr(i);break;case 13:rr(s,i),wr(i),E=i.child,E.flags&8192&&(y=E.memoizedState!==null,E.stateNode.isHidden=y,!y||E.alternate!==null&&E.alternate.memoizedState!==null||(Up=xt())),f&4&&o_(i);break;case 22:if(oe=l!==null&&l.memoizedState!==null,i.mode&1?(Jt=(W=Jt)||oe,rr(s,i),Jt=W):rr(s,i),wr(i),f&8192){if(W=i.memoizedState!==null,(i.stateNode.isHidden=W)&&!oe&&(i.mode&1)!==0)for(Se=i,oe=i.child;oe!==null;){for(ue=Se=oe;Se!==null;){switch(ne=Se,_e=ne.child,ne.tag){case 0:case 11:case 14:case 15:Ga(4,ne,ne.return);break;case 1:gs(ne,ne.return);var Ae=ne.stateNode;if(typeof Ae.componentWillUnmount=="function"){f=ne,l=ne.return;try{s=f,Ae.props=s.memoizedProps,Ae.state=s.memoizedState,Ae.componentWillUnmount()}catch(ve){yt(f,l,ve)}}break;case 5:gs(ne,ne.return);break;case 22:if(ne.memoizedState!==null){l_(ue);continue}}_e!==null?(_e.return=ne,Se=_e):l_(ue)}oe=oe.sibling}e:for(oe=null,ue=i;;){if(ue.tag===5){if(oe===null){oe=ue;try{E=ue.stateNode,W?(y=E.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(P=ue.stateNode,B=ue.memoizedProps.style,_=B!=null&&B.hasOwnProperty("display")?B.display:null,P.style.display=Mn("display",_))}catch(ve){yt(i,i.return,ve)}}}else if(ue.tag===6){if(oe===null)try{ue.stateNode.nodeValue=W?"":ue.memoizedProps}catch(ve){yt(i,i.return,ve)}}else if((ue.tag!==22&&ue.tag!==23||ue.memoizedState===null||ue===i)&&ue.child!==null){ue.child.return=ue,ue=ue.child;continue}if(ue===i)break e;for(;ue.sibling===null;){if(ue.return===null||ue.return===i)break e;oe===ue&&(oe=null),ue=ue.return}oe===ue&&(oe=null),ue.sibling.return=ue.return,ue=ue.sibling}}break;case 19:rr(s,i),wr(i),f&4&&o_(i);break;case 21:break;default:rr(s,i),wr(i)}}function wr(i){var s=i.flags;if(s&2){try{e:{for(var l=i.return;l!==null;){if(n_(l)){var f=l;break e}l=l.return}throw Error(n(160))}switch(f.tag){case 5:var E=f.stateNode;f.flags&32&&(Xe(E,""),f.flags&=-33);var y=r_(i);Mp(i,y,E);break;case 3:case 4:var _=f.stateNode.containerInfo,P=r_(i);Dp(i,P,_);break;default:throw Error(n(161))}}catch(B){yt(i,i.return,B)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function mM(i,s,l){Se=i,a_(i)}function a_(i,s,l){for(var f=(i.mode&1)!==0;Se!==null;){var E=Se,y=E.child;if(E.tag===22&&f){var _=E.memoizedState!==null||pc;if(!_){var P=E.alternate,B=P!==null&&P.memoizedState!==null||Jt;P=pc;var W=Jt;if(pc=_,(Jt=B)&&!W)for(Se=E;Se!==null;)_=Se,B=_.child,_.tag===22&&_.memoizedState!==null?c_(E):B!==null?(B.return=_,Se=B):c_(E);for(;y!==null;)Se=y,a_(y),y=y.sibling;Se=E,pc=P,Jt=W}u_(i)}else(E.subtreeFlags&8772)!==0&&y!==null?(y.return=E,Se=y):u_(i)}}function u_(i){for(;Se!==null;){var s=Se;if((s.flags&8772)!==0){var l=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Jt||mc(5,s);break;case 1:var f=s.stateNode;if(s.flags&4&&!Jt)if(l===null)f.componentDidMount();else{var E=s.elementType===s.type?l.memoizedProps:tr(s.type,l.memoizedProps);f.componentDidUpdate(E,l.memoizedState,f.__reactInternalSnapshotBeforeUpdate)}var y=s.updateQueue;y!==null&&l2(s,y,f);break;case 3:var _=s.updateQueue;if(_!==null){if(l=null,s.child!==null)switch(s.child.tag){case 5:l=s.child.stateNode;break;case 1:l=s.child.stateNode}l2(s,_,l)}break;case 5:var P=s.stateNode;if(l===null&&s.flags&4){l=P;var B=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":B.autoFocus&&l.focus();break;case"img":B.src&&(l.src=B.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var W=s.alternate;if(W!==null){var oe=W.memoizedState;if(oe!==null){var ue=oe.dehydrated;ue!==null&&Ca(ue)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Jt||s.flags&512&&Lp(s)}catch(ne){yt(s,s.return,ne)}}if(s===i){Se=null;break}if(l=s.sibling,l!==null){l.return=s.return,Se=l;break}Se=s.return}}function l_(i){for(;Se!==null;){var s=Se;if(s===i){Se=null;break}var l=s.sibling;if(l!==null){l.return=s.return,Se=l;break}Se=s.return}}function c_(i){for(;Se!==null;){var s=Se;try{switch(s.tag){case 0:case 11:case 15:var l=s.return;try{mc(4,s)}catch(B){yt(s,l,B)}break;case 1:var f=s.stateNode;if(typeof f.componentDidMount=="function"){var E=s.return;try{f.componentDidMount()}catch(B){yt(s,E,B)}}var y=s.return;try{Lp(s)}catch(B){yt(s,y,B)}break;case 5:var _=s.return;try{Lp(s)}catch(B){yt(s,_,B)}}}catch(B){yt(s,s.return,B)}if(s===i){Se=null;break}var P=s.sibling;if(P!==null){P.return=s.return,Se=P;break}Se=s.return}}var gM=Math.ceil,gc=M.ReactCurrentDispatcher,Fp=M.ReactCurrentOwner,zn=M.ReactCurrentBatchConfig,Je=0,Bt=null,vt=null,$t=0,Nn=0,Es=ui(0),It=0,Ka=null,to=0,Ec=0,Bp=0,Qa=null,yn=null,Up=0,ys=1/0,Hr=null,yc=!1,Hp=null,pi=null,Tc=!1,mi=null,bc=0,Xa=0,zp=null,_c=-1,xc=0;function on(){return(Je&6)!==0?xt():_c!==-1?_c:_c=xt()}function gi(i){return(i.mode&1)===0?1:(Je&2)!==0&&$t!==0?$t&-$t:Z8.transition!==null?(xc===0&&(xc=rb()),xc):(i=tt,i!==0||(i=window.event,i=i===void 0?16:fb(i.type)),i)}function ir(i,s,l,f){if(50<Xa)throw Xa=0,zp=null,Error(n(185));_a(i,l,f),((Je&2)===0||i!==Bt)&&(i===Bt&&((Je&2)===0&&(Ec|=l),It===4&&Ei(i,$t)),Tn(i,f),l===1&&Je===0&&(s.mode&1)===0&&(ys=xt()+500,Ql&&ci()))}function Tn(i,s){var l=i.callbackNode;Z5(i,s);var f=Il(i,i===Bt?$t:0);if(f===0)l!==null&&eb(l),i.callbackNode=null,i.callbackPriority=0;else if(s=f&-f,i.callbackPriority!==s){if(l!=null&&eb(l),s===1)i.tag===0?J8(f_.bind(null,i)):Xb(f_.bind(null,i)),G8(function(){(Je&6)===0&&ci()}),l=null;else{switch(ib(f)){case 1:l=bh;break;case 4:l=tb;break;case 16:l=vl;break;case 536870912:l=nb;break;default:l=vl}l=b_(l,d_.bind(null,i))}i.callbackPriority=s,i.callbackNode=l}}function d_(i,s){if(_c=-1,xc=0,(Je&6)!==0)throw Error(n(327));var l=i.callbackNode;if(Ts()&&i.callbackNode!==l)return null;var f=Il(i,i===Bt?$t:0);if(f===0)return null;if((f&30)!==0||(f&i.expiredLanes)!==0||s)s=Sc(i,f);else{s=f;var E=Je;Je|=2;var y=p_();(Bt!==i||$t!==s)&&(Hr=null,ys=xt()+500,ro(i,s));do try{TM();break}catch(P){h_(i,P)}while(!0);op(),gc.current=y,Je=E,vt!==null?s=0:(Bt=null,$t=0,s=It)}if(s!==0){if(s===2&&(E=_h(i),E!==0&&(f=E,s=jp(i,E))),s===1)throw l=Ka,ro(i,0),Ei(i,f),Tn(i,xt()),l;if(s===6)Ei(i,f);else{if(E=i.current.alternate,(f&30)===0&&!EM(E)&&(s=Sc(i,f),s===2&&(y=_h(i),y!==0&&(f=y,s=jp(i,y))),s===1))throw l=Ka,ro(i,0),Ei(i,f),Tn(i,xt()),l;switch(i.finishedWork=E,i.finishedLanes=f,s){case 0:case 1:throw Error(n(345));case 2:io(i,yn,Hr);break;case 3:if(Ei(i,f),(f&130023424)===f&&(s=Up+500-xt(),10<s)){if(Il(i,0)!==0)break;if(E=i.suspendedLanes,(E&f)!==f){on(),i.pingedLanes|=i.suspendedLanes&E;break}i.timeoutHandle=Gh(io.bind(null,i,yn,Hr),s);break}io(i,yn,Hr);break;case 4:if(Ei(i,f),(f&4194240)===f)break;for(s=i.eventTimes,E=-1;0<f;){var _=31-Jn(f);y=1<<_,_=s[_],_>E&&(E=_),f&=~y}if(f=E,f=xt()-f,f=(120>f?120:480>f?480:1080>f?1080:1920>f?1920:3e3>f?3e3:4320>f?4320:1960*gM(f/1960))-f,10<f){i.timeoutHandle=Gh(io.bind(null,i,yn,Hr),f);break}io(i,yn,Hr);break;case 5:io(i,yn,Hr);break;default:throw Error(n(329))}}}return Tn(i,xt()),i.callbackNode===l?d_.bind(null,i):null}function jp(i,s){var l=Qa;return i.current.memoizedState.isDehydrated&&(ro(i,s).flags|=256),i=Sc(i,s),i!==2&&(s=yn,yn=l,s!==null&&$p(s)),i}function $p(i){yn===null?yn=i:yn.push.apply(yn,i)}function EM(i){for(var s=i;;){if(s.flags&16384){var l=s.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var f=0;f<l.length;f++){var E=l[f],y=E.getSnapshot;E=E.value;try{if(!Zn(y(),E))return!1}catch(_){return!1}}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ei(i,s){for(s&=~Bp,s&=~Ec,i.suspendedLanes|=s,i.pingedLanes&=~s,i=i.expirationTimes;0<s;){var l=31-Jn(s),f=1<<l;i[l]=-1,s&=~f}}function f_(i){if((Je&6)!==0)throw Error(n(327));Ts();var s=Il(i,0);if((s&1)===0)return Tn(i,xt()),null;var l=Sc(i,s);if(i.tag!==0&&l===2){var f=_h(i);f!==0&&(s=f,l=jp(i,f))}if(l===1)throw l=Ka,ro(i,0),Ei(i,s),Tn(i,xt()),l;if(l===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=s,io(i,yn,Hr),Tn(i,xt()),null}function Vp(i,s){var l=Je;Je|=1;try{return i(s)}finally{Je=l,Je===0&&(ys=xt()+500,Ql&&ci())}}function no(i){mi!==null&&mi.tag===0&&(Je&6)===0&&Ts();var s=Je;Je|=1;var l=zn.transition,f=tt;try{if(zn.transition=null,tt=1,i)return i()}finally{tt=f,zn.transition=l,Je=s,(Je&6)===0&&ci()}}function Yp(){Nn=Es.current,ct(Es)}function ro(i,s){i.finishedWork=null,i.finishedLanes=0;var l=i.timeoutHandle;if(l!==-1&&(i.timeoutHandle=-1,W8(l)),vt!==null)for(l=vt.return;l!==null;){var f=l;switch(ep(f),f.tag){case 1:f=f.type.childContextTypes,f!=null&&Gl();break;case 3:ps(),ct(mn),ct(Kt),hp();break;case 5:dp(f);break;case 4:ps();break;case 13:ct(mt);break;case 19:ct(mt);break;case 10:sp(f.type._context);break;case 22:case 23:Yp()}l=l.return}if(Bt=i,vt=i=yi(i.current,null),$t=Nn=s,It=0,Ka=null,Bp=Ec=to=0,yn=Qa=null,Ji!==null){for(s=0;s<Ji.length;s++)if(l=Ji[s],f=l.interleaved,f!==null){l.interleaved=null;var E=f.next,y=l.pending;if(y!==null){var _=y.next;y.next=E,f.next=_}l.pending=f}Ji=null}return i}function h_(i,s){do{var l=vt;try{if(op(),sc.current=cc,ac){for(var f=gt.memoizedState;f!==null;){var E=f.queue;E!==null&&(E.pending=null),f=f.next}ac=!1}if(eo=0,Ft=Ot=gt=null,$a=!1,Va=0,Fp.current=null,l===null||l.return===null){It=1,Ka=s,vt=null;break}e:{var y=i,_=l.return,P=l,B=s;if(s=$t,P.flags|=32768,B!==null&&typeof B=="object"&&typeof B.then=="function"){var W=B,oe=P,ue=oe.tag;if((oe.mode&1)===0&&(ue===0||ue===11||ue===15)){var ne=oe.alternate;ne?(oe.updateQueue=ne.updateQueue,oe.memoizedState=ne.memoizedState,oe.lanes=ne.lanes):(oe.updateQueue=null,oe.memoizedState=null)}var _e=B2(_);if(_e!==null){_e.flags&=-257,U2(_e,_,P,y,s),_e.mode&1&&F2(y,W,s),s=_e,B=W;var Ae=s.updateQueue;if(Ae===null){var ve=new Set;ve.add(B),s.updateQueue=ve}else Ae.add(B);break e}else{if((s&1)===0){F2(y,W,s),qp();break e}B=Error(n(426))}}else if(pt&&P.mode&1){var St=B2(_);if(St!==null){(St.flags&65536)===0&&(St.flags|=256),U2(St,_,P,y,s),rp(ms(B,P));break e}}y=B=ms(B,P),It!==4&&(It=2),Qa===null?Qa=[y]:Qa.push(y),y=_;do{switch(y.tag){case 3:y.flags|=65536,s&=-s,y.lanes|=s;var $=D2(y,B,s);u2(y,$);break e;case 1:P=B;var H=y.type,q=y.stateNode;if((y.flags&128)===0&&(typeof H.getDerivedStateFromError=="function"||q!==null&&typeof q.componentDidCatch=="function"&&(pi===null||!pi.has(q)))){y.flags|=65536,s&=-s,y.lanes|=s;var ge=M2(y,P,s);u2(y,ge);break e}}y=y.return}while(y!==null)}g_(l)}catch(ke){s=ke,vt===l&&l!==null&&(vt=l=l.return);continue}break}while(!0)}function p_(){var i=gc.current;return gc.current=cc,i===null?cc:i}function qp(){(It===0||It===3||It===2)&&(It=4),Bt===null||(to&268435455)===0&&(Ec&268435455)===0||Ei(Bt,$t)}function Sc(i,s){var l=Je;Je|=2;var f=p_();(Bt!==i||$t!==s)&&(Hr=null,ro(i,s));do try{yM();break}catch(E){h_(i,E)}while(!0);if(op(),Je=l,gc.current=f,vt!==null)throw Error(n(261));return Bt=null,$t=0,It}function yM(){for(;vt!==null;)m_(vt)}function TM(){for(;vt!==null&&!V5();)m_(vt)}function m_(i){var s=T_(i.alternate,i,Nn);i.memoizedProps=i.pendingProps,s===null?g_(i):vt=s,Fp.current=null}function g_(i){var s=i;do{var l=s.alternate;if(i=s.return,(s.flags&32768)===0){if(l=dM(l,s,Nn),l!==null){vt=l;return}}else{if(l=fM(l,s),l!==null){l.flags&=32767,vt=l;return}if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{It=6,vt=null;return}}if(s=s.sibling,s!==null){vt=s;return}vt=s=i}while(s!==null);It===0&&(It=5)}function io(i,s,l){var f=tt,E=zn.transition;try{zn.transition=null,tt=1,bM(i,s,l,f)}finally{zn.transition=E,tt=f}return null}function bM(i,s,l,f){do Ts();while(mi!==null);if((Je&6)!==0)throw Error(n(327));l=i.finishedWork;var E=i.finishedLanes;if(l===null)return null;if(i.finishedWork=null,i.finishedLanes=0,l===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var y=l.lanes|l.childLanes;if(e8(i,y),i===Bt&&(vt=Bt=null,$t=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Tc||(Tc=!0,b_(vl,function(){return Ts(),null})),y=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||y){y=zn.transition,zn.transition=null;var _=tt;tt=1;var P=Je;Je|=4,Fp.current=null,pM(i,l),s_(l,i),H8(qh),Ll=!!Yh,qh=Yh=null,i.current=l,mM(l),Y5(),Je=P,tt=_,zn.transition=y}else i.current=l;if(Tc&&(Tc=!1,mi=i,bc=E),y=i.pendingLanes,y===0&&(pi=null),G5(l.stateNode),Tn(i,xt()),s!==null)for(f=i.onRecoverableError,l=0;l<s.length;l++)E=s[l],f(E.value,{componentStack:E.stack,digest:E.digest});if(yc)throw yc=!1,i=Hp,Hp=null,i;return(bc&1)!==0&&i.tag!==0&&Ts(),y=i.pendingLanes,(y&1)!==0?i===zp?Xa++:(Xa=0,zp=i):Xa=0,ci(),null}function Ts(){if(mi!==null){var i=ib(bc),s=zn.transition,l=tt;try{if(zn.transition=null,tt=16>i?16:i,mi===null)var f=!1;else{if(i=mi,mi=null,bc=0,(Je&6)!==0)throw Error(n(331));var E=Je;for(Je|=4,Se=i.current;Se!==null;){var y=Se,_=y.child;if((Se.flags&16)!==0){var P=y.deletions;if(P!==null){for(var B=0;B<P.length;B++){var W=P[B];for(Se=W;Se!==null;){var oe=Se;switch(oe.tag){case 0:case 11:case 15:Ga(8,oe,y)}var ue=oe.child;if(ue!==null)ue.return=oe,Se=ue;else for(;Se!==null;){oe=Se;var ne=oe.sibling,_e=oe.return;if(t_(oe),oe===W){Se=null;break}if(ne!==null){ne.return=_e,Se=ne;break}Se=_e}}}var Ae=y.alternate;if(Ae!==null){var ve=Ae.child;if(ve!==null){Ae.child=null;do{var St=ve.sibling;ve.sibling=null,ve=St}while(ve!==null)}}Se=y}}if((y.subtreeFlags&2064)!==0&&_!==null)_.return=y,Se=_;else e:for(;Se!==null;){if(y=Se,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:Ga(9,y,y.return)}var $=y.sibling;if($!==null){$.return=y.return,Se=$;break e}Se=y.return}}var H=i.current;for(Se=H;Se!==null;){_=Se;var q=_.child;if((_.subtreeFlags&2064)!==0&&q!==null)q.return=_,Se=q;else e:for(_=H;Se!==null;){if(P=Se,(P.flags&2048)!==0)try{switch(P.tag){case 0:case 11:case 15:mc(9,P)}}catch(ke){yt(P,P.return,ke)}if(P===_){Se=null;break e}var ge=P.sibling;if(ge!==null){ge.return=P.return,Se=ge;break e}Se=P.return}}if(Je=E,ci(),br&&typeof br.onPostCommitFiberRoot=="function")try{br.onPostCommitFiberRoot(kl,i)}catch(ke){}f=!0}return f}finally{tt=l,zn.transition=s}}return!1}function E_(i,s,l){s=ms(l,s),s=D2(i,s,1),i=fi(i,s,1),s=on(),i!==null&&(_a(i,1,s),Tn(i,s))}function yt(i,s,l){if(i.tag===3)E_(i,i,l);else for(;s!==null;){if(s.tag===3){E_(s,i,l);break}else if(s.tag===1){var f=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(pi===null||!pi.has(f))){i=ms(l,i),i=M2(s,i,1),s=fi(s,i,1),i=on(),s!==null&&(_a(s,1,i),Tn(s,i));break}}s=s.return}}function _M(i,s,l){var f=i.pingCache;f!==null&&f.delete(s),s=on(),i.pingedLanes|=i.suspendedLanes&l,Bt===i&&($t&l)===l&&(It===4||It===3&&($t&130023424)===$t&&500>xt()-Up?ro(i,0):Bp|=l),Tn(i,s)}function y_(i,s){s===0&&((i.mode&1)===0?s=1:(s=Ol,Ol<<=1,(Ol&130023424)===0&&(Ol=4194304)));var l=on();i=Fr(i,s),i!==null&&(_a(i,s,l),Tn(i,l))}function xM(i){var s=i.memoizedState,l=0;s!==null&&(l=s.retryLane),y_(i,l)}function SM(i,s){var l=0;switch(i.tag){case 13:var f=i.stateNode,E=i.memoizedState;E!==null&&(l=E.retryLane);break;case 19:f=i.stateNode;break;default:throw Error(n(314))}f!==null&&f.delete(s),y_(i,l)}var T_;T_=function(i,s,l){if(i!==null)if(i.memoizedProps!==s.pendingProps||mn.current)En=!0;else{if((i.lanes&l)===0&&(s.flags&128)===0)return En=!1,cM(i,s,l);En=(i.flags&131072)!==0}else En=!1,pt&&(s.flags&1048576)!==0&&Jb(s,Jl,s.index);switch(s.lanes=0,s.tag){case 2:var f=s.type;hc(i,s),i=s.pendingProps;var E=as(s,Kt.current);hs(s,l),E=gp(null,s,f,i,E,l);var y=Ep();return s.flags|=1,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,gn(f)?(y=!0,Kl(s)):y=!1,s.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,lp(s),E.updater=dc,s.stateNode=E,E._reactInternals=s,Sp(s,f,i,l),s=vp(null,s,f,!0,y,l)):(s.tag=0,pt&&y&&Zh(s),rn(null,s,E,l),s=s.child),s;case 16:f=s.elementType;e:{switch(hc(i,s),i=s.pendingProps,E=f._init,f=E(f._payload),s.type=f,E=s.tag=AM(f),i=tr(f,i),E){case 0:s=Cp(null,s,f,i,l);break e;case 1:s=Y2(null,s,f,i,l);break e;case 11:s=H2(null,s,f,i,l);break e;case 14:s=z2(null,s,f,tr(f.type,i),l);break e}throw Error(n(306,f,""))}return s;case 0:return f=s.type,E=s.pendingProps,E=s.elementType===f?E:tr(f,E),Cp(i,s,f,E,l);case 1:return f=s.type,E=s.pendingProps,E=s.elementType===f?E:tr(f,E),Y2(i,s,f,E,l);case 3:e:{if(q2(s),i===null)throw Error(n(387));f=s.pendingProps,y=s.memoizedState,E=y.element,a2(i,s),ic(s,f,null,l);var _=s.memoizedState;if(f=_.element,y.isDehydrated)if(y={element:f,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},s.updateQueue.baseState=y,s.memoizedState=y,s.flags&256){E=ms(Error(n(423)),s),s=W2(i,s,f,l,E);break e}else if(f!==E){E=ms(Error(n(424)),s),s=W2(i,s,f,l,E);break e}else for(kn=ai(s.stateNode.containerInfo.firstChild),vn=s,pt=!0,er=null,l=o2(s,null,f,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(cs(),f===E){s=Ur(i,s,l);break e}rn(i,s,f,l)}s=s.child}return s;case 5:return c2(s),i===null&&np(s),f=s.type,E=s.pendingProps,y=i!==null?i.memoizedProps:null,_=E.children,Wh(f,E)?_=null:y!==null&&Wh(f,y)&&(s.flags|=32),V2(i,s),rn(i,s,_,l),s.child;case 6:return i===null&&np(s),null;case 13:return G2(i,s,l);case 4:return cp(s,s.stateNode.containerInfo),f=s.pendingProps,i===null?s.child=ds(s,null,f,l):rn(i,s,f,l),s.child;case 11:return f=s.type,E=s.pendingProps,E=s.elementType===f?E:tr(f,E),H2(i,s,f,E,l);case 7:return rn(i,s,s.pendingProps,l),s.child;case 8:return rn(i,s,s.pendingProps.children,l),s.child;case 12:return rn(i,s,s.pendingProps.children,l),s.child;case 10:e:{if(f=s.type._context,E=s.pendingProps,y=s.memoizedProps,_=E.value,st(tc,f._currentValue),f._currentValue=_,y!==null)if(Zn(y.value,_)){if(y.children===E.children&&!mn.current){s=Ur(i,s,l);break e}}else for(y=s.child,y!==null&&(y.return=s);y!==null;){var P=y.dependencies;if(P!==null){_=y.child;for(var B=P.firstContext;B!==null;){if(B.context===f){if(y.tag===1){B=Br(-1,l&-l),B.tag=2;var W=y.updateQueue;if(W!==null){W=W.shared;var oe=W.pending;oe===null?B.next=B:(B.next=oe.next,oe.next=B),W.pending=B}}y.lanes|=l,B=y.alternate,B!==null&&(B.lanes|=l),ap(y.return,l,s),P.lanes|=l;break}B=B.next}}else if(y.tag===10)_=y.type===s.type?null:y.child;else if(y.tag===18){if(_=y.return,_===null)throw Error(n(341));_.lanes|=l,P=_.alternate,P!==null&&(P.lanes|=l),ap(_,l,s),_=y.sibling}else _=y.child;if(_!==null)_.return=y;else for(_=y;_!==null;){if(_===s){_=null;break}if(y=_.sibling,y!==null){y.return=_.return,_=y;break}_=_.return}y=_}rn(i,s,E.children,l),s=s.child}return s;case 9:return E=s.type,f=s.pendingProps.children,hs(s,l),E=Un(E),f=f(E),s.flags|=1,rn(i,s,f,l),s.child;case 14:return f=s.type,E=tr(f,s.pendingProps),E=tr(f.type,E),z2(i,s,f,E,l);case 15:return j2(i,s,s.type,s.pendingProps,l);case 17:return f=s.type,E=s.pendingProps,E=s.elementType===f?E:tr(f,E),hc(i,s),s.tag=1,gn(f)?(i=!0,Kl(s)):i=!1,hs(s,l),R2(s,f,E),Sp(s,f,E,l),vp(null,s,f,!0,i,l);case 19:return Q2(i,s,l);case 22:return $2(i,s,l)}throw Error(n(156,s.tag))};function b_(i,s){return ZT(i,s)}function wM(i,s,l,f){this.tag=i,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jn(i,s,l,f){return new wM(i,s,l,f)}function Wp(i){return i=i.prototype,!(!i||!i.isReactComponent)}function AM(i){if(typeof i=="function")return Wp(i)?1:0;if(i!=null){if(i=i.$$typeof,i===me)return 11;if(i===Te)return 14}return 2}function yi(i,s){var l=i.alternate;return l===null?(l=jn(i.tag,s,i.key,i.mode),l.elementType=i.elementType,l.type=i.type,l.stateNode=i.stateNode,l.alternate=i,i.alternate=l):(l.pendingProps=s,l.type=i.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=i.flags&14680064,l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,s=i.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=i.sibling,l.index=i.index,l.ref=i.ref,l}function wc(i,s,l,f,E,y){var _=2;if(f=i,typeof i=="function")Wp(i)&&(_=1);else if(typeof i=="string")_=5;else e:switch(i){case J:return oo(l.children,E,y,s);case Ee:_=8,E|=8;break;case xe:return i=jn(12,l,s,E|2),i.elementType=xe,i.lanes=y,i;case de:return i=jn(13,l,s,E),i.elementType=de,i.lanes=y,i;case le:return i=jn(19,l,s,E),i.elementType=le,i.lanes=y,i;case ce:return Ac(l,E,y,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case z:_=10;break e;case se:_=9;break e;case me:_=11;break e;case Te:_=14;break e;case Re:_=16,f=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return s=jn(_,l,s,E),s.elementType=i,s.type=f,s.lanes=y,s}function oo(i,s,l,f){return i=jn(7,i,f,s),i.lanes=l,i}function Ac(i,s,l,f){return i=jn(22,i,f,s),i.elementType=ce,i.lanes=l,i.stateNode={isHidden:!1},i}function Gp(i,s,l){return i=jn(6,i,null,s),i.lanes=l,i}function Kp(i,s,l){return s=jn(4,i.children!==null?i.children:[],i.key,s),s.lanes=l,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function CM(i,s,l,f,E){this.tag=s,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xh(0),this.expirationTimes=xh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xh(0),this.identifierPrefix=f,this.onRecoverableError=E,this.mutableSourceEagerHydrationData=null}function Qp(i,s,l,f,E,y,_,P,B){return i=new CM(i,s,l,P,B),s===1?(s=1,y===!0&&(s|=8)):s=0,y=jn(3,null,null,s),i.current=y,y.stateNode=i,y.memoizedState={element:f,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},lp(y),i}function vM(i,s,l){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:f==null?null:""+f,children:i,containerInfo:s,implementation:l}}function __(i){if(!i)return li;i=i._reactInternals;e:{if(Wi(i)!==i||i.tag!==1)throw Error(n(170));var s=i;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(gn(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(i.tag===1){var l=i.type;if(gn(l))return Kb(i,l,s)}return s}function x_(i,s,l,f,E,y,_,P,B){return i=Qp(l,f,!0,i,E,y,_,P,B),i.context=__(null),l=i.current,f=on(),E=gi(l),y=Br(f,E),y.callback=s!=null?s:null,fi(l,y,E),i.current.lanes=E,_a(i,E,f),Tn(i,f),i}function Cc(i,s,l,f){var E=s.current,y=on(),_=gi(E);return l=__(l),s.context===null?s.context=l:s.pendingContext=l,s=Br(y,_),s.payload={element:i},f=f===void 0?null:f,f!==null&&(s.callback=f),i=fi(E,s,_),i!==null&&(ir(i,E,_,y),rc(i,E,_)),_}function vc(i){return i=i.current,i.child?(i.child.tag===5,i.child.stateNode):null}function S_(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var l=i.retryLane;i.retryLane=l!==0&&l<s?l:s}}function Xp(i,s){S_(i,s),(i=i.alternate)&&S_(i,s)}function kM(){return null}var w_=typeof reportError=="function"?reportError:function(i){console.error(i)};function Jp(i){this._internalRoot=i}kc.prototype.render=Jp.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(n(409));Cc(i,s,null,null)},kc.prototype.unmount=Jp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;no(function(){Cc(null,i,null,null)}),s[Rr]=null}};function kc(i){this._internalRoot=i}kc.prototype.unstable_scheduleHydration=function(i){if(i){var s=ab();i={blockedOn:null,target:i,priority:s};for(var l=0;l<ii.length&&s!==0&&s<ii[l].priority;l++);ii.splice(l,0,i),l===0&&cb(i)}};function Zp(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function Nc(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function A_(){}function NM(i,s,l,f,E){if(E){if(typeof f=="function"){var y=f;f=function(){var W=vc(_);y.call(W)}}var _=x_(s,f,i,0,null,!1,!1,"",A_);return i._reactRootContainer=_,i[Rr]=_.current,Da(i.nodeType===8?i.parentNode:i),no(),_}for(;E=i.lastChild;)i.removeChild(E);if(typeof f=="function"){var P=f;f=function(){var W=vc(B);P.call(W)}}var B=Qp(i,0,!1,null,null,!1,!1,"",A_);return i._reactRootContainer=B,i[Rr]=B.current,Da(i.nodeType===8?i.parentNode:i),no(function(){Cc(s,B,l,f)}),B}function Oc(i,s,l,f,E){var y=l._reactRootContainer;if(y){var _=y;if(typeof E=="function"){var P=E;E=function(){var B=vc(_);P.call(B)}}Cc(s,_,i,E)}else _=NM(l,s,i,E,f);return vc(_)}ob=function(i){switch(i.tag){case 3:var s=i.stateNode;if(s.current.memoizedState.isDehydrated){var l=ba(s.pendingLanes);l!==0&&(Sh(s,l|1),Tn(s,xt()),(Je&6)===0&&(ys=xt()+500,ci()))}break;case 13:no(function(){var f=Fr(i,1);if(f!==null){var E=on();ir(f,i,1,E)}}),Xp(i,1)}},wh=function(i){if(i.tag===13){var s=Fr(i,134217728);if(s!==null){var l=on();ir(s,i,134217728,l)}Xp(i,134217728)}},sb=function(i){if(i.tag===13){var s=gi(i),l=Fr(i,s);if(l!==null){var f=on();ir(l,i,s,f)}Xp(i,s)}},ab=function(){return tt},ub=function(i,s){var l=tt;try{return tt=i,s()}finally{tt=l}},gh=function(i,s,l){switch(s){case"input":if(Go(i,l),s=l.name,l.type==="radio"&&s!=null){for(l=i;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<l.length;s++){var f=l[s];if(f!==i&&f.form===i.form){var E=Wl(f);if(!E)throw Error(n(90));Yi(f),Go(f,E)}}}break;case"textarea":Sl(i,l);break;case"select":s=l.value,s!=null&&Zr(i,!!l.multiple,s,!1)}},qT=Vp,WT=no;var OM={usingClientEntryPoint:!1,Events:[Ba,os,Wl,VT,YT,Vp]},Ja={findFiberByHostInstance:Gi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},IM={bundleType:Ja.bundleType,version:Ja.version,rendererPackageName:Ja.rendererPackageName,rendererConfig:Ja.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=XT(i),i===null?null:i.stateNode},findFiberByHostInstance:Ja.findFiberByHostInstance||kM,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var Ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ic.isDisabled&&Ic.supportsFiber)try{kl=Ic.inject(IM),br=Ic}catch(i){}}return un.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=OM,un.createPortal=function(i,s){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Zp(s))throw Error(n(200));return vM(i,s,null,l)},un.createRoot=function(i,s){if(!Zp(i))throw Error(n(299));var l=!1,f="",E=w_;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(f=s.identifierPrefix),s.onRecoverableError!==void 0&&(E=s.onRecoverableError)),s=Qp(i,1,!1,null,null,l,!1,f,E),i[Rr]=s.current,Da(i.nodeType===8?i.parentNode:i),new Jp(s)},un.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=XT(s),i=i===null?null:i.stateNode,i},un.flushSync=function(i){return no(i)},un.hydrate=function(i,s,l){if(!Nc(s))throw Error(n(200));return Oc(null,i,s,!0,l)},un.hydrateRoot=function(i,s,l){if(!Zp(i))throw Error(n(405));var f=l!=null&&l.hydratedSources||null,E=!1,y="",_=w_;if(l!=null&&(l.unstable_strictMode===!0&&(E=!0),l.identifierPrefix!==void 0&&(y=l.identifierPrefix),l.onRecoverableError!==void 0&&(_=l.onRecoverableError)),s=x_(s,null,i,1,l!=null?l:null,E,!1,y,_),i[Rr]=s.current,Da(i),f)for(i=0;i<f.length;i++)l=f[i],E=l._getVersion,E=E(l._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[l,E]:s.mutableSourceEagerHydrationData.push(l,E);return new kc(s)},un.render=function(i,s,l){if(!Nc(s))throw Error(n(200));return Oc(null,i,s,!1,l)},un.unmountComponentAtNode=function(i){if(!Nc(i))throw Error(n(40));return i._reactRootContainer?(no(function(){Oc(null,null,i,!1,function(){i._reactRootContainer=null,i[Rr]=null})}),!0):!1},un.unstable_batchedUpdates=Vp,un.unstable_renderSubtreeIntoContainer=function(i,s,l,f){if(!Nc(l))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return Oc(i,s,l,!1,f)},un.version="18.3.1-next-f1338f8080-20240426",un}var m0;function g0(){if(m0)return pd.exports;m0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),pd.exports=zw(),pd.exports}var Os=g0();function E0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=E0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function fe(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=E0(e))&&(r&&(r+=" "),r+=t);return r}const jr=({className:e,iconUrl:t,icon:n,type:r="button",ariaLabel:o,title:a,disabled:u=!1,onClick:c})=>!n&&!t?null:L.jsx("button",{className:fe(e,`${X}-icon-button`),type:r,"aria-label":o,title:a,onClick:c,disabled:u,children:t?L.jsx("img",{className:fe(`${X}-icon-image`),src:t,alt:o,loading:"lazy"}):n}),jw="data:image/svg+xml,%3csvg%20width='140'%20height='137'%20viewBox='0%200%20140%20137'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M140%2034.5C140%2040.8513%20135.075%2046%20129%2046C122.925%2046%20118%2040.8513%20118%2034.5C118%2028.1487%20122.925%2023%20129%2023C135.075%2023%20140%2028.1487%20140%2034.5Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M85%2011.3028C85%205.06042%2090.1487%200%2096.5%200C102.851%200%20108%205.06042%20108%2011.3028V21.6972C108%2027.9396%20102.851%2033%2096.5%2033C90.1487%2033%2085%2027.9396%2085%2021.6972V11.3028Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M41.3868%2030.0986C36.9601%2025.6719%2036.9601%2018.4948%2041.3868%2014.0682C45.8134%209.64151%2052.9905%209.6415%2057.4172%2014.0682L71.3628%2028.0138C75.7894%2032.4404%2075.7894%2039.6175%2071.3628%2044.0442C66.9361%2048.4708%2059.759%2048.4708%2055.3324%2044.0442L41.3868%2030.0986Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M140%20101C140%2094.9249%20135.075%2090%20129%2090C122.925%2090%20118%2094.9249%20118%20101C118%20107.075%20122.925%20112%20129%20112C135.075%20112%20140%20107.075%20140%20101Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M85%20125.697C85%20131.94%2090.1487%20137%2096.5%20137C102.851%20137%20108%20131.94%20108%20125.697V115.303C108%20109.06%20102.851%20104%2096.5%20104C90.1487%20104%2085%20109.06%2085%20115.303V125.697Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M41.3868%20106.932C36.9601%20111.359%2036.9601%20118.536%2041.3868%20122.963C45.8134%20127.389%2052.9905%20127.39%2057.4172%20122.963L71.3628%20109.017C75.7894%20104.591%2075.7894%2097.4135%2071.3628%2092.9868C66.9361%2088.5602%2059.759%2088.5602%2055.3324%2092.9868L41.3868%20106.932Z'%20fill='%23F3F2EB'/%3e%3cpath%20d='M11.259%2080C5.04084%2080%200%2074.8513%200%2068.5C0%2062.1487%205.04084%2057%2011.259%2057H49.741C55.9592%2057%2061%2062.1487%2061%2068.5C61%2074.8513%2055.9592%2080%2049.741%2080H11.259Z'%20fill='%23F3F2EB'/%3e%3c/svg%3e",$w=()=>{const{globalClassName:e,logoUrl:t,themeVariables:n}=tn(),r=()=>{bu(!1),vi(!0)};return Os.createPortal(L.jsx("div",{className:fe(e,`${X}-minimized-container`),style:n,children:L.jsx(jr,{className:fe(e,`${X}-minimized-button`),ariaLabel:"Open Copilot",icon:L.jsx("img",{src:t||jw,alt:"Copilot",className:fe(e,`${X}-minimized-icon-img`)}),onClick:r})}),document.body)};function ki(){const e=te.useContext(a0);if(!e)throw new Error("useMessaging must be used within a MessagingProvider");return e}var y0={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},T0=bi.createContext&&bi.createContext(y0),Vw=["attr","size","title"];function Yw(e,t){if(e==null)return{};var n=qw(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qw(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function xu(){return xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xu.apply(this,arguments)}function b0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Su(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b0(Object(n),!0).forEach(function(r){Ww(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ww(e,t,n){return t=Gw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gw(e){var t=Kw(e,"string");return typeof t=="symbol"?t:t+""}function Kw(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _0(e){return e&&e.map((t,n)=>bi.createElement(t.tag,Su({key:n},t.attr),_0(t.child)))}function ln(e){return t=>bi.createElement(Qw,xu({attr:Su({},e.attr)},t),_0(e.child))}function Qw(e){var t=n=>{var{attr:r,size:o,title:a}=e,u=Yw(e,Vw),c=o||n.size||"1em",d;return n.className&&(d=n.className),e.className&&(d=(d?d+" ":"")+e.className),bi.createElement("svg",xu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,u,{className:d,style:Su(Su({color:e.color||n.color},n.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&bi.createElement("title",null,a),e.children)};return T0!==void 0?bi.createElement(T0.Consumer,null,n=>t(n)):t(y0)}function x0(e){return ln({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 19h12v2H6z"},child:[]}]})(e)}function S0(e){return ln({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"},child:[]}]})(e)}function Xw(e){return ln({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"},child:[]}]})(e)}function Jw(e){return ln({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"},child:[]}]})(e)}function Zw(e){return ln({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"},child:[]}]})(e)}const w0=({className:e,children:t,type:n,disabled:r=!1,onClick:o})=>L.jsx("button",{className:fe(`${X}-button`,e,{disabled:r}),type:n||"button",disabled:r,onClick:o,children:t}),eA=({searchConfig:e,globalClassName:t})=>{const n=e.buttonIconUrl;return n?L.jsx("img",{className:fe(`${X}-search-button-icon-image`,t),src:n,alt:"",loading:"lazy"}):L.jsx(S0,{size:"16px"})},tA=({className:e,searchConfig:t,globalClassName:n,componentType:r,isLoading:o})=>{if((t==null?void 0:t.buttonType)==="icon")return L.jsx(jr,{className:fe(e,n,r,`${X}-search-button-icon`),type:"submit",disabled:o,ariaLabel:(t==null?void 0:t.buttonAriaLabel)||(t==null?void 0:t.buttonLabel)||"Search Copilot",icon:t!=null&&t.buttonIconUrl?null:L.jsx(S0,{size:"16px"}),iconUrl:t==null?void 0:t.buttonIconUrl});const a=(t==null?void 0:t.buttonType)==="icon-text";return L.jsxs(w0,{className:fe(e,n,r,`${X}-search-button`),type:"submit","aria-label":(t==null?void 0:t.buttonAriaLabel)||"",disabled:o,children:[a&&L.jsx(eA,{globalClassName:n,searchConfig:t}),(t==null?void 0:t.buttonLabel)||"Search"]})};function aF(){}function uF(){}function A0(e){const t=[],n=String(e||"");let r=n.indexOf(","),o=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const u=n.slice(o,r).trim();(u||!a)&&t.push(u),o=r+1,r=n.indexOf(",",o)}return t}function C0(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const nA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iA={};function v0(e,t){return(iA.jsx?rA:nA).test(e)}const oA=/[ \t\n\f\r]/g;function sA(e){return typeof e=="object"?e.type==="text"?k0(e.value):!1:k0(e)}function k0(e){return e.replace(oA,"")===""}let Is=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Is.prototype.normal={},Is.prototype.property={},Is.prototype.space=void 0;function N0(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Is(n,r,t)}function Ps(e){return e.toLowerCase()}let cn=class{constructor(t,n){this.attribute=n,this.property=t}};cn.prototype.attribute="",cn.prototype.booleanish=!1,cn.prototype.boolean=!1,cn.prototype.commaOrSpaceSeparated=!1,cn.prototype.commaSeparated=!1,cn.prototype.defined=!1,cn.prototype.mustUseProperty=!1,cn.prototype.number=!1,cn.prototype.overloadedBoolean=!1,cn.prototype.property="",cn.prototype.spaceSeparated=!1,cn.prototype.space=void 0;let aA=0;const $e=Ni(),At=Ni(),Ed=Ni(),he=Ni(),it=Ni(),mo=Ni(),bn=Ni();function Ni(){return Za(2,++aA)}const yd=Object.freeze(Object.defineProperty({__proto__:null,boolean:$e,booleanish:At,commaOrSpaceSeparated:bn,commaSeparated:mo,number:he,overloadedBoolean:Ed,spaceSeparated:it},Symbol.toStringTag,{value:"Module"})),Td=Object.keys(yd);let bd=class extends cn{constructor(t,n,r,o){let a=-1;if(super(t,n),O0(this,"space",o),typeof r=="number")for(;++a<Td.length;){const u=Td[a];O0(this,Td[a],(r&yd[u])===yd[u])}}};bd.prototype.defined=!0;function O0(e,t,n){n&&(e[t]=n)}function go(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const a=new bd(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ps(r)]=r,n[Ps(a.attribute)]=r}return new Is(t,n,e.space)}const I0=go({properties:{ariaActiveDescendant:null,ariaAtomic:At,ariaAutoComplete:null,ariaBusy:At,ariaChecked:At,ariaColCount:he,ariaColIndex:he,ariaColSpan:he,ariaControls:it,ariaCurrent:null,ariaDescribedBy:it,ariaDetails:null,ariaDisabled:At,ariaDropEffect:it,ariaErrorMessage:null,ariaExpanded:At,ariaFlowTo:it,ariaGrabbed:At,ariaHasPopup:null,ariaHidden:At,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:it,ariaLevel:he,ariaLive:null,ariaModal:At,ariaMultiLine:At,ariaMultiSelectable:At,ariaOrientation:null,ariaOwns:it,ariaPlaceholder:null,ariaPosInSet:he,ariaPressed:At,ariaReadOnly:At,ariaRelevant:null,ariaRequired:At,ariaRoleDescription:it,ariaRowCount:he,ariaRowIndex:he,ariaRowSpan:he,ariaSelected:At,ariaSetSize:he,ariaSort:null,ariaValueMax:he,ariaValueMin:he,ariaValueNow:he,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function P0(e,t){return t in e?e[t]:t}function R0(e,t){return P0(e,t.toLowerCase())}const uA=go({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mo,acceptCharset:it,accessKey:it,action:null,allow:null,allowFullScreen:$e,allowPaymentRequest:$e,allowUserMedia:$e,alt:null,as:null,async:$e,autoCapitalize:null,autoComplete:it,autoFocus:$e,autoPlay:$e,blocking:it,capture:null,charSet:null,checked:$e,cite:null,className:it,cols:he,colSpan:null,content:null,contentEditable:At,controls:$e,controlsList:it,coords:he|mo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$e,defer:$e,dir:null,dirName:null,disabled:$e,download:Ed,draggable:At,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$e,formTarget:null,headers:it,height:he,hidden:Ed,high:he,href:null,hrefLang:null,htmlFor:it,httpEquiv:it,id:null,imageSizes:null,imageSrcSet:null,inert:$e,inputMode:null,integrity:null,is:null,isMap:$e,itemId:null,itemProp:it,itemRef:it,itemScope:$e,itemType:it,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$e,low:he,manifest:null,max:null,maxLength:he,media:null,method:null,min:null,minLength:he,multiple:$e,muted:$e,name:null,nonce:null,noModule:$e,noValidate:$e,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:$e,optimum:he,pattern:null,ping:it,placeholder:null,playsInline:$e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$e,referrerPolicy:null,rel:it,required:$e,reversed:$e,rows:he,rowSpan:he,sandbox:it,scope:null,scoped:$e,seamless:$e,selected:$e,shadowRootClonable:$e,shadowRootDelegatesFocus:$e,shadowRootMode:null,shape:null,size:he,sizes:null,slot:null,span:he,spellCheck:At,src:null,srcDoc:null,srcLang:null,srcSet:null,start:he,step:null,style:null,tabIndex:he,target:null,title:null,translate:null,type:null,typeMustMatch:$e,useMap:null,value:At,width:he,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:it,axis:null,background:null,bgColor:null,border:he,borderColor:null,bottomMargin:he,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$e,declare:$e,event:null,face:null,frame:null,frameBorder:null,hSpace:he,leftMargin:he,link:null,longDesc:null,lowSrc:null,marginHeight:he,marginWidth:he,noResize:$e,noHref:$e,noShade:$e,noWrap:$e,object:null,profile:null,prompt:null,rev:null,rightMargin:he,rules:null,scheme:null,scrolling:At,standby:null,summary:null,text:null,topMargin:he,valueType:null,version:null,vAlign:null,vLink:null,vSpace:he,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$e,disableRemotePlayback:$e,prefix:null,property:null,results:he,security:null,unselectable:null},space:"html",transform:R0}),lA=go({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"},properties:{about:bn,accentHeight:he,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:he,amplitude:he,arabicForm:null,ascent:he,attributeName:null,attributeType:null,azimuth:he,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:he,by:null,calcMode:null,capHeight:he,className:it,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:he,diffuseConstant:he,direction:null,display:null,dur:null,divisor:he,dominantBaseline:null,download:$e,dx:null,dy:null,edgeMode:null,editable:null,elevation:he,enableBackground:null,end:null,event:null,exponent:he,externalResourcesRequired:null,fill:null,fillOpacity:he,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:mo,g2:mo,glyphName:mo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:he,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:he,horizOriginX:he,horizOriginY:he,id:null,ideographic:he,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:he,k:he,k1:he,k2:he,k3:he,k4:he,kernelMatrix:bn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:he,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:he,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:he,overlineThickness:he,paintOrder:null,panose1:null,path:null,pathLength:he,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:it,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:he,pointsAtY:he,pointsAtZ:he,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bn,rev:bn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bn,requiredFeatures:bn,requiredFonts:bn,requiredFormats:bn,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:he,specularExponent:he,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:he,strikethroughThickness:he,string:null,stroke:null,strokeDashArray:bn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:he,strokeOpacity:he,strokeWidth:null,style:null,surfaceScale:he,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bn,tabIndex:he,tableValues:null,target:null,targetX:he,targetY:he,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:he,underlineThickness:he,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:he,values:null,vAlphabetic:he,vMathematical:he,vectorEffect:null,vHanging:he,vIdeographic:he,version:null,vertAdvY:he,vertOriginX:he,vertOriginY:he,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:he,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:P0}),L0=go({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),D0=go({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:R0}),M0=go({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),cA={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"},dA=/[A-Z]/g,F0=/-[a-z]/g,fA=/^data[-\w.:]+$/i;function _d(e,t){const n=Ps(t);let r=t,o=cn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&fA.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(F0,pA);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!F0.test(a)){let u=a.replace(dA,hA);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}o=bd}return new o(r,t)}function hA(e){return"-"+e.toLowerCase()}function pA(e){return e.charAt(1).toUpperCase()}const wu=N0([I0,uA,L0,D0,M0],"html"),Eo=N0([I0,lA,L0,D0,M0],"svg");function B0(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function U0(e){return e.join(" ").trim()}var yo={},xd,H0;function mA(){if(H0)return xd;H0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
|
|
24
|
+
`,h="/",m="*",g="",b="comment",T="declaration";xd=function(S,A){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];A=A||{};var v=1,I=1;function k(de){var le=de.match(t);le&&(v+=le.length);var Te=de.lastIndexOf(d);I=~Te?de.length-Te:I+de.length}function M(){var de={line:v,column:I};return function(le){return le.position=new Y(de),Ee(),le}}function Y(de){this.start=de,this.end={line:v,column:I},this.source=A.source}Y.prototype.content=S;function F(de){var le=new Error(A.source+":"+v+":"+I+": "+de);if(le.reason=de,le.filename=A.source,le.line=v,le.column=I,le.source=S,!A.silent)throw le}function J(de){var le=de.exec(S);if(le){var Te=le[0];return k(Te),S=S.slice(Te.length),le}}function Ee(){J(n)}function xe(de){var le;for(de=de||[];le=z();)le!==!1&&de.push(le);return de}function z(){var de=M();if(!(h!=S.charAt(0)||m!=S.charAt(1))){for(var le=2;g!=S.charAt(le)&&(m!=S.charAt(le)||h!=S.charAt(le+1));)++le;if(le+=2,g===S.charAt(le-1))return F("End of comment missing");var Te=S.slice(2,le-2);return I+=2,k(Te),S=S.slice(le),I+=2,de({type:b,comment:Te})}}function se(){var de=M(),le=J(r);if(le){if(z(),!J(o))return F("property missing ':'");var Te=J(a),Re=de({type:T,property:x(le[0].replace(e,g)),value:Te?x(Te[0].replace(e,g)):g});return J(u),Re}}function me(){var de=[];xe(de);for(var le;le=se();)le!==!1&&(de.push(le),xe(de));return de}return Ee(),me()};function x(S){return S?S.replace(c,g):g}return xd}var z0;function gA(){if(z0)return yo;z0=1;var e=yo&&yo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=n;var t=e(mA());function n(r,o){var a=null;if(!r||typeof r!="string")return a;var u=(0,t.default)(r),c=typeof o=="function";return u.forEach(function(d){if(d.type==="declaration"){var h=d.property,m=d.value;c?o(h,m,d):m&&(a=a||{},a[h]=m)}}),a}return yo}var Rs={},j0;function EA(){if(j0)return Rs;j0=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(h){return!h||n.test(h)||e.test(h)},u=function(h,m){return m.toUpperCase()},c=function(h,m){return"".concat(m,"-")},d=function(h,m){return m===void 0&&(m={}),a(h)?h:(h=h.toLowerCase(),m.reactCompat?h=h.replace(o,c):h=h.replace(r,c),h.replace(t,u))};return Rs.camelCase=d,Rs}var Ls,$0;function yA(){if($0)return Ls;$0=1;var e=Ls&&Ls.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(gA()),n=EA();function r(o,a){var u={};return!o||typeof o!="string"||(0,t.default)(o,function(c,d){c&&d&&(u[(0,n.camelCase)(c,a)]=d)}),u}return r.default=r,Ls=r,Ls}var TA=yA();const bA=We(TA),Au=V0("end"),ur=V0("start");function V0(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Y0(e){const t=ur(e),n=Au(e);if(t&&n)return{start:t,end:n}}function Ds(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?q0(e.position):"start"in e||"end"in e?q0(e):"line"in e||"column"in e?Sd(e):""}function Sd(e){return W0(e&&e.line)+":"+W0(e&&e.column)}function q0(e){return Sd(e&&e.start)+"-"+Sd(e&&e.end)}function W0(e){return e&&typeof e=="number"?e:1}class Yt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",a={},u=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a=U({},n)),typeof t=="string"?o=t:!a.cause&&t&&(u=!0,o=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const d=r.indexOf(":");d===-1?a.ruleId=r:(a.source=r.slice(0,d),a.ruleId=r.slice(d+1))}if(!a.place&&a.ancestors&&a.ancestors){const d=a.ancestors[a.ancestors.length-1];d&&(a.place=d.position)}const c=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=c?c.line:void 0,this.name=Ds(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=u&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}Yt.prototype.file="",Yt.prototype.name="",Yt.prototype.reason="",Yt.prototype.message="",Yt.prototype.stack="",Yt.prototype.column=void 0,Yt.prototype.line=void 0,Yt.prototype.ancestors=void 0,Yt.prototype.cause=void 0,Yt.prototype.fatal=void 0,Yt.prototype.place=void 0,Yt.prototype.ruleId=void 0,Yt.prototype.source=void 0;const wd={}.hasOwnProperty,_A=new Map,xA=/[A-Z]/g,SA=new Set(["table","tbody","thead","tfoot","tr"]),wA=new Set(["td","th"]),G0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function AA(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=RA(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=PA(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Eo:wu,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=K0(o,e,void 0);return a&&typeof a!="string"?a:o.create(e,o.Fragment,{children:a||void 0},void 0)}function K0(e,t,n){if(t.type==="element")return CA(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return vA(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return NA(e,t,n);if(t.type==="mdxjsEsm")return kA(e,t);if(t.type==="root")return OA(e,t,n);if(t.type==="text")return IA(e,t)}function CA(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Eo,e.schema=o),e.ancestors.push(t);const a=X0(e,t.tagName,!1),u=LA(e,t);let c=Cd(e,t);return SA.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!sA(d):!0})),Q0(e,u,a,t),Ad(u,c),e.ancestors.pop(),e.schema=r,e.create(t,a,u,n)}function vA(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ms(e,t.position)}function kA(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ms(e,t.position)}function NA(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=Eo,e.schema=o),e.ancestors.push(t);const a=t.name===null?e.Fragment:X0(e,t.name,!0),u=DA(e,t),c=Cd(e,t);return Q0(e,u,a,t),Ad(u,c),e.ancestors.pop(),e.schema=r,e.create(t,a,u,n)}function OA(e,t,n){const r={};return Ad(r,Cd(e,t)),e.create(t,e.Fragment,r,n)}function IA(e,t){return t.value}function Q0(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ad(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function PA(e,t,n){return r;function r(o,a,u,c){const h=Array.isArray(u.children)?n:t;return c?h(a,u,c):h(a,u)}}function RA(e,t){return n;function n(r,o,a,u){const c=Array.isArray(a.children),d=ur(r);return t(o,a,u,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function LA(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&wd.call(t.properties,o)){const a=MA(e,o,t.properties[o]);if(a){const[u,c]=a;e.tableCellAlignToStyle&&u==="align"&&typeof c=="string"&&wA.has(t.tagName)?r=c:n[u]=c}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function DA(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const u=a.expression;u.type;const c=u.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else Ms(e,t.position);else{const o=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const c=r.value.data.estree.body[0];c.type,a=e.evaluater.evaluateExpression(c.expression)}else Ms(e,t.position);else a=r.value===null?!0:r.value;n[o]=a}return n}function Cd(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:_A;for(;++r<t.children.length;){const a=t.children[r];let u;if(e.passKeys){const d=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(d){const h=o.get(d)||0;u=d+"-"+h,o.set(d,h+1)}}const c=K0(e,a,u);c!==void 0&&n.push(c)}return n}function MA(e,t,n){const r=_d(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?C0(n):U0(n)),r.property==="style"){let o=typeof n=="object"?n:FA(e,String(n));return e.stylePropertyNameCase==="css"&&(o=BA(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?cA[r.property]||r.property:r.attribute,n]}}function FA(e,t){try{return bA(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new Yt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=G0+"#cannot-parse-style-attribute",o}}function X0(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let a=-1,u;for(;++a<o.length;){const c=v0(o[a])?{type:"Identifier",name:o[a]}:{type:"Literal",value:o[a]};u=u?{type:"MemberExpression",object:u,property:c,computed:!!(a&&c.type==="Literal"),optional:!1}:c}r=u}else r=v0(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return wd.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ms(e)}function Ms(e,t){const n=new Yt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=G0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function BA(e){const t={};let n;for(n in e)wd.call(e,n)&&(t[UA(n)]=e[n]);return t}function UA(e){let t=e.replace(xA,HA);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function HA(e){return"-"+e.toLowerCase()}const vd={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"]},zA={};function kd(e,t){const n=zA,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return J0(e,r,o)}function J0(e,t,n){if(jA(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Z0(e.children,t,n)}return Array.isArray(e)?Z0(e,t,n):""}function Z0(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=J0(e[o],t,n);return r.join("")}function jA(e){return!!(e&&typeof e=="object")}const eg=document.createElement("i");function Nd(e){const t="&"+e+";";eg.innerHTML=t;const n=eg.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function _n(e,t,n,r){const o=e.length;let a=0,u;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);a<r.length;)u=r.slice(a,a+1e4),u.unshift(t,0),e.splice(...u),a+=1e4,t+=1e4}function Pn(e,t){return e.length>0?(_n(e,e.length,0,t),e):t}const tg={}.hasOwnProperty;function ng(e){const t={};let n=-1;for(;++n<e.length;)$A(t,e[n]);return t}function $A(e,t){let n;for(n in t){const o=(tg.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let u;if(a)for(u in a){tg.call(o,u)||(o[u]=[]);const c=a[u];VA(o[u],Array.isArray(c)?c:c?[c]:[])}}}function VA(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);_n(e,0,0,r)}function rg(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function qn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const nn=$r(/[A-Za-z]/),qt=$r(/[\dA-Za-z]/),YA=$r(/[#-'*+\--9=?A-Z^-~]/);function Cu(e){return e!==null&&(e<32||e===127)}const Od=$r(/\d/),qA=$r(/[\dA-Fa-f]/),WA=$r(/[!-/:-@[-`{-~]/);function De(e){return e!==null&&e<-2}function rt(e){return e!==null&&(e<0||e===32)}function Ge(e){return e===-2||e===-1||e===32}const vu=$r(new RegExp("\\p{P}|\\p{S}","u")),Oi=$r(/\s/);function $r(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function To(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const a=e.charCodeAt(n);let u="";if(a===37&&qt(e.charCodeAt(n+1))&&qt(e.charCodeAt(n+2)))o=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(u=String.fromCharCode(a));else if(a>55295&&a<57344){const c=e.charCodeAt(n+1);a<56320&&c>56319&&c<57344?(u=String.fromCharCode(a,c),o=1):u="�"}else u=String.fromCharCode(a);u&&(t.push(e.slice(r,n),encodeURIComponent(u)),r=n+o+1,u=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Qe(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let a=0;return u;function u(d){return Ge(d)?(e.enter(n),c(d)):t(d)}function c(d){return Ge(d)&&a++<o?(e.consume(d),c):(e.exit(n),t(d))}}const GA={tokenize:KA};function KA(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Qe(e,t,"linePrefix")}function o(c){return e.enter("paragraph"),a(c)}function a(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,u(c)}function u(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return De(c)?(e.consume(c),e.exit("chunkText"),a):(e.consume(c),u)}}const QA={tokenize:XA},ig={tokenize:JA};function XA(e){const t=this,n=[];let r=0,o,a,u;return c;function c(k){if(r<n.length){const M=n[r];return t.containerState=M[1],e.attempt(M[0].continuation,d,h)(k)}return h(k)}function d(k){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&I();const M=t.events.length;let Y=M,F;for(;Y--;)if(t.events[Y][0]==="exit"&&t.events[Y][1].type==="chunkFlow"){F=t.events[Y][1].end;break}v(r);let J=M;for(;J<t.events.length;)t.events[J][1].end=U({},F),J++;return _n(t.events,Y+1,0,t.events.slice(M)),t.events.length=J,h(k)}return c(k)}function h(k){if(r===n.length){if(!o)return b(k);if(o.currentConstruct&&o.currentConstruct.concrete)return x(k);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ig,m,g)(k)}function m(k){return o&&I(),v(r),b(k)}function g(k){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,x(k)}function b(k){return t.containerState={},e.attempt(ig,T,x)(k)}function T(k){return r++,n.push([t.currentConstruct,t.containerState]),b(k)}function x(k){if(k===null){o&&I(),v(0),e.consume(k);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:a}),S(k)}function S(k){if(k===null){A(e.exit("chunkFlow"),!0),v(0),e.consume(k);return}return De(k)?(e.consume(k),A(e.exit("chunkFlow")),r=0,t.interrupt=void 0,c):(e.consume(k),S)}function A(k,M){const Y=t.sliceStream(k);if(M&&Y.push(null),k.previous=a,a&&(a.next=k),a=k,o.defineSkip(k.start),o.write(Y),t.parser.lazy[k.start.line]){let F=o.events.length;for(;F--;)if(o.events[F][1].start.offset<u&&(!o.events[F][1].end||o.events[F][1].end.offset>u))return;const J=t.events.length;let Ee=J,xe,z;for(;Ee--;)if(t.events[Ee][0]==="exit"&&t.events[Ee][1].type==="chunkFlow"){if(xe){z=t.events[Ee][1].end;break}xe=!0}for(v(r),F=J;F<t.events.length;)t.events[F][1].end=U({},z),F++;_n(t.events,Ee+1,0,t.events.slice(J)),t.events.length=F}}function v(k){let M=n.length;for(;M-- >k;){const Y=n[M];t.containerState=Y[1],Y[0].exit.call(t,e)}n.length=k}function I(){o.write([null]),a=void 0,o=void 0,t.containerState._closeFlow=void 0}}function JA(e,t,n){return Qe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function bo(e){if(e===null||rt(e)||Oi(e))return 1;if(vu(e))return 2}function ku(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const a=e[o].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Id={name:"attention",resolveAll:ZA,tokenize:eC};function ZA(e,t){let n=-1,r,o,a,u,c,d,h,m;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const g=U({},e[r][1].end),b=U({},e[n][1].start);og(g,-d),og(b,d),u={type:d>1?"strongSequence":"emphasisSequence",start:g,end:U({},e[r][1].end)},c={type:d>1?"strongSequence":"emphasisSequence",start:U({},e[n][1].start),end:b},a={type:d>1?"strongText":"emphasisText",start:U({},e[r][1].end),end:U({},e[n][1].start)},o={type:d>1?"strong":"emphasis",start:U({},u.start),end:U({},c.end)},e[r][1].end=U({},u.start),e[n][1].start=U({},c.end),h=[],e[r][1].end.offset-e[r][1].start.offset&&(h=Pn(h,[["enter",e[r][1],t],["exit",e[r][1],t]])),h=Pn(h,[["enter",o,t],["enter",u,t],["exit",u,t],["enter",a,t]]),h=Pn(h,ku(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),h=Pn(h,[["exit",a,t],["enter",c,t],["exit",c,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(m=2,h=Pn(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):m=0,_n(e,r-1,n-r+3,h),n=r+h.length-m-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function eC(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=bo(r);let a;return u;function u(d){return a=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===a)return e.consume(d),c;const h=e.exit("attentionSequence"),m=bo(d),g=!m||m===2&&o||n.includes(d),b=!o||o===2&&m||n.includes(r);return h._open=!!(a===42?g:g&&(o||!b)),h._close=!!(a===42?b:b&&(m||!g)),t(d)}}function og(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const tC={name:"autolink",tokenize:nC};function nC(e,t,n){let r=0;return o;function o(T){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(T){return nn(T)?(e.consume(T),u):T===64?n(T):h(T)}function u(T){return T===43||T===45||T===46||qt(T)?(r=1,c(T)):h(T)}function c(T){return T===58?(e.consume(T),r=0,d):(T===43||T===45||T===46||qt(T))&&r++<32?(e.consume(T),c):(r=0,h(T))}function d(T){return T===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.exit("autolink"),t):T===null||T===32||T===60||Cu(T)?n(T):(e.consume(T),d)}function h(T){return T===64?(e.consume(T),m):YA(T)?(e.consume(T),h):n(T)}function m(T){return qt(T)?g(T):n(T)}function g(T){return T===46?(e.consume(T),r=0,m):T===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(T),e.exit("autolinkMarker"),e.exit("autolink"),t):b(T)}function b(T){if((T===45||qt(T))&&r++<63){const x=T===45?b:g;return e.consume(T),x}return n(T)}}const Fs={partial:!0,tokenize:rC};function rC(e,t,n){return r;function r(a){return Ge(a)?Qe(e,o,"linePrefix")(a):o(a)}function o(a){return a===null||De(a)?t(a):n(a)}}const sg={continuation:{tokenize:oC},exit:sC,name:"blockQuote",tokenize:iC};function iC(e,t,n){const r=this;return o;function o(u){if(u===62){const c=r.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),a}return n(u)}function a(u){return Ge(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function oC(e,t,n){const r=this;return o;function o(u){return Ge(u)?Qe(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):a(u)}function a(u){return e.attempt(sg,t,n)(u)}}function sC(e){e.exit("blockQuote")}const ag={name:"characterEscape",tokenize:aC};function aC(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),o}function o(a){return WA(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const ug={name:"characterReference",tokenize:uC};function uC(e,t,n){const r=this;let o=0,a,u;return c;function c(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),d}function d(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),a=31,u=qt,m(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,u=qA,m):(e.enter("characterReferenceValue"),a=7,u=Od,m(g))}function m(g){if(g===59&&o){const b=e.exit("characterReferenceValue");return u===qt&&!Nd(r.sliceSerialize(b))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&o++<a?(e.consume(g),m):n(g)}}const lg={partial:!0,tokenize:cC},cg={concrete:!0,name:"codeFenced",tokenize:lC};function lC(e,t,n){const r=this,o={partial:!0,tokenize:Y};let a=0,u=0,c;return d;function d(F){return h(F)}function h(F){const J=r.events[r.events.length-1];return a=J&&J[1].type==="linePrefix"?J[2].sliceSerialize(J[1],!0).length:0,c=F,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(F)}function m(F){return F===c?(u++,e.consume(F),m):u<3?n(F):(e.exit("codeFencedFenceSequence"),Ge(F)?Qe(e,g,"whitespace")(F):g(F))}function g(F){return F===null||De(F)?(e.exit("codeFencedFence"),r.interrupt?t(F):e.check(lg,S,M)(F)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(F))}function b(F){return F===null||De(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(F)):Ge(F)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Qe(e,T,"whitespace")(F)):F===96&&F===c?n(F):(e.consume(F),b)}function T(F){return F===null||De(F)?g(F):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(F))}function x(F){return F===null||De(F)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(F)):F===96&&F===c?n(F):(e.consume(F),x)}function S(F){return e.attempt(o,M,A)(F)}function A(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),v}function v(F){return a>0&&Ge(F)?Qe(e,I,"linePrefix",a+1)(F):I(F)}function I(F){return F===null||De(F)?e.check(lg,S,M)(F):(e.enter("codeFlowValue"),k(F))}function k(F){return F===null||De(F)?(e.exit("codeFlowValue"),I(F)):(e.consume(F),k)}function M(F){return e.exit("codeFenced"),t(F)}function Y(F,J,Ee){let xe=0;return z;function z(Te){return F.enter("lineEnding"),F.consume(Te),F.exit("lineEnding"),se}function se(Te){return F.enter("codeFencedFence"),Ge(Te)?Qe(F,me,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Te):me(Te)}function me(Te){return Te===c?(F.enter("codeFencedFenceSequence"),de(Te)):Ee(Te)}function de(Te){return Te===c?(xe++,F.consume(Te),de):xe>=u?(F.exit("codeFencedFenceSequence"),Ge(Te)?Qe(F,le,"whitespace")(Te):le(Te)):Ee(Te)}function le(Te){return Te===null||De(Te)?(F.exit("codeFencedFence"),J(Te)):Ee(Te)}}}function cC(e,t,n){const r=this;return o;function o(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a)}function a(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}const Pd={name:"codeIndented",tokenize:fC},dC={partial:!0,tokenize:hC};function fC(e,t,n){const r=this;return o;function o(h){return e.enter("codeIndented"),Qe(e,a,"linePrefix",5)(h)}function a(h){const m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?u(h):n(h)}function u(h){return h===null?d(h):De(h)?e.attempt(dC,u,d)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||De(h)?(e.exit("codeFlowValue"),u(h)):(e.consume(h),c)}function d(h){return e.exit("codeIndented"),t(h)}}function hC(e,t,n){const r=this;return o;function o(u){return r.parser.lazy[r.now().line]?n(u):De(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):Qe(e,a,"linePrefix",5)(u)}function a(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):De(u)?o(u):n(u)}}const pC={name:"codeText",previous:gC,resolve:mC,tokenize:EC};function mC(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function gC(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function EC(e,t,n){let r=0,o,a;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),r++,c):(e.exit("codeTextSequence"),d(g))}function d(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),d):g===96?(a=e.enter("codeTextSequence"),o=0,m(g)):De(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||De(g)?(e.exit("codeTextData"),d(g)):(e.consume(g),h)}function m(g){return g===96?(e.consume(g),o++,m):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(a.type="codeTextData",h(g))}}class yC{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n==null?Number.POSITIVE_INFINITY:n;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&Bs(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Bs(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Bs(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Bs(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Bs(this.left,n.reverse())}}}function Bs(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function dg(e){const t={};let n=-1,r,o,a,u,c,d,h;const m=new yC(e);for(;++n<m.length;){for(;n in t;)n=t[n];if(r=m.get(n),n&&r[1].type==="chunkFlow"&&m.get(n-1)[1].type==="listItemPrefix"&&(d=r[1]._tokenizer.events,a=0,a<d.length&&d[a][1].type==="lineEndingBlank"&&(a+=2),a<d.length&&d[a][1].type==="content"))for(;++a<d.length&&d[a][1].type!=="content";)d[a][1].type==="chunkText"&&(d[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,TC(m,n)),n=t[n],h=!0);else if(r[1]._container){for(a=n,o=void 0;a--;)if(u=m.get(a),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(o&&(m.get(o)[1].type="lineEndingBlank"),u[1].type="lineEnding",o=a);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;o&&(r[1].end=U({},m.get(o)[1].start),c=m.slice(o,n),c.unshift(r),m.splice(o,n-o+1,c))}}return _n(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!h}function TC(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const a=[];let u=n._tokenizer;u||(u=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const c=u.events,d=[],h={};let m,g,b=-1,T=n,x=0,S=0;const A=[S];for(;T;){for(;e.get(++o)[1]!==T;);a.push(o),T._tokenizer||(m=r.sliceStream(T),T.next||m.push(null),g&&u.defineSkip(T.start),T._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),T._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=T,T=T.next}for(T=n;++b<c.length;)c[b][0]==="exit"&&c[b-1][0]==="enter"&&c[b][1].type===c[b-1][1].type&&c[b][1].start.line!==c[b][1].end.line&&(S=b+1,A.push(S),T._tokenizer=void 0,T.previous=void 0,T=T.next);for(u.events=[],T?(T._tokenizer=void 0,T.previous=void 0):A.pop(),b=A.length;b--;){const v=c.slice(A[b],A[b+1]),I=a.pop();d.push([I,I+v.length-1]),e.splice(I,2,v)}for(d.reverse(),b=-1;++b<d.length;)h[x+d[b][0]]=x+d[b][1],x+=d[b][1]-d[b][0]-1;return h}const bC={resolve:xC,tokenize:SC},_C={partial:!0,tokenize:wC};function xC(e){return dg(e),e}function SC(e,t){let n;return r;function r(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(c)}function o(c){return c===null?a(c):De(c)?e.check(_C,u,a)(c):(e.consume(c),o)}function a(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function u(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function wC(e,t,n){const r=this;return o;function o(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Qe(e,a,"linePrefix")}function a(u){if(u===null||De(u))return n(u);const c=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function fg(e,t,n,r,o,a,u,c,d){const h=d||Number.POSITIVE_INFINITY;let m=0;return g;function g(v){return v===60?(e.enter(r),e.enter(o),e.enter(a),e.consume(v),e.exit(a),b):v===null||v===32||v===41||Cu(v)?n(v):(e.enter(r),e.enter(u),e.enter(c),e.enter("chunkString",{contentType:"string"}),S(v))}function b(v){return v===62?(e.enter(a),e.consume(v),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),T(v))}function T(v){return v===62?(e.exit("chunkString"),e.exit(c),b(v)):v===null||v===60||De(v)?n(v):(e.consume(v),v===92?x:T)}function x(v){return v===60||v===62||v===92?(e.consume(v),T):T(v)}function S(v){return!m&&(v===null||v===41||rt(v))?(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(r),t(v)):m<h&&v===40?(e.consume(v),m++,S):v===41?(e.consume(v),m--,S):v===null||v===32||v===40||Cu(v)?n(v):(e.consume(v),v===92?A:S)}function A(v){return v===40||v===41||v===92?(e.consume(v),S):S(v)}}function hg(e,t,n,r,o,a){const u=this;let c=0,d;return h;function h(T){return e.enter(r),e.enter(o),e.consume(T),e.exit(o),e.enter(a),m}function m(T){return c>999||T===null||T===91||T===93&&!d||T===94&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs?n(T):T===93?(e.exit(a),e.enter(o),e.consume(T),e.exit(o),e.exit(r),t):De(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(T))}function g(T){return T===null||T===91||T===93||De(T)||c++>999?(e.exit("chunkString"),m(T)):(e.consume(T),d||(d=!Ge(T)),T===92?b:g)}function b(T){return T===91||T===92||T===93?(e.consume(T),c++,g):g(T)}}function pg(e,t,n,r,o,a){let u;return c;function c(b){return b===34||b===39||b===40?(e.enter(r),e.enter(o),e.consume(b),e.exit(o),u=b===40?41:b,d):n(b)}function d(b){return b===u?(e.enter(o),e.consume(b),e.exit(o),e.exit(r),t):(e.enter(a),h(b))}function h(b){return b===u?(e.exit(a),d(u)):b===null?n(b):De(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Qe(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===u||b===null||De(b)?(e.exit("chunkString"),h(b)):(e.consume(b),b===92?g:m)}function g(b){return b===u||b===92?(e.consume(b),m):m(b)}}function Us(e,t){let n;return r;function r(o){return De(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Ge(o)?Qe(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const AC={name:"definition",tokenize:vC},CC={partial:!0,tokenize:kC};function vC(e,t,n){const r=this;let o;return a;function a(T){return e.enter("definition"),u(T)}function u(T){return hg.call(r,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(T)}function c(T){return o=qn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),T===58?(e.enter("definitionMarker"),e.consume(T),e.exit("definitionMarker"),d):n(T)}function d(T){return rt(T)?Us(e,h)(T):h(T)}function h(T){return fg(e,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(T)}function m(T){return e.attempt(CC,g,g)(T)}function g(T){return Ge(T)?Qe(e,b,"whitespace")(T):b(T)}function b(T){return T===null||De(T)?(e.exit("definition"),r.parser.defined.push(o),t(T)):n(T)}}function kC(e,t,n){return r;function r(c){return rt(c)?Us(e,o)(c):n(c)}function o(c){return pg(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function a(c){return Ge(c)?Qe(e,u,"whitespace")(c):u(c)}function u(c){return c===null||De(c)?t(c):n(c)}}const NC={name:"hardBreakEscape",tokenize:OC};function OC(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),o}function o(a){return De(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const IC={name:"headingAtx",resolve:PC,tokenize:RC};function PC(e,t){let n=e.length-2,r=3,o,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},_n(e,r,n-r+1,[["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t]])),e}function RC(e,t,n){let r=0;return o;function o(m){return e.enter("atxHeading"),a(m)}function a(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&r++<6?(e.consume(m),u):m===null||rt(m)?(e.exit("atxHeadingSequence"),c(m)):n(m)}function c(m){return m===35?(e.enter("atxHeadingSequence"),d(m)):m===null||De(m)?(e.exit("atxHeading"),t(m)):Ge(m)?Qe(e,c,"whitespace")(m):(e.enter("atxHeadingText"),h(m))}function d(m){return m===35?(e.consume(m),d):(e.exit("atxHeadingSequence"),c(m))}function h(m){return m===null||m===35||rt(m)?(e.exit("atxHeadingText"),c(m)):(e.consume(m),h)}}const LC=["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"],mg=["pre","script","style","textarea"],DC={concrete:!0,name:"htmlFlow",resolveTo:BC,tokenize:UC},MC={partial:!0,tokenize:zC},FC={partial:!0,tokenize:HC};function BC(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function UC(e,t,n){const r=this;let o,a,u,c,d;return h;function h(N){return m(N)}function m(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),g}function g(N){return N===33?(e.consume(N),b):N===47?(e.consume(N),a=!0,S):N===63?(e.consume(N),o=3,r.interrupt?t:w):nn(N)?(e.consume(N),u=String.fromCharCode(N),A):n(N)}function b(N){return N===45?(e.consume(N),o=2,T):N===91?(e.consume(N),o=5,c=0,x):nn(N)?(e.consume(N),o=4,r.interrupt?t:w):n(N)}function T(N){return N===45?(e.consume(N),r.interrupt?t:w):n(N)}function x(N){const be="CDATA[";return N===be.charCodeAt(c++)?(e.consume(N),c===be.length?r.interrupt?t:me:x):n(N)}function S(N){return nn(N)?(e.consume(N),u=String.fromCharCode(N),A):n(N)}function A(N){if(N===null||N===47||N===62||rt(N)){const be=N===47,Le=u.toLowerCase();return!be&&!a&&mg.includes(Le)?(o=1,r.interrupt?t(N):me(N)):LC.includes(u.toLowerCase())?(o=6,be?(e.consume(N),v):r.interrupt?t(N):me(N)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(N):a?I(N):k(N))}return N===45||qt(N)?(e.consume(N),u+=String.fromCharCode(N),A):n(N)}function v(N){return N===62?(e.consume(N),r.interrupt?t:me):n(N)}function I(N){return Ge(N)?(e.consume(N),I):z(N)}function k(N){return N===47?(e.consume(N),z):N===58||N===95||nn(N)?(e.consume(N),M):Ge(N)?(e.consume(N),k):z(N)}function M(N){return N===45||N===46||N===58||N===95||qt(N)?(e.consume(N),M):Y(N)}function Y(N){return N===61?(e.consume(N),F):Ge(N)?(e.consume(N),Y):k(N)}function F(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),d=N,J):Ge(N)?(e.consume(N),F):Ee(N)}function J(N){return N===d?(e.consume(N),d=null,xe):N===null||De(N)?n(N):(e.consume(N),J)}function Ee(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||rt(N)?Y(N):(e.consume(N),Ee)}function xe(N){return N===47||N===62||Ge(N)?k(N):n(N)}function z(N){return N===62?(e.consume(N),se):n(N)}function se(N){return N===null||De(N)?me(N):Ge(N)?(e.consume(N),se):n(N)}function me(N){return N===45&&o===2?(e.consume(N),Re):N===60&&o===1?(e.consume(N),ce):N===62&&o===4?(e.consume(N),D):N===63&&o===3?(e.consume(N),w):N===93&&o===5?(e.consume(N),ee):De(N)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(MC,Q,de)(N)):N===null||De(N)?(e.exit("htmlFlowData"),de(N)):(e.consume(N),me)}function de(N){return e.check(FC,le,Q)(N)}function le(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),Te}function Te(N){return N===null||De(N)?de(N):(e.enter("htmlFlowData"),me(N))}function Re(N){return N===45?(e.consume(N),w):me(N)}function ce(N){return N===47?(e.consume(N),u="",G):me(N)}function G(N){if(N===62){const be=u.toLowerCase();return mg.includes(be)?(e.consume(N),D):me(N)}return nn(N)&&u.length<8?(e.consume(N),u+=String.fromCharCode(N),G):me(N)}function ee(N){return N===93?(e.consume(N),w):me(N)}function w(N){return N===62?(e.consume(N),D):N===45&&o===2?(e.consume(N),w):me(N)}function D(N){return N===null||De(N)?(e.exit("htmlFlowData"),Q(N)):(e.consume(N),D)}function Q(N){return e.exit("htmlFlow"),t(N)}}function HC(e,t,n){const r=this;return o;function o(u){return De(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):n(u)}function a(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function zC(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Fs,t,n)}}const jC={name:"htmlText",tokenize:$C};function $C(e,t,n){const r=this;let o,a,u;return c;function c(w){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(w),d}function d(w){return w===33?(e.consume(w),h):w===47?(e.consume(w),Y):w===63?(e.consume(w),k):nn(w)?(e.consume(w),Ee):n(w)}function h(w){return w===45?(e.consume(w),m):w===91?(e.consume(w),a=0,x):nn(w)?(e.consume(w),I):n(w)}function m(w){return w===45?(e.consume(w),T):n(w)}function g(w){return w===null?n(w):w===45?(e.consume(w),b):De(w)?(u=g,ce(w)):(e.consume(w),g)}function b(w){return w===45?(e.consume(w),T):g(w)}function T(w){return w===62?Re(w):w===45?b(w):g(w)}function x(w){const D="CDATA[";return w===D.charCodeAt(a++)?(e.consume(w),a===D.length?S:x):n(w)}function S(w){return w===null?n(w):w===93?(e.consume(w),A):De(w)?(u=S,ce(w)):(e.consume(w),S)}function A(w){return w===93?(e.consume(w),v):S(w)}function v(w){return w===62?Re(w):w===93?(e.consume(w),v):S(w)}function I(w){return w===null||w===62?Re(w):De(w)?(u=I,ce(w)):(e.consume(w),I)}function k(w){return w===null?n(w):w===63?(e.consume(w),M):De(w)?(u=k,ce(w)):(e.consume(w),k)}function M(w){return w===62?Re(w):k(w)}function Y(w){return nn(w)?(e.consume(w),F):n(w)}function F(w){return w===45||qt(w)?(e.consume(w),F):J(w)}function J(w){return De(w)?(u=J,ce(w)):Ge(w)?(e.consume(w),J):Re(w)}function Ee(w){return w===45||qt(w)?(e.consume(w),Ee):w===47||w===62||rt(w)?xe(w):n(w)}function xe(w){return w===47?(e.consume(w),Re):w===58||w===95||nn(w)?(e.consume(w),z):De(w)?(u=xe,ce(w)):Ge(w)?(e.consume(w),xe):Re(w)}function z(w){return w===45||w===46||w===58||w===95||qt(w)?(e.consume(w),z):se(w)}function se(w){return w===61?(e.consume(w),me):De(w)?(u=se,ce(w)):Ge(w)?(e.consume(w),se):xe(w)}function me(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),o=w,de):De(w)?(u=me,ce(w)):Ge(w)?(e.consume(w),me):(e.consume(w),le)}function de(w){return w===o?(e.consume(w),o=void 0,Te):w===null?n(w):De(w)?(u=de,ce(w)):(e.consume(w),de)}function le(w){return w===null||w===34||w===39||w===60||w===61||w===96?n(w):w===47||w===62||rt(w)?xe(w):(e.consume(w),le)}function Te(w){return w===47||w===62||rt(w)?xe(w):n(w)}function Re(w){return w===62?(e.consume(w),e.exit("htmlTextData"),e.exit("htmlText"),t):n(w)}function ce(w){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),G}function G(w){return Ge(w)?Qe(e,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):ee(w)}function ee(w){return e.enter("htmlTextData"),u(w)}}const Rd={name:"labelEnd",resolveAll:WC,resolveTo:GC,tokenize:KC},VC={tokenize:QC},YC={tokenize:XC},qC={tokenize:JC};function WC(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&_n(e,0,e.length,n),e}function GC(e,t){let n=e.length,r=0,o,a,u,c;for(;n--;)if(o=e[n][1],a){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(a=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(u=n);const d={type:e[a][1].type==="labelLink"?"link":"image",start:U({},e[a][1].start),end:U({},e[e.length-1][1].end)},h={type:"label",start:U({},e[a][1].start),end:U({},e[u][1].end)},m={type:"labelText",start:U({},e[a+r+2][1].end),end:U({},e[u-2][1].start)};return c=[["enter",d,t],["enter",h,t]],c=Pn(c,e.slice(a+1,a+r+3)),c=Pn(c,[["enter",m,t]]),c=Pn(c,ku(t.parser.constructs.insideSpan.null,e.slice(a+r+4,u-3),t)),c=Pn(c,[["exit",m,t],e[u-2],e[u-1],["exit",h,t]]),c=Pn(c,e.slice(u+1)),c=Pn(c,[["exit",d,t]]),_n(e,a,e.length,c),e}function KC(e,t,n){const r=this;let o=r.events.length,a,u;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){a=r.events[o][1];break}return c;function c(b){return a?a._inactive?g(b):(u=r.parser.defined.includes(qn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):n(b)}function d(b){return b===40?e.attempt(VC,m,u?m:g)(b):b===91?e.attempt(YC,m,u?h:g)(b):u?m(b):g(b)}function h(b){return e.attempt(qC,m,g)(b)}function m(b){return t(b)}function g(b){return a._balanced=!0,n(b)}}function QC(e,t,n){return r;function r(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return rt(g)?Us(e,a)(g):a(g)}function a(g){return g===41?m(g):fg(e,u,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return rt(g)?Us(e,d)(g):m(g)}function c(g){return n(g)}function d(g){return g===34||g===39||g===40?pg(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function h(g){return rt(g)?Us(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function XC(e,t,n){const r=this;return o;function o(c){return hg.call(r,e,a,u,"reference","referenceMarker","referenceString")(c)}function a(c){return r.parser.defined.includes(qn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function u(c){return n(c)}}function JC(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),o}function o(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const ZC={name:"labelStartImage",resolveAll:Rd.resolveAll,tokenize:ev};function ev(e,t,n){const r=this;return o;function o(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),a}function a(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),u):n(c)}function u(c){return c===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(c):t(c)}}const tv={name:"labelStartLink",resolveAll:Rd.resolveAll,tokenize:nv};function nv(e,t,n){const r=this;return o;function o(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),a}function a(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const Ld={name:"lineEnding",tokenize:rv};function rv(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Qe(e,t,"linePrefix")}}const Nu={name:"thematicBreak",tokenize:iv};function iv(e,t,n){let r=0,o;return a;function a(h){return e.enter("thematicBreak"),u(h)}function u(h){return o=h,c(h)}function c(h){return h===o?(e.enter("thematicBreakSequence"),d(h)):r>=3&&(h===null||De(h))?(e.exit("thematicBreak"),t(h)):n(h)}function d(h){return h===o?(e.consume(h),r++,d):(e.exit("thematicBreakSequence"),Ge(h)?Qe(e,c,"whitespace")(h):c(h))}}const dn={continuation:{tokenize:uv},exit:cv,name:"list",tokenize:av},ov={partial:!0,tokenize:dv},sv={partial:!0,tokenize:lv};function av(e,t,n){const r=this,o=r.events[r.events.length-1];let a=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return c;function c(T){const x=r.containerState.type||(T===42||T===43||T===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||T===r.containerState.marker:Od(T)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),T===42||T===45?e.check(Nu,n,h)(T):h(T);if(!r.interrupt||T===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(T)}return n(T)}function d(T){return Od(T)&&++u<10?(e.consume(T),d):(!r.interrupt||u<2)&&(r.containerState.marker?T===r.containerState.marker:T===41||T===46)?(e.exit("listItemValue"),h(T)):n(T)}function h(T){return e.enter("listItemMarker"),e.consume(T),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||T,e.check(Fs,r.interrupt?n:m,e.attempt(ov,b,g))}function m(T){return r.containerState.initialBlankLine=!0,a++,b(T)}function g(T){return Ge(T)?(e.enter("listItemPrefixWhitespace"),e.consume(T),e.exit("listItemPrefixWhitespace"),b):n(T)}function b(T){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(T)}}function uv(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Fs,o,a);function o(c){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Qe(e,t,"listItemIndent",r.containerState.size+1)(c)}function a(c){return r.containerState.furtherBlankLines||!Ge(c)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(c)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(sv,t,u)(c))}function u(c){return r.containerState._closeFlow=!0,r.interrupt=void 0,Qe(e,e.attempt(dn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function lv(e,t,n){const r=this;return Qe(e,o,"listItemIndent",r.containerState.size+1);function o(a){const u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(a):n(a)}}function cv(e){e.exit(this.containerState.type)}function dv(e,t,n){const r=this;return Qe(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(a){const u=r.events[r.events.length-1];return!Ge(a)&&u&&u[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const gg={name:"setextUnderline",resolveTo:fv,tokenize:hv};function fv(e,t){let n=e.length,r,o,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const u={type:"setextHeading",start:U({},e[r][1].start),end:U({},e[e.length-1][1].end)};return e[o][1].type="setextHeadingText",a?(e.splice(o,0,["enter",u,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=U({},e[a][1].end)):e[r][1]=u,e.push(["exit",u,t]),e}function hv(e,t,n){const r=this;let o;return a;function a(h){let m=r.events.length,g;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){g=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(e.enter("setextHeadingLine"),o=h,u(h)):n(h)}function u(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===o?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),Ge(h)?Qe(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||De(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const pv={tokenize:mv};function mv(e){const t=this,n=e.attempt(Fs,r,e.attempt(this.parser.constructs.flowInitial,o,Qe(e,e.attempt(this.parser.constructs.flow,o,e.attempt(bC,o)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const gv={resolveAll:yg()},Ev=Eg("string"),yv=Eg("text");function Eg(e){return{resolveAll:yg(e==="text"?Tv:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],a=n.attempt(o,u,c);return u;function u(m){return h(m)?a(m):c(m)}function c(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),d}function d(m){return h(m)?(n.exit("data"),a(m)):(n.consume(m),d)}function h(m){if(m===null)return!0;const g=o[m];let b=-1;if(g)for(;++b<g.length;){const T=g[b];if(!T.previous||T.previous.call(r,r.previous))return!0}return!1}}}function yg(e){return t;function t(n,r){let o=-1,a;for(;++o<=n.length;)a===void 0?n[o]&&n[o][1].type==="data"&&(a=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==a+2&&(n[a][1].end=n[o-1][1].end,n.splice(a+2,o-a-2),o=a+2),a=void 0);return e?e(n,r):n}}function Tv(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let a=o.length,u=-1,c=0,d;for(;a--;){const h=o[a];if(typeof h=="string"){for(u=h.length;h.charCodeAt(u-1)===32;)c++,u--;if(u)break;u=-1}else if(h===-2)d=!0,c++;else if(h!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const h={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?u:r.start._bufferIndex+u,_index:r.start._index+a,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:U({},r.end)};r.end=U({},h.start),r.start.offset===r.end.offset?Object.assign(r,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const bv=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:AC},disable:{null:[]},document:{42:dn,43:dn,45:dn,48:dn,49:dn,50:dn,51:dn,52:dn,53:dn,54:dn,55:dn,56:dn,57:dn,62:sg},flow:{35:IC,42:Nu,45:[gg,Nu],60:DC,61:gg,95:Nu,96:cg,126:cg},flowInitial:{[-2]:Pd,[-1]:Pd,32:Pd},insideSpan:{null:[Id,gv]},string:{38:ug,92:ag},text:{[-5]:Ld,[-4]:Ld,[-3]:Ld,33:ZC,38:ug,42:Id,60:[tC,jC],91:tv,92:[NC,ag],93:Rd,95:Id,96:pC}},Symbol.toStringTag,{value:"Module"}));function _v(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},a=[];let u=[],c=[];const d={attempt:J(Y),check:J(F),consume:I,enter:k,exit:M,interrupt:J(F,{interrupt:!0})},h={code:null,containerState:{},defineSkip:S,events:[],now:x,parser:e,previous:null,sliceSerialize:b,sliceStream:T,write:g};let m=t.tokenize.call(h,d);return t.resolveAll&&a.push(t),h;function g(se){return u=Pn(u,se),A(),u[u.length-1]!==null?[]:(Ee(t,0),h.events=ku(a,h.events,h),h.events)}function b(se,me){return Sv(T(se),me)}function T(se){return xv(u,se)}function x(){const{_bufferIndex:se,_index:me,line:de,column:le,offset:Te}=r;return{_bufferIndex:se,_index:me,line:de,column:le,offset:Te}}function S(se){o[se.line]=se.column,z()}function A(){let se;for(;r._index<u.length;){const me=u[r._index];if(typeof me=="string")for(se=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===se&&r._bufferIndex<me.length;)v(me.charCodeAt(r._bufferIndex));else v(me)}}function v(se){m=m(se)}function I(se){De(se)?(r.line++,r.column=1,r.offset+=se===-3?2:1,z()):se!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),h.previous=se}function k(se,me){const de=me||{};return de.type=se,de.start=x(),h.events.push(["enter",de,h]),c.push(de),de}function M(se){const me=c.pop();return me.end=x(),h.events.push(["exit",me,h]),me}function Y(se,me){Ee(se,me.from)}function F(se,me){me.restore()}function J(se,me){return de;function de(le,Te,Re){let ce,G,ee,w;return Array.isArray(le)?Q(le):"tokenize"in le?Q([le]):D(le);function D(Oe){return ze;function ze(we){const Ye=we!==null&&Oe[we],ut=we!==null&&Oe.null,pn=[...Array.isArray(Ye)?Ye:Ye?[Ye]:[],...Array.isArray(ut)?ut:ut?[ut]:[]];return Q(pn)(we)}}function Q(Oe){return ce=Oe,G=0,Oe.length===0?Re:N(Oe[G])}function N(Oe){return ze;function ze(we){return w=xe(),ee=Oe,Oe.partial||(h.currentConstruct=Oe),Oe.name&&h.parser.constructs.disable.null.includes(Oe.name)?Le():Oe.tokenize.call(me?Object.assign(Object.create(h),me):h,d,be,Le)(we)}}function be(Oe){return se(ee,w),Te}function Le(Oe){return w.restore(),++G<ce.length?N(ce[G]):Re}}}function Ee(se,me){se.resolveAll&&!a.includes(se)&&a.push(se),se.resolve&&_n(h.events,me,h.events.length-me,se.resolve(h.events.slice(me),h)),se.resolveTo&&(h.events=se.resolveTo(h.events,h))}function xe(){const se=x(),me=h.previous,de=h.currentConstruct,le=h.events.length,Te=Array.from(c);return{from:le,restore:Re};function Re(){r=se,h.previous=me,h.currentConstruct=de,h.events.length=le,c=Te,z()}}function z(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function xv(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,a=t.end._bufferIndex;let u;if(n===o)u=[e[n].slice(r,a)];else{if(u=e.slice(n,o),r>-1){const c=u[0];typeof c=="string"?u[0]=c.slice(r):u.shift()}a>0&&u.push(e[o].slice(0,a))}return u}function Sv(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const a=e[n];let u;if(typeof a=="string")u=a;else switch(a){case-5:{u="\r";break}case-4:{u=`
|
|
25
|
+
`;break}case-3:{u=`\r
|
|
26
|
+
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&o)continue;u=" ";break}default:u=String.fromCharCode(a)}o=a===-2,r.push(u)}return r.join("")}function wv(e){const r={constructs:ng([bv,...(e||{}).extensions||[]]),content:o(GA),defined:[],document:o(QA),flow:o(pv),lazy:{},string:o(Ev),text:o(yv)};return r;function o(a){return u;function u(c){return _v(r,a,c)}}}function Av(e){for(;!dg(e););return e}const Tg=/[\0\t\n\r]/g;function Cv(){let e=1,t="",n=!0,r;return o;function o(a,u,c){const d=[];let h,m,g,b,T;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(u||void 0).decode(a)),g=0,t="",n&&(a.charCodeAt(0)===65279&&g++,n=void 0);g<a.length;){if(Tg.lastIndex=g,h=Tg.exec(a),b=h&&h.index!==void 0?h.index:a.length,T=a.charCodeAt(b),!h){t=a.slice(g);break}if(T===10&&g===b&&r)d.push(-3),r=void 0;else switch(r&&(d.push(-5),r=void 0),g<b&&(d.push(a.slice(g,b)),e+=b-g),T){case 0:{d.push(65533),e++;break}case 9:{for(m=Math.ceil(e/4)*4,d.push(-2);e++<m;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:r=!0,e=1}g=b+1}return c&&(r&&d.push(-5),t&&d.push(t),d.push(null)),d}}const vv=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kv(e){return e.replace(vv,Nv)}function Nv(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),a=o===120||o===88;return rg(n.slice(a?2:1),a?16:10)}return Nd(n)||e}const bg={}.hasOwnProperty;function Ov(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Iv(n)(Av(wv(n).document().write(Cv()(e,t,!0))))}function Iv(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(Ko),autolinkProtocol:xe,autolinkEmail:xe,atxHeading:a(pa),blockQuote:a(ut),characterEscape:xe,characterReference:xe,codeFenced:a(pn),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:a(pn,u),codeText:a(Yi,u),codeTextData:xe,data:xe,codeFlowValue:xe,definition:a(Xr),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:a(Xn),hardBreakEscape:a(ma),hardBreakTrailing:a(ma),htmlFlow:a(Go,u),htmlFlowData:xe,htmlText:a(Go,u),htmlTextData:xe,image:a(_l),label:u,link:a(Ko),listItem:a(Zr),listItemValue:b,listOrdered:a(Jr,g),listUnordered:a(Jr),paragraph:a(ga),reference:N,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:a(pa),strong:a(xl),thematicBreak:a(wl)},exit:{atxHeading:d(),atxHeadingSequence:Y,autolink:d(),autolinkEmail:Ye,autolinkProtocol:we,blockQuote:d(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:Le,characterReferenceMarkerNumeric:Le,characterReferenceValue:Oe,characterReference:ze,codeFenced:d(A),codeFencedFence:S,codeFencedFenceInfo:T,codeFencedFenceMeta:x,codeFlowValue:z,codeIndented:d(v),codeText:d(Te),codeTextData:z,data:z,definition:d(),definitionDestinationString:M,definitionLabelString:I,definitionTitleString:k,emphasis:d(),hardBreakEscape:d(me),hardBreakTrailing:d(me),htmlFlow:d(de),htmlFlowData:z,htmlText:d(le),htmlTextData:z,image:d(ce),label:ee,labelText:G,lineEnding:se,link:d(Re),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:be,resourceDestinationString:w,resourceTitleString:D,resource:Q,setextHeading:d(Ee),setextHeadingLineSequence:J,setextHeadingText:F,strong:d(),thematicBreak:d()}};_g(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Z){let ye={type:"root",children:[]};const Ue={stack:[ye],tokenStack:[],config:t,enter:c,exit:h,buffer:u,resume:m,data:n},qe=[];let Xe=-1;for(;++Xe<Z.length;)if(Z[Xe][1].type==="listOrdered"||Z[Xe][1].type==="listUnordered")if(Z[Xe][0]==="enter")qe.push(Xe);else{const Ht=qe.pop();Xe=o(Z,Ht,Xe)}for(Xe=-1;++Xe<Z.length;){const Ht=t[Z[Xe][0]];bg.call(Ht,Z[Xe][1].type)&&Ht[Z[Xe][1].type].call(Object.assign({sliceSerialize:Z[Xe][2].sliceSerialize},Ue),Z[Xe][1])}if(Ue.tokenStack.length>0){const Ht=Ue.tokenStack[Ue.tokenStack.length-1];(Ht[1]||xg).call(Ue,void 0,Ht[0])}for(ye.position={start:Vr(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Vr(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},Xe=-1;++Xe<t.transforms.length;)ye=t.transforms[Xe](ye)||ye;return ye}function o(Z,ye,Ue){let qe=ye-1,Xe=-1,Ht=!1,Pr,Mn,ei,qi;for(;++qe<=Ue;){const zt=Z[qe];switch(zt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{zt[0]==="enter"?Xe++:Xe--,qi=void 0;break}case"lineEndingBlank":{zt[0]==="enter"&&(Pr&&!qi&&!Xe&&!ei&&(ei=qe),qi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:qi=void 0}if(!Xe&&zt[0]==="enter"&&zt[1].type==="listItemPrefix"||Xe===-1&&zt[0]==="exit"&&(zt[1].type==="listUnordered"||zt[1].type==="listOrdered")){if(Pr){let Tr=qe;for(Mn=void 0;Tr--;){const An=Z[Tr];if(An[1].type==="lineEnding"||An[1].type==="lineEndingBlank"){if(An[0]==="exit")continue;Mn&&(Z[Mn][1].type="lineEndingBlank",Ht=!0),An[1].type="lineEnding",Mn=Tr}else if(!(An[1].type==="linePrefix"||An[1].type==="blockQuotePrefix"||An[1].type==="blockQuotePrefixWhitespace"||An[1].type==="blockQuoteMarker"||An[1].type==="listItemIndent"))break}ei&&(!Mn||ei<Mn)&&(Pr._spread=!0),Pr.end=Object.assign({},Mn?Z[Mn][1].start:zt[1].end),Z.splice(Mn||qe,0,["exit",Pr,zt[2]]),qe++,Ue++}if(zt[1].type==="listItemPrefix"){const Tr={type:"listItem",_spread:!1,start:Object.assign({},zt[1].start),end:void 0};Pr=Tr,Z.splice(qe,0,["enter",Tr,zt[2]]),qe++,Ue++,ei=void 0,qi=!0}}}return Z[ye][1]._spread=Ht,Ue}function a(Z,ye){return Ue;function Ue(qe){c.call(this,Z(qe),qe),ye&&ye.call(this,qe)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(Z,ye,Ue){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([ye,Ue||void 0]),Z.position={start:Vr(ye.start),end:void 0}}function d(Z){return ye;function ye(Ue){Z&&Z.call(this,Ue),h.call(this,Ue)}}function h(Z,ye){const Ue=this.stack.pop(),qe=this.tokenStack.pop();if(qe)qe[0].type!==Z.type&&(ye?ye.call(this,Z,qe[0]):(qe[1]||xg).call(this,Z,qe[0]));else throw new Error("Cannot close `"+Z.type+"` ("+Ds({start:Z.start,end:Z.end})+"): it’s not open");Ue.position.end=Vr(Z.end)}function m(){return kd(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function b(Z){if(this.data.expectingFirstListItemValue){const ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function T(){const Z=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=Z}function x(){const Z=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=Z}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function A(){const Z=this.resume(),ye=this.stack[this.stack.length-1];ye.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const Z=this.resume(),ye=this.stack[this.stack.length-1];ye.value=Z.replace(/(\r?\n|\r)$/g,"")}function I(Z){const ye=this.resume(),Ue=this.stack[this.stack.length-1];Ue.label=ye,Ue.identifier=qn(this.sliceSerialize(Z)).toLowerCase()}function k(){const Z=this.resume(),ye=this.stack[this.stack.length-1];ye.title=Z}function M(){const Z=this.resume(),ye=this.stack[this.stack.length-1];ye.url=Z}function Y(Z){const ye=this.stack[this.stack.length-1];if(!ye.depth){const Ue=this.sliceSerialize(Z).length;ye.depth=Ue}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function J(Z){const ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function Ee(){this.data.setextHeadingSlurpLineEnding=void 0}function xe(Z){const Ue=this.stack[this.stack.length-1].children;let qe=Ue[Ue.length-1];(!qe||qe.type!=="text")&&(qe=Sl(),qe.position={start:Vr(Z.start),end:void 0},Ue.push(qe)),this.stack.push(qe)}function z(Z){const ye=this.stack.pop();ye.value+=this.sliceSerialize(Z),ye.position.end=Vr(Z.end)}function se(Z){const ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ue=ye.children[ye.children.length-1];Ue.position.end=Vr(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ye.type)&&(xe.call(this,Z),z.call(this,Z))}function me(){this.data.atHardBreak=!0}function de(){const Z=this.resume(),ye=this.stack[this.stack.length-1];ye.value=Z}function le(){const Z=this.resume(),ye=this.stack[this.stack.length-1];ye.value=Z}function Te(){const Z=this.resume(),ye=this.stack[this.stack.length-1];ye.value=Z}function Re(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ye,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function ce(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=ye,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function G(Z){const ye=this.sliceSerialize(Z),Ue=this.stack[this.stack.length-2];Ue.label=kv(ye),Ue.identifier=qn(ye).toLowerCase()}function ee(){const Z=this.stack[this.stack.length-1],ye=this.resume(),Ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ue.type==="link"){const qe=Z.children;Ue.children=qe}else Ue.alt=ye}function w(){const Z=this.resume(),ye=this.stack[this.stack.length-1];ye.url=Z}function D(){const Z=this.resume(),ye=this.stack[this.stack.length-1];ye.title=Z}function Q(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function be(Z){const ye=this.resume(),Ue=this.stack[this.stack.length-1];Ue.label=ye,Ue.identifier=qn(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function Le(Z){this.data.characterReferenceType=Z.type}function Oe(Z){const ye=this.sliceSerialize(Z),Ue=this.data.characterReferenceType;let qe;Ue?(qe=rg(ye,Ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):qe=Nd(ye);const Xe=this.stack[this.stack.length-1];Xe.value+=qe}function ze(Z){const ye=this.stack.pop();ye.position.end=Vr(Z.end)}function we(Z){z.call(this,Z);const ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(Z)}function Ye(Z){z.call(this,Z);const ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(Z)}function ut(){return{type:"blockquote",children:[]}}function pn(){return{type:"code",lang:null,meta:null,value:""}}function Yi(){return{type:"inlineCode",value:""}}function Xr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Xn(){return{type:"emphasis",children:[]}}function pa(){return{type:"heading",depth:0,children:[]}}function ma(){return{type:"break"}}function Go(){return{type:"html",value:""}}function _l(){return{type:"image",title:null,url:"",alt:null}}function Ko(){return{type:"link",title:null,url:"",children:[]}}function Jr(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Zr(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function ga(){return{type:"paragraph",children:[]}}function xl(){return{type:"strong",children:[]}}function Sl(){return{type:"text",value:""}}function wl(){return{type:"thematicBreak"}}}function Vr(e){return{line:e.line,column:e.column,offset:e.offset}}function _g(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?_g(e,r):Pv(e,r)}}function Pv(e,t){let n;for(n in t)if(bg.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function xg(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ds({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ds({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ds({start:t.start,end:t.end})+") is still open")}function Rv(e){const t=this;t.parser=n;function n(r){return Ov(r,re(U(U({},t.data("settings")),e),{extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]}))}}function Lv(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Dv(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
27
|
+
`}]}function Mv(e,t){const n=t.value?t.value+`
|
|
28
|
+
`:"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Fv(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bv(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Uv(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=To(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let u,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),u=e.footnoteOrder.length):u=a+1,c+=1,e.footnoteCounts.set(r,c);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,h),e.applyData(t,h)}function Hv(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zv(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Sg(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),a=o[0];a&&a.type==="text"?a.value="["+a.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=r:o.push({type:"text",value:r}),o}function jv(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sg(e,t);const o={src:To(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const a={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,a),e.applyData(t,a)}function $v(e,t){const n={src:To(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Vv(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Yv(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sg(e,t);const o={href:To(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const a={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function qv(e,t){const n={href:To(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Wv(e,t,n){const r=e.all(t),o=n?Gv(n):wg(t),a={},u=[];if(typeof t.checked=="boolean"){const m=r[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},r.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const m=r[c];(o||c!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
|
|
29
|
+
`}),m.type==="element"&&m.tagName==="p"&&!o?u.push(...m.children):u.push(m)}const d=r[r.length-1];d&&(o||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:`
|
|
30
|
+
`});const h={type:"element",tagName:"li",properties:a,children:u};return e.patch(t,h),e.applyData(t,h)}function Gv(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=wg(n[r])}return t}function wg(e){const t=e.spread;return t==null?e.children.length>1:t}function Kv(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const u=r[o];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Qv(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xv(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Jv(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Zv(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],u),o.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=ur(t.children[1]),d=Au(t.children[t.children.length-1]);c&&d&&(u.position={start:c,end:d}),o.push(u)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,a),e.applyData(t,a)}function ek(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,c=u?u.length:t.children.length;let d=-1;const h=[];for(;++d<c;){const g=t.children[d],b={},T=u?u[d]:void 0;T&&(b.align=T);let x={type:"element",tagName:a,properties:b,children:[]};g&&(x.children=e.all(g),e.patch(g,x),x=e.applyData(g,x)),h.push(x)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,m),e.applyData(t,m)}function tk(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Ag=9,Cg=32;function nk(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const a=[];for(;r;)a.push(vg(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(vg(t.slice(o),o>0,!1)),a.join("")}function vg(e,t,n){let r=0,o=e.length;if(t){let a=e.codePointAt(r);for(;a===Ag||a===Cg;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(o-1);for(;a===Ag||a===Cg;)o--,a=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function rk(e,t){const n={type:"text",value:nk(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function ik(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const ok={blockquote:Lv,break:Dv,code:Mv,delete:Fv,emphasis:Bv,footnoteReference:Uv,heading:Hv,html:zv,imageReference:jv,image:$v,inlineCode:Vv,linkReference:Yv,link:qv,listItem:Wv,list:Kv,paragraph:Qv,root:Xv,strong:Jv,table:Zv,tableCell:tk,tableRow:ek,text:rk,thematicBreak:ik,toml:Ou,yaml:Ou,definition:Ou,footnoteDefinition:Ou};function Ou(){}const kg=-1,Iu=0,Hs=1,Pu=2,Dd=3,Md=4,Fd=5,Bd=6,Ng=7,Og=8,Ig=typeof self=="object"?self:globalThis,sk=(e,t)=>{const n=(o,a)=>(e.set(a,o),o),r=o=>{if(e.has(o))return e.get(o);const[a,u]=t[o];switch(a){case Iu:case kg:return n(u,o);case Hs:{const c=n([],o);for(const d of u)c.push(r(d));return c}case Pu:{const c=n({},o);for(const[d,h]of u)c[r(d)]=r(h);return c}case Dd:return n(new Date(u),o);case Md:{const{source:c,flags:d}=u;return n(new RegExp(c,d),o)}case Fd:{const c=n(new Map,o);for(const[d,h]of u)c.set(r(d),r(h));return c}case Bd:{const c=n(new Set,o);for(const d of u)c.add(r(d));return c}case Ng:{const{name:c,message:d}=u;return n(new Ig[c](d),o)}case Og:return n(BigInt(u),o);case"BigInt":return n(Object(BigInt(u)),o);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:c}=new Uint8Array(u);return n(new DataView(c),u)}}return n(new Ig[a](u),o)};return r},Pg=e=>sk(new Map,e)(0),_o="",{toString:ak}={},{keys:uk}=Object,zs=e=>{const t=typeof e;if(t!=="object"||!e)return[Iu,t];const n=ak.call(e).slice(8,-1);switch(n){case"Array":return[Hs,_o];case"Object":return[Pu,_o];case"Date":return[Dd,_o];case"RegExp":return[Md,_o];case"Map":return[Fd,_o];case"Set":return[Bd,_o];case"DataView":return[Hs,n]}return n.includes("Array")?[Hs,n]:n.includes("Error")?[Ng,n]:[Pu,n]},Ru=([e,t])=>e===Iu&&(t==="function"||t==="symbol"),lk=(e,t,n,r)=>{const o=(u,c)=>{const d=r.push(u)-1;return n.set(c,d),d},a=u=>{if(n.has(u))return n.get(u);let[c,d]=zs(u);switch(c){case Iu:{let m=u;switch(d){case"bigint":c=Og,m=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);m=null;break;case"undefined":return o([kg],u)}return o([c,m],u)}case Hs:{if(d){let b=u;return d==="DataView"?b=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(u)),o([d,[...b]],u)}const m=[],g=o([c,m],u);for(const b of u)m.push(a(b));return g}case Pu:{if(d)switch(d){case"BigInt":return o([d,u.toString()],u);case"Boolean":case"Number":case"String":return o([d,u.valueOf()],u)}if(t&&"toJSON"in u)return a(u.toJSON());const m=[],g=o([c,m],u);for(const b of uk(u))(e||!Ru(zs(u[b])))&&m.push([a(b),a(u[b])]);return g}case Dd:return o([c,u.toISOString()],u);case Md:{const{source:m,flags:g}=u;return o([c,{source:m,flags:g}],u)}case Fd:{const m=[],g=o([c,m],u);for(const[b,T]of u)(e||!(Ru(zs(b))||Ru(zs(T))))&&m.push([a(b),a(T)]);return g}case Bd:{const m=[],g=o([c,m],u);for(const b of u)(e||!Ru(zs(b)))&&m.push(a(b));return g}}const{message:h}=u;return o([c,{name:d,message:h}],u)};return a},Rg=(e,{json:t,lossy:n}={})=>{const r=[];return lk(!(t||n),!!t,new Map,r)(e),r},Ii=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Pg(Rg(e,t)):structuredClone(e):(e,t)=>Pg(Rg(e,t));function ck(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function dk(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function fk(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ck,r=e.options.footnoteBackLabel||dk,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const m=e.all(h),g=String(h.identifier).toUpperCase(),b=To(g.toLowerCase());let T=0;const x=[],S=e.footnoteCounts.get(g);for(;S!==void 0&&++T<=S;){x.length>0&&x.push({type:"text",value:" "});let I=typeof n=="string"?n:n(d,T);typeof I=="string"&&(I={type:"text",value:I}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+b+(T>1?"-"+T:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(d,T),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const A=m[m.length-1];if(A&&A.type==="element"&&A.tagName==="p"){const I=A.children[A.children.length-1];I&&I.type==="text"?I.value+=" ":A.children.push({type:"text",value:" "}),A.children.push(...x)}else m.push(...x);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+b},children:e.wrap(m,!0)};e.patch(h,v),c.push(v)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:re(U({},Ii(u)),{id:"footnote-label"}),children:[{type:"text",value:o}]},{type:"text",value:`
|
|
31
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
32
|
+
`}]}}const Lu=(function(e){if(e==null)return gk;if(typeof e=="function")return Du(e);if(typeof e=="object")return Array.isArray(e)?hk(e):pk(e);if(typeof e=="string")return mk(e);throw new Error("Expected function, string, or object as test")});function hk(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Lu(e[n]);return Du(r);function r(...o){let a=-1;for(;++a<t.length;)if(t[a].apply(this,o))return!0;return!1}}function pk(e){const t=e;return Du(n);function n(r){const o=r;let a;for(a in e)if(o[a]!==t[a])return!1;return!0}}function mk(e){return Du(t);function t(n){return n&&n.type===e}}function Du(e){return t;function t(n,r,o){return!!(Ek(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function gk(){return!0}function Ek(e){return e!==null&&typeof e=="object"&&"type"in e}function yF(e){return e}const Lg=[],yk=!0,Ud=!1,Tk="skip";function Dg(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const a=Lu(o),u=r?-1:1;c(e,void 0,[])();function c(d,h,m){const g=d&&typeof d=="object"?d:{};if(typeof g.type=="string"){const T=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(T?"<"+T+">":""))+")"})}return b;function b(){let T=Lg,x,S,A;if((!t||a(d,h,m[m.length-1]||void 0))&&(T=bk(n(d,m)),T[0]===Ud))return T;if("children"in d&&d.children){const v=d;if(v.children&&T[0]!==Tk)for(S=(r?v.children.length:-1)+u,A=m.concat(v);S>-1&&S<v.children.length;){const I=v.children[S];if(x=c(I,S,A)(),x[0]===Ud)return x;S=typeof x[1]=="number"?x[1]:S+u}}return T}}}function bk(e){return Array.isArray(e)?e:typeof e=="number"?[yk,e]:e==null?Lg:[e]}function Mu(e,t,n,r){let o,a,u;typeof t=="function"&&typeof n!="function"?(a=void 0,u=t,o=n):(a=t,u=n,o=r),Dg(e,a,c,o);function c(d,h){const m=h[h.length-1],g=m?m.children.indexOf(d):void 0;return u(d,g,m)}}const Hd={}.hasOwnProperty,_k={};function xk(e,t){const n=t||_k,r=new Map,o=new Map,a=new Map,u=U(U({},ok),n.handlers),c={all:h,applyData:wk,definitionById:r,footnoteById:o,footnoteCounts:a,footnoteOrder:[],handlers:u,one:d,options:n,patch:Sk,wrap:Ck};return Mu(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?r:o,b=String(m.identifier).toUpperCase();g.has(b)||g.set(b,m)}}),c;function d(m,g){const b=m.type,T=c.handlers[b];if(Hd.call(c.handlers,b)&&T)return T(c,m,g);if(c.options.passThrough&&c.options.passThrough.includes(b)){if("children"in m){const S=m,{children:A}=S,v=Zt(S,["children"]),I=Ii(v);return I.children=c.all(m),I}return Ii(m)}return(c.options.unknownHandler||Ak)(c,m,g)}function h(m){const g=[];if("children"in m){const b=m.children;let T=-1;for(;++T<b.length;){const x=c.one(b[T],m);if(x){if(T&&b[T-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=Mg(x.value)),!Array.isArray(x)&&x.type==="element")){const S=x.children[0];S&&S.type==="text"&&(S.value=Mg(S.value))}Array.isArray(x)?g.push(...x):g.push(x)}}}return g}}function Sk(e,t){e.position&&(t.position=Y0(e))}function wk(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const u="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:u}}n.type==="element"&&a&&Object.assign(n.properties,Ii(a)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function Ak(e,t){const n=t.data||{},r="value"in t&&!(Hd.call(n,"hProperties")||Hd.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ck(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
33
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
34
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
35
|
+
`}),n}function Mg(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Fg(e,t){const n=xk(e,t),r=n.one(e,void 0),o=fk(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&a.children.push({type:"text",value:`
|
|
36
|
+
`},o),a}function vk(e,t){return e&&"run"in e?function(n,r){return et(this,null,function*(){const o=Fg(n,U({file:r},t));yield e.run(o,r)})}:function(n,r){return Fg(n,U({file:r},e||t))}}function Bg(e){if(e)throw e}var zd,Ug;function kk(){if(Ug)return zd;Ug=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},a=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!g)return!1;var b;for(b in h);return typeof b=="undefined"||e.call(h,b)},u=function(h,m){n&&m.name==="__proto__"?n(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},c=function(h,m){if(m==="__proto__")if(e.call(h,m)){if(r)return r(h,m).value}else return;return h[m]};return zd=function d(){var h,m,g,b,T,x,S=arguments[0],A=1,v=arguments.length,I=!1;for(typeof S=="boolean"&&(I=S,S=arguments[1]||{},A=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});A<v;++A)if(h=arguments[A],h!=null)for(m in h)g=c(S,m),b=c(h,m),S!==b&&(I&&b&&(a(b)||(T=o(b)))?(T?(T=!1,x=g&&o(g)?g:[]):x=g&&a(g)?g:{},u(S,{name:m,newValue:d(I,x,b)})):typeof b!="undefined"&&u(S,{name:m,newValue:b}));return S},zd}var Nk=kk();const jd=We(Nk);function $d(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ok(){const e=[],t={run:n,use:r};return t;function n(...o){let a=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);c(null,...o);function c(d,...h){const m=e[++a];let g=-1;if(d){u(d);return}for(;++g<o.length;)(h[g]===null||h[g]===void 0)&&(h[g]=o[g]);o=h,m?Ik(m,c)(...h):u(null,...h)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function Ik(e,t){let n;return r;function r(...u){const c=e.length>u.length;let d;c&&u.push(o);try{d=e.apply(this,u)}catch(h){const m=h;if(c&&n)throw m;return o(m)}c||(d&&d.then&&typeof d.then=="function"?d.then(a,o):d instanceof Error?o(d):a(d))}function o(u,...c){n||(n=!0,t(u,...c))}function a(u){o(null,u)}}const lr={basename:Pk,dirname:Rk,extname:Lk,join:Dk,sep:"/"};function Pk(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');js(e);let n=0,r=-1,o=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else r<0&&(a=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let u=-1,c=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(a){n=o+1;break}}else u<0&&(a=!0,u=o+1),c>-1&&(e.codePointAt(o)===t.codePointAt(c--)?c<0&&(r=o):(c=-1,r=u));return n===r?r=u:r<0&&(r=e.length),e.slice(n,r)}function Rk(e){if(js(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Lk(e){js(e);let t=e.length,n=-1,r=0,o=-1,a=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){r=t+1;break}continue}n<0&&(u=!0,n=t+1),c===46?o<0?o=t:a!==1&&(a=1):o>-1&&(a=-1)}return o<0||n<0||a===0||a===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function Dk(...e){let t=-1,n;for(;++t<e.length;)js(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Mk(n)}function Mk(e){js(e);const t=e.codePointAt(0)===47;let n=Fk(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Fk(e,t){let n="",r=0,o=-1,a=0,u=-1,c,d;for(;++u<=e.length;){if(u<e.length)c=e.codePointAt(u);else{if(c===47)break;c=47}if(c===47){if(!(o===u-1||a===1))if(o!==u-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",r=0):(n=n.slice(0,d),r=n.length-1-n.lastIndexOf("/")),o=u,a=0;continue}}else if(n.length>0){n="",r=0,o=u,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,u):n=e.slice(o+1,u),r=u-o-1;o=u,a=0}else c===46&&a>-1?a++:a=-1}return n}function js(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Bk={cwd:Uk};function Uk(){return"/"}function Vd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Hk(e){if(typeof e=="string")e=new URL(e);else if(!Vd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return zk(e)}function zk(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const Yd=["history","path","basename","stem","extname","dirname"];class Hg{constructor(t){let n;t?Vd(t)?n={path:t}:typeof t=="string"||jk(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Bk.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Yd.length;){const a=Yd[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let o;for(o in n)Yd.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?lr.basename(this.path):void 0}set basename(t){Wd(t,"basename"),qd(t,"basename"),this.path=lr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?lr.dirname(this.path):void 0}set dirname(t){zg(this.basename,"dirname"),this.path=lr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?lr.extname(this.path):void 0}set extname(t){if(qd(t,"extname"),zg(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=lr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Vd(t)&&(t=Hk(t)),Wd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?lr.basename(this.path,this.extname):void 0}set stem(t){Wd(t,"stem"),qd(t,"stem"),this.path=lr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new Yt(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function qd(e,t){if(e&&e.includes(lr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+lr.sep+"`")}function Wd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function zg(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function jk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $k=(function(e){const r=this.constructor.prototype,o=r[e],a=function(){return o.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),Vk={}.hasOwnProperty;class Gd extends $k{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=Ok()}copy(){const t=new Gd;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(jd(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Xd("data",this.frozen),this.namespace[t]=n,this):Vk.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Xd("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Fu(t),r=this.parser||this.Parser;return Kd("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Kd("process",this.parser||this.Parser),Qd("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(a,u){const c=Fu(t),d=r.parse(c);r.run(d,c,function(m,g,b){if(m||!g||!b)return h(m);const T=g,x=r.stringify(T,b);Wk(x)?b.value=x:b.result=x,h(m,b)});function h(m,g){m||!g?u(m):a?a(g):n(void 0,g)}}}processSync(t){let n=!1,r;return this.freeze(),Kd("processSync",this.parser||this.Parser),Qd("processSync",this.compiler||this.Compiler),this.process(t,o),$g("processSync","process",n),r;function o(a,u){n=!0,Bg(a),r=u}}run(t,n,r){jg(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(u,c){const d=Fu(n);o.run(t,d,h);function h(m,g,b){const T=g||t;m?c(m):u?u(T):r(void 0,T,b)}}}runSync(t,n){let r=!1,o;return this.run(t,n,a),$g("runSync","run",r),o;function a(u,c){Bg(u),o=c,r=!0}}stringify(t,n){this.freeze();const r=Fu(n),o=this.compiler||this.Compiler;return Qd("stringify",o),jg(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(Xd("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...g]=h;d(m,g)}else u(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function u(h){if(!("plugins"in h)&&!("settings"in h))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");c(h.plugins),h.settings&&(o.settings=jd(!0,o.settings,h.settings))}function c(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const g=h[m];a(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,m){let g=-1,b=-1;for(;++g<r.length;)if(r[g][0]===h){b=g;break}if(b===-1)r.push([h,...m]);else if(m.length>0){let[T,...x]=m;const S=r[b][1];$d(S)&&$d(T)&&(T=jd(!0,S,T)),r[b]=[h,T,...x]}}}}const Yk=new Gd().freeze();function Kd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Qd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Xd(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jg(e){if(!$d(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function $g(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Fu(e){return qk(e)?e:new Hg(e)}function qk(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Wk(e){return typeof e=="string"||Gk(e)}function Gk(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Kk="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Vg=[],Yg={allowDangerousHtml:!0},Qk=/^(https?|ircs?|mailto|xmpp)$/i,Xk=[{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:"className",id:"remove-classname"},{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 qg(e){const t=Jk(e),n=Zk(e);return eN(t.runSync(t.parse(n),n),e)}function Jk(e){const t=e.rehypePlugins||Vg,n=e.remarkPlugins||Vg,r=e.remarkRehypeOptions?U(U({},e.remarkRehypeOptions),Yg):Yg;return Yk().use(Rv).use(n).use(vk,r).use(t)}function Zk(e){const t=e.children||"",n=new Hg;return typeof t=="string"&&(n.value=t),n}function eN(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,a=t.disallowedElements,u=t.skipHtml,c=t.unwrapDisallowed,d=t.urlTransform||tN;for(const m of Xk)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+Kk+m.id,void 0);return Mu(e,h),AA(e,{Fragment:L.Fragment,components:o,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0});function h(m,g,b){if(m.type==="raw"&&b&&typeof g=="number")return u?b.children.splice(g,1):b.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let T;for(T in vd)if(Object.hasOwn(vd,T)&&Object.hasOwn(m.properties,T)){const x=m.properties[T],S=vd[T];(S===null||S.includes(m.tagName))&&(m.properties[T]=d(String(x||""),T,m))}}if(m.type==="element"){let T=n?!n.includes(m.tagName):a?a.includes(m.tagName):!1;if(!T&&r&&typeof g=="number"&&(T=!r(m,g,b)),T&&b&&typeof g=="number")return c&&m.children?b.children.splice(g,1,...m.children):b.children.splice(g,1),g}}}function tN(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||Qk.test(e.slice(0,t))?e:""}const Wg=/[#.]/g;function nN(e,t){const n=e||"",r={};let o=0,a,u;for(;o<n.length;){Wg.lastIndex=o;const c=Wg.exec(n),d=n.slice(o,c?c.index:n.length);d&&(a?a==="#"?r.id=d:Array.isArray(r.className)?r.className.push(d):r.className=[d]:u=d,o+=d.length),c&&(a=c[0],o++)}return{type:"element",tagName:u||t||"div",properties:r,children:[]}}function Gg(e,t,n){const r=n?sN(n):void 0;function o(a,u,...c){let d;if(a==null){d={type:"root",children:[]};const h=u;c.unshift(h)}else{d=nN(a,t);const h=d.tagName.toLowerCase(),m=r?r.get(h):void 0;if(d.tagName=m||h,rN(u))c.unshift(u);else for(const[g,b]of Object.entries(u))iN(e,d.properties,g,b)}for(const h of c)Jd(d.children,h);return d.type==="element"&&d.tagName==="template"&&(d.content={type:"root",children:d.children},d.children=[]),d}return o}function rN(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const o=t[r];if(o&&typeof o=="object"){if(!Array.isArray(o))return!0;const a=o;for(const u of a)if(typeof u!="number"&&typeof u!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function iN(e,t,n,r){const o=_d(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?o.spaceSeparated?a=B0(r):o.commaSeparated?a=A0(r):o.commaOrSpaceSeparated?a=B0(A0(r).join(" ")):a=Kg(o,o.property,r):Array.isArray(r)?a=[...r]:a=o.property==="style"?oN(r):String(r);if(Array.isArray(a)){const u=[];for(const c of a)u.push(Kg(o,o.property,c));a=u}o.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}function Jd(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Jd(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Jd(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Kg(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Ps(n)===Ps(t)))return!0}return n}function oN(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function sN(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const aN=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],uN=Gg(wu,"div"),lN=Gg(Eo,"g",aN);function cN(e){const t=String(e),n=[];return{toOffset:o,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let u=0;for(;;){let c=n[u];if(c===void 0){const d=Qg(t,n[u-1]);c=d===-1?t.length+1:d+1,n[u]=c}if(c>a)return{line:u+1,column:a-(u>0?n[u-1]:0)+1,offset:a};u++}}}function o(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const c=n[n.length-1],d=Qg(t,c),h=d===-1?t.length+1:d+1;if(c===h)break;n.push(h)}const u=(a.line>1?n[a.line-2]:0)+a.column-1;if(u<n[a.line-1])return u}}}function Qg(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
37
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Pi={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Xg={}.hasOwnProperty,dN=Object.prototype;function fN(e,t){const n=t||{};return Zd({file:n.file||void 0,location:!1,schema:n.space==="svg"?Eo:wu,verbose:n.verbose||!1},e)}function Zd(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Bu(e,r,n),n}case"#document":case"#document-fragment":{const r=t,o="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Jg(e,t.childNodes),data:{quirksMode:o}},e.file&&e.location){const a=String(e.file),u=cN(a),c=u.toPoint(0),d=u.toPoint(a.length);n.position={start:c,end:d}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Bu(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Bu(e,r,n),n}default:return n=hN(e,t),n}}function Jg(e,t){let n=-1;const r=[];for(;++n<t.length;){const o=Zd(e,t[n]);r.push(o)}return r}function hN(e,t){const n=e.schema;e.schema=t.namespaceURI===Pi.svg?Eo:wu;let r=-1;const o={};for(;++r<t.attrs.length;){const c=t.attrs[r],d=(c.prefix?c.prefix+":":"")+c.name;Xg.call(dN,d)||(o[d]=c.value)}const u=(e.schema.space==="svg"?lN:uN)(t.tagName,o,Jg(e,t.childNodes));if(Bu(e,t,u),u.tagName==="template"){const c=t,d=c.sourceCodeLocation,h=d&&d.startTag&&xo(d.startTag),m=d&&d.endTag&&xo(d.endTag),g=Zd(e,c.content);h&&m&&e.file&&(g.position={start:h.end,end:m.start}),u.content=g}return e.schema=n,u}function Bu(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=pN(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function pN(e,t,n){const r=xo(n);if(t.type==="element"){const o=t.children[t.children.length-1];if(r&&!n.endTag&&o&&o.position&&o.position.end&&(r.end=Object.assign({},o.position.end)),e.verbose){const a={};let u;if(n.attrs)for(u in n.attrs)Xg.call(n.attrs,u)&&(a[_d(e.schema,u).property]=xo(n.attrs[u]));n.startTag;const c=xo(n.startTag),d=n.endTag?xo(n.endTag):void 0,h={opening:c};d&&(h.closing=d),h.properties=a,t.data={position:h}}}return r}function xo(e){const t=Zg({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Zg({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Zg(e){return e.line&&e.column?e:void 0}class $s{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}$s.prototype.property={},$s.prototype.normal={},$s.prototype.space=null;function e1(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new $s(n,r,t)}function ef(e){return e.toLowerCase()}class Rn{constructor(t,n){this.property=t,this.attribute=n}}Rn.prototype.space=null,Rn.prototype.boolean=!1,Rn.prototype.booleanish=!1,Rn.prototype.overloadedBoolean=!1,Rn.prototype.number=!1,Rn.prototype.commaSeparated=!1,Rn.prototype.spaceSeparated=!1,Rn.prototype.commaOrSpaceSeparated=!1,Rn.prototype.mustUseProperty=!1,Rn.prototype.defined=!1;let mN=0;const je=Ri(),Ct=Ri(),t1=Ri(),pe=Ri(),ot=Ri(),So=Ri(),xn=Ri();function Ri(){return Za(2,++mN)}const tf=Object.freeze(Object.defineProperty({__proto__:null,boolean:je,booleanish:Ct,commaOrSpaceSeparated:xn,commaSeparated:So,number:pe,overloadedBoolean:t1,spaceSeparated:ot},Symbol.toStringTag,{value:"Module"})),nf=Object.keys(tf);class rf extends Rn{constructor(t,n,r,o){let a=-1;if(super(t,n),n1(this,"space",o),typeof r=="number")for(;++a<nf.length;){const u=nf[a];n1(this,nf[a],(r&tf[u])===tf[u])}}}rf.prototype.defined=!0;function n1(e,t,n){n&&(e[t]=n)}const gN={}.hasOwnProperty;function wo(e){const t={},n={};let r;for(r in e.properties)if(gN.call(e.properties,r)){const o=e.properties[r],a=new rf(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ef(r)]=r,n[ef(a.attribute)]=r}return new $s(t,n,e.space)}const r1=wo({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),i1=wo({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function o1(e,t){return t in e?e[t]:t}function s1(e,t){return o1(e,t.toLowerCase())}const a1=wo({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:s1,properties:{xmlns:null,xmlnsXLink:null}}),u1=wo({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ct,ariaAutoComplete:null,ariaBusy:Ct,ariaChecked:Ct,ariaColCount:pe,ariaColIndex:pe,ariaColSpan:pe,ariaControls:ot,ariaCurrent:null,ariaDescribedBy:ot,ariaDetails:null,ariaDisabled:Ct,ariaDropEffect:ot,ariaErrorMessage:null,ariaExpanded:Ct,ariaFlowTo:ot,ariaGrabbed:Ct,ariaHasPopup:null,ariaHidden:Ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ot,ariaLevel:pe,ariaLive:null,ariaModal:Ct,ariaMultiLine:Ct,ariaMultiSelectable:Ct,ariaOrientation:null,ariaOwns:ot,ariaPlaceholder:null,ariaPosInSet:pe,ariaPressed:Ct,ariaReadOnly:Ct,ariaRelevant:null,ariaRequired:Ct,ariaRoleDescription:ot,ariaRowCount:pe,ariaRowIndex:pe,ariaRowSpan:pe,ariaSelected:Ct,ariaSetSize:pe,ariaSort:null,ariaValueMax:pe,ariaValueMin:pe,ariaValueNow:pe,ariaValueText:null,role:null}}),EN=wo({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:s1,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:So,acceptCharset:ot,accessKey:ot,action:null,allow:null,allowFullScreen:je,allowPaymentRequest:je,allowUserMedia:je,alt:null,as:null,async:je,autoCapitalize:null,autoComplete:ot,autoFocus:je,autoPlay:je,blocking:ot,capture:null,charSet:null,checked:je,cite:null,className:ot,cols:pe,colSpan:null,content:null,contentEditable:Ct,controls:je,controlsList:ot,coords:pe|So,crossOrigin:null,data:null,dateTime:null,decoding:null,default:je,defer:je,dir:null,dirName:null,disabled:je,download:t1,draggable:Ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:je,formTarget:null,headers:ot,height:pe,hidden:je,high:pe,href:null,hrefLang:null,htmlFor:ot,httpEquiv:ot,id:null,imageSizes:null,imageSrcSet:null,inert:je,inputMode:null,integrity:null,is:null,isMap:je,itemId:null,itemProp:ot,itemRef:ot,itemScope:je,itemType:ot,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:je,low:pe,manifest:null,max:null,maxLength:pe,media:null,method:null,min:null,minLength:pe,multiple:je,muted:je,name:null,nonce:null,noModule:je,noValidate:je,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:je,optimum:pe,pattern:null,ping:ot,placeholder:null,playsInline:je,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:je,referrerPolicy:null,rel:ot,required:je,reversed:je,rows:pe,rowSpan:pe,sandbox:ot,scope:null,scoped:je,seamless:je,selected:je,shadowRootClonable:je,shadowRootDelegatesFocus:je,shadowRootMode:null,shape:null,size:pe,sizes:null,slot:null,span:pe,spellCheck:Ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pe,step:null,style:null,tabIndex:pe,target:null,title:null,translate:null,type:null,typeMustMatch:je,useMap:null,value:Ct,width:pe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ot,axis:null,background:null,bgColor:null,border:pe,borderColor:null,bottomMargin:pe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:je,declare:je,event:null,face:null,frame:null,frameBorder:null,hSpace:pe,leftMargin:pe,link:null,longDesc:null,lowSrc:null,marginHeight:pe,marginWidth:pe,noResize:je,noHref:je,noShade:je,noWrap:je,object:null,profile:null,prompt:null,rev:null,rightMargin:pe,rules:null,scheme:null,scrolling:Ct,standby:null,summary:null,text:null,topMargin:pe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:je,disableRemotePlayback:je,prefix:null,property:null,results:pe,security:null,unselectable:null}}),yN=wo({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:o1,properties:{about:xn,accentHeight:pe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pe,amplitude:pe,arabicForm:null,ascent:pe,attributeName:null,attributeType:null,azimuth:pe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pe,by:null,calcMode:null,capHeight:pe,className:ot,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:pe,diffuseConstant:pe,direction:null,display:null,dur:null,divisor:pe,dominantBaseline:null,download:je,dx:null,dy:null,edgeMode:null,editable:null,elevation:pe,enableBackground:null,end:null,event:null,exponent:pe,externalResourcesRequired:null,fill:null,fillOpacity:pe,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:So,g2:So,glyphName:So,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pe,horizOriginX:pe,horizOriginY:pe,id:null,ideographic:pe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pe,k:pe,k1:pe,k2:pe,k3:pe,k4:pe,kernelMatrix:xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pe,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:pe,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:pe,overlineThickness:pe,paintOrder:null,panose1:null,path:null,pathLength:pe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ot,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pe,pointsAtY:pe,pointsAtZ:pe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xn,rev:xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xn,requiredFeatures:xn,requiredFonts:xn,requiredFormats:xn,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:pe,specularExponent:pe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pe,strikethroughThickness:pe,string:null,stroke:null,strokeDashArray:xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pe,strokeOpacity:pe,strokeWidth:null,style:null,surfaceScale:pe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xn,tabIndex:pe,tableValues:null,target:null,targetX:pe,targetY:pe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pe,underlineThickness:pe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pe,values:null,vAlphabetic:pe,vMathematical:pe,vectorEffect:null,vHanging:pe,vIdeographic:pe,version:null,vertAdvY:pe,vertOriginX:pe,vertOriginY:pe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),TN=/^data[-\w.:]+$/i,l1=/-[a-z]/g,bN=/[A-Z]/g;function _N(e,t){const n=ef(t);let r=t,o=Rn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&TN.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(l1,SN);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!l1.test(a)){let u=a.replace(bN,xN);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}o=rf}return new o(r,t)}function xN(e){return"-"+e.toLowerCase()}function SN(e){return e.charAt(1).toUpperCase()}const wN=e1([i1,r1,a1,u1,EN],"html"),c1=e1([i1,r1,a1,u1,yN],"svg"),d1={}.hasOwnProperty;function f1(e,t){const n=t||{};function r(o,...a){let u=r.invalid;const c=r.handlers;if(o&&d1.call(o,e)){const d=String(o[e]);u=d1.call(c,d)?c[d]:r.unknown}if(u)return u.call(this,o,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const AN={},CN={}.hasOwnProperty,h1=f1("type",{handlers:{root:kN,element:RN,text:IN,comment:PN,doctype:ON}});function vN(e,t){const r=(t||AN).space;return h1(e,r==="svg"?c1:wN)}function kN(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=of(e.children,n,t),Ao(e,n),n}function NN(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=of(e.children,n,t),Ao(e,n),n}function ON(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Ao(e,t),t}function IN(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Ao(e,t),t}function PN(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Ao(e,t),t}function RN(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=c1);const o=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&CN.call(e.properties,a)){const d=LN(r,a,e.properties[a]);d&&o.push(d)}}const u=r.space,c={nodeName:e.tagName,tagName:e.tagName,attrs:o,namespaceURI:Pi[u],childNodes:[],parentNode:null};return c.childNodes=of(e.children,c,r),Ao(e,c),e.tagName==="template"&&e.content&&(c.content=NN(e.content,r)),c}function LN(e,t,n){const r=_N(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?C0(n):U0(n));const o={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=o.name.indexOf(":");a<0?o.prefix="":(o.name=o.name.slice(a+1),o.prefix=r.attribute.slice(0,a)),o.namespace=Pi[r.space]}return o}function of(e,t,n){let r=-1;const o=[];if(e)for(;++r<e.length;){const a=h1(e[r],n);a.parentNode=t,o.push(a)}return o}function Ao(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const DN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],MN=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ft="�";var C;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(C||(C={}));const fn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function p1(e){return e>=55296&&e<=57343}function FN(e){return e>=56320&&e<=57343}function BN(e,t){return(e-55296)*1024+9216+t}function m1(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function g1(e){return e>=64976&&e<=65007||MN.has(e)}var K;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(K||(K={}));const UN=65536;class HN{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=UN,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:o,offset:a}=this,u=o+n,c=a+n;return{code:t,startLine:r,endLine:r,startCol:u,endCol:u,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(FN(n))return this.pos++,this._addGap(),BN(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,C.EOF;return this._err(K.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;const r=this.html.charCodeAt(n);return r===C.CARRIAGE_RETURN?C.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,C.EOF;let t=this.html.charCodeAt(this.pos);return t===C.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,C.LINE_FEED):t===C.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,p1(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===C.LINE_FEED||t===C.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){m1(t)?this._err(K.controlCharacterInInputStream):g1(t)&&this._err(K.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var Ve;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(Ve||(Ve={}));function E1(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const zN=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),jN=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function $N(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=jN.get(e))!==null&&t!==void 0?t:e}var Rt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Rt||(Rt={}));const VN=32;var Yr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Yr||(Yr={}));function sf(e){return e>=Rt.ZERO&&e<=Rt.NINE}function YN(e){return e>=Rt.UPPER_A&&e<=Rt.UPPER_F||e>=Rt.LOWER_A&&e<=Rt.LOWER_F}function qN(e){return e>=Rt.UPPER_A&&e<=Rt.UPPER_Z||e>=Rt.LOWER_A&&e<=Rt.LOWER_Z||sf(e)}function WN(e){return e===Rt.EQUALS||qN(e)}var Lt;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Lt||(Lt={}));var Cr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Cr||(Cr={}));class GN{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Lt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Cr.Strict}startEntity(t){this.decodeMode=t,this.state=Lt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Lt.EntityStart:return t.charCodeAt(n)===Rt.NUM?(this.state=Lt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Lt.NamedEntity,this.stateNamedEntity(t,n));case Lt.NumericStart:return this.stateNumericStart(t,n);case Lt.NumericDecimal:return this.stateNumericDecimal(t,n);case Lt.NumericHex:return this.stateNumericHex(t,n);case Lt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|VN)===Rt.LOWER_X?(this.state=Lt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Lt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,o){if(n!==r){const a=r-n;this.result=this.result*Math.pow(o,a)+Number.parseInt(t.substr(n,a),o),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(sf(o)||YN(o))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const o=t.charCodeAt(n);if(sf(o))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Rt.SEMI)this.consumed+=1;else if(this.decodeMode===Cr.Strict)return 0;return this.emitCodePoint($N(this.result),this.consumed),this.errors&&(t!==Rt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let o=r[this.treeIndex],a=(o&Yr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=KN(r,o,this.treeIndex+Math.max(1,a),u),this.treeIndex<0)return this.result===0||this.decodeMode===Cr.Attribute&&(a===0||WN(u))?0:this.emitNotTerminatedNamedEntity();if(o=r[this.treeIndex],a=(o&Yr.VALUE_LENGTH)>>14,a!==0){if(u===Rt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Cr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,o=(r[n]&Yr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Yr.VALUE_LENGTH:o[t+1],r),n===3&&this.emitCodePoint(o[t+2],r),r}end(){var t;switch(this.state){case Lt.NamedEntity:return this.result!==0&&(this.decodeMode!==Cr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Lt.NumericDecimal:return this.emitNumericEntity(0,2);case Lt.NumericHex:return this.emitNumericEntity(0,3);case Lt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Lt.EntityStart:return 0}}}function KN(e,t,n,r){const o=(t&Yr.BRANCH_LENGTH)>>7,a=t&Yr.JUMP_TABLE;if(o===0)return a!==0&&r===a?n:-1;if(a){const d=r-a;return d<0||d>=o?-1:e[n+d]-1}let u=n,c=u+o-1;for(;u<=c;){const d=u+c>>>1,h=e[d];if(h<r)u=d+1;else if(h>r)c=d-1;else return e[d+o]}return-1}var ie;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ie||(ie={}));var Li;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Li||(Li={}));var Ln;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ln||(Ln={}));var V;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(V||(V={}));var p;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(p||(p={}));const QN=new Map([[V.A,p.A],[V.ADDRESS,p.ADDRESS],[V.ANNOTATION_XML,p.ANNOTATION_XML],[V.APPLET,p.APPLET],[V.AREA,p.AREA],[V.ARTICLE,p.ARTICLE],[V.ASIDE,p.ASIDE],[V.B,p.B],[V.BASE,p.BASE],[V.BASEFONT,p.BASEFONT],[V.BGSOUND,p.BGSOUND],[V.BIG,p.BIG],[V.BLOCKQUOTE,p.BLOCKQUOTE],[V.BODY,p.BODY],[V.BR,p.BR],[V.BUTTON,p.BUTTON],[V.CAPTION,p.CAPTION],[V.CENTER,p.CENTER],[V.CODE,p.CODE],[V.COL,p.COL],[V.COLGROUP,p.COLGROUP],[V.DD,p.DD],[V.DESC,p.DESC],[V.DETAILS,p.DETAILS],[V.DIALOG,p.DIALOG],[V.DIR,p.DIR],[V.DIV,p.DIV],[V.DL,p.DL],[V.DT,p.DT],[V.EM,p.EM],[V.EMBED,p.EMBED],[V.FIELDSET,p.FIELDSET],[V.FIGCAPTION,p.FIGCAPTION],[V.FIGURE,p.FIGURE],[V.FONT,p.FONT],[V.FOOTER,p.FOOTER],[V.FOREIGN_OBJECT,p.FOREIGN_OBJECT],[V.FORM,p.FORM],[V.FRAME,p.FRAME],[V.FRAMESET,p.FRAMESET],[V.H1,p.H1],[V.H2,p.H2],[V.H3,p.H3],[V.H4,p.H4],[V.H5,p.H5],[V.H6,p.H6],[V.HEAD,p.HEAD],[V.HEADER,p.HEADER],[V.HGROUP,p.HGROUP],[V.HR,p.HR],[V.HTML,p.HTML],[V.I,p.I],[V.IMG,p.IMG],[V.IMAGE,p.IMAGE],[V.INPUT,p.INPUT],[V.IFRAME,p.IFRAME],[V.KEYGEN,p.KEYGEN],[V.LABEL,p.LABEL],[V.LI,p.LI],[V.LINK,p.LINK],[V.LISTING,p.LISTING],[V.MAIN,p.MAIN],[V.MALIGNMARK,p.MALIGNMARK],[V.MARQUEE,p.MARQUEE],[V.MATH,p.MATH],[V.MENU,p.MENU],[V.META,p.META],[V.MGLYPH,p.MGLYPH],[V.MI,p.MI],[V.MO,p.MO],[V.MN,p.MN],[V.MS,p.MS],[V.MTEXT,p.MTEXT],[V.NAV,p.NAV],[V.NOBR,p.NOBR],[V.NOFRAMES,p.NOFRAMES],[V.NOEMBED,p.NOEMBED],[V.NOSCRIPT,p.NOSCRIPT],[V.OBJECT,p.OBJECT],[V.OL,p.OL],[V.OPTGROUP,p.OPTGROUP],[V.OPTION,p.OPTION],[V.P,p.P],[V.PARAM,p.PARAM],[V.PLAINTEXT,p.PLAINTEXT],[V.PRE,p.PRE],[V.RB,p.RB],[V.RP,p.RP],[V.RT,p.RT],[V.RTC,p.RTC],[V.RUBY,p.RUBY],[V.S,p.S],[V.SCRIPT,p.SCRIPT],[V.SEARCH,p.SEARCH],[V.SECTION,p.SECTION],[V.SELECT,p.SELECT],[V.SOURCE,p.SOURCE],[V.SMALL,p.SMALL],[V.SPAN,p.SPAN],[V.STRIKE,p.STRIKE],[V.STRONG,p.STRONG],[V.STYLE,p.STYLE],[V.SUB,p.SUB],[V.SUMMARY,p.SUMMARY],[V.SUP,p.SUP],[V.TABLE,p.TABLE],[V.TBODY,p.TBODY],[V.TEMPLATE,p.TEMPLATE],[V.TEXTAREA,p.TEXTAREA],[V.TFOOT,p.TFOOT],[V.TD,p.TD],[V.TH,p.TH],[V.THEAD,p.THEAD],[V.TITLE,p.TITLE],[V.TR,p.TR],[V.TRACK,p.TRACK],[V.TT,p.TT],[V.U,p.U],[V.UL,p.UL],[V.SVG,p.SVG],[V.VAR,p.VAR],[V.WBR,p.WBR],[V.XMP,p.XMP]]);function Co(e){var t;return(t=QN.get(e))!==null&&t!==void 0?t:p.UNKNOWN}const ae=p,XN={[ie.HTML]:new Set([ae.ADDRESS,ae.APPLET,ae.AREA,ae.ARTICLE,ae.ASIDE,ae.BASE,ae.BASEFONT,ae.BGSOUND,ae.BLOCKQUOTE,ae.BODY,ae.BR,ae.BUTTON,ae.CAPTION,ae.CENTER,ae.COL,ae.COLGROUP,ae.DD,ae.DETAILS,ae.DIR,ae.DIV,ae.DL,ae.DT,ae.EMBED,ae.FIELDSET,ae.FIGCAPTION,ae.FIGURE,ae.FOOTER,ae.FORM,ae.FRAME,ae.FRAMESET,ae.H1,ae.H2,ae.H3,ae.H4,ae.H5,ae.H6,ae.HEAD,ae.HEADER,ae.HGROUP,ae.HR,ae.HTML,ae.IFRAME,ae.IMG,ae.INPUT,ae.LI,ae.LINK,ae.LISTING,ae.MAIN,ae.MARQUEE,ae.MENU,ae.META,ae.NAV,ae.NOEMBED,ae.NOFRAMES,ae.NOSCRIPT,ae.OBJECT,ae.OL,ae.P,ae.PARAM,ae.PLAINTEXT,ae.PRE,ae.SCRIPT,ae.SECTION,ae.SELECT,ae.SOURCE,ae.STYLE,ae.SUMMARY,ae.TABLE,ae.TBODY,ae.TD,ae.TEMPLATE,ae.TEXTAREA,ae.TFOOT,ae.TH,ae.THEAD,ae.TITLE,ae.TR,ae.TRACK,ae.UL,ae.WBR,ae.XMP]),[ie.MATHML]:new Set([ae.MI,ae.MO,ae.MN,ae.MS,ae.MTEXT,ae.ANNOTATION_XML]),[ie.SVG]:new Set([ae.TITLE,ae.FOREIGN_OBJECT,ae.DESC]),[ie.XLINK]:new Set,[ie.XML]:new Set,[ie.XMLNS]:new Set},af=new Set([ae.H1,ae.H2,ae.H3,ae.H4,ae.H5,ae.H6]);V.STYLE,V.SCRIPT,V.XMP,V.IFRAME,V.NOEMBED,V.NOFRAMES,V.PLAINTEXT;var O;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(O||(O={}));const _t={DATA:O.DATA,RCDATA:O.RCDATA,RAWTEXT:O.RAWTEXT,SCRIPT_DATA:O.SCRIPT_DATA,PLAINTEXT:O.PLAINTEXT,CDATA_SECTION:O.CDATA_SECTION};function JN(e){return e>=C.DIGIT_0&&e<=C.DIGIT_9}function Vs(e){return e>=C.LATIN_CAPITAL_A&&e<=C.LATIN_CAPITAL_Z}function ZN(e){return e>=C.LATIN_SMALL_A&&e<=C.LATIN_SMALL_Z}function qr(e){return ZN(e)||Vs(e)}function y1(e){return qr(e)||JN(e)}function Uu(e){return e+32}function T1(e){return e===C.SPACE||e===C.LINE_FEED||e===C.TABULATION||e===C.FORM_FEED}function b1(e){return T1(e)||e===C.SOLIDUS||e===C.GREATER_THAN_SIGN}function e3(e){return e===C.NULL?K.nullCharacterReference:e>1114111?K.characterReferenceOutsideUnicodeRange:p1(e)?K.surrogateCharacterReference:g1(e)?K.noncharacterCharacterReference:m1(e)||e===C.CARRIAGE_RETURN?K.controlCharacterReference:null}class t3{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=O.DATA,this.returnState=O.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new HN(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new GN(zN,(r,o)=>{this.preprocessor.pos=this.entityStartPos+o-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(K.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(K.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const o=e3(r);o&&this._err(o,1)}}:void 0)}_err(t,n=0){var r,o;(o=(r=this.handler).onParseError)===null||o===void 0||o.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:Ve.START_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ve.END_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:Ve.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:Ve.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(E1(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const o=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);o[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(K.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Co(t.tagName),t.type===Ve.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(K.endTagWithAttributes),t.selfClosing&&this._err(K.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case Ve.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Ve.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Ve.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:Ve.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=T1(t)?Ve.WHITESPACE_CHARACTER:t===C.NULL?Ve.NULL_CHARACTER:Ve.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Ve.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=O.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Cr.Attribute:Cr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===O.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===O.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===O.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case O.DATA:{this._stateData(t);break}case O.RCDATA:{this._stateRcdata(t);break}case O.RAWTEXT:{this._stateRawtext(t);break}case O.SCRIPT_DATA:{this._stateScriptData(t);break}case O.PLAINTEXT:{this._statePlaintext(t);break}case O.TAG_OPEN:{this._stateTagOpen(t);break}case O.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case O.TAG_NAME:{this._stateTagName(t);break}case O.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case O.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case O.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case O.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case O.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case O.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case O.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case O.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case O.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case O.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case O.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case O.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case O.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case O.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case O.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case O.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case O.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case O.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case O.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case O.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case O.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case O.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case O.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case O.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case O.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case O.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case O.BOGUS_COMMENT:{this._stateBogusComment(t);break}case O.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case O.COMMENT_START:{this._stateCommentStart(t);break}case O.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case O.COMMENT:{this._stateComment(t);break}case O.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case O.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case O.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case O.COMMENT_END:{this._stateCommentEnd(t);break}case O.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case O.DOCTYPE:{this._stateDoctype(t);break}case O.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case O.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case O.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case O.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case O.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case O.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case O.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case O.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case O.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case O.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case O.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case O.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case O.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case O.CDATA_SECTION:{this._stateCdataSection(t);break}case O.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case O.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case O.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case O.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.TAG_OPEN;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitCodePoint(t);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case C.AMPERSAND:{this._startCharacterReference();break}case C.LESS_THAN_SIGN:{this.state=O.RCDATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(ft);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.RAWTEXT_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(ft);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(ft);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(ft);break}case C.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(qr(t))this._createStartTagToken(),this.state=O.TAG_NAME,this._stateTagName(t);else switch(t){case C.EXCLAMATION_MARK:{this.state=O.MARKUP_DECLARATION_OPEN;break}case C.SOLIDUS:{this.state=O.END_TAG_OPEN;break}case C.QUESTION_MARK:{this._err(K.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=O.BOGUS_COMMENT,this._stateBogusComment(t);break}case C.EOF:{this._err(K.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(K.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=O.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(qr(t))this._createEndTagToken(),this.state=O.TAG_NAME,this._stateTagName(t);else switch(t){case C.GREATER_THAN_SIGN:{this._err(K.missingEndTagName),this.state=O.DATA;break}case C.EOF:{this._err(K.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(K.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=O.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=O.BEFORE_ATTRIBUTE_NAME;break}case C.SOLIDUS:{this.state=O.SELF_CLOSING_START_TAG;break}case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentTagToken();break}case C.NULL:{this._err(K.unexpectedNullCharacter),n.tagName+=ft;break}case C.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Vs(t)?Uu(t):t)}}_stateRcdataLessThanSign(t){t===C.SOLIDUS?this.state=O.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=O.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){qr(t)?(this.state=O.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=O.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=O.BEFORE_ATTRIBUTE_NAME,!1;case C.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=O.SELF_CLOSING_START_TAG,!1;case C.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=O.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=O.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===C.SOLIDUS?this.state=O.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=O.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){qr(t)?(this.state=O.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=O.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=O.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case C.SOLIDUS:{this.state=O.SCRIPT_DATA_END_TAG_OPEN;break}case C.EXCLAMATION_MARK:{this.state=O.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=O.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){qr(t)?(this.state=O.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=O.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=O.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===C.HYPHEN_MINUS?(this.state=O.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=O.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===C.HYPHEN_MINUS?(this.state=O.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=O.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case C.HYPHEN_MINUS:{this.state=O.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(ft);break}case C.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case C.HYPHEN_MINUS:{this.state=O.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_ESCAPED,this._emitChars(ft);break}case C.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case C.HYPHEN_MINUS:{this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case C.GREATER_THAN_SIGN:{this.state=O.SCRIPT_DATA,this._emitChars(">");break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_ESCAPED,this._emitChars(ft);break}case C.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===C.SOLIDUS?this.state=O.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:qr(t)?(this._emitChars("<"),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){qr(t)?(this.state=O.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(fn.SCRIPT,!1)&&b1(this.preprocessor.peek(fn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<fn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=O.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case C.HYPHEN_MINUS:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.NULL:{this._err(K.unexpectedNullCharacter),this._emitChars(ft);break}case C.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case C.HYPHEN_MINUS:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ft);break}case C.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case C.HYPHEN_MINUS:{this._emitChars("-");break}case C.LESS_THAN_SIGN:{this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case C.GREATER_THAN_SIGN:{this.state=O.SCRIPT_DATA,this._emitChars(">");break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ft);break}case C.EOF:{this._err(K.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===C.SOLIDUS?(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(fn.SCRIPT,!1)&&b1(this.preprocessor.peek(fn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<fn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=O.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=O.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.SOLIDUS:case C.GREATER_THAN_SIGN:case C.EOF:{this.state=O.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case C.EQUALS_SIGN:{this._err(K.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=O.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=O.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:case C.SOLIDUS:case C.GREATER_THAN_SIGN:case C.EOF:{this._leaveAttrName(),this.state=O.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case C.EQUALS_SIGN:{this._leaveAttrName(),this.state=O.BEFORE_ATTRIBUTE_VALUE;break}case C.QUOTATION_MARK:case C.APOSTROPHE:case C.LESS_THAN_SIGN:{this._err(K.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.currentAttr.name+=ft;break}default:this.currentAttr.name+=String.fromCodePoint(Vs(t)?Uu(t):t)}}_stateAfterAttributeName(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.SOLIDUS:{this.state=O.SELF_CLOSING_START_TAG;break}case C.EQUALS_SIGN:{this.state=O.BEFORE_ATTRIBUTE_VALUE;break}case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=O.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{this.state=O.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this.state=O.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(K.missingAttributeValue),this.state=O.DATA,this.emitCurrentTagToken();break}default:this.state=O.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case C.QUOTATION_MARK:{this.state=O.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.currentAttr.value+=ft;break}case C.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case C.APOSTROPHE:{this.state=O.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.currentAttr.value+=ft;break}case C.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this._leaveAttrValue(),this.state=O.BEFORE_ATTRIBUTE_NAME;break}case C.AMPERSAND:{this._startCharacterReference();break}case C.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=O.DATA,this.emitCurrentTagToken();break}case C.NULL:{this._err(K.unexpectedNullCharacter),this.currentAttr.value+=ft;break}case C.QUOTATION_MARK:case C.APOSTROPHE:case C.LESS_THAN_SIGN:case C.EQUALS_SIGN:case C.GRAVE_ACCENT:{this._err(K.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case C.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this._leaveAttrValue(),this.state=O.BEFORE_ATTRIBUTE_NAME;break}case C.SOLIDUS:{this._leaveAttrValue(),this.state=O.SELF_CLOSING_START_TAG;break}case C.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=O.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:this._err(K.missingWhitespaceBetweenAttributes),this.state=O.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case C.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=O.DATA,this.emitCurrentTagToken();break}case C.EOF:{this._err(K.eofInTag),this._emitEOFToken();break}default:this._err(K.unexpectedSolidusInTag),this.state=O.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentComment(n);break}case C.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case C.NULL:{this._err(K.unexpectedNullCharacter),n.data+=ft;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(fn.DASH_DASH,!0)?(this._createCommentToken(fn.DASH_DASH.length+1),this.state=O.COMMENT_START):this._consumeSequenceIfMatch(fn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(fn.DOCTYPE.length+1),this.state=O.DOCTYPE):this._consumeSequenceIfMatch(fn.CDATA_START,!0)?this.inForeignNode?this.state=O.CDATA_SECTION:(this._err(K.cdataInHtmlContent),this._createCommentToken(fn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=O.BOGUS_COMMENT):this._ensureHibernation()||(this._err(K.incorrectlyOpenedComment),this._createCommentToken(2),this.state=O.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case C.HYPHEN_MINUS:{this.state=O.COMMENT_START_DASH;break}case C.GREATER_THAN_SIGN:{this._err(K.abruptClosingOfEmptyComment),this.state=O.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=O.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{this.state=O.COMMENT_END;break}case C.GREATER_THAN_SIGN:{this._err(K.abruptClosingOfEmptyComment),this.state=O.DATA,this.emitCurrentComment(n);break}case C.EOF:{this._err(K.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=O.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{this.state=O.COMMENT_END_DASH;break}case C.LESS_THAN_SIGN:{n.data+="<",this.state=O.COMMENT_LESS_THAN_SIGN;break}case C.NULL:{this._err(K.unexpectedNullCharacter),n.data+=ft;break}case C.EOF:{this._err(K.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case C.EXCLAMATION_MARK:{n.data+="!",this.state=O.COMMENT_LESS_THAN_SIGN_BANG;break}case C.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=O.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===C.HYPHEN_MINUS?this.state=O.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=O.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===C.HYPHEN_MINUS?this.state=O.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=O.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==C.GREATER_THAN_SIGN&&t!==C.EOF&&this._err(K.nestedComment),this.state=O.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{this.state=O.COMMENT_END;break}case C.EOF:{this._err(K.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=O.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentComment(n);break}case C.EXCLAMATION_MARK:{this.state=O.COMMENT_END_BANG;break}case C.HYPHEN_MINUS:{n.data+="-";break}case C.EOF:{this._err(K.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=O.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case C.HYPHEN_MINUS:{n.data+="--!",this.state=O.COMMENT_END_DASH;break}case C.GREATER_THAN_SIGN:{this._err(K.incorrectlyClosedComment),this.state=O.DATA,this.emitCurrentComment(n);break}case C.EOF:{this._err(K.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=O.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=O.BEFORE_DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this.state=O.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case C.EOF:{this._err(K.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(K.missingWhitespaceBeforeDoctypeName),this.state=O.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Vs(t))this._createDoctypeToken(String.fromCharCode(Uu(t))),this.state=O.DOCTYPE_NAME;else switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.NULL:{this._err(K.unexpectedNullCharacter),this._createDoctypeToken(ft),this.state=O.DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this._err(K.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.EOF:{this._err(K.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=O.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=O.AFTER_DOCTYPE_NAME;break}case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.NULL:{this._err(K.unexpectedNullCharacter),n.name+=ft;break}case C.EOF:{this._err(K.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Vs(t)?Uu(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(K.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(fn.PUBLIC,!1)?this.state=O.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(fn.SYSTEM,!1)?this.state=O.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(K.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=O.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.QUOTATION_MARK:{this._err(K.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=O.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(K.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=O.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(K.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(K.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(K.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{n.publicId="",this.state=O.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.publicId="",this.state=O.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(K.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(K.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(K.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case C.QUOTATION_MARK:{this.state=O.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.NULL:{this._err(K.unexpectedNullCharacter),n.publicId+=ft;break}case C.GREATER_THAN_SIGN:{this._err(K.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.EOF:{this._err(K.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case C.APOSTROPHE:{this.state=O.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case C.NULL:{this._err(K.unexpectedNullCharacter),n.publicId+=ft;break}case C.GREATER_THAN_SIGN:{this._err(K.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.EOF:{this._err(K.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=O.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case C.GREATER_THAN_SIGN:{this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.QUOTATION_MARK:{this._err(K.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(K.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.EOF:{this._err(K.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(K.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.QUOTATION_MARK:{n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.EOF:{this._err(K.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(K.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:{this.state=O.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.QUOTATION_MARK:{this._err(K.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{this._err(K.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(K.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(K.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(K.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.QUOTATION_MARK:{n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case C.APOSTROPHE:{n.systemId="",this.state=O.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case C.GREATER_THAN_SIGN:{this._err(K.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.DATA,this.emitCurrentDoctype(n);break}case C.EOF:{this._err(K.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(K.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case C.QUOTATION_MARK:{this.state=O.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.NULL:{this._err(K.unexpectedNullCharacter),n.systemId+=ft;break}case C.GREATER_THAN_SIGN:{this._err(K.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.EOF:{this._err(K.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case C.APOSTROPHE:{this.state=O.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case C.NULL:{this._err(K.unexpectedNullCharacter),n.systemId+=ft;break}case C.GREATER_THAN_SIGN:{this._err(K.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.EOF:{this._err(K.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case C.SPACE:case C.LINE_FEED:case C.TABULATION:case C.FORM_FEED:break;case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.EOF:{this._err(K.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(K.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=O.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case C.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=O.DATA;break}case C.NULL:{this._err(K.unexpectedNullCharacter);break}case C.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case C.RIGHT_SQUARE_BRACKET:{this.state=O.CDATA_SECTION_BRACKET;break}case C.EOF:{this._err(K.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===C.RIGHT_SQUARE_BRACKET?this.state=O.CDATA_SECTION_END:(this._emitChars("]"),this.state=O.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case C.GREATER_THAN_SIGN:{this.state=O.DATA;break}case C.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=O.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(C.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&y1(this.preprocessor.peek(1))?O.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){y1(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===C.SEMICOLON&&this._err(K.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const _1=new Set([p.DD,p.DT,p.LI,p.OPTGROUP,p.OPTION,p.P,p.RB,p.RP,p.RT,p.RTC]),x1=new Set([..._1,p.CAPTION,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]),Hu=new Set([p.APPLET,p.CAPTION,p.HTML,p.MARQUEE,p.OBJECT,p.TABLE,p.TD,p.TEMPLATE,p.TH]),n3=new Set([...Hu,p.OL,p.UL]),r3=new Set([...Hu,p.BUTTON]),S1=new Set([p.ANNOTATION_XML,p.MI,p.MN,p.MO,p.MS,p.MTEXT]),w1=new Set([p.DESC,p.FOREIGN_OBJECT,p.TITLE]),i3=new Set([p.TR,p.TEMPLATE,p.HTML]),o3=new Set([p.TBODY,p.TFOOT,p.THEAD,p.TEMPLATE,p.HTML]),s3=new Set([p.TABLE,p.TEMPLATE,p.HTML]),a3=new Set([p.TD,p.TH]);class u3{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=p.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===p.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ie.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const o=this._indexOf(t)+1;this.items.splice(o,0,n),this.tagIDs.splice(o,0,r),this.stackTop++,o===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,o===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==ie.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(af,ie.HTML)}popUntilTableCellPopped(){this.popUntilPopped(a3,ie.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(s3,ie.HTML)}clearBackToTableBodyContext(){this.clearBackTo(o3,ie.HTML)}clearBackToTableRowContext(){this.clearBackTo(i3,ie.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===p.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===p.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const o=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case ie.HTML:{if(o===t)return!0;if(n.has(o))return!1;break}case ie.SVG:{if(w1.has(o))return!1;break}case ie.MATHML:{if(S1.has(o))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Hu)}hasInListItemScope(t){return this.hasInDynamicScope(t,n3)}hasInButtonScope(t){return this.hasInDynamicScope(t,r3)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ie.HTML:{if(af.has(n))return!0;if(Hu.has(n))return!1;break}case ie.SVG:{if(w1.has(n))return!1;break}case ie.MATHML:{if(S1.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ie.HTML)switch(this.tagIDs[n]){case t:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ie.HTML)switch(this.tagIDs[t]){case p.TBODY:case p.THEAD:case p.TFOOT:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===ie.HTML)switch(this.tagIDs[n]){case t:return!0;case p.OPTION:case p.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&_1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&x1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&x1.has(this.currentTagId);)this.pop()}}const uf=3;var cr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(cr||(cr={}));const A1={type:cr.Marker};class l3{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],o=n.length,a=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const d=this.entries[c];if(d.type===cr.Marker)break;const{element:h}=d;if(this.treeAdapter.getTagName(h)===a&&this.treeAdapter.getNamespaceURI(h)===u){const m=this.treeAdapter.getAttrList(h);m.length===o&&r.push({idx:c,attrs:m})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<uf)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<uf)return;const o=new Map(n.map(u=>[u.name,u.value]));let a=0;for(let u=0;u<r.length;u++){const c=r[u];c.attrs.every(d=>o.get(d.name)===d.value)&&(a+=1,a>=uf&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(A1)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:cr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:cr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(A1);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===cr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===cr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===cr.Element&&n.element===t)}}const Wr={createDocument(){return{nodeName:"#document",mode:Ln.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const o=e.childNodes.find(a=>a.nodeName==="#documentType");if(o)o.name=t,o.publicId=n,o.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Wr.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Wr.isTextNode(n)){n.value+=t;return}}Wr.appendChild(e,Wr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Wr.isTextNode(r)?r.value+=t:Wr.insertBefore(e,Wr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation=U(U({},e.sourceCodeLocation),t)}},C1="html",c3="about:legacy-compat",d3="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",v1=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],f3=[...v1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],h3=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),k1=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],p3=[...k1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function N1(e,t){return t.some(n=>e.startsWith(n))}function m3(e){return e.name===C1&&e.publicId===null&&(e.systemId===null||e.systemId===c3)}function g3(e){if(e.name!==C1)return Ln.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===d3)return Ln.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),h3.has(n))return Ln.QUIRKS;let r=t===null?f3:v1;if(N1(n,r))return Ln.QUIRKS;if(r=t===null?k1:p3,N1(n,r))return Ln.LIMITED_QUIRKS}return Ln.NO_QUIRKS}const O1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},E3="definitionurl",y3="definitionURL",T3=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),b3=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ie.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ie.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ie.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ie.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ie.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ie.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ie.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ie.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ie.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ie.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ie.XMLNS}]]),_3=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),x3=new Set([p.B,p.BIG,p.BLOCKQUOTE,p.BODY,p.BR,p.CENTER,p.CODE,p.DD,p.DIV,p.DL,p.DT,p.EM,p.EMBED,p.H1,p.H2,p.H3,p.H4,p.H5,p.H6,p.HEAD,p.HR,p.I,p.IMG,p.LI,p.LISTING,p.MENU,p.META,p.NOBR,p.OL,p.P,p.PRE,p.RUBY,p.S,p.SMALL,p.SPAN,p.STRONG,p.STRIKE,p.SUB,p.SUP,p.TABLE,p.TT,p.U,p.UL,p.VAR]);function S3(e){const t=e.tagID;return t===p.FONT&&e.attrs.some(({name:r})=>r===Li.COLOR||r===Li.SIZE||r===Li.FACE)||x3.has(t)}function I1(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===E3){e.attrs[t].name=y3;break}}function P1(e){for(let t=0;t<e.attrs.length;t++){const n=T3.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function lf(e){for(let t=0;t<e.attrs.length;t++){const n=b3.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function w3(e){const t=_3.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Co(e.tagName))}function A3(e,t){return t===ie.MATHML&&(e===p.MI||e===p.MO||e===p.MN||e===p.MS||e===p.MTEXT)}function C3(e,t,n){if(t===ie.MATHML&&e===p.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Li.ENCODING){const o=n[r].value.toLowerCase();return o===O1.TEXT_HTML||o===O1.APPLICATION_XML}}return t===ie.SVG&&(e===p.FOREIGN_OBJECT||e===p.DESC||e===p.TITLE)}function v3(e,t,n,r){return(!r||r===ie.HTML)&&C3(e,t,n)||(!r||r===ie.MATHML)&&A3(e,t)}const k3="hidden",N3=8,O3=3;var R;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(R||(R={}));const I3={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},R1=new Set([p.TABLE,p.TBODY,p.TFOOT,p.THEAD,p.TR]),L1={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Wr,onParseError:null};class D1{constructor(t,n,r=null,o=null){this.fragmentContext=r,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=R.INITIAL,this.originalInsertionMode=R.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=U(U({},L1),t),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n!=null?n:this.treeAdapter.createDocument(),this.tokenizer=new t3(this.options,this),this.activeFormattingElements=new l3(this.treeAdapter),this.fragmentContextID=r?Co(this.treeAdapter.getTagName(r)):p.UNKNOWN,this._setContextModes(r!=null?r:this.document,this.fragmentContextID),this.openElements=new u3(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r=U(U({},L1),n);t!=null||(t=r.treeAdapter.createElement(V.TEMPLATE,ie.HTML,[]));const o=r.treeAdapter.createElement("documentmock",ie.HTML,[]),a=new this(r,o,t);return a.fragmentContextID===p.TEMPLATE&&a.tmplInsertionModeStack.unshift(R.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var o;if(!this.onParseError)return;const a=(o=t.location)!==null&&o!==void 0?o:I3,u={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(u)}onItemPush(t,n,r){var o,a;(a=(o=this.treeAdapter).onItemPush)===null||a===void 0||a.call(o,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,o;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(o=(r=this.treeAdapter).onItemPop)===null||o===void 0||o.call(r,t,this.openElements.current),n){let a,u;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,u=this.fragmentContextID):{current:a,currentTagId:u}=this.openElements,this._setContextModes(a,u)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ie.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,ie.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=R.TEXT}switchToPlaintextParsing(){this.insertionMode=R.TEXT,this.originalInsertionMode=R.IN_BODY,this.tokenizer.state=_t.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===V.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ie.HTML))switch(this.fragmentContextID){case p.TITLE:case p.TEXTAREA:{this.tokenizer.state=_t.RCDATA;break}case p.STYLE:case p.XMP:case p.IFRAME:case p.NOEMBED:case p.NOFRAMES:case p.NOSCRIPT:{this.tokenizer.state=_t.RAWTEXT;break}case p.SCRIPT:{this.tokenizer.state=_t.SCRIPT_DATA;break}case p.PLAINTEXT:{this.tokenizer.state=_t.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",o=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,o),t.location){const u=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&re(U({},n),{startTag:n});this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r!=null?r:this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,ie.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ie.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(V.HTML,ie.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,p.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const o=this.treeAdapter.getChildNodes(n),a=r?o.lastIndexOf(r):o.length,u=o[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:d,endCol:h,endOffset:m}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:d,endCol:h,endOffset:m})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,o=this.treeAdapter.getTagName(t),a=n.type===Ve.END_TAG&&o===n.tagName?{endTag:U({},r),endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===p.SVG&&this.treeAdapter.getTagName(n)===V.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===ie.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===p.MGLYPH||t.tagID===p.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,ie.HTML)}_processToken(t){switch(t.type){case Ve.CHARACTER:{this.onCharacter(t);break}case Ve.NULL_CHARACTER:{this.onNullCharacter(t);break}case Ve.COMMENT:{this.onComment(t);break}case Ve.DOCTYPE:{this.onDoctype(t);break}case Ve.START_TAG:{this._processStartTag(t);break}case Ve.END_TAG:{this.onEndTag(t);break}case Ve.EOF:{this.onEof(t);break}case Ve.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const o=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return v3(t,o,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(o=>o.type===cr.Marker||this.openElements.contains(o.element)),r=n===-1?t-1:n-1;for(let o=r;o>=0;o--){const a=this.activeFormattingElements.entries[o];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=R.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(p.P),this.openElements.popUntilTagNamePopped(p.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case p.TR:{this.insertionMode=R.IN_ROW;return}case p.TBODY:case p.THEAD:case p.TFOOT:{this.insertionMode=R.IN_TABLE_BODY;return}case p.CAPTION:{this.insertionMode=R.IN_CAPTION;return}case p.COLGROUP:{this.insertionMode=R.IN_COLUMN_GROUP;return}case p.TABLE:{this.insertionMode=R.IN_TABLE;return}case p.BODY:{this.insertionMode=R.IN_BODY;return}case p.FRAMESET:{this.insertionMode=R.IN_FRAMESET;return}case p.SELECT:{this._resetInsertionModeForSelect(t);return}case p.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case p.HTML:{this.insertionMode=this.headElement?R.AFTER_HEAD:R.BEFORE_HEAD;return}case p.TD:case p.TH:{if(t>0){this.insertionMode=R.IN_CELL;return}break}case p.HEAD:{if(t>0){this.insertionMode=R.IN_HEAD;return}break}}this.insertionMode=R.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===p.TEMPLATE)break;if(r===p.TABLE){this.insertionMode=R.IN_SELECT_IN_TABLE;return}}this.insertionMode=R.IN_SELECT}_isElementCausesFosterParenting(t){return R1.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case p.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===ie.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case p.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return XN[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){aI(this,t);return}switch(this.insertionMode){case R.INITIAL:{Ys(this,t);break}case R.BEFORE_HTML:{qs(this,t);break}case R.BEFORE_HEAD:{Ws(this,t);break}case R.IN_HEAD:{Gs(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Ks(this,t);break}case R.AFTER_HEAD:{Qs(this,t);break}case R.IN_BODY:case R.IN_CAPTION:case R.IN_CELL:case R.IN_TEMPLATE:{F1(this,t);break}case R.TEXT:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{hf(this,t);break}case R.IN_TABLE_TEXT:{Y1(this,t);break}case R.IN_COLUMN_GROUP:{$u(this,t);break}case R.AFTER_BODY:{qu(this,t);break}case R.AFTER_AFTER_BODY:{Wu(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){sI(this,t);return}switch(this.insertionMode){case R.INITIAL:{Ys(this,t);break}case R.BEFORE_HTML:{qs(this,t);break}case R.BEFORE_HEAD:{Ws(this,t);break}case R.IN_HEAD:{Gs(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Ks(this,t);break}case R.AFTER_HEAD:{Qs(this,t);break}case R.TEXT:{this._insertCharacters(t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{hf(this,t);break}case R.IN_COLUMN_GROUP:{$u(this,t);break}case R.AFTER_BODY:{qu(this,t);break}case R.AFTER_AFTER_BODY:{Wu(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){df(this,t);return}switch(this.insertionMode){case R.INITIAL:case R.BEFORE_HTML:case R.BEFORE_HEAD:case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:case R.IN_BODY:case R.IN_TABLE:case R.IN_CAPTION:case R.IN_COLUMN_GROUP:case R.IN_TABLE_BODY:case R.IN_ROW:case R.IN_CELL:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:case R.IN_TEMPLATE:case R.IN_FRAMESET:case R.AFTER_FRAMESET:{df(this,t);break}case R.IN_TABLE_TEXT:{Zs(this,t);break}case R.AFTER_BODY:{B3(this,t);break}case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{U3(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case R.INITIAL:{H3(this,t);break}case R.BEFORE_HEAD:case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:{this._err(t,K.misplacedDoctype);break}case R.IN_TABLE_TEXT:{Zs(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,K.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?uI(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case R.INITIAL:{Ys(this,t);break}case R.BEFORE_HTML:{z3(this,t);break}case R.BEFORE_HEAD:{$3(this,t);break}case R.IN_HEAD:{Wn(this,t);break}case R.IN_HEAD_NO_SCRIPT:{q3(this,t);break}case R.AFTER_HEAD:{G3(this,t);break}case R.IN_BODY:{Wt(this,t);break}case R.IN_TABLE:{vo(this,t);break}case R.IN_TABLE_TEXT:{Zs(this,t);break}case R.IN_CAPTION:{VO(this,t);break}case R.IN_COLUMN_GROUP:{pf(this,t);break}case R.IN_TABLE_BODY:{Vu(this,t);break}case R.IN_ROW:{Yu(this,t);break}case R.IN_CELL:{WO(this,t);break}case R.IN_SELECT:{G1(this,t);break}case R.IN_SELECT_IN_TABLE:{KO(this,t);break}case R.IN_TEMPLATE:{XO(this,t);break}case R.AFTER_BODY:{ZO(this,t);break}case R.IN_FRAMESET:{eI(this,t);break}case R.AFTER_FRAMESET:{nI(this,t);break}case R.AFTER_AFTER_BODY:{iI(this,t);break}case R.AFTER_AFTER_FRAMESET:{oI(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?lI(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case R.INITIAL:{Ys(this,t);break}case R.BEFORE_HTML:{j3(this,t);break}case R.BEFORE_HEAD:{V3(this,t);break}case R.IN_HEAD:{Y3(this,t);break}case R.IN_HEAD_NO_SCRIPT:{W3(this,t);break}case R.AFTER_HEAD:{K3(this,t);break}case R.IN_BODY:{ju(this,t);break}case R.TEXT:{LO(this,t);break}case R.IN_TABLE:{Xs(this,t);break}case R.IN_TABLE_TEXT:{Zs(this,t);break}case R.IN_CAPTION:{YO(this,t);break}case R.IN_COLUMN_GROUP:{qO(this,t);break}case R.IN_TABLE_BODY:{mf(this,t);break}case R.IN_ROW:{W1(this,t);break}case R.IN_CELL:{GO(this,t);break}case R.IN_SELECT:{K1(this,t);break}case R.IN_SELECT_IN_TABLE:{QO(this,t);break}case R.IN_TEMPLATE:{JO(this,t);break}case R.AFTER_BODY:{X1(this,t);break}case R.IN_FRAMESET:{tI(this,t);break}case R.AFTER_FRAMESET:{rI(this,t);break}case R.AFTER_AFTER_BODY:{Wu(this,t);break}}}onEof(t){switch(this.insertionMode){case R.INITIAL:{Ys(this,t);break}case R.BEFORE_HTML:{qs(this,t);break}case R.BEFORE_HEAD:{Ws(this,t);break}case R.IN_HEAD:{Gs(this,t);break}case R.IN_HEAD_NO_SCRIPT:{Ks(this,t);break}case R.AFTER_HEAD:{Qs(this,t);break}case R.IN_BODY:case R.IN_TABLE:case R.IN_CAPTION:case R.IN_COLUMN_GROUP:case R.IN_TABLE_BODY:case R.IN_ROW:case R.IN_CELL:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:{$1(this,t);break}case R.TEXT:{DO(this,t);break}case R.IN_TABLE_TEXT:{Zs(this,t);break}case R.IN_TEMPLATE:{Q1(this,t);break}case R.AFTER_BODY:case R.IN_FRAMESET:case R.AFTER_FRAMESET:case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{ff(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===C.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:case R.TEXT:case R.IN_COLUMN_GROUP:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:case R.IN_FRAMESET:case R.AFTER_FRAMESET:{this._insertCharacters(t);break}case R.IN_BODY:case R.IN_CAPTION:case R.IN_CELL:case R.IN_TEMPLATE:case R.AFTER_BODY:case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{M1(this,t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{hf(this,t);break}case R.IN_TABLE_TEXT:{V1(this,t);break}}}}function P3(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):j1(e,t),n}function R3(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const o=e.openElements.items[r];if(o===t.element)break;e._isSpecialElement(o,e.openElements.tagIDs[r])&&(n=o)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function L3(e,t,n){let r=t,o=e.openElements.getCommonAncestor(t);for(let a=0,u=o;u!==n;a++,u=o){o=e.openElements.getCommonAncestor(u);const c=e.activeFormattingElements.getElementEntry(u),d=c&&a>=O3;!c||d?(d&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(u)):(u=D3(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(u,r),r=u)}return r}function D3(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function M3(e,t,n){const r=e.treeAdapter.getTagName(t),o=Co(r);if(e._isElementCausesFosterParenting(o))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);o===p.TEMPLATE&&a===ie.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function F3(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:o}=n,a=e.treeAdapter.createElement(o.tagName,r,o.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,o),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,o.tagID)}function cf(e,t){for(let n=0;n<N3;n++){const r=P3(e,t);if(!r)break;const o=R3(e,r);if(!o)break;e.activeFormattingElements.bookmark=r;const a=L3(e,o,r.element),u=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),u&&M3(e,u,a),F3(e,o,r)}}function df(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function B3(e,t){e._appendCommentNode(t,e.openElements.items[0])}function U3(e,t){e._appendCommentNode(t,e.document)}function ff(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],o=e.treeAdapter.getNodeSourceCodeLocation(r);if(o&&!o.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(a);u&&!u.endTag&&e._setEndLocation(a,t)}}}}function H3(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ln.QUIRKS:g3(t);m3(t)||e._err(t,K.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=R.BEFORE_HTML}function Ys(e,t){e._err(t,K.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ln.QUIRKS),e.insertionMode=R.BEFORE_HTML,e._processToken(t)}function z3(e,t){t.tagID===p.HTML?(e._insertElement(t,ie.HTML),e.insertionMode=R.BEFORE_HEAD):qs(e,t)}function j3(e,t){const n=t.tagID;(n===p.HTML||n===p.HEAD||n===p.BODY||n===p.BR)&&qs(e,t)}function qs(e,t){e._insertFakeRootElement(),e.insertionMode=R.BEFORE_HEAD,e._processToken(t)}function $3(e,t){switch(t.tagID){case p.HTML:{Wt(e,t);break}case p.HEAD:{e._insertElement(t,ie.HTML),e.headElement=e.openElements.current,e.insertionMode=R.IN_HEAD;break}default:Ws(e,t)}}function V3(e,t){const n=t.tagID;n===p.HEAD||n===p.BODY||n===p.HTML||n===p.BR?Ws(e,t):e._err(t,K.endTagWithoutMatchingOpenElement)}function Ws(e,t){e._insertFakeElement(V.HEAD,p.HEAD),e.headElement=e.openElements.current,e.insertionMode=R.IN_HEAD,e._processToken(t)}function Wn(e,t){switch(t.tagID){case p.HTML:{Wt(e,t);break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:{e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case p.TITLE:{e._switchToTextParsing(t,_t.RCDATA);break}case p.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,_t.RAWTEXT):(e._insertElement(t,ie.HTML),e.insertionMode=R.IN_HEAD_NO_SCRIPT);break}case p.NOFRAMES:case p.STYLE:{e._switchToTextParsing(t,_t.RAWTEXT);break}case p.SCRIPT:{e._switchToTextParsing(t,_t.SCRIPT_DATA);break}case p.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=R.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(R.IN_TEMPLATE);break}case p.HEAD:{e._err(t,K.misplacedStartTagForHeadElement);break}default:Gs(e,t)}}function Y3(e,t){switch(t.tagID){case p.HEAD:{e.openElements.pop(),e.insertionMode=R.AFTER_HEAD;break}case p.BODY:case p.BR:case p.HTML:{Gs(e,t);break}case p.TEMPLATE:{Di(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function Di(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==p.TEMPLATE&&e._err(t,K.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,K.endTagWithoutMatchingOpenElement)}function Gs(e,t){e.openElements.pop(),e.insertionMode=R.AFTER_HEAD,e._processToken(t)}function q3(e,t){switch(t.tagID){case p.HTML:{Wt(e,t);break}case p.BASEFONT:case p.BGSOUND:case p.HEAD:case p.LINK:case p.META:case p.NOFRAMES:case p.STYLE:{Wn(e,t);break}case p.NOSCRIPT:{e._err(t,K.nestedNoscriptInHead);break}default:Ks(e,t)}}function W3(e,t){switch(t.tagID){case p.NOSCRIPT:{e.openElements.pop(),e.insertionMode=R.IN_HEAD;break}case p.BR:{Ks(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function Ks(e,t){const n=t.type===Ve.EOF?K.openElementsLeftAfterEof:K.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=R.IN_HEAD,e._processToken(t)}function G3(e,t){switch(t.tagID){case p.HTML:{Wt(e,t);break}case p.BODY:{e._insertElement(t,ie.HTML),e.framesetOk=!1,e.insertionMode=R.IN_BODY;break}case p.FRAMESET:{e._insertElement(t,ie.HTML),e.insertionMode=R.IN_FRAMESET;break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{e._err(t,K.abandonedHeadElementChild),e.openElements.push(e.headElement,p.HEAD),Wn(e,t),e.openElements.remove(e.headElement);break}case p.HEAD:{e._err(t,K.misplacedStartTagForHeadElement);break}default:Qs(e,t)}}function K3(e,t){switch(t.tagID){case p.BODY:case p.HTML:case p.BR:{Qs(e,t);break}case p.TEMPLATE:{Di(e,t);break}default:e._err(t,K.endTagWithoutMatchingOpenElement)}}function Qs(e,t){e._insertFakeElement(V.BODY,p.BODY),e.insertionMode=R.IN_BODY,zu(e,t)}function zu(e,t){switch(t.type){case Ve.CHARACTER:{F1(e,t);break}case Ve.WHITESPACE_CHARACTER:{M1(e,t);break}case Ve.COMMENT:{df(e,t);break}case Ve.START_TAG:{Wt(e,t);break}case Ve.END_TAG:{ju(e,t);break}case Ve.EOF:{$1(e,t);break}}}function M1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function F1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Q3(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function X3(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function J3(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ie.HTML),e.insertionMode=R.IN_FRAMESET)}function Z3(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ie.HTML)}function eO(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&af.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ie.HTML)}function tO(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ie.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function nO(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ie.HTML),n||(e.formElement=e.openElements.current))}function rO(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const o=e.openElements.tagIDs[r];if(n===p.LI&&o===p.LI||(n===p.DD||n===p.DT)&&(o===p.DD||o===p.DT)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.popUntilTagNamePopped(o);break}if(o!==p.ADDRESS&&o!==p.DIV&&o!==p.P&&e._isSpecialElement(e.openElements.items[r],o))break}e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ie.HTML)}function iO(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ie.HTML),e.tokenizer.state=_t.PLAINTEXT}function oO(e,t){e.openElements.hasInScope(p.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.framesetOk=!1}function sO(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(V.A);n&&(cf(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function aO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function uO(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(p.NOBR)&&(cf(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ie.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function lO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function cO(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ln.QUIRKS&&e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,ie.HTML),e.framesetOk=!1,e.insertionMode=R.IN_TABLE}function B1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ie.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function U1(e){const t=E1(e,Li.TYPE);return t!=null&&t.toLowerCase()===k3}function dO(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ie.HTML),U1(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function fO(e,t){e._appendElement(t,ie.HTML),t.ackSelfClosing=!0}function hO(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._appendElement(t,ie.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function pO(e,t){t.tagName=V.IMG,t.tagID=p.IMG,B1(e,t)}function mO(e,t){e._insertElement(t,ie.HTML),e.skipNextNewLine=!0,e.tokenizer.state=_t.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=R.TEXT}function gO(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,_t.RAWTEXT)}function EO(e,t){e.framesetOk=!1,e._switchToTextParsing(t,_t.RAWTEXT)}function H1(e,t){e._switchToTextParsing(t,_t.RAWTEXT)}function yO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===R.IN_TABLE||e.insertionMode===R.IN_CAPTION||e.insertionMode===R.IN_TABLE_BODY||e.insertionMode===R.IN_ROW||e.insertionMode===R.IN_CELL?R.IN_SELECT_IN_TABLE:R.IN_SELECT}function TO(e,t){e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML)}function bO(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ie.HTML)}function _O(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(p.RTC),e._insertElement(t,ie.HTML)}function xO(e,t){e._reconstructActiveFormattingElements(),I1(t),lf(t),t.selfClosing?e._appendElement(t,ie.MATHML):e._insertElement(t,ie.MATHML),t.ackSelfClosing=!0}function SO(e,t){e._reconstructActiveFormattingElements(),P1(t),lf(t),t.selfClosing?e._appendElement(t,ie.SVG):e._insertElement(t,ie.SVG),t.ackSelfClosing=!0}function z1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ie.HTML)}function Wt(e,t){switch(t.tagID){case p.I:case p.S:case p.B:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.SMALL:case p.STRIKE:case p.STRONG:{aO(e,t);break}case p.A:{sO(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{eO(e,t);break}case p.P:case p.DL:case p.OL:case p.UL:case p.DIV:case p.DIR:case p.NAV:case p.MAIN:case p.MENU:case p.ASIDE:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.DETAILS:case p.ADDRESS:case p.ARTICLE:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{Z3(e,t);break}case p.LI:case p.DD:case p.DT:{rO(e,t);break}case p.BR:case p.IMG:case p.WBR:case p.AREA:case p.EMBED:case p.KEYGEN:{B1(e,t);break}case p.HR:{hO(e,t);break}case p.RB:case p.RTC:{bO(e,t);break}case p.RT:case p.RP:{_O(e,t);break}case p.PRE:case p.LISTING:{tO(e,t);break}case p.XMP:{gO(e,t);break}case p.SVG:{SO(e,t);break}case p.HTML:{Q3(e,t);break}case p.BASE:case p.LINK:case p.META:case p.STYLE:case p.TITLE:case p.SCRIPT:case p.BGSOUND:case p.BASEFONT:case p.TEMPLATE:{Wn(e,t);break}case p.BODY:{X3(e,t);break}case p.FORM:{nO(e,t);break}case p.NOBR:{uO(e,t);break}case p.MATH:{xO(e,t);break}case p.TABLE:{cO(e,t);break}case p.INPUT:{dO(e,t);break}case p.PARAM:case p.TRACK:case p.SOURCE:{fO(e,t);break}case p.IMAGE:{pO(e,t);break}case p.BUTTON:{oO(e,t);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{lO(e,t);break}case p.IFRAME:{EO(e,t);break}case p.SELECT:{yO(e,t);break}case p.OPTION:case p.OPTGROUP:{TO(e,t);break}case p.NOEMBED:case p.NOFRAMES:{H1(e,t);break}case p.FRAMESET:{J3(e,t);break}case p.TEXTAREA:{mO(e,t);break}case p.NOSCRIPT:{e.options.scriptingEnabled?H1(e,t):z1(e,t);break}case p.PLAINTEXT:{iO(e,t);break}case p.COL:case p.TH:case p.TD:case p.TR:case p.HEAD:case p.FRAME:case p.TBODY:case p.TFOOT:case p.THEAD:case p.CAPTION:case p.COLGROUP:break;default:z1(e,t)}}function wO(e,t){if(e.openElements.hasInScope(p.BODY)&&(e.insertionMode=R.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function AO(e,t){e.openElements.hasInScope(p.BODY)&&(e.insertionMode=R.AFTER_BODY,X1(e,t))}function CO(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function vO(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(p.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(p.FORM):n&&e.openElements.remove(n))}function kO(e){e.openElements.hasInButtonScope(p.P)||e._insertFakeElement(V.P,p.P),e._closePElement()}function NO(e){e.openElements.hasInListItemScope(p.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(p.LI),e.openElements.popUntilTagNamePopped(p.LI))}function OO(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function IO(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function PO(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function RO(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(V.BR,p.BR),e.openElements.pop(),e.framesetOk=!1}function j1(e,t){const n=t.tagName,r=t.tagID;for(let o=e.openElements.stackTop;o>0;o--){const a=e.openElements.items[o],u=e.openElements.tagIDs[o];if(r===u&&(r!==p.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=o&&e.openElements.shortenToLength(o);break}if(e._isSpecialElement(a,u))break}}function ju(e,t){switch(t.tagID){case p.A:case p.B:case p.I:case p.S:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.NOBR:case p.SMALL:case p.STRIKE:case p.STRONG:{cf(e,t);break}case p.P:{kO(e);break}case p.DL:case p.UL:case p.OL:case p.DIR:case p.DIV:case p.NAV:case p.PRE:case p.MAIN:case p.MENU:case p.ASIDE:case p.BUTTON:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.ADDRESS:case p.ARTICLE:case p.DETAILS:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.LISTING:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{CO(e,t);break}case p.LI:{NO(e);break}case p.DD:case p.DT:{OO(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{IO(e);break}case p.BR:{RO(e);break}case p.BODY:{wO(e,t);break}case p.HTML:{AO(e,t);break}case p.FORM:{vO(e);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{PO(e,t);break}case p.TEMPLATE:{Di(e,t);break}default:j1(e,t)}}function $1(e,t){e.tmplInsertionModeStack.length>0?Q1(e,t):ff(e,t)}function LO(e,t){var n;t.tagID===p.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function DO(e,t){e._err(t,K.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function hf(e,t){if(e.openElements.currentTagId!==void 0&&R1.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=R.IN_TABLE_TEXT,t.type){case Ve.CHARACTER:{Y1(e,t);break}case Ve.WHITESPACE_CHARACTER:{V1(e,t);break}}else Js(e,t)}function MO(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ie.HTML),e.insertionMode=R.IN_CAPTION}function FO(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ie.HTML),e.insertionMode=R.IN_COLUMN_GROUP}function BO(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(V.COLGROUP,p.COLGROUP),e.insertionMode=R.IN_COLUMN_GROUP,pf(e,t)}function UO(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ie.HTML),e.insertionMode=R.IN_TABLE_BODY}function HO(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(V.TBODY,p.TBODY),e.insertionMode=R.IN_TABLE_BODY,Vu(e,t)}function zO(e,t){e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function jO(e,t){U1(t)?e._appendElement(t,ie.HTML):Js(e,t),t.ackSelfClosing=!0}function $O(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ie.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function vo(e,t){switch(t.tagID){case p.TD:case p.TH:case p.TR:{HO(e,t);break}case p.STYLE:case p.SCRIPT:case p.TEMPLATE:{Wn(e,t);break}case p.COL:{BO(e,t);break}case p.FORM:{$O(e,t);break}case p.TABLE:{zO(e,t);break}case p.TBODY:case p.TFOOT:case p.THEAD:{UO(e,t);break}case p.INPUT:{jO(e,t);break}case p.CAPTION:{MO(e,t);break}case p.COLGROUP:{FO(e,t);break}default:Js(e,t)}}function Xs(e,t){switch(t.tagID){case p.TABLE:{e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode());break}case p.TEMPLATE:{Di(e,t);break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:Js(e,t)}}function Js(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,zu(e,t),e.fosterParentingEnabled=n}function V1(e,t){e.pendingCharacterTokens.push(t)}function Y1(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Zs(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Js(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const q1=new Set([p.CAPTION,p.COL,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]);function VO(e,t){const n=t.tagID;q1.has(n)?e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=R.IN_TABLE,vo(e,t)):Wt(e,t)}function YO(e,t){const n=t.tagID;switch(n){case p.CAPTION:case p.TABLE:{e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=R.IN_TABLE,n===p.TABLE&&Xs(e,t));break}case p.BODY:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:ju(e,t)}}function pf(e,t){switch(t.tagID){case p.HTML:{Wt(e,t);break}case p.COL:{e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case p.TEMPLATE:{Wn(e,t);break}default:$u(e,t)}}function qO(e,t){switch(t.tagID){case p.COLGROUP:{e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=R.IN_TABLE);break}case p.TEMPLATE:{Di(e,t);break}case p.COL:break;default:$u(e,t)}}function $u(e,t){e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=R.IN_TABLE,e._processToken(t))}function Vu(e,t){switch(t.tagID){case p.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ie.HTML),e.insertionMode=R.IN_ROW;break}case p.TH:case p.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(V.TR,p.TR),e.insertionMode=R.IN_ROW,Yu(e,t);break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE,vo(e,t));break}default:vo(e,t)}}function mf(e,t){const n=t.tagID;switch(t.tagID){case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE);break}case p.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE,Xs(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:case p.TR:break;default:Xs(e,t)}}function Yu(e,t){switch(t.tagID){case p.TH:case p.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ie.HTML),e.insertionMode=R.IN_CELL,e.activeFormattingElements.insertMarker();break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE_BODY,Vu(e,t));break}default:vo(e,t)}}function W1(e,t){switch(t.tagID){case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE_BODY);break}case p.TABLE:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE_BODY,mf(e,t));break}case p.TBODY:case p.TFOOT:case p.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(p.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE_BODY,mf(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:break;default:Xs(e,t)}}function WO(e,t){const n=t.tagID;q1.has(n)?(e.openElements.hasInTableScope(p.TD)||e.openElements.hasInTableScope(p.TH))&&(e._closeTableCell(),Yu(e,t)):Wt(e,t)}function GO(e,t){const n=t.tagID;switch(n){case p.TD:case p.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=R.IN_ROW);break}case p.TABLE:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),W1(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:break;default:ju(e,t)}}function G1(e,t){switch(t.tagID){case p.HTML:{Wt(e,t);break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._insertElement(t,ie.HTML);break}case p.OPTGROUP:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ie.HTML);break}case p.HR:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case p.INPUT:case p.KEYGEN:case p.TEXTAREA:case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),t.tagID!==p.SELECT&&e._processStartTag(t));break}case p.SCRIPT:case p.TEMPLATE:{Wn(e,t);break}}}function K1(e,t){switch(t.tagID){case p.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===p.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===p.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop();break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop();break}case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode());break}case p.TEMPLATE:{Di(e,t);break}}}function KO(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e._processStartTag(t)):G1(e,t)}function QO(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e.onEndTag(t)):K1(e,t)}function XO(e,t){switch(t.tagID){case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{Wn(e,t);break}case p.CAPTION:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.tmplInsertionModeStack[0]=R.IN_TABLE,e.insertionMode=R.IN_TABLE,vo(e,t);break}case p.COL:{e.tmplInsertionModeStack[0]=R.IN_COLUMN_GROUP,e.insertionMode=R.IN_COLUMN_GROUP,pf(e,t);break}case p.TR:{e.tmplInsertionModeStack[0]=R.IN_TABLE_BODY,e.insertionMode=R.IN_TABLE_BODY,Vu(e,t);break}case p.TD:case p.TH:{e.tmplInsertionModeStack[0]=R.IN_ROW,e.insertionMode=R.IN_ROW,Yu(e,t);break}default:e.tmplInsertionModeStack[0]=R.IN_BODY,e.insertionMode=R.IN_BODY,Wt(e,t)}}function JO(e,t){t.tagID===p.TEMPLATE&&Di(e,t)}function Q1(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):ff(e,t)}function ZO(e,t){t.tagID===p.HTML?Wt(e,t):qu(e,t)}function X1(e,t){var n;if(t.tagID===p.HTML){if(e.fragmentContext||(e.insertionMode=R.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===p.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else qu(e,t)}function qu(e,t){e.insertionMode=R.IN_BODY,zu(e,t)}function eI(e,t){switch(t.tagID){case p.HTML:{Wt(e,t);break}case p.FRAMESET:{e._insertElement(t,ie.HTML);break}case p.FRAME:{e._appendElement(t,ie.HTML),t.ackSelfClosing=!0;break}case p.NOFRAMES:{Wn(e,t);break}}}function tI(e,t){t.tagID===p.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==p.FRAMESET&&(e.insertionMode=R.AFTER_FRAMESET))}function nI(e,t){switch(t.tagID){case p.HTML:{Wt(e,t);break}case p.NOFRAMES:{Wn(e,t);break}}}function rI(e,t){t.tagID===p.HTML&&(e.insertionMode=R.AFTER_AFTER_FRAMESET)}function iI(e,t){t.tagID===p.HTML?Wt(e,t):Wu(e,t)}function Wu(e,t){e.insertionMode=R.IN_BODY,zu(e,t)}function oI(e,t){switch(t.tagID){case p.HTML:{Wt(e,t);break}case p.NOFRAMES:{Wn(e,t);break}}}function sI(e,t){t.chars=ft,e._insertCharacters(t)}function aI(e,t){e._insertCharacters(t),e.framesetOk=!1}function J1(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ie.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function uI(e,t){if(S3(t))J1(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ie.MATHML?I1(t):r===ie.SVG&&(w3(t),P1(t)),lf(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function lI(e,t){if(t.tagID===p.P||t.tagID===p.BR){J1(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ie.HTML){e._endTagOutsideForeignContent(t);break}const o=e.treeAdapter.getTagName(r);if(o.toLowerCase()===t.tagName){t.tagName=o,e.openElements.shortenToLength(n);break}}}V.AREA,V.BASE,V.BASEFONT,V.BGSOUND,V.BR,V.COL,V.EMBED,V.FRAME,V.HR,V.IMG,V.INPUT,V.KEYGEN,V.LINK,V.META,V.PARAM,V.SOURCE,V.TRACK,V.WBR;const cI=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,dI=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Z1={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function eE(e,t){const n=_I(e),r=f1("type",{handlers:{root:fI,element:hI,text:pI,comment:nE,doctype:mI,raw:EI},unknown:yI}),o={parser:n?new D1(Z1):D1.getFragmentParser(void 0,Z1),handle(c){r(c,o)},stitches:!1,options:t||{}};r(e,o),ko(o,ur());const a=n?o.parser.document:o.parser.getFragment(),u=fN(a,{file:o.options.file});return o.stitches&&Mu(u,"comment",function(c,d,h){const m=c;if(m.value.stitch&&h&&d!==void 0){const g=h.children;return g[d]=m.value.stitch,d}}),u.type==="root"&&u.children.length===1&&u.children[0].type===e.type?u.children[0]:u}function tE(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function fI(e,t){tE(e.children,t)}function hI(e,t){TI(e,t),tE(e.children,t),bI(e,t)}function pI(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Ve.CHARACTER,chars:e.value,location:ea(e)};ko(t,ur(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function mI(e,t){const n={type:Ve.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ea(e)};ko(t,ur(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function gI(e,t){t.stitches=!0;const n=xI(e);if("children"in e&&"children"in n){const r=eE({type:"root",children:e.children},t.options);n.children=r.children}nE({type:"comment",value:{stitch:n}},t)}function nE(e,t){const n=e.value,r={type:Ve.COMMENT,data:n,location:ea(e)};ko(t,ur(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function EI(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,rE(t,ur(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(cI,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function yI(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))gI(n,t);else{let r="";throw dI.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function ko(e,t){rE(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=_t.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function rE(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function TI(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===_t.PLAINTEXT)return;ko(t,ur(e));const r=t.parser.openElements.current;let o="namespaceURI"in r?r.namespaceURI:Pi.html;o===Pi.html&&n==="svg"&&(o=Pi.svg);const a=vN(re(U({},e),{children:[]}),{space:o===Pi.svg?"svg":"html"}),u={type:Ve.START_TAG,tagName:n,tagID:Co(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:ea(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function bI(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&DN.includes(n)||t.parser.tokenizer.state===_t.PLAINTEXT)return;ko(t,Au(e));const r={type:Ve.END_TAG,tagName:n,tagID:Co(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ea(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===_t.RCDATA||t.parser.tokenizer.state===_t.RAWTEXT||t.parser.tokenizer.state===_t.SCRIPT_DATA)&&(t.parser.tokenizer.state=_t.DATA)}function _I(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function ea(e){const t=ur(e)||{line:void 0,column:void 0,offset:void 0},n=Au(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function xI(e){return"children"in e?Ii(re(U({},e),{children:[]})):Ii(e)}function iE(e){return function(t,n){return eE(t,re(U({},e),{file:n}))}}const Mi=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],oE={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Mi,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Mi],h2:[["className","sr-only"]],img:[...Mi,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Mi,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Mi],table:[...Mi],ul:[...Mi,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Gr={}.hasOwnProperty;function SI(e,t){let n={type:"root",children:[]};const r={schema:t?U(U({},oE),t):oE,stack:[]},o=sE(r,e);return o&&(Array.isArray(o)?o.length===1?n=o[0]:n.children=o:n=o),n}function sE(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return wI(e,n);case"doctype":return AI(e,n);case"element":return CI(e,n);case"root":return vI(e,n);case"text":return kI(e,n)}}}function wI(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return ta(a,t),a}}function AI(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return ta(n,t),n}}function CI(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=aE(e,t.children),o=NI(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&Gr.call(e.schema.ancestors,n))){const c=e.schema.ancestors[n];let d=-1;for(a=!1;++d<c.length;)e.stack.includes(c[d])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const u={type:"element",tagName:n,properties:o,children:r};return ta(u,t),u}function vI(e,t){const r={type:"root",children:aE(e,t.children)};return ta(r,t),r}function kI(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return ta(r,t),r}function aE(e,t){const n=[];if(Array.isArray(t)){const r=t;let o=-1;for(;++o<r.length;){const a=sE(e,r[o]);a&&(Array.isArray(a)?n.push(...a):n.push(a))}}return n}function NI(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,o=e.schema.required,a=r&&Gr.call(r,n)?r[n]:void 0,u=r&&Gr.call(r,"*")?r["*"]:void 0,c=t&&typeof t=="object"?t:{},d={};let h;for(h in c)if(Gr.call(c,h)){const m=c[h];let g=uE(e,cE(a,h),h,m);g==null&&(g=uE(e,cE(u,h),h,m)),g!=null&&(d[h]=g)}if(o&&Gr.call(o,n)){const m=o[n];for(h in m)Gr.call(m,h)&&!Gr.call(d,h)&&(d[h]=m[h])}return d}function uE(e,t,n,r){return t?Array.isArray(r)?OI(e,t,n,r):lE(e,t,n,r):void 0}function OI(e,t,n,r){let o=-1;const a=[];for(;++o<r.length;){const u=lE(e,t,n,r[o]);(typeof u=="number"||typeof u=="string")&&a.push(u)}return a}function lE(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&II(e,n,r)){if(typeof t=="object"&&t.length>1){let o=!1,a=0;for(;++a<t.length;){const u=t[a];if(u&&typeof u=="object"&&"flags"in u){if(u.test(String(r))){o=!0;break}}else if(u===r){o=!0;break}}if(!o)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function II(e,t,n){const r=e.schema.protocols&&Gr.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const o=String(n),a=o.indexOf(":"),u=o.indexOf("?"),c=o.indexOf("#"),d=o.indexOf("/");if(a<0||d>-1&&a>d||u>-1&&a>u||c>-1&&a>c)return!0;let h=-1;for(;++h<r.length;){const m=r[h];if(a===m.length&&o.slice(0,m.length)===m)return!0}return!1}function ta(e,t){const n=Y0(t);t.data&&(e.data=Ii(t.data)),n&&(e.position=n)}function cE(e,t){let n,r=-1;if(e)for(;++r<e.length;){const o=e[r],a=typeof o=="string"?o:o[0];if(a===t)return o;a==="data*"&&(n=o)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function PI(e){return function(t){return SI(t,e)}}const dE=({globalClassName:e,openLinksInNewTab:t,href:n,title:r,children:o})=>{const a=n?t?"_blank":"_self":void 0;return L.jsx("a",re(U(U({className:fe(e,`${X}-link`)},n?{href:n,target:a}:{}),r?{title:r}:{}),{rel:"noopener noreferrer",children:o}))},RI=()=>{const{disclaimerText:e,disclaimerMarkdown:t,globalClassName:n}=tn();return!e&&!t?null:L.jsx("div",{className:fe(n,`${X}-disclaimer`),children:t?L.jsx(qg,{rehypePlugins:[iE,PI],components:{ul:({children:r})=>L.jsx("ul",{className:fe(n,`${X}-ul`),children:r}),ol:({children:r})=>L.jsx("ol",{className:fe(n,`${X}-ol`),children:r}),li:({children:r})=>L.jsx("li",{className:fe(n,`${X}-li`),children:r}),a:({href:r,title:o,children:a})=>L.jsx(dE,{globalClassName:n,openLinksInNewTab:!0,href:r,title:o,children:a}),img:({src:r,alt:o})=>L.jsx("img",{className:fe(n,`${X}-disclaimer-image`),src:r,alt:o}),p:({children:r})=>L.jsx("p",{className:fe(n,`${X}-disclaimer-text`),children:r}),span:({children:r})=>L.jsx("span",{className:fe(n,`${X}-disclaimer-text-span`),children:r})},children:t}):L.jsx("p",{className:fe(n,`${X}-disclaimer-text`),children:e})})},gf=({className:e,isLoading:t,componentType:n,onSubmit:r})=>{const{isConnected:o}=ki(),{globalClassName:a,searchConfig:u}=tn(),c=te.useRef(null),d=o?"connected":"disconnected",h=t||!o,m=g=>{var T;g.preventDefault();const b=(((T=c.current)==null?void 0:T.value)||"").trim();b&&(c.current.value="",r(b))};return L.jsxs("div",{className:fe(a,e,n,`${X}-search-bar-wrapper`),children:[L.jsxs("form",{className:fe(a,e,n,`${X}-search-bar`),name:`${X}-search-form`,onSubmit:m,children:[L.jsx("span",{role:"status",className:fe(`${X}-connection-status-icon`,d)}),L.jsx("input",{className:fe(a,e,n,`${X}-search-input`),type:"text",ref:c,placeholder:(u==null?void 0:u.placeholder)||"Ask us anything",name:`${X}-user-input`,disabled:h}),L.jsx(tA,{className:e,globalClassName:a,searchConfig:u,componentType:n,isLoading:h}),L.jsx("button",{type:"button",className:`${X}-escalate-btn`,title:"Connect to a human agent","aria-label":"Connect to a human agent",disabled:h,onClick:()=>r("Can you connect me to a human?"),children:L.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:L.jsx("path",{d:"M20 21v-2a4 4 0 0 0-3-3.87M15 3.13a4 4 0 0 1 0 7.75M12 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2M8.5 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),L.jsx(RI,{})]})};function LI(e){return e==null?[]:Array.isArray(e)?e:[e]}var DI=(e,...t)=>e.concat(t),MI=(e,...t)=>e.filter(n=>!t.includes(n)),FI=e=>Array.from(new Set(e));function fE(e,t,n={}){const{step:r=1,loop:o=!0}=n,a=t+r,u=e.length,c=u-1;return t===-1?r>0?0:c:a<0?o?c:0:a>=u?o?0:t>u?u:t:a}function BI(e,t,n={}){const{step:r=1,loop:o=!0}=n;return fE(e,t,{step:-r,loop:o})}var UI=e=>Array.isArray(e),hE=e=>e!=null&&typeof e=="object",HI=e=>hE(e)&&!UI(e),Gu=e=>typeof e=="string",No=e=>typeof e=="function",zI=e=>e==null,jI=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),$I=e=>Object.prototype.toString.call(e),pE=Function.prototype.toString,VI=pE.call(Object),YI=e=>{if(!hE(e)||$I(e)!="[object Object]"||GI(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=jI(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&pE.call(n)==VI},qI=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,WI=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,GI=e=>qI(e)||WI(e),KI=e=>e(),QI=()=>{},Ef=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})};function XI(e,t=0){let n=0,r=null;return((...o)=>{const a=Date.now(),u=a-n;u>=t?(r&&(clearTimeout(r),r=null),e(...o),n=a):r||(r=setTimeout(()=>{e(...o),n=Date.now(),r=null},t-u))})}var{min:JI,max:ZI}=Math,eP=e=>Number.isNaN(e),tP=e=>eP(e)?0:e,mE=(e,t,n)=>JI(ZI(tP(e),t),n);function yf(e){if(!YI(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=yf(o))}return n}function Tf(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function nP(e,t){if(e==null)throw new Error(t())}function rP(e,t,n){let r=[];for(const o of t)e[o]==null&&r.push(o);if(r.length>0)throw new Error(`[zag-js${` > ${n}`}] missing required props: ${r.join(", ")}`)}var iP=Object.defineProperty,oP=(e,t,n)=>t in e?iP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bf=(e,t,n)=>oP(e,typeof t!="symbol"?t+"":t,n),gE=()=>{},Ku=e=>typeof e=="object"&&e!==null,Oo=e=>e?"":void 0,EE=e=>e?"true":void 0,sP=1,aP=9,uP=11,Dt=e=>Ku(e)&&e.nodeType===sP&&typeof e.nodeName=="string",Qu=e=>Ku(e)&&e.nodeType===aP,lP=e=>Ku(e)&&e===e.window,yE=e=>Dt(e)?e.localName||"":"#document";function cP(e){return["html","body","#document"].includes(yE(e))}var dP=e=>Ku(e)&&e.nodeType!==void 0,Fi=e=>dP(e)&&e.nodeType===uP&&"host"in e,fP=e=>Dt(e)&&e.localName==="input",hP=e=>Dt(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function na(e){if(!e)return!1;const t=e.getRootNode();return Ro(t)===e}var pP=/(textarea|select)/;function mP(e){if(e==null||!Dt(e))return!1;try{return fP(e)&&e.selectionStart!=null||pP.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch(t){return!1}}function Io(e,t){var r;if(!e||!t||!Dt(e)||!Dt(t))return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e===t||e.contains(t))return!0;if(n&&Fi(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function dr(e){var t;return Qu(e)?e:lP(e)?e.document:(t=e==null?void 0:e.ownerDocument)!=null?t:document}function gP(e){return dr(e).documentElement}function Po(e){var t,n,r;return Fi(e)?Po(e.host):Qu(e)?(t=e.defaultView)!=null?t:window:Dt(e)&&(r=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?r:window}function Ro(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(!n||n===t)break;t=n}return t}function EP(e){if(yE(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fi(e)&&e.host||gP(e);return Fi(t)?t.host:t}function _f(e){var n;let t;try{if(t=e.getRootNode({composed:!0}),Qu(t)||Fi(t))return t}catch(r){}return(n=e.ownerDocument)!=null?n:document}var xf=new WeakMap;function Lo(e){return xf.has(e)||xf.set(e,Po(e).getComputedStyle(e)),xf.get(e)}var Sf=new Set(["menu","listbox","dialog","grid","tree","region"]),yP=e=>Sf.has(e),TE=e=>{var t;return((t=e.getAttribute("aria-controls"))==null?void 0:t.split(" "))||[]};function bE(e,t){const n=new Set,r=_f(e),o=a=>{const u=a.querySelectorAll("[aria-controls]");for(const c of u){if(c.getAttribute("aria-expanded")!=="true")continue;const d=TE(c);for(const h of d){if(!h||n.has(h))continue;n.add(h);const m=r.getElementById(h);if(m){const g=m.getAttribute("role"),b=m.getAttribute("aria-modal")==="true";if(g&&yP(g)&&!b&&(m===t||m.contains(t)||o(m)))return!0}}}return!1};return o(e)}function _E(e,t){const n=_f(e),r=new Set,o=a=>{const u=a.querySelectorAll("[aria-controls]");for(const c of u){if(c.getAttribute("aria-expanded")!=="true")continue;const d=TE(c);for(const h of d){if(!h||r.has(h))continue;r.add(h);const m=n.getElementById(h);if(m){const g=m.getAttribute("role"),b=m.getAttribute("aria-modal")==="true";g&&Sf.has(g)&&!b&&(t(m),o(m))}}}};o(e)}function TP(e){const t=new Set;return _E(e,n=>{e.contains(n)||t.add(n)}),Array.from(t)}function bP(e){const t=e.getAttribute("role");return!!(t&&Sf.has(t))}function _P(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function xP(e){var t;return _P(e)?!0:!!((t=e.querySelector)!=null&&t.call(e,'[aria-controls][aria-expanded="true"]'))}function SP(e){if(!e.id)return!1;const t=_f(e),n=CSS.escape(e.id),r=`[aria-controls~="${n}"][aria-expanded="true"], [aria-controls="${n}"][aria-expanded="true"]`;return!!(t.querySelector(r)&&bP(e))}var wf=()=>typeof document!="undefined";function wP(){var t;const e=navigator.userAgentData;return(t=e==null?void 0:e.platform)!=null?t:navigator.platform}var Af=e=>wf()&&e.test(wP()),AP=e=>wf()&&e.test(navigator.vendor),xE=()=>wf()&&!!navigator.maxTouchPoints,CP=()=>Af(/^iPhone/i),vP=()=>Af(/^iPad/i)||Cf()&&navigator.maxTouchPoints>1,Xu=()=>CP()||vP(),kP=()=>Cf()||Xu(),Cf=()=>Af(/^Mac/i),NP=()=>kP()&&AP(/apple/i);function OP(e){var t,n,r,o;return(o=(t=e.composedPath)==null?void 0:t.call(e))!=null?o:(r=(n=e.nativeEvent)==null?void 0:n.composedPath)==null?void 0:r.call(n)}function Gn(e){var n;const t=OP(e);return(n=t==null?void 0:t[0])!=null?n:e.target}var SE=e=>e.button===0,IP=e=>e.button===2||Cf()&&e.ctrlKey&&e.button===0,PP=e=>"touches"in e&&e.touches.length>0,RP={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},wE={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function LP(e,t={}){var u;const{dir:n="ltr",orientation:r="horizontal"}=t;let o=e.key;return o=(u=RP[o])!=null?u:o,n==="rtl"&&r==="horizontal"&&o in wE&&(o=wE[o]),o}function AE(e,t="client"){const n=PP(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var Mt=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o==null||o.addEventListener(t,n,r),()=>{o==null||o.removeEventListener(t,n,r)}},CE=e=>Dt(e)&&e.tagName==="IFRAME",DP=/^(audio|video|details)$/;function vE(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var MP=e=>!Number.isNaN(vE(e)),FP=e=>vE(e)<0;function BP(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const n=t(e);return(n===!0?e.shadowRoot:n)||null}function kE(e,t,n){const r=[...e],o=[...e],a=new Set,u=new Map;e.forEach((d,h)=>u.set(d,h));let c=0;for(;c<o.length;){const d=o[c++];if(!d||a.has(d))continue;a.add(d);const h=BP(d,t);if(h){const m=Array.from(h.querySelectorAll(Ju)).filter(n),g=u.get(d);if(g!==void 0){const b=g+1;r.splice(b,0,...m),m.forEach((T,x)=>{u.set(T,b+x)});for(let T=b+m.length;T<r.length;T++)u.set(r[T],T)}else{const b=r.length;r.push(...m),m.forEach((T,x)=>{u.set(T,b+x)})}o.push(...m)}}return r}var Ju="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",NE=(e,t={})=>{if(!e)return[];const{includeContainer:n=!1,getShadowRoot:r}=t,o=Array.from(e.querySelectorAll(Ju));(n==!0||n=="if-empty"&&o.length===0)&&Dt(e)&&fr(e)&&o.unshift(e);const u=[];for(const c of o)if(fr(c)){if(CE(c)&&c.contentDocument){const d=c.contentDocument.body;u.push(...NE(d,{getShadowRoot:r}));continue}u.push(c)}return r?kE(u,r,fr):u};function fr(e){return!Dt(e)||e.closest("[inert]")?!1:e.matches(Ju)&&hP(e)}function Do(e,t={}){if(!e)return[];const{includeContainer:n,getShadowRoot:r}=t,o=Array.from(e.querySelectorAll(Ju));n&&Bi(e)&&o.unshift(e);const a=[];for(const u of o)if(Bi(u)){if(CE(u)&&u.contentDocument){const c=u.contentDocument.body;a.push(...Do(c,{getShadowRoot:r}));continue}a.push(u)}if(r){const u=kE(a,r,Bi);return!u.length&&n?o:u}return!a.length&&n?o:a}function Bi(e){return Dt(e)&&e.tabIndex>0?!0:fr(e)&&!FP(e)}function UP(e,t={}){const n=Do(e,t),r=n[0]||null,o=n[n.length-1]||null;return[r,o]}function HP(e,t={}){const{current:n,getShadowRoot:r}=t,o=Do(e,{getShadowRoot:r}),a=(e==null?void 0:e.ownerDocument)||document,u=n!=null?n:Ro(a);if(!u)return null;const c=o.indexOf(u);return o[c+1]||null}function ra(e){return e.tabIndex<0&&(DP.test(e.localName)||mP(e))&&!MP(e)?0:e.tabIndex}function OE(e){const{root:t,getInitialEl:n,filter:r,enabled:o=!0}=e;if(!o)return;let a=null;if(a||(a=typeof n=="function"?n():n),a||(a=t==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!a){const u=Do(t);a=r?u.filter(r)[0]:u[0]}return a||t||void 0}var zP=class I_{constructor(){bf(this,"id",null),bf(this,"fn_cleanup"),bf(this,"cleanup",()=>{this.cancel()})}static create(){return new I_}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t==null?void 0:t()})}cancel(){var t;this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),(t=this.fn_cleanup)==null||t.call(this),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function kt(e){const t=zP.create();return t.request(e),t.cleanup}function IE(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function vf(e){const t=EP(e);return cP(t)?dr(t).body:Dt(t)&&VP(t)?t:vf(t)}var jP=/auto|scroll|overlay|hidden|clip/,$P=new Set(["inline","contents"]);function VP(e){const t=Po(e),{overflow:n,overflowX:r,overflowY:o,display:a}=t.getComputedStyle(e);return jP.test(n+o+r)&&!$P.has(a)}var Mo="default",kf="",Zu=new WeakMap;function YP(e={}){const{target:t,doc:n}=e,r=n!=null?n:document,o=r.documentElement;return Xu()?(Mo==="default"&&(kf=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),Mo="disabled"):t&&(Zu.set(t,t.style.userSelect),t.style.userSelect="none"),()=>qP({target:t,doc:r})}function qP(e={}){const{target:t,doc:n}=e,o=(n!=null?n:document).documentElement;if(Xu()){if(Mo!=="disabled")return;Mo="restoring",setTimeout(()=>{IE(()=>{Mo==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=kf||""),kf="",Mo="default")})},300)}else if(t&&Zu.has(t)){const a=Zu.get(t);t.style.userSelect==="none"&&(t.style.userSelect=a!=null?a:""),t.getAttribute("style")===""&&t.removeAttribute("style"),Zu.delete(t)}}function WP(e={}){const u=e,{defer:t,target:n}=u,r=Zt(u,["defer","target"]),o=t?kt:c=>c(),a=[];return a.push(o(()=>{const c=typeof n=="function"?n():n;a.push(YP(re(U({},r),{target:c})))})),()=>{a.forEach(c=>c==null?void 0:c())}}function GP(e,t){const{onPointerMove:n,onPointerUp:r}=t,o=c=>{const d=AE(c),h=Math.sqrt(Za(d.x,2)+Za(d.y,2)),m=c.pointerType==="touch"?10:5;if(!(h<m)){if(c.pointerType==="mouse"&&c.button===0){a(c);return}n({point:d,event:c})}},a=c=>{const d=AE(c);r({point:d,event:c})},u=[Mt(e,"pointermove",o,!1),Mt(e,"pointerup",a,!1),Mt(e,"pointercancel",a,!1),Mt(e,"contextmenu",a,!1),WP({doc:e})];return()=>{u.forEach(c=>c())}}function KP(e,t={}){const{triggerElement:n,onFocus:r,onFocusEnter:o,getShadowRoot:a}=t,u=(e==null?void 0:e.ownerDocument)||document,c=u.body;function d(h){if(h.key!=="Tab")return;let m=null;const[g,b]=UP(e,{includeContainer:!0,getShadowRoot:a}),T=HP(c,{current:n,getShadowRoot:a}),x=!g&&!b;h.shiftKey&&na(T)?(o==null||o(),m=b):h.shiftKey&&(na(g)||x)?m=n:!h.shiftKey&&na(n)?(o==null||o(),m=g):!h.shiftKey&&(na(b)||x)&&(m=T),m&&(h.preventDefault(),typeof r=="function"?r(m):m.focus())}return Mt(u,"keydown",d,!0)}function QP(e,t){const c=t,{defer:n,triggerElement:r}=c,o=Zt(c,["defer","triggerElement"]),a=n?kt:d=>d(),u=[];return u.push(a(()=>{const d=typeof e=="function"?e():e,h=typeof r=="function"?r():r;u.push(KP(d,U({triggerElement:h},o)))})),()=>{u.forEach(d=>d==null?void 0:d())}}function XP(e,t){var n;return Array.from((n=e==null?void 0:e.querySelectorAll(t))!=null?n:[])}function el(e,t){if(!e)return gE;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function JP(e,t,n){if(!e)return gE;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function ZP(e,t,n){const{signal:r}=t;return[new Promise((u,c)=>{const d=setTimeout(()=>{c(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(d),c(new Error("Promise aborted"))}),e.then(h=>{r.aborted||(clearTimeout(d),u(h))}).catch(h=>{r.aborted||(clearTimeout(d),c(h))})}),()=>t.abort()]}function eR(e,t){const{timeout:n,rootNode:r}=t,o=Po(r),a=dr(r),u=new o.AbortController;return ZP(new Promise(c=>{const d=e();if(d){c(d);return}const h=new o.MutationObserver(()=>{const m=e();m&&m.isConnected&&(h.disconnect(),c(m))});h.observe(a.body,{childList:!0,subtree:!0})}),u,n)}var tR=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),nR=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,PE=e=>{const t={};let n;for(;n=nR.exec(e);)t[n[1]]=n[2];return t},rR=(e,t)=>{if(Gu(e)){if(Gu(t))return`${e};${t}`;e=PE(e)}else Gu(t)&&(t=PE(t));return Object.assign({},e!=null?e:{},t!=null?t:{})};function Nt(...e){let t={};for(let n of e){if(!n)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof n[o]=="function"){t[o]=Ef(n[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=tR(t[o],n[o]);continue}if(o==="style"){t[o]=rR(t[o],n[o]);continue}t[o]=n[o]!==void 0?n[o]:t[o]}for(let o in n)t[o]===void 0&&(t[o]=n[o]);const r=Object.getOwnPropertySymbols(n);for(let o of r)t[o]=n[o]}return t}function TF(e){return e}var Fo=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Fo||{}),Nf="__init__";function iR(e){const t=()=>{var u,c;return(c=(u=e.getRootNode)==null?void 0:u.call(e))!=null?c:document},n=()=>dr(t()),r=()=>{var u;return(u=n().defaultView)!=null?u:window},o=()=>Ro(t()),a=u=>t().getElementById(u);return re(U({},e),{getRootNode:t,getDoc:n,getWin:r,getActiveElement:o,isActiveElement:na,getById:a})}function oR(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var Bo=()=>e=>Array.from(new Set(e)),RE=typeof globalThis.document!="undefined"?te.useLayoutEffect:te.useEffect;function tl(e){var g,b;const t=(g=e().value)!=null?g:e().defaultValue,n=(b=e().isEqual)!=null?b:Object.is,[r]=te.useState(t),[o,a]=te.useState(r),u=e().value!==void 0,c=te.useRef(o);c.current=u?e().value:o;const d=te.useRef(c.current);RE(()=>{d.current=c.current},[o,e().value]);const h=T=>{var A,v;const x=d.current,S=No(T)?T(x):T;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:S,prev:x}),u||a(S),n(S,x)||(v=(A=e()).onChange)==null||v.call(A,S,x)};function m(){return u?e().value:o}return{initial:r,ref:c,get:m,set(T){(e().sync?Os.flushSync:KI)(()=>h(T))},invoke(T,x){var S,A;(A=(S=e()).onChange)==null||A.call(S,T,x)},hash(T){var x,S,A;return(A=(S=(x=e()).hash)==null?void 0:S.call(x,T))!=null?A:String(T)}}}tl.cleanup=e=>{te.useEffect(()=>e,[])},tl.ref=e=>{const t=te.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function sR(e){const t=te.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var aR=(e,t)=>{const n=te.useRef(!1),r=te.useRef(!1);te.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e!=null?e:[]).map(o=>typeof o=="function"?o():o)]),te.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function nl(e,t={}){var se,me,de,le,Te,Re;const n=te.useMemo(()=>{const{id:ce,ids:G,getRootNode:ee}=t;return iR({id:ce,ids:G,getRootNode:ee})},[t]),r=(...ce)=>{e.debug&&console.log(...ce)},o=(me=(se=e.props)==null?void 0:se.call(e,{props:yf(t),scope:n}))!=null?me:t,a=uR(o),u=(de=e.context)==null?void 0:de.call(e,{prop:a,bindable:tl,scope:n,flush:DE,getContext(){return d},getComputed(){return Y},getRefs(){return S},getEvent(){return T()}}),c=LE(u),d={get(ce){var G;return(G=c.current)==null?void 0:G[ce].ref.current},set(ce,G){var ee;(ee=c.current)==null||ee[ce].set(G)},initial(ce){var G;return(G=c.current)==null?void 0:G[ce].initial},hash(ce){var ee,w;const G=(ee=c.current)==null?void 0:ee[ce].get();return(w=c.current)==null?void 0:w[ce].hash(G)}},h=te.useRef(new Map),m=te.useRef(null),g=te.useRef(null),b=te.useRef({type:""}),T=()=>re(U({},b.current),{current(){return b.current},previous(){return g.current}}),x=()=>re(U({},F),{matches(...ce){return ce.includes(F.ref.current)},hasTag(ce){var G,ee;return!!((ee=(G=e.states[F.ref.current])==null?void 0:G.tags)!=null&&ee.includes(ce))}}),S=sR((Te=(le=e.refs)==null?void 0:le.call(e,{prop:a,context:d}))!=null?Te:{}),A=()=>({state:x(),context:d,event:T(),prop:a,send:z,action:v,guard:I,track:aR,refs:S,computed:Y,flush:DE,scope:n,choose:M}),v=ce=>{const G=No(ce)?ce(A()):ce;if(!G)return;const ee=G.map(w=>{var Q,N;const D=(N=(Q=e.implementations)==null?void 0:Q.actions)==null?void 0:N[w];return D||Tf(`[zag-js] No implementation found for action "${JSON.stringify(w)}"`),D});for(const w of ee)w==null||w(A())},I=ce=>{var G,ee;return No(ce)?ce(A()):(ee=(G=e.implementations)==null?void 0:G.guards)==null?void 0:ee[ce](A())},k=ce=>{const G=No(ce)?ce(A()):ce;if(!G)return;const ee=G.map(D=>{var N,be;const Q=(be=(N=e.implementations)==null?void 0:N.effects)==null?void 0:be[D];return Q||Tf(`[zag-js] No implementation found for effect "${JSON.stringify(D)}"`),Q}),w=[];for(const D of ee){const Q=D==null?void 0:D(A());Q&&w.push(Q)}return()=>w.forEach(D=>D==null?void 0:D())},M=ce=>LI(ce).find(G=>{let ee=!G.guard;return Gu(G.guard)?ee=!!I(G.guard):No(G.guard)&&(ee=G.guard(A())),ee}),Y=ce=>{nP(e.computed,()=>"[zag-js] No computed object found on machine");const G=e.computed[ce];return G({context:d,event:T(),prop:a,refs:S,scope:n,computed:Y})},F=tl(()=>({defaultValue:e.initialState({prop:a}),onChange(ce,G){var w,D,Q,N;if(G){const be=h.current.get(G);be==null||be(),h.current.delete(G)}G&&v((w=e.states[G])==null?void 0:w.exit),v((D=m.current)==null?void 0:D.actions);const ee=k((Q=e.states[ce])==null?void 0:Q.effects);if(ee&&h.current.set(ce,ee),G===Nf){v(e.entry);const be=k(e.effects);be&&h.current.set(Nf,be)}v((N=e.states[ce])==null?void 0:N.entry)}})),J=te.useRef(void 0),Ee=te.useRef(Fo.NotStarted);RE(()=>{queueMicrotask(()=>{var D;const ee=Ee.current===Fo.Started;Ee.current=Fo.Started,r(ee?"rehydrating...":"initializing...");const w=(D=J.current)!=null?D:F.initial;F.invoke(w,ee?F.get():Nf)});const ce=h.current,G=F.ref.current;return()=>{r("unmounting..."),J.current=G,Ee.current=Fo.Stopped,ce.forEach(ee=>ee==null?void 0:ee()),h.current=new Map,m.current=null,queueMicrotask(()=>{v(e.exit)})}},[]);const xe=()=>"ref"in F?F.ref.current:F.get(),z=ce=>{queueMicrotask(()=>{var N,be,Le,Oe,ze;if(Ee.current!==Fo.Started)return;g.current=b.current,b.current=ce;let G=xe();const ee=(Le=(N=e.states[G].on)==null?void 0:N[ce.type])!=null?Le:(be=e.on)==null?void 0:be[ce.type],w=M(ee);if(!w)return;m.current=w;const D=(Oe=w.target)!=null?Oe:G;r("transition",ce.type,w.target||G,`(${w.actions})`);const Q=D!==G;Q?Os.flushSync(()=>F.set(D)):w.reenter&&!Q?F.invoke(G,G):v((ze=w.actions)!=null?ze:[])})};return(Re=e.watch)==null||Re.call(e,A()),{state:x(),send:z,context:d,prop:a,scope:n,refs:S,computed:Y,event:T(),getStatus:()=>Ee.current}}function LE(e){const t=te.useRef(e);return t.current=e,t}function uR(e){const t=LE(e);return function(r){return t.current[r]}}function DE(e){queueMicrotask(()=>{Os.flushSync(()=>e())})}var Of=oR(e=>e);function rl(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&n.push(o)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function lR(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const If=e=>{const t=te.memo(te.forwardRef((n,r)=>{const h=n,{asChild:o,children:a}=h,u=Zt(h,["asChild","children"]);if(!o)return te.createElement(e,re(U({},u),{ref:r}),a);if(!te.isValidElement(a))return null;const c=te.Children.only(a),d=lR(c);return te.cloneElement(c,re(U({},Nt(u,c.props)),{ref:r?rl(r,d):d}))}));return t.displayName=e.displayName||e.name,t},Gt=(()=>{const e=new Map;return new Proxy(If,{apply(t,n,r){return If(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,If(r)),e.get(r)}})})();function cR(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Ui(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:a,defaultValue:u}=e,c=te.createContext(u);c.displayName=t;function d(){var m;const h=te.useContext(c);if(!h&&n){const g=new Error(a!=null?a:cR(r,o));throw g.name="ContextError",(m=Error.captureStackTrace)==null||m.call(Error,g,d),g}return h}return[c.Provider,d,c]}const[dR,Pf]=Ui({name:"PopoverContext",hookName:"usePopoverContext",providerName:"<PopoverProvider />"}),[ME,ia]=Ui({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"}),FE=te.forwardRef((e,t)=>{const n=Pf(),r=ia(),o=Nt(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:L.jsx(Gt.div,re(U({},o),{ref:rl(r.ref,t)}))});FE.displayName="PopoverContent";const BE=te.forwardRef((e,t)=>{const n=Pf(),r=ia(),o=Nt(n.getPositionerProps(),e);return r.unmounted?null:L.jsx(Gt.div,re(U({},o),{ref:t}))});BE.displayName="PopoverPositioner";const oa=()=>(e,t)=>t.reduce((n,r)=>{const[o,a]=n,u=r;return a[u]!==void 0&&(o[u]=a[u]),delete a[u],[o,a]},[{},U({},e)]),UE=e=>oa()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function fR(e,t){const{state:n,send:r,context:o}=e,a=n.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:a,setNode(u){u&&r({type:"NODE.SET",node:u})},unmount(){r({type:"UNMOUNT"})}}}var hR={props({props:e}){return re(U({},e),{present:!!e.present})},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],()=>{n({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Lo(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const o=r("present");if(o)return n({type:"MOUNT",src:"presence.changed"});const a=t.get("node");if(!o&&(a==null?void 0:a.ownerDocument.visibilityState)==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});kt(()=>{var c,d;const u=il(t.get("styles"));e.set("unmountAnimationName",u),u==="none"||u===e.get("prevAnimationName")||((c=t.get("styles"))==null?void 0:c.display)==="none"||((d=t.get("styles"))==null?void 0:d.animationDuration)==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{kt(()=>{e.set("prevAnimationName",il(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n,prop:r})=>{const o=t.get("node");if(!o)return;const a=d=>{var m,g,b;((b=(g=(m=d.composedPath)==null?void 0:m.call(d))==null?void 0:g[0])!=null?b:d.target)===o&&e.set("prevAnimationName",il(t.get("styles")))},u=d=>{const h=il(t.get("styles"));Gn(d)===o&&h===e.get("unmountAnimationName")&&!r("present")&&n({type:"UNMOUNT",src:"animationend"})};o.addEventListener("animationstart",a),o.addEventListener("animationcancel",u),o.addEventListener("animationend",u);const c=el(o,{animationFillMode:"forwards"});return()=>{o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",u),o.removeEventListener("animationend",u),IE(()=>c())}}}}};function il(e){return(e==null?void 0:e.animationName)||"none"}Bo()(["onExitComplete","present","immediate"]);function pR(e,t={}){const{sync:n=!1}=t,r=mR(e);return te.useCallback((...o)=>{var a;return n?queueMicrotask(()=>{var u;return(u=r.current)==null?void 0:u.call(r,...o)}):(a=r.current)==null?void 0:a.call(r,...o)},[n,r])}function mR(e){const t=te.useRef(e);return t.current=e,t}const Rf=(e={})=>{const b=e,{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:o=!1}=b,a=Zt(b,["lazyMount","unmountOnExit","present","skipAnimationOnMount"]),u=te.useRef(!1),c=re(U({},a),{present:r,onExitComplete:pR(e.onExitComplete)}),d=nl(hR,c),h=fR(d);h.present&&(u.current=!0);const m=!h.present&&!u.current&&t||n&&!h.present&&u.current,g=()=>({"data-state":h.skip&&o?void 0:r?"open":"closed",hidden:!h.present});return{ref:h.setNode,getPresenceProps:g,present:h.present,unmounted:m}};var Hi=(e,t=[])=>({parts:(...n)=>{if(gR(t))return Hi(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>Hi(e,[...t,...n]),omit:(...n)=>Hi(e,t.filter(r=>!n.includes(r))),rename:n=>Hi(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${Uo(e)}"][data-part="${Uo(r)}"]`,`& [data-scope="${Uo(e)}"][data-part="${Uo(r)}"]`].join(", "),attrs:{"data-scope":Uo(e),"data-part":Uo(r)}}}),{})}),Uo=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),gR=e=>e.length===0;const ER=["top","right","bottom","left"],Kr=Math.min,Sn=Math.max,ol=Math.round,sl=Math.floor,hr=e=>({x:e,y:e}),yR={left:"right",right:"left",bottom:"top",top:"bottom"},TR={start:"end",end:"start"};function Lf(e,t,n){return Sn(e,Kr(t,n))}function vr(e,t){return typeof e=="function"?e(t):e}function kr(e){return e.split("-")[0]}function Ho(e){return e.split("-")[1]}function Df(e){return e==="x"?"y":"x"}function Mf(e){return e==="y"?"height":"width"}const bR=new Set(["top","bottom"]);function pr(e){return bR.has(kr(e))?"y":"x"}function Ff(e){return Df(pr(e))}function _R(e,t,n){n===void 0&&(n=!1);const r=Ho(e),o=Ff(e),a=Mf(o);let u=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(u=al(u)),[u,al(u)]}function xR(e){const t=al(e);return[Bf(e),t,Bf(t)]}function Bf(e){return e.replace(/start|end/g,t=>TR[t])}const HE=["left","right"],zE=["right","left"],SR=["top","bottom"],wR=["bottom","top"];function AR(e,t,n){switch(e){case"top":case"bottom":return n?t?zE:HE:t?HE:zE;case"left":case"right":return t?SR:wR;default:return[]}}function CR(e,t,n,r){const o=Ho(e);let a=AR(kr(e),n==="start",r);return o&&(a=a.map(u=>u+"-"+o),t&&(a=a.concat(a.map(Bf)))),a}function al(e){return e.replace(/left|right|bottom|top/g,t=>yR[t])}function vR(e){return U({top:0,right:0,bottom:0,left:0},e)}function jE(e){return typeof e!="number"?vR(e):{top:e,right:e,bottom:e,left:e}}function ul(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function $E(e,t,n){let{reference:r,floating:o}=e;const a=pr(t),u=Ff(t),c=Mf(u),d=kr(t),h=a==="y",m=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,b=r[c]/2-o[c]/2;let T;switch(d){case"top":T={x:m,y:r.y-o.height};break;case"bottom":T={x:m,y:r.y+r.height};break;case"right":T={x:r.x+r.width,y:g};break;case"left":T={x:r.x-o.width,y:g};break;default:T={x:r.x,y:r.y}}switch(Ho(t)){case"start":T[u]-=b*(n&&h?-1:1);break;case"end":T[u]+=b*(n&&h?-1:1);break}return T}const kR=(e,t,n)=>et(null,null,function*(){const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:u}=n,c=a.filter(Boolean),d=yield u.isRTL==null?void 0:u.isRTL(t);let h=yield u.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:g}=$E(h,r,d),b=r,T={},x=0;for(let S=0;S<c.length;S++){const{name:A,fn:v}=c[S],{x:I,y:k,data:M,reset:Y}=yield v({x:m,y:g,initialPlacement:r,placement:b,strategy:o,middlewareData:T,rects:h,platform:u,elements:{reference:e,floating:t}});m=I!=null?I:m,g=k!=null?k:g,T=re(U({},T),{[A]:U(U({},T[A]),M)}),Y&&x<=50&&(x++,typeof Y=="object"&&(Y.placement&&(b=Y.placement),Y.rects&&(h=Y.rects===!0?yield u.getElementRects({reference:e,floating:t,strategy:o}):Y.rects),{x:m,y:g}=$E(h,b,d)),S=-1)}return{x:m,y:g,placement:b,strategy:o,middlewareData:T}});function sa(e,t){return et(this,null,function*(){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:u,elements:c,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:b=!1,padding:T=0}=vr(t,e),x=jE(T),A=c[b?g==="floating"?"reference":"floating":g],v=ul(yield a.getClippingRect({element:(n=yield a.isElement==null?void 0:a.isElement(A))==null||n?A:A.contextElement||(yield a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:h,rootBoundary:m,strategy:d})),I=g==="floating"?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,k=yield a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating),M=(yield a.isElement==null?void 0:a.isElement(k))?(yield a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},Y=ul(a.convertOffsetParentRelativeRectToViewportRelativeRect?yield a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:I,offsetParent:k,strategy:d}):I);return{top:(v.top-Y.top+x.top)/M.y,bottom:(Y.bottom-v.bottom+x.bottom)/M.y,left:(v.left-Y.left+x.left)/M.x,right:(Y.right-v.right+x.right)/M.x}})}const NR=e=>({name:"arrow",options:e,fn(n){return et(this,null,function*(){const{x:r,y:o,placement:a,rects:u,platform:c,elements:d,middlewareData:h}=n,{element:m,padding:g=0}=vr(e,n)||{};if(m==null)return{};const b=jE(g),T={x:r,y:o},x=Ff(a),S=Mf(x),A=yield c.getDimensions(m),v=x==="y",I=v?"top":"left",k=v?"bottom":"right",M=v?"clientHeight":"clientWidth",Y=u.reference[S]+u.reference[x]-T[x]-u.floating[S],F=T[x]-u.reference[x],J=yield c.getOffsetParent==null?void 0:c.getOffsetParent(m);let Ee=J?J[M]:0;(!Ee||!(yield c.isElement==null?void 0:c.isElement(J)))&&(Ee=d.floating[M]||u.floating[S]);const xe=Y/2-F/2,z=Ee/2-A[S]/2-1,se=Kr(b[I],z),me=Kr(b[k],z),de=se,le=Ee-A[S]-me,Te=Ee/2-A[S]/2+xe,Re=Lf(de,Te,le),ce=!h.arrow&&Ho(a)!=null&&Te!==Re&&u.reference[S]/2-(Te<de?se:me)-A[S]/2<0,G=ce?Te<de?Te-de:Te-le:0;return{[x]:T[x]+G,data:U({[x]:Re,centerOffset:Te-Re-G},ce&&{alignmentOffset:G}),reset:ce}})}}),OR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(n){return et(this,null,function*(){var r,o;const{placement:a,middlewareData:u,rects:c,initialPlacement:d,platform:h,elements:m}=n,Te=vr(e,n),{mainAxis:g=!0,crossAxis:b=!0,fallbackPlacements:T,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:A=!0}=Te,v=Zt(Te,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const I=kr(a),k=pr(d),M=kr(d)===d,Y=yield h.isRTL==null?void 0:h.isRTL(m.floating),F=T||(M||!A?[al(d)]:xR(d)),J=S!=="none";!T&&J&&F.push(...CR(d,A,S,Y));const Ee=[d,...F],xe=yield sa(n,v),z=[];let se=((o=u.flip)==null?void 0:o.overflows)||[];if(g&&z.push(xe[I]),b){const Re=_R(a,c,Y);z.push(xe[Re[0]],xe[Re[1]])}if(se=[...se,{placement:a,overflows:z}],!z.every(Re=>Re<=0)){var me,de;const Re=(((me=u.flip)==null?void 0:me.index)||0)+1,ce=Ee[Re];if(ce&&(!(b==="alignment"?k!==pr(ce):!1)||se.every(w=>pr(w.placement)===k?w.overflows[0]>0:!0)))return{data:{index:Re,overflows:se},reset:{placement:ce}};let G=(de=se.filter(ee=>ee.overflows[0]<=0).sort((ee,w)=>ee.overflows[1]-w.overflows[1])[0])==null?void 0:de.placement;if(!G)switch(x){case"bestFit":{var le;const ee=(le=se.filter(w=>{if(J){const D=pr(w.placement);return D===k||D==="y"}return!0}).map(w=>[w.placement,w.overflows.filter(D=>D>0).reduce((D,Q)=>D+Q,0)]).sort((w,D)=>w[1]-D[1])[0])==null?void 0:le[0];ee&&(G=ee);break}case"initialPlacement":G=d;break}if(a!==G)return{reset:{placement:G}}}return{}})}}};function VE(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function YE(e){return ER.some(t=>e[t]>=0)}const IR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,fn(n){return et(this,null,function*(){const{rects:r}=n,u=vr(e,n),{strategy:o="referenceHidden"}=u,a=Zt(u,["strategy"]);switch(o){case"referenceHidden":{const c=yield sa(n,re(U({},a),{elementContext:"reference"})),d=VE(c,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:YE(d)}}}case"escaped":{const c=yield sa(n,re(U({},a),{altBoundary:!0})),d=VE(c,r.floating);return{data:{escapedOffsets:d,escaped:YE(d)}}}default:return{}}})}}},qE=new Set(["left","top"]);function PR(e,t){return et(this,null,function*(){const{placement:n,platform:r,elements:o}=e,a=yield r.isRTL==null?void 0:r.isRTL(o.floating),u=kr(n),c=Ho(n),d=pr(n)==="y",h=qE.has(u)?-1:1,m=a&&d?-1:1,g=vr(t,e);let{mainAxis:b,crossAxis:T,alignmentAxis:x}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof x=="number"&&(T=c==="end"?x*-1:x),d?{x:T*m,y:b*h}:{x:b*h,y:T*m}})}const RR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(n){return et(this,null,function*(){var r,o;const{x:a,y:u,placement:c,middlewareData:d}=n,h=yield PR(n,e);return c===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:a+h.x,y:u+h.y,data:re(U({},h),{placement:c})}})}}},LR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(n){return et(this,null,function*(){const{x:r,y:o,placement:a}=n,v=vr(e,n),{mainAxis:u=!0,crossAxis:c=!1,limiter:d={fn:I=>{let{x:k,y:M}=I;return{x:k,y:M}}}}=v,h=Zt(v,["mainAxis","crossAxis","limiter"]),m={x:r,y:o},g=yield sa(n,h),b=pr(kr(a)),T=Df(b);let x=m[T],S=m[b];if(u){const I=T==="y"?"top":"left",k=T==="y"?"bottom":"right",M=x+g[I],Y=x-g[k];x=Lf(M,x,Y)}if(c){const I=b==="y"?"top":"left",k=b==="y"?"bottom":"right",M=S+g[I],Y=S-g[k];S=Lf(M,S,Y)}const A=d.fn(re(U({},n),{[T]:x,[b]:S}));return re(U({},A),{data:{x:A.x-r,y:A.y-o,enabled:{[T]:u,[b]:c}}})})}}},DR=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:u}=t,{offset:c=0,mainAxis:d=!0,crossAxis:h=!0}=vr(e,t),m={x:n,y:r},g=pr(o),b=Df(g);let T=m[b],x=m[g];const S=vr(c,t),A=typeof S=="number"?{mainAxis:S,crossAxis:0}:U({mainAxis:0,crossAxis:0},S);if(d){const k=b==="y"?"height":"width",M=a.reference[b]-a.floating[k]+A.mainAxis,Y=a.reference[b]+a.reference[k]-A.mainAxis;T<M?T=M:T>Y&&(T=Y)}if(h){var v,I;const k=b==="y"?"width":"height",M=qE.has(kr(o)),Y=a.reference[g]-a.floating[k]+(M&&((v=u.offset)==null?void 0:v[g])||0)+(M?0:A.crossAxis),F=a.reference[g]+a.reference[k]+(M?0:((I=u.offset)==null?void 0:I[g])||0)-(M?A.crossAxis:0);x<Y?x=Y:x>F&&(x=F)}return{[b]:T,[g]:x}}}},MR=function(e){return e===void 0&&(e={}),{name:"size",options:e,fn(n){return et(this,null,function*(){var r,o;const{placement:a,rects:u,platform:c,elements:d}=n,se=vr(e,n),{apply:h=()=>{}}=se,m=Zt(se,["apply"]),g=yield sa(n,m),b=kr(a),T=Ho(a),x=pr(a)==="y",{width:S,height:A}=u.floating;let v,I;b==="top"||b==="bottom"?(v=b,I=T===((yield c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(I=b,v=T==="end"?"top":"bottom");const k=A-g.top-g.bottom,M=S-g.left-g.right,Y=Kr(A-g[v],k),F=Kr(S-g[I],M),J=!n.middlewareData.shift;let Ee=Y,xe=F;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(xe=M),(o=n.middlewareData.shift)!=null&&o.enabled.y&&(Ee=k),J&&!T){const me=Sn(g.left,0),de=Sn(g.right,0),le=Sn(g.top,0),Te=Sn(g.bottom,0);x?xe=S-2*(me!==0||de!==0?me+de:Sn(g.left,g.right)):Ee=A-2*(le!==0||Te!==0?le+Te:Sn(g.top,g.bottom))}yield h(re(U({},n),{availableWidth:xe,availableHeight:Ee}));const z=yield c.getDimensions(d.floating);return S!==z.width||A!==z.height?{reset:{rects:!0}}:{}})}}};function ll(){return typeof window!="undefined"}function zo(e){return WE(e)?(e.nodeName||"").toLowerCase():"#document"}function wn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function mr(e){var t;return(t=(WE(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function WE(e){return ll()?e instanceof Node||e instanceof wn(e).Node:!1}function Kn(e){return ll()?e instanceof Element||e instanceof wn(e).Element:!1}function gr(e){return ll()?e instanceof HTMLElement||e instanceof wn(e).HTMLElement:!1}function GE(e){return!ll()||typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof wn(e).ShadowRoot}const FR=new Set(["inline","contents"]);function aa(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Qn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!FR.has(o)}const BR=new Set(["table","td","th"]);function UR(e){return BR.has(zo(e))}const HR=[":popover-open",":modal"];function cl(e){return HR.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const zR=["transform","translate","scale","rotate","perspective"],jR=["transform","translate","scale","rotate","perspective","filter"],$R=["paint","layout","strict","content"];function Uf(e){const t=Hf(),n=Kn(e)?Qn(e):e;return zR.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||jR.some(r=>(n.willChange||"").includes(r))||$R.some(r=>(n.contain||"").includes(r))}function VR(e){let t=Qr(e);for(;gr(t)&&!jo(t);){if(Uf(t))return t;if(cl(t))return null;t=Qr(t)}return null}function Hf(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const YR=new Set(["html","body","#document"]);function jo(e){return YR.has(zo(e))}function Qn(e){return wn(e).getComputedStyle(e)}function dl(e){return Kn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qr(e){if(zo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||GE(e)&&e.host||mr(e);return GE(t)?t.host:t}function KE(e){const t=Qr(e);return jo(t)?e.ownerDocument?e.ownerDocument.body:e.body:gr(t)&&aa(t)?t:KE(t)}function ua(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=KE(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),u=wn(o);if(a){const c=zf(u);return t.concat(u,u.visualViewport||[],aa(o)?o:[],c&&n?ua(c):[])}return t.concat(o,ua(o,[],n))}function zf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function QE(e){const t=Qn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=gr(e),a=o?e.offsetWidth:n,u=o?e.offsetHeight:r,c=ol(n)!==a||ol(r)!==u;return c&&(n=a,r=u),{width:n,height:r,$:c}}function jf(e){return Kn(e)?e:e.contextElement}function $o(e){const t=jf(e);if(!gr(t))return hr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=QE(t);let u=(a?ol(n.width):n.width)/r,c=(a?ol(n.height):n.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const qR=hr(0);function XE(e){const t=wn(e);return!Hf()||!t.visualViewport?qR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function WR(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==wn(e)?!1:t}function zi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=jf(e);let u=hr(1);t&&(r?Kn(r)&&(u=$o(r)):u=$o(e));const c=WR(a,n,r)?XE(a):hr(0);let d=(o.left+c.x)/u.x,h=(o.top+c.y)/u.y,m=o.width/u.x,g=o.height/u.y;if(a){const b=wn(a),T=r&&Kn(r)?wn(r):r;let x=b,S=zf(x);for(;S&&r&&T!==x;){const A=$o(S),v=S.getBoundingClientRect(),I=Qn(S),k=v.left+(S.clientLeft+parseFloat(I.paddingLeft))*A.x,M=v.top+(S.clientTop+parseFloat(I.paddingTop))*A.y;d*=A.x,h*=A.y,m*=A.x,g*=A.y,d+=k,h+=M,x=wn(S),S=zf(x)}}return ul({width:m,height:g,x:d,y:h})}function fl(e,t){const n=dl(e).scrollLeft;return t?t.left+n:zi(mr(e)).left+n}function JE(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-fl(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function GR(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",u=mr(r),c=t?cl(t.floating):!1;if(r===u||c&&a)return n;let d={scrollLeft:0,scrollTop:0},h=hr(1);const m=hr(0),g=gr(r);if((g||!g&&!a)&&((zo(r)!=="body"||aa(u))&&(d=dl(r)),gr(r))){const T=zi(r);h=$o(r),m.x=T.x+r.clientLeft,m.y=T.y+r.clientTop}const b=u&&!g&&!a?JE(u,d):hr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-d.scrollLeft*h.x+m.x+b.x,y:n.y*h.y-d.scrollTop*h.y+m.y+b.y}}function KR(e){return Array.from(e.getClientRects())}function QR(e){const t=mr(e),n=dl(e),r=e.ownerDocument.body,o=Sn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Sn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+fl(e);const c=-n.scrollTop;return Qn(r).direction==="rtl"&&(u+=Sn(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:u,y:c}}const ZE=25;function XR(e,t){const n=wn(e),r=mr(e),o=n.visualViewport;let a=r.clientWidth,u=r.clientHeight,c=0,d=0;if(o){a=o.width,u=o.height;const m=Hf();(!m||m&&t==="fixed")&&(c=o.offsetLeft,d=o.offsetTop)}const h=fl(r);if(h<=0){const m=r.ownerDocument,g=m.body,b=getComputedStyle(g),T=m.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,x=Math.abs(r.clientWidth-g.clientWidth-T);x<=ZE&&(a-=x)}else h<=ZE&&(a+=h);return{width:a,height:u,x:c,y:d}}const JR=new Set(["absolute","fixed"]);function ZR(e,t){const n=zi(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=gr(e)?$o(e):hr(1),u=e.clientWidth*a.x,c=e.clientHeight*a.y,d=o*a.x,h=r*a.y;return{width:u,height:c,x:d,y:h}}function ey(e,t,n){let r;if(t==="viewport")r=XR(e,n);else if(t==="document")r=QR(mr(e));else if(Kn(t))r=ZR(t,n);else{const o=XE(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ul(r)}function ty(e,t){const n=Qr(e);return n===t||!Kn(n)||jo(n)?!1:Qn(n).position==="fixed"||ty(n,t)}function eL(e,t){const n=t.get(e);if(n)return n;let r=ua(e,[],!1).filter(c=>Kn(c)&&zo(c)!=="body"),o=null;const a=Qn(e).position==="fixed";let u=a?Qr(e):e;for(;Kn(u)&&!jo(u);){const c=Qn(u),d=Uf(u);!d&&c.position==="fixed"&&(o=null),(a?!d&&!o:!d&&c.position==="static"&&!!o&&JR.has(o.position)||aa(u)&&!d&&ty(e,u))?r=r.filter(m=>m!==u):o=c,u=Qr(u)}return t.set(e,r),r}function tL(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const u=[...n==="clippingAncestors"?cl(t)?[]:eL(t,this._c):[].concat(n),r],c=u[0],d=u.reduce((h,m)=>{const g=ey(t,m,o);return h.top=Sn(g.top,h.top),h.right=Kr(g.right,h.right),h.bottom=Kr(g.bottom,h.bottom),h.left=Sn(g.left,h.left),h},ey(t,c,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function nL(e){const{width:t,height:n}=QE(e);return{width:t,height:n}}function rL(e,t,n){const r=gr(t),o=mr(t),a=n==="fixed",u=zi(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const d=hr(0);function h(){d.x=fl(o)}if(r||!r&&!a)if((zo(t)!=="body"||aa(o))&&(c=dl(t)),r){const T=zi(t,!0,a,t);d.x=T.x+t.clientLeft,d.y=T.y+t.clientTop}else o&&h();a&&!r&&o&&h();const m=o&&!r&&!a?JE(o,c):hr(0),g=u.left+c.scrollLeft-d.x-m.x,b=u.top+c.scrollTop-d.y-m.y;return{x:g,y:b,width:u.width,height:u.height}}function $f(e){return Qn(e).position==="static"}function ny(e,t){if(!gr(e)||Qn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return mr(e)===n&&(n=n.ownerDocument.body),n}function ry(e,t){const n=wn(e);if(cl(e))return n;if(!gr(e)){let o=Qr(e);for(;o&&!jo(o);){if(Kn(o)&&!$f(o))return o;o=Qr(o)}return n}let r=ny(e,t);for(;r&&UR(r)&&$f(r);)r=ny(r,t);return r&&jo(r)&&$f(r)&&!Uf(r)?n:r||VR(e)||n}const iL=function(e){return et(this,null,function*(){const t=this.getOffsetParent||ry,n=this.getDimensions,r=yield n(e.floating);return{reference:rL(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}})};function oL(e){return Qn(e).direction==="rtl"}const sL={convertOffsetParentRelativeRectToViewportRelativeRect:GR,getDocumentElement:mr,getClippingRect:tL,getOffsetParent:ry,getElementRects:iL,getClientRects:KR,getDimensions:nL,getScale:$o,isElement:Kn,isRTL:oL};function iy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function aL(e,t){let n=null,r;const o=mr(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function u(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),a();const h=e.getBoundingClientRect(),{left:m,top:g,width:b,height:T}=h;if(c||t(),!b||!T)return;const x=sl(g),S=sl(o.clientWidth-(m+b)),A=sl(o.clientHeight-(g+T)),v=sl(m),k={rootMargin:-x+"px "+-S+"px "+-A+"px "+-v+"px",threshold:Sn(0,Kr(1,d))||1};let M=!0;function Y(F){const J=F[0].intersectionRatio;if(J!==d){if(!M)return u();J?u(!1,J):r=setTimeout(()=>{u(!1,1e-7)},1e3)}J===1&&!iy(h,e.getBoundingClientRect())&&u(),M=!1}try{n=new IntersectionObserver(Y,re(U({},k),{root:o.ownerDocument}))}catch(F){n=new IntersectionObserver(Y,k)}n.observe(e)}return u(!0),a}function uL(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=jf(e),m=o||a?[...h?ua(h):[],...ua(t)]:[];m.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const g=h&&c?aL(h,n):null;let b=-1,T=null;u&&(T=new ResizeObserver(v=>{let[I]=v;I&&I.target===h&&T&&(T.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var k;(k=T)==null||k.observe(t)})),n()}),h&&!d&&T.observe(h),T.observe(t));let x,S=d?zi(e):null;d&&A();function A(){const v=zi(e);S&&!iy(S,v)&&n(),S=v,x=requestAnimationFrame(A)}return n(),()=>{var v;m.forEach(I=>{o&&I.removeEventListener("scroll",n),a&&I.removeEventListener("resize",n)}),g==null||g(),(v=T)==null||v.disconnect(),T=null,d&&cancelAnimationFrame(x)}}const lL=RR,cL=LR,dL=OR,fL=MR,hL=IR,pL=NR,mL=DR,gL=(e,t,n)=>{const r=new Map,o=U({platform:sL},n),a=re(U({},o.platform),{_c:r});return kR(e,t,re(U({},o),{platform:a}))};function oy(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return re(U({},o),{toJSON:()=>o})}function EL(e){if(!e)return oy();const{x:t,y:n,width:r,height:o}=e;return oy(t,n,r,o)}function yL(e,t){return{contextElement:Dt(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t==null?void 0:t(n);return r||!n?EL(r):n.getBoundingClientRect()}}}var la=e=>({variable:e,reference:`var(${e})`}),Nr={arrowSize:la("--arrow-size"),arrowSizeHalf:la("--arrow-size-half"),arrowBg:la("--arrow-background"),transformOrigin:la("--transform-origin"),arrowOffset:la("--arrow-offset")},TL=e=>e==="top"||e==="bottom"?"y":"x";function bL(e,t){return{name:"transformOrigin",fn(n){var xe,z,se,me,de;const{elements:r,middlewareData:o,placement:a,rects:u,y:c}=n,d=a.split("-")[0],h=TL(d),m=((xe=o.arrow)==null?void 0:xe.x)||0,g=((z=o.arrow)==null?void 0:z.y)||0,b=(t==null?void 0:t.clientWidth)||0,T=(t==null?void 0:t.clientHeight)||0,x=m+b/2,S=g+T/2,A=Math.abs(((se=o.shift)==null?void 0:se.y)||0),v=u.reference.height/2,I=T/2,k=(de=(me=e.offset)==null?void 0:me.mainAxis)!=null?de:e.gutter,M=typeof k=="number"?k+I:k!=null?k:I,Y=A>M,F={top:`${x}px calc(100% + ${M}px)`,bottom:`${x}px ${-M}px`,left:`calc(100% + ${M}px) ${S}px`,right:`${-M}px ${S}px`}[d],J=`${x}px ${u.reference.y+v-c}px`,Ee=!!e.overlap&&h==="y"&&Y;return r.floating.style.setProperty(Nr.transformOrigin.variable,Ee?J:F),{data:{transformOrigin:Ee?J:F}}}}}var _L={name:"rects",fn({rects:e}){return{data:e}}},xL=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:o}=n.arrow,a=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:"",[a]:`calc(100% + ${Nr.arrowOffset.reference})`}),{}}}};function SL(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}var wL={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function sy(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Vf(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function AL(e,t,n){const r=e||t.createElement("div");return pL({element:r,padding:n.arrowPadding})}function CL(e,t){var n;if(!zI((n=t.offset)!=null?n:t.gutter))return lL(({placement:r})=>{var m,g,b,T;const o=((e==null?void 0:e.clientHeight)||0)/2,a=(g=(m=t.offset)==null?void 0:m.mainAxis)!=null?g:t.gutter,u=typeof a=="number"?a+o:a!=null?a:o,{hasAlign:c}=SL(r),d=c?void 0:t.shift,h=(T=(b=t.offset)==null?void 0:b.crossAxis)!=null?T:d;return yf({crossAxis:h,mainAxis:u,alignmentAxis:t.shift})})}function vL(e){if(!e.flip)return;const t=Vf(e.boundary);return dL(re(U({},t?{boundary:t}:void 0),{padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip}))}function kL(e){if(!e.slide&&!e.overlap)return;const t=Vf(e.boundary);return cL(re(U({},t?{boundary:t}:void 0),{mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:mL()}))}function NL(e){return fL({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:o}){const a=t.floating,u=Math.round(n.reference.width),c=Math.round(n.reference.height);o=Math.floor(o),r=Math.floor(r),a.style.setProperty("--reference-width",`${u}px`),a.style.setProperty("--reference-height",`${c}px`),a.style.setProperty("--available-width",`${o}px`),a.style.setProperty("--available-height",`${r}px`)}})}function OL(e){var t;if(e.hideWhenDetached)return hL({strategy:"referenceHidden",boundary:(t=Vf(e.boundary))!=null?t:"clippingAncestors"})}function IL(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function PL(e,t,n={}){const r=yL(e,n.getAnchorRect);if(!t||!r)return;const o=Object.assign({},wL,n),a=t.querySelector("[data-part=arrow]"),u=[CL(a,o),vL(o),kL(o),AL(a,t.ownerDocument,o),xL(a),bL({gutter:o.gutter,offset:o.offset,overlap:o.overlap},a),NL(o),OL(o),_L],{placement:c,strategy:d,onComplete:h,onPositioned:m}=o,g=()=>et(null,null,function*(){var M;if(!r||!t)return;const S=yield gL(r,t,{placement:c,middleware:u,strategy:d});h==null||h(S),m==null||m({placed:!0});const A=Po(t),v=sy(A,S.x),I=sy(A,S.y);t.style.setProperty("--x",`${v}px`),t.style.setProperty("--y",`${I}px`),o.hideWhenDetached&&(((M=S.middlewareData.hide)==null?void 0:M.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const k=t.firstElementChild;if(k){const Y=Lo(k);t.style.setProperty("--z-index",Y.zIndex)}}),b=()=>et(null,null,function*(){n.updatePosition?(yield n.updatePosition({updatePosition:g,floatingElement:t}),m==null||m({placed:!0})):yield g()}),T=IL(o.listeners),x=o.listeners?uL(r,t,b,T):QI;return b(),()=>{x==null||x(),m==null||m({placed:!1})}}function ay(e,t,n={}){const c=n,{defer:r}=c,o=Zt(c,["defer"]),a=r?kt:d=>d(),u=[];return u.push(a(()=>{const d=typeof e=="function"?e():e,h=typeof t=="function"?t():t;u.push(PL(d,h,o))})),()=>{u.forEach(d=>d==null?void 0:d())}}var RL={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function LL(e={}){const{placement:t,sameWidth:n,fitViewport:r,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:Nr.arrowSize.reference,height:Nr.arrowSize.reference,[Nr.arrowSizeHalf.variable]:`calc(${Nr.arrowSize.reference} / 2)`,[Nr.arrowOffset.variable]:`calc(${Nr.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?RL[t.split("-")[0]]:void 0,background:Nr.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:n?void 0:"max-content",width:n?"var(--reference-width)":void 0,maxWidth:r?"var(--available-width)":void 0,maxHeight:r?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}var Vo=new WeakMap,hl=new WeakMap,pl={},Yf=0,uy=e=>e&&(e.host||uy(e.parentNode)),DL=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=uy(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),ML=new Set(["script","output","status","next-route-announcer"]),FL=e=>ML.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),BL=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:o,followControlledElements:a=!0}=t,u=DL(n,Array.isArray(e)?e:[e]);pl[r]||(pl[r]=new WeakMap);const c=pl[r],d=[],h=new Set,m=new Set(u),g=T=>{!T||h.has(T)||(h.add(T),g(T.parentNode))};u.forEach(T=>{g(T),a&&Dt(T)&&_E(T,x=>{g(x)})});const b=T=>{!T||m.has(T)||Array.prototype.forEach.call(T.children,x=>{if(h.has(x))b(x);else try{if(FL(x))return;const A=x.getAttribute(o)==="true",v=(Vo.get(x)||0)+1,I=(c.get(x)||0)+1;Vo.set(x,v),c.set(x,I),d.push(x),v===1&&A&&hl.set(x,!0),I===1&&x.setAttribute(r,""),A||x.setAttribute(o,"true")}catch(S){console.error("[zag-js > ariaHidden] cannot operate on ",x,S)}})};return b(n),h.clear(),Yf++,()=>{d.forEach(T=>{const x=Vo.get(T)-1,S=c.get(T)-1;Vo.set(T,x),c.set(T,S),x||(hl.has(T)||T.removeAttribute(o),hl.delete(T)),S||T.removeAttribute(r)}),Yf--,Yf||(Vo=new WeakMap,Vo=new WeakMap,hl=new WeakMap,pl={})}},UL=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,HL=(e,t=UL(e),n="data-aria-hidden",r=!0)=>{if(t)return BL(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden",followControlledElements:r})},zL=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function ly(e,t={}){const{defer:n=!0}=t,r=n?zL:a=>a(),o=[];return o.push(r(()=>{const u=(typeof e=="function"?e():e).filter(Boolean);u.length!==0&&o.push(HL(u))})),()=>{o.forEach(a=>a==null?void 0:a())}}function jL(e){const t={each(n){var r;for(let o=0;o<((r=e.frames)==null?void 0:r.length);o+=1){const a=e.frames[o];a&&n(a)}},addEventListener(n,r,o){return t.each(a=>{try{a.document.addEventListener(n,r,o)}catch(u){}}),()=>{try{t.removeEventListener(n,r,o)}catch(a){}}},removeEventListener(n,r,o){t.each(a=>{try{a.document.removeEventListener(n,r,o)}catch(u){}})}};return t}function $L(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t==null||t.addEventListener(n,r,o)}catch(a){}return()=>{try{t==null||t.removeEventListener(n,r,o)}catch(a){}}},removeEventListener:(n,r,o)=>{try{t==null||t.removeEventListener(n,r,o)}catch(a){}}}}var cy="pointerdown.outside",dy="focus.outside";function VL(e){for(const t of e)if(Dt(t)&&fr(t))return!0;return!1}var fy=e=>"clientY"in e;function YL(e,t){if(!fy(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function qL(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function hy(e,t){if(!t||!fy(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,a=o&&e.clientY>t.offsetTop+t.clientHeight,u={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(o?16:0)},c={x:e.clientX,y:e.clientY};return qL(u,c)?r||a:!1}function WL(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:a,defer:u,followControlledElements:c=!0}=t;if(!e)return;const d=dr(e),h=Po(e),m=jL(h),g=$L(h);function b(k,M){if(!Dt(M)||!M.isConnected||Io(e,M)||YL(e,k)||c&&bE(e,M))return!1;const Y=d.querySelector(`[aria-controls="${e.id}"]`);if(Y){const J=vf(Y);if(hy(k,J))return!1}const F=vf(e);return hy(k,F)?!1:!(n!=null&&n(M))}const T=new Set,x=Fi(e==null?void 0:e.getRootNode());function S(k){function M(Y){var xe,z;const F=u&&!xE()?kt:se=>se(),J=Y!=null?Y:k,Ee=(z=(xe=J==null?void 0:J.composedPath)==null?void 0:xe.call(J))!=null?z:[J==null?void 0:J.target];F(()=>{const se=x?Ee[0]:Gn(k);if(!(!e||!b(k,se))){if(o||a){const me=Ef(o,a);e.addEventListener(cy,me,{once:!0})}py(e,cy,{bubbles:!1,cancelable:!0,detail:{originalEvent:J,contextmenu:IP(J),focusable:VL(Ee),target:se}})}})}k.pointerType==="touch"?(T.forEach(Y=>Y()),T.add(Mt(d,"click",M,{once:!0})),T.add(g.addEventListener("click",M,{once:!0})),T.add(m.addEventListener("click",M,{once:!0}))):M()}const A=new Set,v=setTimeout(()=>{A.add(Mt(d,"pointerdown",S,!0)),A.add(g.addEventListener("pointerdown",S,!0)),A.add(m.addEventListener("pointerdown",S,!0))},0);function I(k){(u?kt:Y=>Y())(()=>{var J,Ee;const Y=(Ee=(J=k==null?void 0:k.composedPath)==null?void 0:J.call(k))!=null?Ee:[k==null?void 0:k.target],F=x?Y[0]:Gn(k);if(!(!e||!b(k,F))){if(r||a){const xe=Ef(r,a);e.addEventListener(dy,xe,{once:!0})}py(e,dy,{bubbles:!1,cancelable:!0,detail:{originalEvent:k,contextmenu:!1,focusable:fr(F),target:F}})}})}return xE()||(A.add(Mt(d,"focusin",I,!0)),A.add(g.addEventListener("focusin",I,!0)),A.add(m.addEventListener("focusin",I,!0))),()=>{clearTimeout(v),T.forEach(k=>k()),A.forEach(k=>k())}}function GL(e,t){const{defer:n}=t,r=n?kt:a=>a(),o=[];return o.push(r(()=>{const a=typeof e=="function"?e():e;o.push(WL(a,t))})),()=>{o.forEach(a=>a==null?void 0:a())}}function py(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function KL(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t==null||t(r))};return Mt(dr(e),"keydown",n,{capture:!0})}var my="layer:request-dismiss",Dn={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var r;const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((r=this.topMostPointerBlockingLayer())==null?void 0:r.node):-1;return t<n},isTopMost(e){const t=this.layers[this.count()-1];return(t==null?void 0:t.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},getLayersByType(e){return this.layers.filter(t=>t.type===e)},getNestedLayersByType(e,t){const n=this.indexOf(e);return n===-1?[]:this.layers.slice(n+1).filter(r=>r.type===t)},getParentLayerOfType(e,t){const n=this.indexOf(e);if(!(n<=0))return this.layers.slice(0,n).reverse().find(r=>r.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(n=>Io(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Io(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(r=>Dn.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const r=this.countNestedLayersOfType(e.node,e.type);r>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${r}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];XL(e,my,o=>{var a;(a=r.requestDismiss)==null||a.call(r,o),o.defaultPrevented||r==null||r.dismiss()}),QL(e,my,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function QL(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(o)}function XL(e,t,n){e.addEventListener(t,n,{once:!0})}var gy;function Ey(){Dn.layers.forEach(({node:e})=>{e.style.pointerEvents=Dn.isBelowPointerBlockingLayer(e)?"none":"auto"})}function JL(e){e.style.pointerEvents=""}function ZL(e,t){const n=dr(e),r=[];return Dn.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(gy=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t==null||t.forEach(o=>{const[a,u]=eR(()=>{const c=o();return Dt(c)?c:null},{timeout:1e3});a.then(c=>r.push(el(c,{pointerEvents:"auto"}))),r.push(u)}),()=>{Dn.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=gy,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function e6(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){Tf("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:o,pointerBlocking:a,exclude:u,debug:c,type:d="dialog"}=t,h={dismiss:r,node:e,type:d,pointerBlocking:a,requestDismiss:o};Dn.add(h),Ey();function m(S){var v,I;const A=Gn(S.detail.originalEvent);Dn.isBelowPointerBlockingLayer(e)||Dn.isInBranch(A)||((v=t.onPointerDownOutside)==null||v.call(t,S),(I=t.onInteractOutside)==null||I.call(t,S),!S.defaultPrevented&&(c&&console.log("onPointerDownOutside:",S.detail.originalEvent),r==null||r()))}function g(S){var v,I;const A=Gn(S.detail.originalEvent);Dn.isInBranch(A)||((v=t.onFocusOutside)==null||v.call(t,S),(I=t.onInteractOutside)==null||I.call(t,S),!S.defaultPrevented&&(c&&console.log("onFocusOutside:",S.detail.originalEvent),r==null||r()))}function b(S){var A;Dn.isTopMost(e)&&((A=t.onEscapeKeyDown)==null||A.call(t,S),!S.defaultPrevented&&r&&(S.preventDefault(),r()))}function T(S){var k;if(!e)return!1;const A=typeof u=="function"?u():u,v=Array.isArray(A)?A:[A],I=(k=t.persistentElements)==null?void 0:k.map(M=>M()).filter(Dt);return I&&v.push(...I),v.some(M=>Io(M,S))||Dn.isInNestedLayer(e,S)}const x=[a?ZL(e,t.persistentElements):void 0,KL(e,b),GL(e,{exclude:T,onFocusOutside:g,onPointerDownOutside:m,defer:t.defer})];return()=>{Dn.remove(e),Ey(),JL(e),x.forEach(S=>S==null?void 0:S())}}function yy(e,t){const{defer:n}=t,r=n?kt:a=>a(),o=[];return o.push(r(()=>{const a=No(e)?e():e;o.push(e6(a,t))})),()=>{o.forEach(a=>a==null?void 0:a())}}var t6=Object.defineProperty,n6=(e,t,n)=>t in e?t6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ht=(e,t,n)=>n6(e,typeof t!="symbol"?t+"":t,n),Ty={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},r6=[],i6=class{constructor(e,t){ht(this,"trapStack"),ht(this,"config"),ht(this,"doc"),ht(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),ht(this,"portalContainers",new Set),ht(this,"listenerCleanups",[]),ht(this,"handleFocus",r=>{const o=Gn(r),a=this.findContainerIndex(o,r)>=0;if(a||Qu(o))a&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let u,c=!0;if(this.state.mostRecentlyFocusedNode)if(ra(this.state.mostRecentlyFocusedNode)>0){const d=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:h}=this.state.containerGroups[d];if(h.length>0){const m=h.findIndex(g=>g===this.state.mostRecentlyFocusedNode);m>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?m+1<h.length&&(u=h[m+1],c=!1):m-1>=0&&(u=h[m-1],c=!1))}}else this.state.containerGroups.some(d=>d.tabbableNodes.some(h=>ra(h)>0))||(c=!1);else c=!1;c&&(u=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),u?this.tryFocus(u):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),ht(this,"handlePointerDown",r=>{const o=Gn(r);if(!(this.findContainerIndex(o,r)>=0)){if(da(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}da(this.config.allowOutsideClick,r)||r.preventDefault()}}),ht(this,"handleClick",r=>{const o=Gn(r);this.findContainerIndex(o,r)>=0||da(this.config.clickOutsideDeactivates,r)||da(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),ht(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),a=this.findNextNavNode({event:r,isBackward:o});if(!a)return;ca(r)&&r.preventDefault(),this.tryFocus(a)}}),ht(this,"handleEscapeKey",r=>{o6(r)&&da(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),ht(this,"_mutationObserver"),ht(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(o=>{o.some(c=>Array.from(c.removedNodes).some(h=>h===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),o.some(c=>c.type==="attributes"&&(c.attributeName==="aria-controls"||c.attributeName==="aria-expanded")?!0:c.type==="childList"&&c.addedNodes.length>0?Array.from(c.addedNodes).some(d=>{if(d.nodeType!==Node.ELEMENT_NODE)return!1;const h=d;return xP(h)?!0:h.id&&!this.state.containers.some(m=>m.contains(h))?SP(h):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),ht(this,"updateObservedNodes",()=>{var r;(r=this._mutationObserver)==null||r.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(o=>{var a;(a=this._mutationObserver)==null||a.observe(o,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(o=>{this.observePortalContainer(o)}))}),ht(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!fr(r)){const o=Ro(this.doc);if(o&&this.findContainerIndex(o)>=0)r=o;else{const a=this.state.tabbableGroups[0];r=a&&a.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),ht(this,"tryFocus",r=>{if(r!==!1&&r!==Ro(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,s6(r)&&r.select()}}),ht(this,"deactivate",r=>{if(!this.state.active)return this;const o=U({onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus},r);clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),Ty.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const a=this.getOption(o,"onDeactivate"),u=this.getOption(o,"onPostDeactivate"),c=this.getOption(o,"checkCanReturnFocus"),d=this.getOption(o,"returnFocus","returnFocusOnDeactivate");a==null||a();const h=()=>{by(()=>{if(d){const m=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(m)}u==null||u()})};if(d&&c){const m=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return c(m).then(h,h),this}return h(),this}),ht(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),a=this.getOption(r,"onPostPause");return this.state.paused=!0,o==null||o(),this.removeListeners(),this.updateObservedNodes(),a==null||a(),this}),ht(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),a=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o==null||o(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),a==null||a(),this}),ht(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),ht(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),ht(this,"getOption",(r,o,a)=>r&&r[o]!==void 0?r[o]:this.config[a||o]),ht(this,"getNodeForOption",(r,{hasFallback:o=!1,params:a=[]}={})=>{let u=this.config[r];if(typeof u=="function"&&(u=u(...a)),u===!0&&(u=void 0),!u){if(u===void 0||u===!1)return u;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let c=u;if(typeof u=="string"){try{c=this.doc.querySelector(u)}catch(d){throw new Error(`\`${r}\` appears to be an invalid selector; error="${d.message}"`)}if(!c&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return c}),ht(this,"findNextNavNode",r=>{const{event:o,isBackward:a=!1}=r,u=r.target||Gn(o);this.updateTabbableNodes();let c=null;if(this.state.tabbableGroups.length>0){const d=this.findContainerIndex(u,o),h=d>=0?this.state.containerGroups[d]:void 0;if(d<0)a?c=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:c=this.state.tabbableGroups[0].firstTabbableNode;else if(a){let m=this.state.tabbableGroups.findIndex(({firstTabbableNode:g})=>u===g);if(m<0&&((h==null?void 0:h.container)===u||fr(u)&&!Bi(u)&&!(h!=null&&h.nextTabbableNode(u,!1)))&&(m=d),m>=0){const g=m===0?this.state.tabbableGroups.length-1:m-1,b=this.state.tabbableGroups[g];c=ra(u)>=0?b.lastTabbableNode:b.lastDomTabbableNode}else ca(o)||(c=h==null?void 0:h.nextTabbableNode(u,!1))}else{let m=this.state.tabbableGroups.findIndex(({lastTabbableNode:g})=>u===g);if(m<0&&((h==null?void 0:h.container)===u||fr(u)&&!Bi(u)&&!(h!=null&&h.nextTabbableNode(u)))&&(m=d),m>=0){const g=m===this.state.tabbableGroups.length-1?0:m+1,b=this.state.tabbableGroups[g];c=ra(u)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else ca(o)||(c=h==null?void 0:h.nextTabbableNode(u))}}else c=this.getNodeForOption("fallbackFocus");return c}),this.trapStack=t.trapStack||r6;const n=U({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward(r){return ca(r)&&!r.shiftKey},isKeyBackward(r){return ca(r)&&r.shiftKey}},t);this.doc=n.document||dr(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){var t;(t=this._mutationObserver)==null||t.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{TP(e).forEach(n=>{this.addPortalContainer(n)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof(t==null?void 0:t.composedPath)=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||(n==null?void 0:n.includes(r))||o.find(a=>a===e)||this.isControlledElement(r,e))}isControlledElement(e,t){return this.config.followControlledElements?bE(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=Do(e,{getShadowRoot:this.config.getShadowRoot}),n=NE(e,{getShadowRoot:this.config.getShadowRoot}),r=t[0],o=t[t.length-1],a=r,u=o;let c=!1;for(let h=0;h<t.length;h++)if(ra(t[h])>0){c=!0;break}function d(h,m=!0){const g=t.indexOf(h);if(g>=0)return t[g+(m?1:-1)];const b=n.indexOf(h);if(!(b<0)){if(m){for(let T=b+1;T<n.length;T++)if(Bi(n[T]))return n[T]}else for(let T=b-1;T>=0;T--)if(Bi(n[T]))return n[T]}}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:u,nextTabbableNode:d}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return Ty.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?by(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(Mt(this.doc,"focusin",this.handleFocus,!0),Mt(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),Mt(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),Mt(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),Mt(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),Mt(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=Ro(this.doc),t==null||t();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n==null||n()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},ca=e=>e.key==="Tab",da=(e,...t)=>typeof e=="function"?e(...t):e,o6=e=>!e.isComposing&&e.key==="Escape",by=e=>setTimeout(e,0),s6=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function _y(e,t={}){let n;const r=kt(()=>{const o=typeof e=="function"?e():e;if(o){n=new i6(o,re(U({escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o},t),{document:dr(o)}));try{n.activate()}catch(a){}}});return function(){n==null||n.deactivate(),r()}}var qf="data-scroll-lock";function a6(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function xy(e){const t=Lo(e),n=t==null?void 0:t.scrollbarGutter;return n==="stable"||(n==null?void 0:n.startsWith("stable "))===!0}function Sy(e){var T;const t=e!=null?e:document,n=(T=t.defaultView)!=null?T:window,{documentElement:r,body:o}=t;if(o.hasAttribute(qf))return;const u=xy(r)||xy(o),c=n.innerWidth-r.clientWidth;o.setAttribute(qf,"");const d=()=>JP(r,"--scrollbar-width",`${c}px`),h=a6(r),m=()=>{const x={overflow:"hidden"};return!u&&c>0&&(x[h]=`${c}px`),el(o,x)},g=()=>{var Y,F;const{scrollX:x,scrollY:S,visualViewport:A}=n,v=(Y=A==null?void 0:A.offsetLeft)!=null?Y:0,I=(F=A==null?void 0:A.offsetTop)!=null?F:0,k={position:"fixed",overflow:"hidden",top:`${-(S-Math.floor(I))}px`,left:`${-(x-Math.floor(v))}px`,right:"0"};!u&&c>0&&(k[h]=`${c}px`);const M=el(o,k);return()=>{M==null||M(),n.scrollTo({left:x,top:S,behavior:"instant"})}},b=[d(),Xu()?g():m()];return()=>{b.forEach(x=>x==null?void 0:x()),o.removeAttribute(qf)}}var u6=Hi("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger"),Er=u6.build(),wy=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.anchor)!=null?n:`popover:${e.id}:anchor`},Ay=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.trigger)!=null?n:`popover:${e.id}:trigger`},Wf=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.content)!=null?n:`popover:${e.id}:content`},Cy=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.positioner)!=null?n:`popover:${e.id}:popper`},l6=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.arrow)!=null?n:`popover:${e.id}:arrow`},Gf=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.title)!=null?n:`popover:${e.id}:title`},Kf=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.description)!=null?n:`popover:${e.id}:desc`},c6=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.closeTrigger)!=null?n:`popover:${e.id}:close`},vy=e=>e.getById(wy(e)),Yo=e=>e.getById(Ay(e)),qo=e=>e.getById(Wf(e)),ky=e=>e.getById(Cy(e)),d6=e=>e.getById(Gf(e)),f6=e=>e.getById(Kf(e));function h6(e,t){const{state:n,context:r,send:o,computed:a,prop:u,scope:c}=e,d=n.matches("open"),h=r.get("currentPlacement"),m=a("currentPortalled"),g=r.get("renderedElements"),b=LL(re(U({},u("positioning")),{placement:h}));return{portalled:m,open:d,setOpen(T){n.matches("open")!==T&&o({type:T?"OPEN":"CLOSE"})},reposition(T={}){o({type:"POSITIONING.SET",options:T})},getArrowProps(){return t.element(re(U({id:l6(c)},Er.arrow.attrs),{dir:u("dir"),style:b.arrow}))},getArrowTipProps(){return t.element(re(U({},Er.arrowTip.attrs),{dir:u("dir"),style:b.arrowTip}))},getAnchorProps(){return t.element(re(U({},Er.anchor.attrs),{dir:u("dir"),id:wy(c)}))},getTriggerProps(){return t.button(re(U({},Er.trigger.attrs),{dir:u("dir"),type:"button","data-placement":h,id:Ay(c),"aria-haspopup":"dialog","aria-expanded":d,"data-state":d?"open":"closed","aria-controls":Wf(c),onPointerDown(T){SE(T)&&NP()&&T.currentTarget.focus()},onClick(T){T.defaultPrevented||o({type:"TOGGLE"})},onBlur(T){o({type:"TRIGGER_BLUR",target:T.relatedTarget})}}))},getIndicatorProps(){return t.element(re(U({},Er.indicator.attrs),{dir:u("dir"),"data-state":d?"open":"closed"}))},getPositionerProps(){return t.element(re(U({id:Cy(c)},Er.positioner.attrs),{dir:u("dir"),style:b.floating}))},getContentProps(){return t.element(re(U({},Er.content.attrs),{dir:u("dir"),id:Wf(c),tabIndex:-1,role:"dialog","aria-modal":EE(u("modal")),hidden:!d,"data-state":d?"open":"closed","data-expanded":Oo(d),"aria-labelledby":g.title?Gf(c):void 0,"aria-describedby":g.description?Kf(c):void 0,"data-placement":h}))},getTitleProps(){return t.element(re(U({},Er.title.attrs),{id:Gf(c),dir:u("dir")}))},getDescriptionProps(){return t.element(re(U({},Er.description.attrs),{id:Kf(c),dir:u("dir")}))},getCloseTriggerProps(){return t.button(re(U({},Er.closeTrigger.attrs),{dir:u("dir"),id:c6(c),type:"button","aria-label":"close",onClick(T){T.defaultPrevented||(T.stopPropagation(),o({type:"CLOSE"}))}}))}}}var p6={props({props:e}){return re(U({closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0},e),{positioning:U({placement:"bottom"},e.positioning)})},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}}))}},computed:{currentPortalled:({prop:e})=>!!e("modal")||!!e("portalled")},watch({track:e,prop:t,action:n}){e([()=>t("open")],()=>{n(["toggleVisibility"])})},entry:["checkRenderedElements"],states:{closed:{on:{"CONTROLLED.OPEN":{target:"open",actions:["setInitialFocus"]},TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus"]}]}},open:{effects:["trapFocus","preventScroll","hideContentBelow","trackPositioning","trackDismissableElement","proxyTabFocus"],on:{"CONTROLLED.CLOSE":{target:"closed",actions:["setFinalFocus"]},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose","setFinalFocus"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackPositioning({context:e,prop:t,scope:n}){var a;e.set("currentPlacement",t("positioning").placement);const r=(a=vy(n))!=null?a:Yo(n);return ay(r,()=>ky(n),re(U({},t("positioning")),{defer:!0,onComplete(u){e.set("currentPlacement",u.placement)}}))},trackDismissableElement({send:e,prop:t,scope:n}){const r=()=>qo(n);let o=!0;return yy(r,{type:"popover",pointerBlocking:t("modal"),exclude:Yo(n),defer:!0,onEscapeKeyDown(a){var u;(u=t("onEscapeKeyDown"))==null||u(a),!t("closeOnEscape")&&a.preventDefault()},onInteractOutside(a){var u;(u=t("onInteractOutside"))==null||u(a),!a.defaultPrevented&&(o=!(a.detail.focusable||a.detail.contextmenu),t("closeOnInteractOutside")||a.preventDefault())},onPointerDownOutside:t("onPointerDownOutside"),onFocusOutside:t("onFocusOutside"),persistentElements:t("persistentElements"),onRequestDismiss:t("onRequestDismiss"),onDismiss(){e({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},proxyTabFocus({prop:e,scope:t}){return e("modal")||!e("portalled")?void 0:QP(()=>qo(t),{triggerElement:Yo(t),defer:!0,getShadowRoot:!0,onFocus(r){r.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t}){return e("modal")?ly(()=>[qo(t),Yo(t)],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e("modal"))return Sy(t.getDoc())},trapFocus({prop:e,scope:t}){return e("modal")?_y(()=>qo(t),{initialFocus:()=>OE({root:qo(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")}),getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:n,context:r}){var u;const o=(u=vy(n))!=null?u:Yo(n);ay(o,()=>ky(n),re(U(U({},t("positioning")),e.options),{defer:!0,listeners:!1,onComplete(c){r.set("currentPlacement",c.placement)}}))},checkRenderedElements({context:e,scope:t}){kt(()=>{Object.assign(e.get("renderedElements"),{title:!!d6(t),description:!!f6(t)})})},setInitialFocus({prop:e,scope:t}){e("modal")||kt(()=>{const n=OE({root:qo(t),getInitialEl:e("initialFocusEl"),enabled:e("autoFocus")});n==null||n.focus({preventScroll:!0})})},setFinalFocus({event:e,scope:t}){var r,o;const n=(o=e.restoreFocus)!=null?o:(r=e.previousEvent)==null?void 0:r.restoreFocus;n!=null&&!n||kt(()=>{const a=Yo(t);a==null||a.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{var n;(n=e("onOpenChange"))==null||n({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{var n;(n=e("onOpenChange"))==null||n({open:!1})})},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}};Bo()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const[_F,ml]=Ui({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}}),[xF,Qf]=Ui({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),m6=e=>{const t=te.useId(),{getRootNode:n}=ml(),{dir:r}=Qf(),o=U({id:t,dir:r,getRootNode:n},e),a=nl(p6,o);return h6(a,Of)},g6=e=>{const[t,u]=UE(e),c=u,{children:n}=c,r=Zt(c,["children"]),o=m6(r),a=Rf(Nt({present:o.open},t));return L.jsx(dR,{value:o,children:L.jsx(ME,{value:a,children:n})})},Ny=te.forwardRef((e,t)=>{const n=Pf(),r=ia(),o=Nt(re(U({},n.getTriggerProps()),{"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]}),e);return L.jsx(Gt.button,re(U({},o),{ref:t}))});Ny.displayName="PopoverTrigger";function E6(e){return ln({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.854 3.646a.5.5 0 0 1 0 .708L8.207 8l3.647 3.646a.5.5 0 0 1-.708.708l-4-4a.5.5 0 0 1 0-.708l4-4a.5.5 0 0 1 .708 0M4.5 1a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 1 0v-13a.5.5 0 0 0-.5-.5"},child:[]}]})(e)}function y6(e){return ln({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.146 3.646a.5.5 0 0 0 0 .708L7.793 8l-3.647 3.646a.5.5 0 0 0 .708.708l4-4a.5.5 0 0 0 0-.708l-4-4a.5.5 0 0 0-.708 0M11.5 1a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-1 0v-13a.5.5 0 0 1 .5-.5"},child:[]}]})(e)}function T6(e){return ln({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"},child:[]}]})(e)}function b6(e){return ln({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"},child:[]}]})(e)}function _6(e){return ln({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"},child:[]}]})(e)}function Oy(e){return ln({attr:{version:"1.1",viewBox:"0 0 17 17"},child:[{tag:"g",attr:{},child:[]},{tag:"path",attr:{d:"M6 8h-6v-6h1v4.109c1.013-3.193 4.036-5.484 7.5-5.484 3.506 0 6.621 2.36 7.574 5.739l-0.963 0.271c-0.832-2.95-3.551-5.011-6.611-5.011-3.226 0.001-6.016 2.276-6.708 5.376h4.208v1zM11 9v1h4.208c-0.693 3.101-3.479 5.375-6.708 5.375-3.062 0-5.78-2.061-6.611-5.011l-0.963 0.271c0.952 3.379 4.067 5.739 7.574 5.739 3.459 0 6.475-2.28 7.5-5.482v4.108h1v-6h-6z"},child:[]}]})(e)}const x6=(e,t,n)=>{const r=new CustomEvent(Pw,{detail:{event:e,property:t,value:n}});window.dispatchEvent(r)},S6=(e,t,n)=>{const r=new CustomEvent(Iw,{detail:{event:e,property:t,value:n}});window.dispatchEvent(r)},w6=(e,t,n)=>{const r=new CustomEvent(Ow,{detail:{property:e,value:t,event:n}});window.dispatchEvent(r)};class A6{constructor(){Ne(this,"initialParams",{categoryId:"",categoryName:"",page:null,pageSize:null,includeFacets:!0,facetFilters:{},rangeFilters:[],catalogSegment:null,pricebooks:null});Ne(this,"categoryIdProxy");Ne(this,"facetFiltersProxy");Ne(this,"rangeFiltersProxy");Ne(this,"catalogSegmentProxy");Ne(this,"pricebooksProxy");Ne(this,"_fullGet",(t,n)=>Reflect.get(t,n));Ne(this,"_fullSet",(t,n,r)=>{const o=Rw[n];return S6(o,n,r),Reflect.set(t,n,r)});Ne(this,"updateFacetFiltersProxy",t=>new Proxy({facetFilters:t},{get:this._fullGet,set:this._fullSet}));Ne(this,"updateRangeFiltersProxy",t=>new Proxy({rangeFilters:t},{get:this._fullGet,set:this._fullSet}));Ne(this,"updatePricebooksProxy",t=>new Proxy({pricebooks:t},{get:this._fullGet,set:this._fullSet}));this.categoryIdProxy=new Proxy({categoryId:this.initialParams.categoryId,categoryName:this.initialParams.categoryName},{get:this._fullGet,set:this._fullSet}),this.facetFiltersProxy=this.updateFacetFiltersProxy(this.initialParams.facetFilters||{}),this.rangeFiltersProxy=this.updateRangeFiltersProxy(this.initialParams.rangeFilters||[]),this.catalogSegmentProxy=new Proxy({catalogSegment:this.initialParams.catalogSegment},{get:this._fullGet,set:this._fullSet}),this.pricebooksProxy=this.updatePricebooksProxy(this.initialParams.pricebooks||null)}get categoryId(){return this.categoryIdProxy.categoryId||""}get facetFilters(){return this.facetFiltersProxy.facetFilters||{}}get rangeFilters(){return this.rangeFiltersProxy.rangeFilters||[]}get catalogSegment(){return this.catalogSegmentProxy.catalogSegment||null}get pricebooks(){return this.pricebooksProxy.pricebooks||null}get state(){return{categoryId:this.categoryId,categoryName:this.categoryIdProxy.categoryName,facetFilters:this.facetFilters,rangeFilters:this.rangeFilters,catalogSegment:this.catalogSegment,pricebooks:this.pricebooks,page:this.initialParams.page,pageSize:this.initialParams.pageSize,includeFacets:this.initialParams.includeFacets}}}new A6;class C6{constructor(){Ne(this,"initialParams",{productId:"",productName:"",pdpLink:""});Ne(this,"proxy");Ne(this,"_fullGet",(t,n)=>Reflect.get(t,n));Ne(this,"_fullSet",(t,n,r)=>(w6(n,r),Reflect.set(t,n,r)));Ne(this,"updateProxy",t=>{t.productId&&(this.proxy=new Proxy({productId:t.productId,productName:t.productName||"",pdpLink:t.pdpLink||""},{get:this._fullGet,set:this._fullSet}))});this.proxy=new Proxy({productId:this.initialParams.productId,productName:this.initialParams.productName,pdpLink:this.initialParams.pdpLink},{get:this._fullGet,set:this._fullSet})}get productId(){return this.proxy.productId}get pdpLink(){return this.proxy.pdpLink}get state(){return{productId:this.productId,productName:this.proxy.productName,pdpLink:this.pdpLink}}}new C6;class v6{constructor(){Ne(this,"initialParams",{query:"",page:null,pageSize:null,includeFacets:!0,facetFilters:{},rangeFilters:[],catalogSegment:null,pricebooks:null});Ne(this,"queryProxy");Ne(this,"facetFiltersProxy");Ne(this,"rangeFiltersProxy");Ne(this,"catalogSegmentProxy");Ne(this,"pricebooksProxy");Ne(this,"_fullGet",(t,n)=>Reflect.get(t,n));Ne(this,"_fullSet",(t,n,r)=>{const o=Px[n];return x6(o,n,r),Reflect.set(t,n,r)});Ne(this,"updateFacetFiltersProxy",t=>new Proxy({facetFilters:t},{get:this._fullGet,set:this._fullSet}));Ne(this,"updateRangeFiltersProxy",t=>new Proxy({rangeFilters:t},{get:this._fullGet,set:this._fullSet}));Ne(this,"updatePricebooksProxy",t=>new Proxy({pricebooks:t},{get:this._fullGet,set:this._fullSet}));this.queryProxy=new Proxy({query:this.initialParams.query},{get:this._fullGet,set:this._fullSet}),this.facetFiltersProxy=this.updateFacetFiltersProxy(this.initialParams.facetFilters||{}),this.rangeFiltersProxy=this.updateRangeFiltersProxy(this.initialParams.rangeFilters||[]),this.catalogSegmentProxy=new Proxy({catalogSegment:this.initialParams.catalogSegment},{get:this._fullGet,set:this._fullSet}),this.pricebooksProxy=this.updatePricebooksProxy(this.initialParams.pricebooks||null)}get query(){return this.queryProxy.query||""}get facetFilters(){return this.facetFiltersProxy.facetFilters||{}}get rangeFilters(){return this.rangeFiltersProxy.rangeFilters||[]}get catalogSegment(){return this.catalogSegmentProxy.catalogSegment||null}get pricebooks(){return this.pricebooksProxy.pricebooks||null}get state(){return{query:this.query,facetFilters:this.facetFilters,rangeFilters:this.rangeFilters,catalogSegment:this.catalogSegment,pricebooks:this.pricebooks,page:this.initialParams.page,pageSize:this.initialParams.pageSize,includeFacets:this.initialParams.includeFacets}}}new v6;const k6=te.createContext({copilot:null,messages:[],groupedMessages:[],isLoading:!1,isResponseLoading:()=>!1,handleAskCim:()=>{},handleSearch:()=>{},handleBrowse:()=>{},handlePdp:()=>{},handleSuggestion:()=>{},handleUserInput:()=>{},handleCancel:()=>{},resetConversation:()=>{},getSessionInformation:()=>{},getConversationMessages:()=>{}}),N6=()=>{const e=te.useContext(k6);if(!e)throw new Error("useCopilot must be used within a CopilotProvider");return e},O6=({onClearChat:e,componentType:t})=>{const{resetConversation:n}=N6(),r=()=>{n(),e()};return L.jsxs("button",{className:fe(`${X}-overflow-menu-button`,"clear-chat-button",t),onClick:r,children:[L.jsx(Oy,{}),"Clear chat"]})},I6=({className:e,componentType:t,children:n})=>{const[r,o]=te.useState(!1),{globalClassName:a}=tn(),u=()=>{o(!1)},c=d=>{o(d.open)};return L.jsxs(g6,{open:r,onOpenChange:c,positioning:{placement:"bottom-end"},children:[L.jsx(Ny,{"aria-label":`Overflow menu for ${t}`,className:fe(`${X}-overflow-menu-button-trigger`,`${X}-icon-button`,a,e,t),children:L.jsx(_6,{})}),L.jsx(BE,{children:L.jsxs(FE,{className:fe(`${X}-overflow-menu-list`,a,t),children:[n,L.jsx(O6,{componentType:t,onClearChat:u})]})})]})};function Iy(e){return ln({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M15 4.00008H13V11.0001H20V9.00008H16.4142L20.7071 4.70718L19.2929 3.29297L15 7.58586V4.00008ZM4.00008 15H7.58586L3.29297 19.2929L4.70718 20.7071L9.00008 16.4142V20H11.0001V13H4.00008V15Z"},child:[]}]})(e)}function Py(e){return ln({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M17.5858 5H14V3H21V10H19V6.41421L14.7071 10.7071L13.2929 9.29289L17.5858 5ZM3 14H5V17.5858L9.29289 13.2929L10.7071 14.7071L6.41421 19H10V21H3V14Z"},child:[]}]})(e)}const[P6,ji]=Ui({name:"CarouselContext",hookName:"useCarouselContext",providerName:"<CarouselProvider />"}),Ry=te.forwardRef((e,t)=>{const n=ji(),r=Nt(n.getControlProps(),e);return L.jsx(Gt.div,re(U(U({},r),e),{ref:t}))});Ry.displayName="CarouselControl";const Ly=te.forwardRef((e,t)=>{const[n,r]=oa()(e,["readOnly","index"]),o=ji(),a=Nt(o.getIndicatorProps(n),r);return L.jsx(Gt.button,re(U({},a),{ref:t}))});Ly.displayName="CarouselIndicator";const Dy=te.forwardRef((e,t)=>{const n=ji(),r=Nt(n.getIndicatorGroupProps(),e);return L.jsx(Gt.div,re(U({},r),{ref:t}))});Dy.displayName="CarouselIndicatorGroup";const My=te.forwardRef((e,t)=>{const[n,r]=oa()(e,["index","snapAlign"]),o=ji(),a=Nt(o.getItemProps(n),r);return L.jsx(Gt.div,re(U({},a),{ref:t}))});My.displayName="CarouselItem";const Fy=te.forwardRef((e,t)=>{const n=ji(),r=Nt(n.getItemGroupProps(),e);return L.jsx(Gt.div,re(U({},r),{ref:t}))});Fy.displayName="CarouselItemGroup";const By=te.forwardRef((e,t)=>{const n=ji(),r=Nt(n.getNextTriggerProps(),e);return L.jsx(Gt.button,re(U({},r),{ref:t}))});By.displayName="CarouselNextTrigger";const Uy=te.forwardRef((e,t)=>{const n=ji(),r=Nt(n.getPrevTriggerProps(),e);return L.jsx(Gt.button,re(U({},r),{ref:t}))});Uy.displayName="CarouselPrevTrigger";function R6(e){const t=Lo(e),n=e.getBoundingClientRect();let r=t.getPropertyValue("scroll-padding-left").replace("auto","0px"),o=t.getPropertyValue("scroll-padding-top").replace("auto","0px"),a=t.getPropertyValue("scroll-padding-right").replace("auto","0px"),u=t.getPropertyValue("scroll-padding-bottom").replace("auto","0px");function c(b,T){let x=parseFloat(b);return/%/.test(b)&&(x/=100,x*=T),Number.isNaN(x)?0:x}let d=c(r,n.width),h=c(o,n.height),m=c(a,n.width),g=c(u,n.height);return{x:{before:d,after:m},y:{before:h,after:g}}}function L6(e,t,n="both"){return n==="x"&&e.right>=t.left&&e.left<=t.right||n==="y"&&e.bottom>=t.top&&e.top<=t.bottom||n==="both"&&e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}function Hy(e){let t=[];for(const n of e.children)t=t.concat(n,Hy(n));return t}function zy(e,t=!1){const n=e.getBoundingClientRect(),r={x:{start:[],center:[],end:[]},y:{start:[],center:[],end:[]}},o=t?Hy(e):e.children;for(const a of["x","y"]){const u=a==="x"?"y":"x",c=a==="x"?"left":"top",d=a==="x"?"width":"height",h=a==="x"?"scrollLeft":"scrollTop";for(const m of o){const g=m.getBoundingClientRect();if(!L6(n,g,u))continue;const b=Lo(m);let[T,x]=b.getPropertyValue("scroll-snap-align").split(" ");typeof x=="undefined"&&(x=T);const S=a==="x"?x:T,A=g[c]-n[c]+e[h];switch(S){case"none":break;case"start":r[a].start.push({node:m,position:A});break;case"center":r[a].center.push({node:m,position:A+g[d]/2});break;case"end":r[a].end.push({node:m,position:A+g[d]});break}}}return r}function jy(e){const t=e.getBoundingClientRect(),n=R6(e),r=zy(e),o={x:e.scrollWidth-e.offsetWidth,y:e.scrollHeight-e.offsetHeight};return{x:$y([...r.x.start.map(a=>a.position-n.x.before),...r.x.center.map(a=>a.position-t.width/2),...r.x.end.map(a=>a.position-t.width+n.x.after)].map(Vy(0,o.x))),y:$y([...r.y.start.map(a=>a.position-n.y.before),...r.y.center.map(a=>a.position-t.height/2),...r.y.end.map(a=>a.position-t.height+n.y.after)].map(Vy(0,o.y)))}}function D6(e,t,n){const r=zy(e),o=[...r[t].start,...r[t].center,...r[t].end];for(const a of o)if(n(a.node))return a.position}var $y=e=>[...new Set(e)],Vy=(e,t)=>n=>Math.max(e,Math.min(t,n)),M6=Hi("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger"),Or=M6.build(),F6=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.root)!=null?n:`carousel:${e.id}`},B6=(e,t)=>{var n,r,o;return(o=(r=(n=e.ids)==null?void 0:n.item)==null?void 0:r.call(n,t))!=null?o:`carousel:${e.id}:item:${t}`},gl=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.itemGroup)!=null?n:`carousel:${e.id}:item-group`},U6=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.nextTrigger)!=null?n:`carousel:${e.id}:next-trigger`},H6=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.prevTrigger)!=null?n:`carousel:${e.id}:prev-trigger`},z6=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.indicatorGroup)!=null?n:`carousel:${e.id}:indicator-group`},Yy=(e,t)=>{var n,r,o;return(o=(r=(n=e.ids)==null?void 0:n.indicator)==null?void 0:r.call(n,t))!=null?o:`carousel:${e.id}:indicator:${t}`},hn=e=>e.getById(gl(e)),qy=e=>XP(hn(e),"[data-part=item]"),j6=(e,t)=>e.getById(Yy(e,t)),Wy=e=>{const t=hn(e);if(!t)return;const n=Do(t);t.setAttribute("tabindex",n.length>0?"-1":"0")};function $6(e,t){const{state:n,context:r,computed:o,send:a,scope:u,prop:c}=e,d=n.matches("autoplay"),h=n.matches("dragging"),m=o("canScrollNext"),g=o("canScrollPrev"),b=o("isHorizontal"),T=Array.from(r.get("pageSnapPoints")),x=r.get("page"),S=c("slidesPerPage"),A=c("padding"),v=c("translations");return{isPlaying:d,isDragging:h,page:x,pageSnapPoints:T,canScrollNext:m,canScrollPrev:g,getProgress(){return x/T.length},scrollToIndex(I,k){a({type:"INDEX.SET",index:I,instant:k})},scrollTo(I,k){a({type:"PAGE.SET",index:I,instant:k})},scrollNext(I){a({type:"PAGE.NEXT",instant:I})},scrollPrev(I){a({type:"PAGE.PREV",instant:I})},play(){a({type:"AUTOPLAY.START"})},pause(){a({type:"AUTOPLAY.PAUSE"})},isInView(I){return Array.from(r.get("slidesInView")).includes(I)},refresh(){a({type:"SNAP.REFRESH"})},getRootProps(){return t.element(re(U({},Or.root.attrs),{id:F6(u),role:"region","aria-roledescription":"carousel","data-orientation":c("orientation"),dir:c("dir"),style:{"--slides-per-page":S,"--slide-spacing":c("spacing"),"--slide-item-size":"calc(100% / var(--slides-per-page) - var(--slide-spacing) * (var(--slides-per-page) - 1) / var(--slides-per-page))"}}))},getItemGroupProps(){return t.element(re(U({},Or.itemGroup.attrs),{id:gl(u),"data-orientation":c("orientation"),"data-dragging":Oo(h),dir:c("dir"),"aria-live":d?"off":"polite",onFocus(I){Io(I.currentTarget,Gn(I))&&a({type:"VIEWPORT.FOCUS"})},onBlur(I){Io(I.currentTarget,I.relatedTarget)||a({type:"VIEWPORT.BLUR"})},onMouseDown(I){if(I.defaultPrevented||!c("allowMouseDrag")||!SE(I))return;const k=Gn(I);fr(k)&&k!==I.currentTarget||(I.preventDefault(),a({type:"DRAGGING.START"}))},onWheel:XI(I=>{const k=c("orientation")==="horizontal"?"deltaX":"deltaY";I[k]<0&&!o("canScrollPrev")||I[k]>0&&!o("canScrollNext")||a({type:"USER.SCROLL"})},150),onTouchStart(){a({type:"USER.SCROLL"})},style:{display:"grid",gap:"var(--slide-spacing)",scrollSnapType:[b?"x":"y",c("snapType")].join(" "),gridAutoFlow:b?"column":"row",scrollbarWidth:"none",overscrollBehaviorX:"contain",[b?"gridAutoColumns":"gridAutoRows"]:"var(--slide-item-size)",[b?"scrollPaddingInline":"scrollPaddingBlock"]:A,[b?"paddingInline":"paddingBlock"]:A,[b?"overflowX":"overflowY"]:"auto"}}))},getItemProps(I){const k=r.get("slidesInView").includes(I.index);return t.element(re(U({},Or.item.attrs),{id:B6(u,I.index),dir:c("dir"),role:"group","data-index":I.index,"data-inview":Oo(k),"aria-roledescription":"slide","data-orientation":c("orientation"),"aria-label":v.item(I.index,c("slideCount")),"aria-hidden":EE(!k),style:{scrollSnapAlign:(()=>{var Ee;const M=(Ee=I.snapAlign)!=null?Ee:"start",Y=c("slidesPerMove"),F=Y==="auto"?Math.floor(c("slidesPerPage")):Y;return(I.index+F)%F===0?M:void 0})()}}))},getControlProps(){return t.element(re(U({},Or.control.attrs),{"data-orientation":c("orientation")}))},getPrevTriggerProps(){return t.button(re(U({},Or.prevTrigger.attrs),{id:H6(u),type:"button",disabled:!g,dir:c("dir"),"aria-label":v.prevTrigger,"data-orientation":c("orientation"),"aria-controls":gl(u),onClick(I){I.defaultPrevented||a({type:"PAGE.PREV",src:"trigger"})}}))},getNextTriggerProps(){return t.button(re(U({},Or.nextTrigger.attrs),{dir:c("dir"),id:U6(u),type:"button","aria-label":v.nextTrigger,"data-orientation":c("orientation"),"aria-controls":gl(u),disabled:!m,onClick(I){I.defaultPrevented||a({type:"PAGE.NEXT",src:"trigger"})}}))},getIndicatorGroupProps(){return t.element(re(U({},Or.indicatorGroup.attrs),{dir:c("dir"),id:z6(u),"data-orientation":c("orientation"),onKeyDown(I){if(I.defaultPrevented)return;const k="indicator",M={ArrowDown(J){b||(a({type:"PAGE.NEXT",src:k}),J.preventDefault())},ArrowUp(J){b||(a({type:"PAGE.PREV",src:k}),J.preventDefault())},ArrowRight(J){b&&(a({type:"PAGE.NEXT",src:k}),J.preventDefault())},ArrowLeft(J){b&&(a({type:"PAGE.PREV",src:k}),J.preventDefault())},Home(J){a({type:"PAGE.SET",index:0,src:k}),J.preventDefault()},End(J){a({type:"PAGE.SET",index:T.length-1,src:k}),J.preventDefault()}},Y=LP(I,{dir:c("dir"),orientation:c("orientation")}),F=M[Y];F==null||F(I)}}))},getIndicatorProps(I){return t.button(re(U({},Or.indicator.attrs),{dir:c("dir"),id:Yy(u,I.index),type:"button","data-orientation":c("orientation"),"data-index":I.index,"data-readonly":Oo(I.readOnly),"data-current":Oo(I.index===x),"aria-label":v.indicator(I.index),onClick(k){k.defaultPrevented||I.readOnly||a({type:"PAGE.SET",index:I.index,src:"indicator"})}}))},getAutoplayTriggerProps(){return t.button(re(U({},Or.autoplayTrigger.attrs),{type:"button","data-orientation":c("orientation"),"data-pressed":Oo(d),"aria-label":d?v.autoplayStop:v.autoplayStart,onClick(I){I.defaultPrevented||a({type:d?"AUTOPLAY.PAUSE":"AUTOPLAY.START"})}}))}}}var V6={props({props:e}){return rP(e,["slideCount"],"carousel"),re(U({dir:"ltr",defaultPage:0,orientation:"horizontal",snapType:"mandatory",loop:!!e.autoplay,slidesPerPage:1,slidesPerMove:"auto",spacing:"0px",autoplay:!1,allowMouseDrag:!1,inViewThreshold:.6},e),{translations:U({nextTrigger:"Next slide",prevTrigger:"Previous slide",indicator:t=>`Go to slide ${t+1}`,item:(t,n)=>`${t+1} of ${n}`,autoplayStart:"Start slide rotation",autoplayStop:"Stop slide rotation"},e.translations)})},refs(){return{timeoutRef:void 0}},initialState({prop:e}){return e("autoplay")?"autoplay":"idle"},context({prop:e,bindable:t,getContext:n}){return{page:t(()=>({defaultValue:e("defaultPage"),value:e("page"),onChange(r){var u;const a=n().get("pageSnapPoints");(u=e("onPageChange"))==null||u({page:r,pageSnapPoint:a[r]})}})),pageSnapPoints:t(()=>({defaultValue:Y6(e("slideCount"),e("slidesPerMove"),e("slidesPerPage"))})),slidesInView:t(()=>({defaultValue:[]}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",isHorizontal:({prop:e})=>e("orientation")==="horizontal",canScrollNext:({prop:e,context:t})=>e("loop")||t.get("page")<t.get("pageSnapPoints").length-1,canScrollPrev:({prop:e,context:t})=>e("loop")||t.get("page")>0,autoplayInterval:({prop:e})=>{const t=e("autoplay");return HI(t)?t.delay:4e3}},watch({track:e,action:t,context:n,prop:r,send:o}){e([()=>r("slidesPerPage"),()=>r("slidesPerMove")],()=>{t(["setSnapPoints"])}),e([()=>n.get("page")],()=>{t(["scrollToPage","focusIndicatorEl"])}),e([()=>r("orientation")],()=>{t(["setSnapPoints","scrollToPage"])}),e([()=>r("slideCount")],()=>{o({type:"SNAP.REFRESH",src:"slide.count"})}),e([()=>!!r("autoplay")],()=>{o({type:r("autoplay")?"AUTOPLAY.START":"AUTOPLAY.PAUSE",src:"autoplay.prop.change"})})},on:{"PAGE.NEXT":{target:"idle",actions:["clearScrollEndTimer","setNextPage"]},"PAGE.PREV":{target:"idle",actions:["clearScrollEndTimer","setPrevPage"]},"PAGE.SET":{target:"idle",actions:["clearScrollEndTimer","setPage"]},"INDEX.SET":{target:"idle",actions:["clearScrollEndTimer","setMatchingPage"]},"SNAP.REFRESH":{actions:["setSnapPoints","clampPage"]},"PAGE.SCROLL":{actions:["scrollToPage"]}},effects:["trackSlideMutation","trackSlideIntersections","trackSlideResize"],entry:["setSnapPoints","setPage"],exit:["clearScrollEndTimer"],states:{idle:{on:{"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"AUTOPLAY.START":{target:"autoplay",actions:["invokeAutoplayStart"]},"USER.SCROLL":{target:"userScroll"},"VIEWPORT.FOCUS":{target:"focus"}}},focus:{effects:["trackKeyboardScroll"],on:{"VIEWPORT.BLUR":{target:"idle"},"PAGE.NEXT":{actions:["clearScrollEndTimer","setNextPage"]},"PAGE.PREV":{actions:["clearScrollEndTimer","setPrevPage"]},"PAGE.SET":{actions:["clearScrollEndTimer","setPage"]},"INDEX.SET":{actions:["clearScrollEndTimer","setMatchingPage"]},"USER.SCROLL":{target:"userScroll"}}},dragging:{effects:["trackPointerMove"],entry:["disableScrollSnap"],on:{DRAGGING:{actions:["scrollSlides","invokeDragging"]},"DRAGGING.END":{target:"idle",actions:["endDragging","invokeDraggingEnd"]}}},userScroll:{effects:["trackScroll"],on:{"SCROLL.END":[{guard:"isFocused",target:"focus",actions:["setClosestPage"]},{target:"idle",actions:["setClosestPage"]}]}},autoplay:{effects:["trackDocumentVisibility","trackScroll","autoUpdateSlide"],exit:["invokeAutoplayEnd"],on:{"AUTOPLAY.TICK":{actions:["setNextPage","invokeAutoplay"]},"DRAGGING.START":{target:"dragging",actions:["invokeDragStart"]},"AUTOPLAY.PAUSE":{target:"idle"}}}},implementations:{guards:{isFocused:({scope:e})=>e.isActiveElement(hn(e))},effects:{autoUpdateSlide({computed:e,send:t}){const n=setInterval(()=>{t({type:e("canScrollNext")?"AUTOPLAY.TICK":"AUTOPLAY.PAUSE",src:"autoplay.interval"})},e("autoplayInterval"));return()=>clearInterval(n)},trackSlideMutation({scope:e,send:t}){const n=hn(e);if(!n)return;const r=e.getWin(),o=new r.MutationObserver(()=>{t({type:"SNAP.REFRESH",src:"slide.mutation"}),Wy(e)});return Wy(e),o.observe(n,{childList:!0,subtree:!0}),()=>o.disconnect()},trackSlideResize({scope:e,send:t}){if(!hn(e))return;const r=e.getWin(),o=()=>{t({type:"SNAP.REFRESH",src:"slide.resize"})};kt(()=>{o(),kt(()=>{t({type:"PAGE.SCROLL",instant:!0})})});const a=new r.ResizeObserver(o);return qy(e).forEach(u=>a.observe(u)),()=>a.disconnect()},trackSlideIntersections({scope:e,prop:t,context:n}){const r=hn(e),o=e.getWin(),a=new o.IntersectionObserver(u=>{const c=u.reduce((d,h)=>{var b;const m=h.target,g=Number((b=m.dataset.index)!=null?b:"-1");return g==null||Number.isNaN(g)||g===-1?d:h.isIntersecting?DI(d,g):MI(d,g)},n.get("slidesInView"));n.set("slidesInView",FI(c))},{root:r,threshold:t("inViewThreshold")});return qy(e).forEach(u=>a.observe(u)),()=>a.disconnect()},trackScroll({send:e,refs:t,scope:n}){const r=hn(n);return r?Mt(r,"scroll",()=>{clearTimeout(t.get("timeoutRef")),t.set("timeoutRef",void 0),t.set("timeoutRef",setTimeout(()=>{e({type:"SCROLL.END"})},150))},{passive:!0}):void 0},trackDocumentVisibility({scope:e,send:t}){const n=e.getDoc();return Mt(n,"visibilitychange",()=>{n.visibilityState!=="visible"&&t({type:"AUTOPLAY.PAUSE",src:"doc.hidden"})})},trackPointerMove({scope:e,send:t}){const n=e.getDoc();return GP(n,{onPointerMove({event:r}){t({type:"DRAGGING",left:-r.movementX,top:-r.movementY})},onPointerUp(){t({type:"DRAGGING.END"})}})},trackKeyboardScroll({scope:e,send:t,context:n}){const r=e.getWin();return Mt(r,"keydown",a=>{switch(a.key){case"ArrowRight":a.preventDefault(),t({type:"PAGE.NEXT"});break;case"ArrowLeft":a.preventDefault(),t({type:"PAGE.PREV"});break;case"Home":a.preventDefault(),t({type:"PAGE.SET",index:0});break;case"End":a.preventDefault(),t({type:"PAGE.SET",index:n.get("pageSnapPoints").length-1})}},{capture:!0})}},actions:{clearScrollEndTimer({refs:e}){e.get("timeoutRef")!=null&&(clearTimeout(e.get("timeoutRef")),e.set("timeoutRef",void 0))},scrollToPage({context:e,event:t,scope:n,computed:r,flush:o}){var h;const a=t.instant?"instant":"smooth",u=mE((h=t.index)!=null?h:e.get("page"),0,e.get("pageSnapPoints").length-1),c=hn(n);if(!c)return;const d=r("isHorizontal")?"left":"top";o(()=>{c.scrollTo({[d]:e.get("pageSnapPoints")[u],behavior:a})})},setClosestPage({context:e,scope:t,computed:n}){const r=hn(t);if(!r)return;const o=n("isHorizontal")?r.scrollLeft:r.scrollTop,a=e.get("pageSnapPoints").findIndex(u=>Math.abs(u-o)<1);a!==-1&&e.set("page",a)},setNextPage({context:e,prop:t,state:n}){const r=n.matches("autoplay")||t("loop"),o=fE(e.get("pageSnapPoints"),e.get("page"),{loop:r});e.set("page",o)},setPrevPage({context:e,prop:t,state:n}){const r=n.matches("autoplay")||t("loop"),o=BI(e.get("pageSnapPoints"),e.get("page"),{loop:r});e.set("page",o)},setMatchingPage({context:e,event:t,computed:n,scope:r}){const o=hn(r);if(!o)return;const a=D6(o,n("isHorizontal")?"x":"y",c=>c.dataset.index===t.index.toString());if(a==null)return;const u=e.get("pageSnapPoints").findIndex(c=>Math.abs(c-a)<1);e.set("page",u)},setPage({context:e,event:t}){var r;const n=(r=t.index)!=null?r:e.get("page");e.set("page",n)},clampPage({context:e}){const t=mE(e.get("page"),0,e.get("pageSnapPoints").length-1);e.set("page",t)},setSnapPoints({context:e,computed:t,scope:n}){const r=hn(n);if(!r)return;const o=jy(r);e.set("pageSnapPoints",t("isHorizontal")?o.x:o.y)},disableScrollSnap({scope:e}){const t=hn(e);if(!t)return;const n=getComputedStyle(t);t.dataset.scrollSnapType=n.getPropertyValue("scroll-snap-type"),t.style.setProperty("scroll-snap-type","none")},scrollSlides({scope:e,event:t}){const n=hn(e);n==null||n.scrollBy({left:t.left,top:t.top,behavior:"instant"})},endDragging({scope:e,context:t,computed:n}){const r=hn(e);if(!r)return;const o=r.scrollLeft,a=r.scrollTop,u=jy(r),c=u.x.reduce((h,m)=>Math.abs(m-o)<Math.abs(h-o)?m:h,u.x[0]),d=u.y.reduce((h,m)=>Math.abs(m-a)<Math.abs(h-a)?m:h,u.y[0]);kt(()=>{r.scrollTo({left:c,top:d,behavior:"smooth"});const h=n("isHorizontal")?c:d;t.set("page",t.get("pageSnapPoints").indexOf(h));const m=r.dataset.scrollSnapType;m&&(r.style.setProperty("scroll-snap-type",m),delete r.dataset.scrollSnapType)})},focusIndicatorEl({context:e,event:t,scope:n}){if(t.src!=="indicator")return;const r=j6(n,e.get("page"));r&&kt(()=>r.focus({preventScroll:!0}))},invokeDragStart({context:e,prop:t}){var n;(n=t("onDragStatusChange"))==null||n({type:"dragging.start",isDragging:!0,page:e.get("page")})},invokeDragging({context:e,prop:t}){var n;(n=t("onDragStatusChange"))==null||n({type:"dragging",isDragging:!0,page:e.get("page")})},invokeDraggingEnd({context:e,prop:t}){var n;(n=t("onDragStatusChange"))==null||n({type:"dragging.end",isDragging:!1,page:e.get("page")})},invokeAutoplay({context:e,prop:t}){var n;(n=t("onAutoplayStatusChange"))==null||n({type:"autoplay",isPlaying:!0,page:e.get("page")})},invokeAutoplayStart({context:e,prop:t}){var n;(n=t("onAutoplayStatusChange"))==null||n({type:"autoplay.start",isPlaying:!0,page:e.get("page")})},invokeAutoplayEnd({context:e,prop:t}){var n;(n=t("onAutoplayStatusChange"))==null||n({type:"autoplay.stop",isPlaying:!1,page:e.get("page")})}}}};function Y6(e,t,n){if(e==null||n<=0)return[];const r=[],o=t==="auto"?Math.floor(n):t;if(o<=0)return[];for(let a=0;a<e&&!(a+n>e);a+=o)r.push(a);return r}Bo()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","onDragStatusChange","onAutoplayStatusChange"]),Bo()(["index","readOnly"]),Bo()(["index","snapAlign"]);const q6=e=>{const t=te.useId(),{getRootNode:n}=ml(),{dir:r}=Qf(),o=U({id:t,dir:r,getRootNode:n},e),a=nl(V6,o);return $6(a,Of)},Gy=te.forwardRef((e,t)=>{const[n,r]=oa()(e,["allowMouseDrag","autoplay","defaultPage","id","ids","inViewThreshold","loop","onAutoplayStatusChange","onDragStatusChange","onPageChange","orientation","padding","page","slideCount","slidesPerMove","slidesPerPage","snapType","spacing","translations"]),o=q6(n),a=Nt(o.getRootProps(),r);return L.jsx(P6,{value:o,children:L.jsx(Gt.div,re(U({},a),{ref:t}))})});Gy.displayName="CarouselRoot";const W6=180,G6=e=>{const t=e.trim(),n=parseFloat(t);return Number.isNaN(n)?0:t.endsWith("rem")?n*16:n},K6=({globalClassName:e,itemMinWidth:t=W6,spacing:n="0.5rem",loop:r=!1,allowMouseDrag:o=!0,showIndicators:a=!0,showNavigation:u=!0,onPageChange:c,ariaLabel:d="Product carousel",children:h})=>{const m=Array.from(h),g=m.length,b=te.useRef(null),[T,x]=te.useState(0),{width:S}=Nw();te.useLayoutEffect(()=>{b.current&&x(b.current.getBoundingClientRect().width)},[S,g]);const A=G6(n),v=t+A,I=T>0?(T+A)/v:1,k=Math.max(1,Math.floor(I));if(g===0)return null;const M=g>k,Y=Math.ceil(g/k),F=M?Math.max(1,I):k;return L.jsxs(Gy,{ref:b,className:fe(e,`${X}-carousel`),slidesPerPage:F,slidesPerMove:k,spacing:n,loop:r,allowMouseDrag:o,slideCount:g,onPageChange:c,"aria-label":d,children:[L.jsx(Fy,{className:fe(e,`${X}-carousel__item-group`),children:m.map((J,Ee)=>L.jsx(My,{index:Ee,className:fe(e,`${X}-carousel__item`),children:J},Ee))}),u&&M&&L.jsxs(Ry,{className:fe(e,`${X}-carousel__control`),children:[L.jsx(Uy,{className:fe(e,`${X}-carousel__prev-trigger`),"aria-label":"Previous slide",children:L.jsx(T6,{})}),L.jsx(By,{className:fe(e,`${X}-carousel__next-trigger`),"aria-label":"Next slide",children:L.jsx(b6,{})})]}),a&&M&&L.jsx(Dy,{className:fe(e,`${X}-carousel__indicator-group`),children:Array.from({length:Y},(J,Ee)=>L.jsx(Ly,{index:Ee,className:fe(e,`${X}-carousel__indicator`),"aria-label":`Go to slide group ${Ee+1}`},Ee))})]})},Ky=({className:e,label:t="Close",onClick:n,disabled:r=!1})=>L.jsx("button",{"aria-label":t,className:fe(e,`${X}-close-button`),disabled:r,onClick:n,children:L.jsx("svg",{role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20",width:"16",height:"16",fill:"currentColor",children:L.jsx("path",{d:"M18.3 5.7a1 1 0 0 0-1.4-1.4L12 9.6 7.1 4.7a1 1 0 1 0-1.4 1.4l4.9 4.9-4.9 4.9a1 1 0 1 0 1.4 1.4l4.9-4.9 4.9 4.9a1 1 0 0 0 1.4-1.4l-4.9-4.9 4.9-4.9z"})})}),Qy=r=>{var o=r,{onReset:e,componentType:t}=o,n=Zt(o,["onReset","componentType"]);const{globalClassName:a}=tn();return L.jsx(jr,U({icon:L.jsx(Oy,{size:"16px"}),ariaLabel:"Clear Chat",className:fe(a,`${X}-clear-chat-icon-button`,`cim-${t}-component`),onClick:e},n))};function Q6(e){return ln({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M10.75 6.75a.75.75 0 0 0-1.5 0v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5Z"},child:[]}]})(e)}const X6=({className:e,globalClassName:t,suggestions:n,disabled:r,isWidgetStandalone:o,onSuggestionClick:a})=>{const u=o?"standalone":"embedded",c=d=>()=>{a(d)};return L.jsx("div",{className:fe(t,`${X}-suggestion-container ${u}`,e),children:n.map(d=>o?L.jsxs(w0,{disabled:r,className:fe(t,`${X}-suggestion-button standalone`),onClick:c(d),children:[L.jsx(Q6,{size:"1.5rem",style:{minHeight:"1.5rem",minWidth:"1.5rem"}})," ",d]},d):L.jsx("button",{disabled:r,className:fe(t,`${X}-suggestion-button embedded`),onClick:c(d),children:d},d))})},Xy=({componentType:e,isIcon:t})=>{const{globalClassName:n,enableMinimize:r}=tn();if(!r)return null;const o=()=>{vi(!1),bu(!0)};return t?L.jsx(jr,{className:fe(n,`${X}-toggle-minimize-button`,e),ariaLabel:"Toggle Minimize",title:"Minimize",onClick:o,icon:L.jsx(x0,{})}):L.jsxs("button",{className:fe(n,`${X}-overflow-menu-button`,`${X}-toggle-minimize-button`,e),onClick:o,children:[L.jsx(x0,{}),"Minimize"]})},Jy=({componentType:e,isIcon:t})=>{const{globalClassName:n}=tn(),r=()=>{_u("modal")};return t?L.jsx(jr,{className:fe(n,`${X}-toggle-modal-button`,e),ariaLabel:"Toggle Modal",onClick:r,icon:L.jsx(Py,{})}):L.jsxs("button",{className:fe(n,`${X}-overflow-menu-button`,`${X}-toggle-modal-button`,e),onClick:r,children:[L.jsx(Py,{}),"Show modal"]})};function Zy(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function J6(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Z6(e,t,n){const o=Lu((n||{}).ignore||[]),a=e4(t);let u=-1;for(;++u<a.length;)Dg(e,"text",c);function c(h,m){let g=-1,b;for(;++g<m.length;){const T=m[g],x=b?b.children:void 0;if(o(T,x?x.indexOf(T):void 0,b))return;b=T}if(b)return d(h,m)}function d(h,m){const g=m[m.length-1],b=a[u][0],T=a[u][1];let x=0;const A=g.children.indexOf(h);let v=!1,I=[];b.lastIndex=0;let k=b.exec(h.value);for(;k;){const M=k.index,Y={index:k.index,input:k.input,stack:[...m,h]};let F=T(...k,Y);if(typeof F=="string"&&(F=F.length>0?{type:"text",value:F}:void 0),F===!1?b.lastIndex=M+1:(x!==M&&I.push({type:"text",value:h.value.slice(x,M)}),Array.isArray(F)?I.push(...F):F&&I.push(F),x=M+k[0].length,v=!0),!b.global)break;k=b.exec(h.value)}return v?(x<h.value.length&&I.push({type:"text",value:h.value.slice(x)}),g.children.splice(A,1,...I)):I=[h],A+I.length}}function e4(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const o=n[r];t.push([t4(o[0]),n4(o[1])])}return t}function t4(e){return typeof e=="string"?new RegExp(J6(e),"g"):e}function n4(e){return typeof e=="function"?e:function(){return e}}const Xf="phrasing",Jf=["autolink","link","image","label"];function r4(){return{transforms:[c4],enter:{literalAutolink:o4,literalAutolinkEmail:Zf,literalAutolinkHttp:Zf,literalAutolinkWww:Zf},exit:{literalAutolink:l4,literalAutolinkEmail:u4,literalAutolinkHttp:s4,literalAutolinkWww:a4}}}function i4(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Xf,notInConstruct:Jf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Xf,notInConstruct:Jf},{character:":",before:"[ps]",after:"\\/",inConstruct:Xf,notInConstruct:Jf}]}}function o4(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Zf(e){this.config.enter.autolinkProtocol.call(this,e)}function s4(e){this.config.exit.autolinkProtocol.call(this,e)}function a4(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function u4(e){this.config.exit.autolinkEmail.call(this,e)}function l4(e){this.exit(e)}function c4(e){Z6(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,d4],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),f4]],{ignore:["link","linkReference"]})}function d4(e,t,n,r,o){let a="";if(!eT(o)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!h4(n)))return!1;const u=p4(n+r);if(!u[0])return!1;const c={type:"link",title:null,url:a+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[c,{type:"text",value:u[1]}]:c}function f4(e,t,n,r){return!eT(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function h4(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function p4(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=Zy(e,"(");let a=Zy(e,")");for(;r!==-1&&o>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function eT(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Oi(n)||vu(n))&&(!t||n!==47)}tT.peek=S4;function m4(){this.buffer()}function g4(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function E4(){this.buffer()}function y4(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function T4(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=qn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function b4(e){this.exit(e)}function _4(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=qn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function x4(e){this.exit(e)}function S4(){return"["}function tT(e,t,n,r){const o=n.createTracker(r);let a=o.move("[^");const u=n.enter("footnoteReference"),c=n.enter("reference");return a+=o.move(n.safe(n.associationId(e),{after:"]",before:a})),c(),u(),a+=o.move("]"),a}function w4(){return{enter:{gfmFootnoteCallString:m4,gfmFootnoteCall:g4,gfmFootnoteDefinitionLabelString:E4,gfmFootnoteDefinition:y4},exit:{gfmFootnoteCallString:T4,gfmFootnoteCall:b4,gfmFootnoteDefinitionLabelString:_4,gfmFootnoteDefinition:x4}}}function A4(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:tT},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,a,u){const c=a.createTracker(u);let d=c.move("[^");const h=a.enter("footnoteDefinition"),m=a.enter("label");return d+=c.move(a.safe(a.associationId(r),{before:d,after:"]"})),m(),d+=c.move("]:"),r.children&&r.children.length>0&&(c.shift(4),d+=c.move((t?`
|
|
38
|
+
`:" ")+a.indentLines(a.containerFlow(r,c.current()),t?nT:C4))),h(),d}}function C4(e,t,n){return t===0?e:nT(e,t,n)}function nT(e,t,n){return(n?"":" ")+e}const v4=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];rT.peek=P4;function k4(){return{canContainEols:["delete"],enter:{strikethrough:O4},exit:{strikethrough:I4}}}function N4(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:v4}],handlers:{delete:rT}}}function O4(e){this.enter({type:"delete",children:[]},e)}function I4(e){this.exit(e)}function rT(e,t,n,r){const o=n.createTracker(r),a=n.enter("strikethrough");let u=o.move("~~");return u+=n.containerPhrasing(e,re(U({},o.current()),{before:u,after:"~"})),u+=o.move("~~"),a(),u}function P4(){return"~"}function R4(e){return e.length}function L4(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||R4,a=[],u=[],c=[],d=[];let h=0,m=-1;for(;++m<e.length;){const S=[],A=[];let v=-1;for(e[m].length>h&&(h=e[m].length);++v<e[m].length;){const I=D4(e[m][v]);if(n.alignDelimiters!==!1){const k=o(I);A[v]=k,(d[v]===void 0||k>d[v])&&(d[v]=k)}S.push(I)}u[m]=S,c[m]=A}let g=-1;if(typeof r=="object"&&"length"in r)for(;++g<h;)a[g]=iT(r[g]);else{const S=iT(r);for(;++g<h;)a[g]=S}g=-1;const b=[],T=[];for(;++g<h;){const S=a[g];let A="",v="";S===99?(A=":",v=":"):S===108?A=":":S===114&&(v=":");let I=n.alignDelimiters===!1?1:Math.max(1,d[g]-A.length-v.length);const k=A+"-".repeat(I)+v;n.alignDelimiters!==!1&&(I=A.length+I+v.length,I>d[g]&&(d[g]=I),T[g]=I),b[g]=k}u.splice(1,0,b),c.splice(1,0,T),m=-1;const x=[];for(;++m<u.length;){const S=u[m],A=c[m];g=-1;const v=[];for(;++g<h;){const I=S[g]||"";let k="",M="";if(n.alignDelimiters!==!1){const Y=d[g]-(A[g]||0),F=a[g];F===114?k=" ".repeat(Y):F===99?Y%2?(k=" ".repeat(Y/2+.5),M=" ".repeat(Y/2-.5)):(k=" ".repeat(Y/2),M=k):M=" ".repeat(Y)}n.delimiterStart!==!1&&!g&&v.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&I==="")&&(n.delimiterStart!==!1||g)&&v.push(" "),n.alignDelimiters!==!1&&v.push(k),v.push(I),n.alignDelimiters!==!1&&v.push(M),n.padding!==!1&&v.push(" "),(n.delimiterEnd!==!1||g!==h-1)&&v.push("|")}x.push(n.delimiterEnd===!1?v.join("").replace(/ +$/,""):v.join(""))}return x.join(`
|
|
39
|
+
`)}function D4(e){return e==null?"":String(e)}function iT(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function M4(e,t,n,r){const o=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const u=n.indentLines(n.containerFlow(e,a.current()),F4);return o(),u}function F4(e,t,n){return">"+(n?"":" ")+e}function B4(e,t){return oT(e,t.inConstruct,!0)&&!oT(e,t.notInConstruct,!1)}function oT(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function sT(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
|
|
40
|
+
`&&B4(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
41
|
+
`}function U4(e,t){const n=String(e);let r=n.indexOf(t),o=r,a=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++a>u&&(u=a):a=1,o=r+t.length,r=n.indexOf(t,o);return u}function H4(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function z4(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function j4(e,t,n,r){const o=z4(n),a=e.value||"",u=o==="`"?"GraveAccent":"Tilde";if(H4(e,n)){const g=n.enter("codeIndented"),b=n.indentLines(a,$4);return g(),b}const c=n.createTracker(r),d=o.repeat(Math.max(U4(a,o)+1,3)),h=n.enter("codeFenced");let m=c.move(d);if(e.lang){const g=n.enter(`codeFencedLang${u}`);m+=c.move(n.safe(e.lang,U({before:m,after:" ",encode:["`"]},c.current()))),g()}if(e.lang&&e.meta){const g=n.enter(`codeFencedMeta${u}`);m+=c.move(" "),m+=c.move(n.safe(e.meta,U({before:m,after:`
|
|
42
|
+
`,encode:["`"]},c.current()))),g()}return m+=c.move(`
|
|
43
|
+
`),a&&(m+=c.move(a+`
|
|
44
|
+
`)),m+=c.move(d),h(),m}function $4(e,t,n){return(n?"":" ")+e}function eh(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function V4(e,t,n,r){const o=eh(n),a=o==='"'?"Quote":"Apostrophe",u=n.enter("definition");let c=n.enter("label");const d=n.createTracker(r);let h=d.move("[");return h+=d.move(n.safe(n.associationId(e),U({before:h,after:"]"},d.current()))),h+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,U({before:h,after:">"},d.current()))),h+=d.move(">")):(c=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,U({before:h,after:e.title?" ":`
|
|
45
|
+
`},d.current())))),c(),e.title&&(c=n.enter(`title${a}`),h+=d.move(" "+o),h+=d.move(n.safe(e.title,U({before:h,after:o},d.current()))),h+=d.move(o),c()),u(),h}function Y4(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function fa(e){return"&#x"+e.toString(16).toUpperCase()+";"}function El(e,t,n){const r=bo(e),o=bo(t);return r===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}aT.peek=q4;function aT(e,t,n,r){const o=Y4(n),a=n.enter("emphasis"),u=n.createTracker(r),c=u.move(o);let d=u.move(n.containerPhrasing(e,U({after:o,before:c},u.current())));const h=d.charCodeAt(0),m=El(r.before.charCodeAt(r.before.length-1),h,o);m.inside&&(d=fa(h)+d.slice(1));const g=d.charCodeAt(d.length-1),b=El(r.after.charCodeAt(0),g,o);b.inside&&(d=d.slice(0,-1)+fa(g));const T=u.move(o);return a(),n.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},c+d+T}function q4(e,t,n){return n.options.emphasis||"*"}function W4(e,t){let n=!1;return Mu(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Ud}),!!((!e.depth||e.depth<3)&&kd(e)&&(t.options.setext||n))}function G4(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(W4(e,n)){const m=n.enter("headingSetext"),g=n.enter("phrasing"),b=n.containerPhrasing(e,re(U({},a.current()),{before:`
|
|
46
|
+
`,after:`
|
|
47
|
+
`}));return g(),m(),b+`
|
|
48
|
+
`+(o===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
49
|
+
`))+1))}const u="#".repeat(o),c=n.enter("headingAtx"),d=n.enter("phrasing");a.move(u+" ");let h=n.containerPhrasing(e,U({before:"# ",after:`
|
|
50
|
+
`},a.current()));return/^[\t ]/.test(h)&&(h=fa(h.charCodeAt(0))+h.slice(1)),h=h?u+" "+h:u,n.options.closeAtx&&(h+=" "+u),d(),c(),h}uT.peek=K4;function uT(e){return e.value||""}function K4(){return"<"}lT.peek=Q4;function lT(e,t,n,r){const o=eh(n),a=o==='"'?"Quote":"Apostrophe",u=n.enter("image");let c=n.enter("label");const d=n.createTracker(r);let h=d.move("![");return h+=d.move(n.safe(e.alt,U({before:h,after:"]"},d.current()))),h+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(n.safe(e.url,U({before:h,after:">"},d.current()))),h+=d.move(">")):(c=n.enter("destinationRaw"),h+=d.move(n.safe(e.url,U({before:h,after:e.title?" ":")"},d.current())))),c(),e.title&&(c=n.enter(`title${a}`),h+=d.move(" "+o),h+=d.move(n.safe(e.title,U({before:h,after:o},d.current()))),h+=d.move(o),c()),h+=d.move(")"),u(),h}function Q4(){return"!"}cT.peek=X4;function cT(e,t,n,r){const o=e.referenceType,a=n.enter("imageReference");let u=n.enter("label");const c=n.createTracker(r);let d=c.move("![");const h=n.safe(e.alt,U({before:d,after:"]"},c.current()));d+=c.move(h+"]["),u();const m=n.stack;n.stack=[],u=n.enter("reference");const g=n.safe(n.associationId(e),U({before:d,after:"]"},c.current()));return u(),n.stack=m,a(),o==="full"||!h||h!==g?d+=c.move(g+"]"):o==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function X4(){return"!"}dT.peek=J4;function dT(e,t,n){let r=e.value||"",o="`",a=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const u=n.unsafe[a],c=n.compilePattern(u);let d;if(u.atBreak)for(;d=c.exec(r);){let h=d.index;r.charCodeAt(h)===10&&r.charCodeAt(h-1)===13&&h--,r=r.slice(0,h)+" "+r.slice(d.index+1)}}return o+r+o}function J4(){return"`"}function fT(e,t){const n=kd(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}hT.peek=Z4;function hT(e,t,n,r){const o=eh(n),a=o==='"'?"Quote":"Apostrophe",u=n.createTracker(r);let c,d;if(fT(e,n)){const m=n.stack;n.stack=[],c=n.enter("autolink");let g=u.move("<");return g+=u.move(n.containerPhrasing(e,U({before:g,after:">"},u.current()))),g+=u.move(">"),c(),n.stack=m,g}c=n.enter("link"),d=n.enter("label");let h=u.move("[");return h+=u.move(n.containerPhrasing(e,U({before:h,after:"]("},u.current()))),h+=u.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(n.safe(e.url,U({before:h,after:">"},u.current()))),h+=u.move(">")):(d=n.enter("destinationRaw"),h+=u.move(n.safe(e.url,U({before:h,after:e.title?" ":")"},u.current())))),d(),e.title&&(d=n.enter(`title${a}`),h+=u.move(" "+o),h+=u.move(n.safe(e.title,U({before:h,after:o},u.current()))),h+=u.move(o),d()),h+=u.move(")"),c(),h}function Z4(e,t,n){return fT(e,n)?"<":"["}pT.peek=eD;function pT(e,t,n,r){const o=e.referenceType,a=n.enter("linkReference");let u=n.enter("label");const c=n.createTracker(r);let d=c.move("[");const h=n.containerPhrasing(e,U({before:d,after:"]"},c.current()));d+=c.move(h+"]["),u();const m=n.stack;n.stack=[],u=n.enter("reference");const g=n.safe(n.associationId(e),U({before:d,after:"]"},c.current()));return u(),n.stack=m,a(),o==="full"||!h||h!==g?d+=c.move(g+"]"):o==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function eD(){return"["}function th(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function tD(e){const t=th(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function nD(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function mT(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function rD(e,t,n,r){const o=n.enter("list"),a=n.bulletCurrent;let u=e.ordered?nD(n):th(n);const c=e.ordered?u==="."?")":".":tD(n);let d=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&m&&(!m.children||!m.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),mT(n)===u&&m){let g=-1;for(;++g<e.children.length;){const b=e.children[g];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(u=c),n.bulletCurrent=u;const h=n.containerFlow(e,r);return n.bulletLastUsed=u,n.bulletCurrent=a,o(),h}function iD(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function oD(e,t,n,r){const o=iD(n);let a=n.bulletCurrent||th(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let u=a.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const c=n.createTracker(r);c.move(a+" ".repeat(u-a.length)),c.shift(u);const d=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,c.current()),m);return d(),h;function m(g,b,T){return b?(T?"":" ".repeat(u))+g:(T?a:a+" ".repeat(u-a.length))+g}}function sD(e,t,n,r){const o=n.enter("paragraph"),a=n.enter("phrasing"),u=n.containerPhrasing(e,r);return a(),o(),u}const aD=Lu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function uD(e,t,n,r){return(e.children.some(function(u){return aD(u)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function lD(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}gT.peek=cD;function gT(e,t,n,r){const o=lD(n),a=n.enter("strong"),u=n.createTracker(r),c=u.move(o+o);let d=u.move(n.containerPhrasing(e,U({after:o,before:c},u.current())));const h=d.charCodeAt(0),m=El(r.before.charCodeAt(r.before.length-1),h,o);m.inside&&(d=fa(h)+d.slice(1));const g=d.charCodeAt(d.length-1),b=El(r.after.charCodeAt(0),g,o);b.inside&&(d=d.slice(0,-1)+fa(g));const T=u.move(o+o);return a(),n.attentionEncodeSurroundingInfo={after:b.outside,before:m.outside},c+d+T}function cD(e,t,n){return n.options.strong||"*"}function dD(e,t,n,r){return n.safe(e.value,r)}function fD(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function hD(e,t,n){const r=(mT(n)+(n.options.ruleSpaces?" ":"")).repeat(fD(n));return n.options.ruleSpaces?r.slice(0,-1):r}const ET={blockquote:M4,break:sT,code:j4,definition:V4,emphasis:aT,hardBreak:sT,heading:G4,html:uT,image:lT,imageReference:cT,inlineCode:dT,link:hT,linkReference:pT,list:rD,listItem:oD,paragraph:sD,root:uD,strong:gT,text:dD,thematicBreak:hD};function pD(){return{enter:{table:mD,tableData:yT,tableHeader:yT,tableRow:ED},exit:{codeText:yD,table:gD,tableData:nh,tableHeader:nh,tableRow:nh}}}function mD(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function gD(e){this.exit(e),this.data.inTable=void 0}function ED(e){this.enter({type:"tableRow",children:[]},e)}function nh(e){this.exit(e)}function yT(e){this.enter({type:"tableCell",children:[]},e)}function yD(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,TD));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function TD(e,t){return t==="|"?t:e}function bD(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
51
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:u,tableCell:d,tableRow:c}};function u(T,x,S,A){return h(m(T,S,A),T.align)}function c(T,x,S,A){const v=g(T,S,A),I=h([v]);return I.slice(0,I.indexOf(`
|
|
52
|
+
`))}function d(T,x,S,A){const v=S.enter("tableCell"),I=S.enter("phrasing"),k=S.containerPhrasing(T,re(U({},A),{before:a,after:a}));return I(),v(),k}function h(T,x){return L4(T,{align:x,alignDelimiters:r,padding:n,stringLength:o})}function m(T,x,S){const A=T.children;let v=-1;const I=[],k=x.enter("table");for(;++v<A.length;)I[v]=g(A[v],x,S);return k(),I}function g(T,x,S){const A=T.children;let v=-1;const I=[],k=x.enter("tableRow");for(;++v<A.length;)I[v]=d(A[v],T,x,S);return k(),I}function b(T,x,S){let A=ET.inlineCode(T,x,S);return S.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function _D(){return{exit:{taskListCheckValueChecked:TT,taskListCheckValueUnchecked:TT,paragraph:SD}}}function xD(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:wD}}}function TT(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function SD(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let a=-1,u;for(;++a<o.length;){const c=o[a];if(c.type==="paragraph"){u=c;break}}u===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function wD(e,t,n,r){const o=e.children[0],a=typeof e.checked=="boolean"&&o&&o.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",c=n.createTracker(r);a&&c.move(u);let d=ET.listItem(e,t,n,U(U({},r),c.current()));return a&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(m){return m+u}}function AD(){return[r4(),w4(),k4(),pD(),_D()]}function CD(e){return{extensions:[i4(),A4(e),N4(),bD(e),xD()]}}const vD={tokenize:RD,partial:!0},bT={tokenize:LD,partial:!0},_T={tokenize:DD,partial:!0},xT={tokenize:MD,partial:!0},kD={tokenize:FD,partial:!0},ST={name:"wwwAutolink",tokenize:ID,previous:AT},wT={name:"protocolAutolink",tokenize:PD,previous:CT},Ir={name:"emailAutolink",tokenize:OD,previous:vT},yr={};function ND(){return{text:yr}}let $i=48;for(;$i<123;)yr[$i]=Ir,$i++,$i===58?$i=65:$i===91&&($i=97);yr[43]=Ir,yr[45]=Ir,yr[46]=Ir,yr[95]=Ir,yr[72]=[Ir,wT],yr[104]=[Ir,wT],yr[87]=[Ir,ST],yr[119]=[Ir,ST];function OD(e,t,n){const r=this;let o,a;return u;function u(g){return!rh(g)||!vT.call(r,r.previous)||ih(r.events)?n(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(g))}function c(g){return rh(g)?(e.consume(g),c):g===64?(e.consume(g),d):n(g)}function d(g){return g===46?e.check(kD,m,h)(g):g===45||g===95||qt(g)?(a=!0,e.consume(g),d):m(g)}function h(g){return e.consume(g),o=!0,d}function m(g){return a&&o&&nn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):n(g)}}function ID(e,t,n){const r=this;return o;function o(u){return u!==87&&u!==119||!AT.call(r,r.previous)||ih(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(vD,e.attempt(bT,e.attempt(_T,a),n),n)(u))}function a(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function PD(e,t,n){const r=this;let o="",a=!1;return u;function u(g){return(g===72||g===104)&&CT.call(r,r.previous)&&!ih(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),e.consume(g),c):n(g)}function c(g){if(nn(g)&&o.length<5)return o+=String.fromCodePoint(g),e.consume(g),c;if(g===58){const b=o.toLowerCase();if(b==="http"||b==="https")return e.consume(g),d}return n(g)}function d(g){return g===47?(e.consume(g),a?h:(a=!0,d)):n(g)}function h(g){return g===null||Cu(g)||rt(g)||Oi(g)||vu(g)?n(g):e.attempt(bT,e.attempt(_T,m),n)(g)}function m(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function RD(e,t,n){let r=0;return o;function o(u){return(u===87||u===119)&&r<3?(r++,e.consume(u),o):u===46&&r===3?(e.consume(u),a):n(u)}function a(u){return u===null?n(u):t(u)}}function LD(e,t,n){let r,o,a;return u;function u(h){return h===46||h===95?e.check(xT,d,c)(h):h===null||rt(h)||Oi(h)||h!==45&&vu(h)?d(h):(a=!0,e.consume(h),u)}function c(h){return h===95?r=!0:(o=r,r=void 0),e.consume(h),u}function d(h){return o||r||!a?n(h):t(h)}}function DD(e,t){let n=0,r=0;return o;function o(u){return u===40?(n++,e.consume(u),o):u===41&&r<n?a(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(xT,t,a)(u):u===null||rt(u)||Oi(u)?t(u):(e.consume(u),o)}function a(u){return u===41&&r++,e.consume(u),o}}function MD(e,t,n){return r;function r(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),r):c===38?(e.consume(c),a):c===93?(e.consume(c),o):c===60||c===null||rt(c)||Oi(c)?t(c):n(c)}function o(c){return c===null||c===40||c===91||rt(c)||Oi(c)?t(c):r(c)}function a(c){return nn(c)?u(c):n(c)}function u(c){return c===59?(e.consume(c),r):nn(c)?(e.consume(c),u):n(c)}}function FD(e,t,n){return r;function r(a){return e.consume(a),o}function o(a){return qt(a)?n(a):t(a)}}function AT(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||rt(e)}function CT(e){return!nn(e)}function vT(e){return!(e===47||rh(e))}function rh(e){return e===43||e===45||e===46||e===95||qt(e)}function ih(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const BD={tokenize:qD,partial:!0};function UD(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:$D,continuation:{tokenize:VD},exit:YD}},text:{91:{name:"gfmFootnoteCall",tokenize:jD},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:HD,resolveTo:zD}}}}function HD(e,t,n){const r=this;let o=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u;for(;o--;){const d=r.events[o][1];if(d.type==="labelImage"){u=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!u||!u._balanced)return n(d);const h=qn(r.sliceSerialize({start:u.end,end:r.now()}));return h.codePointAt(0)!==94||!a.includes(h.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function zD(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},c=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",u,t],["exit",u,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...c),e}function jD(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,u;return c;function c(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),d}function d(g){return g!==94?n(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(g){if(a>999||g===93&&!u||g===null||g===91||rt(g))return n(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return o.includes(qn(r.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(g)}return rt(g)||(u=!0),a++,e.consume(g),g===92?m:h}function m(g){return g===91||g===92||g===93?(e.consume(g),a++,h):h(g)}}function $D(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,u=0,c;return d;function d(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):n(x)}function m(x){if(u>999||x===93&&!c||x===null||x===91||rt(x))return n(x);if(x===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return a=qn(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return rt(x)||(c=!0),u++,e.consume(x),x===92?g:m}function g(x){return x===91||x===92||x===93?(e.consume(x),u++,m):m(x)}function b(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),o.includes(a)||o.push(a),Qe(e,T,"gfmFootnoteDefinitionWhitespace")):n(x)}function T(x){return t(x)}}function VD(e,t,n){return e.check(Fs,t,e.attempt(BD,t,n))}function YD(e){e.exit("gfmFootnoteDefinition")}function qD(e,t,n){const r=this;return Qe(e,o,"gfmFootnoteDefinitionIndent",5);function o(a){const u=r.events[r.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(a):n(a)}}function WD(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:o};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(u,c){let d=-1;for(;++d<u.length;)if(u[d][0]==="enter"&&u[d][1].type==="strikethroughSequenceTemporary"&&u[d][1]._close){let h=d;for(;h--;)if(u[h][0]==="exit"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._open&&u[d][1].end.offset-u[d][1].start.offset===u[h][1].end.offset-u[h][1].start.offset){u[d][1].type="strikethroughSequence",u[h][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},u[h][1].start),end:Object.assign({},u[d][1].end)},g={type:"strikethroughText",start:Object.assign({},u[h][1].end),end:Object.assign({},u[d][1].start)},b=[["enter",m,c],["enter",u[h][1],c],["exit",u[h][1],c],["enter",g,c]],T=c.parser.constructs.insideSpan.null;T&&_n(b,b.length,0,ku(T,u.slice(h+1,d),c)),_n(b,b.length,0,[["exit",g,c],["enter",u[d][1],c],["exit",u[d][1],c],["exit",m,c]]),_n(u,h-1,d-h+3,b),d=h+b.length-2;break}}for(d=-1;++d<u.length;)u[d][1].type==="strikethroughSequenceTemporary"&&(u[d][1].type="data");return u}function a(u,c,d){const h=this.previous,m=this.events;let g=0;return b;function b(x){return h===126&&m[m.length-1][1].type!=="characterEscape"?d(x):(u.enter("strikethroughSequenceTemporary"),T(x))}function T(x){const S=bo(h);if(x===126)return g>1?d(x):(u.consume(x),g++,T);if(g<2&&!n)return d(x);const A=u.exit("strikethroughSequenceTemporary"),v=bo(x);return A._open=!v||v===2&&!!S,A._close=!S||S===2&&!!v,c(x)}}}class GD{constructor(){this.map=[]}add(t,n,r){KD(this,t,n,r)}consume(t){if(this.map.sort(function(a,u){return a[0]-u[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let o=r.pop();for(;o;){for(const a of o)t.push(a);o=r.pop()}this.map.length=0}}function KD(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function QD(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function XD(){return{flow:{null:{name:"table",tokenize:JD,resolveAll:ZD}}}}function JD(e,t,n){const r=this;let o=0,a=0,u;return c;function c(z){let se=r.events.length-1;for(;se>-1;){const le=r.events[se][1].type;if(le==="lineEnding"||le==="linePrefix")se--;else break}const me=se>-1?r.events[se][1].type:null,de=me==="tableHead"||me==="tableRow"?F:d;return de===F&&r.parser.lazy[r.now().line]?n(z):de(z)}function d(z){return e.enter("tableHead"),e.enter("tableRow"),h(z)}function h(z){return z===124||(u=!0,a+=1),m(z)}function m(z){return z===null?n(z):De(z)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),T):n(z):Ge(z)?Qe(e,m,"whitespace")(z):(a+=1,u&&(u=!1,o+=1),z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),g(z)))}function g(z){return z===null||z===124||rt(z)?(e.exit("data"),m(z)):(e.consume(z),z===92?b:g)}function b(z){return z===92||z===124?(e.consume(z),g):g(z)}function T(z){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(z):(e.enter("tableDelimiterRow"),u=!1,Ge(z)?Qe(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):x(z))}function x(z){return z===45||z===58?A(z):z===124?(u=!0,e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),S):Y(z)}function S(z){return Ge(z)?Qe(e,A,"whitespace")(z):A(z)}function A(z){return z===58?(a+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),v):z===45?(a+=1,v(z)):z===null||De(z)?M(z):Y(z)}function v(z){return z===45?(e.enter("tableDelimiterFiller"),I(z)):Y(z)}function I(z){return z===45?(e.consume(z),I):z===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(z))}function k(z){return Ge(z)?Qe(e,M,"whitespace")(z):M(z)}function M(z){return z===124?x(z):z===null||De(z)?!u||o!==a?Y(z):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(z)):Y(z)}function Y(z){return n(z)}function F(z){return e.enter("tableRow"),J(z)}function J(z){return z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),J):z===null||De(z)?(e.exit("tableRow"),t(z)):Ge(z)?Qe(e,J,"whitespace")(z):(e.enter("data"),Ee(z))}function Ee(z){return z===null||z===124||rt(z)?(e.exit("data"),J(z)):(e.consume(z),z===92?xe:Ee)}function xe(z){return z===92||z===124?(e.consume(z),Ee):Ee(z)}}function ZD(e,t){let n=-1,r=!0,o=0,a=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,h,m,g;const b=new GD;for(;++n<e.length;){const T=e[n],x=T[1];T[0]==="enter"?x.type==="tableHead"?(c=!1,d!==0&&(kT(b,t,d,h,m),m=void 0,d=0),h={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},b.add(n,0,[["enter",h,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,g=void 0,a=[0,0,0,0],u=[0,n+1,0,0],c&&(c=!1,m={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},b.add(n,0,[["enter",m,t]])),o=x.type==="tableDelimiterRow"?2:m?3:1):o&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,u[2]===0&&(a[1]!==0&&(u[0]=u[1],g=yl(b,t,a,o,void 0,g),a=[0,0,0,0]),u[2]=n)):x.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(u[0]=u[1],g=yl(b,t,a,o,void 0,g)),a=u,u=[a[1],n,0,0])):x.type==="tableHead"?(c=!0,d=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(d=n,a[1]!==0?(u[0]=u[1],g=yl(b,t,a,o,n,g)):u[1]!==0&&(g=yl(b,t,u,o,n,g)),o=0):o&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(u[3]=n)}for(d!==0&&kT(b,t,d,h,m),b.consume(t.events),n=-1;++n<t.events.length;){const T=t.events[n];T[0]==="enter"&&T[1].type==="table"&&(T[1]._align=QD(t.events,n))}return e}function yl(e,t,n,r,o,a){const u=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(a.end=Object.assign({},Wo(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const d=Wo(t.events,n[1]);if(a={type:u,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const h=Wo(t.events,n[2]),m=Wo(t.events,n[3]),g={type:c,start:Object.assign({},h),end:Object.assign({},m)};if(e.add(n[2],0,[["enter",g,t]]),r!==2){const b=t.events[n[2]],T=t.events[n[3]];if(b[1].end=Object.assign({},T[1].end),b[1].type="chunkText",b[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,S=n[3]-n[2]-1;e.add(x,S,[])}}e.add(n[3]+1,0,[["exit",g,t]])}return o!==void 0&&(a.end=Object.assign({},Wo(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function kT(e,t,n,r,o){const a=[],u=Wo(t.events,n);o&&(o.end=Object.assign({},u),a.push(["exit",o,t])),r.end=Object.assign({},u),a.push(["exit",r,t]),e.add(n+1,0,a)}function Wo(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const e5={name:"tasklistCheck",tokenize:n5};function t5(){return{text:{91:e5}}}function n5(e,t,n){const r=this;return o;function o(d){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),a)}function a(d){return rt(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),u):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),u):n(d)}function u(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return De(d)?t(d):Ge(d)?e.check({tokenize:r5},t,n)(d):n(d)}}function r5(e,t,n){return Qe(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function i5(e){return ng([ND(),UD(),WD(e),XD(),t5()])}const o5={};function s5(e){const t=this,n=e||o5,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),u=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(i5(n)),a.push(AD()),u.push(CD(n))}const a5=()=>L.jsx("span",{className:`${X}-blinking-cursor`,children:L.jsx("svg",{height:"16px",width:"16px",xmlns:"http://www.w3.org/2000/svg",children:L.jsx("circle",{r:"0.45rem",cx:"0.5rem",cy:"0.55rem",fill:"black"})})}),oh=({globalClassName:e,openLinksInNewTab:t,showIsLoading:n,text:r})=>L.jsx(qg,{remarkPlugins:[s5],rehypePlugins:[iE],components:{h1:({children:o})=>L.jsx("h1",{className:fe(e,`${X}-header h1`),children:o}),h2:({children:o})=>L.jsx("h2",{className:fe(e,`${X}-header h2`),children:o}),h3:({children:o})=>L.jsx("h3",{className:fe(e,`${X}-header h3`),children:o}),ul:({children:o})=>L.jsx("ul",{className:fe(e,`${X}-ul`),children:o}),ol:({children:o})=>L.jsx("ol",{className:fe(e,`${X}-ol`),children:o}),li:({children:o})=>L.jsx("li",{className:fe(e,`${X}-li`),children:o}),a:({href:o,children:a})=>L.jsx(dE,{globalClassName:e,openLinksInNewTab:t,href:o,children:a}),table:({children:o})=>L.jsx("div",{className:fe(e,`${X}-table-container`),children:L.jsx("table",{className:fe(e,`${X}-table`),children:o})}),thead:({children:o})=>L.jsx("thead",{className:fe(e,`${X}-thead`),children:o}),tbody:({children:o})=>L.jsx("tbody",{className:fe(e,`${X}-tbody`),children:o}),tr:({children:o})=>L.jsx("tr",{className:fe(e,`${X}-tr`),children:o}),th:({children:o})=>L.jsx("th",{className:fe(e,`${X}-th`),children:o}),td:({children:o})=>L.jsx("td",{className:fe(e,`${X}-td`),children:o}),span:({className:o,children:a})=>o===`${X}-blinking-cursor`?L.jsx(a5,{}):L.jsx("span",{children:a})},children:r+(n?`<span className='${X}-blinking-cursor'></span>`:"")}),u5=["Hey there! 👋 What can I find for you today?","Shopping for a gift? Tell me your budget and preferences","Need help? Connect to an agent"],l5=3e3,c5=400,d5=({globalClassName:e,isWidgetStandalone:t,messages:n=u5})=>{const[r,o]=te.useState(0),[a,u]=te.useState(!0);return te.useEffect(()=>{let c;const d=setInterval(()=>{u(!1),c=setTimeout(()=>{o(h=>(h+1)%n.length),u(!0)},c5)},l5);return()=>{clearInterval(d),clearTimeout(c)}},[n.length]),L.jsxs("div",{className:fe(e,`${X}-connecting-indicator`,t?"standalone":"embedded"),role:"status","aria-label":"Connecting to assistant",children:[L.jsxs("div",{className:`${X}-connecting-pulse-wrapper`,children:[L.jsx("div",{className:`${X}-connecting-pulse`}),L.jsx("div",{className:`${X}-connecting-ring`})]}),L.jsx("span",{className:fe(`${X}-connecting-text`,a&&`${X}-connecting-text--visible`),children:n[r]})]})},f5=({globalClassName:e,isWidgetStandalone:t})=>L.jsxs("div",{className:fe(e,`${X}-processing-indicator`,t?"standalone":"embedded"),role:"status","aria-label":"Loading response",children:[L.jsx("div",{className:`${X}-processing-shimmer-bar`}),L.jsx("div",{className:`${X}-processing-shimmer-bar`}),L.jsx("div",{className:`${X}-processing-shimmer-bar`})]}),NT=(e,t)=>{if(typeof e!="number")return null;try{return new Intl.NumberFormat(void 0,{style:"currency",currency:t||"USD"}).format(e)}catch(n){return`${e}`}},OT=({product:e,globalClassName:t,openLinksInNewTab:n})=>{const{name:r,imageUrl:o,productPageUrl:a,price:u,compareAtPrice:c,currencyCode:d}=e,h=NT(u,d),m=NT(c,d);return L.jsxs("div",{className:fe(t,`${X}-msg-product-card`),children:[L.jsx("div",{className:`${X}-msg-product-card__image-wrapper`,children:o&&(a?L.jsx("a",{href:a,target:n?"_blank":"_self",rel:"noopener noreferrer","aria-label":`Go to product page for ${r}`,children:L.jsx("img",{className:`${X}-msg-product-card__image`,src:o,alt:r||"Product image",loading:"lazy"})}):L.jsx("img",{className:`${X}-msg-product-card__image`,src:o,alt:r||"Product image",loading:"lazy"}))}),L.jsxs("div",{className:`${X}-msg-product-card__content`,children:[a?L.jsx("a",{href:a,target:n?"_blank":"_self",rel:"noopener noreferrer",className:`${X}-msg-product-card__title-link`,"aria-label":`Go to product page for ${r}`,children:r}):L.jsx("p",{className:`${X}-msg-product-card__title`,children:r}),L.jsxs("div",{className:`${X}-msg-product-card__price-row`,children:[L.jsxs("div",{className:`${X}-msg-product-card__prices`,children:[h&&L.jsx("span",{className:`${X}-msg-product-card__price`,children:h}),m&&L.jsx("span",{className:`${X}-msg-product-card__compare-price`,children:m})]}),L.jsx("button",{className:`${X}-msg-product-card__add-btn`,"aria-label":`Add ${r} to cart`,type:"button",children:L.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:L.jsx("path",{d:"M8 3v10M3 8h10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]})]})]})},h5=({content:e,globalClassName:t,openLinksInNewTab:n,isWidgetStandalone:r})=>{const{sendMessage:o,loading:a}=ki(),u=e.response.filter(c=>c.type==="product");return L.jsxs(L.Fragment,{children:[e.response.map((c,d)=>{var h;return c.type==="markdown"?L.jsx(oh,{text:c.content,globalClassName:t,openLinksInNewTab:n,showIsLoading:!1},d):L.jsx(OT,{product:c,globalClassName:t,openLinksInNewTab:n,isWidgetStandalone:r},(h=c.id)!=null?h:d)}),u.length>2&&L.jsx("div",{style:{marginTop:"1rem"},children:L.jsx(K6,{globalClassName:t,spacing:r?"0.5rem":"6px",ariaLabel:"Product recommendations",children:u.map((c,d)=>{var h;return L.jsx(OT,{product:c,globalClassName:t,openLinksInNewTab:n,isWidgetStandalone:r},(h=c.id)!=null?h:d)})})}),e.suggestions&&e.suggestions.length>0&&L.jsx("div",{style:{marginTop:"0.5rem"},children:L.jsx(X6,{disabled:a,suggestions:e.suggestions,globalClassName:t,isWidgetStandalone:r,onSuggestionClick:o})})]})},p5=({message:e,globalClassName:t,openLinksInNewTab:n,isWidgetStandalone:r})=>{const o=te.useMemo(()=>{try{const a=JSON.parse(e.content);return Array.isArray(a==null?void 0:a.response)?a:null}catch(a){return null}},[e.content]);switch(e.role){case"user":return L.jsx("div",{className:fe(t,`${X}-message`,r?"standalone":"embedded"),children:L.jsx("div",{className:fe(t,`${X}-user-message`,r?"standalone":"embedded"),children:L.jsxs("div",{className:fe(t,`${X}-user-message-row`,r?"standalone":"embedded"),children:[L.jsx("span",{className:fe(t,`${X}-message-icon user-message-icon`,r?"standalone":"embedded"),children:L.jsx(Xw,{})}),L.jsx("p",{className:fe(t,`${X}-user-message-text`,r?"standalone":"embedded"),children:e.content})]})})});case"agent":return L.jsx("div",{className:fe(t,`${X}-message-group`,r?"standalone":"embedded"),children:L.jsx("div",{className:`${X}-message-group-child`,children:o?L.jsx(h5,{content:o,globalClassName:t,openLinksInNewTab:n,isWidgetStandalone:r}):L.jsx(oh,{text:e.content,globalClassName:t,openLinksInNewTab:n,showIsLoading:!1})})});case"system":return L.jsx("div",{className:fe(t,`${X}-message`,r?"standalone":"embedded"),children:L.jsx("p",{className:fe(t,`${X}-reset-message`),children:e.content})})}},sh=({isWidgetStandalone:e})=>{const{globalClassName:t,openLinksInNewTab:n}=tn(),{messages:r,streamingContent:o,isAgentTyping:a,loading:u}=ki(),c=te.useRef(null),d=r.length>0;return te.useEffect(()=>{var h;(h=c.current)==null||h.scrollIntoView({behavior:"smooth"})},[r,o]),L.jsxs(L.Fragment,{children:[u&&!d&&L.jsx(d5,{globalClassName:t,isWidgetStandalone:e}),r.map(h=>L.jsx(p5,{message:h,globalClassName:t,openLinksInNewTab:n,isWidgetStandalone:e},h.id)),o&&L.jsx("div",{className:fe(t,`${X}-message-group`,e?"standalone":"embedded"),children:L.jsx(oh,{text:o,globalClassName:t,openLinksInNewTab:n,showIsLoading:!0})}),d&&(u||a)&&!o&&L.jsx(f5,{globalClassName:t,isWidgetStandalone:e}),L.jsx("div",{ref:c})]})},IT=()=>{const{globalClassName:e,themeVariables:t}=tn(),{isAgentTyping:n,sendMessage:r}=ki(),o=n;return L.jsxs("div",{className:fe(e,`${X}-container`,`${X}-embedded-chat`),style:t,children:[L.jsx("div",{className:fe(e,`${X}-message-container`,"embedded"),children:L.jsx(sh,{isWidgetStandalone:!1})}),L.jsx(gf,{componentType:"chat",className:"embedded-chat",isLoading:o,onSubmit:a=>r(a)}),L.jsx("div",{className:fe(`${X}-embedded-chat-menu`),children:L.jsx(I6,{componentType:"chat",children:L.jsx(Jy,{componentType:"chat"})})})]})},[m5,g5]=Ui({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),E5=e=>oa()(e,["lazyMount","unmountOnExit"]),[y5,ha]=Ui({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),PT=te.forwardRef((e,t)=>{const n=ha(),r=g5(),o=Rf(re(U({},r),{present:n.open})),a=Nt(n.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:L.jsx(Gt.div,re(U({},a),{ref:rl(o.ref,t)}))});PT.displayName="DialogBackdrop";const ah=te.forwardRef((e,t)=>{const n=ha(),r=ia(),o=Nt(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:L.jsx(Gt.div,re(U({},o),{ref:rl(r.ref,t)}))});ah.displayName="DialogContent";const uh=te.forwardRef((e,t)=>{const n=ha(),r=Nt(n.getDescriptionProps(),e);return L.jsx(Gt.div,re(U({},r),{ref:t}))});uh.displayName="DialogDescription";const lh=te.forwardRef((e,t)=>{const n=ha(),r=Nt(n.getPositionerProps(),e);return ia().unmounted?null:L.jsx(Gt.div,re(U({},r),{ref:t}))});lh.displayName="DialogPositioner";var T5=Hi("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Vi=T5.build(),RT=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.positioner)!=null?n:`dialog:${e.id}:positioner`},LT=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.backdrop)!=null?n:`dialog:${e.id}:backdrop`},ch=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.content)!=null?n:`dialog:${e.id}:content`},DT=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.trigger)!=null?n:`dialog:${e.id}:trigger`},dh=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.title)!=null?n:`dialog:${e.id}:title`},fh=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.description)!=null?n:`dialog:${e.id}:description`},MT=e=>{var t,n;return(n=(t=e.ids)==null?void 0:t.closeTrigger)!=null?n:`dialog:${e.id}:close`},Tl=e=>e.getById(ch(e)),b5=e=>e.getById(RT(e)),_5=e=>e.getById(LT(e)),x5=e=>e.getById(DT(e)),S5=e=>e.getById(dh(e)),w5=e=>e.getById(fh(e)),A5=e=>e.getById(MT(e));function C5(e,t){const{state:n,send:r,context:o,prop:a,scope:u}=e,c=a("aria-label"),d=n.matches("open");return{open:d,setOpen(h){n.matches("open")!==h&&r({type:h?"OPEN":"CLOSE"})},getTriggerProps(){return t.button(re(U({},Vi.trigger.attrs),{dir:a("dir"),id:DT(u),"aria-haspopup":"dialog",type:"button","aria-expanded":d,"data-state":d?"open":"closed","aria-controls":ch(u),onClick(h){h.defaultPrevented||r({type:"TOGGLE"})}}))},getBackdropProps(){return t.element(re(U({},Vi.backdrop.attrs),{dir:a("dir"),hidden:!d,id:LT(u),"data-state":d?"open":"closed"}))},getPositionerProps(){return t.element(re(U({},Vi.positioner.attrs),{dir:a("dir"),id:RT(u),style:{pointerEvents:d?void 0:"none"}}))},getContentProps(){const h=o.get("rendered");return t.element(re(U({},Vi.content.attrs),{dir:a("dir"),role:a("role"),hidden:!d,id:ch(u),tabIndex:-1,"data-state":d?"open":"closed","aria-modal":!0,"aria-label":c||void 0,"aria-labelledby":c||!h.title?void 0:dh(u),"aria-describedby":h.description?fh(u):void 0}))},getTitleProps(){return t.element(re(U({},Vi.title.attrs),{dir:a("dir"),id:dh(u)}))},getDescriptionProps(){return t.element(re(U({},Vi.description.attrs),{dir:a("dir"),id:fh(u)}))},getCloseTriggerProps(){return t.button(re(U({},Vi.closeTrigger.attrs),{dir:a("dir"),id:MT(u),type:"button",onClick(h){h.defaultPrevented||(h.stopPropagation(),r({type:"CLOSE"}))}}))}}}var v5={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>A5(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return U({role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r},e)},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return yy(()=>Tl(e),{type:"dialog",defer:!0,pointerBlocking:n("modal"),exclude:[x5(e)],onInteractOutside(o){var a;(a=n("onInteractOutside"))==null||a(o),n("closeOnInteractOutside")||o.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onRequestDismiss:n("onRequestDismiss"),onEscapeKeyDown(o){var a;(a=n("onEscapeKeyDown"))==null||a(o),n("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return Sy(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?_y(()=>Tl(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>{var o,a;return(a=(o=t("finalFocusEl"))==null?void 0:o())!=null?a:r},getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?ly(()=>[Tl(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){kt(()=>{e.set("rendered",{title:!!S5(t),description:!!w5(t)})})},syncZIndex({scope:e}){kt(()=>{const t=Tl(e);if(!t)return;const n=Lo(t);[b5(e),_5(e)].forEach(o=>{o==null||o.style.setProperty("--z-index",n.zIndex),o==null||o.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};Bo()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const k5=e=>{const t=te.useId(),{getRootNode:n}=ml(),{dir:r}=Qf(),o=U({id:t,getRootNode:n,dir:r},e),a=nl(v5,o);return C5(a,Of)},FT=e=>{const[t,c]=UE(e),d=c,{children:n}=d,r=Zt(d,["children"]),[o]=E5(t),a=k5(r),u=Rf(Nt({present:a.open},t));return L.jsx(y5,{value:a,children:L.jsx(m5,{value:o,children:L.jsx(ME,{value:u,children:n})})})},hh=te.forwardRef((e,t)=>{const n=ha(),r=Nt(n.getTitleProps(),e);return L.jsx(Gt.h2,re(U({},r),{ref:t}))});hh.displayName="DialogTitle";const BT=e=>{var d;const{children:t,disabled:n}=e,[r,o]=te.useState((d=e.container)==null?void 0:d.current),a=te.useSyncExternalStore(O5,()=>!1,()=>!0),{getRootNode:u}=ml();if(te.useEffect(()=>{o(()=>{var h;return(h=e.container)==null?void 0:h.current})},[e.container]),a||n)return L.jsx(L.Fragment,{children:t});const c=r!=null?r:N5(u);return L.jsx(L.Fragment,{children:te.Children.map(t,h=>Os.createPortal(h,c))})},N5=e=>{const t=e==null?void 0:e(),n=t.getRootNode();return Fi(n)?n:dr(t).body},O5=()=>()=>{},I5=()=>{const{globalClassName:e}=tn(),{dialogPosition:t}=po(),n=t==="bottom-left",r=()=>{hd(n?"bottom-right":"bottom-left")},o=n?y6:E6,a=n?"Move right":"Move left";return L.jsx(jr,{className:fe(e,`${X}-left-right-toggle-button`,"dialog"),ariaLabel:a,onClick:r,icon:L.jsx(o,{})})},UT=()=>{const{logoUrl:e,headerText:t,globalClassName:n,themeVariables:r}=tn(),{mode:o,status:a,dialogPosition:u}=po(),{loading:c,isAgentTyping:d,sendMessage:h,resetConversation:m}=ki(),{isOpen:g}=a||{},b=!!a.isOpen,T=o==="standalone",x=d||c,S=()=>{vi(!1)};return b?L.jsx(FT,{lazyMount:!0,modal:!1,closeOnEscape:!1,closeOnInteractOutside:!1,open:g,children:L.jsx(BT,{children:L.jsx(lh,{className:fe(n,`${X}-container`,`${X}-dialog`,u),style:r,children:L.jsxs(ah,{className:fe(n,`${X}-dialog-content`,{standalone:T,embedded:!T}),children:[L.jsxs("div",{className:fe(n,`${X}-dialog-header`,{standalone:T,embedded:!T}),children:[e&&L.jsx("img",{alt:"",role:"img",className:fe(n,`${X}-dialog-logo`,{standalone:T,embedded:!T}),src:e}),L.jsx(hh,{className:fe(n,`${X}-dialog-title`,{standalone:T,embedded:!T}),children:t}),L.jsxs("div",{className:fe(n,`${X}-dialog-controls`),children:[L.jsx(Jy,{componentType:"dialog",isIcon:!0}),L.jsx(I5,{}),L.jsx(Xy,{componentType:"dialog",isIcon:!0}),L.jsx(Qy,{componentType:"dialog",onReset:m}),L.jsx(Ky,{className:`dialog ${n}`,onClick:S})]})]}),L.jsx(uh,{className:fe(n,`${X}-message-container`,{standalone:T,embedded:!T}),children:L.jsx(sh,{isWidgetStandalone:T,isOpen:g})}),L.jsx(gf,{componentType:"dialog",isLoading:x,onSubmit:A=>h(A)})]})})})}):null},P5=({componentType:e,isIcon:t})=>{const{globalClassName:n}=tn(),{previousComponentType:r}=po(),o=()=>{_u(r||"dialog")};return t?L.jsx(jr,{className:fe(n,`${X}-toggle-dialog-button`,e),ariaLabel:"Toggle Dialog",onClick:o,icon:L.jsx(Iy,{})}):L.jsxs("button",{className:fe(n,`${X}-overflow-menu-button`,`${X}-toggle-dialog-button`,e),onClick:o,children:[L.jsx(Iy,{}),"Show ",r||"dialog"]})},R5=()=>{const{globalClassName:e}=tn(),{isModalFullscreen:t}=po(),n=()=>{fd(!t)},r=t?Jw:Zw,o=`${t?"Exit":"Enter"} Fullscreen`;return L.jsx(jr,{ariaLabel:o,title:o,className:fe(e,`${X}-modal-fullscreen-button`),icon:L.jsx(r,{}),onClick:n})},HT=()=>{const{logoUrl:e,headerText:t,globalClassName:n,themeVariables:r}=tn(),{mode:o,status:a,isModalFullscreen:u}=po(),{isAgentTyping:c,sendMessage:d,resetConversation:h}=ki(),{isOpen:m}=a||{},g=!!a.isOpen,b=o==="standalone",T=c,x=({open:A})=>{vi(A)},S=()=>{vi(!1)};return g?L.jsx(FT,{lazyMount:!0,open:m,onOpenChange:x,children:L.jsx(BT,{children:L.jsxs("div",{className:fe(n,`${X}-modal-container`),style:r,children:[L.jsx(PT,{className:fe(n,`${X}-modal-backdrop`)}),L.jsx(lh,{className:fe(n,`${X}-container`,`${X}-modal`,{fullscreen:u,standalone:b,embedded:!b}),children:L.jsxs(ah,{className:fe(n,`${X}-modal-content`,{standalone:b,embedded:!b}),children:[L.jsxs("div",{className:fe(n,`${X}-modal-header`,{standalone:b,embedded:!b}),children:[e&&L.jsx("img",{alt:"",role:"img",className:fe(n,`${X}-modal-logo`,{standalone:b,embedded:!b}),src:e}),L.jsx(hh,{className:fe(n,`${X}-modal-title`,{standalone:b,embedded:!b}),children:t}),L.jsxs("div",{className:fe(n,`${X}-modal-controls`),children:[L.jsx(R5,{}),L.jsx(P5,{componentType:"modal",isIcon:!0}),L.jsx(Xy,{componentType:"modal",isIcon:!0}),L.jsx(Qy,{componentType:"modal",onReset:h}),L.jsx(Ky,{className:`modal ${n}`,onClick:S})]})]}),L.jsx(uh,{className:fe(n,`${X}-message-container`,{standalone:b,embedded:!b}),children:L.jsx(sh,{isWidgetStandalone:b,isOpen:m})}),L.jsx(gf,{componentType:"modal",isLoading:T,onSubmit:A=>d(A)})]})})]})})}):null},L5=()=>{const e=po(),{status:{type:t,isMinimized:n}}=e||{status:{}};return n?L.jsx($w,{}):t==="dialog"?L.jsx(UT,{}):t==="modal"?L.jsx(HT,{}):L.jsx(IT,{})},ph=e=>L.jsx(d0,re(U({},e),{children:L.jsx(L5,{})}));var bl={},zT;function D5(){if(zT)return bl;zT=1;var e=g0();return bl.createRoot=e.createRoot,bl.hydrateRoot=e.hydrateRoot,bl}var jT=D5();const M5=r=>{var o=r,{elementId:e,timeout:t=5e3}=o,n=Zt(o,["elementId","timeout"]);let a;const u=(d,h)=>{var m;for(const g of d)if(g.type==="childList"&&g.addedNodes.length)for(const b of g.addedNodes)b.nodeType===Node.ELEMENT_NODE&&b.id===e&&(Ci(!0,"log","Target element found, rendering Messaging Widget"),h.disconnect(),clearTimeout(a),(m=jT.createRoot(b))==null||m.render(L.jsx(ph,re(U({},n),{mode:"messaging"}))))},c=new MutationObserver(u);return c.observe(document.body,{childList:!0,subtree:!0}),a=setTimeout(()=>{c.disconnect(),Ci(!0,"error",`Element with id: ${e} not found within ${t} milliseconds, stopping observation`)},t),c},F5=r=>{var o=r,{timeout:e,elementId:t}=o,n=Zt(o,["timeout","elementId"]);if(!n.messagingConfig){Ci(!0,"error","Messaging Widget requires messagingConfig");return}if(!n.messagingConfig.scrt2Url||!n.messagingConfig.orgId||!n.messagingConfig.esDeveloperName){Ci(!0,"error","Messaging Widget requires messagingConfig.scrt2Url, messagingConfig.orgId, and messagingConfig.esDeveloperName");return}const a=document.getElementById(t);if(!a){Ci(!0,"warn","Container element not found for id:",t),Ci(!0,"warn","Beginning observation for element"),M5(U({elementId:t,timeout:e},n));return}jT.createRoot(a).render(L.jsx(ph,re(U({},n),{mode:"messaging"})))},B5={components:{setEntryType:l0,toggleWidgetOpen:vi,toggleWidgetMinimized:bu,toggleModalFullscreen:fd,setWidgetType:_u,setWidgetDialogPosition:hd}};Ie.AgentForceWidget=ph,Ie.AgentforceWidgetProvider=d0,Ie.MessagingDialog=UT,Ie.MessagingEmbed=IT,Ie.MessagingModal=HT,Ie.MessagingProvider=u0,Ie.eventHandlers=B5,Ie.injectMessagingWidget=F5,Ie.useMessaging=ki,Object.defineProperty(Ie,Symbol.toStringTag,{value:"Module"})}));
|