@veracity/ai 2.4.3 → 2.4.4

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.
@@ -1,9 +1,9 @@
1
- (function(kt,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(kt=typeof globalThis<"u"?globalThis:kt||self,_(kt.VeracityAI={}))})(this,function(kt){"use strict";var a4=Object.defineProperty;var s4=(kt,_,Je)=>_ in kt?a4(kt,_,{enumerable:!0,configurable:!0,writable:!0,value:Je}):kt[_]=Je;var P=(kt,_,Je)=>s4(kt,typeof _!="symbol"?_+"":_,Je);function _(t,e,...r){switch(typeof t){case"string":{const n=document.createElement(t);Je(n,e);for(const i of r)Ia(n,i);return n}case"function":return t(e||{},r)}throw new Error(`Unable to create element of type '${typeof t}'`)}function Je(t,e){if(e)for(const r in e){const n=e[r];if(r in t)if(r==="classList"){if(n)for(const i of n)t.classList.add(i)}else t[r]=n;else r in t.style?t.style[r]=n:t.setAttribute(r,n)}}function nl(t){if(t instanceof Node)return t;if(typeof t=="string")return document.createTextNode(t);if(t!=null&&t[Symbol.iterator]){const e=document.createDocumentFragment();for(const r of t)Ia(e,r);return e}else return t?document.createTextNode(t):document.createComment(` ${t} `)}function Ia(t,e){const r=nl(e);t.appendChild(r)}const il=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Avenir Next,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}b,strong{font-weight:600}:root{--Dark-Blue-5: hsl(223, 67%, 5%);--Dark-Blue-10: hsl(223, 67%, 10%);--Dark-Blue-15: hsl(223, 67%, 15%);--Dark-Blue-20: hsl(223, 67%, 20%);--Dark-Blue-25: hsl(223, 67%, 25%);--Dark-Blue-30: hsl(223, 67%, 30%);--Dark-Blue-35: hsl(223, 67%, 35%);--Dark-Blue-40: hsl(223, 67%, 40%);--Dark-Blue-45: hsl(223, 67%, 45%);--Dark-Blue-50: hsl(223, 67%, 50%);--Dark-Blue-55: hsl(223, 67%, 55%);--Dark-Blue-60: hsl(223, 67%, 60%);--Dark-Blue-65: hsl(223, 67%, 65%);--Dark-Blue-70: hsl(223, 67%, 70%);--Dark-Blue-75: hsl(223, 67%, 75%);--Dark-Blue-80: hsl(223, 67%, 80%);--Dark-Blue-85: hsl(223, 67%, 85%);--Dark-Blue-90: hsl(223, 67%, 90%);--Dark-Blue-95: hsl(223, 67%, 95%);--Dark-Blue-Main-18: hsl(223, 67%, 18%);--Sea-Blue-5: hsl(218, 100%, 5%);--Sea-Blue-10: hsl(218, 100%, 10%);--Sea-Blue-15: hsl(218, 100%, 15%);--Sea-Blue-20: hsl(218, 100%, 20%);--Sea-Blue-25: hsl(218, 100%, 25%);--Sea-Blue-30: hsl(218, 100%, 30%);--Sea-Blue-35: hsl(218, 100%, 35%);--Sea-Blue-40: hsl(218, 100%, 40%);--Sea-Blue-45: hsl(218, 100%, 45%);--Sea-Blue-50: hsl(218, 100%, 50%);--Sea-Blue-55: hsl(218, 100%, 55%);--Sea-Blue-60: hsl(218, 100%, 60%);--Sea-Blue-65: hsl(218, 100%, 65%);--Sea-Blue-70: hsl(218, 100%, 70%);--Sea-Blue-75: hsl(218, 100%, 75%);--Sea-Blue-80: hsl(218, 100%, 80%);--Sea-Blue-85: hsl(218, 100%, 85%);--Sea-Blue-90: hsl(218, 100%, 90%);--Sea-Blue-95: hsl(218, 100%, 95%);--Sea-Blue-Main-28: hsl(218, 100%, 28%);--Sky-Blue-5: hsl(196, 74%, 5%);--Sky-Blue-10: hsl(196, 74%, 10%);--Sky-Blue-15: hsl(196, 74%, 15%);--Sky-Blue-20: hsl(196, 74%, 20%);--Sky-Blue-25: hsl(196, 74%, 25%);--Sky-Blue-30: hsl(196, 74%, 30%);--Sky-Blue-35: hsl(196, 74%, 35%);--Sky-Blue-40: hsl(196, 74%, 40%);--Sky-Blue-45: hsl(196, 74%, 45%);--Sky-Blue-50: hsl(196, 74%, 50%);--Sky-Blue-55: hsl(196, 74%, 55%);--Sky-Blue-60: hsl(196, 74%, 60%);--Sky-Blue-65: hsl(196, 74%, 65%);--Sky-Blue-70: hsl(196, 74%, 70%);--Sky-Blue-75: hsl(196, 74%, 75%);--Sky-Blue-80: hsl(196, 74%, 80%);--Sky-Blue-85: hsl(196, 74%, 85%);--Sky-Blue-90: hsl(196, 74%, 90%);--Sky-Blue-95: hsl(196, 74%, 95%);--Sky-Blue-97: hsl(196, 74%, 97%);--Sky-Blue-Main-77: hsl(196, 74%, 77%);--Digi-Green-5: hsl(139, 100%, 5%);--Digi-Green-10: hsl(139, 100%, 10%);--Digi-Green-15: hsl(139, 100%, 15%);--Digi-Green-20: hsl(139, 100%, 20%);--Digi-Green-25: hsl(139, 100%, 25%);--Digi-Green-30: hsl(139, 100%, 30%);--Digi-Green-35: hsl(139, 100%, 35%);--Digi-Green-40: hsl(139, 100%, 40%);--Digi-Green-45: hsl(139, 100%, 45%);--Digi-Green-50: hsl(139, 100%, 50%);--Digi-Green-55: hsl(139, 100%, 55%);--Digi-Green-60: hsl(139, 100%, 60%);--Digi-Green-65: hsl(139, 100%, 65%);--Digi-Green-70: hsl(139, 100%, 70%);--Digi-Green-75: hsl(139, 100%, 75%);--Digi-Green-80: hsl(139, 100%, 80%);--Digi-Green-85: hsl(139, 100%, 85%);--Digi-Green-90: hsl(139, 100%, 90%);--Digi-Green-95: hsl(139, 100%, 95%);--Digi-Green-Main-78: hsl(139, 100%, 78%);--Sandstone-5: hsl(40, 3%, 5%);--Sandstone-10: hsl(40, 3%, 10%);--Sandstone-15: hsl(40, 3%, 15%);--Sandstone-20: hsl(40, 3%, 20%);--Sandstone-25: hsl(40, 3%, 25%);--Sandstone-30: hsl(40, 3%, 30%);--Sandstone-35: hsl(40, 3%, 35%);--Sandstone-40: hsl(40, 3%, 40%);--Sandstone-45: hsl(40, 3%, 45%);--Sandstone-50: hsl(40, 3%, 50%);--Sandstone-55: hsl(40, 3%, 55%);--Sandstone-60: hsl(40, 3%, 60%);--Sandstone-65: hsl(40, 3%, 65%);--Sandstone-70: hsl(40, 3%, 70%);--Sandstone-75: hsl(40, 3%, 75%);--Sandstone-80: hsl(40, 3%, 80%);--Sandstone-85: hsl(40, 3%, 85%);--Sandstone-90: hsl(40, 3%, 90%);--Sandstone-95: hsl(40, 3%, 95%);--Sandstone-97: hsl(40, 3%, 97%);--Sandstone-Main-79: hsl(40, 3%, 79%);--Warm-Grey-5: hsl(30, 8%, 5%);--Warm-Grey-10: hsl(30, 8%, 10%);--Warm-Grey-15: hsl(30, 8%, 15%);--Warm-Grey-20: hsl(30, 8%, 20%);--Warm-Grey-25: hsl(30, 8%, 25%);--Warm-Grey-30: hsl(30, 8%, 30%);--Warm-Grey-35: hsl(30, 8%, 35%);--Warm-Grey-40: hsl(30, 8%, 40%);--Warm-Grey-45: hsl(30, 8%, 45%);--Warm-Grey-50: hsl(30, 8%, 50%);--Warm-Grey-55: hsl(30, 8%, 55%);--Warm-Grey-60: hsl(30, 8%, 60%);--Warm-Grey-65: hsl(30, 8%, 65%);--Warm-Grey-70: hsl(30, 8%, 70%);--Warm-Grey-75: hsl(30, 8%, 75%);--Warm-Grey-80: hsl(30, 8%, 80%);--Warm-Grey-85: hsl(30, 8%, 85%);--Warm-Grey-90: hsl(30, 8%, 90%);--Warm-Grey-95: hsl(30, 8%, 95%);--Warm-Grey-Main-56: hsl(30, 8%, 56%);--Earth-5: hsl(35, 53%, 5%);--Earth-10: hsl(35, 53%, 10%);--Earth-15: hsl(35, 53%, 15%);--Earth-20: hsl(35, 53%, 20%);--Earth-25: hsl(35, 53%, 25%);--Earth-30: hsl(35, 53%, 30%);--Earth-35: hsl(35, 53%, 35%);--Earth-40: hsl(35, 53%, 40%);--Earth-45: hsl(35, 53%, 45%);--Earth-50: hsl(35, 53%, 50%);--Earth-55: hsl(35, 53%, 55%);--Earth-60: hsl(35, 53%, 60%);--Earth-65: hsl(35, 53%, 65%);--Earth-70: hsl(35, 53%, 70%);--Earth-75: hsl(35, 53%, 75%);--Earth-80: hsl(35, 53%, 80%);--Earth-85: hsl(35, 53%, 85%);--Earth-90: hsl(35, 53%, 90%);--Earth-95: hsl(35, 53%, 95%);--Earth-97: hsl(35, 53%, 97%);--Earth-Main-89: hsl(35, 53%, 89%);--Pine-5: hsl(195, 46%, 5%);--Pine-10: hsl(195, 46%, 10%);--Pine-15: hsl(195, 46%, 15%);--Pine-20: hsl(195, 46%, 20%);--Pine-25: hsl(195, 46%, 25%);--Pine-30: hsl(195, 46%, 30%);--Pine-35: hsl(195, 46%, 35%);--Pine-40: hsl(195, 46%, 40%);--Pine-45: hsl(195, 46%, 45%);--Pine-50: hsl(195, 46%, 50%);--Pine-55: hsl(195, 46%, 55%);--Pine-60: hsl(195, 46%, 60%);--Pine-65: hsl(195, 46%, 65%);--Pine-70: hsl(195, 46%, 70%);--Pine-75: hsl(195, 46%, 75%);--Pine-80: hsl(195, 46%, 80%);--Pine-85: hsl(195, 46%, 85%);--Pine-90: hsl(195, 46%, 90%);--Pine-95: hsl(195, 46%, 95%);--Pine-Main-30: hsl(195, 46%, 30%);--Eucalyptus-5: hsl(178, 80%, 5%);--Eucalyptus-10: hsl(178, 80%, 10%);--Eucalyptus-15: hsl(178, 80%, 15%);--Eucalyptus-20: hsl(178, 80%, 20%);--Eucalyptus-25: hsl(178, 80%, 25%);--Eucalyptus-30: hsl(178, 80%, 30%);--Eucalyptus-35: hsl(178, 80%, 35%);--Eucalyptus-40: hsl(178, 80%, 40%);--Eucalyptus-45: hsl(178, 80%, 45%);--Eucalyptus-50: hsl(178, 80%, 50%);--Eucalyptus-55: hsl(178, 80%, 55%);--Eucalyptus-60: hsl(178, 80%, 60%);--Eucalyptus-65: hsl(178, 80%, 65%);--Eucalyptus-70: hsl(178, 80%, 70%);--Eucalyptus-75: hsl(178, 80%, 75%);--Eucalyptus-80: hsl(178, 80%, 80%);--Eucalyptus-85: hsl(178, 80%, 85%);--Eucalyptus-90: hsl(178, 80%, 90%);--Eucalyptus-95: hsl(178, 80%, 95%);--Eucalyptus-Main-41: hsl(178, 80%, 41%);--Lavender-5: hsl(232, 58%, 5%);--Lavender-10: hsl(232, 58%, 10%);--Lavender-15: hsl(232, 58%, 15%);--Lavender-20: hsl(232, 58%, 20%);--Lavender-25: hsl(232, 58%, 25%);--Lavender-30: hsl(232, 58%, 30%);--Lavender-35: hsl(232, 58%, 35%);--Lavender-40: hsl(232, 58%, 40%);--Lavender-45: hsl(232, 58%, 45%);--Lavender-50: hsl(232, 58%, 50%);--Lavender-55: hsl(232, 58%, 55%);--Lavender-60: hsl(232, 58%, 60%);--Lavender-65: hsl(232, 58%, 65%);--Lavender-70: hsl(232, 58%, 70%);--Lavender-75: hsl(232, 58%, 75%);--Lavender-80: hsl(232, 58%, 80%);--Lavender-85: hsl(232, 58%, 85%);--Lavender-90: hsl(232, 58%, 90%);--Lavender-95: hsl(232, 58%, 95%);--Lavender-Main-77: hsl(232, 58%, 77%);--Terracotta-5: hsl(34, 100%, 5%);--Terracotta-10: hsl(34, 100%, 10%);--Terracotta-15: hsl(34, 100%, 15%);--Terracotta-20: hsl(34, 100%, 20%);--Terracotta-25: hsl(34, 100%, 25%);--Terracotta-30: hsl(34, 100%, 30%);--Terracotta-35: hsl(34, 100%, 35%);--Terracotta-40: hsl(34, 100%, 40%);--Terracotta-45: hsl(34, 100%, 45%);--Terracotta-50: hsl(34, 100%, 50%);--Terracotta-55: hsl(34, 100%, 55%);--Terracotta-60: hsl(34, 100%, 60%);--Terracotta-65: hsl(34, 100%, 65%);--Terracotta-70: hsl(34, 100%, 70%);--Terracotta-75: hsl(34, 100%, 75%);--Terracotta-80: hsl(34, 100%, 80%);--Terracotta-85: hsl(34, 100%, 85%);--Terracotta-90: hsl(34, 100%, 90%);--Terracotta-95: hsl(34, 100%, 95%);--Terracotta-Main-35: hsl(34, 100%, 35%);--Land-Green-5: hsl(114, 49%, 5%);--Land-Green-10: hsl(114, 49%, 10%);--Land-Green-15: hsl(114, 49%, 15%);--Land-Green-20: hsl(114, 49%, 20%);--Land-Green-25: hsl(114, 49%, 25%);--Land-Green-30: hsl(114, 49%, 30%);--Land-Green-35: hsl(114, 49%, 35%);--Land-Green-40: hsl(114, 49%, 40%);--Land-Green-45: hsl(114, 49%, 45%);--Land-Green-50: hsl(114, 49%, 50%);--Land-Green-55: hsl(114, 49%, 55%);--Land-Green-60: hsl(114, 49%, 60%);--Land-Green-65: hsl(114, 49%, 65%);--Land-Green-70: hsl(114, 49%, 70%);--Land-Green-75: hsl(114, 49%, 75%);--Land-Green-80: hsl(114, 49%, 80%);--Land-Green-85: hsl(114, 49%, 85%);--Land-Green-90: hsl(114, 49%, 90%);--Land-Green-95: hsl(114, 49%, 95%);--Land-Green-Main-41: hsl(114, 49%, 41%);--Sunflower-5: hsl(55, 100%, 5%);--Sunflower-10: hsl(55, 100%, 10%);--Sunflower-15: hsl(55, 100%, 15%);--Sunflower-20: hsl(55, 100%, 20%);--Sunflower-25: hsl(55, 100%, 25%);--Sunflower-30: hsl(55, 100%, 30%);--Sunflower-35: hsl(55, 100%, 35%);--Sunflower-40: hsl(55, 100%, 40%);--Sunflower-45: hsl(55, 100%, 45%);--Sunflower-50: hsl(55, 100%, 50%);--Sunflower-55: hsl(55, 100%, 55%);--Sunflower-60: hsl(55, 100%, 60%);--Sunflower-65: hsl(55, 100%, 65%);--Sunflower-70: hsl(55, 100%, 70%);--Sunflower-75: hsl(55, 100%, 75%);--Sunflower-80: hsl(55, 100%, 80%);--Sunflower-85: hsl(55, 100%, 85%);--Sunflower-90: hsl(55, 100%, 90%);--Sunflower-95: hsl(55, 100%, 95%);--Sunflower-Main-73: hsl(55, 100%, 73%);--Energy-Red-5: hsl(357, 83%, 5%);--Energy-Red-10: hsl(357, 83%, 10%);--Energy-Red-15: hsl(357, 83%, 15%);--Energy-Red-20: hsl(357, 83%, 20%);--Energy-Red-25: hsl(357, 83%, 25%);--Energy-Red-30: hsl(357, 83%, 30%);--Energy-Red-35: hsl(357, 83%, 35%);--Energy-Red-40: hsl(357, 83%, 40%);--Energy-Red-45: hsl(357, 83%, 45%);--Energy-Red-50: hsl(357, 83%, 50%);--Energy-Red-55: hsl(357, 83%, 55%);--Energy-Red-60: hsl(357, 83%, 60%);--Energy-Red-65: hsl(357, 83%, 65%);--Energy-Red-70: hsl(357, 83%, 70%);--Energy-Red-75: hsl(357, 83%, 75%);--Energy-Red-80: hsl(357, 83%, 80%);--Energy-Red-85: hsl(357, 83%, 85%);--Energy-Red-90: hsl(357, 83%, 90%);--Energy-Red-95: hsl(357, 83%, 95%);--Energy-Red-Main-54: hsl(357, 83%, 54%);--Cyan-5: hsl(196, 100%, 5%);--Cyan-10: hsl(196, 100%, 10%);--Cyan-15: hsl(196, 100%, 15%);--Cyan-20: hsl(196, 100%, 20%);--Cyan-25: hsl(196, 100%, 25%);--Cyan-30: hsl(196, 100%, 30%);--Cyan-35: hsl(196, 100%, 35%);--Cyan-40: hsl(196, 100%, 40%);--Cyan-45: hsl(196, 100%, 45%);--Cyan-50: hsl(196, 100%, 50%);--Cyan-55: hsl(196, 100%, 55%);--Cyan-60: hsl(196, 100%, 60%);--Cyan-65: hsl(196, 100%, 65%);--Cyan-70: hsl(196, 100%, 70%);--Cyan-75: hsl(196, 100%, 75%);--Cyan-80: hsl(196, 100%, 80%);--Cyan-85: hsl(196, 100%, 85%);--Cyan-90: hsl(196, 100%, 90%);--Cyan-95: hsl(196, 100%, 95%);--Cyan-Main-43: hsl(196, 100%, 43%);--Black: hsl(40 3% 10%);--White: hsl(40 3% 100%);--Light: hsl(40, 3%, 90%);--Default: hsl(40, 3%, 79%);--Medium: hsl(40, 3%, 75%);--Strong: hsl(218, 100%, 28%);--Emphasis: hsl(223, 67%, 18%);--vui-animation-duration-0: 0ms;--vui-animation-duration-100: .13s;--vui-animation-duration-200: .16s;--vui-animation-duration-300: .19s;--vui-animation-duration-400: .22s;--vui-animation-duration-500: .25s;--vui-animation-duration-600: .3s;--vui-animation-duration-700: .35s;--vui-animation-duration-800: .4s;--vui-animation-duration-900: .45s;--vui-animation-duration-1000: .5s;--vui-animation-duration-2000: 1s;--vui-animation-duration-4000: 2s;--vui-animation-ease-in-out: cubic-bezier(.45, 0, .4, 1);--vui-animation-ease-in: cubic-bezier(.5, 0, 1, 1);--vui-animation-ease-out: cubic-bezier(0, 0, .4, 1);--vui-animation-linear: cubic-bezier(0, 0, 1, 1);--vui-elevation-1: 0 6px 23px -10px hsla(223, 67%, 18%, .2);--vui-elevation-2: 0 9px 20px -6px hsla(223, 67%, 18%, .2);--vui-elevation-3: 0 12px 23px -4px hsla(223, 67%, 18%, .2);--vui-elevation-4: 0 15px 23px 0 hsla(223, 67%, 18%, .2);--fluent-depth-0: 0 0 0 0 transparent;--fluent-depth-4: 0 1.6px 3.6px 0 rgba(0, 0, 0, .132), 0 .3px .9px 0 rgba(0, 0, 0, .108);--fluent-depth-8: 0 3.2px 7.2px 0 rgba(0, 0, 0, .132), 0 .6px 1.8px 0 rgba(0, 0, 0, .108);--fluent-depth-16: 0 6.4px 14.4px 0 rgba(0, 0, 0, .132), 0 1.2px 3.6px 0 rgba(0, 0, 0, .108);--fluent-depth-64: 0 25.6px 57.6px 0 rgba(0, 0, 0, .22), 0 4.8px 14.4px 0 rgba(0, 0, 0, .18)}.h1{font-size:3.125rem;font-style:normal;font-weight:400;line-height:1.24}@media only screen and (max-width: 992px){.h1{font-size:1.9375rem;line-height:1.5483870967741935}}.h1{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .h1){color:var(--White, hsl(40 3% 100%))}.h2{font-size:2rem;font-style:normal;font-weight:400;line-height:1.3125}@media only screen and (max-width: 992px){.h2{font-size:1.75rem;line-height:1.3571428571428572}}.h2{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .h2){color:var(--White, hsl(40 3% 100%))}.h3{font-size:1.5rem;font-style:normal;font-weight:400;line-height:1.3333333333333333}@media only screen and (max-width: 992px){.h3{font-size:1.375rem;line-height:1.4545454545454546}}.h3{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .h3){color:var(--White, hsl(40 3% 100%))}.h4{font-size:1.25rem;font-style:normal;font-weight:600;line-height:1.2}@media only screen and (max-width: 992px){.h4{font-size:1.125rem;line-height:1.3333333333333333}}.h4{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .h4){color:var(--White, hsl(40 3% 100%))}.h5{font-size:1.125rem;font-style:normal;font-weight:600;line-height:1.4444444444444444}@media only screen and (max-width: 992px){.h5{font-size:1rem;line-height:1.375}}.h5{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .h5){color:var(--White, hsl(40 3% 100%))}.h6{font-size:1rem;font-style:normal;font-weight:600;line-height:1.375;color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .h6){color:var(--White, hsl(40 3% 100%))}.btn{font-weight:500;font-style:normal;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:0;display:inline-flex}.btn>*{flex-shrink:0}.btn{height:auto;margin:0;outline:none;text-decoration:none;transition:background var(--vui-animation-duration-100) ease-out,border-color var(--vui-animation-duration-100) ease-out,color var(--vui-animation-duration-100) ease-out,box-shadow var(--vui-animation-duration-100) ease-out;white-space:nowrap}.btn:focus-visible,.btn.focus-visible{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: hsl(196, 100%, 43%);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.btn:disabled{opacity:.5}.btn.btn-xl,.btn-xl{font-size:1.125rem;line-height:1.5555555555555556;gap:.625rem;padding:.625rem 1.25rem}.btn.btn-lg,.btn-lg{font-size:1rem;line-height:1.5;gap:.5rem;padding:.5rem 1rem}.btn.btn-md,.btn-md{font-size:.875rem;line-height:1.4285714285714286;gap:.375rem;padding:.375rem .75rem}.btn.btn-sm,.btn-sm{font-size:.75rem;line-height:1.3333333333333333;gap:.25rem;padding:.25rem .5rem}.btn.btn-primary,.btn-primary{background:var(--Sea-Blue-Main-28, #00348F);color:var(--White, #FFFFFF);justify-content:center}.btn.btn-primary:hover,.btn-primary:hover{background:var(--Sea-Blue-20, #002566)}.btn.btn-primary:active,.btn.btn-primary.active,.btn-primary:active,.btn-primary.active{background:var(--Sea-Blue-35, #0041B3)}:is(.dark .btn.btn-primary),:is(.dark .btn-primary){background:var(--Digi-Green-Main-78, #8FFFB2);color:var(--Dark-Blue-Main-18, #0F214D)}:is(.dark .btn.btn-primary):hover,:is(.dark .btn-primary):hover{background:var(--Digi-Green-70, #66FF96)}:is(.dark .btn.btn-primary):active,:is(.dark .btn.btn-primary).active,:is(.dark .btn-primary):active,:is(.dark .btn-primary).active{background:var(--Digi-Green-85, #B3FFCB)}.btn.btn-secondary,.btn-secondary{background:transparent;border:1px solid var(--Sea-Blue-Main-28, #00348F);color:var(--Sea-Blue-Main-28, #00348F);justify-content:center}.btn.btn-secondary:hover,.btn-secondary:hover{background:var(--Sky-Blue-80, #A6DEF2)}.btn.btn-secondary:active,.btn.btn-secondary.active,.btn-secondary:active,.btn-secondary.active{background:var(--Sky-Blue-85, #BCE6F5)}:is(.dark .btn.btn-secondary),:is(.dark .btn-secondary){border-color:var(--Digi-Green-Main-78, #8FFFB2);color:var(--Digi-Green-Main-78, #8FFFB2)}:is(.dark .btn.btn-secondary):hover,:is(.dark .btn-secondary):hover{background:var(--Sea-Blue-25, #002F80)}:is(.dark .btn.btn-secondary):active,:is(.dark .btn.btn-secondary).active,:is(.dark .btn-secondary):active,:is(.dark .btn-secondary).active{background:var(--Sea-Blue-35, #0041B3)}.btn.btn-tertiary,.btn-tertiary{background:transparent;color:var(--Sea-Blue-Main-28, #00348F);justify-content:center}.btn.btn-tertiary:hover,.btn-tertiary:hover{background:var(--Sky-Blue-80, #A6DEF2)}.btn.btn-tertiary:active,.btn.btn-tertiary.active,.btn-tertiary:active,.btn-tertiary.active{background:var(--Sky-Blue-85, #BCE6F5)}:is(.dark .btn.btn-tertiary),:is(.dark .btn-tertiary){color:var(--Digi-Green-Main-78, #8FFFB2)}:is(.dark .btn.btn-tertiary):hover,:is(.dark .btn-tertiary):hover{background:var(--Sea-Blue-25, #002F80)}:is(.dark .btn.btn-tertiary):active,:is(.dark .btn.btn-tertiary).active,:is(.dark .btn-tertiary):active,:is(.dark .btn-tertiary).active{background:var(--Sea-Blue-35, #0041B3)}.btn.btn-badge,.btn-badge{background:var(--Sky-Blue-95, #E9F7FC);border-radius:9999px;color:var(--Sea-Blue-Main-28, #00348F);justify-content:center}.btn.btn-badge:hover,.btn-badge:hover{background:var(--Sky-Blue-90, #D3EEF8)}.btn.btn-badge:active,.btn.btn-badge.active,.btn-badge:active,.btn-badge.active{background:var(--Sky-Blue-85, #BCE6F5)}.btn.btn-badge[data-status=success],.btn-badge[data-status=success]{background:var(--Land-Green-95, #EDF8EC);color:var(--Land-Green-30, #2F7227)}.btn.btn-badge[data-status=success]:hover,.btn-badge[data-status=success]:hover{background:var(--Land-Green-90, #DCF2D9)}.btn.btn-badge[data-status=success]:active,.btn.btn-badge[data-status=success].active,.btn-badge[data-status=success]:active,.btn-badge[data-status=success].active{background:var(--Land-Green-85, #CAEBC6)}.btn.btn-badge[data-status=error],.btn-badge[data-status=error]{background:var(--Energy-Red-95, #FDE8E9);color:var(--Energy-Red-30, #8C0D13)}.btn.btn-badge[data-status=error]:hover,.btn-badge[data-status=error]:hover{background:var(--Energy-Red-90, #FBD0D2)}.btn.btn-badge[data-status=error]:active,.btn.btn-badge[data-status=error].active,.btn-badge[data-status=error]:active,.btn-badge[data-status=error].active{background:var(--Energy-Red-85, #F8B9BC)}.btn.btn-marketplaceCTA,.btn-marketplaceCTA{background:var(--Land-Green-35, #36852E);color:var(--White, #FFFFFF);justify-content:center}.btn.btn-marketplaceCTA:hover,.btn-marketplaceCTA:hover{background:var(--Land-Green-25, #275F21)}.btn.btn-marketplaceCTA:active,.btn.btn-marketplaceCTA.active,.btn-marketplaceCTA:active,.btn-marketplaceCTA.active{background:var(--Land-Green-Main-41, #409C35)}.btn.btn-destructive,.btn-destructive{background:var(--Energy-Red-45, #D2141D);color:var(--White, #FFFFFF);justify-content:center}.btn.btn-destructive:hover,.btn-destructive:hover{background:var(--Energy-Red-35, #A30F17)}.btn.btn-destructive:active,.btn.btn-destructive.active,.btn-destructive:active,.btn-destructive.active{background:var(--Energy-Red-50, #E91620)}.sideMenuItem>.icon{width:24px;height:24px}.input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;border:1px solid var(--Sandstone-60, #9C9A96);border-radius:0;color:#1a1a19;display:block;font-weight:400;font-style:normal;outline:0 solid transparent;width:100%}.input:focus{border:1px solid var(--Cyan-Main-43, #00A1DB);outline:1px solid var(--Cyan-Main-43, #00A1DB)}.input:disabled,.input[aria-disabled=true],fieldset:disabled .input{background:var(--Sandstone-90, #E6E6E5);border-color:var(--Sandstone-90, #E6E6E5)}.input::-moz-placeholder{color:var(--Sandstone-55, #908D89);opacity:1}.input::placeholder{color:var(--Sandstone-55, #908D89);opacity:1}.input.input-xl,.input-xl{font-size:1rem;line-height:1.625;padding:.4375rem .5rem}.input.input-lg,.input-lg{font-size:1rem;line-height:1.625;padding:.375rem .5rem}.input.input-md,.input-md{font-size:.875rem;line-height:1.5714285714285714;padding:.25rem .5rem}.input.input-sm,.input-sm{font-size:.875rem;line-height:1.5714285714285714;padding:.0625rem .5rem}.input.input-validated,.input.input-validated:focus,.input-validated,.input-validated:focus{border-color:var(--Land-Green-35, #36852E)}.input.input-validated,.input-validated{background-image:url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20.8831 4.31025L7.75741 17.436L3.11702 12.7956C2.89736 12.5759 2.54121 12.5759 2.3215 12.7956L1.79121 13.3259C1.57155 13.5455 1.57155 13.9017 1.79121 14.1214L7.35968 19.6898C7.57933 19.9095 7.93549 19.9095 8.15519 19.6898L22.2089 5.63611C22.4286 5.41645 22.4286 5.0603 22.2089 4.84059L21.6786 4.31025C21.4589 4.09059 21.1028 4.09059 20.8831 4.31025Z' fill='var(--Land-Green-35%2c %2336852E)'/%3e%3c/svg%3e");background-repeat:no-repeat}.input.input-error,.input.input-error:focus,.input-error,.input-error:focus{border-color:var(--Energy-Red-45, #D2141D)}.input.input-select,.input-select{background-image:url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.6018 15.3255L6.16426 9.80359C5.94395 9.58328 5.94395 9.22703 6.16426 9.00671L6.49707 8.6739C6.71738 8.45359 7.07363 8.45359 7.29395 8.6739L12.0002 13.4692L16.7064 8.67859C16.9268 8.45828 17.283 8.45828 17.5033 8.67859L17.8361 9.0114C18.0564 9.23171 18.0564 9.58796 17.8361 9.80828L12.3986 15.3302C12.1783 15.5458 11.8221 15.5458 11.6018 15.3255Z' fill='var(--Sea-Blue-Main-28%2c %2300348F)'/%3e%3c/svg%3e");background-repeat:no-repeat}.avatar{font-weight:500;font-style:normal;align-items:center;background:#e6e6e5;border-radius:9999px;color:#353431;display:inline-flex;justify-content:center;overflow:hidden;text-transform:uppercase}.avatar.avatar-xl,.avatar-xl{font-size:1.125rem;line-height:1.5555555555555556;height:3rem;width:3rem}.avatar.avatar-lg,.avatar-lg{font-size:1rem;line-height:1.5;height:2.5rem;width:2.5rem}.avatar.avatar-md,.avatar-md{font-size:.875rem;line-height:1.4285714285714286;height:2rem;width:2rem}.avatar.avatar-sm,.avatar-sm{font-size:.75rem;line-height:1.3333333333333333;height:1.5rem;width:1.5rem}.avatar.avatar-xxl,.avatar-xxl{font-size:1.125rem;line-height:1.5555555555555556;height:3.5rem;width:3.5rem}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"\`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose :where(ul>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0!important}.prose :where(ul>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0!important}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-neutral{--tw-prose-body: #404040;--tw-prose-headings: #171717;--tw-prose-lead: #525252;--tw-prose-links: #171717;--tw-prose-bold: #171717;--tw-prose-counters: #737373;--tw-prose-bullets: #d4d4d4;--tw-prose-hr: #e5e5e5;--tw-prose-quotes: #171717;--tw-prose-quote-borders: #e5e5e5;--tw-prose-captions: #737373;--tw-prose-kbd: #171717;--tw-prose-kbd-shadows: 23 23 23;--tw-prose-code: #171717;--tw-prose-pre-code: #e5e5e5;--tw-prose-pre-bg: #262626;--tw-prose-th-borders: #d4d4d4;--tw-prose-td-borders: #e5e5e5;--tw-prose-invert-body: #d4d4d4;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #a3a3a3;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #a3a3a3;--tw-prose-invert-bullets: #525252;--tw-prose-invert-hr: #404040;--tw-prose-invert-quotes: #f5f5f5;--tw-prose-invert-quote-borders: #404040;--tw-prose-invert-captions: #a3a3a3;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d4d4d4;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #525252;--tw-prose-invert-td-borders: #404040}.static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.m-2{margin:.5rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.mb-2{margin-bottom:.5rem!important}.ml-\\[1ch\\]{margin-left:1ch!important}.mt-2{margin-top:.5rem!important}.block{display:block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.table{display:table!important}.grid{display:grid!important}.h-3{height:.75rem!important}.h-full{height:100%!important}.w-3{width:.75rem!important}.w-\\[600px\\]{width:600px!important}.w-full{width:100%!important}.min-w-24{min-width:6rem!important}.max-w-lg{max-width:32rem!important}.max-w-none{max-width:none!important}.flex-1{flex:1 1 0%!important}.shrink-0{flex-shrink:0!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite!important}.select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.flex-col{flex-direction:column!important}.justify-end{justify-content:flex-end!important}.gap-2{gap:.5rem!important}.gap-3{gap:.75rem!important}.gap-5{gap:1.25rem!important}.overflow-hidden{overflow:hidden!important}.overflow-x-auto{overflow-x:auto!important}.whitespace-pre-wrap{white-space:pre-wrap!important}.rounded-full{border-radius:9999px!important}.border{border-width:1px!important}.border-l-4{border-left-width:4px!important}.border-t{border-top-width:1px!important}.border-Energy-Red-45{--tw-border-opacity: 1 !important;border-color:hsl(357 83% 45% / var(--tw-border-opacity, 1))!important}.border-Light{--tw-border-opacity: 1 !important;border-color:hsl(40 3% 90% / var(--tw-border-opacity, 1))!important}.border-t-Light{--tw-border-opacity: 1 !important;border-top-color:hsl(40 3% 90% / var(--tw-border-opacity, 1))!important}.bg-Black{--tw-bg-opacity: 1 !important;background-color:hsl(40 3% 10% / var(--tw-bg-opacity, 1))!important}.bg-Energy-Red-95{--tw-bg-opacity: 1 !important;background-color:hsl(357 83% 95% / var(--tw-bg-opacity, 1))!important}.bg-Eucalyptus-85{--tw-bg-opacity: 1 !important;background-color:hsl(178 80% 85% / var(--tw-bg-opacity, 1))!important}.bg-Land-Green-95{--tw-bg-opacity: 1 !important;background-color:hsl(114 49% 95% / var(--tw-bg-opacity, 1))!important}.bg-Lavender-90{--tw-bg-opacity: 1 !important;background-color:hsl(232 58% 90% / var(--tw-bg-opacity, 1))!important}.bg-Sandstone-95{--tw-bg-opacity: 1 !important;background-color:hsl(40 3% 95% / var(--tw-bg-opacity, 1))!important}.bg-Sandstone-97{--tw-bg-opacity: 1 !important;background-color:hsl(40 3% 97% / var(--tw-bg-opacity, 1))!important}.bg-Sea-Blue-Main-28{--tw-bg-opacity: 1 !important;background-color:hsl(218 100% 28% / var(--tw-bg-opacity, 1))!important}.bg-Sky-Blue-80{--tw-bg-opacity: 1 !important;background-color:hsl(196 74% 80% / var(--tw-bg-opacity, 1))!important}.bg-Sky-Blue-Main-77{--tw-bg-opacity: 1 !important;background-color:hsl(196 74% 77% / var(--tw-bg-opacity, 1))!important}.bg-Sunflower-85{--tw-bg-opacity: 1 !important;background-color:hsl(55 100% 85% / var(--tw-bg-opacity, 1))!important}.bg-Terracotta-85{--tw-bg-opacity: 1 !important;background-color:hsl(34 100% 85% / var(--tw-bg-opacity, 1))!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:.75rem!important}.p-6{padding:1.5rem!important}.pb-3{padding-bottom:.75rem!important}.pl-7{padding-left:1.75rem!important}.pr-3{padding-right:.75rem!important}.pt-3{padding-top:.75rem!important}.text-left{text-align:left!important}.text-base{font-size:1rem!important;line-height:1.625!important}.text-sm{font-size:.75rem!important;line-height:1.5!important}.font-medium{font-weight:500!important}.uppercase{text-transform:uppercase!important}.leading-5{line-height:1.25rem!important}.text-Black{--tw-text-opacity: 1 !important;color:hsl(40 3% 10% / var(--tw-text-opacity, 1))!important}.text-Energy-Red-45{--tw-text-opacity: 1 !important;color:hsl(357 83% 45% / var(--tw-text-opacity, 1))!important}.text-Eucalyptus-20{--tw-text-opacity: 1 !important;color:hsl(178 80% 20% / var(--tw-text-opacity, 1))!important}.text-Land-Green-30{--tw-text-opacity: 1 !important;color:hsl(114 49% 30% / var(--tw-text-opacity, 1))!important}.text-Lavender-50{--tw-text-opacity: 1 !important;color:hsl(232 58% 50% / var(--tw-text-opacity, 1))!important}.text-Sea-Blue-Main-28{--tw-text-opacity: 1 !important;color:hsl(218 100% 28% / var(--tw-text-opacity, 1))!important}.text-Sky-Blue-95{--tw-text-opacity: 1 !important;color:hsl(196 74% 95% / var(--tw-text-opacity, 1))!important}.text-Sunflower-20{--tw-text-opacity: 1 !important;color:hsl(55 100% 20% / var(--tw-text-opacity, 1))!important}.text-Terracotta-20{--tw-text-opacity: 1 !important;color:hsl(34 100% 20% / var(--tw-text-opacity, 1))!important}.text-Terracotta-30{--tw-text-opacity: 1 !important;color:hsl(34 100% 30% / var(--tw-text-opacity, 1))!important}.text-White{--tw-text-opacity: 1 !important;color:hsl(40 3% 100% / var(--tw-text-opacity, 1))!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.duration-300{transition-duration:.3s!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.title{font-size:4rem!important;font-style:normal!important;font-weight:400!important;line-height:1.15625!important}@media only screen and (max-width: 992px){.title{font-size:2.625rem!important;line-height:1.2380952380952381!important}}.title{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))!important}:is(.dark .title){color:var(--White, hsl(40 3% 100%))!important}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fade-in{animation:fadeIn .2s cubic-bezier(.4,0,1,1)}@keyframes pulse{0%{transform:scale(.75);opacity:.6}50%{transform:scale(1.25);opacity:1}to{transform:scale(.75);opacity:.6}}.btn-link:hover{cursor:pointer;border-radius:3px;background-color:#a8a2a2}.group[data-expanded=true] .group-data-\\[expanded\\=true\\]\\:-rotate-180{--tw-rotate: -180deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}`,al="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#383a42;background:#fafafa}.hljs-comment,.hljs-quote{color:#a0a1a7;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#a626a4}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e45649}.hljs-literal{color:#0184bb}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string{color:#50a14f}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#986801}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#4078f2}.hljs-built_in,.hljs-title.class_,.hljs-class .hljs-title{color:#c18401}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}",sl='@font-face{font-family:KaTeX_AMS;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_AMS-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_AMS-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_AMS-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Caligraphic-Bold.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Caligraphic-Bold.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Caligraphic-Bold.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Caligraphic-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Caligraphic-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Caligraphic-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Fraktur-Bold.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Fraktur-Bold.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Fraktur-Bold.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Fraktur-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Fraktur-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Fraktur-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Bold.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Bold.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Bold.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-BoldItalic.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-BoldItalic.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-BoldItalic.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Italic.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Italic.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Italic.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Math;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Math-BoldItalic.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Math-BoldItalic.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Math-BoldItalic.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Math;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Math-Italic.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Math-Italic.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Math-Italic.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Bold.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Bold.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Bold.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_SansSerif;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Italic.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Italic.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Italic.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Script;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Script-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Script-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Script-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size1;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Size1-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size1-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size1-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size2;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Size2-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size2-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size2-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size3;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Size3-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size3-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size3-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size4;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Size4-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size4-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size4-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Typewriter;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Typewriter-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Typewriter-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Typewriter-Regular.ttf) format("truetype");font-weight:400;font-style:normal}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.15"}.katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{position:relative;display:inline-block;white-space:nowrap;width:-moz-min-content;width:min-content}.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-weight:700;font-style:italic}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathsfit,.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{display:inline-table;table-layout:fixed;border-collapse:collapse}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;vertical-align:bottom;position:relative}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;vertical-align:bottom;font-size:1px;width:2px;min-width:2px}.katex .vbox{display:inline-flex;flex-direction:column;align-items:baseline}.katex .hbox{display:inline-flex;flex-direction:row;width:100%}.katex .thinbox{display:inline-flex;flex-direction:row;width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .underline .underline-line,.katex .hline,.katex .hdashline,.katex .rule{min-height:1px}.katex .mspace{display:inline-block}.katex .llap,.katex .rlap,.katex .clap{width:0;position:relative}.katex .llap>.inner,.katex .rlap>.inner,.katex .clap>.inner{position:absolute}.katex .llap>.fix,.katex .rlap>.fix,.katex .clap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .rlap>.inner,.katex .clap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{display:inline-block;border:solid 0;position:relative}.katex .overline .overline-line,.katex .underline .underline-line,.katex .hline{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline{display:inline-block;width:100%;border-bottom-style:dashed}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .sizing.reset-size1.size1,.katex .fontsize-ensurer.reset-size1.size1{font-size:1em}.katex .sizing.reset-size1.size2,.katex .fontsize-ensurer.reset-size1.size2{font-size:1.2em}.katex .sizing.reset-size1.size3,.katex .fontsize-ensurer.reset-size1.size3{font-size:1.4em}.katex .sizing.reset-size1.size4,.katex .fontsize-ensurer.reset-size1.size4{font-size:1.6em}.katex .sizing.reset-size1.size5,.katex .fontsize-ensurer.reset-size1.size5{font-size:1.8em}.katex .sizing.reset-size1.size6,.katex .fontsize-ensurer.reset-size1.size6{font-size:2em}.katex .sizing.reset-size1.size7,.katex .fontsize-ensurer.reset-size1.size7{font-size:2.4em}.katex .sizing.reset-size1.size8,.katex .fontsize-ensurer.reset-size1.size8{font-size:2.88em}.katex .sizing.reset-size1.size9,.katex .fontsize-ensurer.reset-size1.size9{font-size:3.456em}.katex .sizing.reset-size1.size10,.katex .fontsize-ensurer.reset-size1.size10{font-size:4.148em}.katex .sizing.reset-size1.size11,.katex .fontsize-ensurer.reset-size1.size11{font-size:4.976em}.katex .sizing.reset-size2.size1,.katex .fontsize-ensurer.reset-size2.size1{font-size:.8333333333em}.katex .sizing.reset-size2.size2,.katex .fontsize-ensurer.reset-size2.size2{font-size:1em}.katex .sizing.reset-size2.size3,.katex .fontsize-ensurer.reset-size2.size3{font-size:1.1666666667em}.katex .sizing.reset-size2.size4,.katex .fontsize-ensurer.reset-size2.size4{font-size:1.3333333333em}.katex .sizing.reset-size2.size5,.katex .fontsize-ensurer.reset-size2.size5{font-size:1.5em}.katex .sizing.reset-size2.size6,.katex .fontsize-ensurer.reset-size2.size6{font-size:1.6666666667em}.katex .sizing.reset-size2.size7,.katex .fontsize-ensurer.reset-size2.size7{font-size:2em}.katex .sizing.reset-size2.size8,.katex .fontsize-ensurer.reset-size2.size8{font-size:2.4em}.katex .sizing.reset-size2.size9,.katex .fontsize-ensurer.reset-size2.size9{font-size:2.88em}.katex .sizing.reset-size2.size10,.katex .fontsize-ensurer.reset-size2.size10{font-size:3.4566666667em}.katex .sizing.reset-size2.size11,.katex .fontsize-ensurer.reset-size2.size11{font-size:4.1466666667em}.katex .sizing.reset-size3.size1,.katex .fontsize-ensurer.reset-size3.size1{font-size:.7142857143em}.katex .sizing.reset-size3.size2,.katex .fontsize-ensurer.reset-size3.size2{font-size:.8571428571em}.katex .sizing.reset-size3.size3,.katex .fontsize-ensurer.reset-size3.size3{font-size:1em}.katex .sizing.reset-size3.size4,.katex .fontsize-ensurer.reset-size3.size4{font-size:1.1428571429em}.katex .sizing.reset-size3.size5,.katex .fontsize-ensurer.reset-size3.size5{font-size:1.2857142857em}.katex .sizing.reset-size3.size6,.katex .fontsize-ensurer.reset-size3.size6{font-size:1.4285714286em}.katex .sizing.reset-size3.size7,.katex .fontsize-ensurer.reset-size3.size7{font-size:1.7142857143em}.katex .sizing.reset-size3.size8,.katex .fontsize-ensurer.reset-size3.size8{font-size:2.0571428571em}.katex .sizing.reset-size3.size9,.katex .fontsize-ensurer.reset-size3.size9{font-size:2.4685714286em}.katex .sizing.reset-size3.size10,.katex .fontsize-ensurer.reset-size3.size10{font-size:2.9628571429em}.katex .sizing.reset-size3.size11,.katex .fontsize-ensurer.reset-size3.size11{font-size:3.5542857143em}.katex .sizing.reset-size4.size1,.katex .fontsize-ensurer.reset-size4.size1{font-size:.625em}.katex .sizing.reset-size4.size2,.katex .fontsize-ensurer.reset-size4.size2{font-size:.75em}.katex .sizing.reset-size4.size3,.katex .fontsize-ensurer.reset-size4.size3{font-size:.875em}.katex .sizing.reset-size4.size4,.katex .fontsize-ensurer.reset-size4.size4{font-size:1em}.katex .sizing.reset-size4.size5,.katex .fontsize-ensurer.reset-size4.size5{font-size:1.125em}.katex .sizing.reset-size4.size6,.katex .fontsize-ensurer.reset-size4.size6{font-size:1.25em}.katex .sizing.reset-size4.size7,.katex .fontsize-ensurer.reset-size4.size7{font-size:1.5em}.katex .sizing.reset-size4.size8,.katex .fontsize-ensurer.reset-size4.size8{font-size:1.8em}.katex .sizing.reset-size4.size9,.katex .fontsize-ensurer.reset-size4.size9{font-size:2.16em}.katex .sizing.reset-size4.size10,.katex .fontsize-ensurer.reset-size4.size10{font-size:2.5925em}.katex .sizing.reset-size4.size11,.katex .fontsize-ensurer.reset-size4.size11{font-size:3.11em}.katex .sizing.reset-size5.size1,.katex .fontsize-ensurer.reset-size5.size1{font-size:.5555555556em}.katex .sizing.reset-size5.size2,.katex .fontsize-ensurer.reset-size5.size2{font-size:.6666666667em}.katex .sizing.reset-size5.size3,.katex .fontsize-ensurer.reset-size5.size3{font-size:.7777777778em}.katex .sizing.reset-size5.size4,.katex .fontsize-ensurer.reset-size5.size4{font-size:.8888888889em}.katex .sizing.reset-size5.size5,.katex .fontsize-ensurer.reset-size5.size5{font-size:1em}.katex .sizing.reset-size5.size6,.katex .fontsize-ensurer.reset-size5.size6{font-size:1.1111111111em}.katex .sizing.reset-size5.size7,.katex .fontsize-ensurer.reset-size5.size7{font-size:1.3333333333em}.katex .sizing.reset-size5.size8,.katex .fontsize-ensurer.reset-size5.size8{font-size:1.6em}.katex .sizing.reset-size5.size9,.katex .fontsize-ensurer.reset-size5.size9{font-size:1.92em}.katex .sizing.reset-size5.size10,.katex .fontsize-ensurer.reset-size5.size10{font-size:2.3044444444em}.katex .sizing.reset-size5.size11,.katex .fontsize-ensurer.reset-size5.size11{font-size:2.7644444444em}.katex .sizing.reset-size6.size1,.katex .fontsize-ensurer.reset-size6.size1{font-size:.5em}.katex .sizing.reset-size6.size2,.katex .fontsize-ensurer.reset-size6.size2{font-size:.6em}.katex .sizing.reset-size6.size3,.katex .fontsize-ensurer.reset-size6.size3{font-size:.7em}.katex .sizing.reset-size6.size4,.katex .fontsize-ensurer.reset-size6.size4{font-size:.8em}.katex .sizing.reset-size6.size5,.katex .fontsize-ensurer.reset-size6.size5{font-size:.9em}.katex .sizing.reset-size6.size6,.katex .fontsize-ensurer.reset-size6.size6{font-size:1em}.katex .sizing.reset-size6.size7,.katex .fontsize-ensurer.reset-size6.size7{font-size:1.2em}.katex .sizing.reset-size6.size8,.katex .fontsize-ensurer.reset-size6.size8{font-size:1.44em}.katex .sizing.reset-size6.size9,.katex .fontsize-ensurer.reset-size6.size9{font-size:1.728em}.katex .sizing.reset-size6.size10,.katex .fontsize-ensurer.reset-size6.size10{font-size:2.074em}.katex .sizing.reset-size6.size11,.katex .fontsize-ensurer.reset-size6.size11{font-size:2.488em}.katex .sizing.reset-size7.size1,.katex .fontsize-ensurer.reset-size7.size1{font-size:.4166666667em}.katex .sizing.reset-size7.size2,.katex .fontsize-ensurer.reset-size7.size2{font-size:.5em}.katex .sizing.reset-size7.size3,.katex .fontsize-ensurer.reset-size7.size3{font-size:.5833333333em}.katex .sizing.reset-size7.size4,.katex .fontsize-ensurer.reset-size7.size4{font-size:.6666666667em}.katex .sizing.reset-size7.size5,.katex .fontsize-ensurer.reset-size7.size5{font-size:.75em}.katex .sizing.reset-size7.size6,.katex .fontsize-ensurer.reset-size7.size6{font-size:.8333333333em}.katex .sizing.reset-size7.size7,.katex .fontsize-ensurer.reset-size7.size7{font-size:1em}.katex .sizing.reset-size7.size8,.katex .fontsize-ensurer.reset-size7.size8{font-size:1.2em}.katex .sizing.reset-size7.size9,.katex .fontsize-ensurer.reset-size7.size9{font-size:1.44em}.katex .sizing.reset-size7.size10,.katex .fontsize-ensurer.reset-size7.size10{font-size:1.7283333333em}.katex .sizing.reset-size7.size11,.katex .fontsize-ensurer.reset-size7.size11{font-size:2.0733333333em}.katex .sizing.reset-size8.size1,.katex .fontsize-ensurer.reset-size8.size1{font-size:.3472222222em}.katex .sizing.reset-size8.size2,.katex .fontsize-ensurer.reset-size8.size2{font-size:.4166666667em}.katex .sizing.reset-size8.size3,.katex .fontsize-ensurer.reset-size8.size3{font-size:.4861111111em}.katex .sizing.reset-size8.size4,.katex .fontsize-ensurer.reset-size8.size4{font-size:.5555555556em}.katex .sizing.reset-size8.size5,.katex .fontsize-ensurer.reset-size8.size5{font-size:.625em}.katex .sizing.reset-size8.size6,.katex .fontsize-ensurer.reset-size8.size6{font-size:.6944444444em}.katex .sizing.reset-size8.size7,.katex .fontsize-ensurer.reset-size8.size7{font-size:.8333333333em}.katex .sizing.reset-size8.size8,.katex .fontsize-ensurer.reset-size8.size8{font-size:1em}.katex .sizing.reset-size8.size9,.katex .fontsize-ensurer.reset-size8.size9{font-size:1.2em}.katex .sizing.reset-size8.size10,.katex .fontsize-ensurer.reset-size8.size10{font-size:1.4402777778em}.katex .sizing.reset-size8.size11,.katex .fontsize-ensurer.reset-size8.size11{font-size:1.7277777778em}.katex .sizing.reset-size9.size1,.katex .fontsize-ensurer.reset-size9.size1{font-size:.2893518519em}.katex .sizing.reset-size9.size2,.katex .fontsize-ensurer.reset-size9.size2{font-size:.3472222222em}.katex .sizing.reset-size9.size3,.katex .fontsize-ensurer.reset-size9.size3{font-size:.4050925926em}.katex .sizing.reset-size9.size4,.katex .fontsize-ensurer.reset-size9.size4{font-size:.462962963em}.katex .sizing.reset-size9.size5,.katex .fontsize-ensurer.reset-size9.size5{font-size:.5208333333em}.katex .sizing.reset-size9.size6,.katex .fontsize-ensurer.reset-size9.size6{font-size:.5787037037em}.katex .sizing.reset-size9.size7,.katex .fontsize-ensurer.reset-size9.size7{font-size:.6944444444em}.katex .sizing.reset-size9.size8,.katex .fontsize-ensurer.reset-size9.size8{font-size:.8333333333em}.katex .sizing.reset-size9.size9,.katex .fontsize-ensurer.reset-size9.size9{font-size:1em}.katex .sizing.reset-size9.size10,.katex .fontsize-ensurer.reset-size9.size10{font-size:1.2002314815em}.katex .sizing.reset-size9.size11,.katex .fontsize-ensurer.reset-size9.size11{font-size:1.4398148148em}.katex .sizing.reset-size10.size1,.katex .fontsize-ensurer.reset-size10.size1{font-size:.2410800386em}.katex .sizing.reset-size10.size2,.katex .fontsize-ensurer.reset-size10.size2{font-size:.2892960463em}.katex .sizing.reset-size10.size3,.katex .fontsize-ensurer.reset-size10.size3{font-size:.337512054em}.katex .sizing.reset-size10.size4,.katex .fontsize-ensurer.reset-size10.size4{font-size:.3857280617em}.katex .sizing.reset-size10.size5,.katex .fontsize-ensurer.reset-size10.size5{font-size:.4339440694em}.katex .sizing.reset-size10.size6,.katex .fontsize-ensurer.reset-size10.size6{font-size:.4821600771em}.katex .sizing.reset-size10.size7,.katex .fontsize-ensurer.reset-size10.size7{font-size:.5785920926em}.katex .sizing.reset-size10.size8,.katex .fontsize-ensurer.reset-size10.size8{font-size:.6943105111em}.katex .sizing.reset-size10.size9,.katex .fontsize-ensurer.reset-size10.size9{font-size:.8331726133em}.katex .sizing.reset-size10.size10,.katex .fontsize-ensurer.reset-size10.size10{font-size:1em}.katex .sizing.reset-size10.size11,.katex .fontsize-ensurer.reset-size10.size11{font-size:1.1996142719em}.katex .sizing.reset-size11.size1,.katex .fontsize-ensurer.reset-size11.size1{font-size:.2009646302em}.katex .sizing.reset-size11.size2,.katex .fontsize-ensurer.reset-size11.size2{font-size:.2411575563em}.katex .sizing.reset-size11.size3,.katex .fontsize-ensurer.reset-size11.size3{font-size:.2813504823em}.katex .sizing.reset-size11.size4,.katex .fontsize-ensurer.reset-size11.size4{font-size:.3215434084em}.katex .sizing.reset-size11.size5,.katex .fontsize-ensurer.reset-size11.size5{font-size:.3617363344em}.katex .sizing.reset-size11.size6,.katex .fontsize-ensurer.reset-size11.size6{font-size:.4019292605em}.katex .sizing.reset-size11.size7,.katex .fontsize-ensurer.reset-size11.size7{font-size:.4823151125em}.katex .sizing.reset-size11.size8,.katex .fontsize-ensurer.reset-size11.size8{font-size:.578778135em}.katex .sizing.reset-size11.size9,.katex .fontsize-ensurer.reset-size11.size9{font-size:.6945337621em}.katex .sizing.reset-size11.size10,.katex .fontsize-ensurer.reset-size11.size10{font-size:.8336012862em}.katex .sizing.reset-size11.size11,.katex .fontsize-ensurer.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .op-limits>.vlist-t{text-align:center}.katex .accent>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex svg path{stroke:none}.katex img{border-style:none;min-width:0;min-height:0;max-width:none;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:before,.katex .stretchy:after{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{position:absolute;left:0;width:50.2%;overflow:hidden}.katex .halfarrow-right{position:absolute;right:0;width:50.2%;overflow:hidden}.katex .brace-left{position:absolute;left:0;width:25.1%;overflow:hidden}.katex .brace-center{position:absolute;left:25%;width:50%;overflow:hidden}.katex .brace-right{position:absolute;right:0;width:25.1%;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .x-arrow,.katex .mover,.katex .munder{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{counter-increment:katexEqnNo;content:"(" counter(katexEqnNo) ")"}.katex .mml-eqn-num:before{counter-increment:mmlEqnNo;content:"(" counter(mmlEqnNo) ")"}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;position:absolute;left:calc(50% + .3em);text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}:host{counter-reset:katexEqnNo mmlEqnNo}';class Oa extends Error{constructor(){super("Max input limit reached.")}}var en=(t=>(t[t.Messages=0]="Messages",t[t.OperationResult=1]="OperationResult",t[t.OperationError=2]="OperationError",t))(en||{}),Me=(t=>(t[t.MessageBegin=0]="MessageBegin",t[t.MessageAppend=1]="MessageAppend",t[t.MessageToolCallUpdate=2]="MessageToolCallUpdate",t[t.MessageToolCallResult=3]="MessageToolCallResult",t[t.MessageToolCallError=4]="MessageToolCallError",t[t.MessageExecuteLlmFunctionsBegin=5]="MessageExecuteLlmFunctionsBegin",t[t.MessageExecuteLlmFunctionsEnd=6]="MessageExecuteLlmFunctionsEnd",t[t.MessageInvokeClientFunction=7]="MessageInvokeClientFunction",t[t.MessageInvokeClientFunctionResult=8]="MessageInvokeClientFunctionResult",t[t.MessageInvokeClientFunctionError=9]="MessageInvokeClientFunctionError",t[t.MessageSubConversationBegin=10]="MessageSubConversationBegin",t[t.ConversationEnd=11]="ConversationEnd",t[t.ConversationError=12]="ConversationError",t[t.MessageToolCallBegin=13]="MessageToolCallBegin",t))(Me||{});class bn extends Error{constructor(e="Operation was cancelled."){super(e)}}class Kt{constructor(){P(this,"isCancellationRequested",!1);P(this,"listeners",new Set)}addListener(e){this.isCancellationRequested?e():this.listeners.add(e)}cancel(){if(!this.isCancellationRequested){this.isCancellationRequested=!0;for(const e of this.listeners)e();this.listeners.clear()}}removeListener(e){this.listeners.delete(e)}throwIfCancellationRequested(){if(this.isCancellationRequested)throw new bn}}class ol{constructor(){P(this,"_queue",[]);P(this,"_waitToReadDeferred");P(this,"_isCompleted",!1)}resolveWaitToReadDeferred(e){const r=this._waitToReadDeferred;r&&(this._waitToReadDeferred=null,r.cancellationToken.removeListener(r.cancellationTokenListener),r.resolve(e))}complete(){this._isCompleted||(this._isCompleted=!0,this.resolveWaitToReadDeferred(!!this._queue.length))}completeWithError(e){if(this._isCompleted)return;this._isCompleted=!0;const r=this._waitToReadDeferred;r&&(this._waitToReadDeferred=null,r.cancellationToken.removeListener(r.cancellationTokenListener),r.reject(e))}tryWrite(e){return this._isCompleted?!1:(this._queue.push(e),this.resolveWaitToReadDeferred(!0),!0)}waitToReadAsync(e){if(e.isCancellationRequested)return Promise.reject(new bn);if(this._waitToReadDeferred)return Promise.reject(new Error("Multiple readers are not supported."));if(this._queue.length)return Promise.resolve(!0);if(this._isCompleted)return Promise.resolve(!1);const r={};r.cancellationTokenListener=()=>{this._waitToReadDeferred===r&&(this._waitToReadDeferred=null,r.reject(new bn))},r.cancellationToken=e,e.addListener(r.cancellationTokenListener);const n=new Promise((i,a)=>{r.resolve=i,r.reject=a});return this._waitToReadDeferred=r,n}read(){const e=this._queue;return this._queue=[],e}}class li extends ol{constructor(){super(...arguments);P(this,"_reader");P(this,"_buffer",new Uint8Array(0));P(this,"_bufferOffset",0);P(this,"_abortController");P(this,"_cancellationToken");P(this,"_textDecoder",new TextDecoder)}async initializeExistingAsync(r,n){this._abortController=new AbortController,(this._cancellationToken=new Kt).addListener(()=>this._abortController.abort());const i=await r(n,{method:"GET",signal:this._abortController.signal});if(i.status!==404){if(!i.ok)throw new Error(`Failed to load history messages: ${i.status} ${i.statusText}`);this._reader=i.body.getReader(),this.readMessagesAsync()}}async summarizeTitleAsync(r,n,i,a){this._abortController=new AbortController,(this._cancellationToken=new Kt).addListener(()=>this._abortController.abort());const s=await r(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:en.Messages,messages:i,chatId:a}),signal:this._abortController.signal});if(s.status===400)return null;if(!s.ok)throw new Error(`Failed to start chat completion SSE: ${s.status} ${s.statusText}`);return s.json()}async startAsync(r,n,i,a,s){this._abortController=new AbortController,(this._cancellationToken=new Kt).addListener(()=>this._abortController.abort());const o=await r(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:en.Messages,messages:i,chatId:a,copilotId:s}),signal:this._abortController.signal});if(o.status===429)throw new Oa;if(!o.ok)throw new Error(`Failed to start chat completion SSE: ${o.status} ${o.statusText}`);this._reader=o.body.getReader(),this.readMessagesAsync()}stop(){this._cancellationToken.cancel()}get wasStopped(){return this._cancellationToken.isCancellationRequested}async readBytesAsync(r){if(this._buffer.length-this._bufferOffset>=r){const i=this._buffer.subarray(this._bufferOffset,this._bufferOffset+r);return this._bufferOffset+=r,i}for(;this._buffer.length-this._bufferOffset<r;){const{done:i,value:a}=await this._reader.read();if(i){const s=this._buffer.subarray(this._bufferOffset);return this._buffer=new Uint8Array(0),this._bufferOffset=0,s}this._buffer=ll(this._buffer,a,this._bufferOffset),this._bufferOffset=0}const n=this._buffer.subarray(this._bufferOffset,this._bufferOffset+r);return this._bufferOffset+=r,n}async readLittleEndianInt32Async(){const r=await this.readBytesAsync(4),n=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength);return new DataView(n).getInt32(0,!0)}async readUtf8StringAsync(){const r=await this.readLittleEndianInt32Async();if(r===-1)return null;const n=await this.readBytesAsync(r);return this._textDecoder.decode(n)}async readMessageAsync(){const r=await this.readBytesAsync(1);if(r.length==0)return null;const n=r[0];switch(n){case Me.MessageBegin:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync(),o=await this.readUtf8StringAsync(),u=await this.readUtf8StringAsync(),h=await this.readUtf8StringAsync(),d=await this.readUtf8StringAsync(),p=await this.readUtf8StringAsync();return{type:n,conversationId:i,messageAuthorRole:a,messageAuthorId:s,messageAuthorPictureUrl:o,messageAuthorDisplayName:u,messageAuthorEmail:h,messageId:d,copilotId:p}}case Me.MessageAppend:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync();return{type:n,conversationId:i,appendMessageMarkdown:a}}case Me.MessageToolCallUpdate:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readLittleEndianInt32Async(),o=await this.readUtf8StringAsync(),u=await this.readUtf8StringAsync();return{type:n,conversationId:i,llmFunctionId:a,toolCallUpdateIndex:s,toolCallUpdateName:o,toolCallUpdateArguments:u}}case Me.MessageInvokeClientFunction:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync(),o=await this.readUtf8StringAsync(),u=await this.readUtf8StringAsync();return{type:n,conversationId:i,llmFunctionId:a,operationId:s,clientFunctionName:o,argumentsAsJSON:u}}case Me.MessageInvokeClientFunctionResult:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync();return{type:n,operationId:i,result:a}}case Me.MessageInvokeClientFunctionError:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync();return{type:n,operationId:i,error:a}}case Me.MessageSubConversationBegin:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync(),o=await this.readUtf8StringAsync(),u=await this.readUtf8StringAsync(),h=await this.readUtf8StringAsync(),d=await this.readUtf8StringAsync();return{type:n,conversationId:i,subConversationId:a,messageAuthorId:s,messageAuthorPictureUrl:o,messageAuthorDisplayName:u,messageAuthorEmail:h,subConversationTitle:d}}case Me.ConversationEnd:{const i=await this.readUtf8StringAsync();return{type:n,conversationId:i}}case Me.ConversationError:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync();return{type:n,conversationId:i,error:a,stackTrace:s}}case Me.MessageExecuteLlmFunctionsBegin:case Me.MessageExecuteLlmFunctionsEnd:{const i=await this.readUtf8StringAsync();return{type:n,conversationId:i}}case Me.MessageToolCallBegin:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync();return{type:n,conversationId:i,llmFunctionId:a,toolCallBeginInfo:s}}case Me.MessageToolCallResult:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync();return{type:n,conversationId:i,llmFunctionId:a,result:s}}case Me.MessageToolCallError:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync();return{type:n,conversationId:i,llmFunctionId:a,error:s}}default:throw new Error(`Unexpected message type: ${n}`)}}async readMessagesAsync(){try{for(;;){const r=await this.readMessageAsync();if(!r){this.complete();return}this.tryWrite(r)}}catch(r){this.completeWithError(r)}}waitToReadAsync(){return super.waitToReadAsync(this._cancellationToken)}}function ll(t,e,r){r>0&&t.copyWithin(0,r);let n=new Uint8Array(t.length-r+e.length);return n.set(t.subarray(0,t.length-r),0),n.set(e,t.length-r),n}var ul=Object.defineProperty,Se=(t,e)=>ul(t,"name",{value:e,configurable:!0}),La=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});function Da(t){return!isNaN(parseFloat(t))&&isFinite(t)}Se(Da,"_isNumber");function ur(t){return t.charAt(0).toUpperCase()+t.substring(1)}Se(ur,"_capitalize");function vn(t){return function(){return this[t]}}Se(vn,"_getter");var qr=["isConstructor","isEval","isNative","isToplevel"],Ur=["columnNumber","lineNumber"],Hr=["fileName","functionName","source"],cl=["args"],hl=["evalOrigin"],yn=qr.concat(Ur,Hr,cl,hl);function gt(t){if(t)for(var e=0;e<yn.length;e++)t[yn[e]]!==void 0&&this["set"+ur(yn[e])](t[yn[e]])}for(Se(gt,"StackFrame"),gt.prototype={getArgs:function(){return this.args},setArgs:function(t){if(Object.prototype.toString.call(t)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=t},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(t){if(t instanceof gt)this.evalOrigin=t;else if(t instanceof Object)this.evalOrigin=new gt(t);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var t=this.getFileName()||"",e=this.getLineNumber()||"",r=this.getColumnNumber()||"",n=this.getFunctionName()||"";return this.getIsEval()?t?"[eval] ("+t+":"+e+":"+r+")":"[eval]:"+e+":"+r:n?n+" ("+t+":"+e+":"+r+")":t+":"+e+":"+r}},gt.fromString=Se(function(t){var e=t.indexOf("("),r=t.lastIndexOf(")"),n=t.substring(0,e),i=t.substring(e+1,r).split(","),a=t.substring(r+1);if(a.indexOf("@")===0)var s=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,""),o=s[1],u=s[2],h=s[3];return new gt({functionName:n,args:i||void 0,fileName:o,lineNumber:u||void 0,columnNumber:h||void 0})},"StackFrame$$fromString"),Ar=0;Ar<qr.length;Ar++)gt.prototype["get"+ur(qr[Ar])]=vn(qr[Ar]),gt.prototype["set"+ur(qr[Ar])]=function(t){return function(e){this[t]=!!e}}(qr[Ar]);var Ar;for(Mr=0;Mr<Ur.length;Mr++)gt.prototype["get"+ur(Ur[Mr])]=vn(Ur[Mr]),gt.prototype["set"+ur(Ur[Mr])]=function(t){return function(e){if(!Da(e))throw new TypeError(t+" must be a Number");this[t]=Number(e)}}(Ur[Mr]);var Mr;for(Cr=0;Cr<Hr.length;Cr++)gt.prototype["get"+ur(Hr[Cr])]=vn(Hr[Cr]),gt.prototype["set"+ur(Hr[Cr])]=function(t){return function(e){this[t]=String(e)}}(Hr[Cr]);var Cr,ui=gt;function Fa(){var t=/^\s*at .*(\S+:\d+|\(native\))/m,e=/^(eval@)?(\[native code])?$/;return{parse:Se(function(r){if(r.stack&&r.stack.match(t))return this.parseV8OrIE(r);if(r.stack)return this.parseFFOrSafari(r);throw new Error("Cannot parse given Error object")},"ErrorStackParser$$parse"),extractLocation:Se(function(r){if(r.indexOf(":")===-1)return[r];var n=/(.+?)(?::(\d+))?(?::(\d+))?$/,i=n.exec(r.replace(/[()]/g,""));return[i[1],i[2]||void 0,i[3]||void 0]},"ErrorStackParser$$extractLocation"),parseV8OrIE:Se(function(r){var n=r.stack.split(`
1
+ (function(kt,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(kt=typeof globalThis<"u"?globalThis:kt||self,_(kt.VeracityAI={}))})(this,function(kt){"use strict";var s4=Object.defineProperty;var o4=(kt,_,Je)=>_ in kt?s4(kt,_,{enumerable:!0,configurable:!0,writable:!0,value:Je}):kt[_]=Je;var P=(kt,_,Je)=>o4(kt,typeof _!="symbol"?_+"":_,Je);function _(t,e,...r){switch(typeof t){case"string":{const n=document.createElement(t);Je(n,e);for(const i of r)Ia(n,i);return n}case"function":return t(e||{},r)}throw new Error(`Unable to create element of type '${typeof t}'`)}function Je(t,e){if(e)for(const r in e){const n=e[r];if(r in t)if(r==="classList"){if(n)for(const i of n)t.classList.add(i)}else t[r]=n;else r in t.style?t.style[r]=n:t.setAttribute(r,n)}}function nl(t){if(t instanceof Node)return t;if(typeof t=="string")return document.createTextNode(t);if(t!=null&&t[Symbol.iterator]){const e=document.createDocumentFragment();for(const r of t)Ia(e,r);return e}else return t?document.createTextNode(t):document.createComment(` ${t} `)}function Ia(t,e){const r=nl(e);t.appendChild(r)}const il=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Avenir Next,Segoe UI,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}b,strong{font-weight:600}:root{--Dark-Blue-5: hsl(223, 67%, 5%);--Dark-Blue-10: hsl(223, 67%, 10%);--Dark-Blue-15: hsl(223, 67%, 15%);--Dark-Blue-20: hsl(223, 67%, 20%);--Dark-Blue-25: hsl(223, 67%, 25%);--Dark-Blue-30: hsl(223, 67%, 30%);--Dark-Blue-35: hsl(223, 67%, 35%);--Dark-Blue-40: hsl(223, 67%, 40%);--Dark-Blue-45: hsl(223, 67%, 45%);--Dark-Blue-50: hsl(223, 67%, 50%);--Dark-Blue-55: hsl(223, 67%, 55%);--Dark-Blue-60: hsl(223, 67%, 60%);--Dark-Blue-65: hsl(223, 67%, 65%);--Dark-Blue-70: hsl(223, 67%, 70%);--Dark-Blue-75: hsl(223, 67%, 75%);--Dark-Blue-80: hsl(223, 67%, 80%);--Dark-Blue-85: hsl(223, 67%, 85%);--Dark-Blue-90: hsl(223, 67%, 90%);--Dark-Blue-95: hsl(223, 67%, 95%);--Dark-Blue-Main-18: hsl(223, 67%, 18%);--Sea-Blue-5: hsl(218, 100%, 5%);--Sea-Blue-10: hsl(218, 100%, 10%);--Sea-Blue-15: hsl(218, 100%, 15%);--Sea-Blue-20: hsl(218, 100%, 20%);--Sea-Blue-25: hsl(218, 100%, 25%);--Sea-Blue-30: hsl(218, 100%, 30%);--Sea-Blue-35: hsl(218, 100%, 35%);--Sea-Blue-40: hsl(218, 100%, 40%);--Sea-Blue-45: hsl(218, 100%, 45%);--Sea-Blue-50: hsl(218, 100%, 50%);--Sea-Blue-55: hsl(218, 100%, 55%);--Sea-Blue-60: hsl(218, 100%, 60%);--Sea-Blue-65: hsl(218, 100%, 65%);--Sea-Blue-70: hsl(218, 100%, 70%);--Sea-Blue-75: hsl(218, 100%, 75%);--Sea-Blue-80: hsl(218, 100%, 80%);--Sea-Blue-85: hsl(218, 100%, 85%);--Sea-Blue-90: hsl(218, 100%, 90%);--Sea-Blue-95: hsl(218, 100%, 95%);--Sea-Blue-Main-28: hsl(218, 100%, 28%);--Sky-Blue-5: hsl(196, 74%, 5%);--Sky-Blue-10: hsl(196, 74%, 10%);--Sky-Blue-15: hsl(196, 74%, 15%);--Sky-Blue-20: hsl(196, 74%, 20%);--Sky-Blue-25: hsl(196, 74%, 25%);--Sky-Blue-30: hsl(196, 74%, 30%);--Sky-Blue-35: hsl(196, 74%, 35%);--Sky-Blue-40: hsl(196, 74%, 40%);--Sky-Blue-45: hsl(196, 74%, 45%);--Sky-Blue-50: hsl(196, 74%, 50%);--Sky-Blue-55: hsl(196, 74%, 55%);--Sky-Blue-60: hsl(196, 74%, 60%);--Sky-Blue-65: hsl(196, 74%, 65%);--Sky-Blue-70: hsl(196, 74%, 70%);--Sky-Blue-75: hsl(196, 74%, 75%);--Sky-Blue-80: hsl(196, 74%, 80%);--Sky-Blue-85: hsl(196, 74%, 85%);--Sky-Blue-90: hsl(196, 74%, 90%);--Sky-Blue-95: hsl(196, 74%, 95%);--Sky-Blue-97: hsl(196, 74%, 97%);--Sky-Blue-Main-77: hsl(196, 74%, 77%);--Digi-Green-5: hsl(139, 100%, 5%);--Digi-Green-10: hsl(139, 100%, 10%);--Digi-Green-15: hsl(139, 100%, 15%);--Digi-Green-20: hsl(139, 100%, 20%);--Digi-Green-25: hsl(139, 100%, 25%);--Digi-Green-30: hsl(139, 100%, 30%);--Digi-Green-35: hsl(139, 100%, 35%);--Digi-Green-40: hsl(139, 100%, 40%);--Digi-Green-45: hsl(139, 100%, 45%);--Digi-Green-50: hsl(139, 100%, 50%);--Digi-Green-55: hsl(139, 100%, 55%);--Digi-Green-60: hsl(139, 100%, 60%);--Digi-Green-65: hsl(139, 100%, 65%);--Digi-Green-70: hsl(139, 100%, 70%);--Digi-Green-75: hsl(139, 100%, 75%);--Digi-Green-80: hsl(139, 100%, 80%);--Digi-Green-85: hsl(139, 100%, 85%);--Digi-Green-90: hsl(139, 100%, 90%);--Digi-Green-95: hsl(139, 100%, 95%);--Digi-Green-Main-78: hsl(139, 100%, 78%);--Sandstone-5: hsl(40, 3%, 5%);--Sandstone-10: hsl(40, 3%, 10%);--Sandstone-15: hsl(40, 3%, 15%);--Sandstone-20: hsl(40, 3%, 20%);--Sandstone-25: hsl(40, 3%, 25%);--Sandstone-30: hsl(40, 3%, 30%);--Sandstone-35: hsl(40, 3%, 35%);--Sandstone-40: hsl(40, 3%, 40%);--Sandstone-45: hsl(40, 3%, 45%);--Sandstone-50: hsl(40, 3%, 50%);--Sandstone-55: hsl(40, 3%, 55%);--Sandstone-60: hsl(40, 3%, 60%);--Sandstone-65: hsl(40, 3%, 65%);--Sandstone-70: hsl(40, 3%, 70%);--Sandstone-75: hsl(40, 3%, 75%);--Sandstone-80: hsl(40, 3%, 80%);--Sandstone-85: hsl(40, 3%, 85%);--Sandstone-90: hsl(40, 3%, 90%);--Sandstone-95: hsl(40, 3%, 95%);--Sandstone-97: hsl(40, 3%, 97%);--Sandstone-Main-79: hsl(40, 3%, 79%);--Warm-Grey-5: hsl(30, 8%, 5%);--Warm-Grey-10: hsl(30, 8%, 10%);--Warm-Grey-15: hsl(30, 8%, 15%);--Warm-Grey-20: hsl(30, 8%, 20%);--Warm-Grey-25: hsl(30, 8%, 25%);--Warm-Grey-30: hsl(30, 8%, 30%);--Warm-Grey-35: hsl(30, 8%, 35%);--Warm-Grey-40: hsl(30, 8%, 40%);--Warm-Grey-45: hsl(30, 8%, 45%);--Warm-Grey-50: hsl(30, 8%, 50%);--Warm-Grey-55: hsl(30, 8%, 55%);--Warm-Grey-60: hsl(30, 8%, 60%);--Warm-Grey-65: hsl(30, 8%, 65%);--Warm-Grey-70: hsl(30, 8%, 70%);--Warm-Grey-75: hsl(30, 8%, 75%);--Warm-Grey-80: hsl(30, 8%, 80%);--Warm-Grey-85: hsl(30, 8%, 85%);--Warm-Grey-90: hsl(30, 8%, 90%);--Warm-Grey-95: hsl(30, 8%, 95%);--Warm-Grey-Main-56: hsl(30, 8%, 56%);--Earth-5: hsl(35, 53%, 5%);--Earth-10: hsl(35, 53%, 10%);--Earth-15: hsl(35, 53%, 15%);--Earth-20: hsl(35, 53%, 20%);--Earth-25: hsl(35, 53%, 25%);--Earth-30: hsl(35, 53%, 30%);--Earth-35: hsl(35, 53%, 35%);--Earth-40: hsl(35, 53%, 40%);--Earth-45: hsl(35, 53%, 45%);--Earth-50: hsl(35, 53%, 50%);--Earth-55: hsl(35, 53%, 55%);--Earth-60: hsl(35, 53%, 60%);--Earth-65: hsl(35, 53%, 65%);--Earth-70: hsl(35, 53%, 70%);--Earth-75: hsl(35, 53%, 75%);--Earth-80: hsl(35, 53%, 80%);--Earth-85: hsl(35, 53%, 85%);--Earth-90: hsl(35, 53%, 90%);--Earth-95: hsl(35, 53%, 95%);--Earth-97: hsl(35, 53%, 97%);--Earth-Main-89: hsl(35, 53%, 89%);--Pine-5: hsl(195, 46%, 5%);--Pine-10: hsl(195, 46%, 10%);--Pine-15: hsl(195, 46%, 15%);--Pine-20: hsl(195, 46%, 20%);--Pine-25: hsl(195, 46%, 25%);--Pine-30: hsl(195, 46%, 30%);--Pine-35: hsl(195, 46%, 35%);--Pine-40: hsl(195, 46%, 40%);--Pine-45: hsl(195, 46%, 45%);--Pine-50: hsl(195, 46%, 50%);--Pine-55: hsl(195, 46%, 55%);--Pine-60: hsl(195, 46%, 60%);--Pine-65: hsl(195, 46%, 65%);--Pine-70: hsl(195, 46%, 70%);--Pine-75: hsl(195, 46%, 75%);--Pine-80: hsl(195, 46%, 80%);--Pine-85: hsl(195, 46%, 85%);--Pine-90: hsl(195, 46%, 90%);--Pine-95: hsl(195, 46%, 95%);--Pine-Main-30: hsl(195, 46%, 30%);--Eucalyptus-5: hsl(178, 80%, 5%);--Eucalyptus-10: hsl(178, 80%, 10%);--Eucalyptus-15: hsl(178, 80%, 15%);--Eucalyptus-20: hsl(178, 80%, 20%);--Eucalyptus-25: hsl(178, 80%, 25%);--Eucalyptus-30: hsl(178, 80%, 30%);--Eucalyptus-35: hsl(178, 80%, 35%);--Eucalyptus-40: hsl(178, 80%, 40%);--Eucalyptus-45: hsl(178, 80%, 45%);--Eucalyptus-50: hsl(178, 80%, 50%);--Eucalyptus-55: hsl(178, 80%, 55%);--Eucalyptus-60: hsl(178, 80%, 60%);--Eucalyptus-65: hsl(178, 80%, 65%);--Eucalyptus-70: hsl(178, 80%, 70%);--Eucalyptus-75: hsl(178, 80%, 75%);--Eucalyptus-80: hsl(178, 80%, 80%);--Eucalyptus-85: hsl(178, 80%, 85%);--Eucalyptus-90: hsl(178, 80%, 90%);--Eucalyptus-95: hsl(178, 80%, 95%);--Eucalyptus-Main-41: hsl(178, 80%, 41%);--Lavender-5: hsl(232, 58%, 5%);--Lavender-10: hsl(232, 58%, 10%);--Lavender-15: hsl(232, 58%, 15%);--Lavender-20: hsl(232, 58%, 20%);--Lavender-25: hsl(232, 58%, 25%);--Lavender-30: hsl(232, 58%, 30%);--Lavender-35: hsl(232, 58%, 35%);--Lavender-40: hsl(232, 58%, 40%);--Lavender-45: hsl(232, 58%, 45%);--Lavender-50: hsl(232, 58%, 50%);--Lavender-55: hsl(232, 58%, 55%);--Lavender-60: hsl(232, 58%, 60%);--Lavender-65: hsl(232, 58%, 65%);--Lavender-70: hsl(232, 58%, 70%);--Lavender-75: hsl(232, 58%, 75%);--Lavender-80: hsl(232, 58%, 80%);--Lavender-85: hsl(232, 58%, 85%);--Lavender-90: hsl(232, 58%, 90%);--Lavender-95: hsl(232, 58%, 95%);--Lavender-Main-77: hsl(232, 58%, 77%);--Terracotta-5: hsl(34, 100%, 5%);--Terracotta-10: hsl(34, 100%, 10%);--Terracotta-15: hsl(34, 100%, 15%);--Terracotta-20: hsl(34, 100%, 20%);--Terracotta-25: hsl(34, 100%, 25%);--Terracotta-30: hsl(34, 100%, 30%);--Terracotta-35: hsl(34, 100%, 35%);--Terracotta-40: hsl(34, 100%, 40%);--Terracotta-45: hsl(34, 100%, 45%);--Terracotta-50: hsl(34, 100%, 50%);--Terracotta-55: hsl(34, 100%, 55%);--Terracotta-60: hsl(34, 100%, 60%);--Terracotta-65: hsl(34, 100%, 65%);--Terracotta-70: hsl(34, 100%, 70%);--Terracotta-75: hsl(34, 100%, 75%);--Terracotta-80: hsl(34, 100%, 80%);--Terracotta-85: hsl(34, 100%, 85%);--Terracotta-90: hsl(34, 100%, 90%);--Terracotta-95: hsl(34, 100%, 95%);--Terracotta-Main-35: hsl(34, 100%, 35%);--Land-Green-5: hsl(114, 49%, 5%);--Land-Green-10: hsl(114, 49%, 10%);--Land-Green-15: hsl(114, 49%, 15%);--Land-Green-20: hsl(114, 49%, 20%);--Land-Green-25: hsl(114, 49%, 25%);--Land-Green-30: hsl(114, 49%, 30%);--Land-Green-35: hsl(114, 49%, 35%);--Land-Green-40: hsl(114, 49%, 40%);--Land-Green-45: hsl(114, 49%, 45%);--Land-Green-50: hsl(114, 49%, 50%);--Land-Green-55: hsl(114, 49%, 55%);--Land-Green-60: hsl(114, 49%, 60%);--Land-Green-65: hsl(114, 49%, 65%);--Land-Green-70: hsl(114, 49%, 70%);--Land-Green-75: hsl(114, 49%, 75%);--Land-Green-80: hsl(114, 49%, 80%);--Land-Green-85: hsl(114, 49%, 85%);--Land-Green-90: hsl(114, 49%, 90%);--Land-Green-95: hsl(114, 49%, 95%);--Land-Green-Main-41: hsl(114, 49%, 41%);--Sunflower-5: hsl(55, 100%, 5%);--Sunflower-10: hsl(55, 100%, 10%);--Sunflower-15: hsl(55, 100%, 15%);--Sunflower-20: hsl(55, 100%, 20%);--Sunflower-25: hsl(55, 100%, 25%);--Sunflower-30: hsl(55, 100%, 30%);--Sunflower-35: hsl(55, 100%, 35%);--Sunflower-40: hsl(55, 100%, 40%);--Sunflower-45: hsl(55, 100%, 45%);--Sunflower-50: hsl(55, 100%, 50%);--Sunflower-55: hsl(55, 100%, 55%);--Sunflower-60: hsl(55, 100%, 60%);--Sunflower-65: hsl(55, 100%, 65%);--Sunflower-70: hsl(55, 100%, 70%);--Sunflower-75: hsl(55, 100%, 75%);--Sunflower-80: hsl(55, 100%, 80%);--Sunflower-85: hsl(55, 100%, 85%);--Sunflower-90: hsl(55, 100%, 90%);--Sunflower-95: hsl(55, 100%, 95%);--Sunflower-Main-73: hsl(55, 100%, 73%);--Energy-Red-5: hsl(357, 83%, 5%);--Energy-Red-10: hsl(357, 83%, 10%);--Energy-Red-15: hsl(357, 83%, 15%);--Energy-Red-20: hsl(357, 83%, 20%);--Energy-Red-25: hsl(357, 83%, 25%);--Energy-Red-30: hsl(357, 83%, 30%);--Energy-Red-35: hsl(357, 83%, 35%);--Energy-Red-40: hsl(357, 83%, 40%);--Energy-Red-45: hsl(357, 83%, 45%);--Energy-Red-50: hsl(357, 83%, 50%);--Energy-Red-55: hsl(357, 83%, 55%);--Energy-Red-60: hsl(357, 83%, 60%);--Energy-Red-65: hsl(357, 83%, 65%);--Energy-Red-70: hsl(357, 83%, 70%);--Energy-Red-75: hsl(357, 83%, 75%);--Energy-Red-80: hsl(357, 83%, 80%);--Energy-Red-85: hsl(357, 83%, 85%);--Energy-Red-90: hsl(357, 83%, 90%);--Energy-Red-95: hsl(357, 83%, 95%);--Energy-Red-Main-54: hsl(357, 83%, 54%);--Cyan-5: hsl(196, 100%, 5%);--Cyan-10: hsl(196, 100%, 10%);--Cyan-15: hsl(196, 100%, 15%);--Cyan-20: hsl(196, 100%, 20%);--Cyan-25: hsl(196, 100%, 25%);--Cyan-30: hsl(196, 100%, 30%);--Cyan-35: hsl(196, 100%, 35%);--Cyan-40: hsl(196, 100%, 40%);--Cyan-45: hsl(196, 100%, 45%);--Cyan-50: hsl(196, 100%, 50%);--Cyan-55: hsl(196, 100%, 55%);--Cyan-60: hsl(196, 100%, 60%);--Cyan-65: hsl(196, 100%, 65%);--Cyan-70: hsl(196, 100%, 70%);--Cyan-75: hsl(196, 100%, 75%);--Cyan-80: hsl(196, 100%, 80%);--Cyan-85: hsl(196, 100%, 85%);--Cyan-90: hsl(196, 100%, 90%);--Cyan-95: hsl(196, 100%, 95%);--Cyan-Main-43: hsl(196, 100%, 43%);--Black: hsl(40 3% 10%);--White: hsl(40 3% 100%);--Light: hsl(40, 3%, 90%);--Default: hsl(40, 3%, 79%);--Medium: hsl(40, 3%, 75%);--Strong: hsl(218, 100%, 28%);--Emphasis: hsl(223, 67%, 18%);--vui-animation-duration-0: 0ms;--vui-animation-duration-100: .13s;--vui-animation-duration-200: .16s;--vui-animation-duration-300: .19s;--vui-animation-duration-400: .22s;--vui-animation-duration-500: .25s;--vui-animation-duration-600: .3s;--vui-animation-duration-700: .35s;--vui-animation-duration-800: .4s;--vui-animation-duration-900: .45s;--vui-animation-duration-1000: .5s;--vui-animation-duration-2000: 1s;--vui-animation-duration-4000: 2s;--vui-animation-ease-in-out: cubic-bezier(.45, 0, .4, 1);--vui-animation-ease-in: cubic-bezier(.5, 0, 1, 1);--vui-animation-ease-out: cubic-bezier(0, 0, .4, 1);--vui-animation-linear: cubic-bezier(0, 0, 1, 1);--vui-elevation-1: 0 6px 23px -10px hsla(223, 67%, 18%, .2);--vui-elevation-2: 0 9px 20px -6px hsla(223, 67%, 18%, .2);--vui-elevation-3: 0 12px 23px -4px hsla(223, 67%, 18%, .2);--vui-elevation-4: 0 15px 23px 0 hsla(223, 67%, 18%, .2);--fluent-depth-0: 0 0 0 0 transparent;--fluent-depth-4: 0 1.6px 3.6px 0 rgba(0, 0, 0, .132), 0 .3px .9px 0 rgba(0, 0, 0, .108);--fluent-depth-8: 0 3.2px 7.2px 0 rgba(0, 0, 0, .132), 0 .6px 1.8px 0 rgba(0, 0, 0, .108);--fluent-depth-16: 0 6.4px 14.4px 0 rgba(0, 0, 0, .132), 0 1.2px 3.6px 0 rgba(0, 0, 0, .108);--fluent-depth-64: 0 25.6px 57.6px 0 rgba(0, 0, 0, .22), 0 4.8px 14.4px 0 rgba(0, 0, 0, .18)}.h1{font-size:3.125rem;font-style:normal;font-weight:400;line-height:1.24}@media only screen and (max-width: 992px){.h1{font-size:1.9375rem;line-height:1.5483870967741935}}.h1{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .h1){color:var(--White, hsl(40 3% 100%))}.h2{font-size:2rem;font-style:normal;font-weight:400;line-height:1.3125}@media only screen and (max-width: 992px){.h2{font-size:1.75rem;line-height:1.3571428571428572}}.h2{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .h2){color:var(--White, hsl(40 3% 100%))}.h3{font-size:1.5rem;font-style:normal;font-weight:400;line-height:1.3333333333333333}@media only screen and (max-width: 992px){.h3{font-size:1.375rem;line-height:1.4545454545454546}}.h3{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .h3){color:var(--White, hsl(40 3% 100%))}.h4{font-size:1.25rem;font-style:normal;font-weight:600;line-height:1.2}@media only screen and (max-width: 992px){.h4{font-size:1.125rem;line-height:1.3333333333333333}}.h4{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .h4){color:var(--White, hsl(40 3% 100%))}.h5{font-size:1.125rem;font-style:normal;font-weight:600;line-height:1.4444444444444444}@media only screen and (max-width: 992px){.h5{font-size:1rem;line-height:1.375}}.h5{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .h5){color:var(--White, hsl(40 3% 100%))}.h6{font-size:1rem;font-style:normal;font-weight:600;line-height:1.375;color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .h6){color:var(--White, hsl(40 3% 100%))}.btn{font-weight:500;font-style:normal;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:0;display:inline-flex}.btn>*{flex-shrink:0}.btn{height:auto;margin:0;outline:none;text-decoration:none;transition:background var(--vui-animation-duration-100) ease-out,border-color var(--vui-animation-duration-100) ease-out,color var(--vui-animation-duration-100) ease-out,box-shadow var(--vui-animation-duration-100) ease-out;white-space:nowrap}.btn:focus-visible,.btn.focus-visible{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: hsl(196, 100%, 43%);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.btn:disabled{opacity:.5}.btn.btn-xl,.btn-xl{font-size:1.125rem;line-height:1.5555555555555556;gap:.625rem;padding:.625rem 1.25rem}.btn.btn-lg,.btn-lg{font-size:1rem;line-height:1.5;gap:.5rem;padding:.5rem 1rem}.btn.btn-md,.btn-md{font-size:.875rem;line-height:1.4285714285714286;gap:.375rem;padding:.375rem .75rem}.btn.btn-sm,.btn-sm{font-size:.75rem;line-height:1.3333333333333333;gap:.25rem;padding:.25rem .5rem}.btn.btn-primary,.btn-primary{background:var(--Sea-Blue-Main-28, #00348F);color:var(--White, #FFFFFF);justify-content:center}.btn.btn-primary:hover,.btn-primary:hover{background:var(--Sea-Blue-20, #002566)}.btn.btn-primary:active,.btn.btn-primary.active,.btn-primary:active,.btn-primary.active{background:var(--Sea-Blue-35, #0041B3)}:is(.dark .btn.btn-primary),:is(.dark .btn-primary){background:var(--Digi-Green-Main-78, #8FFFB2);color:var(--Dark-Blue-Main-18, #0F214D)}:is(.dark .btn.btn-primary):hover,:is(.dark .btn-primary):hover{background:var(--Digi-Green-70, #66FF96)}:is(.dark .btn.btn-primary):active,:is(.dark .btn.btn-primary).active,:is(.dark .btn-primary):active,:is(.dark .btn-primary).active{background:var(--Digi-Green-85, #B3FFCB)}.btn.btn-secondary,.btn-secondary{background:transparent;border:1px solid var(--Sea-Blue-Main-28, #00348F);color:var(--Sea-Blue-Main-28, #00348F);justify-content:center}.btn.btn-secondary:hover,.btn-secondary:hover{background:var(--Sky-Blue-80, #A6DEF2)}.btn.btn-secondary:active,.btn.btn-secondary.active,.btn-secondary:active,.btn-secondary.active{background:var(--Sky-Blue-85, #BCE6F5)}:is(.dark .btn.btn-secondary),:is(.dark .btn-secondary){border-color:var(--Digi-Green-Main-78, #8FFFB2);color:var(--Digi-Green-Main-78, #8FFFB2)}:is(.dark .btn.btn-secondary):hover,:is(.dark .btn-secondary):hover{background:var(--Sea-Blue-25, #002F80)}:is(.dark .btn.btn-secondary):active,:is(.dark .btn.btn-secondary).active,:is(.dark .btn-secondary):active,:is(.dark .btn-secondary).active{background:var(--Sea-Blue-35, #0041B3)}.btn.btn-tertiary,.btn-tertiary{background:transparent;color:var(--Sea-Blue-Main-28, #00348F);justify-content:center}.btn.btn-tertiary:hover,.btn-tertiary:hover{background:var(--Sky-Blue-80, #A6DEF2)}.btn.btn-tertiary:active,.btn.btn-tertiary.active,.btn-tertiary:active,.btn-tertiary.active{background:var(--Sky-Blue-85, #BCE6F5)}:is(.dark .btn.btn-tertiary),:is(.dark .btn-tertiary){color:var(--Digi-Green-Main-78, #8FFFB2)}:is(.dark .btn.btn-tertiary):hover,:is(.dark .btn-tertiary):hover{background:var(--Sea-Blue-25, #002F80)}:is(.dark .btn.btn-tertiary):active,:is(.dark .btn.btn-tertiary).active,:is(.dark .btn-tertiary):active,:is(.dark .btn-tertiary).active{background:var(--Sea-Blue-35, #0041B3)}.btn.btn-badge,.btn-badge{background:var(--Sky-Blue-95, #E9F7FC);border-radius:9999px;color:var(--Sea-Blue-Main-28, #00348F);justify-content:center}.btn.btn-badge:hover,.btn-badge:hover{background:var(--Sky-Blue-90, #D3EEF8)}.btn.btn-badge:active,.btn.btn-badge.active,.btn-badge:active,.btn-badge.active{background:var(--Sky-Blue-85, #BCE6F5)}.btn.btn-badge[data-status=success],.btn-badge[data-status=success]{background:var(--Land-Green-95, #EDF8EC);color:var(--Land-Green-30, #2F7227)}.btn.btn-badge[data-status=success]:hover,.btn-badge[data-status=success]:hover{background:var(--Land-Green-90, #DCF2D9)}.btn.btn-badge[data-status=success]:active,.btn.btn-badge[data-status=success].active,.btn-badge[data-status=success]:active,.btn-badge[data-status=success].active{background:var(--Land-Green-85, #CAEBC6)}.btn.btn-badge[data-status=error],.btn-badge[data-status=error]{background:var(--Energy-Red-95, #FDE8E9);color:var(--Energy-Red-30, #8C0D13)}.btn.btn-badge[data-status=error]:hover,.btn-badge[data-status=error]:hover{background:var(--Energy-Red-90, #FBD0D2)}.btn.btn-badge[data-status=error]:active,.btn.btn-badge[data-status=error].active,.btn-badge[data-status=error]:active,.btn-badge[data-status=error].active{background:var(--Energy-Red-85, #F8B9BC)}.btn.btn-marketplaceCTA,.btn-marketplaceCTA{background:var(--Land-Green-35, #36852E);color:var(--White, #FFFFFF);justify-content:center}.btn.btn-marketplaceCTA:hover,.btn-marketplaceCTA:hover{background:var(--Land-Green-25, #275F21)}.btn.btn-marketplaceCTA:active,.btn.btn-marketplaceCTA.active,.btn-marketplaceCTA:active,.btn-marketplaceCTA.active{background:var(--Land-Green-Main-41, #409C35)}.btn.btn-destructive,.btn-destructive{background:var(--Energy-Red-45, #D2141D);color:var(--White, #FFFFFF);justify-content:center}.btn.btn-destructive:hover,.btn-destructive:hover{background:var(--Energy-Red-35, #A30F17)}.btn.btn-destructive:active,.btn.btn-destructive.active,.btn-destructive:active,.btn-destructive.active{background:var(--Energy-Red-50, #E91620)}.sideMenuItem>.icon{width:24px;height:24px}.input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff;border:1px solid var(--Sandstone-60, #9C9A96);border-radius:0;color:#1a1a19;display:block;font-weight:400;font-style:normal;outline:0 solid transparent;width:100%}.input:focus{border:1px solid var(--Cyan-Main-43, #00A1DB);outline:1px solid var(--Cyan-Main-43, #00A1DB)}.input:disabled,.input[aria-disabled=true],fieldset:disabled .input{background:var(--Sandstone-90, #E6E6E5);border-color:var(--Sandstone-90, #E6E6E5)}.input::-moz-placeholder{color:var(--Sandstone-55, #908D89);opacity:1}.input::placeholder{color:var(--Sandstone-55, #908D89);opacity:1}.input.input-xl,.input-xl{font-size:1rem;line-height:1.625;padding:.4375rem .5rem}.input.input-lg,.input-lg{font-size:1rem;line-height:1.625;padding:.375rem .5rem}.input.input-md,.input-md{font-size:.875rem;line-height:1.5714285714285714;padding:.25rem .5rem}.input.input-sm,.input-sm{font-size:.875rem;line-height:1.5714285714285714;padding:.0625rem .5rem}.input.input-validated,.input.input-validated:focus,.input-validated,.input-validated:focus{border-color:var(--Land-Green-35, #36852E)}.input.input-validated,.input-validated{background-image:url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20.8831 4.31025L7.75741 17.436L3.11702 12.7956C2.89736 12.5759 2.54121 12.5759 2.3215 12.7956L1.79121 13.3259C1.57155 13.5455 1.57155 13.9017 1.79121 14.1214L7.35968 19.6898C7.57933 19.9095 7.93549 19.9095 8.15519 19.6898L22.2089 5.63611C22.4286 5.41645 22.4286 5.0603 22.2089 4.84059L21.6786 4.31025C21.4589 4.09059 21.1028 4.09059 20.8831 4.31025Z' fill='var(--Land-Green-35%2c %2336852E)'/%3e%3c/svg%3e");background-repeat:no-repeat}.input.input-error,.input.input-error:focus,.input-error,.input-error:focus{border-color:var(--Energy-Red-45, #D2141D)}.input.input-select,.input-select{background-image:url("data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M11.6018 15.3255L6.16426 9.80359C5.94395 9.58328 5.94395 9.22703 6.16426 9.00671L6.49707 8.6739C6.71738 8.45359 7.07363 8.45359 7.29395 8.6739L12.0002 13.4692L16.7064 8.67859C16.9268 8.45828 17.283 8.45828 17.5033 8.67859L17.8361 9.0114C18.0564 9.23171 18.0564 9.58796 17.8361 9.80828L12.3986 15.3302C12.1783 15.5458 11.8221 15.5458 11.6018 15.3255Z' fill='var(--Sea-Blue-Main-28%2c %2300348F)'/%3e%3c/svg%3e");background-repeat:no-repeat}.avatar{font-weight:500;font-style:normal;align-items:center;background:#e6e6e5;border-radius:9999px;color:#353431;display:inline-flex;justify-content:center;overflow:hidden;text-transform:uppercase}.avatar.avatar-xl,.avatar-xl{font-size:1.125rem;line-height:1.5555555555555556;height:3rem;width:3rem}.avatar.avatar-lg,.avatar-lg{font-size:1rem;line-height:1.5;height:2.5rem;width:2.5rem}.avatar.avatar-md,.avatar-md{font-size:.875rem;line-height:1.4285714285714286;height:2rem;width:2rem}.avatar.avatar-sm,.avatar-sm{font-size:.75rem;line-height:1.3333333333333333;height:1.5rem;width:1.5rem}.avatar.avatar-xxl,.avatar-xxl{font-size:1.125rem;line-height:1.5555555555555556;height:3.5rem;width:3.5rem}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"\`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"\`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose :where(ul>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0!important}.prose :where(ul>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0!important}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-neutral{--tw-prose-body: #404040;--tw-prose-headings: #171717;--tw-prose-lead: #525252;--tw-prose-links: #171717;--tw-prose-bold: #171717;--tw-prose-counters: #737373;--tw-prose-bullets: #d4d4d4;--tw-prose-hr: #e5e5e5;--tw-prose-quotes: #171717;--tw-prose-quote-borders: #e5e5e5;--tw-prose-captions: #737373;--tw-prose-kbd: #171717;--tw-prose-kbd-shadows: 23 23 23;--tw-prose-code: #171717;--tw-prose-pre-code: #e5e5e5;--tw-prose-pre-bg: #262626;--tw-prose-th-borders: #d4d4d4;--tw-prose-td-borders: #e5e5e5;--tw-prose-invert-body: #d4d4d4;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #a3a3a3;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #a3a3a3;--tw-prose-invert-bullets: #525252;--tw-prose-invert-hr: #404040;--tw-prose-invert-quotes: #f5f5f5;--tw-prose-invert-quote-borders: #404040;--tw-prose-invert-captions: #a3a3a3;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d4d4d4;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #525252;--tw-prose-invert-td-borders: #404040}.static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.m-2{margin:.5rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.mb-2{margin-bottom:.5rem!important}.ml-\\[1ch\\]{margin-left:1ch!important}.mt-2{margin-top:.5rem!important}.block{display:block!important}.inline{display:inline!important}.flex{display:flex!important}.inline-flex{display:inline-flex!important}.table{display:table!important}.grid{display:grid!important}.h-3{height:.75rem!important}.h-full{height:100%!important}.w-3{width:.75rem!important}.w-\\[600px\\]{width:600px!important}.w-full{width:100%!important}.min-w-24{min-width:6rem!important}.max-w-lg{max-width:32rem!important}.max-w-none{max-width:none!important}.flex-1{flex:1 1 0%!important}.shrink-0{flex-shrink:0!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite!important}.select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.flex-col{flex-direction:column!important}.justify-end{justify-content:flex-end!important}.gap-2{gap:.5rem!important}.gap-3{gap:.75rem!important}.gap-5{gap:1.25rem!important}.overflow-hidden{overflow:hidden!important}.overflow-x-auto{overflow-x:auto!important}.whitespace-pre-wrap{white-space:pre-wrap!important}.rounded-full{border-radius:9999px!important}.border{border-width:1px!important}.border-l-4{border-left-width:4px!important}.border-t{border-top-width:1px!important}.border-Energy-Red-45{--tw-border-opacity: 1 !important;border-color:hsl(357 83% 45% / var(--tw-border-opacity, 1))!important}.border-Light{--tw-border-opacity: 1 !important;border-color:hsl(40 3% 90% / var(--tw-border-opacity, 1))!important}.border-t-Light{--tw-border-opacity: 1 !important;border-top-color:hsl(40 3% 90% / var(--tw-border-opacity, 1))!important}.bg-Black{--tw-bg-opacity: 1 !important;background-color:hsl(40 3% 10% / var(--tw-bg-opacity, 1))!important}.bg-Energy-Red-95{--tw-bg-opacity: 1 !important;background-color:hsl(357 83% 95% / var(--tw-bg-opacity, 1))!important}.bg-Eucalyptus-85{--tw-bg-opacity: 1 !important;background-color:hsl(178 80% 85% / var(--tw-bg-opacity, 1))!important}.bg-Land-Green-95{--tw-bg-opacity: 1 !important;background-color:hsl(114 49% 95% / var(--tw-bg-opacity, 1))!important}.bg-Lavender-90{--tw-bg-opacity: 1 !important;background-color:hsl(232 58% 90% / var(--tw-bg-opacity, 1))!important}.bg-Sandstone-95{--tw-bg-opacity: 1 !important;background-color:hsl(40 3% 95% / var(--tw-bg-opacity, 1))!important}.bg-Sandstone-97{--tw-bg-opacity: 1 !important;background-color:hsl(40 3% 97% / var(--tw-bg-opacity, 1))!important}.bg-Sea-Blue-Main-28{--tw-bg-opacity: 1 !important;background-color:hsl(218 100% 28% / var(--tw-bg-opacity, 1))!important}.bg-Sky-Blue-80{--tw-bg-opacity: 1 !important;background-color:hsl(196 74% 80% / var(--tw-bg-opacity, 1))!important}.bg-Sky-Blue-Main-77{--tw-bg-opacity: 1 !important;background-color:hsl(196 74% 77% / var(--tw-bg-opacity, 1))!important}.bg-Sunflower-85{--tw-bg-opacity: 1 !important;background-color:hsl(55 100% 85% / var(--tw-bg-opacity, 1))!important}.bg-Terracotta-85{--tw-bg-opacity: 1 !important;background-color:hsl(34 100% 85% / var(--tw-bg-opacity, 1))!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:.75rem!important}.p-6{padding:1.5rem!important}.pb-3{padding-bottom:.75rem!important}.pl-7{padding-left:1.75rem!important}.pr-3{padding-right:.75rem!important}.pt-3{padding-top:.75rem!important}.text-left{text-align:left!important}.text-base{font-size:1rem!important;line-height:1.625!important}.text-sm{font-size:.75rem!important;line-height:1.5!important}.font-medium{font-weight:500!important}.uppercase{text-transform:uppercase!important}.leading-5{line-height:1.25rem!important}.text-Black{--tw-text-opacity: 1 !important;color:hsl(40 3% 10% / var(--tw-text-opacity, 1))!important}.text-Energy-Red-45{--tw-text-opacity: 1 !important;color:hsl(357 83% 45% / var(--tw-text-opacity, 1))!important}.text-Eucalyptus-20{--tw-text-opacity: 1 !important;color:hsl(178 80% 20% / var(--tw-text-opacity, 1))!important}.text-Land-Green-30{--tw-text-opacity: 1 !important;color:hsl(114 49% 30% / var(--tw-text-opacity, 1))!important}.text-Lavender-50{--tw-text-opacity: 1 !important;color:hsl(232 58% 50% / var(--tw-text-opacity, 1))!important}.text-Sea-Blue-Main-28{--tw-text-opacity: 1 !important;color:hsl(218 100% 28% / var(--tw-text-opacity, 1))!important}.text-Sky-Blue-95{--tw-text-opacity: 1 !important;color:hsl(196 74% 95% / var(--tw-text-opacity, 1))!important}.text-Sunflower-20{--tw-text-opacity: 1 !important;color:hsl(55 100% 20% / var(--tw-text-opacity, 1))!important}.text-Terracotta-20{--tw-text-opacity: 1 !important;color:hsl(34 100% 20% / var(--tw-text-opacity, 1))!important}.text-Terracotta-30{--tw-text-opacity: 1 !important;color:hsl(34 100% 30% / var(--tw-text-opacity, 1))!important}.text-White{--tw-text-opacity: 1 !important;color:hsl(40 3% 100% / var(--tw-text-opacity, 1))!important}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1) !important;--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color) !important;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.transition-all{transition-property:all!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important;transition-duration:.15s!important}.duration-300{transition-duration:.3s!important}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.title{font-size:4rem!important;font-style:normal!important;font-weight:400!important;line-height:1.15625!important}@media only screen and (max-width: 992px){.title{font-size:2.625rem!important;line-height:1.2380952380952381!important}}.title{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))!important}:is(.dark .title){color:var(--White, hsl(40 3% 100%))!important}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fade-in{animation:fadeIn .2s cubic-bezier(.4,0,1,1)}@keyframes pulse{0%{transform:scale(.75);opacity:.6}50%{transform:scale(1.25);opacity:1}to{transform:scale(.75);opacity:.6}}.btn-link:hover{cursor:pointer;border-radius:3px;background-color:#a8a2a2}.group[data-expanded=true] .group-data-\\[expanded\\=true\\]\\:-rotate-180{--tw-rotate: -180deg !important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}`,al="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#383a42;background:#fafafa}.hljs-comment,.hljs-quote{color:#a0a1a7;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#a626a4}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e45649}.hljs-literal{color:#0184bb}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string{color:#50a14f}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#986801}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#4078f2}.hljs-built_in,.hljs-title.class_,.hljs-class .hljs-title{color:#c18401}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}",sl='@font-face{font-family:KaTeX_AMS;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_AMS-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_AMS-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_AMS-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Caligraphic-Bold.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Caligraphic-Bold.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Caligraphic-Bold.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Caligraphic;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Caligraphic-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Caligraphic-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Caligraphic-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Fraktur-Bold.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Fraktur-Bold.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Fraktur-Bold.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Fraktur;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Fraktur-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Fraktur-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Fraktur-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Bold.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Bold.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Bold.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_Main;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-BoldItalic.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-BoldItalic.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-BoldItalic.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Italic.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Italic.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Italic.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_Main;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Main-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Math;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Math-BoldItalic.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Math-BoldItalic.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Math-BoldItalic.ttf) format("truetype");font-weight:700;font-style:italic}@font-face{font-family:KaTeX_Math;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Math-Italic.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Math-Italic.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Math-Italic.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Bold.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Bold.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Bold.ttf) format("truetype");font-weight:700;font-style:normal}@font-face{font-family:KaTeX_SansSerif;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Italic.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Italic.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Italic.ttf) format("truetype");font-weight:400;font-style:italic}@font-face{font-family:KaTeX_SansSerif;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_SansSerif-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Script;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Script-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Script-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Script-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size1;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Size1-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size1-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size1-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size2;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Size2-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size2-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size2-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size3;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Size3-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size3-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size3-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Size4;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Size4-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size4-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Size4-Regular.ttf) format("truetype");font-weight:400;font-style:normal}@font-face{font-family:KaTeX_Typewriter;src:url(https://cdn.veracity.com/vcb/katex/KaTeX_Typewriter-Regular.woff2) format("woff2"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Typewriter-Regular.woff) format("woff"),url(https://cdn.veracity.com/vcb/katex/KaTeX_Typewriter-Regular.ttf) format("truetype");font-weight:400;font-style:normal}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.15"}.katex .katex-mathml{position:absolute;clip:rect(1px,1px,1px,1px);padding:0;border:0;height:1px;width:1px;overflow:hidden}.katex .katex-html>.newline{display:block}.katex .base{position:relative;display:inline-block;white-space:nowrap;width:-moz-min-content;width:min-content}.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-weight:700;font-style:italic}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathsfit,.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{display:inline-table;table-layout:fixed;border-collapse:collapse}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;vertical-align:bottom;position:relative}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;vertical-align:bottom;font-size:1px;width:2px;min-width:2px}.katex .vbox{display:inline-flex;flex-direction:column;align-items:baseline}.katex .hbox{display:inline-flex;flex-direction:row;width:100%}.katex .thinbox{display:inline-flex;flex-direction:row;width:0;max-width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{display:inline-block;width:100%;border-bottom-style:solid}.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .underline .underline-line,.katex .hline,.katex .hdashline,.katex .rule{min-height:1px}.katex .mspace{display:inline-block}.katex .llap,.katex .rlap,.katex .clap{width:0;position:relative}.katex .llap>.inner,.katex .rlap>.inner,.katex .clap>.inner{position:absolute}.katex .llap>.fix,.katex .rlap>.fix,.katex .clap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .rlap>.inner,.katex .clap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{display:inline-block;border:solid 0;position:relative}.katex .overline .overline-line,.katex .underline .underline-line,.katex .hline{display:inline-block;width:100%;border-bottom-style:solid}.katex .hdashline{display:inline-block;width:100%;border-bottom-style:dashed}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .sizing.reset-size1.size1,.katex .fontsize-ensurer.reset-size1.size1{font-size:1em}.katex .sizing.reset-size1.size2,.katex .fontsize-ensurer.reset-size1.size2{font-size:1.2em}.katex .sizing.reset-size1.size3,.katex .fontsize-ensurer.reset-size1.size3{font-size:1.4em}.katex .sizing.reset-size1.size4,.katex .fontsize-ensurer.reset-size1.size4{font-size:1.6em}.katex .sizing.reset-size1.size5,.katex .fontsize-ensurer.reset-size1.size5{font-size:1.8em}.katex .sizing.reset-size1.size6,.katex .fontsize-ensurer.reset-size1.size6{font-size:2em}.katex .sizing.reset-size1.size7,.katex .fontsize-ensurer.reset-size1.size7{font-size:2.4em}.katex .sizing.reset-size1.size8,.katex .fontsize-ensurer.reset-size1.size8{font-size:2.88em}.katex .sizing.reset-size1.size9,.katex .fontsize-ensurer.reset-size1.size9{font-size:3.456em}.katex .sizing.reset-size1.size10,.katex .fontsize-ensurer.reset-size1.size10{font-size:4.148em}.katex .sizing.reset-size1.size11,.katex .fontsize-ensurer.reset-size1.size11{font-size:4.976em}.katex .sizing.reset-size2.size1,.katex .fontsize-ensurer.reset-size2.size1{font-size:.8333333333em}.katex .sizing.reset-size2.size2,.katex .fontsize-ensurer.reset-size2.size2{font-size:1em}.katex .sizing.reset-size2.size3,.katex .fontsize-ensurer.reset-size2.size3{font-size:1.1666666667em}.katex .sizing.reset-size2.size4,.katex .fontsize-ensurer.reset-size2.size4{font-size:1.3333333333em}.katex .sizing.reset-size2.size5,.katex .fontsize-ensurer.reset-size2.size5{font-size:1.5em}.katex .sizing.reset-size2.size6,.katex .fontsize-ensurer.reset-size2.size6{font-size:1.6666666667em}.katex .sizing.reset-size2.size7,.katex .fontsize-ensurer.reset-size2.size7{font-size:2em}.katex .sizing.reset-size2.size8,.katex .fontsize-ensurer.reset-size2.size8{font-size:2.4em}.katex .sizing.reset-size2.size9,.katex .fontsize-ensurer.reset-size2.size9{font-size:2.88em}.katex .sizing.reset-size2.size10,.katex .fontsize-ensurer.reset-size2.size10{font-size:3.4566666667em}.katex .sizing.reset-size2.size11,.katex .fontsize-ensurer.reset-size2.size11{font-size:4.1466666667em}.katex .sizing.reset-size3.size1,.katex .fontsize-ensurer.reset-size3.size1{font-size:.7142857143em}.katex .sizing.reset-size3.size2,.katex .fontsize-ensurer.reset-size3.size2{font-size:.8571428571em}.katex .sizing.reset-size3.size3,.katex .fontsize-ensurer.reset-size3.size3{font-size:1em}.katex .sizing.reset-size3.size4,.katex .fontsize-ensurer.reset-size3.size4{font-size:1.1428571429em}.katex .sizing.reset-size3.size5,.katex .fontsize-ensurer.reset-size3.size5{font-size:1.2857142857em}.katex .sizing.reset-size3.size6,.katex .fontsize-ensurer.reset-size3.size6{font-size:1.4285714286em}.katex .sizing.reset-size3.size7,.katex .fontsize-ensurer.reset-size3.size7{font-size:1.7142857143em}.katex .sizing.reset-size3.size8,.katex .fontsize-ensurer.reset-size3.size8{font-size:2.0571428571em}.katex .sizing.reset-size3.size9,.katex .fontsize-ensurer.reset-size3.size9{font-size:2.4685714286em}.katex .sizing.reset-size3.size10,.katex .fontsize-ensurer.reset-size3.size10{font-size:2.9628571429em}.katex .sizing.reset-size3.size11,.katex .fontsize-ensurer.reset-size3.size11{font-size:3.5542857143em}.katex .sizing.reset-size4.size1,.katex .fontsize-ensurer.reset-size4.size1{font-size:.625em}.katex .sizing.reset-size4.size2,.katex .fontsize-ensurer.reset-size4.size2{font-size:.75em}.katex .sizing.reset-size4.size3,.katex .fontsize-ensurer.reset-size4.size3{font-size:.875em}.katex .sizing.reset-size4.size4,.katex .fontsize-ensurer.reset-size4.size4{font-size:1em}.katex .sizing.reset-size4.size5,.katex .fontsize-ensurer.reset-size4.size5{font-size:1.125em}.katex .sizing.reset-size4.size6,.katex .fontsize-ensurer.reset-size4.size6{font-size:1.25em}.katex .sizing.reset-size4.size7,.katex .fontsize-ensurer.reset-size4.size7{font-size:1.5em}.katex .sizing.reset-size4.size8,.katex .fontsize-ensurer.reset-size4.size8{font-size:1.8em}.katex .sizing.reset-size4.size9,.katex .fontsize-ensurer.reset-size4.size9{font-size:2.16em}.katex .sizing.reset-size4.size10,.katex .fontsize-ensurer.reset-size4.size10{font-size:2.5925em}.katex .sizing.reset-size4.size11,.katex .fontsize-ensurer.reset-size4.size11{font-size:3.11em}.katex .sizing.reset-size5.size1,.katex .fontsize-ensurer.reset-size5.size1{font-size:.5555555556em}.katex .sizing.reset-size5.size2,.katex .fontsize-ensurer.reset-size5.size2{font-size:.6666666667em}.katex .sizing.reset-size5.size3,.katex .fontsize-ensurer.reset-size5.size3{font-size:.7777777778em}.katex .sizing.reset-size5.size4,.katex .fontsize-ensurer.reset-size5.size4{font-size:.8888888889em}.katex .sizing.reset-size5.size5,.katex .fontsize-ensurer.reset-size5.size5{font-size:1em}.katex .sizing.reset-size5.size6,.katex .fontsize-ensurer.reset-size5.size6{font-size:1.1111111111em}.katex .sizing.reset-size5.size7,.katex .fontsize-ensurer.reset-size5.size7{font-size:1.3333333333em}.katex .sizing.reset-size5.size8,.katex .fontsize-ensurer.reset-size5.size8{font-size:1.6em}.katex .sizing.reset-size5.size9,.katex .fontsize-ensurer.reset-size5.size9{font-size:1.92em}.katex .sizing.reset-size5.size10,.katex .fontsize-ensurer.reset-size5.size10{font-size:2.3044444444em}.katex .sizing.reset-size5.size11,.katex .fontsize-ensurer.reset-size5.size11{font-size:2.7644444444em}.katex .sizing.reset-size6.size1,.katex .fontsize-ensurer.reset-size6.size1{font-size:.5em}.katex .sizing.reset-size6.size2,.katex .fontsize-ensurer.reset-size6.size2{font-size:.6em}.katex .sizing.reset-size6.size3,.katex .fontsize-ensurer.reset-size6.size3{font-size:.7em}.katex .sizing.reset-size6.size4,.katex .fontsize-ensurer.reset-size6.size4{font-size:.8em}.katex .sizing.reset-size6.size5,.katex .fontsize-ensurer.reset-size6.size5{font-size:.9em}.katex .sizing.reset-size6.size6,.katex .fontsize-ensurer.reset-size6.size6{font-size:1em}.katex .sizing.reset-size6.size7,.katex .fontsize-ensurer.reset-size6.size7{font-size:1.2em}.katex .sizing.reset-size6.size8,.katex .fontsize-ensurer.reset-size6.size8{font-size:1.44em}.katex .sizing.reset-size6.size9,.katex .fontsize-ensurer.reset-size6.size9{font-size:1.728em}.katex .sizing.reset-size6.size10,.katex .fontsize-ensurer.reset-size6.size10{font-size:2.074em}.katex .sizing.reset-size6.size11,.katex .fontsize-ensurer.reset-size6.size11{font-size:2.488em}.katex .sizing.reset-size7.size1,.katex .fontsize-ensurer.reset-size7.size1{font-size:.4166666667em}.katex .sizing.reset-size7.size2,.katex .fontsize-ensurer.reset-size7.size2{font-size:.5em}.katex .sizing.reset-size7.size3,.katex .fontsize-ensurer.reset-size7.size3{font-size:.5833333333em}.katex .sizing.reset-size7.size4,.katex .fontsize-ensurer.reset-size7.size4{font-size:.6666666667em}.katex .sizing.reset-size7.size5,.katex .fontsize-ensurer.reset-size7.size5{font-size:.75em}.katex .sizing.reset-size7.size6,.katex .fontsize-ensurer.reset-size7.size6{font-size:.8333333333em}.katex .sizing.reset-size7.size7,.katex .fontsize-ensurer.reset-size7.size7{font-size:1em}.katex .sizing.reset-size7.size8,.katex .fontsize-ensurer.reset-size7.size8{font-size:1.2em}.katex .sizing.reset-size7.size9,.katex .fontsize-ensurer.reset-size7.size9{font-size:1.44em}.katex .sizing.reset-size7.size10,.katex .fontsize-ensurer.reset-size7.size10{font-size:1.7283333333em}.katex .sizing.reset-size7.size11,.katex .fontsize-ensurer.reset-size7.size11{font-size:2.0733333333em}.katex .sizing.reset-size8.size1,.katex .fontsize-ensurer.reset-size8.size1{font-size:.3472222222em}.katex .sizing.reset-size8.size2,.katex .fontsize-ensurer.reset-size8.size2{font-size:.4166666667em}.katex .sizing.reset-size8.size3,.katex .fontsize-ensurer.reset-size8.size3{font-size:.4861111111em}.katex .sizing.reset-size8.size4,.katex .fontsize-ensurer.reset-size8.size4{font-size:.5555555556em}.katex .sizing.reset-size8.size5,.katex .fontsize-ensurer.reset-size8.size5{font-size:.625em}.katex .sizing.reset-size8.size6,.katex .fontsize-ensurer.reset-size8.size6{font-size:.6944444444em}.katex .sizing.reset-size8.size7,.katex .fontsize-ensurer.reset-size8.size7{font-size:.8333333333em}.katex .sizing.reset-size8.size8,.katex .fontsize-ensurer.reset-size8.size8{font-size:1em}.katex .sizing.reset-size8.size9,.katex .fontsize-ensurer.reset-size8.size9{font-size:1.2em}.katex .sizing.reset-size8.size10,.katex .fontsize-ensurer.reset-size8.size10{font-size:1.4402777778em}.katex .sizing.reset-size8.size11,.katex .fontsize-ensurer.reset-size8.size11{font-size:1.7277777778em}.katex .sizing.reset-size9.size1,.katex .fontsize-ensurer.reset-size9.size1{font-size:.2893518519em}.katex .sizing.reset-size9.size2,.katex .fontsize-ensurer.reset-size9.size2{font-size:.3472222222em}.katex .sizing.reset-size9.size3,.katex .fontsize-ensurer.reset-size9.size3{font-size:.4050925926em}.katex .sizing.reset-size9.size4,.katex .fontsize-ensurer.reset-size9.size4{font-size:.462962963em}.katex .sizing.reset-size9.size5,.katex .fontsize-ensurer.reset-size9.size5{font-size:.5208333333em}.katex .sizing.reset-size9.size6,.katex .fontsize-ensurer.reset-size9.size6{font-size:.5787037037em}.katex .sizing.reset-size9.size7,.katex .fontsize-ensurer.reset-size9.size7{font-size:.6944444444em}.katex .sizing.reset-size9.size8,.katex .fontsize-ensurer.reset-size9.size8{font-size:.8333333333em}.katex .sizing.reset-size9.size9,.katex .fontsize-ensurer.reset-size9.size9{font-size:1em}.katex .sizing.reset-size9.size10,.katex .fontsize-ensurer.reset-size9.size10{font-size:1.2002314815em}.katex .sizing.reset-size9.size11,.katex .fontsize-ensurer.reset-size9.size11{font-size:1.4398148148em}.katex .sizing.reset-size10.size1,.katex .fontsize-ensurer.reset-size10.size1{font-size:.2410800386em}.katex .sizing.reset-size10.size2,.katex .fontsize-ensurer.reset-size10.size2{font-size:.2892960463em}.katex .sizing.reset-size10.size3,.katex .fontsize-ensurer.reset-size10.size3{font-size:.337512054em}.katex .sizing.reset-size10.size4,.katex .fontsize-ensurer.reset-size10.size4{font-size:.3857280617em}.katex .sizing.reset-size10.size5,.katex .fontsize-ensurer.reset-size10.size5{font-size:.4339440694em}.katex .sizing.reset-size10.size6,.katex .fontsize-ensurer.reset-size10.size6{font-size:.4821600771em}.katex .sizing.reset-size10.size7,.katex .fontsize-ensurer.reset-size10.size7{font-size:.5785920926em}.katex .sizing.reset-size10.size8,.katex .fontsize-ensurer.reset-size10.size8{font-size:.6943105111em}.katex .sizing.reset-size10.size9,.katex .fontsize-ensurer.reset-size10.size9{font-size:.8331726133em}.katex .sizing.reset-size10.size10,.katex .fontsize-ensurer.reset-size10.size10{font-size:1em}.katex .sizing.reset-size10.size11,.katex .fontsize-ensurer.reset-size10.size11{font-size:1.1996142719em}.katex .sizing.reset-size11.size1,.katex .fontsize-ensurer.reset-size11.size1{font-size:.2009646302em}.katex .sizing.reset-size11.size2,.katex .fontsize-ensurer.reset-size11.size2{font-size:.2411575563em}.katex .sizing.reset-size11.size3,.katex .fontsize-ensurer.reset-size11.size3{font-size:.2813504823em}.katex .sizing.reset-size11.size4,.katex .fontsize-ensurer.reset-size11.size4{font-size:.3215434084em}.katex .sizing.reset-size11.size5,.katex .fontsize-ensurer.reset-size11.size5{font-size:.3617363344em}.katex .sizing.reset-size11.size6,.katex .fontsize-ensurer.reset-size11.size6{font-size:.4019292605em}.katex .sizing.reset-size11.size7,.katex .fontsize-ensurer.reset-size11.size7{font-size:.4823151125em}.katex .sizing.reset-size11.size8,.katex .fontsize-ensurer.reset-size11.size8{font-size:.578778135em}.katex .sizing.reset-size11.size9,.katex .fontsize-ensurer.reset-size11.size9{font-size:.6945337621em}.katex .sizing.reset-size11.size10,.katex .fontsize-ensurer.reset-size11.size10{font-size:.8336012862em}.katex .sizing.reset-size11.size11,.katex .fontsize-ensurer.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .op-limits>.vlist-t{text-align:center}.katex .accent>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{display:block;position:absolute;width:100%;height:inherit;fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1}.katex svg path{stroke:none}.katex img{border-style:none;min-width:0;min-height:0;max-width:none;max-height:none}.katex .stretchy{width:100%;display:block;position:relative;overflow:hidden}.katex .stretchy:before,.katex .stretchy:after{content:""}.katex .hide-tail{width:100%;position:relative;overflow:hidden}.katex .halfarrow-left{position:absolute;left:0;width:50.2%;overflow:hidden}.katex .halfarrow-right{position:absolute;right:0;width:50.2%;overflow:hidden}.katex .brace-left{position:absolute;left:0;width:25.1%;overflow:hidden}.katex .brace-center{position:absolute;left:25%;width:50%;overflow:hidden}.katex .brace-right{position:absolute;right:0;width:25.1%;overflow:hidden}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .x-arrow,.katex .mover,.katex .munder{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{box-sizing:border-box;border:.04em solid}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{box-sizing:border-box;border-top:.049em solid;border-right:.049em solid;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{counter-increment:katexEqnNo;content:"(" counter(katexEqnNo) ")"}.katex .mml-eqn-num:before{counter-increment:mmlEqnNo;content:"(" counter(mmlEqnNo) ")"}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;position:absolute;left:calc(50% + .3em);text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{text-align:left;padding-left:2em}:host{counter-reset:katexEqnNo mmlEqnNo}';class Oa extends Error{constructor(){super("Max input limit reached.")}}var en=(t=>(t[t.Messages=0]="Messages",t[t.OperationResult=1]="OperationResult",t[t.OperationError=2]="OperationError",t))(en||{}),Me=(t=>(t[t.MessageBegin=0]="MessageBegin",t[t.MessageAppend=1]="MessageAppend",t[t.MessageToolCallUpdate=2]="MessageToolCallUpdate",t[t.MessageToolCallResult=3]="MessageToolCallResult",t[t.MessageToolCallError=4]="MessageToolCallError",t[t.MessageExecuteLlmFunctionsBegin=5]="MessageExecuteLlmFunctionsBegin",t[t.MessageExecuteLlmFunctionsEnd=6]="MessageExecuteLlmFunctionsEnd",t[t.MessageInvokeClientFunction=7]="MessageInvokeClientFunction",t[t.MessageInvokeClientFunctionResult=8]="MessageInvokeClientFunctionResult",t[t.MessageInvokeClientFunctionError=9]="MessageInvokeClientFunctionError",t[t.MessageSubConversationBegin=10]="MessageSubConversationBegin",t[t.ConversationEnd=11]="ConversationEnd",t[t.ConversationError=12]="ConversationError",t[t.MessageToolCallBegin=13]="MessageToolCallBegin",t))(Me||{});class bn extends Error{constructor(e="Operation was cancelled."){super(e)}}class Kt{constructor(){P(this,"isCancellationRequested",!1);P(this,"listeners",new Set)}addListener(e){this.isCancellationRequested?e():this.listeners.add(e)}cancel(){if(!this.isCancellationRequested){this.isCancellationRequested=!0;for(const e of this.listeners)e();this.listeners.clear()}}removeListener(e){this.listeners.delete(e)}throwIfCancellationRequested(){if(this.isCancellationRequested)throw new bn}}class ol{constructor(){P(this,"_queue",[]);P(this,"_waitToReadDeferred");P(this,"_isCompleted",!1)}resolveWaitToReadDeferred(e){const r=this._waitToReadDeferred;r&&(this._waitToReadDeferred=null,r.cancellationToken.removeListener(r.cancellationTokenListener),r.resolve(e))}complete(){this._isCompleted||(this._isCompleted=!0,this.resolveWaitToReadDeferred(!!this._queue.length))}completeWithError(e){if(this._isCompleted)return;this._isCompleted=!0;const r=this._waitToReadDeferred;r&&(this._waitToReadDeferred=null,r.cancellationToken.removeListener(r.cancellationTokenListener),r.reject(e))}tryWrite(e){return this._isCompleted?!1:(this._queue.push(e),this.resolveWaitToReadDeferred(!0),!0)}waitToReadAsync(e){if(e.isCancellationRequested)return Promise.reject(new bn);if(this._waitToReadDeferred)return Promise.reject(new Error("Multiple readers are not supported."));if(this._queue.length)return Promise.resolve(!0);if(this._isCompleted)return Promise.resolve(!1);const r={};r.cancellationTokenListener=()=>{this._waitToReadDeferred===r&&(this._waitToReadDeferred=null,r.reject(new bn))},r.cancellationToken=e,e.addListener(r.cancellationTokenListener);const n=new Promise((i,a)=>{r.resolve=i,r.reject=a});return this._waitToReadDeferred=r,n}read(){const e=this._queue;return this._queue=[],e}}class li extends ol{constructor(){super(...arguments);P(this,"_reader");P(this,"_buffer",new Uint8Array(0));P(this,"_bufferOffset",0);P(this,"_abortController");P(this,"_cancellationToken");P(this,"_textDecoder",new TextDecoder)}async initializeExistingAsync(r,n){this._abortController=new AbortController,(this._cancellationToken=new Kt).addListener(()=>this._abortController.abort());const i=await r(n,{method:"GET",signal:this._abortController.signal});if(i.status!==404){if(!i.ok)throw new Error(`Failed to load history messages: ${i.status} ${i.statusText}`);this._reader=i.body.getReader(),this.readMessagesAsync()}}async summarizeTitleAsync(r,n,i,a){this._abortController=new AbortController,(this._cancellationToken=new Kt).addListener(()=>this._abortController.abort());const s=await r(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:en.Messages,messages:i,chatId:a}),signal:this._abortController.signal});if(s.status===400)return null;if(!s.ok)throw new Error(`Failed to start chat completion SSE: ${s.status} ${s.statusText}`);return s.json()}async startAsync(r,n,i,a,s){this._abortController=new AbortController,(this._cancellationToken=new Kt).addListener(()=>this._abortController.abort());const o=await r(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:en.Messages,messages:i,chatId:a,copilotId:s}),signal:this._abortController.signal});if(o.status===429)throw new Oa;if(!o.ok)throw new Error(`Failed to start chat completion SSE: ${o.status} ${o.statusText}`);this._reader=o.body.getReader(),this.readMessagesAsync()}stop(){this._cancellationToken.cancel()}get wasStopped(){return this._cancellationToken.isCancellationRequested}async readBytesAsync(r){if(this._buffer.length-this._bufferOffset>=r){const i=this._buffer.subarray(this._bufferOffset,this._bufferOffset+r);return this._bufferOffset+=r,i}for(;this._buffer.length-this._bufferOffset<r;){const{done:i,value:a}=await this._reader.read();if(i){const s=this._buffer.subarray(this._bufferOffset);return this._buffer=new Uint8Array(0),this._bufferOffset=0,s}this._buffer=ll(this._buffer,a,this._bufferOffset),this._bufferOffset=0}const n=this._buffer.subarray(this._bufferOffset,this._bufferOffset+r);return this._bufferOffset+=r,n}async readLittleEndianInt32Async(){const r=await this.readBytesAsync(4),n=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength);return new DataView(n).getInt32(0,!0)}async readUtf8StringAsync(){const r=await this.readLittleEndianInt32Async();if(r===-1)return null;const n=await this.readBytesAsync(r);return this._textDecoder.decode(n)}async readMessageAsync(){const r=await this.readBytesAsync(1);if(r.length==0)return null;const n=r[0];switch(n){case Me.MessageBegin:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync(),o=await this.readUtf8StringAsync(),u=await this.readUtf8StringAsync(),h=await this.readUtf8StringAsync(),d=await this.readUtf8StringAsync(),p=await this.readUtf8StringAsync();return{type:n,conversationId:i,messageAuthorRole:a,messageAuthorId:s,messageAuthorPictureUrl:o,messageAuthorDisplayName:u,messageAuthorEmail:h,messageId:d,copilotId:p}}case Me.MessageAppend:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync();return{type:n,conversationId:i,appendMessageMarkdown:a}}case Me.MessageToolCallUpdate:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readLittleEndianInt32Async(),o=await this.readUtf8StringAsync(),u=await this.readUtf8StringAsync();return{type:n,conversationId:i,llmFunctionId:a,toolCallUpdateIndex:s,toolCallUpdateName:o,toolCallUpdateArguments:u}}case Me.MessageInvokeClientFunction:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync(),o=await this.readUtf8StringAsync(),u=await this.readUtf8StringAsync();return{type:n,conversationId:i,llmFunctionId:a,operationId:s,clientFunctionName:o,argumentsAsJSON:u}}case Me.MessageInvokeClientFunctionResult:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync();return{type:n,operationId:i,result:a}}case Me.MessageInvokeClientFunctionError:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync();return{type:n,operationId:i,error:a}}case Me.MessageSubConversationBegin:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync(),o=await this.readUtf8StringAsync(),u=await this.readUtf8StringAsync(),h=await this.readUtf8StringAsync(),d=await this.readUtf8StringAsync();return{type:n,conversationId:i,subConversationId:a,messageAuthorId:s,messageAuthorPictureUrl:o,messageAuthorDisplayName:u,messageAuthorEmail:h,subConversationTitle:d}}case Me.ConversationEnd:{const i=await this.readUtf8StringAsync();return{type:n,conversationId:i}}case Me.ConversationError:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync();return{type:n,conversationId:i,error:a,stackTrace:s}}case Me.MessageExecuteLlmFunctionsBegin:case Me.MessageExecuteLlmFunctionsEnd:{const i=await this.readUtf8StringAsync();return{type:n,conversationId:i}}case Me.MessageToolCallBegin:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync();return{type:n,conversationId:i,llmFunctionId:a,toolCallBeginInfo:s}}case Me.MessageToolCallResult:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync();return{type:n,conversationId:i,llmFunctionId:a,result:s}}case Me.MessageToolCallError:{const i=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),s=await this.readUtf8StringAsync();return{type:n,conversationId:i,llmFunctionId:a,error:s}}default:throw new Error(`Unexpected message type: ${n}`)}}async readMessagesAsync(){try{for(;;){const r=await this.readMessageAsync();if(!r){this.complete();return}this.tryWrite(r)}}catch(r){this.completeWithError(r)}}waitToReadAsync(){return super.waitToReadAsync(this._cancellationToken)}}function ll(t,e,r){r>0&&t.copyWithin(0,r);let n=new Uint8Array(t.length-r+e.length);return n.set(t.subarray(0,t.length-r),0),n.set(e,t.length-r),n}var ul=Object.defineProperty,Se=(t,e)=>ul(t,"name",{value:e,configurable:!0}),La=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});function Da(t){return!isNaN(parseFloat(t))&&isFinite(t)}Se(Da,"_isNumber");function ur(t){return t.charAt(0).toUpperCase()+t.substring(1)}Se(ur,"_capitalize");function vn(t){return function(){return this[t]}}Se(vn,"_getter");var qr=["isConstructor","isEval","isNative","isToplevel"],Ur=["columnNumber","lineNumber"],Hr=["fileName","functionName","source"],cl=["args"],hl=["evalOrigin"],yn=qr.concat(Ur,Hr,cl,hl);function gt(t){if(t)for(var e=0;e<yn.length;e++)t[yn[e]]!==void 0&&this["set"+ur(yn[e])](t[yn[e]])}for(Se(gt,"StackFrame"),gt.prototype={getArgs:function(){return this.args},setArgs:function(t){if(Object.prototype.toString.call(t)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=t},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(t){if(t instanceof gt)this.evalOrigin=t;else if(t instanceof Object)this.evalOrigin=new gt(t);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var t=this.getFileName()||"",e=this.getLineNumber()||"",r=this.getColumnNumber()||"",n=this.getFunctionName()||"";return this.getIsEval()?t?"[eval] ("+t+":"+e+":"+r+")":"[eval]:"+e+":"+r:n?n+" ("+t+":"+e+":"+r+")":t+":"+e+":"+r}},gt.fromString=Se(function(t){var e=t.indexOf("("),r=t.lastIndexOf(")"),n=t.substring(0,e),i=t.substring(e+1,r).split(","),a=t.substring(r+1);if(a.indexOf("@")===0)var s=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,""),o=s[1],u=s[2],h=s[3];return new gt({functionName:n,args:i||void 0,fileName:o,lineNumber:u||void 0,columnNumber:h||void 0})},"StackFrame$$fromString"),Ar=0;Ar<qr.length;Ar++)gt.prototype["get"+ur(qr[Ar])]=vn(qr[Ar]),gt.prototype["set"+ur(qr[Ar])]=function(t){return function(e){this[t]=!!e}}(qr[Ar]);var Ar;for(Mr=0;Mr<Ur.length;Mr++)gt.prototype["get"+ur(Ur[Mr])]=vn(Ur[Mr]),gt.prototype["set"+ur(Ur[Mr])]=function(t){return function(e){if(!Da(e))throw new TypeError(t+" must be a Number");this[t]=Number(e)}}(Ur[Mr]);var Mr;for(Cr=0;Cr<Hr.length;Cr++)gt.prototype["get"+ur(Hr[Cr])]=vn(Hr[Cr]),gt.prototype["set"+ur(Hr[Cr])]=function(t){return function(e){this[t]=String(e)}}(Hr[Cr]);var Cr,ui=gt;function Fa(){var t=/^\s*at .*(\S+:\d+|\(native\))/m,e=/^(eval@)?(\[native code])?$/;return{parse:Se(function(r){if(r.stack&&r.stack.match(t))return this.parseV8OrIE(r);if(r.stack)return this.parseFFOrSafari(r);throw new Error("Cannot parse given Error object")},"ErrorStackParser$$parse"),extractLocation:Se(function(r){if(r.indexOf(":")===-1)return[r];var n=/(.+?)(?::(\d+))?(?::(\d+))?$/,i=n.exec(r.replace(/[()]/g,""));return[i[1],i[2]||void 0,i[3]||void 0]},"ErrorStackParser$$extractLocation"),parseV8OrIE:Se(function(r){var n=r.stack.split(`
2
2
  `).filter(function(i){return!!i.match(t)},this);return n.map(function(i){i.indexOf("(eval ")>-1&&(i=i.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var a=i.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),s=a.match(/ (\(.+\)$)/);a=s?a.replace(s[0],""):a;var o=this.extractLocation(s?s[1]:a),u=s&&a||void 0,h=["eval","<anonymous>"].indexOf(o[0])>-1?void 0:o[0];return new ui({functionName:u,fileName:h,lineNumber:o[1],columnNumber:o[2],source:i})},this)},"ErrorStackParser$$parseV8OrIE"),parseFFOrSafari:Se(function(r){var n=r.stack.split(`
3
3
  `).filter(function(i){return!i.match(e)},this);return n.map(function(i){if(i.indexOf(" > eval")>-1&&(i=i.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),i.indexOf("@")===-1&&i.indexOf(":")===-1)return new ui({functionName:i});var a=/((.*".+"[^@]*)?[^@]*)(?:@)/,s=i.match(a),o=s&&s[1]?s[1]:void 0,u=this.extractLocation(i.replace(a,""));return new ui({functionName:o,fileName:u[0],lineNumber:u[1],columnNumber:u[2],source:i})},this)},"ErrorStackParser$$parseFFOrSafari")}}Se(Fa,"ErrorStackParser");var dl=new Fa,ml=dl,Lt=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&!process.browser,Pa=Lt&&typeof module<"u"&&typeof module.exports<"u"&&typeof La<"u"&&typeof __dirname<"u",pl=Lt&&!Pa,fl=typeof Deno<"u",qa=!Lt&&!fl,gl=qa&&typeof window=="object"&&typeof document=="object"&&typeof document.createElement=="function"&&"sessionStorage"in window&&typeof importScripts!="function",bl=qa&&typeof importScripts=="function"&&typeof self=="object";typeof navigator=="object"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Chrome")==-1&&navigator.userAgent.indexOf("Safari")>-1;var Ua,ci,Ha,Ga,hi;async function di(){if(!Lt||(Ua=(await Promise.resolve().then(()=>jt)).default,Ga=await Promise.resolve().then(()=>jt),hi=await Promise.resolve().then(()=>jt),Ha=(await Promise.resolve().then(()=>jt)).default,ci=await Promise.resolve().then(()=>jt),pi=ci.sep,typeof La<"u"))return;let t=Ga,e=await Promise.resolve().then(()=>jt),r=await Promise.resolve().then(()=>jt),n=await Promise.resolve().then(()=>jt),i={fs:t,crypto:e,ws:r,child_process:n};globalThis.require=function(a){return i[a]}}Se(di,"initNodeModules");function $a(t,e){return ci.resolve(e||".",t)}Se($a,"node_resolvePath");function Wa(t,e){return e===void 0&&(e=location),new URL(t,e).toString()}Se(Wa,"browser_resolvePath");var mi;Lt?mi=$a:mi=Wa;var pi;Lt||(pi="/");function ja(t,e){return t.startsWith("file://")&&(t=t.slice(7)),t.includes("://")?{response:fetch(t)}:{binary:hi.readFile(t).then(r=>new Uint8Array(r.buffer,r.byteOffset,r.byteLength))}}Se(ja,"node_getBinaryResponse");function Va(t,e){let r=new URL(t,location);return{response:fetch(r,e?{integrity:e}:{})}}Se(Va,"browser_getBinaryResponse");var wn;Lt?wn=ja:wn=Va;async function Xa(t,e){let{response:r,binary:n}=wn(t,e);if(n)return n;let i=await r;if(!i.ok)throw new Error(`Failed to load '${t}': request failed.`);return new Uint8Array(await i.arrayBuffer())}Se(Xa,"loadBinaryFile");var xn;if(gl)xn=Se(async t=>await import(t),"loadScript");else if(bl)xn=Se(async t=>{try{globalThis.importScripts(t)}catch(e){if(e instanceof TypeError)await import(t);else throw e}},"loadScript");else if(Lt)xn=Ka;else throw new Error("Cannot determine runtime environment");async function Ka(t){t.startsWith("file://")&&(t=t.slice(7)),t.includes("://")?Ha.runInThisContext(await(await fetch(t)).text()):await import(Ua.pathToFileURL(t).href)}Se(Ka,"nodeLoadScript");async function Ya(t){if(Lt){await di();let e=await hi.readFile(t,{encoding:"utf8"});return JSON.parse(e)}else return await(await fetch(t)).json()}Se(Ya,"loadLockFile");async function Za(){if(Pa)return __dirname;let t;try{throw new Error}catch(n){t=n}let e=ml.parse(t)[0].fileName;if(Lt&&!e.startsWith("file://")&&(e=`file://${e}`),pl){let n=await Promise.resolve().then(()=>jt);return(await Promise.resolve().then(()=>jt)).fileURLToPath(n.dirname(e))}let r=e.lastIndexOf(pi);if(r===-1)throw new Error("Could not extract indexURL path from pyodide module location");return e.slice(0,r)}Se(Za,"calculateDirname");function Ja(t){let e=t.FS,r=t.FS.filesystems.MEMFS,n=t.PATH,i={DIR_MODE:16895,FILE_MODE:33279,mount:function(a){if(!a.opts.fileSystemHandle)throw new Error("opts.fileSystemHandle is required");return r.mount.apply(null,arguments)},syncfs:async(a,s,o)=>{try{let u=i.getLocalSet(a),h=await i.getRemoteSet(a),d=s?h:u,p=s?u:h;await i.reconcile(a,d,p),o(null)}catch(u){o(u)}},getLocalSet:a=>{let s=Object.create(null);function o(d){return d!=="."&&d!==".."}Se(o,"isRealDir");function u(d){return p=>n.join2(d,p)}Se(u,"toAbsolute");let h=e.readdir(a.mountpoint).filter(o).map(u(a.mountpoint));for(;h.length;){let d=h.pop(),p=e.stat(d);e.isDir(p.mode)&&h.push.apply(h,e.readdir(d).filter(o).map(u(d))),s[d]={timestamp:p.mtime,mode:p.mode}}return{type:"local",entries:s}},getRemoteSet:async a=>{let s=Object.create(null),o=await vl(a.opts.fileSystemHandle);for(let[u,h]of o)u!=="."&&(s[n.join2(a.mountpoint,u)]={timestamp:h.kind==="file"?(await h.getFile()).lastModifiedDate:new Date,mode:h.kind==="file"?i.FILE_MODE:i.DIR_MODE});return{type:"remote",entries:s,handles:o}},loadLocalEntry:a=>{let s=e.lookupPath(a).node,o=e.stat(a);if(e.isDir(o.mode))return{timestamp:o.mtime,mode:o.mode};if(e.isFile(o.mode))return s.contents=r.getFileDataAsTypedArray(s),{timestamp:o.mtime,mode:o.mode,contents:s.contents};throw new Error("node type not supported")},storeLocalEntry:(a,s)=>{if(e.isDir(s.mode))e.mkdirTree(a,s.mode);else if(e.isFile(s.mode))e.writeFile(a,s.contents,{canOwn:!0});else throw new Error("node type not supported");e.chmod(a,s.mode),e.utime(a,s.timestamp,s.timestamp)},removeLocalEntry:a=>{var s=e.stat(a);e.isDir(s.mode)?e.rmdir(a):e.isFile(s.mode)&&e.unlink(a)},loadRemoteEntry:async a=>{if(a.kind==="file"){let s=await a.getFile();return{contents:new Uint8Array(await s.arrayBuffer()),mode:i.FILE_MODE,timestamp:s.lastModifiedDate}}else{if(a.kind==="directory")return{mode:i.DIR_MODE,timestamp:new Date};throw new Error("unknown kind: "+a.kind)}},storeRemoteEntry:async(a,s,o)=>{let u=a.get(n.dirname(s)),h=e.isFile(o.mode)?await u.getFileHandle(n.basename(s),{create:!0}):await u.getDirectoryHandle(n.basename(s),{create:!0});if(h.kind==="file"){let d=await h.createWritable();await d.write(o.contents),await d.close()}a.set(s,h)},removeRemoteEntry:async(a,s)=>{await a.get(n.dirname(s)).removeEntry(n.basename(s)),a.delete(s)},reconcile:async(a,s,o)=>{let u=0,h=[];Object.keys(s.entries).forEach(function(b){let f=s.entries[b],z=o.entries[b];(!z||e.isFile(f.mode)&&f.timestamp.getTime()>z.timestamp.getTime())&&(h.push(b),u++)}),h.sort();let d=[];if(Object.keys(o.entries).forEach(function(b){s.entries[b]||(d.push(b),u++)}),d.sort().reverse(),!u)return;let p=s.type==="remote"?s.handles:o.handles;for(let b of h){let f=n.normalize(b.replace(a.mountpoint,"/")).substring(1);if(o.type==="local"){let z=p.get(f),E=await i.loadRemoteEntry(z);i.storeLocalEntry(b,E)}else{let z=i.loadLocalEntry(b);await i.storeRemoteEntry(p,f,z)}}for(let b of d)if(o.type==="local")i.removeLocalEntry(b);else{let f=n.normalize(b.replace(a.mountpoint,"/")).substring(1);await i.removeRemoteEntry(p,f)}}};t.FS.filesystems.NATIVEFS_ASYNC=i}Se(Ja,"initializeNativeFS");var vl=Se(async t=>{let e=[];async function r(i){for await(let a of i.values())e.push(a),a.kind==="directory"&&await r(a)}Se(r,"collect"),await r(t);let n=new Map;n.set(".",t);for(let i of e){let a=(await t.resolve(i)).join("/");n.set(a,i)}return n},"getFsHandles");function Qa(t){let e={noImageDecoding:!0,noAudioDecoding:!0,noWasmDecoding:!1,preRun:i0(t),quit(r,n){throw e.exited={status:r,toThrow:n},n},print:t.stdout,printErr:t.stderr,arguments:t.args,API:{config:t},locateFile:r=>t.indexURL+r,instantiateWasm:a0(t.indexURL)};return e}Se(Qa,"createSettings");function e0(t){return function(e){let r="/";try{e.FS.mkdirTree(t)}catch(n){console.error(`Error occurred while making a home directory '${t}':`),console.error(n),console.error(`Using '${r}' for a home directory instead`),t=r}e.FS.chdir(t)}}Se(e0,"createHomeDirectory");function t0(t){return function(e){Object.assign(e.ENV,t)}}Se(t0,"setEnvironment");function r0(t){return e=>{for(let r of t)e.FS.mkdirTree(r),e.FS.mount(e.FS.filesystems.NODEFS,{root:r},r)}}Se(r0,"mountLocalDirectories");function n0(t){let e=Xa(t);return r=>{let n=r._py_version_major(),i=r._py_version_minor();r.FS.mkdirTree("/lib"),r.FS.mkdirTree(`/lib/python${n}.${i}/site-packages`),r.addRunDependency("install-stdlib"),e.then(a=>{r.FS.writeFile(`/lib/python${n}${i}.zip`,a)}).catch(a=>{console.error("Error occurred while installing the standard library:"),console.error(a)}).finally(()=>{r.removeRunDependency("install-stdlib")})}}Se(n0,"installStdlib");function i0(t){let e;return t.stdLibURL!=null?e=t.stdLibURL:e=t.indexURL+"python_stdlib.zip",[n0(e),e0(t.env.HOME),t0(t.env),r0(t._node_mounts),Ja]}Se(i0,"getFileSystemInitializationFuncs");function a0(t){let{binary:e,response:r}=wn(t+"pyodide.asm.wasm");return function(n,i){return async function(){try{let a;r?a=await WebAssembly.instantiateStreaming(r,n):a=await WebAssembly.instantiate(await e,n);let{instance:s,module:o}=a;typeof WasmOffsetConverter<"u"&&(wasmOffsetConverter=new WasmOffsetConverter(wasmBinary,o)),i(s,o)}catch(a){console.warn("wasm instantiation failed!"),console.warn(a)}}(),{}}}Se(a0,"getInstantiateWasmFunc");var s0="0.26.4";async function o0(t={}){var e,r;await di();let n=t.indexURL||await Za();n=mi(n),n.endsWith("/")||(n+="/"),t.indexURL=n;let i={fullStdLib:!1,jsglobals:globalThis,stdin:globalThis.prompt?globalThis.prompt:void 0,lockFileURL:n+"pyodide-lock.json",args:[],_node_mounts:[],env:{},packageCacheDir:n,packages:[],enableRunUntilComplete:!1,checkAPIVersion:!0},a=Object.assign(i,t);(e=a.env).HOME??(e.HOME="/home/pyodide"),(r=a.env).PYTHONINSPECT??(r.PYTHONINSPECT="1");let s=Qa(a),o=s.API;if(o.lockFilePromise=Ya(a.lockFileURL),typeof _createPyodideModule!="function"){let b=`${a.indexURL}pyodide.asm.js`;await xn(b)}let u;if(t._loadSnapshot){let b=await t._loadSnapshot;ArrayBuffer.isView(b)?u=b:u=new Uint8Array(b),s.noInitialRun=!0,s.INITIAL_MEMORY=u.length}let h=await _createPyodideModule(s);if(s.exited)throw s.exited.toThrow;if(t.pyproxyToStringRepr&&o.setPyProxyToStringMethod(!0),o.version!==s0&&a.checkAPIVersion)throw new Error(`Pyodide version does not match: '${s0}' <==> '${o.version}'. If you updated the Pyodide version, make sure you also updated the 'indexURL' parameter passed to loadPyodide.`);h.locateFile=b=>{throw new Error("Didn't expect to load any more file_packager files!")};let d;u&&(d=o.restoreSnapshot(u));let p=o.finalizeBootstrap(d);return o.sys.path.insert(0,o.config.env.HOME),p.version.includes("dev")||o.setCdnUrl(`https://cdn.jsdelivr.net/pyodide/v${p.version}/full/`),o._pyodide.set_excepthook(),await o.packageIndexReady,o.initializeStreams(a.stdin,a.stdout,a.stderr),p}Se(o0,"loadPyodide");var Qe=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},ot={searchParams:"URLSearchParams"in Qe,iterable:"Symbol"in Qe&&"iterator"in Symbol,blob:"FileReader"in Qe&&"Blob"in Qe&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in Qe,arrayBuffer:"ArrayBuffer"in Qe};function yl(t){return t&&DataView.prototype.isPrototypeOf(t)}if(ot.arrayBuffer)var wl=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],xl=ArrayBuffer.isView||function(t){return t&&wl.indexOf(Object.prototype.toString.call(t))>-1};function Gr(t){if(typeof t!="string"&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||t==="")throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function fi(t){return typeof t!="string"&&(t=String(t)),t}function gi(t){var e={next:function(){var r=t.shift();return{done:r===void 0,value:r}}};return ot.iterable&&(e[Symbol.iterator]=function(){return e}),e}function Xe(t){this.map={},t instanceof Xe?t.forEach(function(e,r){this.append(r,e)},this):Array.isArray(t)?t.forEach(function(e){if(e.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}Xe.prototype.append=function(t,e){t=Gr(t),e=fi(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},Xe.prototype.delete=function(t){delete this.map[Gr(t)]},Xe.prototype.get=function(t){return t=Gr(t),this.has(t)?this.map[t]:null},Xe.prototype.has=function(t){return this.map.hasOwnProperty(Gr(t))},Xe.prototype.set=function(t,e){this.map[Gr(t)]=fi(e)},Xe.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},Xe.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),gi(t)},Xe.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),gi(t)},Xe.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),gi(t)},ot.iterable&&(Xe.prototype[Symbol.iterator]=Xe.prototype.entries);function bi(t){if(!t._noBody){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}}function l0(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function kl(t){var e=new FileReader,r=l0(e);return e.readAsArrayBuffer(t),r}function Sl(t){var e=new FileReader,r=l0(e),n=/charset=([A-Za-z0-9_-]+)/.exec(t.type),i=n?n[1]:"utf-8";return e.readAsText(t,i),r}function zl(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}function u0(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function c0(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?typeof t=="string"?this._bodyText=t:ot.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:ot.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:ot.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():ot.arrayBuffer&&ot.blob&&yl(t)?(this._bodyArrayBuffer=u0(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ot.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||xl(t))?this._bodyArrayBuffer=u0(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof t=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ot.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},ot.blob&&(this.blob=function(){var t=bi(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=bi(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(ot.blob)return this.blob().then(kl);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var t=bi(this);if(t)return t;if(this._bodyBlob)return Sl(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(zl(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},ot.formData&&(this.formData=function(){return this.text().then(Al)}),this.json=function(){return this.text().then(JSON.parse)},this}var El=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Tl(t){var e=t.toUpperCase();return El.indexOf(e)>-1?e:t}function _r(t,e){if(!(this instanceof _r))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{};var r=e.body;if(t instanceof _r){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new Xe(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,!r&&t._bodyInit!=null&&(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new Xe(e.headers)),this.method=Tl(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in Qe){var a=new AbortController;return a.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),(this.method==="GET"||this.method==="HEAD")&&(e.cache==="no-store"||e.cache==="no-cache")){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_r.prototype.clone=function(){return new _r(this,{body:this._bodyInit})};function Al(t){var e=new FormData;return t.trim().split("&").forEach(function(r){if(r){var n=r.split("="),i=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(a))}}),e}function Ml(t){var e=new Xe,r=t.replace(/\r?\n[\t ]+/g," ");return r.split("\r").map(function(n){return n.indexOf(`
4
4
  `)===0?n.substr(1,n.length):n}).forEach(function(n){var i=n.split(":"),a=i.shift().trim();if(a){var s=i.join(":").trim();try{e.append(a,s)}catch(o){console.warn("Response "+o.message)}}}),e}c0.call(_r.prototype);function Dt(t,e){if(!(this instanceof Dt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=e.status===void 0?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText===void 0?"":""+e.statusText,this.headers=new Xe(e.headers),this.url=e.url||"",this._initBody(t)}c0.call(Dt.prototype),Dt.prototype.clone=function(){return new Dt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Xe(this.headers),url:this.url})},Dt.error=function(){var t=new Dt(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var Cl=[301,302,303,307,308];Dt.redirect=function(t,e){if(Cl.indexOf(e)===-1)throw new RangeError("Invalid status code");return new Dt(null,{status:e,headers:{location:t}})};var Nr=Qe.DOMException;try{new Nr}catch{Nr=function(e,r){this.message=e,this.name=r;var n=Error(e);this.stack=n.stack},Nr.prototype=Object.create(Error.prototype),Nr.prototype.constructor=Nr}function h0(t,e){return new Promise(function(r,n){var i=new _r(t,e);if(i.signal&&i.signal.aborted)return n(new Nr("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var h={statusText:a.statusText,headers:Ml(a.getAllResponseHeaders()||"")};i.url.indexOf("file://")===0&&(a.status<200||a.status>599)?h.status=200:h.status=a.status,h.url="responseURL"in a?a.responseURL:h.headers.get("X-Request-URL");var d="response"in a?a.response:a.responseText;setTimeout(function(){r(new Dt(d,h))},0)},a.onerror=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){n(new TypeError("Network request timed out"))},0)},a.onabort=function(){setTimeout(function(){n(new Nr("Aborted","AbortError"))},0)};function o(h){try{return h===""&&Qe.location.href?Qe.location.href:h}catch{return h}}if(a.open(i.method,o(i.url),!0),i.credentials==="include"?a.withCredentials=!0:i.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&(ot.blob?a.responseType="blob":ot.arrayBuffer&&(a.responseType="arraybuffer")),e&&typeof e.headers=="object"&&!(e.headers instanceof Xe||Qe.Headers&&e.headers instanceof Qe.Headers)){var u=[];Object.getOwnPropertyNames(e.headers).forEach(function(h){u.push(Gr(h)),a.setRequestHeader(h,fi(e.headers[h]))}),i.headers.forEach(function(h,d){u.indexOf(d)===-1&&a.setRequestHeader(d,h)})}else i.headers.forEach(function(h,d){a.setRequestHeader(d,h)});i.signal&&(i.signal.addEventListener("abort",s),a.onreadystatechange=function(){a.readyState===4&&i.signal.removeEventListener("abort",s)}),a.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}h0.polyfill=!0,Qe.fetch||(Qe.fetch=h0,Qe.Headers=Xe,Qe.Request=_r,Qe.Response=Dt);class _l extends Error{constructor(e="Unexpected end of stream"){super(e)}}function cr(t,e,r,n){return n?new Promise((i,a)=>{const s=t.animate(e,r),o=()=>{s.pause()};n.addListener(o),s.onfinish=()=>{n.removeListener(o),i()},s.oncancel=()=>{a(new bn)}}):new Promise(i=>{const a=t.animate(e,r);a.onfinish=i})}var Ft=(t=>(t.Primary="btn-primary",t.Secondary="btn-secondary",t.Tertiary="btn-tertiary",t.Badge="btn-badge",t.CTA="btn-cta",t.Destructive="btn-destructive",t))(Ft||{}),$r=(t=>(t.Small="btn-sm",t.Medium="btn-md",t.Large="btn-lg",t.ExtraLarge="btn-xl",t))($r||{});function tn({as:t="button",type:e,variant:r="btn-primary",size:n="btn-lg",...i},a){const s=_(t,{...i},a);return t==="button"&&(s.type=e||"button"),s.classList.add("btn"),r&&s.classList.add(r),n&&s.classList.add(n),s}class d0{constructor(e,r,n){this.llmFunctionId=e,this.operationId=r,this.conversationMessage=n}async postResultAsync(e){const r=await this.conversationMessage.chat.fetch(this.conversationMessage.chat.url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:en.OperationResult,operationId:this.operationId,operationResult:e})});if(!r.ok)throw new Error(`Failed to post the result for the operation with id ${this.operationId} that was called from the LLM function with id ${this.llmFunctionId} because the server responded with ${r.status} ${r.statusText}`)}async postErrorAsync(e){const r=await this.conversationMessage.chat.fetch(this.conversationMessage.chat.url,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:en.OperationError,operationId:this.operationId,operationError:e})});if(!r.ok)throw new Error(`Failed to post the error for the operation with id ${this.operationId} that was called from the LLM function with id ${this.llmFunctionId} because the server responded with ${r.status} ${r.statusText}`)}}const Nl={};function Bl(t,e){const r=Nl,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return m0(t,n,i)}function m0(t,e,r){if(Rl(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return p0(t.children,e,r)}return Array.isArray(t)?p0(t,e,r):""}function p0(t,e,r){const n=[];let i=-1;for(;++i<t.length;)n[i]=m0(t[i],e,r);return n.join("")}function Rl(t){return!!(t&&typeof t=="object")}const f0=document.createElement("i");function vi(t){const e="&"+t+";";f0.innerHTML=e;const r=f0.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===e?!1:r}function Pt(t,e,r,n){const i=t.length;let a=0,s;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(e,r),t.splice(...s);else for(r&&t.splice(e,r);a<n.length;)s=n.slice(a,a+1e4),s.unshift(e,0),t.splice(...s),a+=1e4,e+=1e4}function St(t,e){return t.length>0?(Pt(t,t.length,0,e),t):e}const g0={}.hasOwnProperty;function Il(t){const e={};let r=-1;for(;++r<t.length;)Ol(e,t[r]);return e}function Ol(t,e){let r;for(r in e){const i=(g0.call(t,r)?t[r]:void 0)||(t[r]={}),a=e[r];let s;if(a)for(s in a){g0.call(i,s)||(i[s]=[]);const o=a[s];Ll(i[s],Array.isArray(o)?o:o?[o]:[])}}}function Ll(t,e){let r=-1;const n=[];for(;++r<e.length;)(e[r].add==="after"?t:n).push(e[r]);Pt(t,0,0,n)}function b0(t,e){const r=Number.parseInt(t,e);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Wr(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const qt=hr(/[A-Za-z]/),Nt=hr(/[\dA-Za-z]/),Dl=hr(/[#-'*+\--9=?A-Z^-~]/);function yi(t){return t!==null&&(t<32||t===127)}const wi=hr(/\d/),Fl=hr(/[\dA-Fa-f]/),Pl=hr(/[!-/:-@[-`{-~]/);function re(t){return t!==null&&t<-2}function nt(t){return t!==null&&(t<0||t===32)}function we(t){return t===-2||t===-1||t===32}const ql=hr(new RegExp("\\p{P}|\\p{S}","u")),Ul=hr(/\s/);function hr(t){return e;function e(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function xe(t,e,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return we(u)?(t.enter(r),o(u)):e(u)}function o(u){return we(u)&&a++<i?(t.consume(u),o):(t.exit(r),e(u))}}const Hl={tokenize:Gl};function Gl(t){const e=t.attempt(this.parser.constructs.contentInitial,n,i);let r;return e;function n(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),xe(t,e,"linePrefix")}function i(o){return t.enter("paragraph"),a(o)}function a(o){const u=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,s(o)}function s(o){if(o===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(o);return}return re(o)?(t.consume(o),t.exit("chunkText"),a):(t.consume(o),s)}}const $l={tokenize:Wl},v0={tokenize:jl};function Wl(t){const e=this,r=[];let n=0,i,a,s;return o;function o(I){if(n<r.length){const Y=r[n];return e.containerState=Y[1],t.attempt(Y[0].continuation,u,h)(I)}return h(I)}function u(I){if(n++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&N();const Y=e.events.length;let G=Y,C;for(;G--;)if(e.events[G][0]==="exit"&&e.events[G][1].type==="chunkFlow"){C=e.events[G][1].end;break}A(n);let V=Y;for(;V<e.events.length;)e.events[V][1].end=Object.assign({},C),V++;return Pt(e.events,G+1,0,e.events.slice(Y)),e.events.length=V,h(I)}return o(I)}function h(I){if(n===r.length){if(!i)return b(I);if(i.currentConstruct&&i.currentConstruct.concrete)return z(I);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(v0,d,p)(I)}function d(I){return i&&N(),A(n),b(I)}function p(I){return e.parser.lazy[e.now().line]=n!==r.length,s=e.now().offset,z(I)}function b(I){return e.containerState={},t.attempt(v0,f,z)(I)}function f(I){return n++,r.push([e.currentConstruct,e.containerState]),b(I)}function z(I){if(I===null){i&&N(),A(0),t.consume(I);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),E(I)}function E(I){if(I===null){O(t.exit("chunkFlow"),!0),A(0),t.consume(I);return}return re(I)?(t.consume(I),O(t.exit("chunkFlow")),n=0,e.interrupt=void 0,o):(t.consume(I),E)}function O(I,Y){const G=e.sliceStream(I);if(Y&&G.push(null),I.previous=a,a&&(a.next=I),a=I,i.defineSkip(I.start),i.write(G),e.parser.lazy[I.start.line]){let C=i.events.length;for(;C--;)if(i.events[C][1].start.offset<s&&(!i.events[C][1].end||i.events[C][1].end.offset>s))return;const V=e.events.length;let ee=V,j,M;for(;ee--;)if(e.events[ee][0]==="exit"&&e.events[ee][1].type==="chunkFlow"){if(j){M=e.events[ee][1].end;break}j=!0}for(A(n),C=V;C<e.events.length;)e.events[C][1].end=Object.assign({},M),C++;Pt(e.events,ee+1,0,e.events.slice(V)),e.events.length=C}}function A(I){let Y=r.length;for(;Y-- >I;){const G=r[Y];e.containerState=G[1],G[0].exit.call(e,t)}r.length=I}function N(){i.write([null]),a=void 0,i=void 0,e.containerState._closeFlow=void 0}}function jl(t,e,r){return xe(t,t.attempt(this.parser.constructs.document,e,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function y0(t){if(t===null||nt(t)||Ul(t))return 1;if(ql(t))return 2}function xi(t,e,r){const n=[];let i=-1;for(;++i<t.length;){const a=t[i].resolveAll;a&&!n.includes(a)&&(e=a(e,r),n.push(a))}return e}const ki={name:"attention",tokenize:Xl,resolveAll:Vl};function Vl(t,e){let r=-1,n,i,a,s,o,u,h,d;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(n=r;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[n][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;u=t[n][1].end.offset-t[n][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const p=Object.assign({},t[n][1].end),b=Object.assign({},t[r][1].start);w0(p,-u),w0(b,u),s={type:u>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},t[n][1].end)},o={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[r][1].start),end:b},a={type:u>1?"strongText":"emphasisText",start:Object.assign({},t[n][1].end),end:Object.assign({},t[r][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},t[n][1].end=Object.assign({},s.start),t[r][1].start=Object.assign({},o.end),h=[],t[n][1].end.offset-t[n][1].start.offset&&(h=St(h,[["enter",t[n][1],e],["exit",t[n][1],e]])),h=St(h,[["enter",i,e],["enter",s,e],["exit",s,e],["enter",a,e]]),h=St(h,xi(e.parser.constructs.insideSpan.null,t.slice(n+1,r),e)),h=St(h,[["exit",a,e],["enter",o,e],["exit",o,e],["exit",i,e]]),t[r][1].end.offset-t[r][1].start.offset?(d=2,h=St(h,[["enter",t[r][1],e],["exit",t[r][1],e]])):d=0,Pt(t,n-1,r-n+3,h),r=n+h.length-d-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function Xl(t,e){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=y0(n);let a;return s;function s(u){return a=u,t.enter("attentionSequence"),o(u)}function o(u){if(u===a)return t.consume(u),o;const h=t.exit("attentionSequence"),d=y0(u),p=!d||d===2&&i||r.includes(u),b=!i||i===2&&d||r.includes(n);return h._open=!!(a===42?p:p&&(i||!b)),h._close=!!(a===42?b:b&&(d||!p)),e(u)}}function w0(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const Kl={name:"autolink",tokenize:Yl};function Yl(t,e,r){let n=0;return i;function i(f){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(f),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(f){return qt(f)?(t.consume(f),s):h(f)}function s(f){return f===43||f===45||f===46||Nt(f)?(n=1,o(f)):h(f)}function o(f){return f===58?(t.consume(f),n=0,u):(f===43||f===45||f===46||Nt(f))&&n++<32?(t.consume(f),o):(n=0,h(f))}function u(f){return f===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(f),t.exit("autolinkMarker"),t.exit("autolink"),e):f===null||f===32||f===60||yi(f)?r(f):(t.consume(f),u)}function h(f){return f===64?(t.consume(f),d):Dl(f)?(t.consume(f),h):r(f)}function d(f){return Nt(f)?p(f):r(f)}function p(f){return f===46?(t.consume(f),n=0,d):f===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(f),t.exit("autolinkMarker"),t.exit("autolink"),e):b(f)}function b(f){if((f===45||Nt(f))&&n++<63){const z=f===45?b:p;return t.consume(f),z}return r(f)}}const kn={tokenize:Zl,partial:!0};function Zl(t,e,r){return n;function n(a){return we(a)?xe(t,i,"linePrefix")(a):i(a)}function i(a){return a===null||re(a)?e(a):r(a)}}const x0={name:"blockQuote",tokenize:Jl,continuation:{tokenize:Ql},exit:e1};function Jl(t,e,r){const n=this;return i;function i(s){if(s===62){const o=n.containerState;return o.open||(t.enter("blockQuote",{_container:!0}),o.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(s),t.exit("blockQuoteMarker"),a}return r(s)}function a(s){return we(s)?(t.enter("blockQuotePrefixWhitespace"),t.consume(s),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(s))}}function Ql(t,e,r){const n=this;return i;function i(s){return we(s)?xe(t,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return t.attempt(x0,e,r)(s)}}function e1(t){t.exit("blockQuote")}const k0={name:"characterEscape",tokenize:t1};function t1(t,e,r){return n;function n(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),i}function i(a){return Pl(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):r(a)}}const S0={name:"characterReference",tokenize:r1};function r1(t,e,r){const n=this;let i=0,a,s;return o;function o(p){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),u}function u(p){return p===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(p),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),a=31,s=Nt,d(p))}function h(p){return p===88||p===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(p),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,s=Fl,d):(t.enter("characterReferenceValue"),a=7,s=wi,d(p))}function d(p){if(p===59&&i){const b=t.exit("characterReferenceValue");return s===Nt&&!vi(n.sliceSerialize(b))?r(p):(t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return s(p)&&i++<a?(t.consume(p),d):r(p)}}const z0={tokenize:i1,partial:!0},E0={name:"codeFenced",tokenize:n1,concrete:!0};function n1(t,e,r){const n=this,i={tokenize:G,partial:!0};let a=0,s=0,o;return u;function u(C){return h(C)}function h(C){const V=n.events[n.events.length-1];return a=V&&V[1].type==="linePrefix"?V[2].sliceSerialize(V[1],!0).length:0,o=C,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),d(C)}function d(C){return C===o?(s++,t.consume(C),d):s<3?r(C):(t.exit("codeFencedFenceSequence"),we(C)?xe(t,p,"whitespace")(C):p(C))}function p(C){return C===null||re(C)?(t.exit("codeFencedFence"),n.interrupt?e(C):t.check(z0,E,Y)(C)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),b(C))}function b(C){return C===null||re(C)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),p(C)):we(C)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),xe(t,f,"whitespace")(C)):C===96&&C===o?r(C):(t.consume(C),b)}function f(C){return C===null||re(C)?p(C):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),z(C))}function z(C){return C===null||re(C)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),p(C)):C===96&&C===o?r(C):(t.consume(C),z)}function E(C){return t.attempt(i,Y,O)(C)}function O(C){return t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),A}function A(C){return a>0&&we(C)?xe(t,N,"linePrefix",a+1)(C):N(C)}function N(C){return C===null||re(C)?t.check(z0,E,Y)(C):(t.enter("codeFlowValue"),I(C))}function I(C){return C===null||re(C)?(t.exit("codeFlowValue"),N(C)):(t.consume(C),I)}function Y(C){return t.exit("codeFenced"),e(C)}function G(C,V,ee){let j=0;return M;function M(le){return C.enter("lineEnding"),C.consume(le),C.exit("lineEnding"),W}function W(le){return C.enter("codeFencedFence"),we(le)?xe(C,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(le):$(le)}function $(le){return le===o?(C.enter("codeFencedFenceSequence"),be(le)):ee(le)}function be(le){return le===o?(j++,C.consume(le),be):j>=s?(C.exit("codeFencedFenceSequence"),we(le)?xe(C,he,"whitespace")(le):he(le)):ee(le)}function he(le){return le===null||re(le)?(C.exit("codeFencedFence"),V(le)):ee(le)}}}function i1(t,e,r){const n=this;return i;function i(s){return s===null?r(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):e(s)}}const Si={name:"codeIndented",tokenize:s1},a1={tokenize:o1,partial:!0};function s1(t,e,r){const n=this;return i;function i(h){return t.enter("codeIndented"),xe(t,a,"linePrefix",5)(h)}function a(h){const d=n.events[n.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(h):r(h)}function s(h){return h===null?u(h):re(h)?t.attempt(a1,s,u)(h):(t.enter("codeFlowValue"),o(h))}function o(h){return h===null||re(h)?(t.exit("codeFlowValue"),s(h)):(t.consume(h),o)}function u(h){return t.exit("codeIndented"),e(h)}}function o1(t,e,r){const n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):re(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),i):xe(t,a,"linePrefix",5)(s)}function a(s){const o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(s):re(s)?i(s):r(s)}}const l1={name:"codeText",tokenize:h1,resolve:u1,previous:c1};function u1(t){let e=t.length-4,r=3,n,i;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(n=r;++n<e;)if(t[n][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[e][1].type="codeTextPadding",r+=2,e-=2;break}}for(n=r-1,e++;++n<=e;)i===void 0?n!==e&&t[n][1].type!=="lineEnding"&&(i=n):(n===e||t[n][1].type==="lineEnding")&&(t[i][1].type="codeTextData",n!==i+2&&(t[i][1].end=t[n-1][1].end,t.splice(i+2,n-i-2),e-=n-i-2,n=i+2),i=void 0);return t}function c1(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function h1(t,e,r){let n=0,i,a;return s;function s(p){return t.enter("codeText"),t.enter("codeTextSequence"),o(p)}function o(p){return p===96?(t.consume(p),n++,o):(t.exit("codeTextSequence"),u(p))}function u(p){return p===null?r(p):p===32?(t.enter("space"),t.consume(p),t.exit("space"),u):p===96?(a=t.enter("codeTextSequence"),i=0,d(p)):re(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),u):(t.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||re(p)?(t.exit("codeTextData"),u(p)):(t.consume(p),h)}function d(p){return p===96?(t.consume(p),i++,d):i===n?(t.exit("codeTextSequence"),t.exit("codeText"),e(p)):(a.type="codeTextData",h(p))}}function T0(t){const e={};let r=-1,n,i,a,s,o,u,h;for(;++r<t.length;){for(;r in e;)r=e[r];if(n=t[r],r&&n[1].type==="chunkFlow"&&t[r-1][1].type==="listItemPrefix"&&(u=n[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(e,d1(t,r)),r=e[r],h=!0);else if(n[1]._container){for(a=r,i=void 0;a--&&(s=t[a],s[1].type==="lineEnding"||s[1].type==="lineEndingBlank");)s[0]==="enter"&&(i&&(t[i][1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);i&&(n[1].end=Object.assign({},t[i][1].start),o=t.slice(i,r),o.unshift(n),Pt(t,i,r-i+1,o))}}return!h}function d1(t,e){const r=t[e][1],n=t[e][2];let i=e-1;const a=[],s=r._tokenizer||n.parser[r.contentType](r.start),o=s.events,u=[],h={};let d,p,b=-1,f=r,z=0,E=0;const O=[E];for(;f;){for(;t[++i][1]!==f;);a.push(i),f._tokenizer||(d=n.sliceStream(f),f.next||d.push(null),p&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),p=f,f=f.next}for(f=r;++b<o.length;)o[b][0]==="exit"&&o[b-1][0]==="enter"&&o[b][1].type===o[b-1][1].type&&o[b][1].start.line!==o[b][1].end.line&&(E=b+1,O.push(E),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):O.pop(),b=O.length;b--;){const A=o.slice(O[b],O[b+1]),N=a.pop();u.unshift([N,N+A.length-1]),Pt(t,N,2,A)}for(b=-1;++b<u.length;)h[z+u[b][0]]=z+u[b][1],z+=u[b][1]-u[b][0]-1;return h}const m1={tokenize:g1,resolve:f1},p1={tokenize:b1,partial:!0};function f1(t){return T0(t),t}function g1(t,e){let r;return n;function n(o){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):re(o)?t.check(p1,s,a)(o):(t.consume(o),i)}function a(o){return t.exit("chunkContent"),t.exit("content"),e(o)}function s(o){return t.consume(o),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function b1(t,e,r){const n=this;return i;function i(s){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),xe(t,a,"linePrefix")}function a(s){if(s===null||re(s))return r(s);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(s):t.interrupt(n.parser.constructs.flow,r,e)(s)}}function A0(t,e,r,n,i,a,s,o,u){const h=u||Number.POSITIVE_INFINITY;let d=0;return p;function p(A){return A===60?(t.enter(n),t.enter(i),t.enter(a),t.consume(A),t.exit(a),b):A===null||A===32||A===41||yi(A)?r(A):(t.enter(n),t.enter(s),t.enter(o),t.enter("chunkString",{contentType:"string"}),E(A))}function b(A){return A===62?(t.enter(a),t.consume(A),t.exit(a),t.exit(i),t.exit(n),e):(t.enter(o),t.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===62?(t.exit("chunkString"),t.exit(o),b(A)):A===null||A===60||re(A)?r(A):(t.consume(A),A===92?z:f)}function z(A){return A===60||A===62||A===92?(t.consume(A),f):f(A)}function E(A){return!d&&(A===null||A===41||nt(A))?(t.exit("chunkString"),t.exit(o),t.exit(s),t.exit(n),e(A)):d<h&&A===40?(t.consume(A),d++,E):A===41?(t.consume(A),d--,E):A===null||A===32||A===40||yi(A)?r(A):(t.consume(A),A===92?O:E)}function O(A){return A===40||A===41||A===92?(t.consume(A),E):E(A)}}function M0(t,e,r,n,i,a){const s=this;let o=0,u;return h;function h(f){return t.enter(n),t.enter(i),t.consume(f),t.exit(i),t.enter(a),d}function d(f){return o>999||f===null||f===91||f===93&&!u||f===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(f):f===93?(t.exit(a),t.enter(i),t.consume(f),t.exit(i),t.exit(n),e):re(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),d):(t.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===null||f===91||f===93||re(f)||o++>999?(t.exit("chunkString"),d(f)):(t.consume(f),u||(u=!we(f)),f===92?b:p)}function b(f){return f===91||f===92||f===93?(t.consume(f),o++,p):p(f)}}function C0(t,e,r,n,i,a){let s;return o;function o(b){return b===34||b===39||b===40?(t.enter(n),t.enter(i),t.consume(b),t.exit(i),s=b===40?41:b,u):r(b)}function u(b){return b===s?(t.enter(i),t.consume(b),t.exit(i),t.exit(n),e):(t.enter(a),h(b))}function h(b){return b===s?(t.exit(a),u(s)):b===null?r(b):re(b)?(t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),xe(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===s||b===null||re(b)?(t.exit("chunkString"),h(b)):(t.consume(b),b===92?p:d)}function p(b){return b===s||b===92?(t.consume(b),d):d(b)}}function rn(t,e){let r;return n;function n(i){return re(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),r=!0,n):we(i)?xe(t,n,r?"linePrefix":"lineSuffix")(i):e(i)}}const v1={name:"definition",tokenize:w1},y1={tokenize:x1,partial:!0};function w1(t,e,r){const n=this;let i;return a;function a(f){return t.enter("definition"),s(f)}function s(f){return M0.call(n,t,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return i=Wr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),f===58?(t.enter("definitionMarker"),t.consume(f),t.exit("definitionMarker"),u):r(f)}function u(f){return nt(f)?rn(t,h)(f):h(f)}function h(f){return A0(t,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function d(f){return t.attempt(y1,p,p)(f)}function p(f){return we(f)?xe(t,b,"whitespace")(f):b(f)}function b(f){return f===null||re(f)?(t.exit("definition"),n.parser.defined.push(i),e(f)):r(f)}}function x1(t,e,r){return n;function n(o){return nt(o)?rn(t,i)(o):r(o)}function i(o){return C0(t,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return we(o)?xe(t,s,"whitespace")(o):s(o)}function s(o){return o===null||re(o)?e(o):r(o)}}const k1={name:"hardBreakEscape",tokenize:S1};function S1(t,e,r){return n;function n(a){return t.enter("hardBreakEscape"),t.consume(a),i}function i(a){return re(a)?(t.exit("hardBreakEscape"),e(a)):r(a)}}const z1={name:"headingAtx",tokenize:T1,resolve:E1};function E1(t,e){let r=t.length-2,n=3,i,a;return t[n][1].type==="whitespace"&&(n+=2),r-2>n&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&t[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:t[n][1].start,end:t[r][1].end},a={type:"chunkText",start:t[n][1].start,end:t[r][1].end,contentType:"text"},Pt(t,n,r-n+1,[["enter",i,e],["enter",a,e],["exit",a,e],["exit",i,e]])),t}function T1(t,e,r){let n=0;return i;function i(d){return t.enter("atxHeading"),a(d)}function a(d){return t.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&n++<6?(t.consume(d),s):d===null||nt(d)?(t.exit("atxHeadingSequence"),o(d)):r(d)}function o(d){return d===35?(t.enter("atxHeadingSequence"),u(d)):d===null||re(d)?(t.exit("atxHeading"),e(d)):we(d)?xe(t,o,"whitespace")(d):(t.enter("atxHeadingText"),h(d))}function u(d){return d===35?(t.consume(d),u):(t.exit("atxHeadingSequence"),o(d))}function h(d){return d===null||d===35||nt(d)?(t.exit("atxHeadingText"),o(d)):(t.consume(d),h)}}const A1=["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"],_0=["pre","script","style","textarea"],M1={name:"htmlFlow",tokenize:B1,resolveTo:N1,concrete:!0},C1={tokenize:I1,partial:!0},_1={tokenize:R1,partial:!0};function N1(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function B1(t,e,r){const n=this;let i,a,s,o,u;return h;function h(k){return d(k)}function d(k){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(k),p}function p(k){return k===33?(t.consume(k),b):k===47?(t.consume(k),a=!0,E):k===63?(t.consume(k),i=3,n.interrupt?e:w):qt(k)?(t.consume(k),s=String.fromCharCode(k),O):r(k)}function b(k){return k===45?(t.consume(k),i=2,f):k===91?(t.consume(k),i=5,o=0,z):qt(k)?(t.consume(k),i=4,n.interrupt?e:w):r(k)}function f(k){return k===45?(t.consume(k),n.interrupt?e:w):r(k)}function z(k){const et="CDATA[";return k===et.charCodeAt(o++)?(t.consume(k),o===et.length?n.interrupt?e:$:z):r(k)}function E(k){return qt(k)?(t.consume(k),s=String.fromCharCode(k),O):r(k)}function O(k){if(k===null||k===47||k===62||nt(k)){const et=k===47,it=s.toLowerCase();return!et&&!a&&_0.includes(it)?(i=1,n.interrupt?e(k):$(k)):A1.includes(s.toLowerCase())?(i=6,et?(t.consume(k),A):n.interrupt?e(k):$(k)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(k):a?N(k):I(k))}return k===45||Nt(k)?(t.consume(k),s+=String.fromCharCode(k),O):r(k)}function A(k){return k===62?(t.consume(k),n.interrupt?e:$):r(k)}function N(k){return we(k)?(t.consume(k),N):M(k)}function I(k){return k===47?(t.consume(k),M):k===58||k===95||qt(k)?(t.consume(k),Y):we(k)?(t.consume(k),I):M(k)}function Y(k){return k===45||k===46||k===58||k===95||Nt(k)?(t.consume(k),Y):G(k)}function G(k){return k===61?(t.consume(k),C):we(k)?(t.consume(k),G):I(k)}function C(k){return k===null||k===60||k===61||k===62||k===96?r(k):k===34||k===39?(t.consume(k),u=k,V):we(k)?(t.consume(k),C):ee(k)}function V(k){return k===u?(t.consume(k),u=null,j):k===null||re(k)?r(k):(t.consume(k),V)}function ee(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||nt(k)?G(k):(t.consume(k),ee)}function j(k){return k===47||k===62||we(k)?I(k):r(k)}function M(k){return k===62?(t.consume(k),W):r(k)}function W(k){return k===null||re(k)?$(k):we(k)?(t.consume(k),W):r(k)}function $(k){return k===45&&i===2?(t.consume(k),Ee):k===60&&i===1?(t.consume(k),Ce):k===62&&i===4?(t.consume(k),Te):k===63&&i===3?(t.consume(k),w):k===93&&i===5?(t.consume(k),_e):re(k)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(C1,Ae,be)(k)):k===null||re(k)?(t.exit("htmlFlowData"),be(k)):(t.consume(k),$)}function be(k){return t.check(_1,he,Ae)(k)}function he(k){return t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),le}function le(k){return k===null||re(k)?be(k):(t.enter("htmlFlowData"),$(k))}function Ee(k){return k===45?(t.consume(k),w):$(k)}function Ce(k){return k===47?(t.consume(k),s="",ue):$(k)}function ue(k){if(k===62){const et=s.toLowerCase();return _0.includes(et)?(t.consume(k),Te):$(k)}return qt(k)&&s.length<8?(t.consume(k),s+=String.fromCharCode(k),ue):$(k)}function _e(k){return k===93?(t.consume(k),w):$(k)}function w(k){return k===62?(t.consume(k),Te):k===45&&i===2?(t.consume(k),w):$(k)}function Te(k){return k===null||re(k)?(t.exit("htmlFlowData"),Ae(k)):(t.consume(k),Te)}function Ae(k){return t.exit("htmlFlow"),e(k)}}function R1(t,e,r){const n=this;return i;function i(s){return re(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),a):r(s)}function a(s){return n.parser.lazy[n.now().line]?r(s):e(s)}}function I1(t,e,r){return n;function n(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(kn,e,r)}}const O1={name:"htmlText",tokenize:L1};function L1(t,e,r){const n=this;let i,a,s;return o;function o(w){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(w),u}function u(w){return w===33?(t.consume(w),h):w===47?(t.consume(w),G):w===63?(t.consume(w),I):qt(w)?(t.consume(w),ee):r(w)}function h(w){return w===45?(t.consume(w),d):w===91?(t.consume(w),a=0,z):qt(w)?(t.consume(w),N):r(w)}function d(w){return w===45?(t.consume(w),f):r(w)}function p(w){return w===null?r(w):w===45?(t.consume(w),b):re(w)?(s=p,Ce(w)):(t.consume(w),p)}function b(w){return w===45?(t.consume(w),f):p(w)}function f(w){return w===62?Ee(w):w===45?b(w):p(w)}function z(w){const Te="CDATA[";return w===Te.charCodeAt(a++)?(t.consume(w),a===Te.length?E:z):r(w)}function E(w){return w===null?r(w):w===93?(t.consume(w),O):re(w)?(s=E,Ce(w)):(t.consume(w),E)}function O(w){return w===93?(t.consume(w),A):E(w)}function A(w){return w===62?Ee(w):w===93?(t.consume(w),A):E(w)}function N(w){return w===null||w===62?Ee(w):re(w)?(s=N,Ce(w)):(t.consume(w),N)}function I(w){return w===null?r(w):w===63?(t.consume(w),Y):re(w)?(s=I,Ce(w)):(t.consume(w),I)}function Y(w){return w===62?Ee(w):I(w)}function G(w){return qt(w)?(t.consume(w),C):r(w)}function C(w){return w===45||Nt(w)?(t.consume(w),C):V(w)}function V(w){return re(w)?(s=V,Ce(w)):we(w)?(t.consume(w),V):Ee(w)}function ee(w){return w===45||Nt(w)?(t.consume(w),ee):w===47||w===62||nt(w)?j(w):r(w)}function j(w){return w===47?(t.consume(w),Ee):w===58||w===95||qt(w)?(t.consume(w),M):re(w)?(s=j,Ce(w)):we(w)?(t.consume(w),j):Ee(w)}function M(w){return w===45||w===46||w===58||w===95||Nt(w)?(t.consume(w),M):W(w)}function W(w){return w===61?(t.consume(w),$):re(w)?(s=W,Ce(w)):we(w)?(t.consume(w),W):j(w)}function $(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(t.consume(w),i=w,be):re(w)?(s=$,Ce(w)):we(w)?(t.consume(w),$):(t.consume(w),he)}function be(w){return w===i?(t.consume(w),i=void 0,le):w===null?r(w):re(w)?(s=be,Ce(w)):(t.consume(w),be)}function he(w){return w===null||w===34||w===39||w===60||w===61||w===96?r(w):w===47||w===62||nt(w)?j(w):(t.consume(w),he)}function le(w){return w===47||w===62||nt(w)?j(w):r(w)}function Ee(w){return w===62?(t.consume(w),t.exit("htmlTextData"),t.exit("htmlText"),e):r(w)}function Ce(w){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),ue}function ue(w){return we(w)?xe(t,_e,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):_e(w)}function _e(w){return t.enter("htmlTextData"),s(w)}}const zi={name:"labelEnd",tokenize:H1,resolveTo:U1,resolveAll:q1},D1={tokenize:G1},F1={tokenize:$1},P1={tokenize:W1};function q1(t){let e=-1;for(;++e<t.length;){const r=t[e][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(t.splice(e+1,r.type==="labelImage"?4:2),r.type="data",e++)}return t}function U1(t,e){let r=t.length,n=0,i,a,s,o;for(;r--;)if(i=t[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(t[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);const u={type:t[a][1].type==="labelLink"?"link":"image",start:Object.assign({},t[a][1].start),end:Object.assign({},t[t.length-1][1].end)},h={type:"label",start:Object.assign({},t[a][1].start),end:Object.assign({},t[s][1].end)},d={type:"labelText",start:Object.assign({},t[a+n+2][1].end),end:Object.assign({},t[s-2][1].start)};return o=[["enter",u,e],["enter",h,e]],o=St(o,t.slice(a+1,a+n+3)),o=St(o,[["enter",d,e]]),o=St(o,xi(e.parser.constructs.insideSpan.null,t.slice(a+n+4,s-3),e)),o=St(o,[["exit",d,e],t[s-2],t[s-1],["exit",h,e]]),o=St(o,t.slice(s+1)),o=St(o,[["exit",u,e]]),Pt(t,a,t.length,o),t}function H1(t,e,r){const n=this;let i=n.events.length,a,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return o;function o(b){return a?a._inactive?p(b):(s=n.parser.defined.includes(Wr(n.sliceSerialize({start:a.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(b),t.exit("labelMarker"),t.exit("labelEnd"),u):r(b)}function u(b){return b===40?t.attempt(D1,d,s?d:p)(b):b===91?t.attempt(F1,d,s?h:p)(b):s?d(b):p(b)}function h(b){return t.attempt(P1,d,p)(b)}function d(b){return e(b)}function p(b){return a._balanced=!0,r(b)}}function G1(t,e,r){return n;function n(p){return t.enter("resource"),t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),i}function i(p){return nt(p)?rn(t,a)(p):a(p)}function a(p){return p===41?d(p):A0(t,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function s(p){return nt(p)?rn(t,u)(p):d(p)}function o(p){return r(p)}function u(p){return p===34||p===39||p===40?C0(t,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function h(p){return nt(p)?rn(t,d)(p):d(p)}function d(p){return p===41?(t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),t.exit("resource"),e):r(p)}}function $1(t,e,r){const n=this;return i;function i(o){return M0.call(n,t,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return n.parser.defined.includes(Wr(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?e(o):r(o)}function s(o){return r(o)}}function W1(t,e,r){return n;function n(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),i}function i(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),e):r(a)}}const j1={name:"labelStartImage",tokenize:V1,resolveAll:zi.resolveAll};function V1(t,e,r){const n=this;return i;function i(o){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(o),t.exit("labelImageMarker"),a}function a(o){return o===91?(t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):e(o)}}const X1={name:"labelStartLink",tokenize:K1,resolveAll:zi.resolveAll};function K1(t,e,r){const n=this;return i;function i(s){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):e(s)}}const Ei={name:"lineEnding",tokenize:Y1};function Y1(t,e){return r;function r(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),xe(t,e,"linePrefix")}}const Sn={name:"thematicBreak",tokenize:Z1};function Z1(t,e,r){let n=0,i;return a;function a(h){return t.enter("thematicBreak"),s(h)}function s(h){return i=h,o(h)}function o(h){return h===i?(t.enter("thematicBreakSequence"),u(h)):n>=3&&(h===null||re(h))?(t.exit("thematicBreak"),e(h)):r(h)}function u(h){return h===i?(t.consume(h),n++,u):(t.exit("thematicBreakSequence"),we(h)?xe(t,o,"whitespace")(h):o(h))}}const dt={name:"list",tokenize:eu,continuation:{tokenize:tu},exit:nu},J1={tokenize:iu,partial:!0},Q1={tokenize:ru,partial:!0};function eu(t,e,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(f){const z=n.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(z==="listUnordered"?!n.containerState.marker||f===n.containerState.marker:wi(f)){if(n.containerState.type||(n.containerState.type=z,t.enter(z,{_container:!0})),z==="listUnordered")return t.enter("listItemPrefix"),f===42||f===45?t.check(Sn,r,h)(f):h(f);if(!n.interrupt||f===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),u(f)}return r(f)}function u(f){return wi(f)&&++s<10?(t.consume(f),u):(!n.interrupt||s<2)&&(n.containerState.marker?f===n.containerState.marker:f===41||f===46)?(t.exit("listItemValue"),h(f)):r(f)}function h(f){return t.enter("listItemMarker"),t.consume(f),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||f,t.check(kn,n.interrupt?r:d,t.attempt(J1,b,p))}function d(f){return n.containerState.initialBlankLine=!0,a++,b(f)}function p(f){return we(f)?(t.enter("listItemPrefixWhitespace"),t.consume(f),t.exit("listItemPrefixWhitespace"),b):r(f)}function b(f){return n.containerState.size=a+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(f)}}function tu(t,e,r){const n=this;return n.containerState._closeFlow=void 0,t.check(kn,i,a);function i(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,xe(t,e,"listItemIndent",n.containerState.size+1)(o)}function a(o){return n.containerState.furtherBlankLines||!we(o)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(o)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(Q1,e,s)(o))}function s(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,xe(t,t.attempt(dt,e,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function ru(t,e,r){const n=this;return xe(t,i,"listItemIndent",n.containerState.size+1);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?e(a):r(a)}}function nu(t){t.exit(this.containerState.type)}function iu(t,e,r){const n=this;return xe(t,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=n.events[n.events.length-1];return!we(a)&&s&&s[1].type==="listItemPrefixWhitespace"?e(a):r(a)}}const N0={name:"setextUnderline",tokenize:su,resolveTo:au};function au(t,e){let r=t.length,n,i,a;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){n=r;break}t[r][1].type==="paragraph"&&(i=r)}else t[r][1].type==="content"&&t.splice(r,1),!a&&t[r][1].type==="definition"&&(a=r);const s={type:"setextHeading",start:Object.assign({},t[i][1].start),end:Object.assign({},t[t.length-1][1].end)};return t[i][1].type="setextHeadingText",a?(t.splice(i,0,["enter",s,e]),t.splice(a+1,0,["exit",t[n][1],e]),t[n][1].end=Object.assign({},t[a][1].end)):t[n][1]=s,t.push(["exit",s,e]),t}function su(t,e,r){const n=this;let i;return a;function a(h){let d=n.events.length,p;for(;d--;)if(n.events[d][1].type!=="lineEnding"&&n.events[d][1].type!=="linePrefix"&&n.events[d][1].type!=="content"){p=n.events[d][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||p)?(t.enter("setextHeadingLine"),i=h,s(h)):r(h)}function s(h){return t.enter("setextHeadingLineSequence"),o(h)}function o(h){return h===i?(t.consume(h),o):(t.exit("setextHeadingLineSequence"),we(h)?xe(t,u,"lineSuffix")(h):u(h))}function u(h){return h===null||re(h)?(t.exit("setextHeadingLine"),e(h)):r(h)}}const ou={tokenize:lu};function lu(t){const e=this,r=t.attempt(kn,n,t.attempt(this.parser.constructs.flowInitial,i,xe(t,t.attempt(this.parser.constructs.flow,i,t.attempt(m1,i)),"linePrefix")));return r;function n(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),e.currentConstruct=void 0,r}function i(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),e.currentConstruct=void 0,r}}const uu={resolveAll:R0()},cu=B0("string"),hu=B0("text");function B0(t){return{tokenize:e,resolveAll:R0(t==="text"?du:void 0)};function e(r){const n=this,i=this.parser.constructs[t],a=r.attempt(i,s,o);return s;function s(d){return h(d)?a(d):o(d)}function o(d){if(d===null){r.consume(d);return}return r.enter("data"),r.consume(d),u}function u(d){return h(d)?(r.exit("data"),a(d)):(r.consume(d),u)}function h(d){if(d===null)return!0;const p=i[d];let b=-1;if(p)for(;++b<p.length;){const f=p[b];if(!f.previous||f.previous.call(n,n.previous))return!0}return!1}}}function R0(t){return e;function e(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return t?t(r,n):r}}function du(t,e){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const n=t[r-1][1],i=e.sliceStream(n);let a=i.length,s=-1,o=0,u;for(;a--;){const h=i[a];if(typeof h=="string"){for(s=h.length;h.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(h===-2)u=!0,o++;else if(h!==-1){a++;break}}if(o){const h={type:r===t.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-o,offset:n.end.offset-o,_index:n.start._index+a,_bufferIndex:a?s:n.start._bufferIndex+s},end:Object.assign({},n.end)};n.end=Object.assign({},h.start),n.start.offset===n.end.offset?Object.assign(n,h):(t.splice(r,0,["enter",h,e],["exit",h,e]),r+=2)}r++}return t}function mu(t,e,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let s=[],o=[];const u={consume:N,enter:I,exit:Y,attempt:V(G),check:V(C),interrupt:V(C,{interrupt:!0})},h={previous:null,code:null,containerState:{},events:[],parser:t,sliceStream:f,sliceSerialize:b,now:z,defineSkip:E,write:p};let d=e.tokenize.call(h,u);return e.resolveAll&&a.push(e),h;function p(W){return s=St(s,W),O(),s[s.length-1]!==null?[]:(ee(e,0),h.events=xi(a,h.events,h),h.events)}function b(W,$){return fu(f(W),$)}function f(W){return pu(s,W)}function z(){const{line:W,column:$,offset:be,_index:he,_bufferIndex:le}=n;return{line:W,column:$,offset:be,_index:he,_bufferIndex:le}}function E(W){i[W.line]=W.column,M()}function O(){let W;for(;n._index<s.length;){const $=s[n._index];if(typeof $=="string")for(W=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===W&&n._bufferIndex<$.length;)A($.charCodeAt(n._bufferIndex));else A($)}}function A(W){d=d(W)}function N(W){re(W)?(n.line++,n.column=1,n.offset+=W===-3?2:1,M()):W!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),h.previous=W}function I(W,$){const be=$||{};return be.type=W,be.start=z(),h.events.push(["enter",be,h]),o.push(be),be}function Y(W){const $=o.pop();return $.end=z(),h.events.push(["exit",$,h]),$}function G(W,$){ee(W,$.from)}function C(W,$){$.restore()}function V(W,$){return be;function be(he,le,Ee){let Ce,ue,_e,w;return Array.isArray(he)?Ae(he):"tokenize"in he?Ae([he]):Te(he);function Te(He){return ft;function ft(tt){const _t=tt!==null&&He[tt],at=tt!==null&&He.null,wr=[...Array.isArray(_t)?_t:_t?[_t]:[],...Array.isArray(at)?at:at?[at]:[]];return Ae(wr)(tt)}}function Ae(He){return Ce=He,ue=0,He.length===0?Ee:k(He[ue])}function k(He){return ft;function ft(tt){return w=j(),_e=He,He.partial||(h.currentConstruct=He),He.name&&h.parser.constructs.disable.null.includes(He.name)?it():He.tokenize.call($?Object.assign(Object.create(h),$):h,u,et,it)(tt)}}function et(He){return W(_e,w),le}function it(He){return w.restore(),++ue<Ce.length?k(Ce[ue]):Ee}}}function ee(W,$){W.resolveAll&&!a.includes(W)&&a.push(W),W.resolve&&Pt(h.events,$,h.events.length-$,W.resolve(h.events.slice($),h)),W.resolveTo&&(h.events=W.resolveTo(h.events,h))}function j(){const W=z(),$=h.previous,be=h.currentConstruct,he=h.events.length,le=Array.from(o);return{restore:Ee,from:he};function Ee(){n=W,h.previous=$,h.currentConstruct=be,h.events.length=he,o=le,M()}}function M(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function pu(t,e){const r=e.start._index,n=e.start._bufferIndex,i=e.end._index,a=e.end._bufferIndex;let s;if(r===i)s=[t[r].slice(n,a)];else{if(s=t.slice(r,i),n>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(n):s.shift()}a>0&&s.push(t[i].slice(0,a))}return s}function fu(t,e){let r=-1;const n=[];let i;for(;++r<t.length;){const a=t[r];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
5
5
  `;break}case-3:{s=`\r
6
- `;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,n.push(s)}return n.join("")}const gu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:v1},disable:{null:[]},document:{42:dt,43:dt,45:dt,48:dt,49:dt,50:dt,51:dt,52:dt,53:dt,54:dt,55:dt,56:dt,57:dt,62:x0},flow:{35:z1,42:Sn,45:[N0,Sn],60:M1,61:N0,95:Sn,96:E0,126:E0},flowInitial:{[-2]:Si,[-1]:Si,32:Si},insideSpan:{null:[ki,uu]},string:{38:S0,92:k0},text:{[-5]:Ei,[-4]:Ei,[-3]:Ei,33:j1,38:S0,42:ki,60:[Kl,O1],91:X1,92:[k1,k0],93:zi,95:ki,96:l1}},Symbol.toStringTag,{value:"Module"}));function bu(t){const r=Il([gu,...(t||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(Hl),document:i($l),flow:i(ou),string:i(cu),text:i(hu)};return n;function i(a){return s;function s(o){return mu(n,a,o)}}}function vu(t){for(;!T0(t););return t}const I0=/[\0\t\n\r]/g;function yu(){let t=1,e="",r=!0,n;return i;function i(a,s,o){const u=[];let h,d,p,b,f;for(a=e+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),p=0,e="",r&&(a.charCodeAt(0)===65279&&p++,r=void 0);p<a.length;){if(I0.lastIndex=p,h=I0.exec(a),b=h&&h.index!==void 0?h.index:a.length,f=a.charCodeAt(b),!h){e=a.slice(p);break}if(f===10&&p===b&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),p<b&&(u.push(a.slice(p,b)),t+=b-p),f){case 0:{u.push(65533),t++;break}case 9:{for(d=Math.ceil(t/4)*4,u.push(-2);t++<d;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:n=!0,t=1}p=b+1}return o&&(n&&u.push(-5),e&&u.push(e),u.push(null)),u}}const wu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xu(t){return t.replace(wu,ku)}function ku(t,e,r){if(e)return e;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return b0(r.slice(a?2:1),a?16:10)}return vi(r)||t}function zn(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?O0(t.position):"start"in t||"end"in t?O0(t):"line"in t||"column"in t?Ti(t):""}function Ti(t){return L0(t&&t.line)+":"+L0(t&&t.column)}function O0(t){return Ti(t&&t.start)+"-"+Ti(t&&t.end)}function L0(t){return t&&typeof t=="number"?t:1}const D0={}.hasOwnProperty;function Su(t,e,r){return typeof e!="string"&&(r=e,e=void 0),zu(r)(vu(bu(r).document().write(yu()(t,e,!0))))}function zu(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ar),autolinkProtocol:j,autolinkEmail:j,atxHeading:a(Lr),blockQuote:a(at),characterEscape:j,characterReference:j,codeFenced:a(wr),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(wr,s),codeText:a(mn,s),codeTextData:j,data:j,codeFlowValue:j,definition:a(pn),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Or),hardBreakEscape:a(Dr),hardBreakTrailing:a(Dr),htmlFlow:a(xr,s),htmlFlowData:j,htmlText:a(xr,s),htmlTextData:j,image:a(kr),label:s,link:a(ar),listItem:a(Ta),listItemValue:b,listOrdered:a(fn,p),listUnordered:a(fn),paragraph:a(Aa),reference:k,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(Lr),strong:a(ti),thematicBreak:a(ri)},exit:{atxHeading:u(),atxHeadingSequence:G,autolink:u(),autolinkEmail:_t,autolinkProtocol:tt,blockQuote:u(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:it,characterReferenceMarkerNumeric:it,characterReferenceValue:He,characterReference:ft,codeFenced:u(O),codeFencedFence:E,codeFencedFenceInfo:f,codeFencedFenceMeta:z,codeFlowValue:M,codeIndented:u(A),codeText:u(le),codeTextData:M,data:M,definition:u(),definitionDestinationString:Y,definitionLabelString:N,definitionTitleString:I,emphasis:u(),hardBreakEscape:u($),hardBreakTrailing:u($),htmlFlow:u(be),htmlFlowData:M,htmlText:u(he),htmlTextData:M,image:u(Ce),label:_e,labelText:ue,lineEnding:W,link:u(Ee),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:et,resourceDestinationString:w,resourceTitleString:Te,resource:Ae,setextHeading:u(ee),setextHeadingLineSequence:V,setextHeadingText:C,strong:u(),thematicBreak:u()}};F0(e,(t||{}).mdastExtensions||[]);const r={};return n;function n(B){let U={type:"root",children:[]};const de={stack:[U],tokenStack:[],config:e,enter:o,exit:h,buffer:s,resume:d,data:r},ye=[];let Ne=-1;for(;++Ne<B.length;)if(B[Ne][1].type==="listOrdered"||B[Ne][1].type==="listUnordered")if(B[Ne][0]==="enter")ye.push(Ne);else{const yt=ye.pop();Ne=i(B,yt,Ne)}for(Ne=-1;++Ne<B.length;){const yt=e[B[Ne][0]];D0.call(yt,B[Ne][1].type)&&yt[B[Ne][1].type].call(Object.assign({sliceSerialize:B[Ne][2].sliceSerialize},de),B[Ne][1])}if(de.tokenStack.length>0){const yt=de.tokenStack[de.tokenStack.length-1];(yt[1]||P0).call(de,void 0,yt[0])}for(U.position={start:dr(B.length>0?B[0][1].start:{line:1,column:1,offset:0}),end:dr(B.length>0?B[B.length-2][1].end:{line:1,column:1,offset:0})},Ne=-1;++Ne<e.transforms.length;)U=e.transforms[Ne](U)||U;return U}function i(B,U,de){let ye=U-1,Ne=-1,yt=!1,or,It,Sr,Fr;for(;++ye<=de;){const ht=B[ye];switch(ht[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ht[0]==="enter"?Ne++:Ne--,Fr=void 0;break}case"lineEndingBlank":{ht[0]==="enter"&&(or&&!Fr&&!Ne&&!Sr&&(Sr=ye),Fr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Fr=void 0}if(!Ne&&ht[0]==="enter"&&ht[1].type==="listItemPrefix"||Ne===-1&&ht[0]==="exit"&&(ht[1].type==="listUnordered"||ht[1].type==="listOrdered")){if(or){let zr=ye;for(It=void 0;zr--;){const wt=B[zr];if(wt[1].type==="lineEnding"||wt[1].type==="lineEndingBlank"){if(wt[0]==="exit")continue;It&&(B[It][1].type="lineEndingBlank",yt=!0),wt[1].type="lineEnding",It=zr}else if(!(wt[1].type==="linePrefix"||wt[1].type==="blockQuotePrefix"||wt[1].type==="blockQuotePrefixWhitespace"||wt[1].type==="blockQuoteMarker"||wt[1].type==="listItemIndent"))break}Sr&&(!It||Sr<It)&&(or._spread=!0),or.end=Object.assign({},It?B[It][1].start:ht[1].end),B.splice(It||ye,0,["exit",or,ht[2]]),ye++,de++}if(ht[1].type==="listItemPrefix"){const zr={type:"listItem",_spread:!1,start:Object.assign({},ht[1].start),end:void 0};or=zr,B.splice(ye,0,["enter",zr,ht[2]]),ye++,de++,Sr=void 0,Fr=!0}}}return B[U][1]._spread=yt,de}function a(B,U){return de;function de(ye){o.call(this,B(ye),ye),U&&U.call(this,ye)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(B,U,de){this.stack[this.stack.length-1].children.push(B),this.stack.push(B),this.tokenStack.push([U,de||void 0]),B.position={start:dr(U.start),end:void 0}}function u(B){return U;function U(de){B&&B.call(this,de),h.call(this,de)}}function h(B,U){const de=this.stack.pop(),ye=this.tokenStack.pop();if(ye)ye[0].type!==B.type&&(U?U.call(this,B,ye[0]):(ye[1]||P0).call(this,B,ye[0]));else throw new Error("Cannot close `"+B.type+"` ("+zn({start:B.start,end:B.end})+"): it’s not open");de.position.end=dr(B.end)}function d(){return Bl(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function b(B){if(this.data.expectingFirstListItemValue){const U=this.stack[this.stack.length-2];U.start=Number.parseInt(this.sliceSerialize(B),10),this.data.expectingFirstListItemValue=void 0}}function f(){const B=this.resume(),U=this.stack[this.stack.length-1];U.lang=B}function z(){const B=this.resume(),U=this.stack[this.stack.length-1];U.meta=B}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function O(){const B=this.resume(),U=this.stack[this.stack.length-1];U.value=B.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const B=this.resume(),U=this.stack[this.stack.length-1];U.value=B.replace(/(\r?\n|\r)$/g,"")}function N(B){const U=this.resume(),de=this.stack[this.stack.length-1];de.label=U,de.identifier=Wr(this.sliceSerialize(B)).toLowerCase()}function I(){const B=this.resume(),U=this.stack[this.stack.length-1];U.title=B}function Y(){const B=this.resume(),U=this.stack[this.stack.length-1];U.url=B}function G(B){const U=this.stack[this.stack.length-1];if(!U.depth){const de=this.sliceSerialize(B).length;U.depth=de}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function V(B){const U=this.stack[this.stack.length-1];U.depth=this.sliceSerialize(B).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function j(B){const de=this.stack[this.stack.length-1].children;let ye=de[de.length-1];(!ye||ye.type!=="text")&&(ye=sr(),ye.position={start:dr(B.start),end:void 0},de.push(ye)),this.stack.push(ye)}function M(B){const U=this.stack.pop();U.value+=this.sliceSerialize(B),U.position.end=dr(B.end)}function W(B){const U=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=U.children[U.children.length-1];de.position.end=dr(B.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(U.type)&&(j.call(this,B),M.call(this,B))}function $(){this.data.atHardBreak=!0}function be(){const B=this.resume(),U=this.stack[this.stack.length-1];U.value=B}function he(){const B=this.resume(),U=this.stack[this.stack.length-1];U.value=B}function le(){const B=this.resume(),U=this.stack[this.stack.length-1];U.value=B}function Ee(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=U,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function Ce(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=U,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function ue(B){const U=this.sliceSerialize(B),de=this.stack[this.stack.length-2];de.label=xu(U),de.identifier=Wr(U).toLowerCase()}function _e(){const B=this.stack[this.stack.length-1],U=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const ye=B.children;de.children=ye}else de.alt=U}function w(){const B=this.resume(),U=this.stack[this.stack.length-1];U.url=B}function Te(){const B=this.resume(),U=this.stack[this.stack.length-1];U.title=B}function Ae(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function et(B){const U=this.resume(),de=this.stack[this.stack.length-1];de.label=U,de.identifier=Wr(this.sliceSerialize(B)).toLowerCase(),this.data.referenceType="full"}function it(B){this.data.characterReferenceType=B.type}function He(B){const U=this.sliceSerialize(B),de=this.data.characterReferenceType;let ye;de?(ye=b0(U,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ye=vi(U);const Ne=this.stack[this.stack.length-1];Ne.value+=ye}function ft(B){const U=this.stack.pop();U.position.end=dr(B.end)}function tt(B){M.call(this,B);const U=this.stack[this.stack.length-1];U.url=this.sliceSerialize(B)}function _t(B){M.call(this,B);const U=this.stack[this.stack.length-1];U.url="mailto:"+this.sliceSerialize(B)}function at(){return{type:"blockquote",children:[]}}function wr(){return{type:"code",lang:null,meta:null,value:""}}function mn(){return{type:"inlineCode",value:""}}function pn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Or(){return{type:"emphasis",children:[]}}function Lr(){return{type:"heading",depth:0,children:[]}}function Dr(){return{type:"break"}}function xr(){return{type:"html",value:""}}function kr(){return{type:"image",title:null,url:"",alt:null}}function ar(){return{type:"link",title:null,url:"",children:[]}}function fn(B){return{type:"list",ordered:B.type==="listOrdered",start:null,spread:B._spread,children:[]}}function Ta(B){return{type:"listItem",spread:B._spread,checked:null,children:[]}}function Aa(){return{type:"paragraph",children:[]}}function ti(){return{type:"strong",children:[]}}function sr(){return{type:"text",value:""}}function ri(){return{type:"thematicBreak"}}}function dr(t){return{line:t.line,column:t.column,offset:t.offset}}function F0(t,e){let r=-1;for(;++r<e.length;){const n=e[r];Array.isArray(n)?F0(t,n):Eu(t,n)}}function Eu(t,e){let r;for(r in e)if(D0.call(e,r))switch(r){case"canContainEols":{const n=e[r];n&&t[r].push(...n);break}case"transforms":{const n=e[r];n&&t[r].push(...n);break}case"enter":case"exit":{const n=e[r];n&&Object.assign(t[r],n);break}}}function P0(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+zn({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+zn({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+zn({start:e.start,end:e.end})+") is still open")}class Tu{constructor(){this.map=[]}add(e,r,n){Au(this,e,r,n)}consume(e){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(e.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),e.length=this.map[r][0];n.push([...e]),e.length=0;let i=n.pop();for(;i;)e.push(...i),i=n.pop();this.map.length=0}}function Au(t,e,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=r,t.map[i][2].push(...n);return}i+=1}t.map.push([e,r,n])}}function Mu(t,e){let r=!1;const n=[];for(;e<t.length;){const i=t[e];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const a=n.length-1;n[a]=n[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);e+=1}return n}function Cu(){return{flow:{null:{name:"table",tokenize:_u,resolveAll:Nu}}}}function _u(t,e,r){const n=this;let i=0,a=0,s;return o;function o(M){let W=n.events.length-1;for(;W>-1;){const he=n.events[W][1].type;if(he==="lineEnding"||he==="linePrefix")W--;else break}const $=W>-1?n.events[W][1].type:null,be=$==="tableHead"||$==="tableRow"?C:u;return be===C&&n.parser.lazy[n.now().line]?r(M):be(M)}function u(M){return t.enter("tableHead"),t.enter("tableRow"),h(M)}function h(M){return M===124||(s=!0,a+=1),d(M)}function d(M){return M===null?r(M):re(M)?a>1?(a=0,n.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(M),t.exit("lineEnding"),f):r(M):we(M)?xe(t,d,"whitespace")(M):(a+=1,s&&(s=!1,i+=1),M===124?(t.enter("tableCellDivider"),t.consume(M),t.exit("tableCellDivider"),s=!0,d):(t.enter("data"),p(M)))}function p(M){return M===null||M===124||nt(M)?(t.exit("data"),d(M)):(t.consume(M),M===92?b:p)}function b(M){return M===92||M===124?(t.consume(M),p):p(M)}function f(M){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(M):(t.enter("tableDelimiterRow"),s=!1,we(M)?xe(t,z,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):z(M))}function z(M){return M===45||M===58?O(M):M===124?(s=!0,t.enter("tableCellDivider"),t.consume(M),t.exit("tableCellDivider"),E):G(M)}function E(M){return we(M)?xe(t,O,"whitespace")(M):O(M)}function O(M){return M===58?(a+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(M),t.exit("tableDelimiterMarker"),A):M===45?(a+=1,A(M)):M===null||re(M)?Y(M):G(M)}function A(M){return M===45?(t.enter("tableDelimiterFiller"),N(M)):G(M)}function N(M){return M===45?(t.consume(M),N):M===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(M),t.exit("tableDelimiterMarker"),I):(t.exit("tableDelimiterFiller"),I(M))}function I(M){return we(M)?xe(t,Y,"whitespace")(M):Y(M)}function Y(M){return M===124?z(M):M===null||re(M)?!s||i!==a?G(M):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(M)):G(M)}function G(M){return r(M)}function C(M){return t.enter("tableRow"),V(M)}function V(M){return M===124?(t.enter("tableCellDivider"),t.consume(M),t.exit("tableCellDivider"),V):M===null||re(M)?(t.exit("tableRow"),e(M)):we(M)?xe(t,V,"whitespace")(M):(t.enter("data"),ee(M))}function ee(M){return M===null||M===124||nt(M)?(t.exit("data"),V(M)):(t.consume(M),M===92?j:ee)}function j(M){return M===92||M===124?(t.consume(M),ee):ee(M)}}function Nu(t,e){let r=-1,n=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,h,d,p;const b=new Tu;for(;++r<t.length;){const f=t[r],z=f[1];f[0]==="enter"?z.type==="tableHead"?(o=!1,u!==0&&(q0(b,e,u,h,d),d=void 0,u=0),h={type:"table",start:Object.assign({},z.start),end:Object.assign({},z.end)},b.add(r,0,[["enter",h,e]])):z.type==="tableRow"||z.type==="tableDelimiterRow"?(n=!0,p=void 0,a=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,d={type:"tableBody",start:Object.assign({},z.start),end:Object.assign({},z.end)},b.add(r,0,[["enter",d,e]])),i=z.type==="tableDelimiterRow"?2:d?3:1):i&&(z.type==="data"||z.type==="tableDelimiterMarker"||z.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],p=En(b,e,a,i,void 0,p),a=[0,0,0,0]),s[2]=r)):z.type==="tableCellDivider"&&(n?n=!1:(a[1]!==0&&(s[0]=s[1],p=En(b,e,a,i,void 0,p)),a=s,s=[a[1],r,0,0])):z.type==="tableHead"?(o=!0,u=r):z.type==="tableRow"||z.type==="tableDelimiterRow"?(u=r,a[1]!==0?(s[0]=s[1],p=En(b,e,a,i,r,p)):s[1]!==0&&(p=En(b,e,s,i,r,p)),i=0):i&&(z.type==="data"||z.type==="tableDelimiterMarker"||z.type==="tableDelimiterFiller")&&(s[3]=r)}for(u!==0&&q0(b,e,u,h,d),b.consume(e.events),r=-1;++r<e.events.length;){const f=e.events[r];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=Mu(e.events,r))}return t}function En(t,e,r,n,i,a){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(a.end=Object.assign({},jr(e.events,r[0])),t.add(r[0],0,[["exit",a,e]]));const u=jr(e.events,r[1]);if(a={type:s,start:Object.assign({},u),end:Object.assign({},u)},t.add(r[1],0,[["enter",a,e]]),r[2]!==0){const h=jr(e.events,r[2]),d=jr(e.events,r[3]),p={type:o,start:Object.assign({},h),end:Object.assign({},d)};if(t.add(r[2],0,[["enter",p,e]]),n!==2){const b=e.events[r[2]],f=e.events[r[3]];if(b[1].end=Object.assign({},f[1].end),b[1].type="chunkText",b[1].contentType="text",r[3]>r[2]+1){const z=r[2]+1,E=r[3]-r[2]-1;t.add(z,E,[])}}t.add(r[3]+1,0,[["exit",p,e]])}return i!==void 0&&(a.end=Object.assign({},jr(e.events,i)),t.add(i,0,[["exit",a,e]]),a=void 0),a}function q0(t,e,r,n,i){const a=[],s=jr(e.events,r);i&&(i.end=Object.assign({},s),a.push(["exit",i,e])),n.end=Object.assign({},s),a.push(["exit",n,e]),t.add(r+1,0,a)}function jr(t,e){const r=t[e],n=r[0]==="enter"?"start":"end";return r[1][n]}function g4(){}function Bu(){return{enter:{table:Ru,tableData:U0,tableHeader:U0,tableRow:Ou},exit:{codeText:Lu,table:Iu,tableData:Ai,tableHeader:Ai,tableRow:Ai}}}function Ru(t){const e=t._align;this.enter({type:"table",align:e.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function Iu(t){this.exit(t),this.data.inTable=void 0}function Ou(t){this.enter({type:"tableRow",children:[]},t)}function Ai(t){this.exit(t)}function U0(t){this.enter({type:"tableCell",children:[]},t)}function Lu(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,Du));const r=this.stack[this.stack.length-1];r.type,r.value=e,this.exit(t)}function Du(t,e){return e==="|"?e:t}class H0{constructor(e,r){P(this,"node");P(this,"codeNode");P(this,"_language");P(this,"_code");P(this,"_ct");this.node=_("pre",null,this.codeNode=_("code",null)),this.updateCodeAsync(e,r,this._ct=new Kt)}async updateCodeAsync(e,r,n){const i=Pu(e);if(i){if(await i.promise,n.isCancellationRequested)return;this._language=e,this._code=r,this.codeNode.innerHTML=Yt.result.default.highlight(r,{language:e}).value}else this._language=e,this._code=r,this.codeNode.textContent=r}updateCode(e,r){this._ct.cancel(),!(this._language===e&&this._code===r)&&this.updateCodeAsync(e,r,this._ct=new Kt)}}let Yt;function Fu(){return Yt||(Yt={promise:Promise.resolve().then(()=>fd)},Yt.promise.then(t=>Yt.result=t).catch(t=>Yt.error=t),Yt)}const G0={};function Pu(t){let e=G0[t];if(e)return e;Fu();let r;switch(t){case"javascript":r=Promise.resolve().then(()=>xd);break;case"csharp":r=Promise.resolve().then(()=>Sd);break;case"python":r=Promise.resolve().then(()=>Ed);break;case"css":r=Promise.resolve().then(()=>Od);break;case"typescript":r=Promise.resolve().then(()=>Fd);break;default:return null}return e={promise:(async()=>{const n=await r;return(await Yt.promise).default.registerLanguage(t,n.default),n.default})()},G0[t]=e,e.promise.then(n=>e.result=n).catch(n=>e.error=n),e}function qu(t,e){console.debug("getImageFromPyodide",e);var r=t.FS.readFile(e,{encoding:"binary"});const n=new Blob([r],{type:"image/png"});return URL.createObjectURL(n)}const Uu={tokenize:Hu,concrete:!0,name:"mathFlow"},$0={tokenize:Gu,partial:!0};function Hu(t,e,r){const n=this,i=n.events[n.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let s=0;return o;function o(N){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),u(N)}function u(N){return N===36?(t.consume(N),s++,u):s<2?r(N):(t.exit("mathFlowFenceSequence"),xe(t,h,"whitespace")(N))}function h(N){return N===null||re(N)?p(N):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),d(N))}function d(N){return N===null||re(N)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),p(N)):N===36?r(N):(t.consume(N),d)}function p(N){return t.exit("mathFlowFence"),n.interrupt?e(N):t.attempt($0,b,O)(N)}function b(N){return t.attempt({tokenize:A,partial:!0},O,f)(N)}function f(N){return(a?xe(t,z,"linePrefix",a+1):z)(N)}function z(N){return N===null?O(N):re(N)?t.attempt($0,b,O)(N):(t.enter("mathFlowValue"),E(N))}function E(N){return N===null||re(N)?(t.exit("mathFlowValue"),z(N)):(t.consume(N),E)}function O(N){return t.exit("mathFlow"),e(N)}function A(N,I,Y){let G=0;return xe(N,C,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function C(j){return N.enter("mathFlowFence"),N.enter("mathFlowFenceSequence"),V(j)}function V(j){return j===36?(G++,N.consume(j),V):G<s?Y(j):(N.exit("mathFlowFenceSequence"),xe(N,ee,"whitespace")(j))}function ee(j){return j===null||re(j)?(N.exit("mathFlowFence"),I(j)):Y(j)}}}function Gu(t,e,r){const n=this;return i;function i(s){return s===null?e(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):e(s)}}function $u(t){let r={}.singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:Wu,previous:ju,name:"mathText"};function n(i,a,s){let o=0,u,h;return d;function d(E){return i.enter("mathText"),i.enter("mathTextSequence"),p(E)}function p(E){return E===36?(i.consume(E),o++,p):o<2&&!r?s(E):(i.exit("mathTextSequence"),b(E))}function b(E){return E===null?s(E):E===36?(h=i.enter("mathTextSequence"),u=0,z(E)):E===32?(i.enter("space"),i.consume(E),i.exit("space"),b):re(E)?(i.enter("lineEnding"),i.consume(E),i.exit("lineEnding"),b):(i.enter("mathTextData"),f(E))}function f(E){return E===null||E===32||E===36||re(E)?(i.exit("mathTextData"),b(E)):(i.consume(E),f)}function z(E){return E===36?(i.consume(E),u++,z):u===o?(i.exit("mathTextSequence"),i.exit("mathText"),a(E)):(h.type="mathTextData",f(E))}}}function Wu(t){let e=t.length-4,r=3,n,i;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(n=r;++n<e;)if(t[n][1].type==="mathTextData"){t[e][1].type="mathTextPadding",t[r][1].type="mathTextPadding",r+=2,e-=2;break}}for(n=r-1,e++;++n<=e;)i===void 0?n!==e&&t[n][1].type!=="lineEnding"&&(i=n):(n===e||t[n][1].type==="lineEnding")&&(t[i][1].type="mathTextData",n!==i+2&&(t[i][1].end=t[n-1][1].end,t.splice(i+2,n-i-2),e-=n-i-2,n=i+2),i=void 0);return t}function ju(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Vu(t){return{flow:{36:Uu},text:{36:$u()}}}class bt{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new bt(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class zt{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new zt(r,bt.range(this,e))}}class F{constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var u=o.slice(i,a).replace(/[^]/g,"$&̲"),h;i>15?h="…"+o.slice(i-15,i):h=o.slice(0,i);var d;a+15<o.length?d=o.slice(a,a+15)+"…":d=o.slice(a),n+=h+u+d}var p=new Error(n);return p.name="ParseError",p.__proto__=F.prototype,p.position=i,i!=null&&a!=null&&(p.length=a-i),p.rawMessage=e,p}}F.prototype.__proto__=Error.prototype;var Xu=function(e,r){return e.indexOf(r)!==-1},Ku=function(e,r){return e===void 0?r:e},Yu=/([A-Z])/g,Zu=function(e){return e.replace(Yu,"-$1").toLowerCase()},Ju={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Qu=/[&><"']/g;function ec(t){return String(t).replace(Qu,e=>Ju[e])}var W0=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},tc=function(e){var r=W0(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},rc=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},nc=function(e){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},ie={contains:Xu,deflt:Ku,escape:ec,hyphenate:Zu,getBaseElem:W0,isCharacterBox:tc,protocolFromUrl:nc},Tn={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function ic(t){if(t.default)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Mi{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r in Tn)if(Tn.hasOwnProperty(r)){var n=Tn[r];this[r]=e[r]!==void 0?n.processor?n.processor(e[r]):e[r]:ic(n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new F("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var r=ie.protocolFromUrl(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class mr{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Ut[ac[this.id]]}sub(){return Ut[sc[this.id]]}fracNum(){return Ut[oc[this.id]]}fracDen(){return Ut[lc[this.id]]}cramp(){return Ut[uc[this.id]]}text(){return Ut[cc[this.id]]}isTight(){return this.size>=2}}var Ci=0,An=1,Vr=2,Zt=3,nn=4,Et=5,Xr=6,lt=7,Ut=[new mr(Ci,0,!1),new mr(An,0,!0),new mr(Vr,1,!1),new mr(Zt,1,!0),new mr(nn,2,!1),new mr(Et,2,!0),new mr(Xr,3,!1),new mr(lt,3,!0)],ac=[nn,Et,nn,Et,Xr,lt,Xr,lt],sc=[Et,Et,Et,Et,lt,lt,lt,lt],oc=[Vr,Zt,nn,Et,Xr,lt,Xr,lt],lc=[Zt,Zt,Et,Et,lt,lt,lt,lt],uc=[An,An,Zt,Zt,Et,Et,lt,lt],cc=[Ci,An,Vr,Zt,Vr,Zt,Vr,Zt],se={DISPLAY:Ut[Ci],TEXT:Ut[Vr],SCRIPT:Ut[nn],SCRIPTSCRIPT:Ut[Xr]},_i=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function hc(t){for(var e=0;e<_i.length;e++)for(var r=_i[e],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(t>=i[0]&&t<=i[1])return r.name}return null}var Mn=[];_i.forEach(t=>t.blocks.forEach(e=>Mn.push(...e)));function j0(t){for(var e=0;e<Mn.length;e+=2)if(t>=Mn[e]&&t<=Mn[e+1])return!0;return!1}var Kr=80,dc=function(e,r){return"M95,"+(622+e+r)+`
6
+ `;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,n.push(s)}return n.join("")}const gu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:v1},disable:{null:[]},document:{42:dt,43:dt,45:dt,48:dt,49:dt,50:dt,51:dt,52:dt,53:dt,54:dt,55:dt,56:dt,57:dt,62:x0},flow:{35:z1,42:Sn,45:[N0,Sn],60:M1,61:N0,95:Sn,96:E0,126:E0},flowInitial:{[-2]:Si,[-1]:Si,32:Si},insideSpan:{null:[ki,uu]},string:{38:S0,92:k0},text:{[-5]:Ei,[-4]:Ei,[-3]:Ei,33:j1,38:S0,42:ki,60:[Kl,O1],91:X1,92:[k1,k0],93:zi,95:ki,96:l1}},Symbol.toStringTag,{value:"Module"}));function bu(t){const r=Il([gu,...(t||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(Hl),document:i($l),flow:i(ou),string:i(cu),text:i(hu)};return n;function i(a){return s;function s(o){return mu(n,a,o)}}}function vu(t){for(;!T0(t););return t}const I0=/[\0\t\n\r]/g;function yu(){let t=1,e="",r=!0,n;return i;function i(a,s,o){const u=[];let h,d,p,b,f;for(a=e+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),p=0,e="",r&&(a.charCodeAt(0)===65279&&p++,r=void 0);p<a.length;){if(I0.lastIndex=p,h=I0.exec(a),b=h&&h.index!==void 0?h.index:a.length,f=a.charCodeAt(b),!h){e=a.slice(p);break}if(f===10&&p===b&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),p<b&&(u.push(a.slice(p,b)),t+=b-p),f){case 0:{u.push(65533),t++;break}case 9:{for(d=Math.ceil(t/4)*4,u.push(-2);t++<d;)u.push(-1);break}case 10:{u.push(-4),t=1;break}default:n=!0,t=1}p=b+1}return o&&(n&&u.push(-5),e&&u.push(e),u.push(null)),u}}const wu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xu(t){return t.replace(wu,ku)}function ku(t,e,r){if(e)return e;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return b0(r.slice(a?2:1),a?16:10)}return vi(r)||t}function zn(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?O0(t.position):"start"in t||"end"in t?O0(t):"line"in t||"column"in t?Ti(t):""}function Ti(t){return L0(t&&t.line)+":"+L0(t&&t.column)}function O0(t){return Ti(t&&t.start)+"-"+Ti(t&&t.end)}function L0(t){return t&&typeof t=="number"?t:1}const D0={}.hasOwnProperty;function Su(t,e,r){return typeof e!="string"&&(r=e,e=void 0),zu(r)(vu(bu(r).document().write(yu()(t,e,!0))))}function zu(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ar),autolinkProtocol:j,autolinkEmail:j,atxHeading:a(Lr),blockQuote:a(at),characterEscape:j,characterReference:j,codeFenced:a(wr),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(wr,s),codeText:a(mn,s),codeTextData:j,data:j,codeFlowValue:j,definition:a(pn),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Or),hardBreakEscape:a(Dr),hardBreakTrailing:a(Dr),htmlFlow:a(xr,s),htmlFlowData:j,htmlText:a(xr,s),htmlTextData:j,image:a(kr),label:s,link:a(ar),listItem:a(Ta),listItemValue:b,listOrdered:a(fn,p),listUnordered:a(fn),paragraph:a(Aa),reference:k,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(Lr),strong:a(ti),thematicBreak:a(ri)},exit:{atxHeading:u(),atxHeadingSequence:G,autolink:u(),autolinkEmail:_t,autolinkProtocol:tt,blockQuote:u(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:it,characterReferenceMarkerNumeric:it,characterReferenceValue:He,characterReference:ft,codeFenced:u(O),codeFencedFence:E,codeFencedFenceInfo:f,codeFencedFenceMeta:z,codeFlowValue:M,codeIndented:u(A),codeText:u(le),codeTextData:M,data:M,definition:u(),definitionDestinationString:Y,definitionLabelString:N,definitionTitleString:I,emphasis:u(),hardBreakEscape:u($),hardBreakTrailing:u($),htmlFlow:u(be),htmlFlowData:M,htmlText:u(he),htmlTextData:M,image:u(Ce),label:_e,labelText:ue,lineEnding:W,link:u(Ee),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:et,resourceDestinationString:w,resourceTitleString:Te,resource:Ae,setextHeading:u(ee),setextHeadingLineSequence:V,setextHeadingText:C,strong:u(),thematicBreak:u()}};F0(e,(t||{}).mdastExtensions||[]);const r={};return n;function n(B){let U={type:"root",children:[]};const de={stack:[U],tokenStack:[],config:e,enter:o,exit:h,buffer:s,resume:d,data:r},ye=[];let Ne=-1;for(;++Ne<B.length;)if(B[Ne][1].type==="listOrdered"||B[Ne][1].type==="listUnordered")if(B[Ne][0]==="enter")ye.push(Ne);else{const yt=ye.pop();Ne=i(B,yt,Ne)}for(Ne=-1;++Ne<B.length;){const yt=e[B[Ne][0]];D0.call(yt,B[Ne][1].type)&&yt[B[Ne][1].type].call(Object.assign({sliceSerialize:B[Ne][2].sliceSerialize},de),B[Ne][1])}if(de.tokenStack.length>0){const yt=de.tokenStack[de.tokenStack.length-1];(yt[1]||P0).call(de,void 0,yt[0])}for(U.position={start:dr(B.length>0?B[0][1].start:{line:1,column:1,offset:0}),end:dr(B.length>0?B[B.length-2][1].end:{line:1,column:1,offset:0})},Ne=-1;++Ne<e.transforms.length;)U=e.transforms[Ne](U)||U;return U}function i(B,U,de){let ye=U-1,Ne=-1,yt=!1,or,It,Sr,Fr;for(;++ye<=de;){const ht=B[ye];switch(ht[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ht[0]==="enter"?Ne++:Ne--,Fr=void 0;break}case"lineEndingBlank":{ht[0]==="enter"&&(or&&!Fr&&!Ne&&!Sr&&(Sr=ye),Fr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Fr=void 0}if(!Ne&&ht[0]==="enter"&&ht[1].type==="listItemPrefix"||Ne===-1&&ht[0]==="exit"&&(ht[1].type==="listUnordered"||ht[1].type==="listOrdered")){if(or){let zr=ye;for(It=void 0;zr--;){const wt=B[zr];if(wt[1].type==="lineEnding"||wt[1].type==="lineEndingBlank"){if(wt[0]==="exit")continue;It&&(B[It][1].type="lineEndingBlank",yt=!0),wt[1].type="lineEnding",It=zr}else if(!(wt[1].type==="linePrefix"||wt[1].type==="blockQuotePrefix"||wt[1].type==="blockQuotePrefixWhitespace"||wt[1].type==="blockQuoteMarker"||wt[1].type==="listItemIndent"))break}Sr&&(!It||Sr<It)&&(or._spread=!0),or.end=Object.assign({},It?B[It][1].start:ht[1].end),B.splice(It||ye,0,["exit",or,ht[2]]),ye++,de++}if(ht[1].type==="listItemPrefix"){const zr={type:"listItem",_spread:!1,start:Object.assign({},ht[1].start),end:void 0};or=zr,B.splice(ye,0,["enter",zr,ht[2]]),ye++,de++,Sr=void 0,Fr=!0}}}return B[U][1]._spread=yt,de}function a(B,U){return de;function de(ye){o.call(this,B(ye),ye),U&&U.call(this,ye)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(B,U,de){this.stack[this.stack.length-1].children.push(B),this.stack.push(B),this.tokenStack.push([U,de||void 0]),B.position={start:dr(U.start),end:void 0}}function u(B){return U;function U(de){B&&B.call(this,de),h.call(this,de)}}function h(B,U){const de=this.stack.pop(),ye=this.tokenStack.pop();if(ye)ye[0].type!==B.type&&(U?U.call(this,B,ye[0]):(ye[1]||P0).call(this,B,ye[0]));else throw new Error("Cannot close `"+B.type+"` ("+zn({start:B.start,end:B.end})+"): it’s not open");de.position.end=dr(B.end)}function d(){return Bl(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function b(B){if(this.data.expectingFirstListItemValue){const U=this.stack[this.stack.length-2];U.start=Number.parseInt(this.sliceSerialize(B),10),this.data.expectingFirstListItemValue=void 0}}function f(){const B=this.resume(),U=this.stack[this.stack.length-1];U.lang=B}function z(){const B=this.resume(),U=this.stack[this.stack.length-1];U.meta=B}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function O(){const B=this.resume(),U=this.stack[this.stack.length-1];U.value=B.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const B=this.resume(),U=this.stack[this.stack.length-1];U.value=B.replace(/(\r?\n|\r)$/g,"")}function N(B){const U=this.resume(),de=this.stack[this.stack.length-1];de.label=U,de.identifier=Wr(this.sliceSerialize(B)).toLowerCase()}function I(){const B=this.resume(),U=this.stack[this.stack.length-1];U.title=B}function Y(){const B=this.resume(),U=this.stack[this.stack.length-1];U.url=B}function G(B){const U=this.stack[this.stack.length-1];if(!U.depth){const de=this.sliceSerialize(B).length;U.depth=de}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function V(B){const U=this.stack[this.stack.length-1];U.depth=this.sliceSerialize(B).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function j(B){const de=this.stack[this.stack.length-1].children;let ye=de[de.length-1];(!ye||ye.type!=="text")&&(ye=sr(),ye.position={start:dr(B.start),end:void 0},de.push(ye)),this.stack.push(ye)}function M(B){const U=this.stack.pop();U.value+=this.sliceSerialize(B),U.position.end=dr(B.end)}function W(B){const U=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=U.children[U.children.length-1];de.position.end=dr(B.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(U.type)&&(j.call(this,B),M.call(this,B))}function $(){this.data.atHardBreak=!0}function be(){const B=this.resume(),U=this.stack[this.stack.length-1];U.value=B}function he(){const B=this.resume(),U=this.stack[this.stack.length-1];U.value=B}function le(){const B=this.resume(),U=this.stack[this.stack.length-1];U.value=B}function Ee(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=U,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function Ce(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=U,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function ue(B){const U=this.sliceSerialize(B),de=this.stack[this.stack.length-2];de.label=xu(U),de.identifier=Wr(U).toLowerCase()}function _e(){const B=this.stack[this.stack.length-1],U=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const ye=B.children;de.children=ye}else de.alt=U}function w(){const B=this.resume(),U=this.stack[this.stack.length-1];U.url=B}function Te(){const B=this.resume(),U=this.stack[this.stack.length-1];U.title=B}function Ae(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function et(B){const U=this.resume(),de=this.stack[this.stack.length-1];de.label=U,de.identifier=Wr(this.sliceSerialize(B)).toLowerCase(),this.data.referenceType="full"}function it(B){this.data.characterReferenceType=B.type}function He(B){const U=this.sliceSerialize(B),de=this.data.characterReferenceType;let ye;de?(ye=b0(U,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ye=vi(U);const Ne=this.stack[this.stack.length-1];Ne.value+=ye}function ft(B){const U=this.stack.pop();U.position.end=dr(B.end)}function tt(B){M.call(this,B);const U=this.stack[this.stack.length-1];U.url=this.sliceSerialize(B)}function _t(B){M.call(this,B);const U=this.stack[this.stack.length-1];U.url="mailto:"+this.sliceSerialize(B)}function at(){return{type:"blockquote",children:[]}}function wr(){return{type:"code",lang:null,meta:null,value:""}}function mn(){return{type:"inlineCode",value:""}}function pn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Or(){return{type:"emphasis",children:[]}}function Lr(){return{type:"heading",depth:0,children:[]}}function Dr(){return{type:"break"}}function xr(){return{type:"html",value:""}}function kr(){return{type:"image",title:null,url:"",alt:null}}function ar(){return{type:"link",title:null,url:"",children:[]}}function fn(B){return{type:"list",ordered:B.type==="listOrdered",start:null,spread:B._spread,children:[]}}function Ta(B){return{type:"listItem",spread:B._spread,checked:null,children:[]}}function Aa(){return{type:"paragraph",children:[]}}function ti(){return{type:"strong",children:[]}}function sr(){return{type:"text",value:""}}function ri(){return{type:"thematicBreak"}}}function dr(t){return{line:t.line,column:t.column,offset:t.offset}}function F0(t,e){let r=-1;for(;++r<e.length;){const n=e[r];Array.isArray(n)?F0(t,n):Eu(t,n)}}function Eu(t,e){let r;for(r in e)if(D0.call(e,r))switch(r){case"canContainEols":{const n=e[r];n&&t[r].push(...n);break}case"transforms":{const n=e[r];n&&t[r].push(...n);break}case"enter":case"exit":{const n=e[r];n&&Object.assign(t[r],n);break}}}function P0(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+zn({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+zn({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+zn({start:e.start,end:e.end})+") is still open")}class Tu{constructor(){this.map=[]}add(e,r,n){Au(this,e,r,n)}consume(e){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(e.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),e.length=this.map[r][0];n.push([...e]),e.length=0;let i=n.pop();for(;i;)e.push(...i),i=n.pop();this.map.length=0}}function Au(t,e,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<t.map.length;){if(t.map[i][0]===e){t.map[i][1]+=r,t.map[i][2].push(...n);return}i+=1}t.map.push([e,r,n])}}function Mu(t,e){let r=!1;const n=[];for(;e<t.length;){const i=t[e];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const a=n.length-1;n[a]=n[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);e+=1}return n}function Cu(){return{flow:{null:{name:"table",tokenize:_u,resolveAll:Nu}}}}function _u(t,e,r){const n=this;let i=0,a=0,s;return o;function o(M){let W=n.events.length-1;for(;W>-1;){const he=n.events[W][1].type;if(he==="lineEnding"||he==="linePrefix")W--;else break}const $=W>-1?n.events[W][1].type:null,be=$==="tableHead"||$==="tableRow"?C:u;return be===C&&n.parser.lazy[n.now().line]?r(M):be(M)}function u(M){return t.enter("tableHead"),t.enter("tableRow"),h(M)}function h(M){return M===124||(s=!0,a+=1),d(M)}function d(M){return M===null?r(M):re(M)?a>1?(a=0,n.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(M),t.exit("lineEnding"),f):r(M):we(M)?xe(t,d,"whitespace")(M):(a+=1,s&&(s=!1,i+=1),M===124?(t.enter("tableCellDivider"),t.consume(M),t.exit("tableCellDivider"),s=!0,d):(t.enter("data"),p(M)))}function p(M){return M===null||M===124||nt(M)?(t.exit("data"),d(M)):(t.consume(M),M===92?b:p)}function b(M){return M===92||M===124?(t.consume(M),p):p(M)}function f(M){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(M):(t.enter("tableDelimiterRow"),s=!1,we(M)?xe(t,z,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):z(M))}function z(M){return M===45||M===58?O(M):M===124?(s=!0,t.enter("tableCellDivider"),t.consume(M),t.exit("tableCellDivider"),E):G(M)}function E(M){return we(M)?xe(t,O,"whitespace")(M):O(M)}function O(M){return M===58?(a+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(M),t.exit("tableDelimiterMarker"),A):M===45?(a+=1,A(M)):M===null||re(M)?Y(M):G(M)}function A(M){return M===45?(t.enter("tableDelimiterFiller"),N(M)):G(M)}function N(M){return M===45?(t.consume(M),N):M===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(M),t.exit("tableDelimiterMarker"),I):(t.exit("tableDelimiterFiller"),I(M))}function I(M){return we(M)?xe(t,Y,"whitespace")(M):Y(M)}function Y(M){return M===124?z(M):M===null||re(M)?!s||i!==a?G(M):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(M)):G(M)}function G(M){return r(M)}function C(M){return t.enter("tableRow"),V(M)}function V(M){return M===124?(t.enter("tableCellDivider"),t.consume(M),t.exit("tableCellDivider"),V):M===null||re(M)?(t.exit("tableRow"),e(M)):we(M)?xe(t,V,"whitespace")(M):(t.enter("data"),ee(M))}function ee(M){return M===null||M===124||nt(M)?(t.exit("data"),V(M)):(t.consume(M),M===92?j:ee)}function j(M){return M===92||M===124?(t.consume(M),ee):ee(M)}}function Nu(t,e){let r=-1,n=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,h,d,p;const b=new Tu;for(;++r<t.length;){const f=t[r],z=f[1];f[0]==="enter"?z.type==="tableHead"?(o=!1,u!==0&&(q0(b,e,u,h,d),d=void 0,u=0),h={type:"table",start:Object.assign({},z.start),end:Object.assign({},z.end)},b.add(r,0,[["enter",h,e]])):z.type==="tableRow"||z.type==="tableDelimiterRow"?(n=!0,p=void 0,a=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,d={type:"tableBody",start:Object.assign({},z.start),end:Object.assign({},z.end)},b.add(r,0,[["enter",d,e]])),i=z.type==="tableDelimiterRow"?2:d?3:1):i&&(z.type==="data"||z.type==="tableDelimiterMarker"||z.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],p=En(b,e,a,i,void 0,p),a=[0,0,0,0]),s[2]=r)):z.type==="tableCellDivider"&&(n?n=!1:(a[1]!==0&&(s[0]=s[1],p=En(b,e,a,i,void 0,p)),a=s,s=[a[1],r,0,0])):z.type==="tableHead"?(o=!0,u=r):z.type==="tableRow"||z.type==="tableDelimiterRow"?(u=r,a[1]!==0?(s[0]=s[1],p=En(b,e,a,i,r,p)):s[1]!==0&&(p=En(b,e,s,i,r,p)),i=0):i&&(z.type==="data"||z.type==="tableDelimiterMarker"||z.type==="tableDelimiterFiller")&&(s[3]=r)}for(u!==0&&q0(b,e,u,h,d),b.consume(e.events),r=-1;++r<e.events.length;){const f=e.events[r];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=Mu(e.events,r))}return t}function En(t,e,r,n,i,a){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(a.end=Object.assign({},jr(e.events,r[0])),t.add(r[0],0,[["exit",a,e]]));const u=jr(e.events,r[1]);if(a={type:s,start:Object.assign({},u),end:Object.assign({},u)},t.add(r[1],0,[["enter",a,e]]),r[2]!==0){const h=jr(e.events,r[2]),d=jr(e.events,r[3]),p={type:o,start:Object.assign({},h),end:Object.assign({},d)};if(t.add(r[2],0,[["enter",p,e]]),n!==2){const b=e.events[r[2]],f=e.events[r[3]];if(b[1].end=Object.assign({},f[1].end),b[1].type="chunkText",b[1].contentType="text",r[3]>r[2]+1){const z=r[2]+1,E=r[3]-r[2]-1;t.add(z,E,[])}}t.add(r[3]+1,0,[["exit",p,e]])}return i!==void 0&&(a.end=Object.assign({},jr(e.events,i)),t.add(i,0,[["exit",a,e]]),a=void 0),a}function q0(t,e,r,n,i){const a=[],s=jr(e.events,r);i&&(i.end=Object.assign({},s),a.push(["exit",i,e])),n.end=Object.assign({},s),a.push(["exit",n,e]),t.add(r+1,0,a)}function jr(t,e){const r=t[e],n=r[0]==="enter"?"start":"end";return r[1][n]}function b4(){}function Bu(){return{enter:{table:Ru,tableData:U0,tableHeader:U0,tableRow:Ou},exit:{codeText:Lu,table:Iu,tableData:Ai,tableHeader:Ai,tableRow:Ai}}}function Ru(t){const e=t._align;this.enter({type:"table",align:e.map(function(r){return r==="none"?null:r}),children:[]},t),this.data.inTable=!0}function Iu(t){this.exit(t),this.data.inTable=void 0}function Ou(t){this.enter({type:"tableRow",children:[]},t)}function Ai(t){this.exit(t)}function U0(t){this.enter({type:"tableCell",children:[]},t)}function Lu(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,Du));const r=this.stack[this.stack.length-1];r.type,r.value=e,this.exit(t)}function Du(t,e){return e==="|"?e:t}class H0{constructor(e,r){P(this,"node");P(this,"codeNode");P(this,"_language");P(this,"_code");P(this,"_ct");this.node=_("pre",null,this.codeNode=_("code",null)),this.updateCodeAsync(e,r,this._ct=new Kt)}async updateCodeAsync(e,r,n){const i=Pu(e);if(i){if(await i.promise,n.isCancellationRequested)return;this._language=e,this._code=r,this.codeNode.innerHTML=Yt.result.default.highlight(r,{language:e}).value}else this._language=e,this._code=r,this.codeNode.textContent=r}updateCode(e,r){this._ct.cancel(),!(this._language===e&&this._code===r)&&this.updateCodeAsync(e,r,this._ct=new Kt)}}let Yt;function Fu(){return Yt||(Yt={promise:Promise.resolve().then(()=>gd)},Yt.promise.then(t=>Yt.result=t).catch(t=>Yt.error=t),Yt)}const G0={};function Pu(t){let e=G0[t];if(e)return e;Fu();let r;switch(t){case"javascript":r=Promise.resolve().then(()=>kd);break;case"csharp":r=Promise.resolve().then(()=>zd);break;case"python":r=Promise.resolve().then(()=>Td);break;case"css":r=Promise.resolve().then(()=>Ld);break;case"typescript":r=Promise.resolve().then(()=>Pd);break;default:return null}return e={promise:(async()=>{const n=await r;return(await Yt.promise).default.registerLanguage(t,n.default),n.default})()},G0[t]=e,e.promise.then(n=>e.result=n).catch(n=>e.error=n),e}function qu(t,e){console.debug("getImageFromPyodide",e);var r=t.FS.readFile(e,{encoding:"binary"});const n=new Blob([r],{type:"image/png"});return URL.createObjectURL(n)}const Uu={tokenize:Hu,concrete:!0,name:"mathFlow"},$0={tokenize:Gu,partial:!0};function Hu(t,e,r){const n=this,i=n.events[n.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let s=0;return o;function o(N){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),u(N)}function u(N){return N===36?(t.consume(N),s++,u):s<2?r(N):(t.exit("mathFlowFenceSequence"),xe(t,h,"whitespace")(N))}function h(N){return N===null||re(N)?p(N):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),d(N))}function d(N){return N===null||re(N)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),p(N)):N===36?r(N):(t.consume(N),d)}function p(N){return t.exit("mathFlowFence"),n.interrupt?e(N):t.attempt($0,b,O)(N)}function b(N){return t.attempt({tokenize:A,partial:!0},O,f)(N)}function f(N){return(a?xe(t,z,"linePrefix",a+1):z)(N)}function z(N){return N===null?O(N):re(N)?t.attempt($0,b,O)(N):(t.enter("mathFlowValue"),E(N))}function E(N){return N===null||re(N)?(t.exit("mathFlowValue"),z(N)):(t.consume(N),E)}function O(N){return t.exit("mathFlow"),e(N)}function A(N,I,Y){let G=0;return xe(N,C,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function C(j){return N.enter("mathFlowFence"),N.enter("mathFlowFenceSequence"),V(j)}function V(j){return j===36?(G++,N.consume(j),V):G<s?Y(j):(N.exit("mathFlowFenceSequence"),xe(N,ee,"whitespace")(j))}function ee(j){return j===null||re(j)?(N.exit("mathFlowFence"),I(j)):Y(j)}}}function Gu(t,e,r){const n=this;return i;function i(s){return s===null?e(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):e(s)}}function $u(t){let r={}.singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:Wu,previous:ju,name:"mathText"};function n(i,a,s){let o=0,u,h;return d;function d(E){return i.enter("mathText"),i.enter("mathTextSequence"),p(E)}function p(E){return E===36?(i.consume(E),o++,p):o<2&&!r?s(E):(i.exit("mathTextSequence"),b(E))}function b(E){return E===null?s(E):E===36?(h=i.enter("mathTextSequence"),u=0,z(E)):E===32?(i.enter("space"),i.consume(E),i.exit("space"),b):re(E)?(i.enter("lineEnding"),i.consume(E),i.exit("lineEnding"),b):(i.enter("mathTextData"),f(E))}function f(E){return E===null||E===32||E===36||re(E)?(i.exit("mathTextData"),b(E)):(i.consume(E),f)}function z(E){return E===36?(i.consume(E),u++,z):u===o?(i.exit("mathTextSequence"),i.exit("mathText"),a(E)):(h.type="mathTextData",f(E))}}}function Wu(t){let e=t.length-4,r=3,n,i;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(n=r;++n<e;)if(t[n][1].type==="mathTextData"){t[e][1].type="mathTextPadding",t[r][1].type="mathTextPadding",r+=2,e-=2;break}}for(n=r-1,e++;++n<=e;)i===void 0?n!==e&&t[n][1].type!=="lineEnding"&&(i=n):(n===e||t[n][1].type==="lineEnding")&&(t[i][1].type="mathTextData",n!==i+2&&(t[i][1].end=t[n-1][1].end,t.splice(i+2,n-i-2),e-=n-i-2,n=i+2),i=void 0);return t}function ju(t){return t!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Vu(t){return{flow:{36:Uu},text:{36:$u()}}}class bt{constructor(e,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=r,this.end=n}static range(e,r){return r?!e||!e.loc||!r.loc||e.loc.lexer!==r.loc.lexer?null:new bt(e.loc.lexer,e.loc.start,r.loc.end):e&&e.loc}}class zt{constructor(e,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=r}range(e,r){return new zt(r,bt.range(this,e))}}class F{constructor(e,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+e,i,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?n+=" at end of input: ":n+=" at position "+(i+1)+": ";var u=o.slice(i,a).replace(/[^]/g,"$&̲"),h;i>15?h="…"+o.slice(i-15,i):h=o.slice(0,i);var d;a+15<o.length?d=o.slice(a,a+15)+"…":d=o.slice(a),n+=h+u+d}var p=new Error(n);return p.name="ParseError",p.__proto__=F.prototype,p.position=i,i!=null&&a!=null&&(p.length=a-i),p.rawMessage=e,p}}F.prototype.__proto__=Error.prototype;var Xu=function(e,r){return e.indexOf(r)!==-1},Ku=function(e,r){return e===void 0?r:e},Yu=/([A-Z])/g,Zu=function(e){return e.replace(Yu,"-$1").toLowerCase()},Ju={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Qu=/[&><"']/g;function ec(t){return String(t).replace(Qu,e=>Ju[e])}var W0=function t(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?t(e.body[0]):e:e.type==="font"?t(e.body):e},tc=function(e){var r=W0(e);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},rc=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},nc=function(e){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},ie={contains:Xu,deflt:Ku,escape:ec,hyphenate:Zu,getBaseElem:W0,isCharacterBox:tc,protocolFromUrl:nc},Tn={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:t=>"#"+t},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(t,e)=>(e.push(t),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:t=>Math.max(0,t),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:t=>Math.max(0,t),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:t=>Math.max(0,t),cli:"-e, --max-expand <n>",cliProcessor:t=>t==="Infinity"?1/0:parseInt(t)},globalGroup:{type:"boolean",cli:!1}};function ic(t){if(t.default)return t.default;var e=t.type,r=Array.isArray(e)?e[0]:e;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Mi{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r in Tn)if(Tn.hasOwnProperty(r)){var n=Tn[r];this[r]=e[r]!==void 0?n.processor?n.processor(e[r]):e[r]:ic(n)}}reportNonstrict(e,r,n){var i=this.strict;if(typeof i=="function"&&(i=i(e,r,n)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new F("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+e+"]"),n);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]"))}}useStrictBehavior(e,r,n){var i=this.strict;if(typeof i=="function")try{i=i(e,r,n)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+r+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var r=ie.protocolFromUrl(e.url);if(r==null)return!1;e.protocol=r}var n=typeof this.trust=="function"?this.trust(e):this.trust;return!!n}}class mr{constructor(e,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=n}sup(){return Ut[ac[this.id]]}sub(){return Ut[sc[this.id]]}fracNum(){return Ut[oc[this.id]]}fracDen(){return Ut[lc[this.id]]}cramp(){return Ut[uc[this.id]]}text(){return Ut[cc[this.id]]}isTight(){return this.size>=2}}var Ci=0,An=1,Vr=2,Zt=3,nn=4,Et=5,Xr=6,lt=7,Ut=[new mr(Ci,0,!1),new mr(An,0,!0),new mr(Vr,1,!1),new mr(Zt,1,!0),new mr(nn,2,!1),new mr(Et,2,!0),new mr(Xr,3,!1),new mr(lt,3,!0)],ac=[nn,Et,nn,Et,Xr,lt,Xr,lt],sc=[Et,Et,Et,Et,lt,lt,lt,lt],oc=[Vr,Zt,nn,Et,Xr,lt,Xr,lt],lc=[Zt,Zt,Et,Et,lt,lt,lt,lt],uc=[An,An,Zt,Zt,Et,Et,lt,lt],cc=[Ci,An,Vr,Zt,Vr,Zt,Vr,Zt],se={DISPLAY:Ut[Ci],TEXT:Ut[Vr],SCRIPT:Ut[nn],SCRIPTSCRIPT:Ut[Xr]},_i=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function hc(t){for(var e=0;e<_i.length;e++)for(var r=_i[e],n=0;n<r.blocks.length;n++){var i=r.blocks[n];if(t>=i[0]&&t<=i[1])return r.name}return null}var Mn=[];_i.forEach(t=>t.blocks.forEach(e=>Mn.push(...e)));function j0(t){for(var e=0;e<Mn.length;e+=2)if(t>=Mn[e]&&t<=Mn[e+1])return!0;return!1}var Kr=80,dc=function(e,r){return"M95,"+(622+e+r)+`
7
7
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
8
8
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
9
9
  c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
@@ -267,9 +267,9 @@ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
267
267
  `);break;case"t":e.push(" ");break;case"r":e.push("\r");break;case"\\":e.push("\\");break;case"'":e.push("'");break;case'"':e.push('"');break;case"b":e.push("\b");break;case"f":e.push("\f");break;case"v":e.push("\v");break;case"a":e.push("a");break;case"0":e.push("\0");break;case"u":r+5<t.length&&(e.push(String.fromCharCode(parseInt(t.substring(r+2,r+6),16))),r+=4);break;case"U":r+9<t.length&&(e.push(String.fromCodePoint(parseInt(t.substring(r+2,r+10),16))),r+=8);break;default:e.push(t[r+1]);break}r+=2}else e.push(t[r]),r++;return e.join("")}function ad(t){const e=[...sd(t)];if(e.length){const n=e[e.length-1];n===","?e.pop():n===":"&&e.push("undefined")}const r=[];for(const n of e)if(n==="{"||n==="[")r.push(n);else if(n==="}")if(r.length&&r[r.length-1]==="{")r.pop();else throw new Error("Invalid JSON");else if(n==="]")if(r.length&&r[r.length-1]==="[")r.pop();else throw new Error("Invalid JSON");for(;r.length;)r.pop()==="{"?e.push("}"):e.push("]");return JSON.parse(e.join(""))}function*sd(t){for(let e=0;e<t.length;++e){let r=t[e];switch(r){case" ":case" ":case`
268
268
  `:case"\r":break;case",":case":":case"{":case"}":case"[":case"]":yield r;break;case'"':let n=e++;for(;;++e)if(e<t.length){if(r=t[e],r==='"'){yield t.substring(n,e+1);break}if(r==="\\")if(e+1<t.length)if(t[e+1]==="u")if(e+5<t.length)e+=5;else{yield t.substring(n,e)+'"';return}else++e;else{yield t.substring(n,e)+'"';return}}else{yield t.substring(n,e)+'"';return}break;default:yield r;break}}}function Ao({size:t=Ct.Medium,...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 256 512"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e);const n=qe("path");return n.setAttribute("d","M119.5 326.9L3.5 209.1c-4.7-4.7-4.7-12.3 0-17l7.1-7.1c4.7-4.7 12.3-4.7 17 0L128 287.3l100.4-102.2c4.7-4.7 12.3-4.7 17 0l7.1 7.1c4.7 4.7 4.7 12.3 0 17L136.5 327c-4.7 4.6-12.3 4.6-17-.1z"),r.appendChild(n),r.classList.add("icon"),r}function ka({size:t=Ct.Medium,...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 320 512"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e);const n=qe("path");return n.setAttribute("d","M193.94 256L296.5 153.44l21.15-21.15c3.12-3.12 3.12-8.19 0-11.31l-22.63-22.63c-3.12-3.12-8.19-3.12-11.31 0L160 222.06 36.29 98.34c-3.12-3.12-8.19-3.12-11.31 0L2.34 120.97c-3.12 3.12-3.12 8.19 0 11.31L126.06 256 2.34 379.71c-3.12 3.12-3.12 8.19 0 11.31l22.63 22.63c3.12 3.12 8.19 3.12 11.31 0L160 289.94 262.56 392.5l21.15 21.15c3.12 3.12 8.19 3.12 11.31 0l22.63-22.63c3.12-3.12 3.12-8.19 0-11.31L193.94 256z"),r.appendChild(n),r.classList.add("icon"),r}class Mo{constructor(e,r){P(this,"node");P(this,"_buttonNode");P(this,"_buttonIconWrapperNode");P(this,"_expanded",!1);P(this,"_expandedCt");P(this,"_contentWrapperNode");P(this,"_contentNode");P(this,"_highlightCode");P(this,"_stdoutStderrNode");P(this,"_stdoutNode");P(this,"_stderrNode");P(this,"_resultNode");P(this,"_resultRawNode");P(this,"_errorNode");P(this,"_ignoreSetResult");this.context=e,this.context.conversationMessage.chat.lazyInitializePyodideAsync(),this._highlightCode=new H0("python",r instanceof To?Co(r.functionArguments):r),this._highlightCode.node.classList.add("p-3","bg-Sandstone-97","text-Black","overflow-x-auto"),this.node=_("div",{class:"my-2"},this._buttonNode=_(tn,{class:"p-2 gap-2 group",variant:Ft.Badge,size:$r.Medium,onclick:()=>this.expanded=!this.expanded},this._buttonIconWrapperNode=_("div",{width:"24px",height:"24px"},_(Jn,{size:dn.Small})),"Generate and run Python code",_(Ao,{class:"transition-all duration-300 group-data-[expanded=true]:-rotate-180"})),this._contentWrapperNode=_("div",{class:"grid",gridTemplateRows:this._expanded?"1fr":"0fr",opacity:this._expanded?"1":"0","aria-expanded":this._expanded},_("div",{class:"overflow-hidden"},this._contentNode=_("section",{class:"mt-2 border border-Light flex flex-col text-sm"},this._highlightCode.node))))}get expanded(){return this._expanded}set expanded(e){var r;if(e!==this._expanded){(r=this._expandedCt)==null||r.cancel();const n=this._expandedCt=new Kt;this._buttonNode.setAttribute("data-expanded",String(this._expanded=e)),e?(async()=>{try{await cr(this._contentWrapperNode,[{gridTemplateRows:"1fr"}],{duration:300,easing:"ease-in-out",fill:"forwards"},this._expandedCt),await cr(this._contentWrapperNode,[{opacity:"1"}],{duration:300,easing:"ease-in-out",fill:"forwards"},this._expandedCt)}catch(i){if(!n.isCancellationRequested)throw i}})():(async()=>{try{await cr(this._contentWrapperNode,[{opacity:"0"}],{duration:300,easing:"ease-in-out",fill:"forwards"},this._expandedCt),await cr(this._contentWrapperNode,[{gridTemplateRows:"0fr"}],{duration:300,easing:"ease-in-out",fill:"forwards"},this._expandedCt)}catch(i){if(!n.isCancellationRequested)throw i}})()}}setButtonSuccess(){this._buttonNode.setAttribute("data-status","success"),this._buttonIconWrapperNode.replaceChild(_(Yn,null),this._buttonIconWrapperNode.firstChild)}setButtonError(){this._buttonNode.setAttribute("data-status","error"),this._buttonIconWrapperNode.replaceChild(_(ka,null),this._buttonIconWrapperNode.firstChild)}getOrAddStdoutStderrNode(){return this._stdoutStderrNode?this._stdoutStderrNode:(this._stdoutStderrNode=_("section",{class:"border-t border-t-Light p-3 bg-Black text-White text-sm"},_("h1",{class:"mb-2"},"STDOUT / STDERR")),this._contentNode.insertBefore(this._stdoutStderrNode,this._highlightCode.node.nextSibling),this._stdoutStderrNode)}getOrAddStdoutNode(){return this._stdoutNode?this._stdoutNode:(this._stderrNode=null,this._stdoutNode=_("pre",null),this.getOrAddStdoutStderrNode().appendChild(this._stdoutNode),this._stdoutNode)}getOrAddStderrNode(){return this._stderrNode?this._stderrNode:(this._stdoutNode=null,this._stderrNode=_("pre",{class:"text-Energy-Red-45"}),this.getOrAddStdoutStderrNode().appendChild(this._stderrNode),this._stderrNode)}getOrAddErrorNode(){return this._errorNode?this._errorNode:(this._errorNode=_("pre",{class:"border-t border-t-Light border-l-4 border-Energy-Red-45 p-3 text-sm"}),this._contentNode.appendChild(this._errorNode),this._errorNode)}getOrAddResultRawNode(){return this._resultRawNode?this._resultRawNode:(this._resultNode=_("section",{class:"border-t border-t-Light p-3 bg-Black text-White text-sm"},_("h1",{class:"mb-2"},"RESULT"),this._resultRawNode=_("pre",null)),this._contentNode.appendChild(this._resultNode),this._resultRawNode)}onClientResult(e){if(!this._ignoreSetResult){if(e.stdoutAndStderr)for(const r of e.stdoutAndStderr)r.isStderr?this.getOrAddStderrNode().textContent+=r.text:this.getOrAddStdoutNode().textContent+=r.text;e.terminatedWithError?(this.setButtonError(),e.error&&(this.getOrAddErrorNode().textContent=e.error)):e.result&&(this.setButtonSuccess(),this.getOrAddResultRawNode().textContent=e.result)}}onOpcodeMessageToolCallErrorReceived(e){this.setButtonError()}onErrorWhileReadingBodyStream(e){this.setButtonError()}async run(e){this._ignoreSetResult=!0;const r=this.context.conversationMessage.chat,n=[];try{await r.lazyInitializePyodideAsync(),r.pyodide.setStdout({batched:s=>{const o=s.split(`
269
269
  `);if(n.length){const u=n[n.length-1];u.isStderr?n.push(...o.map(h=>({isStderr:!1,text:h}))):(u.text+=o.shift(),n.push(...o.map(h=>({isStderr:!1,text:h}))))}else n.push(...o.map(u=>({isStderr:!1,text:u})));this.getOrAddStdoutNode().textContent+=s}}),r.pyodide.setStderr({batched:s=>{const o=s.split(`
270
- `);if(n.length){const u=n[n.length-1];u.isStderr?(u.text+=o.shift(),n.push(...o.map(h=>({isStderr:!0,text:h})))):n.push(...o.map(h=>({isStderr:!0,text:h})))}else n.push(...o.map(u=>({isStderr:!0,text:u})));this.getOrAddStderrNode().textContent+=s}});const a=await r.runPythonCodeAsync(e);var i=a===void 0?"None":String(a)}catch(a){this.setButtonError();const s=String(a);this.getOrAddErrorNode().textContent=s,console.error(a),await this.context.postResultAsync({terminatedWithError:!0,error:s,stdoutAndStderr:n});return}this.setButtonSuccess(),i&&(this.getOrAddResultRawNode().textContent=i),await this.context.postResultAsync({result:i,stdoutAndStderr:n})}updateWithToolCallData(e){this._highlightCode.updateCode("python",Co(e.functionArguments))}}function Co(t){if(!t.startsWith("{"))return t;var e=t.indexOf("Code:");if(e!=-1&&t.substring(0,e).trim()=="{"&&(t='{"Code":'+t.substring(e+5)),e=t.indexOf('"""'),e!=-1){var r=t.lastIndexOf('"""');if(e<r&&t.substring(r+3).trim()=="}"){var n=id(t.substring(e+3,r-(e+3))),i=t.substring(0,e)+JSON.stringify(n)+t.substring(r+3);t=i}}try{var a=ad(t)}catch{return console.warn("Error parsing Python code arguments provided as JSON.",t),""}return(a==null?void 0:a.Code)||(a==null?void 0:a.code)||""}class od{constructor(e,r){P(this,"node");P(this,"_buttonNode");P(this,"_buttonIconWrapperNode");this.context=e,this.node=_("div",{class:"my-2"},this._buttonNode=_(tn,{as:"div",class:"p-2 pr-3 gap-2 select-none",variant:Ft.Badge,size:$r.Medium},this._buttonIconWrapperNode=_("div",{width:"24px",height:"24px"},_(Jn,{size:dn.Small})),`Search for '${r}'`))}setButtonSuccess(){this._buttonNode.setAttribute("data-status","success"),this._buttonIconWrapperNode.replaceChild(_(Yn,null),this._buttonIconWrapperNode.firstChild)}setButtonError(){this._buttonNode.setAttribute("data-status","error"),this._buttonIconWrapperNode.replaceChild(_(ka,null),this._buttonIconWrapperNode.firstChild)}onOpcodeMessageToolCallResultReceived(e){this.setButtonSuccess()}onOpcodeMessageToolCallErrorReceived(e){this.setButtonError()}onErrorWhileReadingBodyStream(e){this.setButtonError()}run(e){}}class ld extends Qn{constructor(r,n){super();P(this,"node");this.context=r;let i;switch(n.type){case Rt.Error:i=_(wa,{class:"text-Energy-Red-45"});break;case Rt.Danger:i=_(Zn,{class:"text-Energy-Red-45"});break;case Rt.Warning:i=_(Zn,{class:"text-Terracotta-30"});break;case Rt.Info:i=_(xa,{class:"text-Sea-Blue-Main-28"});break;case Rt.Success:i=_(Eo,{class:"text-Land-Green-30"});break}i.classList.add("shrink-0");let a;this.node=_("section",{class:"max-w-lg text-left my-2 bg-Sandstone-97 select-none border border-Light"},_("div",{class:"p-6 pb-3 flex gap-5"},i,_("div",null,_("h6",null,n.title),a=_("div",{class:"prose prose-sm prose-neutral"}))),_("fieldset",{class:"p-6 pt-3 flex justify-end gap-3"},_(tn,{as:"a",variant:Ft.Tertiary,class:"min-w-24",size:$r.Medium,target:"_blank",href:n.url},"Open in new tab"))),ba(a,n.textInMarkdown,this.context.conversationMessage.chat.pyodide,this.context.conversationMessage.chat.mdastExtensions),n.openRightAway&&window.open(n.url,n.target,n.windowFeatures)}onOpcodeMessageToolCallErrorReceived(r){}onErrorWhileReadingBodyStream(r){}}function Sa({size:t=Ct.Medium,...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 20 20"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e);const n=qe("path");return n.setAttribute("d","M10.9153 1.83987L11.2942 1.88772L11.4749 1.91507C13.2633 2.24201 14.4107 4.01717 13.9749 5.78225L13.9261 5.95901L13.3987 7.6719C13.7708 7.67575 14.0961 7.68389 14.3792 7.70608C14.8737 7.74486 15.3109 7.82759 15.7015 8.03323L15.8528 8.11819C16.5966 8.56353 17.1278 9.29625 17.3167 10.1475L17.347 10.3096C17.403 10.69 17.3647 11.0832 17.2835 11.5098C17.2375 11.7517 17.1735 12.0212 17.096 12.3233L16.8255 13.3321L16.4456 14.7276C16.2076 15.6001 16.0438 16.2356 15.7366 16.7305L15.595 16.9346C15.2989 17.318 14.9197 17.628 14.4866 17.8408L14.2982 17.9258C13.6885 18.1774 12.9785 18.1651 11.9446 18.1651H7.33331C6.64422 18.1651 6.08726 18.1657 5.63702 18.1289C5.23638 18.0962 4.87565 18.031 4.53936 17.8867L4.39679 17.8203C3.87576 17.5549 3.43916 17.151 3.13507 16.6553L3.013 16.4366C2.82119 16.0599 2.74182 15.6541 2.7044 15.1963C2.66762 14.7461 2.66827 14.1891 2.66827 13.5V11.667C2.66827 10.9349 2.66214 10.4375 2.77569 10.0137L2.83722 9.81253C3.17599 8.81768 3.99001 8.05084 5.01397 7.77639L5.17706 7.73928C5.56592 7.66435 6.02595 7.66799 6.66632 7.66799C6.9429 7.66799 7.19894 7.52038 7.33624 7.2803L10.2562 2.16995L10.3118 2.08792C10.4544 1.90739 10.6824 1.81092 10.9153 1.83987ZM7.33136 14.167C7.33136 14.9841 7.33714 15.2627 7.39386 15.4746L7.42999 15.5918C7.62644 16.1686 8.09802 16.6134 8.69171 16.7725L8.87042 16.8067C9.07652 16.8323 9.38687 16.835 10.0003 16.835H11.9446C13.099 16.835 13.4838 16.8228 13.7903 16.6963L13.8997 16.6465C14.1508 16.5231 14.3716 16.3444 14.5433 16.1221L14.6155 16.0166C14.7769 15.7552 14.8968 15.3517 15.1624 14.378L15.5433 12.9824L15.8079 11.9922C15.8804 11.7102 15.9368 11.4711 15.9769 11.2608C16.0364 10.948 16.0517 10.7375 16.0394 10.5791L16.0179 10.4356C15.9156 9.97497 15.641 9.57381 15.2542 9.31253L15.0814 9.20999C14.9253 9.12785 14.6982 9.06544 14.2747 9.03225C13.8477 8.99881 13.2923 8.99807 12.5003 8.99807C12.2893 8.99807 12.0905 8.89822 11.9651 8.72854C11.8398 8.55879 11.8025 8.33942 11.8646 8.13772L12.6556 5.56741L12.7054 5.36331C12.8941 4.35953 12.216 3.37956 11.1878 3.2178L8.49054 7.93948C8.23033 8.39484 7.81431 8.72848 7.33136 8.88967V14.167ZM3.99835 13.5C3.99835 14.2111 3.99924 14.7044 4.03058 15.0879C4.06128 15.4636 4.11804 15.675 4.19854 15.833L4.26886 15.959C4.44517 16.2466 4.69805 16.4808 5.0003 16.6348L5.13019 16.6905C5.27397 16.7419 5.46337 16.7797 5.74542 16.8028C5.97772 16.8217 6.25037 16.828 6.58722 16.8311C6.41249 16.585 6.27075 16.3136 6.1712 16.0215L6.10968 15.8194C5.99614 15.3956 6.00128 14.899 6.00128 14.167V9.00296C5.79386 9.0067 5.65011 9.01339 5.53741 9.02737L5.3587 9.06057C4.76502 9.21965 4.29247 9.66448 4.09601 10.2412L4.06085 10.3584C4.00404 10.5705 3.99835 10.8493 3.99835 11.667V13.5Z"),r.appendChild(n),r.classList.add("icon"),r}function za({size:t=Ct.Medium,...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 20 20"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e);const n=qe("path");return n.setAttribute("d","M12.6687 5.83304C12.6687 5.22006 12.6649 4.91019 12.6394 4.70413L12.6062 4.52542C12.4471 3.93179 12.0022 3.45922 11.4255 3.26272L11.3083 3.22757C11.0963 3.17075 10.8175 3.16507 9.99974 3.16507H8.0554C7.04558 3.16507 6.62456 3.17475 6.32982 3.26175L6.2097 3.30374C5.95005 3.41089 5.71908 3.57635 5.53392 3.78616L5.45677 3.87796C5.30475 4.0748 5.20336 4.33135 5.03392 4.91702L4.83763 5.6221L4.45677 7.01761C4.24829 7.78204 4.10326 8.31846 4.02318 8.73929C3.94374 9.15672 3.94298 9.39229 3.98119 9.56448L4.03587 9.75784C4.18618 10.1996 4.50043 10.5702 4.91771 10.7901L5.05052 10.8477C5.20009 10.9014 5.40751 10.9429 5.72533 10.9678C6.15231 11.0012 6.70771 11.002 7.49974 11.002C7.71076 11.002 7.90952 11.1018 8.0349 11.2715C8.14465 11.4201 8.18683 11.6067 8.15404 11.7862L8.13548 11.8623L7.34447 14.4326C7.01523 15.5033 7.71404 16.6081 8.81126 16.7813L11.5095 12.0606L11.5827 11.9405C11.8445 11.5461 12.2289 11.2561 12.6687 11.1094V5.83304ZM17.3318 8.33304C17.3318 8.97366 17.3364 9.43432 17.2615 9.82327L17.2234 9.98538C16.949 11.0094 16.1821 11.8233 15.1872 12.1621L14.9861 12.2237C14.5624 12.3372 14.0656 12.3321 13.3337 12.3321C13.0915 12.3321 12.8651 12.4453 12.7204 12.6348L12.6638 12.7198L9.74388 17.8301C9.61066 18.0631 9.35005 18.1935 9.08372 18.1602L8.70579 18.1123C6.75379 17.8682 5.49542 15.9213 6.07396 14.041L6.60033 12.3272C6.22861 12.3233 5.90377 12.3161 5.62083 12.294C5.18804 12.26 4.79914 12.1931 4.44701 12.0391L4.29857 11.9668C3.52688 11.5605 2.95919 10.8555 2.72533 10.0205L2.68333 9.85257C2.58769 9.42154 2.62379 8.97768 2.71654 8.49026C2.80865 8.00634 2.97082 7.41139 3.17357 6.668L3.55443 5.27249L3.74583 4.58011C3.9286 3.94171 4.10186 3.45682 4.40404 3.06546L4.53685 2.9053C4.85609 2.54372 5.25433 2.25896 5.70189 2.07425L5.93626 1.99222C6.49455 1.82612 7.15095 1.83499 8.0554 1.83499H12.6667C13.3558 1.83499 13.9128 1.83434 14.363 1.87112C14.8208 1.90854 15.2266 1.98789 15.6033 2.17972L15.821 2.30179C16.317 2.6059 16.7215 3.04226 16.987 3.56351L17.0535 3.70608C17.1977 4.04236 17.2629 4.40311 17.2956 4.80374C17.3324 5.25398 17.3318 5.81094 17.3318 6.50003V8.33304ZM13.9978 10.9961C14.3321 10.9901 14.5013 10.977 14.6413 10.9395L14.7585 10.9033C15.3353 10.7069 15.7801 10.2353 15.9392 9.64163L15.9724 9.46292C15.998 9.25682 16.0017 8.94657 16.0017 8.33304V6.50003C16.0017 5.78899 16.0008 5.29566 15.9695 4.91214C15.9464 4.6301 15.9086 4.44069 15.8572 4.2969L15.8015 4.16702C15.6475 3.86478 15.4133 3.6119 15.1257 3.43558L14.9997 3.36526C14.8418 3.28477 14.6302 3.228 14.2546 3.19729C14.0221 3.1783 13.7491 3.17109 13.4118 3.168C13.6267 3.47028 13.7914 3.81126 13.8904 4.18069L13.9275 4.34378C13.981 4.62163 13.9947 4.93582 13.9978 5.3262V10.9961Z"),r.appendChild(n),r.classList.add("icon"),r}function ud({size:t=Ct.Medium,...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 32 32"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e);const n=qe("path");return n.setAttribute("d","M18.1215 16.0003L24.5315 9.59034L25.8534 8.26846C26.0484 8.07346 26.0484 7.75659 25.8534 7.56159L24.439 6.14721C24.244 5.95221 23.9271 5.95221 23.7321 6.14721L16.0002 13.8791L8.26837 6.14659C8.07337 5.95159 7.75649 5.95159 7.56149 6.14659L6.14649 7.56096C5.95149 7.75596 5.95149 8.07284 6.14649 8.26784L13.879 16.0003L6.14649 23.7322C5.95149 23.9272 5.95149 24.2441 6.14649 24.4391L7.56087 25.8535C7.75587 26.0485 8.07274 26.0485 8.26774 25.8535L16.0002 18.1216L22.4102 24.5316L23.7321 25.8535C23.9271 26.0485 24.244 26.0485 24.439 25.8535L25.8534 24.4391C26.0484 24.2441 26.0484 23.9272 25.8534 23.7322L18.1215 16.0003Z"),r.appendChild(n),r.classList.add("icon"),r}class _o{constructor(e,r,n,i,a,s,o,u){P(this,"node");P(this,"_rightColumnNode");P(this,"_feedbackNode");P(this,"_showToolCallResult",!1);P(this,"_toolCallInfoNode");P(this,"_currentMessageBlockNode");P(this,"_currentMessageBlockNodeMarkdown");P(this,"_accumulatedMarkdown","");P(this,"_toolCallBuilder",new nd);P(this,"_clientFunctionInvocationsByOperationId",{});P(this,"_clientFunctionInvocationsByLlmFunctionId",{});P(this,"_subConversations",{});P(this,"_pulseNode");P(this,"_pulseNodeAnimation");P(this,"_suggestionTextList");this.conversation=e,this.authorRole=r,this.authorId=n,this.authorPictureUrl=i,this.authorDisplayName=a,this.authorEmail=s,this.messageId=o,this.copilitId=u,this.node=_("li",{class:"p-2 flex gap-2"},_(Zh,{class:"shrink-0",id:this.authorId,title:this.authorDisplayName},this.authorPictureUrl?_("img",{src:this.authorPictureUrl,class:"w-full h-full"}):_("span",{marginTop:"-.1em"},Yh(this.authorDisplayName))),this._rightColumnNode=_("div",{class:"shrink-0 flex-1"},_("div",{class:"font-medium text-base leading-5"},this.authorDisplayName))),this.ensureCurrentMessageBlockNode(),this._suggestionTextList=[{text:"Irrelevant answer",isActive:!1},{text:"Incorrect information",isActive:!1},{text:"Incomplete answer",isActive:!1},{text:"Offensive content",isActive:!1},{text:"Other",isActive:!1}]}get chat(){return this.conversation.chat}ensureCurrentMessageBlockNode(){if(!this._currentMessageBlockNode&&(this._rightColumnNode.appendChild(this._toolCallInfoNode=_("div",{class:"prose prose-neutral prose-sm max-w-none"})),this._rightColumnNode.appendChild(this._currentMessageBlockNode=_("div",{class:"prose prose-neutral prose-sm max-w-none"})),this._currentMessageBlockNodeMarkdown="",this.authorRole==="assistant")){this._pulseNode=_("div",{class:"inline-flex relative h-3 w-3"},_("div",{class:"absolute inline-flex h-full w-full rounded-full bg-Sky-Blue-80"}),_("div",{class:"relative inline-flex rounded-full h-full w-full bg-Sky-Blue-Main-77"})),this._currentMessageBlockNode.appendChild(this._pulseNode);const e=[{transform:"scale(2.5)",opacity:0,offset:.75},{transform:"scale(2.5)",opacity:0,offset:1}],r={duration:1500,iterations:1/0,easing:"cubic-bezier(0, 0, 0.2, 1)"};this._pulseNodeAnimation=this._pulseNode.firstElementChild.animate(e,r)}}removePulseNodeIfItIsThere(){const e=this._pulseNode;e&&(this._pulseNode=null,this._pulseNodeAnimation.cancel(),e.remove())}append(e){if(this._accumulatedMarkdown+=e,this.ensureCurrentMessageBlockNode(),this._currentMessageBlockNodeMarkdown+=e,this._pulseNode){var r=this._pulseNodeAnimation.currentTime;this._pulseNodeAnimation.pause(),this._pulseNode.remove()}ba(this._currentMessageBlockNode,this._currentMessageBlockNodeMarkdown,this.chat.pyodide,this.chat.mdastExtensions),this._pulseNode&&(this._pulseNodeAnimation.currentTime=r,this._pulseNode.classList.add("ml-[1ch]"),cd(this._currentMessageBlockNode).appendChild(this._pulseNode),this._pulseNodeAnimation.play())}toolCallUpdate(e){var n;const r=this._toolCallBuilder.append(e);if(r.llmFunctionId&&r.functionName){let i=this._clientFunctionInvocationsByLlmFunctionId[r.llmFunctionId];if(i){(n=i.updateWithToolCallData)==null||n.call(i,r);return}const a=this.chat.clientFunctionInvocationHandlersPartial[r.functionName];if(a){const s=new d0(r.llmFunctionId,null,this),o=a(s,r);this._clientFunctionInvocationsByLlmFunctionId[r.llmFunctionId]=o,this.removePulseNodeIfItIsThere(),o.node&&(this._rightColumnNode.appendChild(o.node),o instanceof Qn&&o.context.conversationMessage.expandAsync(),this._currentMessageBlockNode=null,this._currentMessageBlockNodeMarkdown=null)}}}onOpcodeMessageInvokeClientFunctionReceived(e,r,n,i){var h,d;const a=JSON.parse(i);let s=this._clientFunctionInvocationsByOperationId[r];if(s){s.run(...a);return}if(s=this._clientFunctionInvocationsByLlmFunctionId[e],s&&!s.context.operationId){s.context.operationId=r,this.chat.clientFunctionInvocationsByOperationId[r]=s,this._clientFunctionInvocationsByOperationId[r]=s,(h=s.run)==null||h.call(s,...a);return}const o=new d0(e,r,this),u=this.chat.clientFunctionInvocationHandlers[n];if(u)s=u(o,...a),this.chat.clientFunctionInvocationsByOperationId[r]=s,this._clientFunctionInvocationsByOperationId[r]=s,this._clientFunctionInvocationsByLlmFunctionId[e]=s,(d=s.run)==null||d.call(s,...a),this.removePulseNodeIfItIsThere(),s.node&&(this._rightColumnNode.appendChild(s.node),s instanceof Qn&&s.context.conversationMessage.expandAsync(),this._currentMessageBlockNode=null,this._currentMessageBlockNodeMarkdown=null);else{const p=`Function '${n}' not found. This occurs if a tool / function has been invoked, that requires some sort of user interaction (e.g. to obtain confirmation or to fill out some form values), then contacts the front-end to obtain a response, but the front-end is unable to handle the request because the function to be invoked does not exist. This error was thrown in the front-end. This most likely indicates that the bot is set up incorrectly, and the user should contact support.`;o.postErrorAsync(p)}}setClientInvocationResult(e,r){var n;(n=e.onClientResult)==null||n.call(e,r)}setClientInvocationError(e,r){var n;(n=e.onClientError)==null||n.call(e,r)}onOpcodeMessageToolCallBeginReceived(e,r){this._showToolCallResult=!0,this.ensureCurrentMessageBlockNode(),this._toolCallInfoNode.appendChild(_("div",{class:"flex"},_("div",{class:"p-1"},_("label",null,r))))}onOpcodeMessageToolCallResultReceived(e,r){var a;let n;try{n=JSON.parse(r)}catch{n=r}this.ensureCurrentMessageBlockNode(),this._showToolCallResult&&this._toolCallInfoNode.appendChild(_("div",{class:"flex"},_("div",{class:"p-1"},_("pre",{class:"whitespace-pre-wrap"},JSON.stringify(n,null,2)))));let i=this._clientFunctionInvocationsByLlmFunctionId[e];i&&((a=i.onOpcodeMessageToolCallResultReceived)==null||a.call(i,r),this.onClientFunctionInvocationCompleted(i))}onOpcodeMessageToolCallErrorReceived(e,r){const n=this._clientFunctionInvocationsByLlmFunctionId[e];n&&(n.onOpcodeMessageToolCallErrorReceived(r),this.onClientFunctionInvocationCompleted(n))}onClientFunctionInvocationCompleted(e){e.context.llmFunctionId in this._clientFunctionInvocationsByLlmFunctionId&&(delete this._clientFunctionInvocationsByLlmFunctionId[e.context.llmFunctionId],!Object.keys(this._subConversations).length&&!Object.keys(this._clientFunctionInvocationsByLlmFunctionId).length&&this.ensureCurrentMessageBlockNode())}executeLlmFunctionsBegin(){this._toolCallBuilder.clear()}executeLlmFunctionsEnd(){this.ensureCurrentMessageBlockNode(),this._clientFunctionInvocationsByLlmFunctionId={},this._subConversations={}}subConversationBegin(e,r,n,i,a,s){const o=new Bo(this.chat,e,this,s);this.chat.conversationsById.set(e,o),this._subConversations[e]=o,this.removePulseNodeIfItIsThere(),this._rightColumnNode.appendChild(o.node),this._currentMessageBlockNode=null,this._currentMessageBlockNodeMarkdown=null}notifySubConversationEnded(e,r){delete this._subConversations[e.id],!r&&!Object.keys(this._subConversations).length&&!Object.keys(this._clientFunctionInvocationsByLlmFunctionId).length&&this.ensureCurrentMessageBlockNode()}onOpcodeEndReceived(){this.removePulseNodeIfItIsThere(),this._toolCallBuilder.clear(),this._clientFunctionInvocationsByLlmFunctionId={},this._subConversations={};const e=this.conversation.chat.feedbackByMessageId.get(this.messageId);e!=null?this._feedbackNode=_("div",{class:"flex"},_("a",{class:"btn btn-link p-1"},_(e?Sa:za,null))):this._feedbackNode=_("div",{class:"flex"},_("a",{class:"btn btn-link p-1",onclick:()=>{this.conversation.chat.setLikeAsync(this.messageId,this.copilitId,!0),this._feedbackNode.replaceWith(this._feedbackNode=_("div",{class:"flex"},_("a",{class:"btn btn-link p-1"},_(Sa,null))))}},_(Sa,null)),_("a",{class:"btn btn-link p-1",onclick:()=>{const r=_("div",{class:"vui-dialog-overlay-rac"},_("div",{role:"dialog",class:"vui-dialog-content-rac w-[600px] gap-5"},_("button",{onclick:()=>r.remove(),class:"vui-dialog-close-button-rac"},_(ud,{size:"18"})),_("div",{class:"vui-dialog-header-rac"},_("label",{class:"text-label-md pl-7"},"Tell us more")),_("div",{class:"vui-dialog-body-rac flex flex-col gap-5"},_("div",{class:"text-label-sm pl-7"},this._suggestionTextList.map((n,i)=>_("span",{class:"feedback-suggestion-text",onclick:a=>{this._suggestionTextList.filter((u,h)=>h!==i&&u.isActive).forEach(u=>u.isActive=!1),r.querySelectorAll(".feedback-suggestion-text").forEach(u=>u.classList.toggle("feedback-suggestion-text-active",!1)),n.isActive=!n.isActive,a.currentTarget.classList.toggle("feedback-suggestion-text-active",n.isActive)}},n.text))),_("textarea",{placeholder:"Add special details (optional)",class:"feedback-comment-text"})),_("div",{class:"vui-dialog-footer-rac flex justify-end gap-2"},_("button",{class:"btn-rac btn-primary-rac btn-lg",onclick:()=>{let n="";this._suggestionTextList.map((s,o)=>{s.isActive&&(n=s.text)});let i="";const a=r.querySelector(".feedback-comment-text").value;a!==""&&(i=a),this.conversation.chat.setLikeAsync(this.messageId,this.copilitId,!1,n,i),r.remove(),this._feedbackNode.replaceWith(this._feedbackNode=_("div",{class:"flex"},_("a",{class:"btn btn-link p-1"},_(za,null))))}},"Submit"))));document.body.appendChild(r)}},_(za,null))),this._rightColumnNode.appendChild(this._feedbackNode)}onErrorWhileReadingBodyStream(e){console.log("ConversationMessage.onErrorWhileReadingBodyStream",e),this.removePulseNodeIfItIsThere();for(const r in this._clientFunctionInvocationsByLlmFunctionId)this._clientFunctionInvocationsByLlmFunctionId[r].onErrorWhileReadingBodyStream(e);this._toolCallBuilder.clear(),this._clientFunctionInvocationsByLlmFunctionId={};for(const r in this._subConversations)this._subConversations[r].onErrorWhileReadingBodyStream(e);this._subConversations={}}toDto(){return{role:this.authorRole,content:this._accumulatedMarkdown}}expandAsync(){if(this.conversation instanceof Bo)return this.conversation.expandAsync()}static installClientFunctions(e){e.clientFunctionInvocationHandlers.python=(r,n)=>{const i=new Mo(r,n);return i.run(n),i},e.clientFunctionInvocationHandlersPartial.python=(r,n)=>new Mo(r,n),e.clientFunctionInvocationHandlers.ButtonOptionsDialog=(r,n)=>new ed(r,n),e.clientFunctionInvocationHandlers.search=(r,n)=>new od(r,n),e.clientFunctionInvocationHandlers.WindowOpenDialog=(r,n)=>new ld(r,n)}}function cd(t){for(;;)for(let e=t.lastChild;;e=e.previousSibling)if(e){if(e.nodeType===Node.TEXT_NODE)return t;if(e.nodeType===Node.ELEMENT_NODE){if(e.tagName==="TABLE")return t;t=e;break}}else return t}class No{constructor(e,r){P(this,"node");P(this,"messagesListNode");P(this,"messages",[]);P(this,"activeMessage");P(this,"_opcodeConversationEndReceived");P(this,"_opcodeConversationErrorReceived");P(this,"_onErrorWhileReadingBodyStreamCalled");this.chat=e,this.id=r,this.node=this.messagesListNode=_("ol",null)}onOpcodeMessageBeginReceived(e,r,n,i,a,s,o){const u=new _o(this,e,r,n,i,a,s,o);return this.messages.push(this.activeMessage=u),this.messagesListNode.appendChild(u.node),u}onOpcodeMessageAppendReceived(e){this.activeMessage.append(e)}onOpcodeMessageExecuteLlmFunctionsBeginReceived(){this.activeMessage.executeLlmFunctionsBegin()}onOpcodeMessageExecuteLlmFunctionsEndReceived(){this.activeMessage.executeLlmFunctionsEnd()}onOpcodeMessageToolCallUpdateReceived(e){this.activeMessage.toolCallUpdate(e)}onOpcodeMessageToolCallBeginReceived(e,r){this.activeMessage.onOpcodeMessageToolCallBeginReceived(e,r)}onOpcodeMessageToolCallResultReceived(e,r){this.activeMessage.onOpcodeMessageToolCallResultReceived(e,r)}onOpcodeMessageToolCallErrorReceived(e,r){this.activeMessage.onOpcodeMessageToolCallErrorReceived(e,r)}onOpcodeMessageInvokeClientFunctionReceived(e,r,n,i){this.activeMessage.onOpcodeMessageInvokeClientFunctionReceived(e,r,n,i)}onOpcodeMessageSubConversationBeginReceived(e,r,n,i,a,s){this.activeMessage.subConversationBegin(e,r,n,i,a,s)}handleMessage(e){switch(e.type){case Me.MessageBegin:return this.onOpcodeMessageBeginReceived(e.messageAuthorRole,e.messageAuthorId,e.messageAuthorPictureUrl,e.messageAuthorDisplayName,e.messageAuthorEmail,e.messageId,e.copilotId),!0;case Me.MessageAppend:return this.onOpcodeMessageAppendReceived(e.appendMessageMarkdown),!0;case Me.MessageToolCallUpdate:return this.onOpcodeMessageToolCallUpdateReceived(e),!0;case Me.MessageToolCallBegin:return this.onOpcodeMessageToolCallBeginReceived(e.llmFunctionId,e.toolCallBeginInfo),!0;case Me.MessageToolCallResult:return this.onOpcodeMessageToolCallResultReceived(e.llmFunctionId,e.result),!0;case Me.MessageToolCallError:return this.onOpcodeMessageToolCallErrorReceived(e.llmFunctionId,e.error),!0;case Me.MessageExecuteLlmFunctionsBegin:return this.onOpcodeMessageExecuteLlmFunctionsBeginReceived(),!0;case Me.MessageExecuteLlmFunctionsEnd:return this.onOpcodeMessageExecuteLlmFunctionsEndReceived(),!0;case Me.MessageInvokeClientFunction:return this.onOpcodeMessageInvokeClientFunctionReceived(e.llmFunctionId,e.operationId,e.clientFunctionName,e.argumentsAsJSON),!0;case Me.MessageSubConversationBegin:return this.onOpcodeMessageSubConversationBeginReceived(e.subConversationId,e.messageAuthorId,e.messageAuthorPictureUrl,e.messageAuthorDisplayName,e.messageAuthorEmail,e.subConversationTitle),!0;case Me.ConversationEnd:return this.onOpcodeConversationEndReceived(),!0;case Me.ConversationError:return this.onOpcodeConversationErrorReceived(e.error,e.stackTrace),!0}return!1}onRootConversationEndOfBodyStream(){!this._opcodeConversationEndReceived&&!this._opcodeConversationErrorReceived&&!this._onErrorWhileReadingBodyStreamCalled&&this.onRootConversationUnexpectedEndOfBodyStream(),this.activeMessage=null,this._opcodeConversationEndReceived=!1,this._opcodeConversationErrorReceived=!1,this._onErrorWhileReadingBodyStreamCalled=!1}onRootConversationUnexpectedEndOfBodyStream(){var e,r;(r=(e=this.activeMessage)==null?void 0:e.onErrorWhileReadingBodyStream)==null||r.call(e,new _l),this.displayError("Unexpected end of response","The response ended unexpectedly. Please check your connectivity. Other possible causes include server instability or a bug.")}onOpcodeConversationEndReceived(){var e;this._opcodeConversationEndReceived=!0,(e=this.activeMessage)==null||e.onOpcodeEndReceived()}onOpcodeConversationErrorReceived(e,r){this._opcodeConversationErrorReceived=!0,e&&console.debug(e,r),this.displayError("Error","An undisclosed error occurred. Please contact Veracity Support.")}onErrorBeforeReadingBodyStreamStarted(e,r){if(r){this.displayInfo("Stopped","The generation of the response was stopped.");return}if(e instanceof Oa){this.displayError("Max limit reached","You have reached the maximum input limit. Please try again later.");return}else this.displayError("Error",String(e.message))}onErrorWhileReadingBodyStream(e,r){var n;this._onErrorWhileReadingBodyStreamCalled=!0,(n=this.activeMessage)==null||n.onErrorWhileReadingBodyStream(e),r?this.displayInfo("Stopped","The generation of the response was stopped."):this.displayError("Error while reading response",String(e.message))}displayError(e,r){this.messagesListNode.appendChild(_("li",{class:"m-2 border border-Light p-6 flex gap-5 bg-Sandstone-97"},_(wa,{class:"text-Energy-Red-45"}),_("div",null,_("h6",null,e),_("div",{class:"prose prose-sm prose-neutral"},_("p",null,r)))))}displayInfo(e,r){this.messagesListNode.appendChild(_("li",{class:"m-2 border border-Light p-6 flex gap-5 bg-Sandstone-97"},_(xa,{class:"text-Sea-Blue-Main-28"}),_("div",null,_("h6",null,e),_("div",{class:"prose prose-sm prose-neutral"},_("p",null,r)))))}}class Bo extends No{constructor(r,n,i,a){super(r,n);P(this,"_buttonNode");P(this,"_buttonIconWrapperNode");P(this,"_buttonTextNode");P(this,"_contentWrapperNode");P(this,"_contentNode");P(this,"_expanded",!1);P(this,"_expandedCt");P(this,"_expandPromise");this.parentMessage=i,this.title=a,this.node=_("div",{class:"my-2"},this._buttonNode=_(tn,{class:"p-2 gap-2 group",variant:Ft.Badge,size:$r.Medium,onclick:()=>this.expanded=!this.expanded},this._buttonIconWrapperNode=_("div",{width:"24px",height:"24px"},_(Jn,{size:dn.Small})),this.title,_(Ao,{class:"transition-all duration-300 group-data-[expanded=true]:-rotate-180"})),this._contentWrapperNode=_("div",{class:"grid",gridTemplateRows:this._expanded?"1fr":"0fr",opacity:this._expanded?"1":"0","aria-expanded":this._expanded},_("div",{class:"overflow-hidden"},this._contentNode=_("section",{class:"mt-2 border border-Light flex flex-col bg-Sandstone-95 p-3"},this.messagesListNode))))}get expanded(){return this._expanded}set expanded(r){r!==this._expanded&&(r?this.doExpandAsync():this.doCollapseAsync())}async doExpandAsync(){var n;(n=this._expandedCt)==null||n.cancel();const r=this._expandedCt=new Kt;this._buttonNode.setAttribute("data-expanded",String(this._expanded=!0)),this._expandPromise=(async()=>{try{await cr(this._contentWrapperNode,[{gridTemplateRows:"1fr"}],{duration:300,easing:"ease-in-out",fill:"forwards"},this._expandedCt),await cr(this._contentWrapperNode,[{opacity:"1"}],{duration:300,easing:"ease-in-out",fill:"forwards"},this._expandedCt)}catch(i){if(!r.isCancellationRequested)throw i}})(),await this._expandPromise}async doCollapseAsync(){var n;(n=this._expandedCt)==null||n.cancel();const r=this._expandedCt=new Kt;this._buttonNode.setAttribute("data-expanded",String(this._expanded=!1));try{await cr(this._contentWrapperNode,[{opacity:"0"}],{duration:300,easing:"ease-in-out",fill:"forwards"},this._expandedCt),await cr(this._contentWrapperNode,[{gridTemplateRows:"0fr"}],{duration:300,easing:"ease-in-out",fill:"forwards"},this._expandedCt)}catch(i){if(!r.isCancellationRequested)throw i}}onErrorWhileReadingBodyStream(r){var n;(n=this.activeMessage)==null||n.onErrorWhileReadingBodyStream(r),this.setButtonError(),this.parentMessage.notifySubConversationEnded(this,!0)}onOpcodeConversationEndReceived(){var r;(r=this.activeMessage)==null||r.onOpcodeEndReceived(),this.setButtonSuccess(),this.parentMessage.notifySubConversationEnded(this,!1)}onOpcodeConversationErrorReceived(r,n){var s;r&&console.debug(r,n);const i="An undisclosed error occurred. Please contact Veracity Support.";this.displayError("Error",i);const a=new Error(i);(s=this.activeMessage)==null||s.onErrorWhileReadingBodyStream(a),this.setButtonError(),this.parentMessage.notifySubConversationEnded(this,!1)}setButtonSuccess(){this._buttonNode.setAttribute("data-status","success"),this._buttonIconWrapperNode.replaceChild(_(Yn,null),this._buttonIconWrapperNode.firstChild)}setButtonError(){this._buttonNode.setAttribute("data-status","error"),this._buttonIconWrapperNode.replaceChild(_(ka,null),this._buttonIconWrapperNode.firstChild)}async expandAsync(){await this.parentMessage.expandAsync(),this._expanded?this._expandPromise&&await this._expandPromise:await this.doExpandAsync()}}class hd{constructor(e){P(this,"node");P(this,"url");P(this,"historyUrl");P(this,"feedbackUrl");P(this,"summarizeTitleUrl");P(this,"fetch");P(this,"conversationsById",new Map);P(this,"feedbackByMessageId",new Map);P(this,"rootConversation",new No(this,null));P(this,"clientFunctionInvocationHandlers",{});P(this,"clientFunctionInvocationHandlersPartial",{});P(this,"clientFunctionInvocationsByOperationId",{});P(this,"mdastExtensions",[]);P(this,"pyodide");P(this,"_lazyInitializePyodidePromise");P(this,"_completion");this.conversationsById.set(null,this.rootConversation),this.url=e.url,this.historyUrl=e.historyUrl,this.feedbackUrl=e.feedbackUrl,this.summarizeTitleUrl=e.summarizeTitleUrl,this.fetch=e.fetch??fetch.bind(window),this.node=_("div",null);const r=document.createElement("style");r.textContent=il+`
270
+ `);if(n.length){const u=n[n.length-1];u.isStderr?(u.text+=o.shift(),n.push(...o.map(h=>({isStderr:!0,text:h})))):n.push(...o.map(h=>({isStderr:!0,text:h})))}else n.push(...o.map(u=>({isStderr:!0,text:u})));this.getOrAddStderrNode().textContent+=s}});const a=await r.runPythonCodeAsync(e);var i=a===void 0?"None":String(a)}catch(a){this.setButtonError();const s=String(a);this.getOrAddErrorNode().textContent=s,console.error(a),await this.context.postResultAsync({terminatedWithError:!0,error:s,stdoutAndStderr:n});return}this.setButtonSuccess(),i&&(this.getOrAddResultRawNode().textContent=i),await this.context.postResultAsync({result:i,stdoutAndStderr:n})}updateWithToolCallData(e){this._highlightCode.updateCode("python",Co(e.functionArguments))}}function Co(t){if(!t.startsWith("{"))return t;var e=t.indexOf("Code:");if(e!=-1&&t.substring(0,e).trim()=="{"&&(t='{"Code":'+t.substring(e+5)),e=t.indexOf('"""'),e!=-1){var r=t.lastIndexOf('"""');if(e<r&&t.substring(r+3).trim()=="}"){var n=id(t.substring(e+3,r-(e+3))),i=t.substring(0,e)+JSON.stringify(n)+t.substring(r+3);t=i}}try{var a=ad(t)}catch{return console.warn("Error parsing Python code arguments provided as JSON.",t),""}return(a==null?void 0:a.Code)||(a==null?void 0:a.code)||""}class od{constructor(e,r){P(this,"node");P(this,"_buttonNode");P(this,"_buttonIconWrapperNode");this.context=e,this.node=_("div",{class:"my-2"},this._buttonNode=_(tn,{as:"div",class:"p-2 pr-3 gap-2 select-none",variant:Ft.Badge,size:$r.Medium},this._buttonIconWrapperNode=_("div",{width:"24px",height:"24px"},_(Jn,{size:dn.Small})),`Search for '${r}'`))}setButtonSuccess(){this._buttonNode.setAttribute("data-status","success"),this._buttonIconWrapperNode.replaceChild(_(Yn,null),this._buttonIconWrapperNode.firstChild)}setButtonError(){this._buttonNode.setAttribute("data-status","error"),this._buttonIconWrapperNode.replaceChild(_(ka,null),this._buttonIconWrapperNode.firstChild)}onOpcodeMessageToolCallResultReceived(e){this.setButtonSuccess()}onOpcodeMessageToolCallErrorReceived(e){this.setButtonError()}onErrorWhileReadingBodyStream(e){this.setButtonError()}run(e){}}class ld extends Qn{constructor(r,n){super();P(this,"node");this.context=r;let i;switch(n.type){case Rt.Error:i=_(wa,{class:"text-Energy-Red-45"});break;case Rt.Danger:i=_(Zn,{class:"text-Energy-Red-45"});break;case Rt.Warning:i=_(Zn,{class:"text-Terracotta-30"});break;case Rt.Info:i=_(xa,{class:"text-Sea-Blue-Main-28"});break;case Rt.Success:i=_(Eo,{class:"text-Land-Green-30"});break}i.classList.add("shrink-0");let a;this.node=_("section",{class:"max-w-lg text-left my-2 bg-Sandstone-97 select-none border border-Light"},_("div",{class:"p-6 pb-3 flex gap-5"},i,_("div",null,_("h6",null,n.title),a=_("div",{class:"prose prose-sm prose-neutral"}))),_("fieldset",{class:"p-6 pt-3 flex justify-end gap-3"},_(tn,{as:"a",variant:Ft.Tertiary,class:"min-w-24",size:$r.Medium,target:"_blank",href:n.url},"Open in new tab"))),ba(a,n.textInMarkdown,this.context.conversationMessage.chat.pyodide,this.context.conversationMessage.chat.mdastExtensions),n.openRightAway&&window.open(n.url,n.target,n.windowFeatures)}onOpcodeMessageToolCallErrorReceived(r){}onErrorWhileReadingBodyStream(r){}}function Sa({size:t=Ct.Medium,...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 20 20"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e);const n=qe("path");return n.setAttribute("d","M10.9153 1.83987L11.2942 1.88772L11.4749 1.91507C13.2633 2.24201 14.4107 4.01717 13.9749 5.78225L13.9261 5.95901L13.3987 7.6719C13.7708 7.67575 14.0961 7.68389 14.3792 7.70608C14.8737 7.74486 15.3109 7.82759 15.7015 8.03323L15.8528 8.11819C16.5966 8.56353 17.1278 9.29625 17.3167 10.1475L17.347 10.3096C17.403 10.69 17.3647 11.0832 17.2835 11.5098C17.2375 11.7517 17.1735 12.0212 17.096 12.3233L16.8255 13.3321L16.4456 14.7276C16.2076 15.6001 16.0438 16.2356 15.7366 16.7305L15.595 16.9346C15.2989 17.318 14.9197 17.628 14.4866 17.8408L14.2982 17.9258C13.6885 18.1774 12.9785 18.1651 11.9446 18.1651H7.33331C6.64422 18.1651 6.08726 18.1657 5.63702 18.1289C5.23638 18.0962 4.87565 18.031 4.53936 17.8867L4.39679 17.8203C3.87576 17.5549 3.43916 17.151 3.13507 16.6553L3.013 16.4366C2.82119 16.0599 2.74182 15.6541 2.7044 15.1963C2.66762 14.7461 2.66827 14.1891 2.66827 13.5V11.667C2.66827 10.9349 2.66214 10.4375 2.77569 10.0137L2.83722 9.81253C3.17599 8.81768 3.99001 8.05084 5.01397 7.77639L5.17706 7.73928C5.56592 7.66435 6.02595 7.66799 6.66632 7.66799C6.9429 7.66799 7.19894 7.52038 7.33624 7.2803L10.2562 2.16995L10.3118 2.08792C10.4544 1.90739 10.6824 1.81092 10.9153 1.83987ZM7.33136 14.167C7.33136 14.9841 7.33714 15.2627 7.39386 15.4746L7.42999 15.5918C7.62644 16.1686 8.09802 16.6134 8.69171 16.7725L8.87042 16.8067C9.07652 16.8323 9.38687 16.835 10.0003 16.835H11.9446C13.099 16.835 13.4838 16.8228 13.7903 16.6963L13.8997 16.6465C14.1508 16.5231 14.3716 16.3444 14.5433 16.1221L14.6155 16.0166C14.7769 15.7552 14.8968 15.3517 15.1624 14.378L15.5433 12.9824L15.8079 11.9922C15.8804 11.7102 15.9368 11.4711 15.9769 11.2608C16.0364 10.948 16.0517 10.7375 16.0394 10.5791L16.0179 10.4356C15.9156 9.97497 15.641 9.57381 15.2542 9.31253L15.0814 9.20999C14.9253 9.12785 14.6982 9.06544 14.2747 9.03225C13.8477 8.99881 13.2923 8.99807 12.5003 8.99807C12.2893 8.99807 12.0905 8.89822 11.9651 8.72854C11.8398 8.55879 11.8025 8.33942 11.8646 8.13772L12.6556 5.56741L12.7054 5.36331C12.8941 4.35953 12.216 3.37956 11.1878 3.2178L8.49054 7.93948C8.23033 8.39484 7.81431 8.72848 7.33136 8.88967V14.167ZM3.99835 13.5C3.99835 14.2111 3.99924 14.7044 4.03058 15.0879C4.06128 15.4636 4.11804 15.675 4.19854 15.833L4.26886 15.959C4.44517 16.2466 4.69805 16.4808 5.0003 16.6348L5.13019 16.6905C5.27397 16.7419 5.46337 16.7797 5.74542 16.8028C5.97772 16.8217 6.25037 16.828 6.58722 16.8311C6.41249 16.585 6.27075 16.3136 6.1712 16.0215L6.10968 15.8194C5.99614 15.3956 6.00128 14.899 6.00128 14.167V9.00296C5.79386 9.0067 5.65011 9.01339 5.53741 9.02737L5.3587 9.06057C4.76502 9.21965 4.29247 9.66448 4.09601 10.2412L4.06085 10.3584C4.00404 10.5705 3.99835 10.8493 3.99835 11.667V13.5Z"),r.appendChild(n),r.classList.add("icon"),r}function za({size:t=Ct.Medium,...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 20 20"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e);const n=qe("path");return n.setAttribute("d","M12.6687 5.83304C12.6687 5.22006 12.6649 4.91019 12.6394 4.70413L12.6062 4.52542C12.4471 3.93179 12.0022 3.45922 11.4255 3.26272L11.3083 3.22757C11.0963 3.17075 10.8175 3.16507 9.99974 3.16507H8.0554C7.04558 3.16507 6.62456 3.17475 6.32982 3.26175L6.2097 3.30374C5.95005 3.41089 5.71908 3.57635 5.53392 3.78616L5.45677 3.87796C5.30475 4.0748 5.20336 4.33135 5.03392 4.91702L4.83763 5.6221L4.45677 7.01761C4.24829 7.78204 4.10326 8.31846 4.02318 8.73929C3.94374 9.15672 3.94298 9.39229 3.98119 9.56448L4.03587 9.75784C4.18618 10.1996 4.50043 10.5702 4.91771 10.7901L5.05052 10.8477C5.20009 10.9014 5.40751 10.9429 5.72533 10.9678C6.15231 11.0012 6.70771 11.002 7.49974 11.002C7.71076 11.002 7.90952 11.1018 8.0349 11.2715C8.14465 11.4201 8.18683 11.6067 8.15404 11.7862L8.13548 11.8623L7.34447 14.4326C7.01523 15.5033 7.71404 16.6081 8.81126 16.7813L11.5095 12.0606L11.5827 11.9405C11.8445 11.5461 12.2289 11.2561 12.6687 11.1094V5.83304ZM17.3318 8.33304C17.3318 8.97366 17.3364 9.43432 17.2615 9.82327L17.2234 9.98538C16.949 11.0094 16.1821 11.8233 15.1872 12.1621L14.9861 12.2237C14.5624 12.3372 14.0656 12.3321 13.3337 12.3321C13.0915 12.3321 12.8651 12.4453 12.7204 12.6348L12.6638 12.7198L9.74388 17.8301C9.61066 18.0631 9.35005 18.1935 9.08372 18.1602L8.70579 18.1123C6.75379 17.8682 5.49542 15.9213 6.07396 14.041L6.60033 12.3272C6.22861 12.3233 5.90377 12.3161 5.62083 12.294C5.18804 12.26 4.79914 12.1931 4.44701 12.0391L4.29857 11.9668C3.52688 11.5605 2.95919 10.8555 2.72533 10.0205L2.68333 9.85257C2.58769 9.42154 2.62379 8.97768 2.71654 8.49026C2.80865 8.00634 2.97082 7.41139 3.17357 6.668L3.55443 5.27249L3.74583 4.58011C3.9286 3.94171 4.10186 3.45682 4.40404 3.06546L4.53685 2.9053C4.85609 2.54372 5.25433 2.25896 5.70189 2.07425L5.93626 1.99222C6.49455 1.82612 7.15095 1.83499 8.0554 1.83499H12.6667C13.3558 1.83499 13.9128 1.83434 14.363 1.87112C14.8208 1.90854 15.2266 1.98789 15.6033 2.17972L15.821 2.30179C16.317 2.6059 16.7215 3.04226 16.987 3.56351L17.0535 3.70608C17.1977 4.04236 17.2629 4.40311 17.2956 4.80374C17.3324 5.25398 17.3318 5.81094 17.3318 6.50003V8.33304ZM13.9978 10.9961C14.3321 10.9901 14.5013 10.977 14.6413 10.9395L14.7585 10.9033C15.3353 10.7069 15.7801 10.2353 15.9392 9.64163L15.9724 9.46292C15.998 9.25682 16.0017 8.94657 16.0017 8.33304V6.50003C16.0017 5.78899 16.0008 5.29566 15.9695 4.91214C15.9464 4.6301 15.9086 4.44069 15.8572 4.2969L15.8015 4.16702C15.6475 3.86478 15.4133 3.6119 15.1257 3.43558L14.9997 3.36526C14.8418 3.28477 14.6302 3.228 14.2546 3.19729C14.0221 3.1783 13.7491 3.17109 13.4118 3.168C13.6267 3.47028 13.7914 3.81126 13.8904 4.18069L13.9275 4.34378C13.981 4.62163 13.9947 4.93582 13.9978 5.3262V10.9961Z"),r.appendChild(n),r.classList.add("icon"),r}function ud({size:t=Ct.Medium,...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 32 32"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e);const n=qe("path");return n.setAttribute("d","M18.1215 16.0003L24.5315 9.59034L25.8534 8.26846C26.0484 8.07346 26.0484 7.75659 25.8534 7.56159L24.439 6.14721C24.244 5.95221 23.9271 5.95221 23.7321 6.14721L16.0002 13.8791L8.26837 6.14659C8.07337 5.95159 7.75649 5.95159 7.56149 6.14659L6.14649 7.56096C5.95149 7.75596 5.95149 8.07284 6.14649 8.26784L13.879 16.0003L6.14649 23.7322C5.95149 23.9272 5.95149 24.2441 6.14649 24.4391L7.56087 25.8535C7.75587 26.0485 8.07274 26.0485 8.26774 25.8535L16.0002 18.1216L22.4102 24.5316L23.7321 25.8535C23.9271 26.0485 24.244 26.0485 24.439 25.8535L25.8534 24.4391C26.0484 24.2441 26.0484 23.9272 25.8534 23.7322L18.1215 16.0003Z"),r.appendChild(n),r.classList.add("icon"),r}const cd=".dialog-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10000;font-family:Gantari,sans-serif}.dialog-content{background:#fff;box-shadow:0 4px 20px #00000026;position:relative;max-width:600px;width:90%;max-height:90vh;overflow-y:auto}.dialog-close-button{position:absolute;top:16px;right:16px;background:transparent;border:none;cursor:pointer;padding:4px;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:background .1s ease-out;color:#2248aa}.dialog-close-button:hover{background:#f0f0f0}.dialog-header{padding:24px 24px 0;border-bottom:none}.dialog-body{padding:0 24px;display:flex;flex-direction:column;gap:20px}.dialog-footer{padding:0 24px 24px;border-top:none}.text-label-md{font-size:var(--text-lg, 1.5rem);font-weight:var(--font-weight-semibold, 600);color:#08122b;margin:0}.text-label-sm{font-size:var(--text-sm, .875rem);font-weight:var(--font-weight-normal, 400);color:#08122b;line-height:1.5}.feedback-suggestion-text{display:inline-block;padding:8px 16px;margin:4px 8px 4px 0;background:#d3eef8;border-radius:6px;cursor:pointer;transition:all .1s ease-out;font-size:var(--text-sm, .875rem);letter-spacing:.05rem;color:#2248aa}.feedback-suggestion-text:hover:not(.feedback-suggestion-text-active){background:#bce6f5;border-color:#17789b}.feedback-suggestion-text-active{background:#001333;color:#fff;border-color:#001333}.feedback-comment-text{width:100%;min-height:100px;padding:8px;border:2px solid hsl(40,3%,79%);font-family:Gantari,sans-serif;font-size:var(--text-sm, 1rem);font-weight:var(--font-weight-normal, 400);letter-spacing:.05rem;resize:none;box-sizing:border-box;transition:border-color .1s ease-out}.feedback-comment-text:focus{outline:none;border:4px solid hsl(218,100%,50%);box-shadow:0 0 0 2px #1e6ea71a}.feedback-comment-text::-moz-placeholder{color:#b5b3b0}.feedback-comment-text::placeholder{color:#b5b3b0}.btn-base{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;border-radius:0;display:inline-flex;height:auto;margin:0;outline:none;text-decoration:none;transition:background .1s ease-out,border-color .1s ease-out,color .1s ease-out,box-shadow .1s ease-out;white-space:nowrap;cursor:pointer;font-family:Gantari,sans-serif;font-size:var(--text-sm, .875rem);font-weight:var(--font-weight-medium, 500);justify-content:center}.btn-primary{background:#193680;color:#fff;border:1px solid hsl(223,67%,30%)}.btn-primary:disabled{background:#95adea;color:#fff;border-color:#0000;cursor:not-allowed;opacity:.5}.btn-primary:hover,.btn-primary:active{background:#002566}.btn-primary:disabled:hover{background:#95adea;color:#fff;border-color:#0000}.btn-lg{padding:10px 20px;min-width:100px;font-size:16px;letter-spacing:.05rem;height:50px}.btn-link{background:transparent;border:none;color:#1e6ea7;text-decoration:none;cursor:pointer;padding:8px;border-radius:4px;transition:background .1s ease-out}.btn-link:hover{background:#e6f3fb}.flex{display:flex}.flex-col{flex-direction:column}.justify-end{justify-content:flex-end}.gap-2{gap:8px;padding-top:40px}.gap-5{gap:20px}.w-\\[600px\\]{width:600px}.pl-7{padding-top:28px}.p-1{padding:4px}.footer-note{font-size:12px;color:#6c757d;line-height:1.5;margin:0;padding:0;text-align:left;font-weight:400;font-family:Gantari,sans-serif;letter-spacing:.02rem}.footer-note a{color:#6c757d;text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px;font-weight:500;transition:color .1s ease-out}.footer-note a:hover{color:#6c757d;text-decoration-thickness:2px}@media (prefers-color-scheme: dark){.dialog-content{background:#0f214d;color:#fff}.text-label-md,.text-label-sm{color:#fff}.dialog-close-button:hover{background:#152d6a}.feedback-suggestion-text{background:#0d1b40;border-color:#0d1b40;color:#e0e0e0}.feedback-suggestion-text:hover:not(.feedback-suggestion-text-active){background:#1d3f95;border-color:#8fffb2}.feedback-suggestion-text-active{background:#2651c0;color:#00e649;border-color:#8fffb2}.feedback-comment-text{background:#2d2d2d;border-color:#404040;color:#fff}.feedback-comment-text:focus{border-color:#009930;box-shadow:0 0 0 2px #4caf501a}.feedback-comment-text::-moz-placeholder{color:#b5b3b0}.feedback-comment-text::placeholder{color:#b5b3b0}.btn-primary{background:#8fffb2;color:#0f214d;border-color:#8fffb2}.btn-primary:disabled{background:#dcf2d9;color:#d4def7;border-color:#dcf2d9}.btn-primary:disabled:hover{background:#00cc41;color:#0d1b40;border-color:#00cc41}.btn-primary:hover{background:#00cc41}.btn-link{color:#009930}.btn-link:hover{background:#1e6ea740}.footer-note{color:#8d8d8d}.footer-note a{color:#8fffb2;text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}.footer-note a:hover{color:#00cc41;text-decoration-thickness:2px}}.dialog-close-button:focus-visible,.btn-base:focus-visible,.btn-link:focus-visible{box-shadow:0 0 0 2px #8bc8f0}.btn-base:disabled{opacity:.5;cursor:not-allowed}";class _o{constructor(e,r,n,i,a,s,o,u){P(this,"node");P(this,"_rightColumnNode");P(this,"_feedbackNode");P(this,"_showToolCallResult",!1);P(this,"_toolCallInfoNode");P(this,"_currentMessageBlockNode");P(this,"_currentMessageBlockNodeMarkdown");P(this,"_accumulatedMarkdown","");P(this,"_toolCallBuilder",new nd);P(this,"_clientFunctionInvocationsByOperationId",{});P(this,"_clientFunctionInvocationsByLlmFunctionId",{});P(this,"_subConversations",{});P(this,"_pulseNode");P(this,"_pulseNodeAnimation");P(this,"_suggestionTextList");this.conversation=e,this.authorRole=r,this.authorId=n,this.authorPictureUrl=i,this.authorDisplayName=a,this.authorEmail=s,this.messageId=o,this.copilitId=u,this.node=_("li",{class:"p-2 flex gap-2"},_(Zh,{class:"shrink-0",id:this.authorId,title:this.authorDisplayName},this.authorPictureUrl?_("img",{src:this.authorPictureUrl,class:"w-full h-full"}):_("span",{marginTop:"-.1em"},Yh(this.authorDisplayName))),this._rightColumnNode=_("div",{class:"shrink-0 flex-1"},_("div",{class:"font-medium text-base leading-5"},this.authorDisplayName))),this.ensureCurrentMessageBlockNode(),this._suggestionTextList=[{text:"Irrelevant answer",isActive:!1},{text:"Incorrect information",isActive:!1},{text:"Incomplete answer",isActive:!1},{text:"Offensive content",isActive:!1},{text:"Other",isActive:!1}]}get chat(){return this.conversation.chat}ensureStyles(){if(document.getElementById("FeedBackDialog"))return;const e=document.createElement("style");e.id="FeedBackDialog",e.textContent=cd,document.head.appendChild(e)}ensureCurrentMessageBlockNode(){if(!this._currentMessageBlockNode&&(this._rightColumnNode.appendChild(this._toolCallInfoNode=_("div",{class:"prose prose-neutral prose-sm max-w-none"})),this._rightColumnNode.appendChild(this._currentMessageBlockNode=_("div",{class:"prose prose-neutral prose-sm max-w-none"})),this._currentMessageBlockNodeMarkdown="",this.authorRole==="assistant")){this._pulseNode=_("div",{class:"inline-flex relative h-3 w-3"},_("div",{class:"absolute inline-flex h-full w-full rounded-full bg-Sky-Blue-80"}),_("div",{class:"relative inline-flex rounded-full h-full w-full bg-Sky-Blue-Main-77"})),this._currentMessageBlockNode.appendChild(this._pulseNode);const e=[{transform:"scale(2.5)",opacity:0,offset:.75},{transform:"scale(2.5)",opacity:0,offset:1}],r={duration:1500,iterations:1/0,easing:"cubic-bezier(0, 0, 0.2, 1)"};this._pulseNodeAnimation=this._pulseNode.firstElementChild.animate(e,r)}}removePulseNodeIfItIsThere(){const e=this._pulseNode;e&&(this._pulseNode=null,this._pulseNodeAnimation.cancel(),e.remove())}append(e){if(this._accumulatedMarkdown+=e,this.ensureCurrentMessageBlockNode(),this._currentMessageBlockNodeMarkdown+=e,this._pulseNode){var r=this._pulseNodeAnimation.currentTime;this._pulseNodeAnimation.pause(),this._pulseNode.remove()}ba(this._currentMessageBlockNode,this._currentMessageBlockNodeMarkdown,this.chat.pyodide,this.chat.mdastExtensions),this._pulseNode&&(this._pulseNodeAnimation.currentTime=r,this._pulseNode.classList.add("ml-[1ch]"),hd(this._currentMessageBlockNode).appendChild(this._pulseNode),this._pulseNodeAnimation.play())}toolCallUpdate(e){var n;const r=this._toolCallBuilder.append(e);if(r.llmFunctionId&&r.functionName){let i=this._clientFunctionInvocationsByLlmFunctionId[r.llmFunctionId];if(i){(n=i.updateWithToolCallData)==null||n.call(i,r);return}const a=this.chat.clientFunctionInvocationHandlersPartial[r.functionName];if(a){const s=new d0(r.llmFunctionId,null,this),o=a(s,r);this._clientFunctionInvocationsByLlmFunctionId[r.llmFunctionId]=o,this.removePulseNodeIfItIsThere(),o.node&&(this._rightColumnNode.appendChild(o.node),o instanceof Qn&&o.context.conversationMessage.expandAsync(),this._currentMessageBlockNode=null,this._currentMessageBlockNodeMarkdown=null)}}}onOpcodeMessageInvokeClientFunctionReceived(e,r,n,i){var h,d;const a=JSON.parse(i);let s=this._clientFunctionInvocationsByOperationId[r];if(s){s.run(...a);return}if(s=this._clientFunctionInvocationsByLlmFunctionId[e],s&&!s.context.operationId){s.context.operationId=r,this.chat.clientFunctionInvocationsByOperationId[r]=s,this._clientFunctionInvocationsByOperationId[r]=s,(h=s.run)==null||h.call(s,...a);return}const o=new d0(e,r,this),u=this.chat.clientFunctionInvocationHandlers[n];if(u)s=u(o,...a),this.chat.clientFunctionInvocationsByOperationId[r]=s,this._clientFunctionInvocationsByOperationId[r]=s,this._clientFunctionInvocationsByLlmFunctionId[e]=s,(d=s.run)==null||d.call(s,...a),this.removePulseNodeIfItIsThere(),s.node&&(this._rightColumnNode.appendChild(s.node),s instanceof Qn&&s.context.conversationMessage.expandAsync(),this._currentMessageBlockNode=null,this._currentMessageBlockNodeMarkdown=null);else{const p=`Function '${n}' not found. This occurs if a tool / function has been invoked, that requires some sort of user interaction (e.g. to obtain confirmation or to fill out some form values), then contacts the front-end to obtain a response, but the front-end is unable to handle the request because the function to be invoked does not exist. This error was thrown in the front-end. This most likely indicates that the bot is set up incorrectly, and the user should contact support.`;o.postErrorAsync(p)}}setClientInvocationResult(e,r){var n;(n=e.onClientResult)==null||n.call(e,r)}setClientInvocationError(e,r){var n;(n=e.onClientError)==null||n.call(e,r)}onOpcodeMessageToolCallBeginReceived(e,r){this._showToolCallResult=!0,this.ensureCurrentMessageBlockNode(),this._toolCallInfoNode.appendChild(_("div",{class:"flex"},_("div",{class:"p-1"},_("label",null,r))))}onOpcodeMessageToolCallResultReceived(e,r){var a;let n;try{n=JSON.parse(r)}catch{n=r}this.ensureCurrentMessageBlockNode(),this._showToolCallResult&&r.length>0&&this._toolCallInfoNode.appendChild(_("div",{class:"flex"},_("div",{class:"p-1"},_("pre",{class:"whitespace-pre-wrap"},JSON.stringify(n,null,2)))));let i=this._clientFunctionInvocationsByLlmFunctionId[e];i&&((a=i.onOpcodeMessageToolCallResultReceived)==null||a.call(i,r),this.onClientFunctionInvocationCompleted(i))}onOpcodeMessageToolCallErrorReceived(e,r){const n=this._clientFunctionInvocationsByLlmFunctionId[e];n&&(n.onOpcodeMessageToolCallErrorReceived(r),this.onClientFunctionInvocationCompleted(n))}onClientFunctionInvocationCompleted(e){e.context.llmFunctionId in this._clientFunctionInvocationsByLlmFunctionId&&(delete this._clientFunctionInvocationsByLlmFunctionId[e.context.llmFunctionId],!Object.keys(this._subConversations).length&&!Object.keys(this._clientFunctionInvocationsByLlmFunctionId).length&&this.ensureCurrentMessageBlockNode())}executeLlmFunctionsBegin(){this._toolCallBuilder.clear()}executeLlmFunctionsEnd(){this.ensureCurrentMessageBlockNode(),this._clientFunctionInvocationsByLlmFunctionId={},this._subConversations={}}subConversationBegin(e,r,n,i,a,s){const o=new Bo(this.chat,e,this,s);this.chat.conversationsById.set(e,o),this._subConversations[e]=o,this.removePulseNodeIfItIsThere(),this._rightColumnNode.appendChild(o.node),this._currentMessageBlockNode=null,this._currentMessageBlockNodeMarkdown=null}notifySubConversationEnded(e,r){delete this._subConversations[e.id],!r&&!Object.keys(this._subConversations).length&&!Object.keys(this._clientFunctionInvocationsByLlmFunctionId).length&&this.ensureCurrentMessageBlockNode()}onOpcodeEndReceived(){this.removePulseNodeIfItIsThere(),this._toolCallBuilder.clear(),this._clientFunctionInvocationsByLlmFunctionId={},this._subConversations={},this.ensureStyles();const e=this.conversation.chat.feedbackByMessageId.get(this.messageId);e!=null?this._feedbackNode=_("div",{class:"flex"},_("a",{class:"btn btn-link p-1"},_(e?Sa:za,null))):this._feedbackNode=_("div",{class:"flex"},_("a",{class:"btn btn-link p-1",onclick:()=>{this.conversation.chat.setLikeAsync(this.messageId,this.copilitId,!0),this._feedbackNode.replaceWith(this._feedbackNode=_("div",{class:"flex"},_("a",{class:"btn btn-link p-1"},_(Sa,null))))}},_(Sa,null)),_("a",{class:"btn btn-link p-1",onclick:()=>{const r=_("div",{class:"dialog-overlay"},_("div",{role:"dialog",class:"dialog-content w-[600px] gap-5"},_("button",{onclick:()=>r.remove(),class:"dialog-close-button"},_(ud,{size:"22"})),_("div",{class:"dialog-header"},_("label",{class:"text-label-md pl-7"},"Tell us more")),_("div",{class:"dialog-body flex flex-col gap-5"},_("div",{class:"text-label-sm pl-7"},this._suggestionTextList.map((i,a)=>_("span",{class:"feedback-suggestion-text",onclick:s=>{const o=this;this._suggestionTextList.filter((d,p)=>p!==a&&d.isActive).forEach(d=>d.isActive=!1),r.querySelectorAll(".feedback-suggestion-text").forEach(d=>d.classList.toggle("feedback-suggestion-text-active",!1)),i.isActive=!i.isActive,s.currentTarget.classList.toggle("feedback-suggestion-text-active",i.isActive),n.call(o)}},i.text))),_("textarea",{placeholder:"Add special details (optional)",class:"feedback-comment-text"}),_("div",{class:"footer-note"},_("a",{href:"https://id.veracity.com/terms-of-use",target:"_blank",rel:"noopener noreferrer"},"Learn more")," about how this data is used and your rights. By pressing Submit, your conversation will be used to improve Veracity products and services. ",_("a",{href:"https://services.veracity.com/PrivacyStatement",target:"_blank",rel:"noopener noreferrer"},"Privacy statement."))),_("div",{class:"dialog-footer flex justify-end gap-2"},_("button",{id:"submit-btn",class:"btn-base btn-primary btn-lg",disabled:!0,onclick:()=>{let i="";this._suggestionTextList.map((o,u)=>{o.isActive&&(i=o.text)});let a="";const s=r.querySelector(".feedback-comment-text").value;s!==""&&(a=s),this.conversation.chat.setLikeAsync(this.messageId,this.copilitId,!1,i,a),r.remove(),this._feedbackNode.replaceWith(this._feedbackNode=_("div",{class:"flex"},_("a",{class:"btn btn-link p-1"},_(za,null))))}},"Submit"))));function n(){const i=r.querySelector("#submit-btn");this._suggestionTextList.some(s=>s.isActive)?i.disabled=!1:i.disabled=!0}setTimeout(()=>n.call(this),0),document.body.appendChild(r)}},_(za,null))),this._rightColumnNode.appendChild(this._feedbackNode)}onErrorWhileReadingBodyStream(e){console.log("ConversationMessage.onErrorWhileReadingBodyStream",e),this.removePulseNodeIfItIsThere();for(const r in this._clientFunctionInvocationsByLlmFunctionId)this._clientFunctionInvocationsByLlmFunctionId[r].onErrorWhileReadingBodyStream(e);this._toolCallBuilder.clear(),this._clientFunctionInvocationsByLlmFunctionId={};for(const r in this._subConversations)this._subConversations[r].onErrorWhileReadingBodyStream(e);this._subConversations={}}toDto(){return{role:this.authorRole,content:this._accumulatedMarkdown}}expandAsync(){if(this.conversation instanceof Bo)return this.conversation.expandAsync()}static installClientFunctions(e){e.clientFunctionInvocationHandlers.python=(r,n)=>{const i=new Mo(r,n);return i.run(n),i},e.clientFunctionInvocationHandlersPartial.python=(r,n)=>new Mo(r,n),e.clientFunctionInvocationHandlers.ButtonOptionsDialog=(r,n)=>new ed(r,n),e.clientFunctionInvocationHandlers.search=(r,n)=>new od(r,n),e.clientFunctionInvocationHandlers.WindowOpenDialog=(r,n)=>new ld(r,n)}}function hd(t){for(;;)for(let e=t.lastChild;;e=e.previousSibling)if(e){if(e.nodeType===Node.TEXT_NODE)return t;if(e.nodeType===Node.ELEMENT_NODE){if(e.tagName==="TABLE")return t;t=e;break}}else return t}class No{constructor(e,r){P(this,"node");P(this,"messagesListNode");P(this,"messages",[]);P(this,"activeMessage");P(this,"_opcodeConversationEndReceived");P(this,"_opcodeConversationErrorReceived");P(this,"_onErrorWhileReadingBodyStreamCalled");this.chat=e,this.id=r,this.node=this.messagesListNode=_("ol",null)}onOpcodeMessageBeginReceived(e,r,n,i,a,s,o){const u=new _o(this,e,r,n,i,a,s,o);return this.messages.push(this.activeMessage=u),this.messagesListNode.appendChild(u.node),u}onOpcodeMessageAppendReceived(e){this.activeMessage.append(e)}onOpcodeMessageExecuteLlmFunctionsBeginReceived(){this.activeMessage.executeLlmFunctionsBegin()}onOpcodeMessageExecuteLlmFunctionsEndReceived(){this.activeMessage.executeLlmFunctionsEnd()}onOpcodeMessageToolCallUpdateReceived(e){this.activeMessage.toolCallUpdate(e)}onOpcodeMessageToolCallBeginReceived(e,r){this.activeMessage.onOpcodeMessageToolCallBeginReceived(e,r)}onOpcodeMessageToolCallResultReceived(e,r){this.activeMessage.onOpcodeMessageToolCallResultReceived(e,r)}onOpcodeMessageToolCallErrorReceived(e,r){this.activeMessage.onOpcodeMessageToolCallErrorReceived(e,r)}onOpcodeMessageInvokeClientFunctionReceived(e,r,n,i){this.activeMessage.onOpcodeMessageInvokeClientFunctionReceived(e,r,n,i)}onOpcodeMessageSubConversationBeginReceived(e,r,n,i,a,s){this.activeMessage.subConversationBegin(e,r,n,i,a,s)}handleMessage(e){switch(e.type){case Me.MessageBegin:return this.onOpcodeMessageBeginReceived(e.messageAuthorRole,e.messageAuthorId,e.messageAuthorPictureUrl,e.messageAuthorDisplayName,e.messageAuthorEmail,e.messageId,e.copilotId),!0;case Me.MessageAppend:return this.onOpcodeMessageAppendReceived(e.appendMessageMarkdown),!0;case Me.MessageToolCallUpdate:return this.onOpcodeMessageToolCallUpdateReceived(e),!0;case Me.MessageToolCallBegin:return this.onOpcodeMessageToolCallBeginReceived(e.llmFunctionId,e.toolCallBeginInfo),!0;case Me.MessageToolCallResult:return this.onOpcodeMessageToolCallResultReceived(e.llmFunctionId,e.result),!0;case Me.MessageToolCallError:return this.onOpcodeMessageToolCallErrorReceived(e.llmFunctionId,e.error),!0;case Me.MessageExecuteLlmFunctionsBegin:return this.onOpcodeMessageExecuteLlmFunctionsBeginReceived(),!0;case Me.MessageExecuteLlmFunctionsEnd:return this.onOpcodeMessageExecuteLlmFunctionsEndReceived(),!0;case Me.MessageInvokeClientFunction:return this.onOpcodeMessageInvokeClientFunctionReceived(e.llmFunctionId,e.operationId,e.clientFunctionName,e.argumentsAsJSON),!0;case Me.MessageSubConversationBegin:return this.onOpcodeMessageSubConversationBeginReceived(e.subConversationId,e.messageAuthorId,e.messageAuthorPictureUrl,e.messageAuthorDisplayName,e.messageAuthorEmail,e.subConversationTitle),!0;case Me.ConversationEnd:return this.onOpcodeConversationEndReceived(),!0;case Me.ConversationError:return this.onOpcodeConversationErrorReceived(e.error,e.stackTrace),!0}return!1}onRootConversationEndOfBodyStream(){!this._opcodeConversationEndReceived&&!this._opcodeConversationErrorReceived&&!this._onErrorWhileReadingBodyStreamCalled&&this.onRootConversationUnexpectedEndOfBodyStream(),this.activeMessage=null,this._opcodeConversationEndReceived=!1,this._opcodeConversationErrorReceived=!1,this._onErrorWhileReadingBodyStreamCalled=!1}onRootConversationUnexpectedEndOfBodyStream(){var e,r;(r=(e=this.activeMessage)==null?void 0:e.onErrorWhileReadingBodyStream)==null||r.call(e,new _l),this.displayError("Unexpected end of response","The response ended unexpectedly. Please check your connectivity. Other possible causes include server instability or a bug.")}onOpcodeConversationEndReceived(){var e;this._opcodeConversationEndReceived=!0,(e=this.activeMessage)==null||e.onOpcodeEndReceived()}onOpcodeConversationErrorReceived(e,r){this._opcodeConversationErrorReceived=!0,e&&console.debug(e,r),this.displayError("Error","An undisclosed error occurred. Please contact Veracity Support.")}onErrorBeforeReadingBodyStreamStarted(e,r){if(r){this.displayInfo("Stopped","The generation of the response was stopped.");return}if(e instanceof Oa){this.displayError("Max limit reached","You have reached the maximum input limit. Please try again later.");return}else this.displayError("Error",String(e.message))}onErrorWhileReadingBodyStream(e,r){var n;this._onErrorWhileReadingBodyStreamCalled=!0,(n=this.activeMessage)==null||n.onErrorWhileReadingBodyStream(e),r?this.displayInfo("Stopped","The generation of the response was stopped."):this.displayError("Error while reading response",String(e.message))}displayError(e,r){this.messagesListNode.appendChild(_("li",{class:"m-2 border border-Light p-6 flex gap-5 bg-Sandstone-97"},_(wa,{class:"text-Energy-Red-45"}),_("div",null,_("h6",null,e),_("div",{class:"prose prose-sm prose-neutral"},_("p",null,r)))))}displayInfo(e,r){this.messagesListNode.appendChild(_("li",{class:"m-2 border border-Light p-6 flex gap-5 bg-Sandstone-97"},_(xa,{class:"text-Sea-Blue-Main-28"}),_("div",null,_("h6",null,e),_("div",{class:"prose prose-sm prose-neutral"},_("p",null,r)))))}}class Bo extends No{constructor(r,n,i,a){super(r,n);P(this,"_buttonNode");P(this,"_buttonIconWrapperNode");P(this,"_buttonTextNode");P(this,"_contentWrapperNode");P(this,"_contentNode");P(this,"_expanded",!1);P(this,"_expandedCt");P(this,"_expandPromise");this.parentMessage=i,this.title=a,this.node=_("div",{class:"my-2"},this._buttonNode=_(tn,{class:"p-2 gap-2 group",variant:Ft.Badge,size:$r.Medium,onclick:()=>this.expanded=!this.expanded},this._buttonIconWrapperNode=_("div",{width:"24px",height:"24px"},_(Jn,{size:dn.Small})),this.title,_(Ao,{class:"transition-all duration-300 group-data-[expanded=true]:-rotate-180"})),this._contentWrapperNode=_("div",{class:"grid",gridTemplateRows:this._expanded?"1fr":"0fr",opacity:this._expanded?"1":"0","aria-expanded":this._expanded},_("div",{class:"overflow-hidden"},this._contentNode=_("section",{class:"mt-2 border border-Light flex flex-col bg-Sandstone-95 p-3"},this.messagesListNode))))}get expanded(){return this._expanded}set expanded(r){r!==this._expanded&&(r?this.doExpandAsync():this.doCollapseAsync())}async doExpandAsync(){var n;(n=this._expandedCt)==null||n.cancel();const r=this._expandedCt=new Kt;this._buttonNode.setAttribute("data-expanded",String(this._expanded=!0)),this._expandPromise=(async()=>{try{await cr(this._contentWrapperNode,[{gridTemplateRows:"1fr"}],{duration:300,easing:"ease-in-out",fill:"forwards"},this._expandedCt),await cr(this._contentWrapperNode,[{opacity:"1"}],{duration:300,easing:"ease-in-out",fill:"forwards"},this._expandedCt)}catch(i){if(!r.isCancellationRequested)throw i}})(),await this._expandPromise}async doCollapseAsync(){var n;(n=this._expandedCt)==null||n.cancel();const r=this._expandedCt=new Kt;this._buttonNode.setAttribute("data-expanded",String(this._expanded=!1));try{await cr(this._contentWrapperNode,[{opacity:"0"}],{duration:300,easing:"ease-in-out",fill:"forwards"},this._expandedCt),await cr(this._contentWrapperNode,[{gridTemplateRows:"0fr"}],{duration:300,easing:"ease-in-out",fill:"forwards"},this._expandedCt)}catch(i){if(!r.isCancellationRequested)throw i}}onErrorWhileReadingBodyStream(r){var n;(n=this.activeMessage)==null||n.onErrorWhileReadingBodyStream(r),this.setButtonError(),this.parentMessage.notifySubConversationEnded(this,!0)}onOpcodeConversationEndReceived(){var r;(r=this.activeMessage)==null||r.onOpcodeEndReceived(),this.setButtonSuccess(),this.parentMessage.notifySubConversationEnded(this,!1)}onOpcodeConversationErrorReceived(r,n){var s;r&&console.debug(r,n);const i="An undisclosed error occurred. Please contact Veracity Support.";this.displayError("Error",i);const a=new Error(i);(s=this.activeMessage)==null||s.onErrorWhileReadingBodyStream(a),this.setButtonError(),this.parentMessage.notifySubConversationEnded(this,!1)}setButtonSuccess(){this._buttonNode.setAttribute("data-status","success"),this._buttonIconWrapperNode.replaceChild(_(Yn,null),this._buttonIconWrapperNode.firstChild)}setButtonError(){this._buttonNode.setAttribute("data-status","error"),this._buttonIconWrapperNode.replaceChild(_(ka,null),this._buttonIconWrapperNode.firstChild)}async expandAsync(){await this.parentMessage.expandAsync(),this._expanded?this._expandPromise&&await this._expandPromise:await this.doExpandAsync()}}class dd{constructor(e){P(this,"node");P(this,"url");P(this,"historyUrl");P(this,"feedbackUrl");P(this,"summarizeTitleUrl");P(this,"fetch");P(this,"conversationsById",new Map);P(this,"feedbackByMessageId",new Map);P(this,"rootConversation",new No(this,null));P(this,"clientFunctionInvocationHandlers",{});P(this,"clientFunctionInvocationHandlersPartial",{});P(this,"clientFunctionInvocationsByOperationId",{});P(this,"mdastExtensions",[]);P(this,"pyodide");P(this,"_lazyInitializePyodidePromise");P(this,"_completion");this.conversationsById.set(null,this.rootConversation),this.url=e.url,this.historyUrl=e.historyUrl,this.feedbackUrl=e.feedbackUrl,this.summarizeTitleUrl=e.summarizeTitleUrl,this.fetch=e.fetch??fetch.bind(window),this.node=_("div",null);const r=document.createElement("style");r.textContent=il+`
271
271
  `+al+`
272
272
  `+sl;const n=this.node.attachShadow({mode:"closed"});n.appendChild(r),n.appendChild(this.rootConversation.node),_o.installClientFunctions(this)}lazyInitializePyodideAsync(){return this._lazyInitializePyodidePromise??(this._lazyInitializePyodidePromise=this.doInitializePyodide())}async doInitializePyodide(){return this.pyodide=await o0({indexURL:"https://cdn.veracity.com/vcb/pyodide-0.26.4/pyodide/"}),this.pyodide.FS.mkdir("/mnt"),this.pyodide.FS.mkdir("/mnt/data"),this.pyodide}async runPythonCodeAsync(e){return await this.pyodide.loadPackagesFromImports(e),await this.pyodide.runPythonAsync(e)}get canSubmit(){return!this._completion}async LoadHistoryMessages(){let e=new li;await this.LoadLikesAsync();try{await e.initializeExistingAsync(this.fetch,this.historyUrl)}catch(r){let n=e.wasStopped;throw e=null,this.rootConversation.onErrorBeforeReadingBodyStreamStarted(r,n),r}try{for(;await e.waitToReadAsync();)for(const r of e.read()){switch(r.type){case Me.MessageInvokeClientFunctionResult:{const n=this.clientFunctionInvocationsByOperationId[r.operationId];n.context.conversationMessage.setClientInvocationResult(n,JSON.parse(r.result));continue}case Me.MessageInvokeClientFunctionError:{const n=this.clientFunctionInvocationsByOperationId[r.operationId];n.context.conversationMessage.setClientInvocationError(n,r.error);continue}}this.conversationsById.get(r.conversationId).handleMessage(r)}}catch(r){this.rootConversation.onErrorWhileReadingBodyStream(r,e.wasStopped)}finally{e=null,this.rootConversation.onRootConversationEndOfBodyStream()}}async SummarizeTitleAsync(e,r){const n=new li,i=this.rootConversation.messages.map(a=>a.toDto());i.push({role:"user",content:r});for(let a=0;a<i.length;++a)if(i[a].role==="user"){const s=a+1;for(;s<i.length&&i[s].role==="user";)i[a].content+=`
273
273
  `+i[s].content,i.splice(s,1)}try{return await n.summarizeTitleAsync(this.fetch,this.summarizeTitleUrl,i,e)}catch(a){return console.error("Error summarizing title:",a),null}}async submitMessageAsync(e,r,n){if(!this.canSubmit)throw new Error("Cannot submit message because another message is currently being processed");this._completion=new li;const i=this.rootConversation.messages.map(a=>a.toDto());i.push({role:"user",content:e});for(let a=0;a<i.length;++a)if(i[a].role==="user"){const s=a+1;for(;s<i.length&&i[s].role==="user";)i[a].content+=`
274
- `+i[s].content,i.splice(s,1)}try{await this._completion.startAsync(this.fetch,this.url,i,r,n)}catch(a){let s=this._completion.wasStopped;this._completion=null,this.rootConversation.onErrorBeforeReadingBodyStreamStarted(a,s);return}try{for(;await this._completion.waitToReadAsync();)for(const a of this._completion.read()){switch(a.type){case Me.MessageInvokeClientFunctionResult:{const s=this.clientFunctionInvocationsByOperationId[a.operationId];s.context.conversationMessage.setClientInvocationResult(s,JSON.parse(a.result));continue}case Me.MessageInvokeClientFunctionError:{const s=this.clientFunctionInvocationsByOperationId[a.operationId];s.context.conversationMessage.setClientInvocationError(s,a.error);continue}}this.conversationsById.get(a.conversationId).handleMessage(a)}}catch(a){this.rootConversation.onErrorWhileReadingBodyStream(a,this._completion.wasStopped)}finally{this._completion=null,this.rootConversation.onRootConversationEndOfBodyStream()}}stop(){var e;(e=this._completion)==null||e.stop()}async setLikeAsync(e,r,n,i=null,a=null){const s=await this.fetch(this.feedbackUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messageId:e,isThumbsUp:n,copilotId:r,category:i,comment:a})});if(!s.ok)throw new Error(`Failed to send feedback: ${s.status} ${s.statusText}`);this.feedbackByMessageId.set(e,n)}async LoadLikesAsync(){const e=await this.fetch(`${this.feedbackUrl}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!e.ok)throw new Error(`Failed to get feedback: ${e.status} ${e.statusText}`);const r=await e.json();for(const n of r)this.feedbackByMessageId.set(n.messageId,n.isThumbsUp)}}const jt=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}));function dd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ea,Ro;function md(){if(Ro)return Ea;Ro=1;function t(x){return x instanceof Map?x.clear=x.delete=x.set=function(){throw new Error("map is read-only")}:x instanceof Set&&(x.add=x.clear=x.delete=function(){throw new Error("set is read-only")}),Object.freeze(x),Object.getOwnPropertyNames(x).forEach(R=>{const X=x[R],pe=typeof X;(pe==="object"||pe==="function")&&!Object.isFrozen(X)&&t(X)}),x}class e{constructor(R){R.data===void 0&&(R.data={}),this.data=R.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(x){return x.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function n(x,...R){const X=Object.create(null);for(const pe in x)X[pe]=x[pe];return R.forEach(function(pe){for(const $e in pe)X[$e]=pe[$e]}),X}const i="</span>",a=x=>!!x.scope,s=(x,{prefix:R})=>{if(x.startsWith("language:"))return x.replace("language:","language-");if(x.includes(".")){const X=x.split(".");return[`${R}${X.shift()}`,...X.map((pe,$e)=>`${pe}${"_".repeat($e+1)}`)].join(" ")}return`${R}${x}`};class o{constructor(R,X){this.buffer="",this.classPrefix=X.classPrefix,R.walk(this)}addText(R){this.buffer+=r(R)}openNode(R){if(!a(R))return;const X=s(R.scope,{prefix:this.classPrefix});this.span(X)}closeNode(R){a(R)&&(this.buffer+=i)}value(){return this.buffer}span(R){this.buffer+=`<span class="${R}">`}}const u=(x={})=>{const R={children:[]};return Object.assign(R,x),R};class h{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(R){this.top.children.push(R)}openNode(R){const X=u({scope:R});this.add(X),this.stack.push(X)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(R){return this.constructor._walk(R,this.rootNode)}static _walk(R,X){return typeof X=="string"?R.addText(X):X.children&&(R.openNode(X),X.children.forEach(pe=>this._walk(R,pe)),R.closeNode(X)),R}static _collapse(R){typeof R!="string"&&R.children&&(R.children.every(X=>typeof X=="string")?R.children=[R.children.join("")]:R.children.forEach(X=>{h._collapse(X)}))}}class d extends h{constructor(R){super(),this.options=R}addText(R){R!==""&&this.add(R)}startScope(R){this.openNode(R)}endScope(){this.closeNode()}__addSublanguage(R,X){const pe=R.root;X&&(pe.scope=`language:${X}`),this.add(pe)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(x){return x?typeof x=="string"?x:x.source:null}function b(x){return E("(?=",x,")")}function f(x){return E("(?:",x,")*")}function z(x){return E("(?:",x,")?")}function E(...x){return x.map(X=>p(X)).join("")}function O(x){const R=x[x.length-1];return typeof R=="object"&&R.constructor===Object?(x.splice(x.length-1,1),R):{}}function A(...x){return"("+(O(x).capture?"":"?:")+x.map(pe=>p(pe)).join("|")+")"}function N(x){return new RegExp(x.toString()+"|").exec("").length-1}function I(x,R){const X=x&&x.exec(R);return X&&X.index===0}const Y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function G(x,{joinWith:R}){let X=0;return x.map(pe=>{X+=1;const $e=X;let We=p(pe),te="";for(;We.length>0;){const Q=Y.exec(We);if(!Q){te+=We;break}te+=We.substring(0,Q.index),We=We.substring(Q.index+Q[0].length),Q[0][0]==="\\"&&Q[1]?te+="\\"+String(Number(Q[1])+$e):(te+=Q[0],Q[0]==="("&&X++)}return te}).map(pe=>`(${pe})`).join(R)}const C=/\b\B/,V="[a-zA-Z]\\w*",ee="[a-zA-Z_]\\w*",j="\\b\\d+(\\.\\d+)?",M="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",W="\\b(0b[01]+)",$="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",be=(x={})=>{const R=/^#![ ]*\//;return x.binary&&(x.begin=E(R,/.*\b/,x.binary,/\b.*/)),n({scope:"meta",begin:R,end:/$/,relevance:0,"on:begin":(X,pe)=>{X.index!==0&&pe.ignoreMatch()}},x)},he={begin:"\\\\[\\s\\S]",relevance:0},le={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[he]},Ee={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[he]},Ce={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ue=function(x,R,X={}){const pe=n({scope:"comment",begin:x,end:R,contains:[]},X);pe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const $e=A("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return pe.contains.push({begin:E(/[ ]+/,"(",$e,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),pe},_e=ue("//","$"),w=ue("/\\*","\\*/"),Te=ue("#","$"),Ae={scope:"number",begin:j,relevance:0},k={scope:"number",begin:M,relevance:0},et={scope:"number",begin:W,relevance:0},it={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},He={scope:"title",begin:V,relevance:0},ft={scope:"title",begin:ee,relevance:0},tt={begin:"\\.\\s*"+ee,relevance:0};var at=Object.freeze({__proto__:null,APOS_STRING_MODE:le,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:et,BINARY_NUMBER_RE:W,COMMENT:ue,C_BLOCK_COMMENT_MODE:w,C_LINE_COMMENT_MODE:_e,C_NUMBER_MODE:k,C_NUMBER_RE:M,END_SAME_AS_BEGIN:function(x){return Object.assign(x,{"on:begin":(R,X)=>{X.data._beginMatch=R[1]},"on:end":(R,X)=>{X.data._beginMatch!==R[1]&&X.ignoreMatch()}})},HASH_COMMENT_MODE:Te,IDENT_RE:V,MATCH_NOTHING_RE:C,METHOD_GUARD:tt,NUMBER_MODE:Ae,NUMBER_RE:j,PHRASAL_WORDS_MODE:Ce,QUOTE_STRING_MODE:Ee,REGEXP_MODE:it,RE_STARTERS_RE:$,SHEBANG:be,TITLE_MODE:He,UNDERSCORE_IDENT_RE:ee,UNDERSCORE_TITLE_MODE:ft});function wr(x,R){x.input[x.index-1]==="."&&R.ignoreMatch()}function mn(x,R){x.className!==void 0&&(x.scope=x.className,delete x.className)}function pn(x,R){R&&x.beginKeywords&&(x.begin="\\b("+x.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",x.__beforeBegin=wr,x.keywords=x.keywords||x.beginKeywords,delete x.beginKeywords,x.relevance===void 0&&(x.relevance=0))}function Or(x,R){Array.isArray(x.illegal)&&(x.illegal=A(...x.illegal))}function Lr(x,R){if(x.match){if(x.begin||x.end)throw new Error("begin & end are not supported with match");x.begin=x.match,delete x.match}}function Dr(x,R){x.relevance===void 0&&(x.relevance=1)}const xr=(x,R)=>{if(!x.beforeMatch)return;if(x.starts)throw new Error("beforeMatch cannot be used with starts");const X=Object.assign({},x);Object.keys(x).forEach(pe=>{delete x[pe]}),x.keywords=X.keywords,x.begin=E(X.beforeMatch,b(X.begin)),x.starts={relevance:0,contains:[Object.assign(X,{endsParent:!0})]},x.relevance=0,delete X.beforeMatch},kr=["of","and","for","in","not","or","if","then","parent","list","value"],ar="keyword";function fn(x,R,X=ar){const pe=Object.create(null);return typeof x=="string"?$e(X,x.split(" ")):Array.isArray(x)?$e(X,x):Object.keys(x).forEach(function(We){Object.assign(pe,fn(x[We],R,We))}),pe;function $e(We,te){R&&(te=te.map(Q=>Q.toLowerCase())),te.forEach(function(Q){const me=Q.split("|");pe[me[0]]=[We,Ta(me[0],me[1])]})}}function Ta(x,R){return R?Number(R):Aa(x)?0:1}function Aa(x){return kr.includes(x.toLowerCase())}const ti={},sr=x=>{console.error(x)},ri=(x,...R)=>{console.log(`WARN: ${x}`,...R)},B=(x,R)=>{ti[`${x}/${R}`]||(console.log(`Deprecated as of ${x}. ${R}`),ti[`${x}/${R}`]=!0)},U=new Error;function de(x,R,{key:X}){let pe=0;const $e=x[X],We={},te={};for(let Q=1;Q<=R.length;Q++)te[Q+pe]=$e[Q],We[Q+pe]=!0,pe+=N(R[Q-1]);x[X]=te,x[X]._emit=We,x[X]._multi=!0}function ye(x){if(Array.isArray(x.begin)){if(x.skip||x.excludeBegin||x.returnBegin)throw sr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),U;if(typeof x.beginScope!="object"||x.beginScope===null)throw sr("beginScope must be object"),U;de(x,x.begin,{key:"beginScope"}),x.begin=G(x.begin,{joinWith:""})}}function Ne(x){if(Array.isArray(x.end)){if(x.skip||x.excludeEnd||x.returnEnd)throw sr("skip, excludeEnd, returnEnd not compatible with endScope: {}"),U;if(typeof x.endScope!="object"||x.endScope===null)throw sr("endScope must be object"),U;de(x,x.end,{key:"endScope"}),x.end=G(x.end,{joinWith:""})}}function yt(x){x.scope&&typeof x.scope=="object"&&x.scope!==null&&(x.beginScope=x.scope,delete x.scope)}function or(x){yt(x),typeof x.beginScope=="string"&&(x.beginScope={_wrap:x.beginScope}),typeof x.endScope=="string"&&(x.endScope={_wrap:x.endScope}),ye(x),Ne(x)}function It(x){function R(te,Q){return new RegExp(p(te),"m"+(x.case_insensitive?"i":"")+(x.unicodeRegex?"u":"")+(Q?"g":""))}class X{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Q,me){me.position=this.position++,this.matchIndexes[this.matchAt]=me,this.regexes.push([me,Q]),this.matchAt+=N(Q)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Q=this.regexes.map(me=>me[1]);this.matcherRe=R(G(Q,{joinWith:"|"}),!0),this.lastIndex=0}exec(Q){this.matcherRe.lastIndex=this.lastIndex;const me=this.matcherRe.exec(Q);if(!me)return null;const Ze=me.findIndex((gn,Ma)=>Ma>0&&gn!==void 0),Ve=this.matchIndexes[Ze];return me.splice(0,Ze),Object.assign(me,Ve)}}class pe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Q){if(this.multiRegexes[Q])return this.multiRegexes[Q];const me=new X;return this.rules.slice(Q).forEach(([Ze,Ve])=>me.addRule(Ze,Ve)),me.compile(),this.multiRegexes[Q]=me,me}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Q,me){this.rules.push([Q,me]),me.type==="begin"&&this.count++}exec(Q){const me=this.getMatcher(this.regexIndex);me.lastIndex=this.lastIndex;let Ze=me.exec(Q);if(this.resumingScanAtSamePosition()&&!(Ze&&Ze.index===this.lastIndex)){const Ve=this.getMatcher(0);Ve.lastIndex=this.lastIndex+1,Ze=Ve.exec(Q)}return Ze&&(this.regexIndex+=Ze.position+1,this.regexIndex===this.count&&this.considerAll()),Ze}}function $e(te){const Q=new pe;return te.contains.forEach(me=>Q.addRule(me.begin,{rule:me,type:"begin"})),te.terminatorEnd&&Q.addRule(te.terminatorEnd,{type:"end"}),te.illegal&&Q.addRule(te.illegal,{type:"illegal"}),Q}function We(te,Q){const me=te;if(te.isCompiled)return me;[mn,Lr,or,xr].forEach(Ve=>Ve(te,Q)),x.compilerExtensions.forEach(Ve=>Ve(te,Q)),te.__beforeBegin=null,[pn,Or,Dr].forEach(Ve=>Ve(te,Q)),te.isCompiled=!0;let Ze=null;return typeof te.keywords=="object"&&te.keywords.$pattern&&(te.keywords=Object.assign({},te.keywords),Ze=te.keywords.$pattern,delete te.keywords.$pattern),Ze=Ze||/\w+/,te.keywords&&(te.keywords=fn(te.keywords,x.case_insensitive)),me.keywordPatternRe=R(Ze,!0),Q&&(te.begin||(te.begin=/\B|\b/),me.beginRe=R(me.begin),!te.end&&!te.endsWithParent&&(te.end=/\B|\b/),te.end&&(me.endRe=R(me.end)),me.terminatorEnd=p(me.end)||"",te.endsWithParent&&Q.terminatorEnd&&(me.terminatorEnd+=(te.end?"|":"")+Q.terminatorEnd)),te.illegal&&(me.illegalRe=R(te.illegal)),te.contains||(te.contains=[]),te.contains=[].concat(...te.contains.map(function(Ve){return Fr(Ve==="self"?te:Ve)})),te.contains.forEach(function(Ve){We(Ve,me)}),te.starts&&We(te.starts,Q),me.matcher=$e(me),me}if(x.compilerExtensions||(x.compilerExtensions=[]),x.contains&&x.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return x.classNameAliases=n(x.classNameAliases||{}),We(x)}function Sr(x){return x?x.endsWithParent||Sr(x.starts):!1}function Fr(x){return x.variants&&!x.cachedVariants&&(x.cachedVariants=x.variants.map(function(R){return n(x,{variants:null},R)})),x.cachedVariants?x.cachedVariants:Sr(x)?n(x,{starts:x.starts?n(x.starts):null}):Object.isFrozen(x)?n(x):x}var ht="11.10.0";class zr extends Error{constructor(R,X){super(R),this.name="HTMLInjectionError",this.html=X}}const wt=r,jo=n,Vo=Symbol("nomatch"),Pd=7,Xo=function(x){const R=Object.create(null),X=Object.create(null),pe=[];let $e=!0;const We="Could not find the language '{}', did you forget to load/include a language module?",te={disableAutodetect:!0,name:"Plain text",contains:[]};let Q={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function me(q){return Q.noHighlightRe.test(q)}function Ze(q){let ae=q.className+" ";ae+=q.parentNode?q.parentNode.className:"";const ke=Q.languageDetectRe.exec(ae);if(ke){const Oe=Er(ke[1]);return Oe||(ri(We.replace("{}",ke[1])),ri("Falling back to no-highlight mode for this block.",q)),Oe?ke[1]:"no-highlight"}return ae.split(/\s+/).find(Oe=>me(Oe)||Er(Oe))}function Ve(q,ae,ke){let Oe="",Ye="";typeof ae=="object"?(Oe=q,ke=ae.ignoreIllegals,Ye=ae.language):(B("10.7.0","highlight(lang, code, ...args) has been deprecated."),B("10.7.0",`Please use highlight(code, options) instead.
275
- https://github.com/highlightjs/highlight.js/issues/2277`),Ye=q,Oe=ae),ke===void 0&&(ke=!0);const Ot={code:Oe,language:Ye};ii("before:highlight",Ot);const Tr=Ot.result?Ot.result:gn(Ot.language,Ot.code,ke);return Tr.code=Ot.code,ii("after:highlight",Tr),Tr}function gn(q,ae,ke,Oe){const Ye=Object.create(null);function Ot(Z,ne){return Z.keywords[ne]}function Tr(){if(!fe.keywords){rt.addText(Le);return}let Z=0;fe.keywordPatternRe.lastIndex=0;let ne=fe.keywordPatternRe.exec(Le),ve="";for(;ne;){ve+=Le.substring(Z,ne.index);const Be=Xt.case_insensitive?ne[0].toLowerCase():ne[0],st=Ot(fe,Be);if(st){const[lr,n4]=st;if(rt.addText(ve),ve="",Ye[Be]=(Ye[Be]||0)+1,Ye[Be]<=Pd&&(oi+=n4),lr.startsWith("_"))ve+=ne[0];else{const i4=Xt.classNameAliases[lr]||lr;Vt(ne[0],i4)}}else ve+=ne[0];Z=fe.keywordPatternRe.lastIndex,ne=fe.keywordPatternRe.exec(Le)}ve+=Le.substring(Z),rt.addText(ve)}function ai(){if(Le==="")return;let Z=null;if(typeof fe.subLanguage=="string"){if(!R[fe.subLanguage]){rt.addText(Le);return}Z=gn(fe.subLanguage,Le,!0,rl[fe.subLanguage]),rl[fe.subLanguage]=Z._top}else Z=Ca(Le,fe.subLanguage.length?fe.subLanguage:null);fe.relevance>0&&(oi+=Z.relevance),rt.__addSublanguage(Z._emitter,Z.language)}function xt(){fe.subLanguage!=null?ai():Tr(),Le=""}function Vt(Z,ne){Z!==""&&(rt.startScope(ne),rt.addText(Z),rt.endScope())}function Jo(Z,ne){let ve=1;const Be=ne.length-1;for(;ve<=Be;){if(!Z._emit[ve]){ve++;continue}const st=Xt.classNameAliases[Z[ve]]||Z[ve],lr=ne[ve];st?Vt(lr,st):(Le=lr,Tr(),Le=""),ve++}}function Qo(Z,ne){return Z.scope&&typeof Z.scope=="string"&&rt.openNode(Xt.classNameAliases[Z.scope]||Z.scope),Z.beginScope&&(Z.beginScope._wrap?(Vt(Le,Xt.classNameAliases[Z.beginScope._wrap]||Z.beginScope._wrap),Le=""):Z.beginScope._multi&&(Jo(Z.beginScope,ne),Le="")),fe=Object.create(Z,{parent:{value:fe}}),fe}function el(Z,ne,ve){let Be=I(Z.endRe,ve);if(Be){if(Z["on:end"]){const st=new e(Z);Z["on:end"](ne,st),st.isMatchIgnored&&(Be=!1)}if(Be){for(;Z.endsParent&&Z.parent;)Z=Z.parent;return Z}}if(Z.endsWithParent)return el(Z.parent,ne,ve)}function Jd(Z){return fe.matcher.regexIndex===0?(Le+=Z[0],1):(Ra=!0,0)}function Qd(Z){const ne=Z[0],ve=Z.rule,Be=new e(ve),st=[ve.__beforeBegin,ve["on:begin"]];for(const lr of st)if(lr&&(lr(Z,Be),Be.isMatchIgnored))return Jd(ne);return ve.skip?Le+=ne:(ve.excludeBegin&&(Le+=ne),xt(),!ve.returnBegin&&!ve.excludeBegin&&(Le=ne)),Qo(ve,Z),ve.returnBegin?0:ne.length}function e4(Z){const ne=Z[0],ve=ae.substring(Z.index),Be=el(fe,Z,ve);if(!Be)return Vo;const st=fe;fe.endScope&&fe.endScope._wrap?(xt(),Vt(ne,fe.endScope._wrap)):fe.endScope&&fe.endScope._multi?(xt(),Jo(fe.endScope,Z)):st.skip?Le+=ne:(st.returnEnd||st.excludeEnd||(Le+=ne),xt(),st.excludeEnd&&(Le=ne));do fe.scope&&rt.closeNode(),!fe.skip&&!fe.subLanguage&&(oi+=fe.relevance),fe=fe.parent;while(fe!==Be.parent);return Be.starts&&Qo(Be.starts,Z),st.returnEnd?0:ne.length}function t4(){const Z=[];for(let ne=fe;ne!==Xt;ne=ne.parent)ne.scope&&Z.unshift(ne.scope);Z.forEach(ne=>rt.openNode(ne))}let si={};function tl(Z,ne){const ve=ne&&ne[0];if(Le+=Z,ve==null)return xt(),0;if(si.type==="begin"&&ne.type==="end"&&si.index===ne.index&&ve===""){if(Le+=ae.slice(ne.index,ne.index+1),!$e){const Be=new Error(`0 width match regex (${q})`);throw Be.languageName=q,Be.badRule=si.rule,Be}return 1}if(si=ne,ne.type==="begin")return Qd(ne);if(ne.type==="illegal"&&!ke){const Be=new Error('Illegal lexeme "'+ve+'" for mode "'+(fe.scope||"<unnamed>")+'"');throw Be.mode=fe,Be}else if(ne.type==="end"){const Be=e4(ne);if(Be!==Vo)return Be}if(ne.type==="illegal"&&ve==="")return 1;if(Ba>1e5&&Ba>ne.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Le+=ve,ve.length}const Xt=Er(q);if(!Xt)throw sr(We.replace("{}",q)),new Error('Unknown language: "'+q+'"');const r4=It(Xt);let Na="",fe=Oe||r4;const rl={},rt=new Q.__emitter(Q);t4();let Le="",oi=0,Pr=0,Ba=0,Ra=!1;try{if(Xt.__emitTokens)Xt.__emitTokens(ae,rt);else{for(fe.matcher.considerAll();;){Ba++,Ra?Ra=!1:fe.matcher.considerAll(),fe.matcher.lastIndex=Pr;const Z=fe.matcher.exec(ae);if(!Z)break;const ne=ae.substring(Pr,Z.index),ve=tl(ne,Z);Pr=Z.index+ve}tl(ae.substring(Pr))}return rt.finalize(),Na=rt.toHTML(),{language:q,value:Na,relevance:oi,illegal:!1,_emitter:rt,_top:fe}}catch(Z){if(Z.message&&Z.message.includes("Illegal"))return{language:q,value:wt(ae),illegal:!0,relevance:0,_illegalBy:{message:Z.message,index:Pr,context:ae.slice(Pr-100,Pr+100),mode:Z.mode,resultSoFar:Na},_emitter:rt};if($e)return{language:q,value:wt(ae),illegal:!1,relevance:0,errorRaised:Z,_emitter:rt,_top:fe};throw Z}}function Ma(q){const ae={value:wt(q),illegal:!1,relevance:0,_top:te,_emitter:new Q.__emitter(Q)};return ae._emitter.addText(q),ae}function Ca(q,ae){ae=ae||Q.languages||Object.keys(R);const ke=Ma(q),Oe=ae.filter(Er).filter(Zo).map(xt=>gn(xt,q,!1));Oe.unshift(ke);const Ye=Oe.sort((xt,Vt)=>{if(xt.relevance!==Vt.relevance)return Vt.relevance-xt.relevance;if(xt.language&&Vt.language){if(Er(xt.language).supersetOf===Vt.language)return 1;if(Er(Vt.language).supersetOf===xt.language)return-1}return 0}),[Ot,Tr]=Ye,ai=Ot;return ai.secondBest=Tr,ai}function qd(q,ae,ke){const Oe=ae&&X[ae]||ke;q.classList.add("hljs"),q.classList.add(`language-${Oe}`)}function _a(q){let ae=null;const ke=Ze(q);if(me(ke))return;if(ii("before:highlightElement",{el:q,language:ke}),q.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",q);return}if(q.children.length>0&&(Q.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(q)),Q.throwUnescapedHTML))throw new zr("One of your code blocks includes unescaped HTML.",q.innerHTML);ae=q;const Oe=ae.textContent,Ye=ke?Ve(Oe,{language:ke,ignoreIllegals:!0}):Ca(Oe);q.innerHTML=Ye.value,q.dataset.highlighted="yes",qd(q,ke,Ye.language),q.result={language:Ye.language,re:Ye.relevance,relevance:Ye.relevance},Ye.secondBest&&(q.secondBest={language:Ye.secondBest.language,relevance:Ye.secondBest.relevance}),ii("after:highlightElement",{el:q,result:Ye,text:Oe})}function Ud(q){Q=jo(Q,q)}const Hd=()=>{ni(),B("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Gd(){ni(),B("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ko=!1;function ni(){if(document.readyState==="loading"){Ko=!0;return}document.querySelectorAll(Q.cssSelector).forEach(_a)}function $d(){Ko&&ni()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",$d,!1);function Wd(q,ae){let ke=null;try{ke=ae(x)}catch(Oe){if(sr("Language definition for '{}' could not be registered.".replace("{}",q)),$e)sr(Oe);else throw Oe;ke=te}ke.name||(ke.name=q),R[q]=ke,ke.rawDefinition=ae.bind(null,x),ke.aliases&&Yo(ke.aliases,{languageName:q})}function jd(q){delete R[q];for(const ae of Object.keys(X))X[ae]===q&&delete X[ae]}function Vd(){return Object.keys(R)}function Er(q){return q=(q||"").toLowerCase(),R[q]||R[X[q]]}function Yo(q,{languageName:ae}){typeof q=="string"&&(q=[q]),q.forEach(ke=>{X[ke.toLowerCase()]=ae})}function Zo(q){const ae=Er(q);return ae&&!ae.disableAutodetect}function Xd(q){q["before:highlightBlock"]&&!q["before:highlightElement"]&&(q["before:highlightElement"]=ae=>{q["before:highlightBlock"](Object.assign({block:ae.el},ae))}),q["after:highlightBlock"]&&!q["after:highlightElement"]&&(q["after:highlightElement"]=ae=>{q["after:highlightBlock"](Object.assign({block:ae.el},ae))})}function Kd(q){Xd(q),pe.push(q)}function Yd(q){const ae=pe.indexOf(q);ae!==-1&&pe.splice(ae,1)}function ii(q,ae){const ke=q;pe.forEach(function(Oe){Oe[ke]&&Oe[ke](ae)})}function Zd(q){return B("10.7.0","highlightBlock will be removed entirely in v12.0"),B("10.7.0","Please use highlightElement now."),_a(q)}Object.assign(x,{highlight:Ve,highlightAuto:Ca,highlightAll:ni,highlightElement:_a,highlightBlock:Zd,configure:Ud,initHighlighting:Hd,initHighlightingOnLoad:Gd,registerLanguage:Wd,unregisterLanguage:jd,listLanguages:Vd,getLanguage:Er,registerAliases:Yo,autoDetection:Zo,inherit:jo,addPlugin:Kd,removePlugin:Yd}),x.debugMode=function(){$e=!1},x.safeMode=function(){$e=!0},x.versionString=ht,x.regex={concat:E,lookahead:b,either:A,optional:z,anyNumberOfTimes:f};for(const q in at)typeof at[q]=="object"&&t(at[q]);return Object.assign(x,at),x},Qr=Xo({});return Qr.newInstance=()=>Xo({}),Ea=Qr,Qr.HighlightJS=Qr,Qr.default=Qr,Ea}var pd=md();const Io=dd(pd),fd=Object.freeze(Object.defineProperty({__proto__:null,HighlightJS:Io,default:Io},Symbol.toStringTag,{value:"Module"})),Oo="[A-Za-z$_][0-9A-Za-z$_]*",gd=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],bd=["true","false","null","undefined","NaN","Infinity"],Lo=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Do=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Fo=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],vd=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],yd=[].concat(Fo,Lo,Do);function wd(t){const e=t.regex,r=(ue,{after:_e})=>{const w="</"+ue[0].slice(1);return ue.input.indexOf(w,_e)!==-1},n=Oo,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ue,_e)=>{const w=ue[0].length+ue.index,Te=ue.input[w];if(Te==="<"||Te===","){_e.ignoreMatch();return}Te===">"&&(r(ue,{after:w})||_e.ignoreMatch());let Ae;const k=ue.input.substring(w);if(Ae=k.match(/^\s*=/)){_e.ignoreMatch();return}if((Ae=k.match(/^\s+extends\s+/))&&Ae.index===0){_e.ignoreMatch();return}}},o={$pattern:Oo,keyword:gd,literal:bd,built_in:yd,"variable.language":vd},u="[0-9](_?[0-9])*",h=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${d})((${h})|\\.)?|(${h}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},z={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,b],subLanguage:"css"}},E={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,b]},N={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},I=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,z,E,O,{match:/\$\d+/},p];b.contains=I.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(I)});const Y=[].concat(N,b.contains),G=Y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(Y)}]),C={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:G},V={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},ee={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Lo,...Do]}},j={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},M={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[C],illegal:/%/},W={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function $(ue){return e.concat("(?!",ue.join("|"),")")}const be={match:e.concat(/\b/,$([...Fo,"super","import"].map(ue=>`${ue}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},he={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},le={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},C]},Ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",Ce={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(Ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[C]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:G,CLASS_REFERENCE:ee},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),j,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,z,E,O,N,{match:/\$\d+/},p,ee,{className:"attr",begin:n+e.lookahead(":"),relevance:0},Ce,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[N,t.REGEXP_MODE,{className:"function",begin:Ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:G}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[C,t.inherit(t.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},he,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[C]},be,W,V,le,{match:/\$[(.]/}]}}const xd=Object.freeze(Object.defineProperty({__proto__:null,default:wd},Symbol.toStringTag,{value:"Module"}));function kd(t){const e=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],n=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],s={keyword:i.concat(a),built_in:e,literal:n},o=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},h={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=t.inherit(d,{illegal:/\n/}),b={className:"subst",begin:/\{/,end:/\}/,keywords:s},f=t.inherit(b,{illegal:/\n/}),z={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,f]},E={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},b]},O=t.inherit(E,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});b.contains=[E,z,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,t.C_BLOCK_COMMENT_MODE],f.contains=[O,z,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const A={variants:[h,E,z,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},N={begin:"<",end:">",contains:[{beginKeywords:"in out"},o]},I=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",Y={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:s,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},A,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},o,N,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[o,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[o,N,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+I+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:s,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,N],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,relevance:0,contains:[A,u,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},Y]}}const Sd=Object.freeze(Object.defineProperty({__proto__:null,default:kd},Symbol.toStringTag,{value:"Module"}));function zd(t){const e=t.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),n=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],o={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:n,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},h={className:"subst",begin:/\{/,end:/\}/,keywords:o,illegal:/#/},d={begin:/\{\{/,relevance:0},p={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,u,d,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,u,d,h]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,d,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,d,h]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},b="[0-9](_?[0-9])*",f=`(\\b(${b}))?\\.(${b})|\\b(${b})\\.`,z=`\\b|${n.join("|")}`,E={className:"number",relevance:0,variants:[{begin:`(\\b(${b})|(${f}))[eE][+-]?(${b})[jJ]?(?=${z})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${z})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${z})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${z})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${z})`},{begin:`\\b(${b})[jJ](?=${z})`}]},O={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:o,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},A={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:["self",u,E,p,t.HASH_COMMENT_MODE]}]};return h.contains=[p,E,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o,illegal:/(<\/|\?)|=>/,contains:[u,E,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},p,O,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[A]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[E,A,p]}]}}const Ed=Object.freeze(Object.defineProperty({__proto__:null,default:zd},Symbol.toStringTag,{value:"Module"})),Td=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Ad=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Md=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Cd=[...Ad,...Md],_d=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Nd=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Bd=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Rd=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function Id(t){const e=t.regex,r=Td(t),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",o=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,n,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Nd.join("|")+")"},{begin:":(:)?("+Bd.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Rd.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...o,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...o,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:_d.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...o,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Cd.join("|")+")\\b"}]}}const Od=Object.freeze(Object.defineProperty({__proto__:null,default:Id},Symbol.toStringTag,{value:"Module"})),ei="[A-Za-z$_][0-9A-Za-z$_]*",Po=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],qo=["true","false","null","undefined","NaN","Infinity"],Uo=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ho=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Go=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],$o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Wo=[].concat(Go,Uo,Ho);function Ld(t){const e=t.regex,r=(ue,{after:_e})=>{const w="</"+ue[0].slice(1);return ue.input.indexOf(w,_e)!==-1},n=ei,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ue,_e)=>{const w=ue[0].length+ue.index,Te=ue.input[w];if(Te==="<"||Te===","){_e.ignoreMatch();return}Te===">"&&(r(ue,{after:w})||_e.ignoreMatch());let Ae;const k=ue.input.substring(w);if(Ae=k.match(/^\s*=/)){_e.ignoreMatch();return}if((Ae=k.match(/^\s+extends\s+/))&&Ae.index===0){_e.ignoreMatch();return}}},o={$pattern:ei,keyword:Po,literal:qo,built_in:Wo,"variable.language":$o},u="[0-9](_?[0-9])*",h=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${d})((${h})|\\.)?|(${h}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},z={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,b],subLanguage:"css"}},E={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,b]},N={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},I=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,z,E,O,{match:/\$\d+/},p];b.contains=I.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(I)});const Y=[].concat(N,b.contains),G=Y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(Y)}]),C={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:G},V={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},ee={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Uo,...Ho]}},j={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},M={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[C],illegal:/%/},W={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function $(ue){return e.concat("(?!",ue.join("|"),")")}const be={match:e.concat(/\b/,$([...Go,"super","import"].map(ue=>`${ue}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},he={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},le={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},C]},Ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",Ce={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(Ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[C]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:G,CLASS_REFERENCE:ee},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),j,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,z,E,O,N,{match:/\$\d+/},p,ee,{className:"attr",begin:n+e.lookahead(":"),relevance:0},Ce,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[N,t.REGEXP_MODE,{className:"function",begin:Ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:G}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[C,t.inherit(t.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},he,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[C]},be,W,V,le,{match:/\$[(.]/}]}}function Dd(t){const e=Ld(t),r=ei,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[e.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},o=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:ei,keyword:Po.concat(o),literal:qo,built_in:Wo.concat(n),"variable.language":$o},h={className:"meta",begin:"@"+r},d=(f,z,E)=>{const O=f.contains.findIndex(A=>A.label===z);if(O===-1)throw new Error("can not find mode to replace");f.contains.splice(O,1,E)};Object.assign(e.keywords,u),e.exports.PARAMS_CONTAINS.push(h);const p=e.contains.find(f=>f.className==="attr");e.exports.PARAMS_CONTAINS.push([e.exports.CLASS_REFERENCE,p]),e.contains=e.contains.concat([h,i,a]),d(e,"shebang",t.SHEBANG()),d(e,"use_strict",s);const b=e.contains.find(f=>f.label==="func.def");return b.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}const Fd=Object.freeze(Object.defineProperty({__proto__:null,default:Dd},Symbol.toStringTag,{value:"Module"}));kt.Chat=hd,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})});
274
+ `+i[s].content,i.splice(s,1)}try{await this._completion.startAsync(this.fetch,this.url,i,r,n)}catch(a){let s=this._completion.wasStopped;this._completion=null,this.rootConversation.onErrorBeforeReadingBodyStreamStarted(a,s);return}try{for(;await this._completion.waitToReadAsync();)for(const a of this._completion.read()){switch(a.type){case Me.MessageInvokeClientFunctionResult:{const s=this.clientFunctionInvocationsByOperationId[a.operationId];s.context.conversationMessage.setClientInvocationResult(s,JSON.parse(a.result));continue}case Me.MessageInvokeClientFunctionError:{const s=this.clientFunctionInvocationsByOperationId[a.operationId];s.context.conversationMessage.setClientInvocationError(s,a.error);continue}}this.conversationsById.get(a.conversationId).handleMessage(a)}}catch(a){this.rootConversation.onErrorWhileReadingBodyStream(a,this._completion.wasStopped)}finally{this._completion=null,this.rootConversation.onRootConversationEndOfBodyStream()}}stop(){var e;(e=this._completion)==null||e.stop()}async setLikeAsync(e,r,n,i=null,a=null){const s=await this.fetch(this.feedbackUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messageId:e,isThumbsUp:n,copilotId:r,category:i,comment:a})});if(!s.ok)throw new Error(`Failed to send feedback: ${s.status} ${s.statusText}`);this.feedbackByMessageId.set(e,n)}async LoadLikesAsync(){const e=await this.fetch(`${this.feedbackUrl}`,{method:"GET",headers:{"Content-Type":"application/json"}});if(!e.ok)throw new Error(`Failed to get feedback: ${e.status} ${e.statusText}`);const r=await e.json();for(const n of r)this.feedbackByMessageId.set(n.messageId,n.isThumbsUp)}}const jt=Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}));function md(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ea,Ro;function pd(){if(Ro)return Ea;Ro=1;function t(x){return x instanceof Map?x.clear=x.delete=x.set=function(){throw new Error("map is read-only")}:x instanceof Set&&(x.add=x.clear=x.delete=function(){throw new Error("set is read-only")}),Object.freeze(x),Object.getOwnPropertyNames(x).forEach(R=>{const X=x[R],pe=typeof X;(pe==="object"||pe==="function")&&!Object.isFrozen(X)&&t(X)}),x}class e{constructor(R){R.data===void 0&&(R.data={}),this.data=R.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(x){return x.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function n(x,...R){const X=Object.create(null);for(const pe in x)X[pe]=x[pe];return R.forEach(function(pe){for(const $e in pe)X[$e]=pe[$e]}),X}const i="</span>",a=x=>!!x.scope,s=(x,{prefix:R})=>{if(x.startsWith("language:"))return x.replace("language:","language-");if(x.includes(".")){const X=x.split(".");return[`${R}${X.shift()}`,...X.map((pe,$e)=>`${pe}${"_".repeat($e+1)}`)].join(" ")}return`${R}${x}`};class o{constructor(R,X){this.buffer="",this.classPrefix=X.classPrefix,R.walk(this)}addText(R){this.buffer+=r(R)}openNode(R){if(!a(R))return;const X=s(R.scope,{prefix:this.classPrefix});this.span(X)}closeNode(R){a(R)&&(this.buffer+=i)}value(){return this.buffer}span(R){this.buffer+=`<span class="${R}">`}}const u=(x={})=>{const R={children:[]};return Object.assign(R,x),R};class h{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(R){this.top.children.push(R)}openNode(R){const X=u({scope:R});this.add(X),this.stack.push(X)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(R){return this.constructor._walk(R,this.rootNode)}static _walk(R,X){return typeof X=="string"?R.addText(X):X.children&&(R.openNode(X),X.children.forEach(pe=>this._walk(R,pe)),R.closeNode(X)),R}static _collapse(R){typeof R!="string"&&R.children&&(R.children.every(X=>typeof X=="string")?R.children=[R.children.join("")]:R.children.forEach(X=>{h._collapse(X)}))}}class d extends h{constructor(R){super(),this.options=R}addText(R){R!==""&&this.add(R)}startScope(R){this.openNode(R)}endScope(){this.closeNode()}__addSublanguage(R,X){const pe=R.root;X&&(pe.scope=`language:${X}`),this.add(pe)}toHTML(){return new o(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(x){return x?typeof x=="string"?x:x.source:null}function b(x){return E("(?=",x,")")}function f(x){return E("(?:",x,")*")}function z(x){return E("(?:",x,")?")}function E(...x){return x.map(X=>p(X)).join("")}function O(x){const R=x[x.length-1];return typeof R=="object"&&R.constructor===Object?(x.splice(x.length-1,1),R):{}}function A(...x){return"("+(O(x).capture?"":"?:")+x.map(pe=>p(pe)).join("|")+")"}function N(x){return new RegExp(x.toString()+"|").exec("").length-1}function I(x,R){const X=x&&x.exec(R);return X&&X.index===0}const Y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function G(x,{joinWith:R}){let X=0;return x.map(pe=>{X+=1;const $e=X;let We=p(pe),te="";for(;We.length>0;){const Q=Y.exec(We);if(!Q){te+=We;break}te+=We.substring(0,Q.index),We=We.substring(Q.index+Q[0].length),Q[0][0]==="\\"&&Q[1]?te+="\\"+String(Number(Q[1])+$e):(te+=Q[0],Q[0]==="("&&X++)}return te}).map(pe=>`(${pe})`).join(R)}const C=/\b\B/,V="[a-zA-Z]\\w*",ee="[a-zA-Z_]\\w*",j="\\b\\d+(\\.\\d+)?",M="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",W="\\b(0b[01]+)",$="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",be=(x={})=>{const R=/^#![ ]*\//;return x.binary&&(x.begin=E(R,/.*\b/,x.binary,/\b.*/)),n({scope:"meta",begin:R,end:/$/,relevance:0,"on:begin":(X,pe)=>{X.index!==0&&pe.ignoreMatch()}},x)},he={begin:"\\\\[\\s\\S]",relevance:0},le={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[he]},Ee={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[he]},Ce={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ue=function(x,R,X={}){const pe=n({scope:"comment",begin:x,end:R,contains:[]},X);pe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const $e=A("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return pe.contains.push({begin:E(/[ ]+/,"(",$e,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),pe},_e=ue("//","$"),w=ue("/\\*","\\*/"),Te=ue("#","$"),Ae={scope:"number",begin:j,relevance:0},k={scope:"number",begin:M,relevance:0},et={scope:"number",begin:W,relevance:0},it={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},He={scope:"title",begin:V,relevance:0},ft={scope:"title",begin:ee,relevance:0},tt={begin:"\\.\\s*"+ee,relevance:0};var at=Object.freeze({__proto__:null,APOS_STRING_MODE:le,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:et,BINARY_NUMBER_RE:W,COMMENT:ue,C_BLOCK_COMMENT_MODE:w,C_LINE_COMMENT_MODE:_e,C_NUMBER_MODE:k,C_NUMBER_RE:M,END_SAME_AS_BEGIN:function(x){return Object.assign(x,{"on:begin":(R,X)=>{X.data._beginMatch=R[1]},"on:end":(R,X)=>{X.data._beginMatch!==R[1]&&X.ignoreMatch()}})},HASH_COMMENT_MODE:Te,IDENT_RE:V,MATCH_NOTHING_RE:C,METHOD_GUARD:tt,NUMBER_MODE:Ae,NUMBER_RE:j,PHRASAL_WORDS_MODE:Ce,QUOTE_STRING_MODE:Ee,REGEXP_MODE:it,RE_STARTERS_RE:$,SHEBANG:be,TITLE_MODE:He,UNDERSCORE_IDENT_RE:ee,UNDERSCORE_TITLE_MODE:ft});function wr(x,R){x.input[x.index-1]==="."&&R.ignoreMatch()}function mn(x,R){x.className!==void 0&&(x.scope=x.className,delete x.className)}function pn(x,R){R&&x.beginKeywords&&(x.begin="\\b("+x.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",x.__beforeBegin=wr,x.keywords=x.keywords||x.beginKeywords,delete x.beginKeywords,x.relevance===void 0&&(x.relevance=0))}function Or(x,R){Array.isArray(x.illegal)&&(x.illegal=A(...x.illegal))}function Lr(x,R){if(x.match){if(x.begin||x.end)throw new Error("begin & end are not supported with match");x.begin=x.match,delete x.match}}function Dr(x,R){x.relevance===void 0&&(x.relevance=1)}const xr=(x,R)=>{if(!x.beforeMatch)return;if(x.starts)throw new Error("beforeMatch cannot be used with starts");const X=Object.assign({},x);Object.keys(x).forEach(pe=>{delete x[pe]}),x.keywords=X.keywords,x.begin=E(X.beforeMatch,b(X.begin)),x.starts={relevance:0,contains:[Object.assign(X,{endsParent:!0})]},x.relevance=0,delete X.beforeMatch},kr=["of","and","for","in","not","or","if","then","parent","list","value"],ar="keyword";function fn(x,R,X=ar){const pe=Object.create(null);return typeof x=="string"?$e(X,x.split(" ")):Array.isArray(x)?$e(X,x):Object.keys(x).forEach(function(We){Object.assign(pe,fn(x[We],R,We))}),pe;function $e(We,te){R&&(te=te.map(Q=>Q.toLowerCase())),te.forEach(function(Q){const me=Q.split("|");pe[me[0]]=[We,Ta(me[0],me[1])]})}}function Ta(x,R){return R?Number(R):Aa(x)?0:1}function Aa(x){return kr.includes(x.toLowerCase())}const ti={},sr=x=>{console.error(x)},ri=(x,...R)=>{console.log(`WARN: ${x}`,...R)},B=(x,R)=>{ti[`${x}/${R}`]||(console.log(`Deprecated as of ${x}. ${R}`),ti[`${x}/${R}`]=!0)},U=new Error;function de(x,R,{key:X}){let pe=0;const $e=x[X],We={},te={};for(let Q=1;Q<=R.length;Q++)te[Q+pe]=$e[Q],We[Q+pe]=!0,pe+=N(R[Q-1]);x[X]=te,x[X]._emit=We,x[X]._multi=!0}function ye(x){if(Array.isArray(x.begin)){if(x.skip||x.excludeBegin||x.returnBegin)throw sr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),U;if(typeof x.beginScope!="object"||x.beginScope===null)throw sr("beginScope must be object"),U;de(x,x.begin,{key:"beginScope"}),x.begin=G(x.begin,{joinWith:""})}}function Ne(x){if(Array.isArray(x.end)){if(x.skip||x.excludeEnd||x.returnEnd)throw sr("skip, excludeEnd, returnEnd not compatible with endScope: {}"),U;if(typeof x.endScope!="object"||x.endScope===null)throw sr("endScope must be object"),U;de(x,x.end,{key:"endScope"}),x.end=G(x.end,{joinWith:""})}}function yt(x){x.scope&&typeof x.scope=="object"&&x.scope!==null&&(x.beginScope=x.scope,delete x.scope)}function or(x){yt(x),typeof x.beginScope=="string"&&(x.beginScope={_wrap:x.beginScope}),typeof x.endScope=="string"&&(x.endScope={_wrap:x.endScope}),ye(x),Ne(x)}function It(x){function R(te,Q){return new RegExp(p(te),"m"+(x.case_insensitive?"i":"")+(x.unicodeRegex?"u":"")+(Q?"g":""))}class X{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Q,me){me.position=this.position++,this.matchIndexes[this.matchAt]=me,this.regexes.push([me,Q]),this.matchAt+=N(Q)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Q=this.regexes.map(me=>me[1]);this.matcherRe=R(G(Q,{joinWith:"|"}),!0),this.lastIndex=0}exec(Q){this.matcherRe.lastIndex=this.lastIndex;const me=this.matcherRe.exec(Q);if(!me)return null;const Ze=me.findIndex((gn,Ma)=>Ma>0&&gn!==void 0),Ve=this.matchIndexes[Ze];return me.splice(0,Ze),Object.assign(me,Ve)}}class pe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Q){if(this.multiRegexes[Q])return this.multiRegexes[Q];const me=new X;return this.rules.slice(Q).forEach(([Ze,Ve])=>me.addRule(Ze,Ve)),me.compile(),this.multiRegexes[Q]=me,me}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Q,me){this.rules.push([Q,me]),me.type==="begin"&&this.count++}exec(Q){const me=this.getMatcher(this.regexIndex);me.lastIndex=this.lastIndex;let Ze=me.exec(Q);if(this.resumingScanAtSamePosition()&&!(Ze&&Ze.index===this.lastIndex)){const Ve=this.getMatcher(0);Ve.lastIndex=this.lastIndex+1,Ze=Ve.exec(Q)}return Ze&&(this.regexIndex+=Ze.position+1,this.regexIndex===this.count&&this.considerAll()),Ze}}function $e(te){const Q=new pe;return te.contains.forEach(me=>Q.addRule(me.begin,{rule:me,type:"begin"})),te.terminatorEnd&&Q.addRule(te.terminatorEnd,{type:"end"}),te.illegal&&Q.addRule(te.illegal,{type:"illegal"}),Q}function We(te,Q){const me=te;if(te.isCompiled)return me;[mn,Lr,or,xr].forEach(Ve=>Ve(te,Q)),x.compilerExtensions.forEach(Ve=>Ve(te,Q)),te.__beforeBegin=null,[pn,Or,Dr].forEach(Ve=>Ve(te,Q)),te.isCompiled=!0;let Ze=null;return typeof te.keywords=="object"&&te.keywords.$pattern&&(te.keywords=Object.assign({},te.keywords),Ze=te.keywords.$pattern,delete te.keywords.$pattern),Ze=Ze||/\w+/,te.keywords&&(te.keywords=fn(te.keywords,x.case_insensitive)),me.keywordPatternRe=R(Ze,!0),Q&&(te.begin||(te.begin=/\B|\b/),me.beginRe=R(me.begin),!te.end&&!te.endsWithParent&&(te.end=/\B|\b/),te.end&&(me.endRe=R(me.end)),me.terminatorEnd=p(me.end)||"",te.endsWithParent&&Q.terminatorEnd&&(me.terminatorEnd+=(te.end?"|":"")+Q.terminatorEnd)),te.illegal&&(me.illegalRe=R(te.illegal)),te.contains||(te.contains=[]),te.contains=[].concat(...te.contains.map(function(Ve){return Fr(Ve==="self"?te:Ve)})),te.contains.forEach(function(Ve){We(Ve,me)}),te.starts&&We(te.starts,Q),me.matcher=$e(me),me}if(x.compilerExtensions||(x.compilerExtensions=[]),x.contains&&x.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return x.classNameAliases=n(x.classNameAliases||{}),We(x)}function Sr(x){return x?x.endsWithParent||Sr(x.starts):!1}function Fr(x){return x.variants&&!x.cachedVariants&&(x.cachedVariants=x.variants.map(function(R){return n(x,{variants:null},R)})),x.cachedVariants?x.cachedVariants:Sr(x)?n(x,{starts:x.starts?n(x.starts):null}):Object.isFrozen(x)?n(x):x}var ht="11.10.0";class zr extends Error{constructor(R,X){super(R),this.name="HTMLInjectionError",this.html=X}}const wt=r,jo=n,Vo=Symbol("nomatch"),qd=7,Xo=function(x){const R=Object.create(null),X=Object.create(null),pe=[];let $e=!0;const We="Could not find the language '{}', did you forget to load/include a language module?",te={disableAutodetect:!0,name:"Plain text",contains:[]};let Q={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function me(q){return Q.noHighlightRe.test(q)}function Ze(q){let ae=q.className+" ";ae+=q.parentNode?q.parentNode.className:"";const ke=Q.languageDetectRe.exec(ae);if(ke){const Oe=Er(ke[1]);return Oe||(ri(We.replace("{}",ke[1])),ri("Falling back to no-highlight mode for this block.",q)),Oe?ke[1]:"no-highlight"}return ae.split(/\s+/).find(Oe=>me(Oe)||Er(Oe))}function Ve(q,ae,ke){let Oe="",Ye="";typeof ae=="object"?(Oe=q,ke=ae.ignoreIllegals,Ye=ae.language):(B("10.7.0","highlight(lang, code, ...args) has been deprecated."),B("10.7.0",`Please use highlight(code, options) instead.
275
+ https://github.com/highlightjs/highlight.js/issues/2277`),Ye=q,Oe=ae),ke===void 0&&(ke=!0);const Ot={code:Oe,language:Ye};ii("before:highlight",Ot);const Tr=Ot.result?Ot.result:gn(Ot.language,Ot.code,ke);return Tr.code=Ot.code,ii("after:highlight",Tr),Tr}function gn(q,ae,ke,Oe){const Ye=Object.create(null);function Ot(Z,ne){return Z.keywords[ne]}function Tr(){if(!fe.keywords){rt.addText(Le);return}let Z=0;fe.keywordPatternRe.lastIndex=0;let ne=fe.keywordPatternRe.exec(Le),ve="";for(;ne;){ve+=Le.substring(Z,ne.index);const Be=Xt.case_insensitive?ne[0].toLowerCase():ne[0],st=Ot(fe,Be);if(st){const[lr,i4]=st;if(rt.addText(ve),ve="",Ye[Be]=(Ye[Be]||0)+1,Ye[Be]<=qd&&(oi+=i4),lr.startsWith("_"))ve+=ne[0];else{const a4=Xt.classNameAliases[lr]||lr;Vt(ne[0],a4)}}else ve+=ne[0];Z=fe.keywordPatternRe.lastIndex,ne=fe.keywordPatternRe.exec(Le)}ve+=Le.substring(Z),rt.addText(ve)}function ai(){if(Le==="")return;let Z=null;if(typeof fe.subLanguage=="string"){if(!R[fe.subLanguage]){rt.addText(Le);return}Z=gn(fe.subLanguage,Le,!0,rl[fe.subLanguage]),rl[fe.subLanguage]=Z._top}else Z=Ca(Le,fe.subLanguage.length?fe.subLanguage:null);fe.relevance>0&&(oi+=Z.relevance),rt.__addSublanguage(Z._emitter,Z.language)}function xt(){fe.subLanguage!=null?ai():Tr(),Le=""}function Vt(Z,ne){Z!==""&&(rt.startScope(ne),rt.addText(Z),rt.endScope())}function Jo(Z,ne){let ve=1;const Be=ne.length-1;for(;ve<=Be;){if(!Z._emit[ve]){ve++;continue}const st=Xt.classNameAliases[Z[ve]]||Z[ve],lr=ne[ve];st?Vt(lr,st):(Le=lr,Tr(),Le=""),ve++}}function Qo(Z,ne){return Z.scope&&typeof Z.scope=="string"&&rt.openNode(Xt.classNameAliases[Z.scope]||Z.scope),Z.beginScope&&(Z.beginScope._wrap?(Vt(Le,Xt.classNameAliases[Z.beginScope._wrap]||Z.beginScope._wrap),Le=""):Z.beginScope._multi&&(Jo(Z.beginScope,ne),Le="")),fe=Object.create(Z,{parent:{value:fe}}),fe}function el(Z,ne,ve){let Be=I(Z.endRe,ve);if(Be){if(Z["on:end"]){const st=new e(Z);Z["on:end"](ne,st),st.isMatchIgnored&&(Be=!1)}if(Be){for(;Z.endsParent&&Z.parent;)Z=Z.parent;return Z}}if(Z.endsWithParent)return el(Z.parent,ne,ve)}function Qd(Z){return fe.matcher.regexIndex===0?(Le+=Z[0],1):(Ra=!0,0)}function e4(Z){const ne=Z[0],ve=Z.rule,Be=new e(ve),st=[ve.__beforeBegin,ve["on:begin"]];for(const lr of st)if(lr&&(lr(Z,Be),Be.isMatchIgnored))return Qd(ne);return ve.skip?Le+=ne:(ve.excludeBegin&&(Le+=ne),xt(),!ve.returnBegin&&!ve.excludeBegin&&(Le=ne)),Qo(ve,Z),ve.returnBegin?0:ne.length}function t4(Z){const ne=Z[0],ve=ae.substring(Z.index),Be=el(fe,Z,ve);if(!Be)return Vo;const st=fe;fe.endScope&&fe.endScope._wrap?(xt(),Vt(ne,fe.endScope._wrap)):fe.endScope&&fe.endScope._multi?(xt(),Jo(fe.endScope,Z)):st.skip?Le+=ne:(st.returnEnd||st.excludeEnd||(Le+=ne),xt(),st.excludeEnd&&(Le=ne));do fe.scope&&rt.closeNode(),!fe.skip&&!fe.subLanguage&&(oi+=fe.relevance),fe=fe.parent;while(fe!==Be.parent);return Be.starts&&Qo(Be.starts,Z),st.returnEnd?0:ne.length}function r4(){const Z=[];for(let ne=fe;ne!==Xt;ne=ne.parent)ne.scope&&Z.unshift(ne.scope);Z.forEach(ne=>rt.openNode(ne))}let si={};function tl(Z,ne){const ve=ne&&ne[0];if(Le+=Z,ve==null)return xt(),0;if(si.type==="begin"&&ne.type==="end"&&si.index===ne.index&&ve===""){if(Le+=ae.slice(ne.index,ne.index+1),!$e){const Be=new Error(`0 width match regex (${q})`);throw Be.languageName=q,Be.badRule=si.rule,Be}return 1}if(si=ne,ne.type==="begin")return e4(ne);if(ne.type==="illegal"&&!ke){const Be=new Error('Illegal lexeme "'+ve+'" for mode "'+(fe.scope||"<unnamed>")+'"');throw Be.mode=fe,Be}else if(ne.type==="end"){const Be=t4(ne);if(Be!==Vo)return Be}if(ne.type==="illegal"&&ve==="")return 1;if(Ba>1e5&&Ba>ne.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Le+=ve,ve.length}const Xt=Er(q);if(!Xt)throw sr(We.replace("{}",q)),new Error('Unknown language: "'+q+'"');const n4=It(Xt);let Na="",fe=Oe||n4;const rl={},rt=new Q.__emitter(Q);r4();let Le="",oi=0,Pr=0,Ba=0,Ra=!1;try{if(Xt.__emitTokens)Xt.__emitTokens(ae,rt);else{for(fe.matcher.considerAll();;){Ba++,Ra?Ra=!1:fe.matcher.considerAll(),fe.matcher.lastIndex=Pr;const Z=fe.matcher.exec(ae);if(!Z)break;const ne=ae.substring(Pr,Z.index),ve=tl(ne,Z);Pr=Z.index+ve}tl(ae.substring(Pr))}return rt.finalize(),Na=rt.toHTML(),{language:q,value:Na,relevance:oi,illegal:!1,_emitter:rt,_top:fe}}catch(Z){if(Z.message&&Z.message.includes("Illegal"))return{language:q,value:wt(ae),illegal:!0,relevance:0,_illegalBy:{message:Z.message,index:Pr,context:ae.slice(Pr-100,Pr+100),mode:Z.mode,resultSoFar:Na},_emitter:rt};if($e)return{language:q,value:wt(ae),illegal:!1,relevance:0,errorRaised:Z,_emitter:rt,_top:fe};throw Z}}function Ma(q){const ae={value:wt(q),illegal:!1,relevance:0,_top:te,_emitter:new Q.__emitter(Q)};return ae._emitter.addText(q),ae}function Ca(q,ae){ae=ae||Q.languages||Object.keys(R);const ke=Ma(q),Oe=ae.filter(Er).filter(Zo).map(xt=>gn(xt,q,!1));Oe.unshift(ke);const Ye=Oe.sort((xt,Vt)=>{if(xt.relevance!==Vt.relevance)return Vt.relevance-xt.relevance;if(xt.language&&Vt.language){if(Er(xt.language).supersetOf===Vt.language)return 1;if(Er(Vt.language).supersetOf===xt.language)return-1}return 0}),[Ot,Tr]=Ye,ai=Ot;return ai.secondBest=Tr,ai}function Ud(q,ae,ke){const Oe=ae&&X[ae]||ke;q.classList.add("hljs"),q.classList.add(`language-${Oe}`)}function _a(q){let ae=null;const ke=Ze(q);if(me(ke))return;if(ii("before:highlightElement",{el:q,language:ke}),q.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",q);return}if(q.children.length>0&&(Q.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(q)),Q.throwUnescapedHTML))throw new zr("One of your code blocks includes unescaped HTML.",q.innerHTML);ae=q;const Oe=ae.textContent,Ye=ke?Ve(Oe,{language:ke,ignoreIllegals:!0}):Ca(Oe);q.innerHTML=Ye.value,q.dataset.highlighted="yes",Ud(q,ke,Ye.language),q.result={language:Ye.language,re:Ye.relevance,relevance:Ye.relevance},Ye.secondBest&&(q.secondBest={language:Ye.secondBest.language,relevance:Ye.secondBest.relevance}),ii("after:highlightElement",{el:q,result:Ye,text:Oe})}function Hd(q){Q=jo(Q,q)}const Gd=()=>{ni(),B("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function $d(){ni(),B("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ko=!1;function ni(){if(document.readyState==="loading"){Ko=!0;return}document.querySelectorAll(Q.cssSelector).forEach(_a)}function Wd(){Ko&&ni()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Wd,!1);function jd(q,ae){let ke=null;try{ke=ae(x)}catch(Oe){if(sr("Language definition for '{}' could not be registered.".replace("{}",q)),$e)sr(Oe);else throw Oe;ke=te}ke.name||(ke.name=q),R[q]=ke,ke.rawDefinition=ae.bind(null,x),ke.aliases&&Yo(ke.aliases,{languageName:q})}function Vd(q){delete R[q];for(const ae of Object.keys(X))X[ae]===q&&delete X[ae]}function Xd(){return Object.keys(R)}function Er(q){return q=(q||"").toLowerCase(),R[q]||R[X[q]]}function Yo(q,{languageName:ae}){typeof q=="string"&&(q=[q]),q.forEach(ke=>{X[ke.toLowerCase()]=ae})}function Zo(q){const ae=Er(q);return ae&&!ae.disableAutodetect}function Kd(q){q["before:highlightBlock"]&&!q["before:highlightElement"]&&(q["before:highlightElement"]=ae=>{q["before:highlightBlock"](Object.assign({block:ae.el},ae))}),q["after:highlightBlock"]&&!q["after:highlightElement"]&&(q["after:highlightElement"]=ae=>{q["after:highlightBlock"](Object.assign({block:ae.el},ae))})}function Yd(q){Kd(q),pe.push(q)}function Zd(q){const ae=pe.indexOf(q);ae!==-1&&pe.splice(ae,1)}function ii(q,ae){const ke=q;pe.forEach(function(Oe){Oe[ke]&&Oe[ke](ae)})}function Jd(q){return B("10.7.0","highlightBlock will be removed entirely in v12.0"),B("10.7.0","Please use highlightElement now."),_a(q)}Object.assign(x,{highlight:Ve,highlightAuto:Ca,highlightAll:ni,highlightElement:_a,highlightBlock:Jd,configure:Hd,initHighlighting:Gd,initHighlightingOnLoad:$d,registerLanguage:jd,unregisterLanguage:Vd,listLanguages:Xd,getLanguage:Er,registerAliases:Yo,autoDetection:Zo,inherit:jo,addPlugin:Yd,removePlugin:Zd}),x.debugMode=function(){$e=!1},x.safeMode=function(){$e=!0},x.versionString=ht,x.regex={concat:E,lookahead:b,either:A,optional:z,anyNumberOfTimes:f};for(const q in at)typeof at[q]=="object"&&t(at[q]);return Object.assign(x,at),x},Qr=Xo({});return Qr.newInstance=()=>Xo({}),Ea=Qr,Qr.HighlightJS=Qr,Qr.default=Qr,Ea}var fd=pd();const Io=md(fd),gd=Object.freeze(Object.defineProperty({__proto__:null,HighlightJS:Io,default:Io},Symbol.toStringTag,{value:"Module"})),Oo="[A-Za-z$_][0-9A-Za-z$_]*",bd=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],vd=["true","false","null","undefined","NaN","Infinity"],Lo=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Do=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Fo=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],yd=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],wd=[].concat(Fo,Lo,Do);function xd(t){const e=t.regex,r=(ue,{after:_e})=>{const w="</"+ue[0].slice(1);return ue.input.indexOf(w,_e)!==-1},n=Oo,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ue,_e)=>{const w=ue[0].length+ue.index,Te=ue.input[w];if(Te==="<"||Te===","){_e.ignoreMatch();return}Te===">"&&(r(ue,{after:w})||_e.ignoreMatch());let Ae;const k=ue.input.substring(w);if(Ae=k.match(/^\s*=/)){_e.ignoreMatch();return}if((Ae=k.match(/^\s+extends\s+/))&&Ae.index===0){_e.ignoreMatch();return}}},o={$pattern:Oo,keyword:bd,literal:vd,built_in:wd,"variable.language":yd},u="[0-9](_?[0-9])*",h=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${d})((${h})|\\.)?|(${h}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},z={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,b],subLanguage:"css"}},E={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,b]},N={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},I=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,z,E,O,{match:/\$\d+/},p];b.contains=I.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(I)});const Y=[].concat(N,b.contains),G=Y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(Y)}]),C={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:G},V={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},ee={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Lo,...Do]}},j={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},M={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[C],illegal:/%/},W={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function $(ue){return e.concat("(?!",ue.join("|"),")")}const be={match:e.concat(/\b/,$([...Fo,"super","import"].map(ue=>`${ue}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},he={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},le={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},C]},Ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",Ce={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(Ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[C]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:G,CLASS_REFERENCE:ee},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),j,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,z,E,O,N,{match:/\$\d+/},p,ee,{className:"attr",begin:n+e.lookahead(":"),relevance:0},Ce,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[N,t.REGEXP_MODE,{className:"function",begin:Ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:G}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[C,t.inherit(t.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},he,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[C]},be,W,V,le,{match:/\$[(.]/}]}}const kd=Object.freeze(Object.defineProperty({__proto__:null,default:xd},Symbol.toStringTag,{value:"Module"}));function Sd(t){const e=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],r=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],n=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],s={keyword:i.concat(a),built_in:e,literal:n},o=t.inherit(t.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},h={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=t.inherit(d,{illegal:/\n/}),b={className:"subst",begin:/\{/,end:/\}/,keywords:s},f=t.inherit(b,{illegal:/\n/}),z={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},t.BACKSLASH_ESCAPE,f]},E={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},b]},O=t.inherit(E,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});b.contains=[E,z,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,t.C_BLOCK_COMMENT_MODE],f.contains=[O,z,p,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,u,t.inherit(t.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const A={variants:[h,E,z,d,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},N={begin:"<",end:">",contains:[{beginKeywords:"in out"},o]},I=t.IDENT_RE+"(<"+t.IDENT_RE+"(\\s*,\\s*"+t.IDENT_RE+")*>)?(\\[\\])?",Y={begin:"@"+t.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:s,illegal:/::/,contains:[t.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},A,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},o,N,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[o,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[o,N,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+I+"\\s+)+"+t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:s,contains:[{beginKeywords:r.join(" "),relevance:0},{begin:t.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[t.TITLE_MODE,N],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,relevance:0,contains:[A,u,t.C_BLOCK_COMMENT_MODE]},t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE]},Y]}}const zd=Object.freeze(Object.defineProperty({__proto__:null,default:Sd},Symbol.toStringTag,{value:"Module"}));function Ed(t){const e=t.regex,r=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),n=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],o={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:n,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},h={className:"subst",begin:/\{/,end:/\}/,keywords:o,illegal:/#/},d={begin:/\{\{/,relevance:0},p={className:"string",contains:[t.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[t.BACKSLASH_ESCAPE,u,d,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[t.BACKSLASH_ESCAPE,u,d,h]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[t.BACKSLASH_ESCAPE,d,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,d,h]},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},b="[0-9](_?[0-9])*",f=`(\\b(${b}))?\\.(${b})|\\b(${b})\\.`,z=`\\b|${n.join("|")}`,E={className:"number",relevance:0,variants:[{begin:`(\\b(${b})|(${f}))[eE][+-]?(${b})[jJ]?(?=${z})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${z})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${z})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${z})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${z})`},{begin:`\\b(${b})[jJ](?=${z})`}]},O={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:o,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},A={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:["self",u,E,p,t.HASH_COMMENT_MODE]}]};return h.contains=[p,E,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:o,illegal:/(<\/|\?)|=>/,contains:[u,E,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},p,O,t.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,r],scope:{1:"keyword",3:"title.function"},contains:[A]},{variants:[{match:[/\bclass/,/\s+/,r,/\s*/,/\(\s*/,r,/\s*\)/]},{match:[/\bclass/,/\s+/,r]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[E,A,p]}]}}const Td=Object.freeze(Object.defineProperty({__proto__:null,default:Ed},Symbol.toStringTag,{value:"Module"})),Ad=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Md=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Cd=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],_d=[...Md,...Cd],Nd=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Bd=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Rd=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Id=["accent-color","align-content","align-items","align-self","alignment-baseline","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-end-end-radius","border-end-start-radius","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","cx","cy","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","empty-cells","enable-background","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","flood-color","flood-opacity","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","kerning","justify-content","justify-items","justify-self","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","marker","marker-end","marker-mid","marker-start","mask","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","speak","speak-as","src","tab-size","table-layout","text-anchor","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-offset","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","vector-effect","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index"].sort().reverse();function Od(t){const e=t.regex,r=Ad(t),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",a=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",o=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,n,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Bd.join("|")+")"},{begin:":(:)?("+Rd.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Id.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...o,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...o,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:a},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Nd.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...o,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+_d.join("|")+")\\b"}]}}const Ld=Object.freeze(Object.defineProperty({__proto__:null,default:Od},Symbol.toStringTag,{value:"Module"})),ei="[A-Za-z$_][0-9A-Za-z$_]*",Po=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],qo=["true","false","null","undefined","NaN","Infinity"],Uo=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ho=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Go=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],$o=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Wo=[].concat(Go,Uo,Ho);function Dd(t){const e=t.regex,r=(ue,{after:_e})=>{const w="</"+ue[0].slice(1);return ue.input.indexOf(w,_e)!==-1},n=ei,i={begin:"<>",end:"</>"},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ue,_e)=>{const w=ue[0].length+ue.index,Te=ue.input[w];if(Te==="<"||Te===","){_e.ignoreMatch();return}Te===">"&&(r(ue,{after:w})||_e.ignoreMatch());let Ae;const k=ue.input.substring(w);if(Ae=k.match(/^\s*=/)){_e.ignoreMatch();return}if((Ae=k.match(/^\s+extends\s+/))&&Ae.index===0){_e.ignoreMatch();return}}},o={$pattern:ei,keyword:Po,literal:qo,built_in:Wo,"variable.language":$o},u="[0-9](_?[0-9])*",h=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${d})((${h})|\\.)?|(${h}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},b={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,b],subLanguage:"xml"}},z={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,b],subLanguage:"css"}},E={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,b],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,b]},N={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},I=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,z,E,O,{match:/\$\d+/},p];b.contains=I.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(I)});const Y=[].concat(N,b.contains),G=Y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:o,contains:["self"].concat(Y)}]),C={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:G},V={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},ee={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Uo,...Ho]}},j={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},M={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[C],illegal:/%/},W={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function $(ue){return e.concat("(?!",ue.join("|"),")")}const be={match:e.concat(/\b/,$([...Go,"super","import"].map(ue=>`${ue}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},he={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},le={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},C]},Ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",Ce={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(Ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[C]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:G,CLASS_REFERENCE:ee},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),j,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,z,E,O,N,{match:/\$\d+/},p,ee,{className:"attr",begin:n+e.lookahead(":"),relevance:0},Ce,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[N,t.REGEXP_MODE,{className:"function",begin:Ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:G}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},M,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[C,t.inherit(t.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},he,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[C]},be,W,V,le,{match:/\$[(.]/}]}}function Fd(t){const e=Dd(t),r=ei,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[e.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},o=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:ei,keyword:Po.concat(o),literal:qo,built_in:Wo.concat(n),"variable.language":$o},h={className:"meta",begin:"@"+r},d=(f,z,E)=>{const O=f.contains.findIndex(A=>A.label===z);if(O===-1)throw new Error("can not find mode to replace");f.contains.splice(O,1,E)};Object.assign(e.keywords,u),e.exports.PARAMS_CONTAINS.push(h);const p=e.contains.find(f=>f.className==="attr");e.exports.PARAMS_CONTAINS.push([e.exports.CLASS_REFERENCE,p]),e.contains=e.contains.concat([h,i,a]),d(e,"shebang",t.SHEBANG()),d(e,"use_strict",s);const b=e.contains.find(f=>f.label==="func.def");return b.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}const Pd=Object.freeze(Object.defineProperty({__proto__:null,default:Fd},Symbol.toStringTag,{value:"Module"}));kt.Chat=dd,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})});