@veracity/ai 2.3.0 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ChatClient.d.ts +3 -1
- package/dist/ChatClient.d.ts.map +1 -1
- package/dist/components/Chat/index.d.ts +5 -2
- package/dist/components/Chat/index.d.ts.map +1 -1
- package/dist/components/Conversation.d.ts.map +1 -1
- package/dist/components/ConversationMessage.d.ts +3 -1
- package/dist/components/ConversationMessage.d.ts.map +1 -1
- package/dist/components/icons/CloseIcon.d.ts +3 -0
- package/dist/components/icons/CloseIcon.d.ts.map +1 -0
- package/dist/dtos.d.ts +1 -0
- package/dist/dtos.d.ts.map +1 -1
- package/dist/veracity-ai.es.js +670 -613
- package/dist/veracity-ai.umd.js +16 -15
- package/package.json +1 -1
package/dist/veracity-ai.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(kt,B){typeof exports=="object"&&typeof module<"u"?B(exports):typeof define=="function"&&define.amd?define(["exports"],B):(kt=typeof globalThis<"u"?globalThis:kt||self,B(kt.VeracityAI={}))})(this,function(kt){"use strict";var i4=Object.defineProperty;var a4=(kt,B,rt)=>B in kt?i4(kt,B,{enumerable:!0,configurable:!0,writable:!0,value:rt}):kt[B]=rt;var q=(kt,B,rt)=>a4(kt,typeof B!="symbol"?B+"":B,rt);function B(t,e,...r){switch(typeof t){case"string":{const n=document.createElement(t);rt(n,e);for(const i of r)Ra(n,i);return n}case"function":return t(e||{},r)}throw new Error(`Unable to create element of type '${typeof t}'`)}function rt(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)Ra(e,r);return e}else return t?document.createTextNode(t):document.createComment(` ${t} `)}function Ra(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-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}.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}}.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}.btn-link:hover{cursor:pointer;border-radius:3px;background-color:#a8a2a2}';class Ia extends Error{constructor(){super("Max input limit reached.")}}var gn=(t=>(t[t.Messages=0]="Messages",t[t.OperationResult=1]="OperationResult",t[t.OperationError=2]="OperationError",t))(gn||{}),Me=(t=>(t[t.MessageBegin=0]="MessageBegin",t[t.MessageAppend=1]="MessageAppend",t[t.MessageToolCallUpdate=2]="MessageToolCallUpdate",t[t.MessageToolCallBegin=3]="MessageToolCallBegin",t[t.MessageToolCallResult=4]="MessageToolCallResult",t[t.MessageToolCallError=5]="MessageToolCallError",t[t.MessageExecuteLlmFunctionsBegin=6]="MessageExecuteLlmFunctionsBegin",t[t.MessageExecuteLlmFunctionsEnd=7]="MessageExecuteLlmFunctionsEnd",t[t.MessageInvokeClientFunction=8]="MessageInvokeClientFunction",t[t.MessageInvokeClientFunctionResult=9]="MessageInvokeClientFunctionResult",t[t.MessageInvokeClientFunctionError=10]="MessageInvokeClientFunctionError",t[t.MessageSubConversationBegin=11]="MessageSubConversationBegin",t[t.ConversationEnd=12]="ConversationEnd",t[t.ConversationError=13]="ConversationError",t))(Me||{});class bn extends Error{constructor(e="Operation was cancelled."){super(e)}}class lr{constructor(){q(this,"isCancellationRequested",!1);q(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(){q(this,"_queue",[]);q(this,"_waitToReadDeferred");q(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 Oa extends ol{constructor(){super(...arguments);q(this,"_reader");q(this,"_buffer",new Uint8Array(0));q(this,"_bufferOffset",0);q(this,"_abortController");q(this,"_cancellationToken");q(this,"_textDecoder",new TextDecoder)}async initializeExistingAsync(r,n){this._abortController=new AbortController,(this._cancellationToken=new lr).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 startAsync(r,n,i,a){this._abortController=new AbortController,(this._cancellationToken=new lr).addListener(()=>this._abortController.abort());const s=await r(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:gn.Messages,messages:i,chatId:a}),signal:this._abortController.signal});if(s.status===429)throw new Ia;if(!s.ok)throw new Error(`Failed to start chat completion SSE: ${s.status} ${s.statusText}`);this._reader=s.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();return{type:n,conversationId:i,messageAuthorRole:a,messageAuthorId:s,messageAuthorPictureUrl:o,messageAuthorDisplayName:u,messageAuthorEmail:h,messageId:d}}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,li=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
|
-
`).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
|
|
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 li({functionName:i});var a=/((.*".+"[^@]*)?[^@]*)(?:@)/,s=i.match(a),o=s&&s[1]?s[1]:void 0,u=this.extractLocation(i.replace(a,""));return new li({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,ui,Ha,Ga,ci;async function hi(){if(!Lt||(Ua=(await Promise.resolve().then(()=>jt)).default,Ga=await Promise.resolve().then(()=>jt),ci=await Promise.resolve().then(()=>jt),Ha=(await Promise.resolve().then(()=>jt)).default,ui=await Promise.resolve().then(()=>jt),mi=ui.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(hi,"initNodeModules");function $a(t,e){return ui.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 di;Lt?di=$a:di=Wa;var mi;Lt||(mi="/");function ja(t,e){return t.startsWith("file://")&&(t=t.slice(7)),t.includes("://")?{response:fetch(t)}:{binary:ci.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 hi();let e=await ci.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(mi);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 hi();let n=t.indexURL||await Za();n=di(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 Je=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},ot={searchParams:"URLSearchParams"in Je,iterable:"Symbol"in Je&&"iterator"in Symbol,blob:"FileReader"in Je&&"Blob"in Je&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in Je,arrayBuffer:"ArrayBuffer"in Je};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 pi(t){return typeof t!="string"&&(t=String(t)),t}function fi(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=pi(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)]=pi(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)}),fi(t)},Xe.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),fi(t)},Xe.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),fi(t)},ot.iterable&&(Xe.prototype[Symbol.iterator]=Xe.prototype.entries);function gi(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=gi(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=gi(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=gi(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 Je){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
|
-
`)===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=Je.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===""&&Je.location.href?Je.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||Je.Headers&&e.headers instanceof Je.Headers)){var u=[];Object.getOwnPropertyNames(e.headers).forEach(function(h){u.push(Gr(h)),a.setRequestHeader(h,pi(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,Je.fetch||(Je.fetch=h0,Je.Headers=Xe,Je.Request=_r,Je.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 en({as:t="button",type:e,variant:r="btn-primary",size:n="btn-lg",...i},a){const s=B(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:gn.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:gn.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 bi(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]/),_t=hr(/[\dA-Za-z]/),Dl=hr(/[#-'*+\--9=?A-Z^-~]/);function vi(t){return t!==null&&(t<32||t===127)}const yi=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&&_();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&&_(),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&&_(),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 _(){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 wi(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 xi={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,wi(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||_t(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||_t(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||vi(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 _t(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||_t(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=_t,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=yi,d(p))}function d(p){if(p===59&&i){const b=t.exit("characterReferenceValue");return s===_t&&!bi(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,_,"linePrefix",a+1)(C):_(C)}function _(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"),_(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 ki={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]),_=a.pop();u.unshift([_,_+A.length-1]),Pt(t,_,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||vi(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||vi(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 tn(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)?tn(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)?tn(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 Qe="CDATA[";return k===Qe.charCodeAt(o++)?(t.consume(k),o===Qe.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 Qe=k===47,it=s.toLowerCase();return!Qe&&!a&&_0.includes(it)?(i=1,n.interrupt?e(k):$(k)):A1.includes(s.toLowerCase())?(i=6,Qe?(t.consume(k),A):n.interrupt?e(k):$(k)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(k):a?_(k):I(k))}return k===45||_t(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 _(k){return we(k)?(t.consume(k),_):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||_t(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 Qe=s.toLowerCase();return _0.includes(Qe)?(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),_):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 _(w){return w===null||w===62?Ee(w):re(w)?(s=_,Ce(w)):(t.consume(w),_)}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||_t(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||_t(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||_t(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 Si={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,wi(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)?tn(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)?tn(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)?tn(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:Si.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:Si.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 zi={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:yi(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 yi(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:_,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=wi(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 _(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(Ue){return ft;function ft(et){const Ct=et!==null&&Ue[et],at=et!==null&&Ue.null,wr=[...Array.isArray(Ct)?Ct:Ct?[Ct]:[],...Array.isArray(at)?at:at?[at]:[]];return Ae(wr)(et)}}function Ae(Ue){return Ce=Ue,ue=0,Ue.length===0?Ee:k(Ue[ue])}function k(Ue){return ft;function ft(et){return w=j(),_e=Ue,Ue.partial||(h.currentConstruct=Ue),Ue.name&&h.parser.constructs.disable.null.includes(Ue.name)?it():Ue.tokenize.call($?Object.assign(Object.create(h),$):h,u,Qe,it)(et)}}function Qe(Ue){return W(_e,w),le}function it(Ue){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=`
|
|
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.MessageToolCallBegin=3]="MessageToolCallBegin",t[t.MessageToolCallResult=4]="MessageToolCallResult",t[t.MessageToolCallError=5]="MessageToolCallError",t[t.MessageExecuteLlmFunctionsBegin=6]="MessageExecuteLlmFunctionsBegin",t[t.MessageExecuteLlmFunctionsEnd=7]="MessageExecuteLlmFunctionsEnd",t[t.MessageInvokeClientFunction=8]="MessageInvokeClientFunction",t[t.MessageInvokeClientFunctionResult=9]="MessageInvokeClientFunctionResult",t[t.MessageInvokeClientFunctionError=10]="MessageInvokeClientFunctionError",t[t.MessageSubConversationBegin=11]="MessageSubConversationBegin",t[t.ConversationEnd=12]="ConversationEnd",t[t.ConversationError=13]="ConversationError",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
|
+
`).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
|
+
`).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
|
+
`)===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]:ki,[-1]:ki,32:ki},insideSpan:{null:[xi,uu]},string:{38:S0,92:k0},text:{[-5]:zi,[-4]:zi,[-3]:zi,33:j1,38:S0,42:xi,60:[Kl,O1],91:X1,92:[k1,k0],93:Si,95:xi,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 bi(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?Ei(t):""}function Ei(t){return L0(t&&t.line)+":"+L0(t&&t.column)}function O0(t){return Ei(t&&t.start)+"-"+Ei(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(ir),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(dn,s),codeTextData:j,data:j,codeFlowValue:j,definition:a(mn),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(ir),listItem:a(Ea),listItemValue:b,listOrdered:a(pn,p),listUnordered:a(pn),paragraph:a(Ta),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:Ct,autolinkProtocol:et,blockQuote:u(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:it,characterReferenceMarkerNumeric:it,characterReferenceValue:Ue,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:_,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:Qe,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(N){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<N.length;)if(N[Ne][1].type==="listOrdered"||N[Ne][1].type==="listUnordered")if(N[Ne][0]==="enter")ye.push(Ne);else{const yt=ye.pop();Ne=i(N,yt,Ne)}for(Ne=-1;++Ne<N.length;){const yt=e[N[Ne][0]];D0.call(yt,N[Ne][1].type)&&yt[N[Ne][1].type].call(Object.assign({sliceSerialize:N[Ne][2].sliceSerialize},de),N[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(N.length>0?N[0][1].start:{line:1,column:1,offset:0}),end:dr(N.length>0?N[N.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(N,U,de){let ye=U-1,Ne=-1,yt=!1,sr,It,Sr,Fr;for(;++ye<=de;){const ht=N[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"&&(sr&&!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(sr){let zr=ye;for(It=void 0;zr--;){const wt=N[zr];if(wt[1].type==="lineEnding"||wt[1].type==="lineEndingBlank"){if(wt[0]==="exit")continue;It&&(N[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)&&(sr._spread=!0),sr.end=Object.assign({},It?N[It][1].start:ht[1].end),N.splice(It||ye,0,["exit",sr,ht[2]]),ye++,de++}if(ht[1].type==="listItemPrefix"){const zr={type:"listItem",_spread:!1,start:Object.assign({},ht[1].start),end:void 0};sr=zr,N.splice(ye,0,["enter",zr,ht[2]]),ye++,de++,Sr=void 0,Fr=!0}}}return N[U][1]._spread=yt,de}function a(N,U){return de;function de(ye){o.call(this,N(ye),ye),U&&U.call(this,ye)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(N,U,de){this.stack[this.stack.length-1].children.push(N),this.stack.push(N),this.tokenStack.push([U,de||void 0]),N.position={start:dr(U.start),end:void 0}}function u(N){return U;function U(de){N&&N.call(this,de),h.call(this,de)}}function h(N,U){const de=this.stack.pop(),ye=this.tokenStack.pop();if(ye)ye[0].type!==N.type&&(U?U.call(this,N,ye[0]):(ye[1]||P0).call(this,N,ye[0]));else throw new Error("Cannot close `"+N.type+"` ("+zn({start:N.start,end:N.end})+"): it’s not open");de.position.end=dr(N.end)}function d(){return Bl(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function b(N){if(this.data.expectingFirstListItemValue){const U=this.stack[this.stack.length-2];U.start=Number.parseInt(this.sliceSerialize(N),10),this.data.expectingFirstListItemValue=void 0}}function f(){const N=this.resume(),U=this.stack[this.stack.length-1];U.lang=N}function z(){const N=this.resume(),U=this.stack[this.stack.length-1];U.meta=N}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function O(){const N=this.resume(),U=this.stack[this.stack.length-1];U.value=N.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const N=this.resume(),U=this.stack[this.stack.length-1];U.value=N.replace(/(\r?\n|\r)$/g,"")}function _(N){const U=this.resume(),de=this.stack[this.stack.length-1];de.label=U,de.identifier=Wr(this.sliceSerialize(N)).toLowerCase()}function I(){const N=this.resume(),U=this.stack[this.stack.length-1];U.title=N}function Y(){const N=this.resume(),U=this.stack[this.stack.length-1];U.url=N}function G(N){const U=this.stack[this.stack.length-1];if(!U.depth){const de=this.sliceSerialize(N).length;U.depth=de}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function V(N){const U=this.stack[this.stack.length-1];U.depth=this.sliceSerialize(N).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function j(N){const de=this.stack[this.stack.length-1].children;let ye=de[de.length-1];(!ye||ye.type!=="text")&&(ye=ar(),ye.position={start:dr(N.start),end:void 0},de.push(ye)),this.stack.push(ye)}function M(N){const U=this.stack.pop();U.value+=this.sliceSerialize(N),U.position.end=dr(N.end)}function W(N){const U=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=U.children[U.children.length-1];de.position.end=dr(N.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(U.type)&&(j.call(this,N),M.call(this,N))}function $(){this.data.atHardBreak=!0}function be(){const N=this.resume(),U=this.stack[this.stack.length-1];U.value=N}function he(){const N=this.resume(),U=this.stack[this.stack.length-1];U.value=N}function le(){const N=this.resume(),U=this.stack[this.stack.length-1];U.value=N}function Ee(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=U,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function Ce(){const N=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";N.type+="Reference",N.referenceType=U,delete N.url,delete N.title}else delete N.identifier,delete N.label;this.data.referenceType=void 0}function ue(N){const U=this.sliceSerialize(N),de=this.stack[this.stack.length-2];de.label=xu(U),de.identifier=Wr(U).toLowerCase()}function _e(){const N=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=N.children;de.children=ye}else de.alt=U}function w(){const N=this.resume(),U=this.stack[this.stack.length-1];U.url=N}function Te(){const N=this.resume(),U=this.stack[this.stack.length-1];U.title=N}function Ae(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function Qe(N){const U=this.resume(),de=this.stack[this.stack.length-1];de.label=U,de.identifier=Wr(this.sliceSerialize(N)).toLowerCase(),this.data.referenceType="full"}function it(N){this.data.characterReferenceType=N.type}function Ue(N){const U=this.sliceSerialize(N),de=this.data.characterReferenceType;let ye;de?(ye=b0(U,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ye=bi(U);const Ne=this.stack[this.stack.length-1];Ne.value+=ye}function ft(N){const U=this.stack.pop();U.position.end=dr(N.end)}function et(N){M.call(this,N);const U=this.stack[this.stack.length-1];U.url=this.sliceSerialize(N)}function Ct(N){M.call(this,N);const U=this.stack[this.stack.length-1];U.url="mailto:"+this.sliceSerialize(N)}function at(){return{type:"blockquote",children:[]}}function wr(){return{type:"code",lang:null,meta:null,value:""}}function dn(){return{type:"inlineCode",value:""}}function mn(){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 ir(){return{type:"link",title:null,url:"",children:[]}}function pn(N){return{type:"list",ordered:N.type==="listOrdered",start:null,spread:N._spread,children:[]}}function Ea(N){return{type:"listItem",spread:N._spread,checked:null,children:[]}}function Ta(){return{type:"paragraph",children:[]}}function ti(){return{type:"strong",children:[]}}function ar(){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"),_(M)):G(M)}function _(M){return M===45?(t.consume(M),_):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 f4(){}function Bu(){return{enter:{table:Ru,tableData:U0,tableHeader:U0,tableRow:Ou},exit:{codeText:Lu,table:Iu,tableData:Ti,tableHeader:Ti,tableRow:Ti}}}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 Ti(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){q(this,"node");q(this,"codeNode");q(this,"_language");q(this,"_code");q(this,"_ct");this.node=B("pre",null,this.codeNode=B("code",null)),this.updateCodeAsync(e,r,this._ct=new lr)}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=Kt.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 lr)}}let Kt;function Fu(){return Kt||(Kt={promise:Promise.resolve().then(()=>pd)},Kt.promise.then(t=>Kt.result=t).catch(t=>Kt.error=t),Kt)}const G0={};function Pu(t){let e=G0[t];if(e)return e;Fu();let r;switch(t){case"javascript":r=Promise.resolve().then(()=>wd);break;case"csharp":r=Promise.resolve().then(()=>kd);break;case"python":r=Promise.resolve().then(()=>zd);break;case"css":r=Promise.resolve().then(()=>Id);break;case"typescript":r=Promise.resolve().then(()=>Dd);break;default:return null}return e={promise:(async()=>{const n=await r;return(await Kt.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(_){return t.enter("mathFlow"),t.enter("mathFlowFence"),t.enter("mathFlowFenceSequence"),u(_)}function u(_){return _===36?(t.consume(_),s++,u):s<2?r(_):(t.exit("mathFlowFenceSequence"),xe(t,h,"whitespace")(_))}function h(_){return _===null||re(_)?p(_):(t.enter("mathFlowFenceMeta"),t.enter("chunkString",{contentType:"string"}),d(_))}function d(_){return _===null||re(_)?(t.exit("chunkString"),t.exit("mathFlowFenceMeta"),p(_)):_===36?r(_):(t.consume(_),d)}function p(_){return t.exit("mathFlowFence"),n.interrupt?e(_):t.attempt($0,b,O)(_)}function b(_){return t.attempt({tokenize:A,partial:!0},O,f)(_)}function f(_){return(a?xe(t,z,"linePrefix",a+1):z)(_)}function z(_){return _===null?O(_):re(_)?t.attempt($0,b,O)(_):(t.enter("mathFlowValue"),E(_))}function E(_){return _===null||re(_)?(t.exit("mathFlowValue"),z(_)):(t.consume(_),E)}function O(_){return t.exit("mathFlow"),e(_)}function A(_,I,Y){let G=0;return xe(_,C,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function C(j){return _.enter("mathFlowFence"),_.enter("mathFlowFenceSequence"),V(j)}function V(j){return j===36?(G++,_.consume(j),V):G<s?Y(j):(_.exit("mathFlowFenceSequence"),xe(_,ee,"whitespace")(j))}function ee(j){return j===null||re(j)?(_.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={"&":"&",">":">","<":"<",'"':""","'":"'"},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]*([^\\/#?]*?)(:|�*58|�*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 Ai{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 Mi=0,An=1,Vr=2,Yt=3,rn=4,Et=5,Xr=6,lt=7,Ut=[new mr(Mi,0,!1),new mr(An,0,!0),new mr(Vr,1,!1),new mr(Yt,1,!0),new mr(rn,2,!1),new mr(Et,2,!0),new mr(Xr,3,!1),new mr(lt,3,!0)],ac=[rn,Et,rn,Et,Xr,lt,Xr,lt],sc=[Et,Et,Et,Et,lt,lt,lt,lt],oc=[Vr,Yt,rn,Et,Xr,lt,Xr,lt],lc=[Yt,Yt,Et,Et,lt,lt,lt,lt],uc=[An,An,Yt,Yt,Et,Et,lt,lt],cc=[Mi,An,Vr,Yt,Vr,Yt,Vr,Yt],se={DISPLAY:Ut[Mi],TEXT:Ut[Vr],SCRIPT:Ut[rn],SCRIPTSCRIPT:Ut[Xr]},Ci=[{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<Ci.length;e++)for(var r=Ci[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=[];Ci.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 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={"&":"&",">":">","<":"<",'"':""","'":"'"},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]*([^\\/#?]*?)(:|�*58|�*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
|
|
@@ -257,18 +257,19 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6
|
|
|
257
257
|
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
258
258
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
259
259
|
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
260
|
-
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class nn{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return ie.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){var e=r=>r.toText();return this.children.map(e).join("")}}var Ht={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Cn={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},X0={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function kc(t,e){Ht[t]=e}function _i(t,e,r){if(!Ht[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),i=Ht[e][n];if(!i&&t[0]in X0&&(n=X0[t[0]].charCodeAt(0),i=Ht[e][n]),!i&&r==="text"&&j0(n)&&(i=Ht[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Ni={};function Sc(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Ni[e]){var r=Ni[e]={cssEmPerMu:Cn.quad[e]/18};for(var n in Cn)Cn.hasOwnProperty(n)&&(r[n]=Cn[n][e])}return Ni[e]}var zc=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],K0=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Y0=function(e,r){return r.size<2?e:zc[e-1][r.size-1]};class Zt{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||Zt.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=K0[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return new Zt(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Y0(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:K0[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=Y0(Zt.BASESIZE,e);return this.size===r&&this.textSize===Zt.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Zt.BASESIZE?["sizing","reset-size"+this.size,"size"+Zt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Sc(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Zt.BASESIZE=6;var Bi={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Ec={ex:!0,em:!0,mu:!0},Z0=function(e){return typeof e!="string"&&(e=e.unit),e in Bi||e in Ec||e==="ex"},Fe=function(e,r){var n;if(e.unit in Bi)n=Bi[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,e.unit==="ex")n=i.fontMetrics().xHeight;else if(e.unit==="em")n=i.fontMetrics().quad;else throw new F("Invalid unit: '"+e.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},H=function(e){return+e.toFixed(4)+"em"},pr=function(e){return e.filter(r=>r).join(" ")},J0=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},Q0=function(e){var r=document.createElement(e);r.className=pr(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&r.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},es=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+ie.escape(pr(this.classes))+'"');var n="";for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=ie.hyphenate(i)+":"+this.style[i]+";");n&&(r+=' style="'+ie.escape(n)+'"');for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&(r+=" "+a+'="'+ie.escape(this.attributes[a])+'"');r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+e+">",r};class an{constructor(e,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,J0.call(this,e,n,i),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return ie.contains(this.classes,e)}toNode(){return Q0.call(this,"span")}toMarkup(){return es.call(this,"span")}}class Ri{constructor(e,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,J0.call(this,r,i),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return ie.contains(this.classes,e)}toNode(){return Q0.call(this,"a")}toMarkup(){return es.call(this,"a")}}class Tc{constructor(e,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return ie.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(e.style[r]=this.style[r]);return e}toMarkup(){var e='<img src="'+ie.escape(this.src)+'"'+(' alt="'+ie.escape(this.alt)+'"'),r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=ie.hyphenate(n)+":"+this.style[n]+";");return r&&(e+=' style="'+ie.escape(r)+'"'),e+="'/>",e}}var Ac={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Tt{constructor(e,r,n,i,a,s,o,u){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=s||0,this.classes=o||[],this.style=u||{},this.maxFontSize=0;var h=hc(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Ac[this.text])}hasClass(e){return ie.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=H(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=pr(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="<span";this.classes.length&&(e=!0,r+=' class="',r+=ie.escape(pr(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=ie.hyphenate(i)+":"+this.style[i]+";");n&&(e=!0,r+=' style="'+ie.escape(n)+'"');var a=ie.escape(this.text);return e?(r+=">",r+=a,r+="</span>",r):a}}class Jt{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(e+=" "+r+'="'+ie.escape(this.attributes[r])+'"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}}class fr{constructor(e,r){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=r}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",V0[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+ie.escape(this.alternate)+'"/>':'<path d="'+ie.escape(V0[this.pathName])+'"/>'}}class Ii{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e="<line";for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(e+=" "+r+'="'+ie.escape(this.attributes[r])+'"');return e+="/>",e}}function ts(t){if(t instanceof Tt)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function Mc(t){if(t instanceof an)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var Cc={bin:1,close:1,inner:1,open:1,punct:1,rel:1},_c={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ie={math:{},text:{}};function l(t,e,r,n,i,a){Ie[t][i]={font:e,group:r,replace:n},a&&n&&(Ie[t][n]=Ie[t][i])}var c="math",L="text",m="main",v="ams",De="accent-token",J="bin",ut="close",Yr="inner",oe="mathord",je="op-token",vt="open",_n="punct",y="rel",Qt="spacing",S="textord";l(c,m,y,"≡","\\equiv",!0),l(c,m,y,"≺","\\prec",!0),l(c,m,y,"≻","\\succ",!0),l(c,m,y,"∼","\\sim",!0),l(c,m,y,"⊥","\\perp"),l(c,m,y,"⪯","\\preceq",!0),l(c,m,y,"⪰","\\succeq",!0),l(c,m,y,"≃","\\simeq",!0),l(c,m,y,"∣","\\mid",!0),l(c,m,y,"≪","\\ll",!0),l(c,m,y,"≫","\\gg",!0),l(c,m,y,"≍","\\asymp",!0),l(c,m,y,"∥","\\parallel"),l(c,m,y,"⋈","\\bowtie",!0),l(c,m,y,"⌣","\\smile",!0),l(c,m,y,"⊑","\\sqsubseteq",!0),l(c,m,y,"⊒","\\sqsupseteq",!0),l(c,m,y,"≐","\\doteq",!0),l(c,m,y,"⌢","\\frown",!0),l(c,m,y,"∋","\\ni",!0),l(c,m,y,"∝","\\propto",!0),l(c,m,y,"⊢","\\vdash",!0),l(c,m,y,"⊣","\\dashv",!0),l(c,m,y,"∋","\\owns"),l(c,m,_n,".","\\ldotp"),l(c,m,_n,"⋅","\\cdotp"),l(c,m,S,"#","\\#"),l(L,m,S,"#","\\#"),l(c,m,S,"&","\\&"),l(L,m,S,"&","\\&"),l(c,m,S,"ℵ","\\aleph",!0),l(c,m,S,"∀","\\forall",!0),l(c,m,S,"ℏ","\\hbar",!0),l(c,m,S,"∃","\\exists",!0),l(c,m,S,"∇","\\nabla",!0),l(c,m,S,"♭","\\flat",!0),l(c,m,S,"ℓ","\\ell",!0),l(c,m,S,"♮","\\natural",!0),l(c,m,S,"♣","\\clubsuit",!0),l(c,m,S,"℘","\\wp",!0),l(c,m,S,"♯","\\sharp",!0),l(c,m,S,"♢","\\diamondsuit",!0),l(c,m,S,"ℜ","\\Re",!0),l(c,m,S,"♡","\\heartsuit",!0),l(c,m,S,"ℑ","\\Im",!0),l(c,m,S,"♠","\\spadesuit",!0),l(c,m,S,"§","\\S",!0),l(L,m,S,"§","\\S"),l(c,m,S,"¶","\\P",!0),l(L,m,S,"¶","\\P"),l(c,m,S,"†","\\dag"),l(L,m,S,"†","\\dag"),l(L,m,S,"†","\\textdagger"),l(c,m,S,"‡","\\ddag"),l(L,m,S,"‡","\\ddag"),l(L,m,S,"‡","\\textdaggerdbl"),l(c,m,ut,"⎱","\\rmoustache",!0),l(c,m,vt,"⎰","\\lmoustache",!0),l(c,m,ut,"⟯","\\rgroup",!0),l(c,m,vt,"⟮","\\lgroup",!0),l(c,m,J,"∓","\\mp",!0),l(c,m,J,"⊖","\\ominus",!0),l(c,m,J,"⊎","\\uplus",!0),l(c,m,J,"⊓","\\sqcap",!0),l(c,m,J,"∗","\\ast"),l(c,m,J,"⊔","\\sqcup",!0),l(c,m,J,"◯","\\bigcirc",!0),l(c,m,J,"∙","\\bullet",!0),l(c,m,J,"‡","\\ddagger"),l(c,m,J,"≀","\\wr",!0),l(c,m,J,"⨿","\\amalg"),l(c,m,J,"&","\\And"),l(c,m,y,"⟵","\\longleftarrow",!0),l(c,m,y,"⇐","\\Leftarrow",!0),l(c,m,y,"⟸","\\Longleftarrow",!0),l(c,m,y,"⟶","\\longrightarrow",!0),l(c,m,y,"⇒","\\Rightarrow",!0),l(c,m,y,"⟹","\\Longrightarrow",!0),l(c,m,y,"↔","\\leftrightarrow",!0),l(c,m,y,"⟷","\\longleftrightarrow",!0),l(c,m,y,"⇔","\\Leftrightarrow",!0),l(c,m,y,"⟺","\\Longleftrightarrow",!0),l(c,m,y,"↦","\\mapsto",!0),l(c,m,y,"⟼","\\longmapsto",!0),l(c,m,y,"↗","\\nearrow",!0),l(c,m,y,"↩","\\hookleftarrow",!0),l(c,m,y,"↪","\\hookrightarrow",!0),l(c,m,y,"↘","\\searrow",!0),l(c,m,y,"↼","\\leftharpoonup",!0),l(c,m,y,"⇀","\\rightharpoonup",!0),l(c,m,y,"↙","\\swarrow",!0),l(c,m,y,"↽","\\leftharpoondown",!0),l(c,m,y,"⇁","\\rightharpoondown",!0),l(c,m,y,"↖","\\nwarrow",!0),l(c,m,y,"⇌","\\rightleftharpoons",!0),l(c,v,y,"≮","\\nless",!0),l(c,v,y,"","\\@nleqslant"),l(c,v,y,"","\\@nleqq"),l(c,v,y,"⪇","\\lneq",!0),l(c,v,y,"≨","\\lneqq",!0),l(c,v,y,"","\\@lvertneqq"),l(c,v,y,"⋦","\\lnsim",!0),l(c,v,y,"⪉","\\lnapprox",!0),l(c,v,y,"⊀","\\nprec",!0),l(c,v,y,"⋠","\\npreceq",!0),l(c,v,y,"⋨","\\precnsim",!0),l(c,v,y,"⪹","\\precnapprox",!0),l(c,v,y,"≁","\\nsim",!0),l(c,v,y,"","\\@nshortmid"),l(c,v,y,"∤","\\nmid",!0),l(c,v,y,"⊬","\\nvdash",!0),l(c,v,y,"⊭","\\nvDash",!0),l(c,v,y,"⋪","\\ntriangleleft"),l(c,v,y,"⋬","\\ntrianglelefteq",!0),l(c,v,y,"⊊","\\subsetneq",!0),l(c,v,y,"","\\@varsubsetneq"),l(c,v,y,"⫋","\\subsetneqq",!0),l(c,v,y,"","\\@varsubsetneqq"),l(c,v,y,"≯","\\ngtr",!0),l(c,v,y,"","\\@ngeqslant"),l(c,v,y,"","\\@ngeqq"),l(c,v,y,"⪈","\\gneq",!0),l(c,v,y,"≩","\\gneqq",!0),l(c,v,y,"","\\@gvertneqq"),l(c,v,y,"⋧","\\gnsim",!0),l(c,v,y,"⪊","\\gnapprox",!0),l(c,v,y,"⊁","\\nsucc",!0),l(c,v,y,"⋡","\\nsucceq",!0),l(c,v,y,"⋩","\\succnsim",!0),l(c,v,y,"⪺","\\succnapprox",!0),l(c,v,y,"≆","\\ncong",!0),l(c,v,y,"","\\@nshortparallel"),l(c,v,y,"∦","\\nparallel",!0),l(c,v,y,"⊯","\\nVDash",!0),l(c,v,y,"⋫","\\ntriangleright"),l(c,v,y,"⋭","\\ntrianglerighteq",!0),l(c,v,y,"","\\@nsupseteqq"),l(c,v,y,"⊋","\\supsetneq",!0),l(c,v,y,"","\\@varsupsetneq"),l(c,v,y,"⫌","\\supsetneqq",!0),l(c,v,y,"","\\@varsupsetneqq"),l(c,v,y,"⊮","\\nVdash",!0),l(c,v,y,"⪵","\\precneqq",!0),l(c,v,y,"⪶","\\succneqq",!0),l(c,v,y,"","\\@nsubseteqq"),l(c,v,J,"⊴","\\unlhd"),l(c,v,J,"⊵","\\unrhd"),l(c,v,y,"↚","\\nleftarrow",!0),l(c,v,y,"↛","\\nrightarrow",!0),l(c,v,y,"⇍","\\nLeftarrow",!0),l(c,v,y,"⇏","\\nRightarrow",!0),l(c,v,y,"↮","\\nleftrightarrow",!0),l(c,v,y,"⇎","\\nLeftrightarrow",!0),l(c,v,y,"△","\\vartriangle"),l(c,v,S,"ℏ","\\hslash"),l(c,v,S,"▽","\\triangledown"),l(c,v,S,"◊","\\lozenge"),l(c,v,S,"Ⓢ","\\circledS"),l(c,v,S,"®","\\circledR"),l(L,v,S,"®","\\circledR"),l(c,v,S,"∡","\\measuredangle",!0),l(c,v,S,"∄","\\nexists"),l(c,v,S,"℧","\\mho"),l(c,v,S,"Ⅎ","\\Finv",!0),l(c,v,S,"⅁","\\Game",!0),l(c,v,S,"‵","\\backprime"),l(c,v,S,"▲","\\blacktriangle"),l(c,v,S,"▼","\\blacktriangledown"),l(c,v,S,"■","\\blacksquare"),l(c,v,S,"⧫","\\blacklozenge"),l(c,v,S,"★","\\bigstar"),l(c,v,S,"∢","\\sphericalangle",!0),l(c,v,S,"∁","\\complement",!0),l(c,v,S,"ð","\\eth",!0),l(L,m,S,"ð","ð"),l(c,v,S,"╱","\\diagup"),l(c,v,S,"╲","\\diagdown"),l(c,v,S,"□","\\square"),l(c,v,S,"□","\\Box"),l(c,v,S,"◊","\\Diamond"),l(c,v,S,"¥","\\yen",!0),l(L,v,S,"¥","\\yen",!0),l(c,v,S,"✓","\\checkmark",!0),l(L,v,S,"✓","\\checkmark"),l(c,v,S,"ℶ","\\beth",!0),l(c,v,S,"ℸ","\\daleth",!0),l(c,v,S,"ℷ","\\gimel",!0),l(c,v,S,"ϝ","\\digamma",!0),l(c,v,S,"ϰ","\\varkappa"),l(c,v,vt,"┌","\\@ulcorner",!0),l(c,v,ut,"┐","\\@urcorner",!0),l(c,v,vt,"└","\\@llcorner",!0),l(c,v,ut,"┘","\\@lrcorner",!0),l(c,v,y,"≦","\\leqq",!0),l(c,v,y,"⩽","\\leqslant",!0),l(c,v,y,"⪕","\\eqslantless",!0),l(c,v,y,"≲","\\lesssim",!0),l(c,v,y,"⪅","\\lessapprox",!0),l(c,v,y,"≊","\\approxeq",!0),l(c,v,J,"⋖","\\lessdot"),l(c,v,y,"⋘","\\lll",!0),l(c,v,y,"≶","\\lessgtr",!0),l(c,v,y,"⋚","\\lesseqgtr",!0),l(c,v,y,"⪋","\\lesseqqgtr",!0),l(c,v,y,"≑","\\doteqdot"),l(c,v,y,"≓","\\risingdotseq",!0),l(c,v,y,"≒","\\fallingdotseq",!0),l(c,v,y,"∽","\\backsim",!0),l(c,v,y,"⋍","\\backsimeq",!0),l(c,v,y,"⫅","\\subseteqq",!0),l(c,v,y,"⋐","\\Subset",!0),l(c,v,y,"⊏","\\sqsubset",!0),l(c,v,y,"≼","\\preccurlyeq",!0),l(c,v,y,"⋞","\\curlyeqprec",!0),l(c,v,y,"≾","\\precsim",!0),l(c,v,y,"⪷","\\precapprox",!0),l(c,v,y,"⊲","\\vartriangleleft"),l(c,v,y,"⊴","\\trianglelefteq"),l(c,v,y,"⊨","\\vDash",!0),l(c,v,y,"⊪","\\Vvdash",!0),l(c,v,y,"⌣","\\smallsmile"),l(c,v,y,"⌢","\\smallfrown"),l(c,v,y,"≏","\\bumpeq",!0),l(c,v,y,"≎","\\Bumpeq",!0),l(c,v,y,"≧","\\geqq",!0),l(c,v,y,"⩾","\\geqslant",!0),l(c,v,y,"⪖","\\eqslantgtr",!0),l(c,v,y,"≳","\\gtrsim",!0),l(c,v,y,"⪆","\\gtrapprox",!0),l(c,v,J,"⋗","\\gtrdot"),l(c,v,y,"⋙","\\ggg",!0),l(c,v,y,"≷","\\gtrless",!0),l(c,v,y,"⋛","\\gtreqless",!0),l(c,v,y,"⪌","\\gtreqqless",!0),l(c,v,y,"≖","\\eqcirc",!0),l(c,v,y,"≗","\\circeq",!0),l(c,v,y,"≜","\\triangleq",!0),l(c,v,y,"∼","\\thicksim"),l(c,v,y,"≈","\\thickapprox"),l(c,v,y,"⫆","\\supseteqq",!0),l(c,v,y,"⋑","\\Supset",!0),l(c,v,y,"⊐","\\sqsupset",!0),l(c,v,y,"≽","\\succcurlyeq",!0),l(c,v,y,"⋟","\\curlyeqsucc",!0),l(c,v,y,"≿","\\succsim",!0),l(c,v,y,"⪸","\\succapprox",!0),l(c,v,y,"⊳","\\vartriangleright"),l(c,v,y,"⊵","\\trianglerighteq"),l(c,v,y,"⊩","\\Vdash",!0),l(c,v,y,"∣","\\shortmid"),l(c,v,y,"∥","\\shortparallel"),l(c,v,y,"≬","\\between",!0),l(c,v,y,"⋔","\\pitchfork",!0),l(c,v,y,"∝","\\varpropto"),l(c,v,y,"◀","\\blacktriangleleft"),l(c,v,y,"∴","\\therefore",!0),l(c,v,y,"∍","\\backepsilon"),l(c,v,y,"▶","\\blacktriangleright"),l(c,v,y,"∵","\\because",!0),l(c,v,y,"⋘","\\llless"),l(c,v,y,"⋙","\\gggtr"),l(c,v,J,"⊲","\\lhd"),l(c,v,J,"⊳","\\rhd"),l(c,v,y,"≂","\\eqsim",!0),l(c,m,y,"⋈","\\Join"),l(c,v,y,"≑","\\Doteq",!0),l(c,v,J,"∔","\\dotplus",!0),l(c,v,J,"∖","\\smallsetminus"),l(c,v,J,"⋒","\\Cap",!0),l(c,v,J,"⋓","\\Cup",!0),l(c,v,J,"⩞","\\doublebarwedge",!0),l(c,v,J,"⊟","\\boxminus",!0),l(c,v,J,"⊞","\\boxplus",!0),l(c,v,J,"⋇","\\divideontimes",!0),l(c,v,J,"⋉","\\ltimes",!0),l(c,v,J,"⋊","\\rtimes",!0),l(c,v,J,"⋋","\\leftthreetimes",!0),l(c,v,J,"⋌","\\rightthreetimes",!0),l(c,v,J,"⋏","\\curlywedge",!0),l(c,v,J,"⋎","\\curlyvee",!0),l(c,v,J,"⊝","\\circleddash",!0),l(c,v,J,"⊛","\\circledast",!0),l(c,v,J,"⋅","\\centerdot"),l(c,v,J,"⊺","\\intercal",!0),l(c,v,J,"⋒","\\doublecap"),l(c,v,J,"⋓","\\doublecup"),l(c,v,J,"⊠","\\boxtimes",!0),l(c,v,y,"⇢","\\dashrightarrow",!0),l(c,v,y,"⇠","\\dashleftarrow",!0),l(c,v,y,"⇇","\\leftleftarrows",!0),l(c,v,y,"⇆","\\leftrightarrows",!0),l(c,v,y,"⇚","\\Lleftarrow",!0),l(c,v,y,"↞","\\twoheadleftarrow",!0),l(c,v,y,"↢","\\leftarrowtail",!0),l(c,v,y,"↫","\\looparrowleft",!0),l(c,v,y,"⇋","\\leftrightharpoons",!0),l(c,v,y,"↶","\\curvearrowleft",!0),l(c,v,y,"↺","\\circlearrowleft",!0),l(c,v,y,"↰","\\Lsh",!0),l(c,v,y,"⇈","\\upuparrows",!0),l(c,v,y,"↿","\\upharpoonleft",!0),l(c,v,y,"⇃","\\downharpoonleft",!0),l(c,m,y,"⊶","\\origof",!0),l(c,m,y,"⊷","\\imageof",!0),l(c,v,y,"⊸","\\multimap",!0),l(c,v,y,"↭","\\leftrightsquigarrow",!0),l(c,v,y,"⇉","\\rightrightarrows",!0),l(c,v,y,"⇄","\\rightleftarrows",!0),l(c,v,y,"↠","\\twoheadrightarrow",!0),l(c,v,y,"↣","\\rightarrowtail",!0),l(c,v,y,"↬","\\looparrowright",!0),l(c,v,y,"↷","\\curvearrowright",!0),l(c,v,y,"↻","\\circlearrowright",!0),l(c,v,y,"↱","\\Rsh",!0),l(c,v,y,"⇊","\\downdownarrows",!0),l(c,v,y,"↾","\\upharpoonright",!0),l(c,v,y,"⇂","\\downharpoonright",!0),l(c,v,y,"⇝","\\rightsquigarrow",!0),l(c,v,y,"⇝","\\leadsto"),l(c,v,y,"⇛","\\Rrightarrow",!0),l(c,v,y,"↾","\\restriction"),l(c,m,S,"‘","`"),l(c,m,S,"$","\\$"),l(L,m,S,"$","\\$"),l(L,m,S,"$","\\textdollar"),l(c,m,S,"%","\\%"),l(L,m,S,"%","\\%"),l(c,m,S,"_","\\_"),l(L,m,S,"_","\\_"),l(L,m,S,"_","\\textunderscore"),l(c,m,S,"∠","\\angle",!0),l(c,m,S,"∞","\\infty",!0),l(c,m,S,"′","\\prime"),l(c,m,S,"△","\\triangle"),l(c,m,S,"Γ","\\Gamma",!0),l(c,m,S,"Δ","\\Delta",!0),l(c,m,S,"Θ","\\Theta",!0),l(c,m,S,"Λ","\\Lambda",!0),l(c,m,S,"Ξ","\\Xi",!0),l(c,m,S,"Π","\\Pi",!0),l(c,m,S,"Σ","\\Sigma",!0),l(c,m,S,"Υ","\\Upsilon",!0),l(c,m,S,"Φ","\\Phi",!0),l(c,m,S,"Ψ","\\Psi",!0),l(c,m,S,"Ω","\\Omega",!0),l(c,m,S,"A","Α"),l(c,m,S,"B","Β"),l(c,m,S,"E","Ε"),l(c,m,S,"Z","Ζ"),l(c,m,S,"H","Η"),l(c,m,S,"I","Ι"),l(c,m,S,"K","Κ"),l(c,m,S,"M","Μ"),l(c,m,S,"N","Ν"),l(c,m,S,"O","Ο"),l(c,m,S,"P","Ρ"),l(c,m,S,"T","Τ"),l(c,m,S,"X","Χ"),l(c,m,S,"¬","\\neg",!0),l(c,m,S,"¬","\\lnot"),l(c,m,S,"⊤","\\top"),l(c,m,S,"⊥","\\bot"),l(c,m,S,"∅","\\emptyset"),l(c,v,S,"∅","\\varnothing"),l(c,m,oe,"α","\\alpha",!0),l(c,m,oe,"β","\\beta",!0),l(c,m,oe,"γ","\\gamma",!0),l(c,m,oe,"δ","\\delta",!0),l(c,m,oe,"ϵ","\\epsilon",!0),l(c,m,oe,"ζ","\\zeta",!0),l(c,m,oe,"η","\\eta",!0),l(c,m,oe,"θ","\\theta",!0),l(c,m,oe,"ι","\\iota",!0),l(c,m,oe,"κ","\\kappa",!0),l(c,m,oe,"λ","\\lambda",!0),l(c,m,oe,"μ","\\mu",!0),l(c,m,oe,"ν","\\nu",!0),l(c,m,oe,"ξ","\\xi",!0),l(c,m,oe,"ο","\\omicron",!0),l(c,m,oe,"π","\\pi",!0),l(c,m,oe,"ρ","\\rho",!0),l(c,m,oe,"σ","\\sigma",!0),l(c,m,oe,"τ","\\tau",!0),l(c,m,oe,"υ","\\upsilon",!0),l(c,m,oe,"ϕ","\\phi",!0),l(c,m,oe,"χ","\\chi",!0),l(c,m,oe,"ψ","\\psi",!0),l(c,m,oe,"ω","\\omega",!0),l(c,m,oe,"ε","\\varepsilon",!0),l(c,m,oe,"ϑ","\\vartheta",!0),l(c,m,oe,"ϖ","\\varpi",!0),l(c,m,oe,"ϱ","\\varrho",!0),l(c,m,oe,"ς","\\varsigma",!0),l(c,m,oe,"φ","\\varphi",!0),l(c,m,J,"∗","*",!0),l(c,m,J,"+","+"),l(c,m,J,"−","-",!0),l(c,m,J,"⋅","\\cdot",!0),l(c,m,J,"∘","\\circ",!0),l(c,m,J,"÷","\\div",!0),l(c,m,J,"±","\\pm",!0),l(c,m,J,"×","\\times",!0),l(c,m,J,"∩","\\cap",!0),l(c,m,J,"∪","\\cup",!0),l(c,m,J,"∖","\\setminus",!0),l(c,m,J,"∧","\\land"),l(c,m,J,"∨","\\lor"),l(c,m,J,"∧","\\wedge",!0),l(c,m,J,"∨","\\vee",!0),l(c,m,S,"√","\\surd"),l(c,m,vt,"⟨","\\langle",!0),l(c,m,vt,"∣","\\lvert"),l(c,m,vt,"∥","\\lVert"),l(c,m,ut,"?","?"),l(c,m,ut,"!","!"),l(c,m,ut,"⟩","\\rangle",!0),l(c,m,ut,"∣","\\rvert"),l(c,m,ut,"∥","\\rVert"),l(c,m,y,"=","="),l(c,m,y,":",":"),l(c,m,y,"≈","\\approx",!0),l(c,m,y,"≅","\\cong",!0),l(c,m,y,"≥","\\ge"),l(c,m,y,"≥","\\geq",!0),l(c,m,y,"←","\\gets"),l(c,m,y,">","\\gt",!0),l(c,m,y,"∈","\\in",!0),l(c,m,y,"","\\@not"),l(c,m,y,"⊂","\\subset",!0),l(c,m,y,"⊃","\\supset",!0),l(c,m,y,"⊆","\\subseteq",!0),l(c,m,y,"⊇","\\supseteq",!0),l(c,v,y,"⊈","\\nsubseteq",!0),l(c,v,y,"⊉","\\nsupseteq",!0),l(c,m,y,"⊨","\\models"),l(c,m,y,"←","\\leftarrow",!0),l(c,m,y,"≤","\\le"),l(c,m,y,"≤","\\leq",!0),l(c,m,y,"<","\\lt",!0),l(c,m,y,"→","\\rightarrow",!0),l(c,m,y,"→","\\to"),l(c,v,y,"≱","\\ngeq",!0),l(c,v,y,"≰","\\nleq",!0),l(c,m,Qt," ","\\ "),l(c,m,Qt," ","\\space"),l(c,m,Qt," ","\\nobreakspace"),l(L,m,Qt," ","\\ "),l(L,m,Qt," "," "),l(L,m,Qt," ","\\space"),l(L,m,Qt," ","\\nobreakspace"),l(c,m,Qt,null,"\\nobreak"),l(c,m,Qt,null,"\\allowbreak"),l(c,m,_n,",",","),l(c,m,_n,";",";"),l(c,v,J,"⊼","\\barwedge",!0),l(c,v,J,"⊻","\\veebar",!0),l(c,m,J,"⊙","\\odot",!0),l(c,m,J,"⊕","\\oplus",!0),l(c,m,J,"⊗","\\otimes",!0),l(c,m,S,"∂","\\partial",!0),l(c,m,J,"⊘","\\oslash",!0),l(c,v,J,"⊚","\\circledcirc",!0),l(c,v,J,"⊡","\\boxdot",!0),l(c,m,J,"△","\\bigtriangleup"),l(c,m,J,"▽","\\bigtriangledown"),l(c,m,J,"†","\\dagger"),l(c,m,J,"⋄","\\diamond"),l(c,m,J,"⋆","\\star"),l(c,m,J,"◃","\\triangleleft"),l(c,m,J,"▹","\\triangleright"),l(c,m,vt,"{","\\{"),l(L,m,S,"{","\\{"),l(L,m,S,"{","\\textbraceleft"),l(c,m,ut,"}","\\}"),l(L,m,S,"}","\\}"),l(L,m,S,"}","\\textbraceright"),l(c,m,vt,"{","\\lbrace"),l(c,m,ut,"}","\\rbrace"),l(c,m,vt,"[","\\lbrack",!0),l(L,m,S,"[","\\lbrack",!0),l(c,m,ut,"]","\\rbrack",!0),l(L,m,S,"]","\\rbrack",!0),l(c,m,vt,"(","\\lparen",!0),l(c,m,ut,")","\\rparen",!0),l(L,m,S,"<","\\textless",!0),l(L,m,S,">","\\textgreater",!0),l(c,m,vt,"⌊","\\lfloor",!0),l(c,m,ut,"⌋","\\rfloor",!0),l(c,m,vt,"⌈","\\lceil",!0),l(c,m,ut,"⌉","\\rceil",!0),l(c,m,S,"\\","\\backslash"),l(c,m,S,"∣","|"),l(c,m,S,"∣","\\vert"),l(L,m,S,"|","\\textbar",!0),l(c,m,S,"∥","\\|"),l(c,m,S,"∥","\\Vert"),l(L,m,S,"∥","\\textbardbl"),l(L,m,S,"~","\\textasciitilde"),l(L,m,S,"\\","\\textbackslash"),l(L,m,S,"^","\\textasciicircum"),l(c,m,y,"↑","\\uparrow",!0),l(c,m,y,"⇑","\\Uparrow",!0),l(c,m,y,"↓","\\downarrow",!0),l(c,m,y,"⇓","\\Downarrow",!0),l(c,m,y,"↕","\\updownarrow",!0),l(c,m,y,"⇕","\\Updownarrow",!0),l(c,m,je,"∐","\\coprod"),l(c,m,je,"⋁","\\bigvee"),l(c,m,je,"⋀","\\bigwedge"),l(c,m,je,"⨄","\\biguplus"),l(c,m,je,"⋂","\\bigcap"),l(c,m,je,"⋃","\\bigcup"),l(c,m,je,"∫","\\int"),l(c,m,je,"∫","\\intop"),l(c,m,je,"∬","\\iint"),l(c,m,je,"∭","\\iiint"),l(c,m,je,"∏","\\prod"),l(c,m,je,"∑","\\sum"),l(c,m,je,"⨂","\\bigotimes"),l(c,m,je,"⨁","\\bigoplus"),l(c,m,je,"⨀","\\bigodot"),l(c,m,je,"∮","\\oint"),l(c,m,je,"∯","\\oiint"),l(c,m,je,"∰","\\oiiint"),l(c,m,je,"⨆","\\bigsqcup"),l(c,m,je,"∫","\\smallint"),l(L,m,Yr,"…","\\textellipsis"),l(c,m,Yr,"…","\\mathellipsis"),l(L,m,Yr,"…","\\ldots",!0),l(c,m,Yr,"…","\\ldots",!0),l(c,m,Yr,"⋯","\\@cdots",!0),l(c,m,Yr,"⋱","\\ddots",!0),l(c,m,S,"⋮","\\varvdots"),l(L,m,S,"⋮","\\varvdots"),l(c,m,De,"ˊ","\\acute"),l(c,m,De,"ˋ","\\grave"),l(c,m,De,"¨","\\ddot"),l(c,m,De,"~","\\tilde"),l(c,m,De,"ˉ","\\bar"),l(c,m,De,"˘","\\breve"),l(c,m,De,"ˇ","\\check"),l(c,m,De,"^","\\hat"),l(c,m,De,"⃗","\\vec"),l(c,m,De,"˙","\\dot"),l(c,m,De,"˚","\\mathring"),l(c,m,oe,"","\\@imath"),l(c,m,oe,"","\\@jmath"),l(c,m,S,"ı","ı"),l(c,m,S,"ȷ","ȷ"),l(L,m,S,"ı","\\i",!0),l(L,m,S,"ȷ","\\j",!0),l(L,m,S,"ß","\\ss",!0),l(L,m,S,"æ","\\ae",!0),l(L,m,S,"œ","\\oe",!0),l(L,m,S,"ø","\\o",!0),l(L,m,S,"Æ","\\AE",!0),l(L,m,S,"Œ","\\OE",!0),l(L,m,S,"Ø","\\O",!0),l(L,m,De,"ˊ","\\'"),l(L,m,De,"ˋ","\\`"),l(L,m,De,"ˆ","\\^"),l(L,m,De,"˜","\\~"),l(L,m,De,"ˉ","\\="),l(L,m,De,"˘","\\u"),l(L,m,De,"˙","\\."),l(L,m,De,"¸","\\c"),l(L,m,De,"˚","\\r"),l(L,m,De,"ˇ","\\v"),l(L,m,De,"¨",'\\"'),l(L,m,De,"˝","\\H"),l(L,m,De,"◯","\\textcircled");var rs={"--":!0,"---":!0,"``":!0,"''":!0};l(L,m,S,"–","--",!0),l(L,m,S,"–","\\textendash"),l(L,m,S,"—","---",!0),l(L,m,S,"—","\\textemdash"),l(L,m,S,"‘","`",!0),l(L,m,S,"‘","\\textquoteleft"),l(L,m,S,"’","'",!0),l(L,m,S,"’","\\textquoteright"),l(L,m,S,"“","``",!0),l(L,m,S,"“","\\textquotedblleft"),l(L,m,S,"”","''",!0),l(L,m,S,"”","\\textquotedblright"),l(c,m,S,"°","\\degree",!0),l(L,m,S,"°","\\degree"),l(L,m,S,"°","\\textdegree",!0),l(c,m,S,"£","\\pounds"),l(c,m,S,"£","\\mathsterling",!0),l(L,m,S,"£","\\pounds"),l(L,m,S,"£","\\textsterling",!0),l(c,v,S,"✠","\\maltese"),l(L,v,S,"✠","\\maltese");for(var ns='0123456789/@."',Oi=0;Oi<ns.length;Oi++){var is=ns.charAt(Oi);l(c,m,S,is,is)}for(var as='0123456789!@*()-=+";:?/.,',Li=0;Li<as.length;Li++){var ss=as.charAt(Li);l(L,m,S,ss,ss)}for(var Nn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Di=0;Di<Nn.length;Di++){var Bn=Nn.charAt(Di);l(c,m,oe,Bn,Bn),l(L,m,S,Bn,Bn)}l(c,v,S,"C","ℂ"),l(L,v,S,"C","ℂ"),l(c,v,S,"H","ℍ"),l(L,v,S,"H","ℍ"),l(c,v,S,"N","ℕ"),l(L,v,S,"N","ℕ"),l(c,v,S,"P","ℙ"),l(L,v,S,"P","ℙ"),l(c,v,S,"Q","ℚ"),l(L,v,S,"Q","ℚ"),l(c,v,S,"R","ℝ"),l(L,v,S,"R","ℝ"),l(c,v,S,"Z","ℤ"),l(L,v,S,"Z","ℤ"),l(c,m,oe,"h","ℎ"),l(L,m,oe,"h","ℎ");for(var ce="",ct=0;ct<Nn.length;ct++){var qe=Nn.charAt(ct);ce=String.fromCharCode(55349,56320+ct),l(c,m,oe,qe,ce),l(L,m,S,qe,ce),ce=String.fromCharCode(55349,56372+ct),l(c,m,oe,qe,ce),l(L,m,S,qe,ce),ce=String.fromCharCode(55349,56424+ct),l(c,m,oe,qe,ce),l(L,m,S,qe,ce),ce=String.fromCharCode(55349,56580+ct),l(c,m,oe,qe,ce),l(L,m,S,qe,ce),ce=String.fromCharCode(55349,56684+ct),l(c,m,oe,qe,ce),l(L,m,S,qe,ce),ce=String.fromCharCode(55349,56736+ct),l(c,m,oe,qe,ce),l(L,m,S,qe,ce),ce=String.fromCharCode(55349,56788+ct),l(c,m,oe,qe,ce),l(L,m,S,qe,ce),ce=String.fromCharCode(55349,56840+ct),l(c,m,oe,qe,ce),l(L,m,S,qe,ce),ce=String.fromCharCode(55349,56944+ct),l(c,m,oe,qe,ce),l(L,m,S,qe,ce),ct<26&&(ce=String.fromCharCode(55349,56632+ct),l(c,m,oe,qe,ce),l(L,m,S,qe,ce),ce=String.fromCharCode(55349,56476+ct),l(c,m,oe,qe,ce),l(L,m,S,qe,ce))}ce="𝕜",l(c,m,oe,"k",ce),l(L,m,S,"k",ce);for(var Br=0;Br<10;Br++){var gr=Br.toString();ce=String.fromCharCode(55349,57294+Br),l(c,m,oe,gr,ce),l(L,m,S,gr,ce),ce=String.fromCharCode(55349,57314+Br),l(c,m,oe,gr,ce),l(L,m,S,gr,ce),ce=String.fromCharCode(55349,57324+Br),l(c,m,oe,gr,ce),l(L,m,S,gr,ce),ce=String.fromCharCode(55349,57334+Br),l(c,m,oe,gr,ce),l(L,m,S,gr,ce)}for(var Fi="ÐÞþ",Pi=0;Pi<Fi.length;Pi++){var Rn=Fi.charAt(Pi);l(c,m,oe,Rn,Rn),l(L,m,S,Rn,Rn)}var In=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],os=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Nc=function(e,r){var n=e.charCodeAt(0),i=e.charCodeAt(1),a=(n-55296)*1024+(i-56320)+65536,s=r==="math"?0:1;if(119808<=a&&a<120484){var o=Math.floor((a-119808)/26);return[In[o][2],In[o][s]]}else if(120782<=a&&a<=120831){var u=Math.floor((a-120782)/10);return[os[u][2],os[u][s]]}else{if(a===120485||a===120486)return[In[0][2],In[0][s]];if(120486<a&&a<120782)return["",""];throw new F("Unsupported character: "+e)}},On=function(e,r,n){return Ie[n][e]&&Ie[n][e].replace&&(e=Ie[n][e].replace),{value:e,metrics:_i(e,r,n)}},Nt=function(e,r,n,i,a){var s=On(e,r,n),o=s.metrics;e=s.value;var u;if(o){var h=o.italic;(n==="text"||i&&i.font==="mathit")&&(h=0),u=new Tt(e,o.height,o.depth,h,o.skew,o.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+r+"' and mode '"+n+"'")),u=new Tt(e,0,0,0,0,0,a);if(i){u.maxFontSize=i.sizeMultiplier,i.style.isTight()&&u.classes.push("mtight");var d=i.getColor();d&&(u.style.color=d)}return u},Bc=function(e,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&On(e,"Main-Bold",r).metrics?Nt(e,"Main-Bold",r,n,i.concat(["mathbf"])):e==="\\"||Ie[r][e].font==="main"?Nt(e,"Main-Regular",r,n,i):Nt(e,"AMS-Regular",r,n,i.concat(["amsrm"]))},Rc=function(e,r,n,i,a){return a!=="textord"&&On(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ic=function(e,r,n){var i=e.mode,a=e.text,s=["mord"],o=i==="math"||i==="text"&&r.font,u=o?r.font:r.fontFamily,h="",d="";if(a.charCodeAt(0)===55349&&([h,d]=Nc(a,i)),h.length>0)return Nt(a,h,i,r,s.concat(d));if(u){var p,b;if(u==="boldsymbol"){var f=Rc(a,i,r,s,n);p=f.fontName,b=[f.fontClass]}else o?(p=cs[u].fontName,b=[u]):(p=Ln(u,r.fontWeight,r.fontShape),b=[u,r.fontWeight,r.fontShape]);if(On(a,p,i).metrics)return Nt(a,p,i,r,s.concat(b));if(rs.hasOwnProperty(a)&&p.slice(0,10)==="Typewriter"){for(var z=[],E=0;E<a.length;E++)z.push(Nt(a[E],p,i,r,s.concat(b)));return us(z)}}if(n==="mathord")return Nt(a,"Math-Italic",i,r,s.concat(["mathnormal"]));if(n==="textord"){var O=Ie[i][a]&&Ie[i][a].font;if(O==="ams"){var A=Ln("amsrm",r.fontWeight,r.fontShape);return Nt(a,A,i,r,s.concat("amsrm",r.fontWeight,r.fontShape))}else if(O==="main"||!O){var _=Ln("textrm",r.fontWeight,r.fontShape);return Nt(a,_,i,r,s.concat(r.fontWeight,r.fontShape))}else{var I=Ln(O,r.fontWeight,r.fontShape);return Nt(a,I,i,r,s.concat(I,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},Oc=(t,e)=>{if(pr(t.classes)!==pr(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n in t.style)if(t.style.hasOwnProperty(n)&&t.style[n]!==e.style[n])return!1;for(var i in e.style)if(e.style.hasOwnProperty(i)&&t.style[i]!==e.style[i])return!1;return!0},Lc=t=>{for(var e=0;e<t.length-1;e++){var r=t[e],n=t[e+1];r instanceof Tt&&n instanceof Tt&&Oc(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,t.splice(e+1,1),e--)}return t},qi=function(e){for(var r=0,n=0,i=0,a=0;a<e.children.length;a++){var s=e.children[a];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=i},mt=function(e,r,n,i){var a=new an(e,r,n,i);return qi(a),a},ls=(t,e,r,n)=>new an(t,e,r,n),Dc=function(e,r,n){var i=mt([e],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=H(i.height),i.maxFontSize=1,i},Fc=function(e,r,n,i){var a=new Ri(e,r,n,i);return qi(a),a},us=function(e){var r=new nn(e);return qi(r),r},Pc=function(e,r){return e instanceof nn?mt([],[e],r):e},qc=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s<r.length;s++){var o=-r[s].shift-a-r[s].elem.depth,u=o-(r[s-1].elem.height+r[s-1].elem.depth);a=a+o,n.push({type:"kern",size:u}),n.push(r[s])}return{children:n,depth:i}}var h;if(e.positionType==="top"){for(var d=e.positionData,p=0;p<e.children.length;p++){var b=e.children[p];d-=b.type==="kern"?b.size:b.elem.height+b.elem.depth}h=d}else if(e.positionType==="bottom")h=-e.positionData;else{var f=e.children[0];if(f.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")h=-f.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")h=-f.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:h}},Uc=function(e,r){for(var{children:n,depth:i}=qc(e),a=0,s=0;s<n.length;s++){var o=n[s];if(o.type==="elem"){var u=o.elem;a=Math.max(a,u.maxFontSize,u.height)}}a+=2;var h=mt(["pstrut"],[]);h.style.height=H(a);for(var d=[],p=i,b=i,f=i,z=0;z<n.length;z++){var E=n[z];if(E.type==="kern")f+=E.size;else{var O=E.elem,A=E.wrapperClasses||[],_=E.wrapperStyle||{},I=mt(A,[h,O],void 0,_);I.style.top=H(-a-f-O.depth),E.marginLeft&&(I.style.marginLeft=E.marginLeft),E.marginRight&&(I.style.marginRight=E.marginRight),d.push(I),f+=O.height+O.depth}p=Math.min(p,f),b=Math.max(b,f)}var Y=mt(["vlist"],d);Y.style.height=H(b);var G;if(p<0){var C=mt([],[]),V=mt(["vlist"],[C]);V.style.height=H(-p);var ee=mt(["vlist-s"],[new Tt("")]);G=[mt(["vlist-r"],[Y,ee]),mt(["vlist-r"],[V])]}else G=[mt(["vlist-r"],[Y])];var j=mt(["vlist-t"],G);return G.length===2&&j.classes.push("vlist-t2"),j.height=b,j.depth=-p,j},Hc=(t,e)=>{var r=mt(["mspace"],[],e),n=Fe(t,e);return r.style.marginRight=H(n),r},Ln=function(e,r,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},cs={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},hs={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Gc=function(e,r){var[n,i,a]=hs[e],s=new fr(n),o=new Jt([s],{width:H(i),height:H(a),style:"width:"+H(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=ls(["overlay"],[o],r);return u.height=a,u.style.height=H(a),u.style.width=H(i),u},T={fontMap:cs,makeSymbol:Nt,mathsym:Bc,makeSpan:mt,makeSvgSpan:ls,makeLineSpan:Dc,makeAnchor:Fc,makeFragment:us,wrapFragment:Pc,makeVList:Uc,makeOrd:Ic,makeGlue:Hc,staticSvg:Gc,svgData:hs,tryCombineChars:Lc},Pe={number:3,unit:"mu"},Rr={number:4,unit:"mu"},er={number:5,unit:"mu"},$c={mord:{mop:Pe,mbin:Rr,mrel:er,minner:Pe},mop:{mord:Pe,mop:Pe,mrel:er,minner:Pe},mbin:{mord:Rr,mop:Rr,mopen:Rr,minner:Rr},mrel:{mord:er,mop:er,mopen:er,minner:er},mopen:{},mclose:{mop:Pe,mbin:Rr,mrel:er,minner:Pe},mpunct:{mord:Pe,mop:Pe,mrel:er,mopen:Pe,mclose:Pe,mpunct:Pe,minner:Pe},minner:{mord:Pe,mop:Pe,mbin:Rr,mrel:er,mopen:Pe,mpunct:Pe,minner:Pe}},Wc={mord:{mop:Pe},mop:{mord:Pe,mop:Pe},mbin:{},mrel:{},mopen:{},mclose:{mop:Pe},mpunct:{},minner:{mop:Pe}},ds={},Dn={},Fn={};function K(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},u=0;u<r.length;++u)ds[r[u]]=o;e&&(a&&(Dn[e]=a),s&&(Fn[e]=s))}function Ir(t){var{type:e,htmlBuilder:r,mathmlBuilder:n}=t;K({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var Pn=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},He=function(e){return e.type==="ordgroup"?e.body:[e]},tr=T.makeSpan,jc=["leftmost","mbin","mopen","mrel","mop","mpunct"],Vc=["rightmost","mrel","mclose","mpunct"],Xc={display:se.DISPLAY,text:se.TEXT,script:se.SCRIPT,scriptscript:se.SCRIPTSCRIPT},Kc={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ke=function(e,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],s=0;s<e.length;s++){var o=ze(e[s],r);if(o instanceof nn){var u=o.children;a.push(...u)}else a.push(o)}if(T.tryCombineChars(a),!n)return a;var h=r;if(e.length===1){var d=e[0];d.type==="sizing"?h=r.havingSize(d.size):d.type==="styling"&&(h=r.havingStyle(Xc[d.style]))}var p=tr([i[0]||"leftmost"],[],r),b=tr([i[1]||"rightmost"],[],r),f=n==="root";return ms(a,(z,E)=>{var O=E.classes[0],A=z.classes[0];O==="mbin"&&ie.contains(Vc,A)?E.classes[0]="mord":A==="mbin"&&ie.contains(jc,O)&&(z.classes[0]="mord")},{node:p},b,f),ms(a,(z,E)=>{var O=Ui(E),A=Ui(z),_=O&&A?z.hasClass("mtight")?Wc[O][A]:$c[O][A]:null;if(_)return T.makeGlue(_,h)},{node:p},b,f),a},ms=function t(e,r,n,i,a){i&&e.push(i);for(var s=0;s<e.length;s++){var o=e[s],u=ps(o);if(u){t(u.children,r,n,null,a);continue}var h=!o.hasClass("mspace");if(h){var d=r(o,n.node);d&&(n.insertAfter?n.insertAfter(d):(e.unshift(d),s++))}h?n.node=o:a&&o.hasClass("newline")&&(n.node=tr(["leftmost"])),n.insertAfter=(p=>b=>{e.splice(p+1,0,b),s++})(s)}i&&e.pop()},ps=function(e){return e instanceof nn||e instanceof Ri||e instanceof an&&e.hasClass("enclosing")?e:null},Yc=function t(e,r){var n=ps(e);if(n){var i=n.children;if(i.length){if(r==="right")return t(i[i.length-1],"right");if(r==="left")return t(i[0],"left")}}return e},Ui=function(e,r){return e?(r&&(e=Yc(e,r)),Kc[e.classes[0]]||null):null},sn=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return tr(r.concat(n))},ze=function(e,r,n){if(!e)return tr();if(Dn[e.type]){var i=Dn[e.type](e,r);if(n&&r.size!==n.size){i=tr(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new F("Got group of unknown type: '"+e.type+"'")};function qn(t,e){var r=tr(["base"],t,e),n=tr(["strut"]);return n.style.height=H(r.height+r.depth),r.depth&&(n.style.verticalAlign=H(-r.depth)),r.children.unshift(n),r}function Hi(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=Ke(t,e,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var u=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(u=!0);u||(a.push(qn(s,e)),s=[])}else n[o].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(qn(s,e)),s=[]),a.push(n[o]));s.length>0&&a.push(qn(s,e));var h;r?(h=qn(Ke(r,e,!0)),h.classes=["tag"],a.push(h)):i&&a.push(i);var d=tr(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),h){var p=h.children[0];p.style.height=H(d.height+d.depth),d.depth&&(p.style.verticalAlign=H(-d.depth))}return d}function fs(t){return new nn(t)}class At{constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&e.setAttribute(r,this.attributes[r]);this.classes.length>0&&(e.className=pr(this.classes));for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(e+=" "+r+'="',e+=ie.escape(this.attributes[r]),e+='"');this.classes.length>0&&(e+=' class ="'+ie.escape(pr(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class on{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ie.escape(this.toText())}toText(){return this.text}}class Zc{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character=" ":e>=-.05556&&e<=-.05555?this.character=" ":e>=-.1667&&e<=-.1666?this.character=" ":e>=-.2223&&e<=-.2222?this.character=" ":e>=-.2778&&e<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",H(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+H(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var D={MathNode:At,TextNode:on,SpaceNode:Zc,newDocumentFragment:fs},Mt=function(e,r,n){return Ie[r][e]&&Ie[r][e].replace&&e.charCodeAt(0)!==55349&&!(rs.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=Ie[r][e].replace),new D.TextNode(e)},Gi=function(e){return e.length===1?e[0]:new D.MathNode("mrow",e)},$i=function(e,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=e.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=e.text;if(ie.contains(["\\imath","\\jmath"],a))return null;Ie[i][a]&&Ie[i][a].replace&&(a=Ie[i][a].replace);var s=T.fontMap[n].fontName;return _i(a,s,i)?T.fontMap[n].variant:null},pt=function(e,r,n){if(e.length===1){var i=Re(e[0],r);return n&&i instanceof At&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o<e.length;o++){var u=Re(e[o],r);if(u instanceof At&&s instanceof At){if(u.type==="mtext"&&s.type==="mtext"&&u.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...u.children);continue}else if(u.type==="mn"&&s.type==="mn"){s.children.push(...u.children);continue}else if(u.type==="mi"&&u.children.length===1&&s.type==="mn"){var h=u.children[0];if(h instanceof on&&h.text==="."){s.children.push(...u.children);continue}}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof on&&d.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var p=u.children[0];p instanceof on&&p.text.length>0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),a.pop())}}}a.push(u),s=u}return a},br=function(e,r,n){return Gi(pt(e,r,n))},Re=function(e,r){if(!e)return new D.MathNode("mrow");if(Fn[e.type]){var n=Fn[e.type](e,r);return n}else throw new F("Got group of unknown type: '"+e.type+"'")};function gs(t,e,r,n,i){var a=pt(t,r),s;a.length===1&&a[0]instanceof At&&ie.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new D.MathNode("mrow",a);var o=new D.MathNode("annotation",[new D.TextNode(e)]);o.setAttribute("encoding","application/x-tex");var u=new D.MathNode("semantics",[s,o]),h=new D.MathNode("math",[u]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var d=i?"katex":"katex-mathml";return T.makeSpan([d],[h])}var bs=function(e){return new Zt({style:e.displayMode?se.DISPLAY:se.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},vs=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=T.makeSpan(n,[e])}return e},Jc=function(e,r,n){var i=bs(n),a;if(n.output==="mathml")return gs(e,r,i,n.displayMode,!0);if(n.output==="html"){var s=Hi(e,i);a=T.makeSpan(["katex"],[s])}else{var o=gs(e,r,i,n.displayMode,!1),u=Hi(e,i);a=T.makeSpan(["katex"],[o,u])}return vs(a,n)},Qc=function(e,r,n){var i=bs(n),a=Hi(e,i),s=T.makeSpan(["katex"],[a]);return vs(s,n)},eh={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},th=function(e){var r=new D.MathNode("mo",[new D.TextNode(eh[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},rh={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},nh=function(e){return e.type==="ordgroup"?e.body.length:1},ih=function(e,r){function n(){var o=4e5,u=e.label.slice(1);if(ie.contains(["widehat","widecheck","widetilde","utilde"],u)){var h=e,d=nh(h.base),p,b,f;if(d>5)u==="widehat"||u==="widecheck"?(p=420,o=2364,f=.42,b=u+"4"):(p=312,o=2340,f=.34,b="tilde4");else{var z=[1,1,2,2,3,3][d];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][z],p=[0,239,300,360,420][z],f=[0,.24,.3,.3,.36,.42][z],b=u+z):(o=[0,600,1033,2339,2340][z],p=[0,260,286,306,312][z],f=[0,.26,.286,.3,.306,.34][z],b="tilde"+z)}var E=new fr(b),O=new Jt([E],{width:"100%",height:H(f),viewBox:"0 0 "+o+" "+p,preserveAspectRatio:"none"});return{span:T.makeSvgSpan([],[O],r),minWidth:0,height:f}}else{var A=[],_=rh[u],[I,Y,G]=_,C=G/1e3,V=I.length,ee,j;if(V===1){var M=_[3];ee=["hide-tail"],j=[M]}else if(V===2)ee=["halfarrow-left","halfarrow-right"],j=["xMinYMin","xMaxYMin"];else if(V===3)ee=["brace-left","brace-center","brace-right"],j=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
261
|
-
`+V+" children.");for(var W=0;W<V;W++){var $=new fr(I[W]),be=new Jt([$],{width:"400em",height:H(C),viewBox:"0 0 "+o+" "+G,preserveAspectRatio:j[W]+" slice"}),he=T.makeSvgSpan([ee[W]],[be],r);if(V===1)return{span:he,minWidth:Y,height:C};he.style.height=H(C),A.push(he)}return{span:T.makeSpan(["stretchy"],A,r),minWidth:Y,height:C}}}var{span:i,minWidth:a,height:s}=n();return i.height=s,i.style.height=H(s),a>0&&(i.style.minWidth=H(a)),i},ah=function(e,r,n,i,a){var s,o=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=T.makeSpan(["stretchy",r],[],a),r==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new Ii({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new Ii({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new Jt(h,{width:"100%",height:H(o)});s=T.makeSvgSpan([],[d],a)}return s.height=o,s.style.height=H(o),s},rr={encloseSpan:ah,mathMLnode:th,svgSpan:ih};function ge(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function Wi(t){var e=Un(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Un(t){return t&&(t.type==="atom"||_c.hasOwnProperty(t.type))?t:null}var ji=(t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=ge(t.base,"accent"),r=n.base,t.base=r,i=Mc(ze(t,e)),t.base=n):(n=ge(t,"accent"),r=n.base);var a=ze(r,e.havingCrampedStyle()),s=n.isShifty&&ie.isCharacterBox(r),o=0;if(s){var u=ie.getBaseElem(r),h=ze(u,e.havingCrampedStyle());o=ts(h).skew}var d=n.label==="\\c",p=d?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),b;if(n.isStretchy)b=rr.svgSpan(n,e),b=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:b,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+H(2*o)+")",marginLeft:H(2*o)}:void 0}]},e);else{var f,z;n.label==="\\vec"?(f=T.staticSvg("vec",e),z=T.svgData.vec[1]):(f=T.makeOrd({mode:n.mode,text:n.label},e,"textord"),f=ts(f),f.italic=0,z=f.width,d&&(p+=f.depth)),b=T.makeSpan(["accent-body"],[f]);var E=n.label==="\\textcircled";E&&(b.classes.push("accent-full"),p=a.height);var O=o;E||(O-=z/2),b.style.left=H(O),n.label==="\\textcircled"&&(b.style.top=".2em"),b=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-p},{type:"elem",elem:b}]},e)}var A=T.makeSpan(["mord","accent"],[b],e);return i?(i.children[0]=A,i.height=Math.max(A.height,i.height),i.classes[0]="mord",i):A},ys=(t,e)=>{var r=t.isStretchy?rr.mathMLnode(t.label):new D.MathNode("mo",[Mt(t.label,t.mode)]),n=new D.MathNode("mover",[Re(t.base,e),r]);return n.setAttribute("accent","true"),n},sh=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));K({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(t,e)=>{var r=Pn(e[0]),n=!sh.test(t.funcName),i=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:ji,mathmlBuilder:ys}),K({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:ji,mathmlBuilder:ys}),K({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(t,e)=>{var r=ze(t.base,e),n=rr.svgSpan(t,e),i=t.label==="\\utilde"?.12:0,a=T.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]},e);return T.makeSpan(["mord","accentunder"],[a],e)},mathmlBuilder:(t,e)=>{var r=rr.mathMLnode(t.label),n=new D.MathNode("munder",[Re(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var Hn=t=>{var e=new D.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};K({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n,funcName:i}=t;return{type:"xArrow",mode:n.mode,label:i,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),i=T.wrapFragment(ze(t.body,n,e),e),a=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=T.wrapFragment(ze(t.below,n,e),e),s.classes.push(a+"-arrow-pad"));var o=rr.svgSpan(t,e),u=-e.fontMetrics().axisHeight+.5*o.height,h=-e.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(h-=i.depth);var d;if(s){var p=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:p}]},e)}else d=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:o,shift:u}]},e);return d.children[0].children[0].children[1].classes.push("svg-align"),T.makeSpan(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var r=rr.mathMLnode(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var i=Hn(Re(t.body,e));if(t.below){var a=Hn(Re(t.below,e));n=new D.MathNode("munderover",[r,a,i])}else n=new D.MathNode("mover",[r,i])}else if(t.below){var s=Hn(Re(t.below,e));n=new D.MathNode("munder",[r,s])}else n=Hn(),n=new D.MathNode("mover",[r,n]);return n}});var oh=T.makeSpan;function ws(t,e){var r=Ke(t.body,e,!0);return oh([t.mclass],r,e)}function xs(t,e){var r,n=pt(t.body,e);return t.mclass==="minner"?r=new D.MathNode("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new D.MathNode("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new D.MathNode("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):t.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}K({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:He(i),isCharacterBox:ie.isCharacterBox(i)}},htmlBuilder:ws,mathmlBuilder:xs});var Gn=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};K({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:Gn(e[0]),body:He(e[1]),isCharacterBox:ie.isCharacterBox(e[1])}}}),K({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,i=e[1],a=e[0],s;n!=="\\stackrel"?s=Gn(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:He(i)},u={type:"supsub",mode:a.mode,base:o,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[u],isCharacterBox:ie.isCharacterBox(u)}},htmlBuilder:ws,mathmlBuilder:xs}),K({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:Gn(e[0]),body:He(e[0])}},htmlBuilder(t,e){var r=Ke(t.body,e,!0),n=T.makeSpan([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=pt(t.body,e),n=new D.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var lh={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ks=()=>({type:"styling",body:[],mode:"math",style:"display"}),Ss=t=>t.type==="textord"&&t.text==="@",uh=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function ch(t,e,r){var n=lh[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[e[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return r.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function hh(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new F("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],i=[n],a=0;a<e.length;a++){for(var s=e[a],o=ks(),u=0;u<s.length;u++)if(!Ss(s[u]))o.body.push(s[u]);else{n.push(o),u+=1;var h=Wi(s[u]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(h)>-1))if("<>AV".indexOf(h)>-1)for(var p=0;p<2;p++){for(var b=!0,f=u+1;f<s.length;f++){if(uh(s[f],h)){b=!1,u=f;break}if(Ss(s[f]))throw new F("Missing a "+h+" character to complete a CD arrow.",s[f]);d[p].body.push(s[f])}if(b)throw new F("Missing a "+h+" character to complete a CD arrow.",s[u])}else throw new F('Expected one of "<>AV=|." after @',s[u]);var z=ch(h,d,t),E={type:"styling",body:[z],mode:"math",style:"display"};n.push(E),o=ks()}a%2===0?n.push(o):n.shift(),n=[],i.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var O=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:O,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}K({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=T.wrapFragment(ze(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=H(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new D.MathNode("mrow",[Re(t.label,e)]);return r=new D.MathNode("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new D.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),K({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:r}=t;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=T.wrapFragment(ze(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new D.MathNode("mrow",[Re(t.fragment,e)])}}),K({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=ge(e[0],"ordgroup"),i=n.body,a="",s=0;s<i.length;s++){var o=ge(i[s],"textord");a+=o.text}var u=parseInt(a),h;if(isNaN(u))throw new F("\\@char has non-numeric argument "+a);if(u<0||u>=1114111)throw new F("\\@char with invalid code point "+a);return u<=65535?h=String.fromCharCode(u):(u-=65536,h=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:r.mode,text:h}}});var zs=(t,e)=>{var r=Ke(t.body,e.withColor(t.color),!1);return T.makeFragment(r)},Es=(t,e)=>{var r=pt(t.body,e.withColor(t.color)),n=new D.MathNode("mstyle",r);return n.setAttribute("mathcolor",t.color),n};K({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:r}=t,n=ge(e[0],"color-token").color,i=e[1];return{type:"color",mode:r.mode,color:n,body:He(i)}},htmlBuilder:zs,mathmlBuilder:Es}),K({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,i=ge(e[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:zs,mathmlBuilder:Es}),K({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&ge(i,"size").value}},htmlBuilder(t,e){var r=T.makeSpan(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=H(Fe(t.size,e)))),r},mathmlBuilder(t,e){var r=new D.MathNode("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",H(Fe(t.size,e)))),r}});var Vi={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Ts=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new F("Expected a control sequence",t);return e},dh=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},As=(t,e,r,n)=>{var i=t.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,i,n)};K({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:r}=t;e.consumeSpaces();var n=e.fetch();if(Vi[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Vi[n.text]),ge(e.parseFunction(),"internal");throw new F("Invalid token after macro prefix",n)}}),K({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=e.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new F("Expected a control sequence",n);for(var a=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[a].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new F('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new F('Argument number "'+n.text+'" out of order');a++,o.push([])}else{if(n.text==="EOF")throw new F("Expected a macro definition");o[a].push(n.text)}var{tokens:u}=e.gullet.consumeArg();return s&&u.unshift(s),(r==="\\edef"||r==="\\xdef")&&(u=e.gullet.expandTokens(u),u.reverse()),e.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},r===Vi[r]),{type:"internal",mode:e.mode}}}),K({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=Ts(e.gullet.popToken());e.gullet.consumeSpaces();var i=dh(e);return As(e,n,i,r==="\\\\globallet"),{type:"internal",mode:e.mode}}}),K({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=Ts(e.gullet.popToken()),i=e.gullet.popToken(),a=e.gullet.popToken();return As(e,n,a,r==="\\\\globalfuture"),e.gullet.pushToken(a),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var ln=function(e,r,n){var i=Ie.math[e]&&Ie.math[e].replace,a=_i(i||e,r,n);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return a},Xi=function(e,r,n,i){var a=n.havingBaseStyle(r),s=T.makeSpan(i.concat(a.sizingClasses(n)),[e],n),o=a.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},Ms=function(e,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=H(a),e.height-=a,e.depth+=a},mh=function(e,r,n,i,a,s){var o=T.makeSymbol(e,"Main-Regular",a,i),u=Xi(o,r,i,s);return n&&Ms(u,i,r),u},ph=function(e,r,n,i){return T.makeSymbol(e,"Size"+r+"-Regular",n,i)},Cs=function(e,r,n,i,a,s){var o=ph(e,r,a,i),u=Xi(T.makeSpan(["delimsizing","size"+r],[o],i),se.TEXT,i,s);return n&&Ms(u,i,se.TEXT),u},Ki=function(e,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=T.makeSpan(["delimsizinginner",i],[T.makeSpan([],[T.makeSymbol(e,r,n)])]);return{type:"elem",elem:a}},Yi=function(e,r,n){var i=Ht["Size4-Regular"][e.charCodeAt(0)]?Ht["Size4-Regular"][e.charCodeAt(0)][4]:Ht["Size1-Regular"][e.charCodeAt(0)][4],a=new fr("inner",wc(e,Math.round(1e3*r))),s=new Jt([a],{width:H(i),height:H(r),style:"width:"+H(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=T.makeSvgSpan([],[s],n);return o.height=r,o.style.height=H(r),o.style.width=H(i),{type:"elem",elem:o}},Zi=.008,$n={type:"kern",size:-1*Zi},fh=["|","\\lvert","\\rvert","\\vert"],gh=["\\|","\\lVert","\\rVert","\\Vert"],_s=function(e,r,n,i,a,s){var o,u,h,d,p="",b=0;o=h=d=e,u=null;var f="Size1-Regular";e==="\\uparrow"?h=d="⏐":e==="\\Uparrow"?h=d="‖":e==="\\downarrow"?o=h="⏐":e==="\\Downarrow"?o=h="‖":e==="\\updownarrow"?(o="\\uparrow",h="⏐",d="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",h="‖",d="\\Downarrow"):ie.contains(fh,e)?(h="∣",p="vert",b=333):ie.contains(gh,e)?(h="∥",p="doublevert",b=556):e==="["||e==="\\lbrack"?(o="⎡",h="⎢",d="⎣",f="Size4-Regular",p="lbrack",b=667):e==="]"||e==="\\rbrack"?(o="⎤",h="⎥",d="⎦",f="Size4-Regular",p="rbrack",b=667):e==="\\lfloor"||e==="⌊"?(h=o="⎢",d="⎣",f="Size4-Regular",p="lfloor",b=667):e==="\\lceil"||e==="⌈"?(o="⎡",h=d="⎢",f="Size4-Regular",p="lceil",b=667):e==="\\rfloor"||e==="⌋"?(h=o="⎥",d="⎦",f="Size4-Regular",p="rfloor",b=667):e==="\\rceil"||e==="⌉"?(o="⎤",h=d="⎥",f="Size4-Regular",p="rceil",b=667):e==="("||e==="\\lparen"?(o="⎛",h="⎜",d="⎝",f="Size4-Regular",p="lparen",b=875):e===")"||e==="\\rparen"?(o="⎞",h="⎟",d="⎠",f="Size4-Regular",p="rparen",b=875):e==="\\{"||e==="\\lbrace"?(o="⎧",u="⎨",d="⎩",h="⎪",f="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",u="⎬",d="⎭",h="⎪",f="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",d="⎩",h="⎪",f="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",d="⎭",h="⎪",f="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",d="⎭",h="⎪",f="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",d="⎩",h="⎪",f="Size4-Regular");var z=ln(o,f,a),E=z.height+z.depth,O=ln(h,f,a),A=O.height+O.depth,_=ln(d,f,a),I=_.height+_.depth,Y=0,G=1;if(u!==null){var C=ln(u,f,a);Y=C.height+C.depth,G=2}var V=E+I+Y,ee=Math.max(0,Math.ceil((r-V)/(G*A))),j=V+ee*G*A,M=i.fontMetrics().axisHeight;n&&(M*=i.sizeMultiplier);var W=j/2-M,$=[];if(p.length>0){var be=j-E-I,he=Math.round(j*1e3),le=xc(p,Math.round(be*1e3)),Ee=new fr(p,le),Ce=(b/1e3).toFixed(3)+"em",ue=(he/1e3).toFixed(3)+"em",_e=new Jt([Ee],{width:Ce,height:ue,viewBox:"0 0 "+b+" "+he}),w=T.makeSvgSpan([],[_e],i);w.height=he/1e3,w.style.width=Ce,w.style.height=ue,$.push({type:"elem",elem:w})}else{if($.push(Ki(d,f,a)),$.push($n),u===null){var Te=j-E-I+2*Zi;$.push(Yi(h,Te,i))}else{var Ae=(j-E-I-Y)/2+2*Zi;$.push(Yi(h,Ae,i)),$.push($n),$.push(Ki(u,f,a)),$.push($n),$.push(Yi(h,Ae,i))}$.push($n),$.push(Ki(o,f,a))}var k=i.havingBaseStyle(se.TEXT),Qe=T.makeVList({positionType:"bottom",positionData:W,children:$},k);return Xi(T.makeSpan(["delimsizing","mult"],[Qe],k),se.TEXT,i,s)},Ji=80,Qi=.08,ea=function(e,r,n,i,a){var s=yc(e,i,n),o=new fr(e,s),u=new Jt([o],{width:"400em",height:H(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return T.makeSvgSpan(["hide-tail"],[u],a)},bh=function(e,r){var n=r.havingBaseSizing(),i=Is("\\surd",e*n.sizeMultiplier,Rs,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,u=0,h=0,d=0,p;return i.type==="small"?(d=1e3+1e3*s+Ji,e<1?a=1:e<1.4&&(a=.7),u=(1+s+Qi)/a,h=(1+s)/a,o=ea("sqrtMain",u,d,s,r),o.style.minWidth="0.853em",p=.833/a):i.type==="large"?(d=(1e3+Ji)*un[i.size],h=(un[i.size]+s)/a,u=(un[i.size]+s+Qi)/a,o=ea("sqrtSize"+i.size,u,d,s,r),o.style.minWidth="1.02em",p=1/a):(u=e+s+Qi,h=e+s,d=Math.floor(1e3*e+s)+Ji,o=ea("sqrtTall",u,d,s,r),o.style.minWidth="0.742em",p=1.056),o.height=h,o.style.height=H(u),{span:o,advanceWidth:p,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},Ns=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],vh=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Bs=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],un=[0,1.2,1.8,2.4,3],yh=function(e,r,n,i,a){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),ie.contains(Ns,e)||ie.contains(Bs,e))return Cs(e,r,!1,n,i,a);if(ie.contains(vh,e))return _s(e,un[r],!1,n,i,a);throw new F("Illegal delimiter: '"+e+"'")},wh=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],xh=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"stack"}],Rs=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],kh=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Is=function(e,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;s<n.length&&n[s].type!=="stack";s++){var o=ln(e,kh(n[s]),"math"),u=o.height+o.depth;if(n[s].type==="small"){var h=i.havingBaseStyle(n[s].style);u*=h.sizeMultiplier}if(u>r)return n[s]}return n[n.length-1]},Os=function(e,r,n,i,a,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;ie.contains(Bs,e)?o=wh:ie.contains(Ns,e)?o=Rs:o=xh;var u=Is(e,r,o,i);return u.type==="small"?mh(e,u.style,n,i,a,s):u.type==="large"?Cs(e,u.size,n,i,a,s):_s(e,r,n,i,a,s)},Sh=function(e,r,n,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,h=5/i.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),p=Math.max(d/500*u,2*d-h);return Os(e,p,!0,i,a,s)},nr={sqrtImage:bh,sizedDelim:yh,sizeToMaxHeight:un,customSizedDelim:Os,leftRightDelim:Sh},Ls={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},zh=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Wn(t,e){var r=Un(t);if(r&&ie.contains(zh,r.text))return r;throw r?new F("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new F("Invalid delimiter type '"+t.type+"'",t)}K({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(t,e)=>{var r=Wn(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:Ls[t.funcName].size,mclass:Ls[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?T.makeSpan([t.mclass]):nr.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Mt(t.delim,t.mode));var r=new D.MathNode("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=H(nr.sizeToMaxHeight[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Ds(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}K({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new F("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:Wn(e[0],t).text,color:r}}}),K({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=Wn(e[0],t),n=t.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=ge(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(t,e)=>{Ds(t);for(var r=Ke(t.body,e,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s<r.length;s++)r[s].isMiddle?a=!0:(n=Math.max(r[s].height,n),i=Math.max(r[s].depth,i));n*=e.sizeMultiplier,i*=e.sizeMultiplier;var o;if(t.left==="."?o=sn(e,["mopen"]):o=nr.leftRightDelim(t.left,n,i,e,t.mode,["mopen"]),r.unshift(o),a)for(var u=1;u<r.length;u++){var h=r[u],d=h.isMiddle;d&&(r[u]=nr.leftRightDelim(d.delim,n,i,d.options,t.mode,[]))}var p;if(t.right===".")p=sn(e,["mclose"]);else{var b=t.rightColor?e.withColor(t.rightColor):e;p=nr.leftRightDelim(t.right,n,i,b,t.mode,["mclose"])}return r.push(p),T.makeSpan(["minner"],r,e)},mathmlBuilder:(t,e)=>{Ds(t);var r=pt(t.body,e);if(t.left!=="."){var n=new D.MathNode("mo",[Mt(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var i=new D.MathNode("mo",[Mt(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),r.push(i)}return Gi(r)}}),K({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=Wn(e[0],t);if(!t.parser.leftrightDepth)throw new F("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;if(t.delim===".")r=sn(e,[]);else{r=nr.sizedDelim(t.delim,1,e,t.mode,[]);var n={delim:t.delim,options:e};r.isMiddle=n}return r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?Mt("|","text"):Mt(t.delim,t.mode),n=new D.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var ta=(t,e)=>{var r=T.wrapFragment(ze(t.body,e),e),n=t.label.slice(1),i=e.sizeMultiplier,a,s=0,o=ie.isCharacterBox(t.body);if(n==="sout")a=T.makeSpan(["stretchy","sout"]),a.height=e.fontMetrics().defaultRuleThickness/i,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var u=Fe({number:.6,unit:"pt"},e),h=Fe({number:.35,unit:"ex"},e),d=e.havingBaseSizing();i=i/d.sizeMultiplier;var p=r.height+r.depth+u+h;r.style.paddingLeft=H(p/2+u);var b=Math.floor(1e3*p*i),f=bc(b),z=new Jt([new fr("phase",f)],{width:"400em",height:H(b/1e3),viewBox:"0 0 400000 "+b,preserveAspectRatio:"xMinYMin slice"});a=T.makeSvgSpan(["hide-tail"],[z],e),a.style.height=H(p),s=r.depth+u+h}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var E=0,O=0,A=0;/box/.test(n)?(A=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),E=e.fontMetrics().fboxsep+(n==="colorbox"?0:A),O=E):n==="angl"?(A=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),E=4*A,O=Math.max(0,.25-r.depth)):(E=o?.2:0,O=E),a=rr.encloseSpan(r,n,E,O,e),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=H(A)):n==="angl"&&A!==.049&&(a.style.borderTopWidth=H(A),a.style.borderRightWidth=H(A)),s=r.depth+O,t.backgroundColor&&(a.style.backgroundColor=t.backgroundColor,t.borderColor&&(a.style.borderColor=t.borderColor))}var _;if(t.backgroundColor)_=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]},e);else{var I=/cancel|phase/.test(n)?["svg-align"]:[];_=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:I}]},e)}return/cancel/.test(n)&&(_.height=r.height,_.depth=r.depth),/cancel/.test(n)&&!o?T.makeSpan(["mord","cancel-lap"],[_],e):T.makeSpan(["mord"],[_],e)},ra=(t,e)=>{var r=0,n=new D.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Re(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(t.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};K({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=ge(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:ta,mathmlBuilder:ra}),K({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=ge(e[0],"color-token").color,s=ge(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:ta,mathmlBuilder:ra}),K({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}}),K({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:ta,mathmlBuilder:ra}),K({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var Fs={};function Gt(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u<r.length;++u)Fs[r[u]]=o;a&&(Dn[e]=a),s&&(Fn[e]=s)}var Ps={};function g(t,e){Ps[t]=e}function qs(t){var e=[];t.consumeSpaces();var r=t.fetch().text;for(r==="\\relax"&&(t.consume(),t.consumeSpaces(),r=t.fetch().text);r==="\\hline"||r==="\\hdashline";)t.consume(),e.push(r==="\\hdashline"),t.consumeSpaces(),r=t.fetch().text;return e}var jn=t=>{var e=t.parser.settings;if(!e.displayMode)throw new F("{"+t.envName+"} can be used only in display mode.")};function na(t){if(t.indexOf("ed")===-1)return t.indexOf("*")===-1}function vr(t,e,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:h,emptySingleRow:d,maxNumCols:p,leqno:b}=e;if(t.gullet.beginGroup(),h||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var f=t.gullet.expandMacroAsText("\\arraystretch");if(f==null)s=1;else if(s=parseFloat(f),!s||s<0)throw new F("Invalid \\arraystretch: "+f)}t.gullet.beginGroup();var z=[],E=[z],O=[],A=[],_=u!=null?[]:void 0;function I(){u&&t.gullet.macros.set("\\@eqnsw","1",!0)}function Y(){_&&(t.gullet.macros.get("\\df@tag")?(_.push(t.subparse([new zt("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):_.push(!!u&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(I(),A.push(qs(t));;){var G=t.parseExpression(!1,h?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),G={type:"ordgroup",mode:t.mode,body:G},r&&(G={type:"styling",mode:t.mode,style:r,body:[G]}),z.push(G);var C=t.fetch().text;if(C==="&"){if(p&&z.length===p){if(h||o)throw new F("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(C==="\\end"){Y(),z.length===1&&G.type==="styling"&&G.body[0].body.length===0&&(E.length>1||!d)&&E.pop(),A.length<E.length+1&&A.push([]);break}else if(C==="\\\\"){t.consume();var V=void 0;t.gullet.future().text!==" "&&(V=t.parseSizeGroup(!0)),O.push(V?V.value:null),Y(),A.push(qs(t)),z=[],E.push(z),I()}else throw new F("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:i,arraystretch:s,body:E,cols:a,rowGaps:O,hskipBeforeAndAfter:n,hLinesBeforeRow:A,colSeparationType:o,tags:_,leqno:b}}function ia(t){return t.slice(0,1)==="d"?"display":"text"}var $t=function(e,r){var n,i,a=e.body.length,s=e.hLinesBeforeRow,o=0,u=new Array(a),h=[],d=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),p=1/r.fontMetrics().ptPerEm,b=5*p;if(e.colSeparationType&&e.colSeparationType==="small"){var f=r.havingStyle(se.SCRIPT).sizeMultiplier;b=.2778*(f/r.sizeMultiplier)}var z=e.colSeparationType==="CD"?Fe({number:3,unit:"ex"},r):12*p,E=3*p,O=e.arraystretch*z,A=.7*O,_=.3*O,I=0;function Y(kr){for(var ir=0;ir<kr.length;++ir)ir>0&&(I+=.25),h.push({pos:I,isDashed:kr[ir]})}for(Y(s[0]),n=0;n<e.body.length;++n){var G=e.body[n],C=A,V=_;o<G.length&&(o=G.length);var ee=new Array(G.length);for(i=0;i<G.length;++i){var j=ze(G[i],r);V<j.depth&&(V=j.depth),C<j.height&&(C=j.height),ee[i]=j}var M=e.rowGaps[n],W=0;M&&(W=Fe(M,r),W>0&&(W+=_,V<W&&(V=W),W=0)),e.addJot&&(V+=E),ee.height=C,ee.depth=V,I+=C,ee.pos=I,I+=V+W,u[n]=ee,Y(s[n+1])}var $=I/2+r.fontMetrics().axisHeight,be=e.cols||[],he=[],le,Ee,Ce=[];if(e.tags&&e.tags.some(kr=>kr))for(n=0;n<a;++n){var ue=u[n],_e=ue.pos-$,w=e.tags[n],Te=void 0;w===!0?Te=T.makeSpan(["eqn-num"],[],r):w===!1?Te=T.makeSpan([],[],r):Te=T.makeSpan([],Ke(w,r,!0),r),Te.depth=ue.depth,Te.height=ue.height,Ce.push({type:"elem",elem:Te,shift:_e})}for(i=0,Ee=0;i<o||Ee<be.length;++i,++Ee){for(var Ae=be[Ee]||{},k=!0;Ae.type==="separator";){if(k||(le=T.makeSpan(["arraycolsep"],[]),le.style.width=H(r.fontMetrics().doubleRuleSep),he.push(le)),Ae.separator==="|"||Ae.separator===":"){var Qe=Ae.separator==="|"?"solid":"dashed",it=T.makeSpan(["vertical-separator"],[],r);it.style.height=H(I),it.style.borderRightWidth=H(d),it.style.borderRightStyle=Qe,it.style.margin="0 "+H(-d/2);var Ue=I-$;Ue&&(it.style.verticalAlign=H(-Ue)),he.push(it)}else throw new F("Invalid separator type: "+Ae.separator);Ee++,Ae=be[Ee]||{},k=!1}if(!(i>=o)){var ft=void 0;(i>0||e.hskipBeforeAndAfter)&&(ft=ie.deflt(Ae.pregap,b),ft!==0&&(le=T.makeSpan(["arraycolsep"],[]),le.style.width=H(ft),he.push(le)));var et=[];for(n=0;n<a;++n){var Ct=u[n],at=Ct[i];if(at){var wr=Ct.pos-$;at.depth=Ct.depth,at.height=Ct.height,et.push({type:"elem",elem:at,shift:wr})}}et=T.makeVList({positionType:"individualShift",children:et},r),et=T.makeSpan(["col-align-"+(Ae.align||"c")],[et]),he.push(et),(i<o-1||e.hskipBeforeAndAfter)&&(ft=ie.deflt(Ae.postgap,b),ft!==0&&(le=T.makeSpan(["arraycolsep"],[]),le.style.width=H(ft),he.push(le)))}}if(u=T.makeSpan(["mtable"],he),h.length>0){for(var dn=T.makeLineSpan("hline",r,d),mn=T.makeLineSpan("hdashline",r,d),Or=[{type:"elem",elem:u,shift:0}];h.length>0;){var Lr=h.pop(),Dr=Lr.pos-$;Lr.isDashed?Or.push({type:"elem",elem:mn,shift:Dr}):Or.push({type:"elem",elem:dn,shift:Dr})}u=T.makeVList({positionType:"individualShift",children:Or},r)}if(Ce.length===0)return T.makeSpan(["mord"],[u],r);var xr=T.makeVList({positionType:"individualShift",children:Ce},r);return xr=T.makeSpan(["tag"],[xr],r),T.makeFragment([u,xr])},Eh={c:"center ",l:"left ",r:"right "},Wt=function(e,r){for(var n=[],i=new D.MathNode("mtd",[],["mtr-glue"]),a=new D.MathNode("mtd",[],["mml-eqn-num"]),s=0;s<e.body.length;s++){for(var o=e.body[s],u=[],h=0;h<o.length;h++)u.push(new D.MathNode("mtd",[Re(o[h],r)]));e.tags&&e.tags[s]&&(u.unshift(i),u.push(i),e.leqno?u.unshift(a):u.push(a)),n.push(new D.MathNode("mtr",u))}var d=new D.MathNode("mtable",n),p=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);d.setAttribute("rowspacing",H(p));var b="",f="";if(e.cols&&e.cols.length>0){var z=e.cols,E="",O=!1,A=0,_=z.length;z[0].type==="separator"&&(b+="top ",A=1),z[z.length-1].type==="separator"&&(b+="bottom ",_-=1);for(var I=A;I<_;I++)z[I].type==="align"?(f+=Eh[z[I].align],O&&(E+="none "),O=!0):z[I].type==="separator"&&O&&(E+=z[I].separator==="|"?"solid ":"dashed ",O=!1);d.setAttribute("columnalign",f.trim()),/[sd]/.test(E)&&d.setAttribute("columnlines",E.trim())}if(e.colSeparationType==="align"){for(var Y=e.cols||[],G="",C=1;C<Y.length;C++)G+=C%2?"0em ":"1em ";d.setAttribute("columnspacing",G.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?d.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?d.setAttribute("columnspacing","0.5em"):d.setAttribute("columnspacing","1em");var V="",ee=e.hLinesBeforeRow;b+=ee[0].length>0?"left ":"",b+=ee[ee.length-1].length>0?"right ":"";for(var j=1;j<ee.length-1;j++)V+=ee[j].length===0?"none ":ee[j][0]?"dashed ":"solid ";return/[sd]/.test(V)&&d.setAttribute("rowlines",V.trim()),b!==""&&(d=new D.MathNode("menclose",[d]),d.setAttribute("notation",b.trim())),e.arraystretch&&e.arraystretch<1&&(d=new D.MathNode("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},Us=function(e,r){e.envName.indexOf("ed")===-1&&jn(e);var n=[],i=e.envName.indexOf("at")>-1?"alignat":"align",a=e.envName==="split",s=vr(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:na(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),o,u=0,h={type:"ordgroup",mode:e.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var d="",p=0;p<r[0].body.length;p++){var b=ge(r[0].body[p],"textord");d+=b.text}o=Number(d),u=o*2}var f=!u;s.body.forEach(function(A){for(var _=1;_<A.length;_+=2){var I=ge(A[_],"styling"),Y=ge(I.body[0],"ordgroup");Y.body.unshift(h)}if(f)u<A.length&&(u=A.length);else{var G=A.length/2;if(o<G)throw new F("Too many math in a row: "+("expected "+o+", but got "+G),A[0])}});for(var z=0;z<u;++z){var E="r",O=0;z%2===1?E="l":z>0&&f&&(O=1),n[z]={type:"align",align:E,pregap:O,postgap:0}}return s.colSeparationType=f?"align":"alignat",s};Gt({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=Un(e[0]),n=r?[e[0]]:ge(e[0],"ordgroup").body,i=n.map(function(s){var o=Wi(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new F("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return vr(t.parser,a,ia(t.envName))},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,"lcr".indexOf(r)===-1)throw new F("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=vr(t.parser,n,ia(t.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[a],left:e[0],right:e[1],rightColor:void 0}:a},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=vr(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=Un(e[0]),n=r?[e[0]]:ge(e[0],"ordgroup").body,i=n.map(function(s){var o=Wi(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new F("Unknown column alignment: "+u,s)});if(i.length>1)throw new F("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=vr(t.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new F("{subarray} can contain only one column");return a},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=vr(t.parser,e,ia(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Us,htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){ie.contains(["gather","gather*"],t.envName)&&jn(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:na(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return vr(t.parser,e,"display")},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Us,htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){jn(t);var e={autoTag:na(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return vr(t.parser,e,"display")},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["CD"],props:{numArgs:0},handler(t){return jn(t),hh(t.parser)},htmlBuilder:$t,mathmlBuilder:Wt}),g("\\nonumber","\\gdef\\@eqnsw{0}"),g("\\notag","\\nonumber"),K({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new F(t.funcName+" valid only within array environment")}});var Hs=Fs;K({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];if(i.type!=="ordgroup")throw new F("Invalid environment name",i);for(var a="",s=0;s<i.body.length;++s)a+=ge(i.body[s],"textord").text;if(n==="\\begin"){if(!Hs.hasOwnProperty(a))throw new F("No such environment: "+a,i);var o=Hs[a],{args:u,optArgs:h}=r.parseArguments("\\begin{"+a+"}",o),d={mode:r.mode,envName:a,parser:r},p=o.handler(d,u,h);r.expect("\\end",!1);var b=r.nextToken,f=ge(r.parseFunction(),"environment");if(f.name!==a)throw new F("Mismatch: \\begin{"+a+"} matched by \\end{"+f.name+"}",b);return p}return{type:"environment",mode:r.mode,name:a,nameGroup:i}}});var Gs=(t,e)=>{var r=t.font,n=e.withFont(r);return ze(t.body,n)},$s=(t,e)=>{var r=t.font,n=e.withFont(r);return Re(t.body,n)},Ws={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};K({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=Pn(e[0]),a=n;return a in Ws&&(a=Ws[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:Gs,mathmlBuilder:$s}),K({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:r}=t,n=e[0],i=ie.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:Gn(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:i}}}),K({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n,breakOnTokenText:i}=t,{mode:a}=r,s=r.parseExpression(!0,i),o="math"+n.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:Gs,mathmlBuilder:$s});var js=(t,e)=>{var r=e;return t==="display"?r=r.id>=se.SCRIPT.id?r.text():se.DISPLAY:t==="text"&&r.size===se.DISPLAY.size?r=se.TEXT:t==="script"?r=se.SCRIPT:t==="scriptscript"&&(r=se.SCRIPTSCRIPT),r},aa=(t,e)=>{var r=js(t.size,e.style),n=r.fracNum(),i=r.fracDen(),a;a=e.havingStyle(n);var s=ze(t.numer,a,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,u=3.5/e.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<u?u:s.depth}a=e.havingStyle(i);var h=ze(t.denom,a,e),d,p,b;t.hasBarLine?(t.barSize?(p=Fe(t.barSize,e),d=T.makeLineSpan("frac-line",e,p)):d=T.makeLineSpan("frac-line",e),p=d.height,b=d.height):(d=null,p=0,b=e.fontMetrics().defaultRuleThickness);var f,z,E;r.size===se.DISPLAY.size||t.size==="display"?(f=e.fontMetrics().num1,p>0?z=3*b:z=7*b,E=e.fontMetrics().denom1):(p>0?(f=e.fontMetrics().num2,z=b):(f=e.fontMetrics().num3,z=3*b),E=e.fontMetrics().denom2);var O;if(d){var _=e.fontMetrics().axisHeight;f-s.depth-(_+.5*p)<z&&(f+=z-(f-s.depth-(_+.5*p))),_-.5*p-(h.height-E)<z&&(E+=z-(_-.5*p-(h.height-E)));var I=-(_-.5*p);O=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:E},{type:"elem",elem:d,shift:I},{type:"elem",elem:s,shift:-f}]},e)}else{var A=f-s.depth-(h.height-E);A<z&&(f+=.5*(z-A),E+=.5*(z-A)),O=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:E},{type:"elem",elem:s,shift:-f}]},e)}a=e.havingStyle(r),O.height*=a.sizeMultiplier/e.sizeMultiplier,O.depth*=a.sizeMultiplier/e.sizeMultiplier;var Y;r.size===se.DISPLAY.size?Y=e.fontMetrics().delim1:r.size===se.SCRIPTSCRIPT.size?Y=e.havingStyle(se.SCRIPT).fontMetrics().delim2:Y=e.fontMetrics().delim2;var G,C;return t.leftDelim==null?G=sn(e,["mopen"]):G=nr.customSizedDelim(t.leftDelim,Y,!0,e.havingStyle(r),t.mode,["mopen"]),t.continued?C=T.makeSpan([]):t.rightDelim==null?C=sn(e,["mclose"]):C=nr.customSizedDelim(t.rightDelim,Y,!0,e.havingStyle(r),t.mode,["mclose"]),T.makeSpan(["mord"].concat(a.sizingClasses(e)),[G,T.makeSpan(["mfrac"],[O]),C],e)},sa=(t,e)=>{var r=new D.MathNode("mfrac",[Re(t.numer,e),Re(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=Fe(t.barSize,e);r.setAttribute("linethickness",H(n))}var i=js(t.size,e.style);if(i.size!==e.style.size){r=new D.MathNode("mstyle",[r]);var a=i.size===se.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",a),r.setAttribute("scriptlevel","0")}if(t.leftDelim!=null||t.rightDelim!=null){var s=[];if(t.leftDelim!=null){var o=new D.MathNode("mo",[new D.TextNode(t.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(r),t.rightDelim!=null){var u=new D.MathNode("mo",[new D.TextNode(t.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return Gi(s)}return r};K({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1],s,o=null,u=null,h="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:h,barSize:null}},htmlBuilder:aa,mathmlBuilder:sa}),K({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),K({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:n}}});var Vs=["display","text","script","scriptscript"],Xs=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};K({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:r}=t,n=e[4],i=e[5],a=Pn(e[0]),s=a.type==="atom"&&a.family==="open"?Xs(a.text):null,o=Pn(e[1]),u=o.type==="atom"&&o.family==="close"?Xs(o.text):null,h=ge(e[2],"size"),d,p=null;h.isBlank?d=!0:(p=h.value,d=p.number>0);var b="auto",f=e[3];if(f.type==="ordgroup"){if(f.body.length>0){var z=ge(f.body[0],"textord");b=Vs[Number(z.text)]}}else f=ge(f,"textord"),b=Vs[Number(f.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:d,barSize:p,leftDelim:s,rightDelim:u,size:b}},htmlBuilder:aa,mathmlBuilder:sa}),K({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:r,funcName:n,token:i}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:ge(e[0],"size").value,token:i}}}),K({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=rc(ge(e[1],"infix").size),s=e[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:aa,mathmlBuilder:sa});var Ks=(t,e)=>{var r=e.style,n,i;t.type==="supsub"?(n=t.sup?ze(t.sup,e.havingStyle(r.sup()),e):ze(t.sub,e.havingStyle(r.sub()),e),i=ge(t.base,"horizBrace")):i=ge(t,"horizBrace");var a=ze(i.base,e.havingBaseStyle(se.DISPLAY)),s=rr.svgSpan(i,e),o;if(i.isOver?(o=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},e),o.children[0].children[0].children[1].classes.push("svg-align")):(o=T.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},e),o.children[0].children[0].children[0].classes.push("svg-align")),n){var u=T.makeSpan(["mord",i.isOver?"mover":"munder"],[o],e);i.isOver?o=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]},e):o=T.makeVList({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]},e)}return T.makeSpan(["mord",i.isOver?"mover":"munder"],[o],e)},Th=(t,e)=>{var r=rr.mathMLnode(t.label);return new D.MathNode(t.isOver?"mover":"munder",[Re(t.base,e),r])};K({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:Ks,mathmlBuilder:Th}),K({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[1],i=ge(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:He(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=Ke(t.body,e,!1);return T.makeAnchor(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=br(t.body,e);return r instanceof At||(r=new At("mrow",[r])),r.setAttribute("href",t.href),r}}),K({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=ge(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<n.length;a++){var s=n[a];s==="~"&&(s="\\textasciitilde"),i.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:He(o)}}}),K({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(t,e){var{parser:r}=t;return{type:"hbox",mode:r.mode,body:He(e[0])}},htmlBuilder(t,e){var r=Ke(t.body,e,!1);return T.makeFragment(r)},mathmlBuilder(t,e){return new D.MathNode("mrow",pt(t.body,e))}}),K({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n,token:i}=t,a=ge(e[0],"raw").string,s=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(n){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var h=a.split(","),d=0;d<h.length;d++){var p=h[d].split("=");if(p.length!==2)throw new F("Error parsing key-value for \\htmlData");u["data-"+p[0].trim()]=p[1].trim()}o={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(o)?{type:"html",mode:r.mode,attributes:u,body:He(s)}:r.formatUnsupportedCmd(n)},htmlBuilder:(t,e)=>{var r=Ke(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var i=T.makeSpan(n,r,e);for(var a in t.attributes)a!=="class"&&t.attributes.hasOwnProperty(a)&&i.setAttribute(a,t.attributes[a]);return i},mathmlBuilder:(t,e)=>br(t.body,e)}),K({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"htmlmathml",mode:r.mode,html:He(e[0]),mathml:He(e[1])}},htmlBuilder:(t,e)=>{var r=Ke(t.html,e,!1);return T.makeFragment(r)},mathmlBuilder:(t,e)=>br(t.mathml,e)});var oa=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new F("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!Z0(n))throw new F("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};K({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,r)=>{var{parser:n}=t,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var u=ge(r[0],"raw").string,h=u.split(","),d=0;d<h.length;d++){var p=h[d].split("=");if(p.length===2){var b=p[1].trim();switch(p[0].trim()){case"alt":o=b;break;case"width":i=oa(b);break;case"height":a=oa(b);break;case"totalheight":s=oa(b);break;default:throw new F("Invalid key: '"+p[0]+"' in \\includegraphics.")}}}var f=ge(e[0],"url").url;return o===""&&(o=f,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:f})?{type:"includegraphics",mode:n.mode,alt:o,width:i,height:a,totalheight:s,src:f}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var r=Fe(t.height,e),n=0;t.totalheight.number>0&&(n=Fe(t.totalheight,e)-r);var i=0;t.width.number>0&&(i=Fe(t.width,e));var a={height:H(r+n)};i>0&&(a.width=H(i)),n>0&&(a.verticalAlign=H(-n));var s=new Tc(t.src,t.alt,a);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new D.MathNode("mglyph",[]);r.setAttribute("alt",t.alt);var n=Fe(t.height,e),i=0;if(t.totalheight.number>0&&(i=Fe(t.totalheight,e)-n,r.setAttribute("valign",H(-i))),r.setAttribute("height",H(n+i)),t.width.number>0){var a=Fe(t.width,e);r.setAttribute("width",H(a))}return r.setAttribute("src",t.src),r}}),K({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=ge(e[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(t,e){return T.makeGlue(t.dimension,e)},mathmlBuilder(t,e){var r=Fe(t.dimension,e);return new D.SpaceNode(r)}}),K({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=T.makeSpan([],[ze(t.body,e)]),r=T.makeSpan(["inner"],[r],e)):r=T.makeSpan(["inner"],[ze(t.body,e)]);var n=T.makeSpan(["fix"],[]),i=T.makeSpan([t.alignment],[r,n],e),a=T.makeSpan(["strut"]);return a.style.height=H(i.height+i.depth),i.depth&&(a.style.verticalAlign=H(-i.depth)),i.children.unshift(a),i=T.makeSpan(["thinbox"],[i],e),T.makeSpan(["mord","vbox"],[i],e)},mathmlBuilder:(t,e)=>{var r=new D.MathNode("mpadded",[Re(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),K({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:n}=t,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:s}}}),K({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new F("Mismatched "+t.funcName)}});var Ys=(t,e)=>{switch(e.style.size){case se.DISPLAY.size:return t.display;case se.TEXT.size:return t.text;case se.SCRIPT.size:return t.script;case se.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};K({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:He(e[0]),text:He(e[1]),script:He(e[2]),scriptscript:He(e[3])}},htmlBuilder:(t,e)=>{var r=Ys(t,e),n=Ke(r,e,!1);return T.makeFragment(n)},mathmlBuilder:(t,e)=>{var r=Ys(t,e);return br(r,e)}});var Zs=(t,e,r,n,i,a,s)=>{t=T.makeSpan([],[t]);var o=r&&ie.isCharacterBox(r),u,h;if(e){var d=ze(e,n.havingStyle(i.sup()),n);h={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var p=ze(r,n.havingStyle(i.sub()),n);u={elem:p,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-p.height)}}var b;if(h&&u){var f=n.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+t.depth+s;b=T.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:H(-a)},{type:"kern",size:u.kern},{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:H(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(u){var z=t.height-s;b=T.makeVList({positionType:"top",positionData:z,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:H(-a)},{type:"kern",size:u.kern},{type:"elem",elem:t}]},n)}else if(h){var E=t.depth+s;b=T.makeVList({positionType:"bottom",positionData:E,children:[{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:H(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return t;var O=[b];if(u&&a!==0&&!o){var A=T.makeSpan(["mspace"],[],n);A.style.marginRight=H(a),O.unshift(A)}return T.makeSpan(["mop","op-limits"],O,n)},Js=["\\smallint"],Zr=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=ge(t.base,"op"),i=!0):a=ge(t,"op");var s=e.style,o=!1;s.size===se.DISPLAY.size&&a.symbol&&!ie.contains(Js,a.name)&&(o=!0);var u;if(a.symbol){var h=o?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),u=T.makeSymbol(a.name,h,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var p=u.italic,b=T.staticSvg(d+"Size"+(o?"2":"1"),e);u=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:b,shift:o?.08:0}]},e),a.name="\\"+d,u.classes.unshift("mop"),u.italic=p}}else if(a.body){var f=Ke(a.body,e,!0);f.length===1&&f[0]instanceof Tt?(u=f[0],u.classes[0]="mop"):u=T.makeSpan(["mop"],f,e)}else{for(var z=[],E=1;E<a.name.length;E++)z.push(T.mathsym(a.name[E],a.mode,e));u=T.makeSpan(["mop"],z,e)}var O=0,A=0;return(u instanceof Tt||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift&&(O=(u.height-u.depth)/2-e.fontMetrics().axisHeight,A=u.italic),i?Zs(u,r,n,e,s,A,O):(O&&(u.style.position="relative",u.style.top=H(O)),u)},cn=(t,e)=>{var r;if(t.symbol)r=new At("mo",[Mt(t.name,t.mode)]),ie.contains(Js,t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new At("mo",pt(t.body,e));else{r=new At("mi",[new on(t.name.slice(1))]);var n=new At("mo",[Mt("","text")]);t.parentIsSupSub?r=new At("mrow",[r,n]):r=fs([r,n])}return r},Ah={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};K({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=n;return i.length===1&&(i=Ah[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Zr,mathmlBuilder:cn}),K({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:He(n)}},htmlBuilder:Zr,mathmlBuilder:cn});var Mh={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};K({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Zr,mathmlBuilder:cn}),K({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Zr,mathmlBuilder:cn}),K({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t,n=r;return n.length===1&&(n=Mh[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Zr,mathmlBuilder:cn});var Qs=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=ge(t.base,"operatorname"),i=!0):a=ge(t,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(p=>{var b=p.text;return typeof b=="string"?{type:"textord",mode:p.mode,text:b}:p}),u=Ke(o,e.withFont("mathrm"),!0),h=0;h<u.length;h++){var d=u[h];d instanceof Tt&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=T.makeSpan(["mop"],u,e)}else s=T.makeSpan(["mop"],[],e);return i?Zs(s,r,n,e,e.style,0,0):s},Ch=(t,e)=>{for(var r=pt(t.body,e.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var a=r[i];if(!(a instanceof D.SpaceNode))if(a instanceof D.MathNode)switch(a.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var s=a.children[0];a.children.length===1&&s instanceof D.TextNode?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(d=>d.toText()).join("");r=[new D.TextNode(o)]}var u=new D.MathNode("mi",r);u.setAttribute("mathvariant","normal");var h=new D.MathNode("mo",[Mt("","text")]);return t.parentIsSupSub?new D.MathNode("mrow",[u,h]):D.newDocumentFragment([u,h])};K({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"operatorname",mode:r.mode,body:He(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Qs,mathmlBuilder:Ch}),g("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Ir({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?T.makeFragment(Ke(t.body,e,!1)):T.makeSpan(["mord"],Ke(t.body,e,!0),e)},mathmlBuilder(t,e){return br(t.body,e,!0)}}),K({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:r}=t,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=ze(t.body,e.havingCrampedStyle()),n=T.makeLineSpan("overline-line",e),i=e.fontMetrics().defaultRuleThickness,a=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]},e);return T.makeSpan(["mord","overline"],[a],e)},mathmlBuilder(t,e){var r=new D.MathNode("mo",[new D.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new D.MathNode("mover",[Re(t.body,e),r]);return n.setAttribute("accent","true"),n}}),K({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"phantom",mode:r.mode,body:He(n)}},htmlBuilder:(t,e)=>{var r=Ke(t.body,e.withPhantom(),!1);return T.makeFragment(r)},mathmlBuilder:(t,e)=>{var r=pt(t.body,e);return new D.MathNode("mphantom",r)}}),K({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=T.makeSpan([],[ze(t.body,e.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},e),T.makeSpan(["mord"],[r],e)},mathmlBuilder:(t,e)=>{var r=pt(He(t.body),e),n=new D.MathNode("mphantom",r),i=new D.MathNode("mpadded",[n]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}}),K({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=T.makeSpan(["inner"],[ze(t.body,e.withPhantom())]),n=T.makeSpan(["fix"],[]);return T.makeSpan(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=pt(He(t.body),e),n=new D.MathNode("mphantom",r),i=new D.MathNode("mpadded",[n]);return i.setAttribute("width","0px"),i}}),K({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t,n=ge(e[0],"size").value,i=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(t,e){var r=ze(t.body,e),n=Fe(t.dy,e);return T.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},e)},mathmlBuilder(t,e){var r=new D.MathNode("mpadded",[Re(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}}),K({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}}),K({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(t,e,r){var{parser:n}=t,i=r[0],a=ge(e[0],"size"),s=ge(e[1],"size");return{type:"rule",mode:n.mode,shift:i&&ge(i,"size").value,width:a.value,height:s.value}},htmlBuilder(t,e){var r=T.makeSpan(["mord","rule"],[],e),n=Fe(t.width,e),i=Fe(t.height,e),a=t.shift?Fe(t.shift,e):0;return r.style.borderRightWidth=H(n),r.style.borderTopWidth=H(i),r.style.bottom=H(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=Fe(t.width,e),n=Fe(t.height,e),i=t.shift?Fe(t.shift,e):0,a=e.color&&e.getColor()||"black",s=new D.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",H(r)),s.setAttribute("height",H(n));var o=new D.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",H(i)):(o.setAttribute("height",H(i)),o.setAttribute("depth",H(-i))),o.setAttribute("voffset",H(i)),o}});function eo(t,e,r){for(var n=Ke(t,e,!1),i=e.sizeMultiplier/r.sizeMultiplier,a=0;a<n.length;a++){var s=n[a].classes.indexOf("sizing");s<0?Array.prototype.push.apply(n[a].classes,e.sizingClasses(r)):n[a].classes[s+1]==="reset-size"+e.size&&(n[a].classes[s+1]="reset-size"+r.size),n[a].height*=i,n[a].depth*=i}return T.makeFragment(n)}var to=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],_h=(t,e)=>{var r=e.havingSize(t.size);return eo(t.body,r,e)};K({type:"sizing",names:to,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:to.indexOf(n)+1,body:a}},htmlBuilder:_h,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=pt(t.body,r),i=new D.MathNode("mstyle",n);return i.setAttribute("mathsize",H(r.sizeMultiplier)),i}}),K({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:n}=t,i=!1,a=!1,s=r[0]&&ge(r[0],"ordgroup");if(s)for(var o="",u=0;u<s.body.length;++u){var h=s.body[u];if(o=h.text,o==="t")i=!0;else if(o==="b")a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var d=e[0];return{type:"smash",mode:n.mode,body:d,smashHeight:i,smashDepth:a}},htmlBuilder:(t,e)=>{var r=T.makeSpan([],[ze(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(t.smashDepth&&(r.depth=0,r.children))for(var i=0;i<r.children.length;i++)r.children[i].depth=0;var a=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},e);return T.makeSpan(["mord"],[a],e)},mathmlBuilder:(t,e)=>{var r=new D.MathNode("mpadded",[Re(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}}),K({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n}=t,i=r[0],a=e[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(t,e){var r=ze(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=T.wrapFragment(r,e);var n=e.fontMetrics(),i=n.defaultRuleThickness,a=i;e.style.id<se.TEXT.id&&(a=e.fontMetrics().xHeight);var s=i+a/4,o=r.height+r.depth+s+i,{span:u,ruleWidth:h,advanceWidth:d}=nr.sqrtImage(o,e),p=u.height-h;p>r.height+r.depth+s&&(s=(s+p-r.height-r.depth)/2);var b=u.height-r.height-s-h;r.style.paddingLeft=H(d);var f=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+b)},{type:"elem",elem:u},{type:"kern",size:h}]},e);if(t.index){var z=e.havingStyle(se.SCRIPTSCRIPT),E=ze(t.index,z,e),O=.6*(f.height-f.depth),A=T.makeVList({positionType:"shift",positionData:-O,children:[{type:"elem",elem:E}]},e),_=T.makeSpan(["root"],[A]);return T.makeSpan(["mord","sqrt"],[_,f],e)}else return T.makeSpan(["mord","sqrt"],[f],e)},mathmlBuilder(t,e){var{body:r,index:n}=t;return n?new D.MathNode("mroot",[Re(r,e),Re(n,e)]):new D.MathNode("msqrt",[Re(r,e)])}});var ro={display:se.DISPLAY,text:se.TEXT,script:se.SCRIPT,scriptscript:se.SCRIPTSCRIPT};K({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(t,e){var r=ro[t.style],n=e.havingStyle(r).withFont("");return eo(t.body,n,e)},mathmlBuilder(t,e){var r=ro[t.style],n=e.havingStyle(r),i=pt(t.body,n),a=new D.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Nh=function(e,r){var n=e.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===se.DISPLAY.size||n.alwaysHandleSupSub);return i?Zr:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===se.DISPLAY.size||n.limits);return a?Qs:null}else{if(n.type==="accent")return ie.isCharacterBox(n.base)?ji:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Ks:null}else return null}else return null};Ir({type:"supsub",htmlBuilder(t,e){var r=Nh(t,e);if(r)return r(t,e);var{base:n,sup:i,sub:a}=t,s=ze(n,e),o,u,h=e.fontMetrics(),d=0,p=0,b=n&&ie.isCharacterBox(n);if(i){var f=e.havingStyle(e.style.sup());o=ze(i,f,e),b||(d=s.height-f.fontMetrics().supDrop*f.sizeMultiplier/e.sizeMultiplier)}if(a){var z=e.havingStyle(e.style.sub());u=ze(a,z,e),b||(p=s.depth+z.fontMetrics().subDrop*z.sizeMultiplier/e.sizeMultiplier)}var E;e.style===se.DISPLAY?E=h.sup1:e.style.cramped?E=h.sup3:E=h.sup2;var O=e.sizeMultiplier,A=H(.5/h.ptPerEm/O),_=null;if(u){var I=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(s instanceof Tt||I)&&(_=H(-s.italic))}var Y;if(o&&u){d=Math.max(d,E,o.depth+.25*h.xHeight),p=Math.max(p,h.sub2);var G=h.defaultRuleThickness,C=4*G;if(d-o.depth-(u.height-p)<C){p=C-(d-o.depth)+u.height;var V=.8*h.xHeight-(d-o.depth);V>0&&(d+=V,p-=V)}var ee=[{type:"elem",elem:u,shift:p,marginRight:A,marginLeft:_},{type:"elem",elem:o,shift:-d,marginRight:A}];Y=T.makeVList({positionType:"individualShift",children:ee},e)}else if(u){p=Math.max(p,h.sub1,u.height-.8*h.xHeight);var j=[{type:"elem",elem:u,marginLeft:_,marginRight:A}];Y=T.makeVList({positionType:"shift",positionData:p,children:j},e)}else if(o)d=Math.max(d,E,o.depth+.25*h.xHeight),Y=T.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:A}]},e);else throw new Error("supsub must have either sup or sub.");var M=Ui(s,"right")||"mord";return T.makeSpan([M],[s,T.makeSpan(["msupsub"],[Y])],e)},mathmlBuilder(t,e){var r=!1,n,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var a=[Re(t.base,e)];t.sub&&a.push(Re(t.sub,e)),t.sup&&a.push(Re(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var h=t.base;h&&h.type==="op"&&h.limits&&e.style===se.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(e.style===se.DISPLAY||h.limits)?s="munderover":s="msubsup"}else{var u=t.base;u&&u.type==="op"&&u.limits&&(e.style===se.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||e.style===se.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===se.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===se.DISPLAY)?s="mover":s="msup"}return new D.MathNode(s,a)}}),Ir({type:"atom",htmlBuilder(t,e){return T.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new D.MathNode("mo",[Mt(t.text,t.mode)]);if(t.family==="bin"){var n=$i(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var no={mi:"italic",mn:"normal",mtext:"normal"};Ir({type:"mathord",htmlBuilder(t,e){return T.makeOrd(t,e,"mathord")},mathmlBuilder(t,e){var r=new D.MathNode("mi",[Mt(t.text,t.mode,e)]),n=$i(t,e)||"italic";return n!==no[r.type]&&r.setAttribute("mathvariant",n),r}}),Ir({type:"textord",htmlBuilder(t,e){return T.makeOrd(t,e,"textord")},mathmlBuilder(t,e){var r=Mt(t.text,t.mode,e),n=$i(t,e)||"normal",i;return t.mode==="text"?i=new D.MathNode("mtext",[r]):/[0-9]/.test(t.text)?i=new D.MathNode("mn",[r]):t.text==="\\prime"?i=new D.MathNode("mo",[r]):i=new D.MathNode("mi",[r]),n!==no[i.type]&&i.setAttribute("mathvariant",n),i}});var la={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ua={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ir({type:"spacing",htmlBuilder(t,e){if(ua.hasOwnProperty(t.text)){var r=ua[t.text].className||"";if(t.mode==="text"){var n=T.makeOrd(t,e,"textord");return n.classes.push(r),n}else return T.makeSpan(["mspace",r],[T.mathsym(t.text,t.mode,e)],e)}else{if(la.hasOwnProperty(t.text))return T.makeSpan(["mspace",la[t.text]],[],e);throw new F('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(ua.hasOwnProperty(t.text))r=new D.MathNode("mtext",[new D.TextNode(" ")]);else{if(la.hasOwnProperty(t.text))return new D.MathNode("mspace");throw new F('Unknown type of space "'+t.text+'"')}return r}});var io=()=>{var t=new D.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};Ir({type:"tag",mathmlBuilder(t,e){var r=new D.MathNode("mtable",[new D.MathNode("mtr",[io(),new D.MathNode("mtd",[br(t.body,e)]),io(),new D.MathNode("mtd",[br(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var ao={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},so={"\\textbf":"textbf","\\textmd":"textmd"},Bh={"\\textit":"textit","\\textup":"textup"},oo=(t,e)=>{var r=t.font;if(r){if(ao[r])return e.withTextFontFamily(ao[r]);if(so[r])return e.withTextFontWeight(so[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(Bh[r])};K({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"text",mode:r.mode,body:He(i),font:n}},htmlBuilder(t,e){var r=oo(t,e),n=Ke(t.body,r,!0);return T.makeSpan(["mord","text"],n,r)},mathmlBuilder(t,e){var r=oo(t,e);return br(t.body,r)}}),K({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=ze(t.body,e),n=T.makeLineSpan("underline-line",e),i=e.fontMetrics().defaultRuleThickness,a=T.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]},e);return T.makeSpan(["mord","underline"],[a],e)},mathmlBuilder(t,e){var r=new D.MathNode("mo",[new D.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new D.MathNode("munder",[Re(t.body,e),r]);return n.setAttribute("accentunder","true"),n}}),K({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=ze(t.body,e),n=e.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return T.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]},e)},mathmlBuilder(t,e){return new D.MathNode("mpadded",[Re(t.body,e)],["vcenter"])}}),K({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,r){throw new F("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=lo(t),n=[],i=e.havingStyle(e.style.text()),a=0;a<r.length;a++){var s=r[a];s==="~"&&(s="\\textasciitilde"),n.push(T.makeSymbol(s,"Typewriter-Regular",t.mode,i,["mord","texttt"]))}return T.makeSpan(["mord","text"].concat(i.sizingClasses(e)),T.tryCombineChars(n),i)},mathmlBuilder(t,e){var r=new D.TextNode(lo(t)),n=new D.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var lo=t=>t.body.replace(/ /g,t.star?"␣":" "),yr=ds,uo=`[ \r
|
|
260
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class an{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return ie.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),r=0;r<this.children.length;r++)e.appendChild(this.children[r].toNode());return e}toMarkup(){for(var e="",r=0;r<this.children.length;r++)e+=this.children[r].toMarkup();return e}toText(){var e=r=>r.toText();return this.children.map(e).join("")}}var Ht={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Cn={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},X0={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function kc(t,e){Ht[t]=e}function Ni(t,e,r){if(!Ht[e])throw new Error("Font metrics not found for font: "+e+".");var n=t.charCodeAt(0),i=Ht[e][n];if(!i&&t[0]in X0&&(n=X0[t[0]].charCodeAt(0),i=Ht[e][n]),!i&&r==="text"&&j0(n)&&(i=Ht[e][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Bi={};function Sc(t){var e;if(t>=5?e=0:t>=3?e=1:e=2,!Bi[e]){var r=Bi[e]={cssEmPerMu:Cn.quad[e]/18};for(var n in Cn)Cn.hasOwnProperty(n)&&(r[n]=Cn[n][e])}return Bi[e]}var zc=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],K0=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Y0=function(e,r){return r.size<2?e:zc[e-1][r.size-1]};class Jt{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||Jt.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=K0[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return new Jt(r)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Y0(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:K0[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=Y0(Jt.BASESIZE,e);return this.size===r&&this.textSize===Jt.BASESIZE&&this.style===e?this:this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Jt.BASESIZE?["sizing","reset-size"+this.size,"size"+Jt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Sc(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Jt.BASESIZE=6;var Ri={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Ec={ex:!0,em:!0,mu:!0},Z0=function(e){return typeof e!="string"&&(e=e.unit),e in Ri||e in Ec||e==="ex"},Fe=function(e,r){var n;if(e.unit in Ri)n=Ri[e.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(e.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var i;if(r.style.isTight()?i=r.havingStyle(r.style.text()):i=r,e.unit==="ex")n=i.fontMetrics().xHeight;else if(e.unit==="em")n=i.fontMetrics().quad;else throw new F("Invalid unit: '"+e.unit+"'");i!==r&&(n*=i.sizeMultiplier/r.sizeMultiplier)}return Math.min(e.number*n,r.maxSize)},H=function(e){return+e.toFixed(4)+"em"},pr=function(e){return e.filter(r=>r).join(" ")},J0=function(e,r,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var i=r.getColor();i&&(this.style.color=i)}},Q0=function(e){var r=document.createElement(e);r.className=pr(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&r.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r},es=function(e){var r="<"+e;this.classes.length&&(r+=' class="'+ie.escape(pr(this.classes))+'"');var n="";for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=ie.hyphenate(i)+":"+this.style[i]+";");n&&(r+=' style="'+ie.escape(n)+'"');for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&(r+=" "+a+'="'+ie.escape(this.attributes[a])+'"');r+=">";for(var s=0;s<this.children.length;s++)r+=this.children[s].toMarkup();return r+="</"+e+">",r};class sn{constructor(e,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,J0.call(this,e,n,i),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return ie.contains(this.classes,e)}toNode(){return Q0.call(this,"span")}toMarkup(){return es.call(this,"span")}}class Ii{constructor(e,r,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,J0.call(this,r,i),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return ie.contains(this.classes,e)}toNode(){return Q0.call(this,"a")}toMarkup(){return es.call(this,"a")}}class Tc{constructor(e,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return ie.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(e.style[r]=this.style[r]);return e}toMarkup(){var e='<img src="'+ie.escape(this.src)+'"'+(' alt="'+ie.escape(this.alt)+'"'),r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=ie.hyphenate(n)+":"+this.style[n]+";");return r&&(e+=' style="'+ie.escape(r)+'"'),e+="'/>",e}}var Ac={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Tt{constructor(e,r,n,i,a,s,o,u){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=r||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=s||0,this.classes=o||[],this.style=u||{},this.maxFontSize=0;var h=hc(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Ac[this.text])}hasClass(e){return ie.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=H(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=pr(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(e),r):e}toMarkup(){var e=!1,r="<span";this.classes.length&&(e=!0,r+=' class="',r+=ie.escape(pr(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=ie.hyphenate(i)+":"+this.style[i]+";");n&&(e=!0,r+=' style="'+ie.escape(n)+'"');var a=ie.escape(this.text);return e?(r+=">",r+=a,r+="</span>",r):a}}class Qt{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(e+=" "+r+'="'+ie.escape(this.attributes[r])+'"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>",e}}class fr{constructor(e,r){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=r}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",V0[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+ie.escape(this.alternate)+'"/>':'<path d="'+ie.escape(V0[this.pathName])+'"/>'}}class Oi{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var e="<line";for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(e+=" "+r+'="'+ie.escape(this.attributes[r])+'"');return e+="/>",e}}function ts(t){if(t instanceof Tt)return t;throw new Error("Expected symbolNode but got "+String(t)+".")}function Mc(t){if(t instanceof sn)return t;throw new Error("Expected span<HtmlDomNode> but got "+String(t)+".")}var Cc={bin:1,close:1,inner:1,open:1,punct:1,rel:1},_c={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ie={math:{},text:{}};function l(t,e,r,n,i,a){Ie[t][i]={font:e,group:r,replace:n},a&&n&&(Ie[t][n]=Ie[t][i])}var c="math",L="text",m="main",v="ams",De="accent-token",J="bin",ut="close",Yr="inner",oe="mathord",je="op-token",vt="open",_n="punct",y="rel",er="spacing",S="textord";l(c,m,y,"≡","\\equiv",!0),l(c,m,y,"≺","\\prec",!0),l(c,m,y,"≻","\\succ",!0),l(c,m,y,"∼","\\sim",!0),l(c,m,y,"⊥","\\perp"),l(c,m,y,"⪯","\\preceq",!0),l(c,m,y,"⪰","\\succeq",!0),l(c,m,y,"≃","\\simeq",!0),l(c,m,y,"∣","\\mid",!0),l(c,m,y,"≪","\\ll",!0),l(c,m,y,"≫","\\gg",!0),l(c,m,y,"≍","\\asymp",!0),l(c,m,y,"∥","\\parallel"),l(c,m,y,"⋈","\\bowtie",!0),l(c,m,y,"⌣","\\smile",!0),l(c,m,y,"⊑","\\sqsubseteq",!0),l(c,m,y,"⊒","\\sqsupseteq",!0),l(c,m,y,"≐","\\doteq",!0),l(c,m,y,"⌢","\\frown",!0),l(c,m,y,"∋","\\ni",!0),l(c,m,y,"∝","\\propto",!0),l(c,m,y,"⊢","\\vdash",!0),l(c,m,y,"⊣","\\dashv",!0),l(c,m,y,"∋","\\owns"),l(c,m,_n,".","\\ldotp"),l(c,m,_n,"⋅","\\cdotp"),l(c,m,S,"#","\\#"),l(L,m,S,"#","\\#"),l(c,m,S,"&","\\&"),l(L,m,S,"&","\\&"),l(c,m,S,"ℵ","\\aleph",!0),l(c,m,S,"∀","\\forall",!0),l(c,m,S,"ℏ","\\hbar",!0),l(c,m,S,"∃","\\exists",!0),l(c,m,S,"∇","\\nabla",!0),l(c,m,S,"♭","\\flat",!0),l(c,m,S,"ℓ","\\ell",!0),l(c,m,S,"♮","\\natural",!0),l(c,m,S,"♣","\\clubsuit",!0),l(c,m,S,"℘","\\wp",!0),l(c,m,S,"♯","\\sharp",!0),l(c,m,S,"♢","\\diamondsuit",!0),l(c,m,S,"ℜ","\\Re",!0),l(c,m,S,"♡","\\heartsuit",!0),l(c,m,S,"ℑ","\\Im",!0),l(c,m,S,"♠","\\spadesuit",!0),l(c,m,S,"§","\\S",!0),l(L,m,S,"§","\\S"),l(c,m,S,"¶","\\P",!0),l(L,m,S,"¶","\\P"),l(c,m,S,"†","\\dag"),l(L,m,S,"†","\\dag"),l(L,m,S,"†","\\textdagger"),l(c,m,S,"‡","\\ddag"),l(L,m,S,"‡","\\ddag"),l(L,m,S,"‡","\\textdaggerdbl"),l(c,m,ut,"⎱","\\rmoustache",!0),l(c,m,vt,"⎰","\\lmoustache",!0),l(c,m,ut,"⟯","\\rgroup",!0),l(c,m,vt,"⟮","\\lgroup",!0),l(c,m,J,"∓","\\mp",!0),l(c,m,J,"⊖","\\ominus",!0),l(c,m,J,"⊎","\\uplus",!0),l(c,m,J,"⊓","\\sqcap",!0),l(c,m,J,"∗","\\ast"),l(c,m,J,"⊔","\\sqcup",!0),l(c,m,J,"◯","\\bigcirc",!0),l(c,m,J,"∙","\\bullet",!0),l(c,m,J,"‡","\\ddagger"),l(c,m,J,"≀","\\wr",!0),l(c,m,J,"⨿","\\amalg"),l(c,m,J,"&","\\And"),l(c,m,y,"⟵","\\longleftarrow",!0),l(c,m,y,"⇐","\\Leftarrow",!0),l(c,m,y,"⟸","\\Longleftarrow",!0),l(c,m,y,"⟶","\\longrightarrow",!0),l(c,m,y,"⇒","\\Rightarrow",!0),l(c,m,y,"⟹","\\Longrightarrow",!0),l(c,m,y,"↔","\\leftrightarrow",!0),l(c,m,y,"⟷","\\longleftrightarrow",!0),l(c,m,y,"⇔","\\Leftrightarrow",!0),l(c,m,y,"⟺","\\Longleftrightarrow",!0),l(c,m,y,"↦","\\mapsto",!0),l(c,m,y,"⟼","\\longmapsto",!0),l(c,m,y,"↗","\\nearrow",!0),l(c,m,y,"↩","\\hookleftarrow",!0),l(c,m,y,"↪","\\hookrightarrow",!0),l(c,m,y,"↘","\\searrow",!0),l(c,m,y,"↼","\\leftharpoonup",!0),l(c,m,y,"⇀","\\rightharpoonup",!0),l(c,m,y,"↙","\\swarrow",!0),l(c,m,y,"↽","\\leftharpoondown",!0),l(c,m,y,"⇁","\\rightharpoondown",!0),l(c,m,y,"↖","\\nwarrow",!0),l(c,m,y,"⇌","\\rightleftharpoons",!0),l(c,v,y,"≮","\\nless",!0),l(c,v,y,"","\\@nleqslant"),l(c,v,y,"","\\@nleqq"),l(c,v,y,"⪇","\\lneq",!0),l(c,v,y,"≨","\\lneqq",!0),l(c,v,y,"","\\@lvertneqq"),l(c,v,y,"⋦","\\lnsim",!0),l(c,v,y,"⪉","\\lnapprox",!0),l(c,v,y,"⊀","\\nprec",!0),l(c,v,y,"⋠","\\npreceq",!0),l(c,v,y,"⋨","\\precnsim",!0),l(c,v,y,"⪹","\\precnapprox",!0),l(c,v,y,"≁","\\nsim",!0),l(c,v,y,"","\\@nshortmid"),l(c,v,y,"∤","\\nmid",!0),l(c,v,y,"⊬","\\nvdash",!0),l(c,v,y,"⊭","\\nvDash",!0),l(c,v,y,"⋪","\\ntriangleleft"),l(c,v,y,"⋬","\\ntrianglelefteq",!0),l(c,v,y,"⊊","\\subsetneq",!0),l(c,v,y,"","\\@varsubsetneq"),l(c,v,y,"⫋","\\subsetneqq",!0),l(c,v,y,"","\\@varsubsetneqq"),l(c,v,y,"≯","\\ngtr",!0),l(c,v,y,"","\\@ngeqslant"),l(c,v,y,"","\\@ngeqq"),l(c,v,y,"⪈","\\gneq",!0),l(c,v,y,"≩","\\gneqq",!0),l(c,v,y,"","\\@gvertneqq"),l(c,v,y,"⋧","\\gnsim",!0),l(c,v,y,"⪊","\\gnapprox",!0),l(c,v,y,"⊁","\\nsucc",!0),l(c,v,y,"⋡","\\nsucceq",!0),l(c,v,y,"⋩","\\succnsim",!0),l(c,v,y,"⪺","\\succnapprox",!0),l(c,v,y,"≆","\\ncong",!0),l(c,v,y,"","\\@nshortparallel"),l(c,v,y,"∦","\\nparallel",!0),l(c,v,y,"⊯","\\nVDash",!0),l(c,v,y,"⋫","\\ntriangleright"),l(c,v,y,"⋭","\\ntrianglerighteq",!0),l(c,v,y,"","\\@nsupseteqq"),l(c,v,y,"⊋","\\supsetneq",!0),l(c,v,y,"","\\@varsupsetneq"),l(c,v,y,"⫌","\\supsetneqq",!0),l(c,v,y,"","\\@varsupsetneqq"),l(c,v,y,"⊮","\\nVdash",!0),l(c,v,y,"⪵","\\precneqq",!0),l(c,v,y,"⪶","\\succneqq",!0),l(c,v,y,"","\\@nsubseteqq"),l(c,v,J,"⊴","\\unlhd"),l(c,v,J,"⊵","\\unrhd"),l(c,v,y,"↚","\\nleftarrow",!0),l(c,v,y,"↛","\\nrightarrow",!0),l(c,v,y,"⇍","\\nLeftarrow",!0),l(c,v,y,"⇏","\\nRightarrow",!0),l(c,v,y,"↮","\\nleftrightarrow",!0),l(c,v,y,"⇎","\\nLeftrightarrow",!0),l(c,v,y,"△","\\vartriangle"),l(c,v,S,"ℏ","\\hslash"),l(c,v,S,"▽","\\triangledown"),l(c,v,S,"◊","\\lozenge"),l(c,v,S,"Ⓢ","\\circledS"),l(c,v,S,"®","\\circledR"),l(L,v,S,"®","\\circledR"),l(c,v,S,"∡","\\measuredangle",!0),l(c,v,S,"∄","\\nexists"),l(c,v,S,"℧","\\mho"),l(c,v,S,"Ⅎ","\\Finv",!0),l(c,v,S,"⅁","\\Game",!0),l(c,v,S,"‵","\\backprime"),l(c,v,S,"▲","\\blacktriangle"),l(c,v,S,"▼","\\blacktriangledown"),l(c,v,S,"■","\\blacksquare"),l(c,v,S,"⧫","\\blacklozenge"),l(c,v,S,"★","\\bigstar"),l(c,v,S,"∢","\\sphericalangle",!0),l(c,v,S,"∁","\\complement",!0),l(c,v,S,"ð","\\eth",!0),l(L,m,S,"ð","ð"),l(c,v,S,"╱","\\diagup"),l(c,v,S,"╲","\\diagdown"),l(c,v,S,"□","\\square"),l(c,v,S,"□","\\Box"),l(c,v,S,"◊","\\Diamond"),l(c,v,S,"¥","\\yen",!0),l(L,v,S,"¥","\\yen",!0),l(c,v,S,"✓","\\checkmark",!0),l(L,v,S,"✓","\\checkmark"),l(c,v,S,"ℶ","\\beth",!0),l(c,v,S,"ℸ","\\daleth",!0),l(c,v,S,"ℷ","\\gimel",!0),l(c,v,S,"ϝ","\\digamma",!0),l(c,v,S,"ϰ","\\varkappa"),l(c,v,vt,"┌","\\@ulcorner",!0),l(c,v,ut,"┐","\\@urcorner",!0),l(c,v,vt,"└","\\@llcorner",!0),l(c,v,ut,"┘","\\@lrcorner",!0),l(c,v,y,"≦","\\leqq",!0),l(c,v,y,"⩽","\\leqslant",!0),l(c,v,y,"⪕","\\eqslantless",!0),l(c,v,y,"≲","\\lesssim",!0),l(c,v,y,"⪅","\\lessapprox",!0),l(c,v,y,"≊","\\approxeq",!0),l(c,v,J,"⋖","\\lessdot"),l(c,v,y,"⋘","\\lll",!0),l(c,v,y,"≶","\\lessgtr",!0),l(c,v,y,"⋚","\\lesseqgtr",!0),l(c,v,y,"⪋","\\lesseqqgtr",!0),l(c,v,y,"≑","\\doteqdot"),l(c,v,y,"≓","\\risingdotseq",!0),l(c,v,y,"≒","\\fallingdotseq",!0),l(c,v,y,"∽","\\backsim",!0),l(c,v,y,"⋍","\\backsimeq",!0),l(c,v,y,"⫅","\\subseteqq",!0),l(c,v,y,"⋐","\\Subset",!0),l(c,v,y,"⊏","\\sqsubset",!0),l(c,v,y,"≼","\\preccurlyeq",!0),l(c,v,y,"⋞","\\curlyeqprec",!0),l(c,v,y,"≾","\\precsim",!0),l(c,v,y,"⪷","\\precapprox",!0),l(c,v,y,"⊲","\\vartriangleleft"),l(c,v,y,"⊴","\\trianglelefteq"),l(c,v,y,"⊨","\\vDash",!0),l(c,v,y,"⊪","\\Vvdash",!0),l(c,v,y,"⌣","\\smallsmile"),l(c,v,y,"⌢","\\smallfrown"),l(c,v,y,"≏","\\bumpeq",!0),l(c,v,y,"≎","\\Bumpeq",!0),l(c,v,y,"≧","\\geqq",!0),l(c,v,y,"⩾","\\geqslant",!0),l(c,v,y,"⪖","\\eqslantgtr",!0),l(c,v,y,"≳","\\gtrsim",!0),l(c,v,y,"⪆","\\gtrapprox",!0),l(c,v,J,"⋗","\\gtrdot"),l(c,v,y,"⋙","\\ggg",!0),l(c,v,y,"≷","\\gtrless",!0),l(c,v,y,"⋛","\\gtreqless",!0),l(c,v,y,"⪌","\\gtreqqless",!0),l(c,v,y,"≖","\\eqcirc",!0),l(c,v,y,"≗","\\circeq",!0),l(c,v,y,"≜","\\triangleq",!0),l(c,v,y,"∼","\\thicksim"),l(c,v,y,"≈","\\thickapprox"),l(c,v,y,"⫆","\\supseteqq",!0),l(c,v,y,"⋑","\\Supset",!0),l(c,v,y,"⊐","\\sqsupset",!0),l(c,v,y,"≽","\\succcurlyeq",!0),l(c,v,y,"⋟","\\curlyeqsucc",!0),l(c,v,y,"≿","\\succsim",!0),l(c,v,y,"⪸","\\succapprox",!0),l(c,v,y,"⊳","\\vartriangleright"),l(c,v,y,"⊵","\\trianglerighteq"),l(c,v,y,"⊩","\\Vdash",!0),l(c,v,y,"∣","\\shortmid"),l(c,v,y,"∥","\\shortparallel"),l(c,v,y,"≬","\\between",!0),l(c,v,y,"⋔","\\pitchfork",!0),l(c,v,y,"∝","\\varpropto"),l(c,v,y,"◀","\\blacktriangleleft"),l(c,v,y,"∴","\\therefore",!0),l(c,v,y,"∍","\\backepsilon"),l(c,v,y,"▶","\\blacktriangleright"),l(c,v,y,"∵","\\because",!0),l(c,v,y,"⋘","\\llless"),l(c,v,y,"⋙","\\gggtr"),l(c,v,J,"⊲","\\lhd"),l(c,v,J,"⊳","\\rhd"),l(c,v,y,"≂","\\eqsim",!0),l(c,m,y,"⋈","\\Join"),l(c,v,y,"≑","\\Doteq",!0),l(c,v,J,"∔","\\dotplus",!0),l(c,v,J,"∖","\\smallsetminus"),l(c,v,J,"⋒","\\Cap",!0),l(c,v,J,"⋓","\\Cup",!0),l(c,v,J,"⩞","\\doublebarwedge",!0),l(c,v,J,"⊟","\\boxminus",!0),l(c,v,J,"⊞","\\boxplus",!0),l(c,v,J,"⋇","\\divideontimes",!0),l(c,v,J,"⋉","\\ltimes",!0),l(c,v,J,"⋊","\\rtimes",!0),l(c,v,J,"⋋","\\leftthreetimes",!0),l(c,v,J,"⋌","\\rightthreetimes",!0),l(c,v,J,"⋏","\\curlywedge",!0),l(c,v,J,"⋎","\\curlyvee",!0),l(c,v,J,"⊝","\\circleddash",!0),l(c,v,J,"⊛","\\circledast",!0),l(c,v,J,"⋅","\\centerdot"),l(c,v,J,"⊺","\\intercal",!0),l(c,v,J,"⋒","\\doublecap"),l(c,v,J,"⋓","\\doublecup"),l(c,v,J,"⊠","\\boxtimes",!0),l(c,v,y,"⇢","\\dashrightarrow",!0),l(c,v,y,"⇠","\\dashleftarrow",!0),l(c,v,y,"⇇","\\leftleftarrows",!0),l(c,v,y,"⇆","\\leftrightarrows",!0),l(c,v,y,"⇚","\\Lleftarrow",!0),l(c,v,y,"↞","\\twoheadleftarrow",!0),l(c,v,y,"↢","\\leftarrowtail",!0),l(c,v,y,"↫","\\looparrowleft",!0),l(c,v,y,"⇋","\\leftrightharpoons",!0),l(c,v,y,"↶","\\curvearrowleft",!0),l(c,v,y,"↺","\\circlearrowleft",!0),l(c,v,y,"↰","\\Lsh",!0),l(c,v,y,"⇈","\\upuparrows",!0),l(c,v,y,"↿","\\upharpoonleft",!0),l(c,v,y,"⇃","\\downharpoonleft",!0),l(c,m,y,"⊶","\\origof",!0),l(c,m,y,"⊷","\\imageof",!0),l(c,v,y,"⊸","\\multimap",!0),l(c,v,y,"↭","\\leftrightsquigarrow",!0),l(c,v,y,"⇉","\\rightrightarrows",!0),l(c,v,y,"⇄","\\rightleftarrows",!0),l(c,v,y,"↠","\\twoheadrightarrow",!0),l(c,v,y,"↣","\\rightarrowtail",!0),l(c,v,y,"↬","\\looparrowright",!0),l(c,v,y,"↷","\\curvearrowright",!0),l(c,v,y,"↻","\\circlearrowright",!0),l(c,v,y,"↱","\\Rsh",!0),l(c,v,y,"⇊","\\downdownarrows",!0),l(c,v,y,"↾","\\upharpoonright",!0),l(c,v,y,"⇂","\\downharpoonright",!0),l(c,v,y,"⇝","\\rightsquigarrow",!0),l(c,v,y,"⇝","\\leadsto"),l(c,v,y,"⇛","\\Rrightarrow",!0),l(c,v,y,"↾","\\restriction"),l(c,m,S,"‘","`"),l(c,m,S,"$","\\$"),l(L,m,S,"$","\\$"),l(L,m,S,"$","\\textdollar"),l(c,m,S,"%","\\%"),l(L,m,S,"%","\\%"),l(c,m,S,"_","\\_"),l(L,m,S,"_","\\_"),l(L,m,S,"_","\\textunderscore"),l(c,m,S,"∠","\\angle",!0),l(c,m,S,"∞","\\infty",!0),l(c,m,S,"′","\\prime"),l(c,m,S,"△","\\triangle"),l(c,m,S,"Γ","\\Gamma",!0),l(c,m,S,"Δ","\\Delta",!0),l(c,m,S,"Θ","\\Theta",!0),l(c,m,S,"Λ","\\Lambda",!0),l(c,m,S,"Ξ","\\Xi",!0),l(c,m,S,"Π","\\Pi",!0),l(c,m,S,"Σ","\\Sigma",!0),l(c,m,S,"Υ","\\Upsilon",!0),l(c,m,S,"Φ","\\Phi",!0),l(c,m,S,"Ψ","\\Psi",!0),l(c,m,S,"Ω","\\Omega",!0),l(c,m,S,"A","Α"),l(c,m,S,"B","Β"),l(c,m,S,"E","Ε"),l(c,m,S,"Z","Ζ"),l(c,m,S,"H","Η"),l(c,m,S,"I","Ι"),l(c,m,S,"K","Κ"),l(c,m,S,"M","Μ"),l(c,m,S,"N","Ν"),l(c,m,S,"O","Ο"),l(c,m,S,"P","Ρ"),l(c,m,S,"T","Τ"),l(c,m,S,"X","Χ"),l(c,m,S,"¬","\\neg",!0),l(c,m,S,"¬","\\lnot"),l(c,m,S,"⊤","\\top"),l(c,m,S,"⊥","\\bot"),l(c,m,S,"∅","\\emptyset"),l(c,v,S,"∅","\\varnothing"),l(c,m,oe,"α","\\alpha",!0),l(c,m,oe,"β","\\beta",!0),l(c,m,oe,"γ","\\gamma",!0),l(c,m,oe,"δ","\\delta",!0),l(c,m,oe,"ϵ","\\epsilon",!0),l(c,m,oe,"ζ","\\zeta",!0),l(c,m,oe,"η","\\eta",!0),l(c,m,oe,"θ","\\theta",!0),l(c,m,oe,"ι","\\iota",!0),l(c,m,oe,"κ","\\kappa",!0),l(c,m,oe,"λ","\\lambda",!0),l(c,m,oe,"μ","\\mu",!0),l(c,m,oe,"ν","\\nu",!0),l(c,m,oe,"ξ","\\xi",!0),l(c,m,oe,"ο","\\omicron",!0),l(c,m,oe,"π","\\pi",!0),l(c,m,oe,"ρ","\\rho",!0),l(c,m,oe,"σ","\\sigma",!0),l(c,m,oe,"τ","\\tau",!0),l(c,m,oe,"υ","\\upsilon",!0),l(c,m,oe,"ϕ","\\phi",!0),l(c,m,oe,"χ","\\chi",!0),l(c,m,oe,"ψ","\\psi",!0),l(c,m,oe,"ω","\\omega",!0),l(c,m,oe,"ε","\\varepsilon",!0),l(c,m,oe,"ϑ","\\vartheta",!0),l(c,m,oe,"ϖ","\\varpi",!0),l(c,m,oe,"ϱ","\\varrho",!0),l(c,m,oe,"ς","\\varsigma",!0),l(c,m,oe,"φ","\\varphi",!0),l(c,m,J,"∗","*",!0),l(c,m,J,"+","+"),l(c,m,J,"−","-",!0),l(c,m,J,"⋅","\\cdot",!0),l(c,m,J,"∘","\\circ",!0),l(c,m,J,"÷","\\div",!0),l(c,m,J,"±","\\pm",!0),l(c,m,J,"×","\\times",!0),l(c,m,J,"∩","\\cap",!0),l(c,m,J,"∪","\\cup",!0),l(c,m,J,"∖","\\setminus",!0),l(c,m,J,"∧","\\land"),l(c,m,J,"∨","\\lor"),l(c,m,J,"∧","\\wedge",!0),l(c,m,J,"∨","\\vee",!0),l(c,m,S,"√","\\surd"),l(c,m,vt,"⟨","\\langle",!0),l(c,m,vt,"∣","\\lvert"),l(c,m,vt,"∥","\\lVert"),l(c,m,ut,"?","?"),l(c,m,ut,"!","!"),l(c,m,ut,"⟩","\\rangle",!0),l(c,m,ut,"∣","\\rvert"),l(c,m,ut,"∥","\\rVert"),l(c,m,y,"=","="),l(c,m,y,":",":"),l(c,m,y,"≈","\\approx",!0),l(c,m,y,"≅","\\cong",!0),l(c,m,y,"≥","\\ge"),l(c,m,y,"≥","\\geq",!0),l(c,m,y,"←","\\gets"),l(c,m,y,">","\\gt",!0),l(c,m,y,"∈","\\in",!0),l(c,m,y,"","\\@not"),l(c,m,y,"⊂","\\subset",!0),l(c,m,y,"⊃","\\supset",!0),l(c,m,y,"⊆","\\subseteq",!0),l(c,m,y,"⊇","\\supseteq",!0),l(c,v,y,"⊈","\\nsubseteq",!0),l(c,v,y,"⊉","\\nsupseteq",!0),l(c,m,y,"⊨","\\models"),l(c,m,y,"←","\\leftarrow",!0),l(c,m,y,"≤","\\le"),l(c,m,y,"≤","\\leq",!0),l(c,m,y,"<","\\lt",!0),l(c,m,y,"→","\\rightarrow",!0),l(c,m,y,"→","\\to"),l(c,v,y,"≱","\\ngeq",!0),l(c,v,y,"≰","\\nleq",!0),l(c,m,er," ","\\ "),l(c,m,er," ","\\space"),l(c,m,er," ","\\nobreakspace"),l(L,m,er," ","\\ "),l(L,m,er," "," "),l(L,m,er," ","\\space"),l(L,m,er," ","\\nobreakspace"),l(c,m,er,null,"\\nobreak"),l(c,m,er,null,"\\allowbreak"),l(c,m,_n,",",","),l(c,m,_n,";",";"),l(c,v,J,"⊼","\\barwedge",!0),l(c,v,J,"⊻","\\veebar",!0),l(c,m,J,"⊙","\\odot",!0),l(c,m,J,"⊕","\\oplus",!0),l(c,m,J,"⊗","\\otimes",!0),l(c,m,S,"∂","\\partial",!0),l(c,m,J,"⊘","\\oslash",!0),l(c,v,J,"⊚","\\circledcirc",!0),l(c,v,J,"⊡","\\boxdot",!0),l(c,m,J,"△","\\bigtriangleup"),l(c,m,J,"▽","\\bigtriangledown"),l(c,m,J,"†","\\dagger"),l(c,m,J,"⋄","\\diamond"),l(c,m,J,"⋆","\\star"),l(c,m,J,"◃","\\triangleleft"),l(c,m,J,"▹","\\triangleright"),l(c,m,vt,"{","\\{"),l(L,m,S,"{","\\{"),l(L,m,S,"{","\\textbraceleft"),l(c,m,ut,"}","\\}"),l(L,m,S,"}","\\}"),l(L,m,S,"}","\\textbraceright"),l(c,m,vt,"{","\\lbrace"),l(c,m,ut,"}","\\rbrace"),l(c,m,vt,"[","\\lbrack",!0),l(L,m,S,"[","\\lbrack",!0),l(c,m,ut,"]","\\rbrack",!0),l(L,m,S,"]","\\rbrack",!0),l(c,m,vt,"(","\\lparen",!0),l(c,m,ut,")","\\rparen",!0),l(L,m,S,"<","\\textless",!0),l(L,m,S,">","\\textgreater",!0),l(c,m,vt,"⌊","\\lfloor",!0),l(c,m,ut,"⌋","\\rfloor",!0),l(c,m,vt,"⌈","\\lceil",!0),l(c,m,ut,"⌉","\\rceil",!0),l(c,m,S,"\\","\\backslash"),l(c,m,S,"∣","|"),l(c,m,S,"∣","\\vert"),l(L,m,S,"|","\\textbar",!0),l(c,m,S,"∥","\\|"),l(c,m,S,"∥","\\Vert"),l(L,m,S,"∥","\\textbardbl"),l(L,m,S,"~","\\textasciitilde"),l(L,m,S,"\\","\\textbackslash"),l(L,m,S,"^","\\textasciicircum"),l(c,m,y,"↑","\\uparrow",!0),l(c,m,y,"⇑","\\Uparrow",!0),l(c,m,y,"↓","\\downarrow",!0),l(c,m,y,"⇓","\\Downarrow",!0),l(c,m,y,"↕","\\updownarrow",!0),l(c,m,y,"⇕","\\Updownarrow",!0),l(c,m,je,"∐","\\coprod"),l(c,m,je,"⋁","\\bigvee"),l(c,m,je,"⋀","\\bigwedge"),l(c,m,je,"⨄","\\biguplus"),l(c,m,je,"⋂","\\bigcap"),l(c,m,je,"⋃","\\bigcup"),l(c,m,je,"∫","\\int"),l(c,m,je,"∫","\\intop"),l(c,m,je,"∬","\\iint"),l(c,m,je,"∭","\\iiint"),l(c,m,je,"∏","\\prod"),l(c,m,je,"∑","\\sum"),l(c,m,je,"⨂","\\bigotimes"),l(c,m,je,"⨁","\\bigoplus"),l(c,m,je,"⨀","\\bigodot"),l(c,m,je,"∮","\\oint"),l(c,m,je,"∯","\\oiint"),l(c,m,je,"∰","\\oiiint"),l(c,m,je,"⨆","\\bigsqcup"),l(c,m,je,"∫","\\smallint"),l(L,m,Yr,"…","\\textellipsis"),l(c,m,Yr,"…","\\mathellipsis"),l(L,m,Yr,"…","\\ldots",!0),l(c,m,Yr,"…","\\ldots",!0),l(c,m,Yr,"⋯","\\@cdots",!0),l(c,m,Yr,"⋱","\\ddots",!0),l(c,m,S,"⋮","\\varvdots"),l(L,m,S,"⋮","\\varvdots"),l(c,m,De,"ˊ","\\acute"),l(c,m,De,"ˋ","\\grave"),l(c,m,De,"¨","\\ddot"),l(c,m,De,"~","\\tilde"),l(c,m,De,"ˉ","\\bar"),l(c,m,De,"˘","\\breve"),l(c,m,De,"ˇ","\\check"),l(c,m,De,"^","\\hat"),l(c,m,De,"⃗","\\vec"),l(c,m,De,"˙","\\dot"),l(c,m,De,"˚","\\mathring"),l(c,m,oe,"","\\@imath"),l(c,m,oe,"","\\@jmath"),l(c,m,S,"ı","ı"),l(c,m,S,"ȷ","ȷ"),l(L,m,S,"ı","\\i",!0),l(L,m,S,"ȷ","\\j",!0),l(L,m,S,"ß","\\ss",!0),l(L,m,S,"æ","\\ae",!0),l(L,m,S,"œ","\\oe",!0),l(L,m,S,"ø","\\o",!0),l(L,m,S,"Æ","\\AE",!0),l(L,m,S,"Œ","\\OE",!0),l(L,m,S,"Ø","\\O",!0),l(L,m,De,"ˊ","\\'"),l(L,m,De,"ˋ","\\`"),l(L,m,De,"ˆ","\\^"),l(L,m,De,"˜","\\~"),l(L,m,De,"ˉ","\\="),l(L,m,De,"˘","\\u"),l(L,m,De,"˙","\\."),l(L,m,De,"¸","\\c"),l(L,m,De,"˚","\\r"),l(L,m,De,"ˇ","\\v"),l(L,m,De,"¨",'\\"'),l(L,m,De,"˝","\\H"),l(L,m,De,"◯","\\textcircled");var rs={"--":!0,"---":!0,"``":!0,"''":!0};l(L,m,S,"–","--",!0),l(L,m,S,"–","\\textendash"),l(L,m,S,"—","---",!0),l(L,m,S,"—","\\textemdash"),l(L,m,S,"‘","`",!0),l(L,m,S,"‘","\\textquoteleft"),l(L,m,S,"’","'",!0),l(L,m,S,"’","\\textquoteright"),l(L,m,S,"“","``",!0),l(L,m,S,"“","\\textquotedblleft"),l(L,m,S,"”","''",!0),l(L,m,S,"”","\\textquotedblright"),l(c,m,S,"°","\\degree",!0),l(L,m,S,"°","\\degree"),l(L,m,S,"°","\\textdegree",!0),l(c,m,S,"£","\\pounds"),l(c,m,S,"£","\\mathsterling",!0),l(L,m,S,"£","\\pounds"),l(L,m,S,"£","\\textsterling",!0),l(c,v,S,"✠","\\maltese"),l(L,v,S,"✠","\\maltese");for(var ns='0123456789/@."',Li=0;Li<ns.length;Li++){var is=ns.charAt(Li);l(c,m,S,is,is)}for(var as='0123456789!@*()-=+";:?/.,',Di=0;Di<as.length;Di++){var ss=as.charAt(Di);l(L,m,S,ss,ss)}for(var Nn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Fi=0;Fi<Nn.length;Fi++){var Bn=Nn.charAt(Fi);l(c,m,oe,Bn,Bn),l(L,m,S,Bn,Bn)}l(c,v,S,"C","ℂ"),l(L,v,S,"C","ℂ"),l(c,v,S,"H","ℍ"),l(L,v,S,"H","ℍ"),l(c,v,S,"N","ℕ"),l(L,v,S,"N","ℕ"),l(c,v,S,"P","ℙ"),l(L,v,S,"P","ℙ"),l(c,v,S,"Q","ℚ"),l(L,v,S,"Q","ℚ"),l(c,v,S,"R","ℝ"),l(L,v,S,"R","ℝ"),l(c,v,S,"Z","ℤ"),l(L,v,S,"Z","ℤ"),l(c,m,oe,"h","ℎ"),l(L,m,oe,"h","ℎ");for(var ce="",ct=0;ct<Nn.length;ct++){var Ue=Nn.charAt(ct);ce=String.fromCharCode(55349,56320+ct),l(c,m,oe,Ue,ce),l(L,m,S,Ue,ce),ce=String.fromCharCode(55349,56372+ct),l(c,m,oe,Ue,ce),l(L,m,S,Ue,ce),ce=String.fromCharCode(55349,56424+ct),l(c,m,oe,Ue,ce),l(L,m,S,Ue,ce),ce=String.fromCharCode(55349,56580+ct),l(c,m,oe,Ue,ce),l(L,m,S,Ue,ce),ce=String.fromCharCode(55349,56684+ct),l(c,m,oe,Ue,ce),l(L,m,S,Ue,ce),ce=String.fromCharCode(55349,56736+ct),l(c,m,oe,Ue,ce),l(L,m,S,Ue,ce),ce=String.fromCharCode(55349,56788+ct),l(c,m,oe,Ue,ce),l(L,m,S,Ue,ce),ce=String.fromCharCode(55349,56840+ct),l(c,m,oe,Ue,ce),l(L,m,S,Ue,ce),ce=String.fromCharCode(55349,56944+ct),l(c,m,oe,Ue,ce),l(L,m,S,Ue,ce),ct<26&&(ce=String.fromCharCode(55349,56632+ct),l(c,m,oe,Ue,ce),l(L,m,S,Ue,ce),ce=String.fromCharCode(55349,56476+ct),l(c,m,oe,Ue,ce),l(L,m,S,Ue,ce))}ce="𝕜",l(c,m,oe,"k",ce),l(L,m,S,"k",ce);for(var Br=0;Br<10;Br++){var gr=Br.toString();ce=String.fromCharCode(55349,57294+Br),l(c,m,oe,gr,ce),l(L,m,S,gr,ce),ce=String.fromCharCode(55349,57314+Br),l(c,m,oe,gr,ce),l(L,m,S,gr,ce),ce=String.fromCharCode(55349,57324+Br),l(c,m,oe,gr,ce),l(L,m,S,gr,ce),ce=String.fromCharCode(55349,57334+Br),l(c,m,oe,gr,ce),l(L,m,S,gr,ce)}for(var Pi="ÐÞþ",qi=0;qi<Pi.length;qi++){var Rn=Pi.charAt(qi);l(c,m,oe,Rn,Rn),l(L,m,S,Rn,Rn)}var In=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],os=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Nc=function(e,r){var n=e.charCodeAt(0),i=e.charCodeAt(1),a=(n-55296)*1024+(i-56320)+65536,s=r==="math"?0:1;if(119808<=a&&a<120484){var o=Math.floor((a-119808)/26);return[In[o][2],In[o][s]]}else if(120782<=a&&a<=120831){var u=Math.floor((a-120782)/10);return[os[u][2],os[u][s]]}else{if(a===120485||a===120486)return[In[0][2],In[0][s]];if(120486<a&&a<120782)return["",""];throw new F("Unsupported character: "+e)}},On=function(e,r,n){return Ie[n][e]&&Ie[n][e].replace&&(e=Ie[n][e].replace),{value:e,metrics:Ni(e,r,n)}},Bt=function(e,r,n,i,a){var s=On(e,r,n),o=s.metrics;e=s.value;var u;if(o){var h=o.italic;(n==="text"||i&&i.font==="mathit")&&(h=0),u=new Tt(e,o.height,o.depth,h,o.skew,o.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+r+"' and mode '"+n+"'")),u=new Tt(e,0,0,0,0,0,a);if(i){u.maxFontSize=i.sizeMultiplier,i.style.isTight()&&u.classes.push("mtight");var d=i.getColor();d&&(u.style.color=d)}return u},Bc=function(e,r,n,i){return i===void 0&&(i=[]),n.font==="boldsymbol"&&On(e,"Main-Bold",r).metrics?Bt(e,"Main-Bold",r,n,i.concat(["mathbf"])):e==="\\"||Ie[r][e].font==="main"?Bt(e,"Main-Regular",r,n,i):Bt(e,"AMS-Regular",r,n,i.concat(["amsrm"]))},Rc=function(e,r,n,i,a){return a!=="textord"&&On(e,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ic=function(e,r,n){var i=e.mode,a=e.text,s=["mord"],o=i==="math"||i==="text"&&r.font,u=o?r.font:r.fontFamily,h="",d="";if(a.charCodeAt(0)===55349&&([h,d]=Nc(a,i)),h.length>0)return Bt(a,h,i,r,s.concat(d));if(u){var p,b;if(u==="boldsymbol"){var f=Rc(a,i,r,s,n);p=f.fontName,b=[f.fontClass]}else o?(p=cs[u].fontName,b=[u]):(p=Ln(u,r.fontWeight,r.fontShape),b=[u,r.fontWeight,r.fontShape]);if(On(a,p,i).metrics)return Bt(a,p,i,r,s.concat(b));if(rs.hasOwnProperty(a)&&p.slice(0,10)==="Typewriter"){for(var z=[],E=0;E<a.length;E++)z.push(Bt(a[E],p,i,r,s.concat(b)));return us(z)}}if(n==="mathord")return Bt(a,"Math-Italic",i,r,s.concat(["mathnormal"]));if(n==="textord"){var O=Ie[i][a]&&Ie[i][a].font;if(O==="ams"){var A=Ln("amsrm",r.fontWeight,r.fontShape);return Bt(a,A,i,r,s.concat("amsrm",r.fontWeight,r.fontShape))}else if(O==="main"||!O){var N=Ln("textrm",r.fontWeight,r.fontShape);return Bt(a,N,i,r,s.concat(r.fontWeight,r.fontShape))}else{var I=Ln(O,r.fontWeight,r.fontShape);return Bt(a,I,i,r,s.concat(I,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},Oc=(t,e)=>{if(pr(t.classes)!==pr(e.classes)||t.skew!==e.skew||t.maxFontSize!==e.maxFontSize)return!1;if(t.classes.length===1){var r=t.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n in t.style)if(t.style.hasOwnProperty(n)&&t.style[n]!==e.style[n])return!1;for(var i in e.style)if(e.style.hasOwnProperty(i)&&t.style[i]!==e.style[i])return!1;return!0},Lc=t=>{for(var e=0;e<t.length-1;e++){var r=t[e],n=t[e+1];r instanceof Tt&&n instanceof Tt&&Oc(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,t.splice(e+1,1),e--)}return t},Ui=function(e){for(var r=0,n=0,i=0,a=0;a<e.children.length;a++){var s=e.children[a];s.height>r&&(r=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}e.height=r,e.depth=n,e.maxFontSize=i},mt=function(e,r,n,i){var a=new sn(e,r,n,i);return Ui(a),a},ls=(t,e,r,n)=>new sn(t,e,r,n),Dc=function(e,r,n){var i=mt([e],[],r);return i.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),i.style.borderBottomWidth=H(i.height),i.maxFontSize=1,i},Fc=function(e,r,n,i){var a=new Ii(e,r,n,i);return Ui(a),a},us=function(e){var r=new an(e);return Ui(r),r},Pc=function(e,r){return e instanceof an?mt([],[e],r):e},qc=function(e){if(e.positionType==="individualShift"){for(var r=e.children,n=[r[0]],i=-r[0].shift-r[0].elem.depth,a=i,s=1;s<r.length;s++){var o=-r[s].shift-a-r[s].elem.depth,u=o-(r[s-1].elem.height+r[s-1].elem.depth);a=a+o,n.push({type:"kern",size:u}),n.push(r[s])}return{children:n,depth:i}}var h;if(e.positionType==="top"){for(var d=e.positionData,p=0;p<e.children.length;p++){var b=e.children[p];d-=b.type==="kern"?b.size:b.elem.height+b.elem.depth}h=d}else if(e.positionType==="bottom")h=-e.positionData;else{var f=e.children[0];if(f.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")h=-f.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")h=-f.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:h}},Uc=function(e,r){for(var{children:n,depth:i}=qc(e),a=0,s=0;s<n.length;s++){var o=n[s];if(o.type==="elem"){var u=o.elem;a=Math.max(a,u.maxFontSize,u.height)}}a+=2;var h=mt(["pstrut"],[]);h.style.height=H(a);for(var d=[],p=i,b=i,f=i,z=0;z<n.length;z++){var E=n[z];if(E.type==="kern")f+=E.size;else{var O=E.elem,A=E.wrapperClasses||[],N=E.wrapperStyle||{},I=mt(A,[h,O],void 0,N);I.style.top=H(-a-f-O.depth),E.marginLeft&&(I.style.marginLeft=E.marginLeft),E.marginRight&&(I.style.marginRight=E.marginRight),d.push(I),f+=O.height+O.depth}p=Math.min(p,f),b=Math.max(b,f)}var Y=mt(["vlist"],d);Y.style.height=H(b);var G;if(p<0){var C=mt([],[]),V=mt(["vlist"],[C]);V.style.height=H(-p);var ee=mt(["vlist-s"],[new Tt("")]);G=[mt(["vlist-r"],[Y,ee]),mt(["vlist-r"],[V])]}else G=[mt(["vlist-r"],[Y])];var j=mt(["vlist-t"],G);return G.length===2&&j.classes.push("vlist-t2"),j.height=b,j.depth=-p,j},Hc=(t,e)=>{var r=mt(["mspace"],[],e),n=Fe(t,e);return r.style.marginRight=H(n),r},Ln=function(e,r,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}var a;return r==="textbf"&&n==="textit"?a="BoldItalic":r==="textbf"?a="Bold":r==="textit"?a="Italic":a="Regular",i+"-"+a},cs={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},hs={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Gc=function(e,r){var[n,i,a]=hs[e],s=new fr(n),o=new Qt([s],{width:H(i),height:H(a),style:"width:"+H(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=ls(["overlay"],[o],r);return u.height=a,u.style.height=H(a),u.style.width=H(i),u},T={fontMap:cs,makeSymbol:Bt,mathsym:Bc,makeSpan:mt,makeSvgSpan:ls,makeLineSpan:Dc,makeAnchor:Fc,makeFragment:us,wrapFragment:Pc,makeVList:Uc,makeOrd:Ic,makeGlue:Hc,staticSvg:Gc,svgData:hs,tryCombineChars:Lc},Pe={number:3,unit:"mu"},Rr={number:4,unit:"mu"},tr={number:5,unit:"mu"},$c={mord:{mop:Pe,mbin:Rr,mrel:tr,minner:Pe},mop:{mord:Pe,mop:Pe,mrel:tr,minner:Pe},mbin:{mord:Rr,mop:Rr,mopen:Rr,minner:Rr},mrel:{mord:tr,mop:tr,mopen:tr,minner:tr},mopen:{},mclose:{mop:Pe,mbin:Rr,mrel:tr,minner:Pe},mpunct:{mord:Pe,mop:Pe,mrel:tr,mopen:Pe,mclose:Pe,mpunct:Pe,minner:Pe},minner:{mord:Pe,mop:Pe,mbin:Rr,mrel:tr,mopen:Pe,mpunct:Pe,minner:Pe}},Wc={mord:{mop:Pe},mop:{mord:Pe,mop:Pe},mbin:{},mrel:{},mopen:{},mclose:{mop:Pe},mpunct:{},minner:{mop:Pe}},ds={},Dn={},Fn={};function K(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:i},u=0;u<r.length;++u)ds[r[u]]=o;e&&(a&&(Dn[e]=a),s&&(Fn[e]=s))}function Ir(t){var{type:e,htmlBuilder:r,mathmlBuilder:n}=t;K({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var Pn=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},Ge=function(e){return e.type==="ordgroup"?e.body:[e]},rr=T.makeSpan,jc=["leftmost","mbin","mopen","mrel","mop","mpunct"],Vc=["rightmost","mrel","mclose","mpunct"],Xc={display:se.DISPLAY,text:se.TEXT,script:se.SCRIPT,scriptscript:se.SCRIPTSCRIPT},Kc={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ke=function(e,r,n,i){i===void 0&&(i=[null,null]);for(var a=[],s=0;s<e.length;s++){var o=ze(e[s],r);if(o instanceof an){var u=o.children;a.push(...u)}else a.push(o)}if(T.tryCombineChars(a),!n)return a;var h=r;if(e.length===1){var d=e[0];d.type==="sizing"?h=r.havingSize(d.size):d.type==="styling"&&(h=r.havingStyle(Xc[d.style]))}var p=rr([i[0]||"leftmost"],[],r),b=rr([i[1]||"rightmost"],[],r),f=n==="root";return ms(a,(z,E)=>{var O=E.classes[0],A=z.classes[0];O==="mbin"&&ie.contains(Vc,A)?E.classes[0]="mord":A==="mbin"&&ie.contains(jc,O)&&(z.classes[0]="mord")},{node:p},b,f),ms(a,(z,E)=>{var O=Hi(E),A=Hi(z),N=O&&A?z.hasClass("mtight")?Wc[O][A]:$c[O][A]:null;if(N)return T.makeGlue(N,h)},{node:p},b,f),a},ms=function t(e,r,n,i,a){i&&e.push(i);for(var s=0;s<e.length;s++){var o=e[s],u=ps(o);if(u){t(u.children,r,n,null,a);continue}var h=!o.hasClass("mspace");if(h){var d=r(o,n.node);d&&(n.insertAfter?n.insertAfter(d):(e.unshift(d),s++))}h?n.node=o:a&&o.hasClass("newline")&&(n.node=rr(["leftmost"])),n.insertAfter=(p=>b=>{e.splice(p+1,0,b),s++})(s)}i&&e.pop()},ps=function(e){return e instanceof an||e instanceof Ii||e instanceof sn&&e.hasClass("enclosing")?e:null},Yc=function t(e,r){var n=ps(e);if(n){var i=n.children;if(i.length){if(r==="right")return t(i[i.length-1],"right");if(r==="left")return t(i[0],"left")}}return e},Hi=function(e,r){return e?(r&&(e=Yc(e,r)),Kc[e.classes[0]]||null):null},on=function(e,r){var n=["nulldelimiter"].concat(e.baseSizingClasses());return rr(r.concat(n))},ze=function(e,r,n){if(!e)return rr();if(Dn[e.type]){var i=Dn[e.type](e,r);if(n&&r.size!==n.size){i=rr(r.sizingClasses(n),[i],r);var a=r.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new F("Got group of unknown type: '"+e.type+"'")};function qn(t,e){var r=rr(["base"],t,e),n=rr(["strut"]);return n.style.height=H(r.height+r.depth),r.depth&&(n.style.verticalAlign=H(-r.depth)),r.children.unshift(n),r}function Gi(t,e){var r=null;t.length===1&&t[0].type==="tag"&&(r=t[0].tag,t=t[0].body);var n=Ke(t,e,"root"),i;n.length===2&&n[1].hasClass("tag")&&(i=n.pop());for(var a=[],s=[],o=0;o<n.length;o++)if(s.push(n[o]),n[o].hasClass("mbin")||n[o].hasClass("mrel")||n[o].hasClass("allowbreak")){for(var u=!1;o<n.length-1&&n[o+1].hasClass("mspace")&&!n[o+1].hasClass("newline");)o++,s.push(n[o]),n[o].hasClass("nobreak")&&(u=!0);u||(a.push(qn(s,e)),s=[])}else n[o].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(qn(s,e)),s=[]),a.push(n[o]));s.length>0&&a.push(qn(s,e));var h;r?(h=qn(Ke(r,e,!0)),h.classes=["tag"],a.push(h)):i&&a.push(i);var d=rr(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),h){var p=h.children[0];p.style.height=H(d.height+d.depth),d.depth&&(p.style.verticalAlign=H(-d.depth))}return d}function fs(t){return new an(t)}class At{constructor(e,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&e.setAttribute(r,this.attributes[r]);this.classes.length>0&&(e.className=pr(this.classes));for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(e+=" "+r+'="',e+=ie.escape(this.attributes[r]),e+='"');this.classes.length>0&&(e+=' class ="'+ie.escape(pr(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class ln{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return ie.escape(this.toText())}toText(){return this.text}}class Zc{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character=" ":e>=-.05556&&e<=-.05555?this.character=" ":e>=-.1667&&e<=-.1666?this.character=" ":e>=-.2223&&e<=-.2222?this.character=" ":e>=-.2778&&e<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",H(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+H(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var D={MathNode:At,TextNode:ln,SpaceNode:Zc,newDocumentFragment:fs},Mt=function(e,r,n){return Ie[r][e]&&Ie[r][e].replace&&e.charCodeAt(0)!==55349&&!(rs.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=Ie[r][e].replace),new D.TextNode(e)},$i=function(e){return e.length===1?e[0]:new D.MathNode("mrow",e)},Wi=function(e,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var i=e.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var a=e.text;if(ie.contains(["\\imath","\\jmath"],a))return null;Ie[i][a]&&Ie[i][a].replace&&(a=Ie[i][a].replace);var s=T.fontMap[n].fontName;return Ni(a,s,i)?T.fontMap[n].variant:null},pt=function(e,r,n){if(e.length===1){var i=Re(e[0],r);return n&&i instanceof At&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o<e.length;o++){var u=Re(e[o],r);if(u instanceof At&&s instanceof At){if(u.type==="mtext"&&s.type==="mtext"&&u.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...u.children);continue}else if(u.type==="mn"&&s.type==="mn"){s.children.push(...u.children);continue}else if(u.type==="mi"&&u.children.length===1&&s.type==="mn"){var h=u.children[0];if(h instanceof ln&&h.text==="."){s.children.push(...u.children);continue}}else if(s.type==="mi"&&s.children.length===1){var d=s.children[0];if(d instanceof ln&&d.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var p=u.children[0];p instanceof ln&&p.text.length>0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),a.pop())}}}a.push(u),s=u}return a},br=function(e,r,n){return $i(pt(e,r,n))},Re=function(e,r){if(!e)return new D.MathNode("mrow");if(Fn[e.type]){var n=Fn[e.type](e,r);return n}else throw new F("Got group of unknown type: '"+e.type+"'")};function gs(t,e,r,n,i){var a=pt(t,r),s;a.length===1&&a[0]instanceof At&&ie.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new D.MathNode("mrow",a);var o=new D.MathNode("annotation",[new D.TextNode(e)]);o.setAttribute("encoding","application/x-tex");var u=new D.MathNode("semantics",[s,o]),h=new D.MathNode("math",[u]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&h.setAttribute("display","block");var d=i?"katex":"katex-mathml";return T.makeSpan([d],[h])}var bs=function(e){return new Jt({style:e.displayMode?se.DISPLAY:se.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},vs=function(e,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),e=T.makeSpan(n,[e])}return e},Jc=function(e,r,n){var i=bs(n),a;if(n.output==="mathml")return gs(e,r,i,n.displayMode,!0);if(n.output==="html"){var s=Gi(e,i);a=T.makeSpan(["katex"],[s])}else{var o=gs(e,r,i,n.displayMode,!1),u=Gi(e,i);a=T.makeSpan(["katex"],[o,u])}return vs(a,n)},Qc=function(e,r,n){var i=bs(n),a=Gi(e,i),s=T.makeSpan(["katex"],[a]);return vs(s,n)},eh={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},th=function(e){var r=new D.MathNode("mo",[new D.TextNode(eh[e.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},rh={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},nh=function(e){return e.type==="ordgroup"?e.body.length:1},ih=function(e,r){function n(){var o=4e5,u=e.label.slice(1);if(ie.contains(["widehat","widecheck","widetilde","utilde"],u)){var h=e,d=nh(h.base),p,b,f;if(d>5)u==="widehat"||u==="widecheck"?(p=420,o=2364,f=.42,b=u+"4"):(p=312,o=2340,f=.34,b="tilde4");else{var z=[1,1,2,2,3,3][d];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][z],p=[0,239,300,360,420][z],f=[0,.24,.3,.3,.36,.42][z],b=u+z):(o=[0,600,1033,2339,2340][z],p=[0,260,286,306,312][z],f=[0,.26,.286,.3,.306,.34][z],b="tilde"+z)}var E=new fr(b),O=new Qt([E],{width:"100%",height:H(f),viewBox:"0 0 "+o+" "+p,preserveAspectRatio:"none"});return{span:T.makeSvgSpan([],[O],r),minWidth:0,height:f}}else{var A=[],N=rh[u],[I,Y,G]=N,C=G/1e3,V=I.length,ee,j;if(V===1){var M=N[3];ee=["hide-tail"],j=[M]}else if(V===2)ee=["halfarrow-left","halfarrow-right"],j=["xMinYMin","xMaxYMin"];else if(V===3)ee=["brace-left","brace-center","brace-right"],j=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
261
|
+
`+V+" children.");for(var W=0;W<V;W++){var $=new fr(I[W]),be=new Qt([$],{width:"400em",height:H(C),viewBox:"0 0 "+o+" "+G,preserveAspectRatio:j[W]+" slice"}),he=T.makeSvgSpan([ee[W]],[be],r);if(V===1)return{span:he,minWidth:Y,height:C};he.style.height=H(C),A.push(he)}return{span:T.makeSpan(["stretchy"],A,r),minWidth:Y,height:C}}}var{span:i,minWidth:a,height:s}=n();return i.height=s,i.style.height=H(s),a>0&&(i.style.minWidth=H(a)),i},ah=function(e,r,n,i,a){var s,o=e.height+e.depth+n+i;if(/fbox|color|angl/.test(r)){if(s=T.makeSpan(["stretchy",r],[],a),r==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new Oi({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new Oi({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new Qt(h,{width:"100%",height:H(o)});s=T.makeSvgSpan([],[d],a)}return s.height=o,s.style.height=H(o),s},nr={encloseSpan:ah,mathMLnode:th,svgSpan:ih};function ge(t,e){if(!t||t.type!==e)throw new Error("Expected node of type "+e+", but got "+(t?"node of type "+t.type:String(t)));return t}function ji(t){var e=Un(t);if(!e)throw new Error("Expected node of symbol group type, but got "+(t?"node of type "+t.type:String(t)));return e}function Un(t){return t&&(t.type==="atom"||_c.hasOwnProperty(t.type))?t:null}var Vi=(t,e)=>{var r,n,i;t&&t.type==="supsub"?(n=ge(t.base,"accent"),r=n.base,t.base=r,i=Mc(ze(t,e)),t.base=n):(n=ge(t,"accent"),r=n.base);var a=ze(r,e.havingCrampedStyle()),s=n.isShifty&&ie.isCharacterBox(r),o=0;if(s){var u=ie.getBaseElem(r),h=ze(u,e.havingCrampedStyle());o=ts(h).skew}var d=n.label==="\\c",p=d?a.height+a.depth:Math.min(a.height,e.fontMetrics().xHeight),b;if(n.isStretchy)b=nr.svgSpan(n,e),b=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:b,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+H(2*o)+")",marginLeft:H(2*o)}:void 0}]},e);else{var f,z;n.label==="\\vec"?(f=T.staticSvg("vec",e),z=T.svgData.vec[1]):(f=T.makeOrd({mode:n.mode,text:n.label},e,"textord"),f=ts(f),f.italic=0,z=f.width,d&&(p+=f.depth)),b=T.makeSpan(["accent-body"],[f]);var E=n.label==="\\textcircled";E&&(b.classes.push("accent-full"),p=a.height);var O=o;E||(O-=z/2),b.style.left=H(O),n.label==="\\textcircled"&&(b.style.top=".2em"),b=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-p},{type:"elem",elem:b}]},e)}var A=T.makeSpan(["mord","accent"],[b],e);return i?(i.children[0]=A,i.height=Math.max(A.height,i.height),i.classes[0]="mord",i):A},ys=(t,e)=>{var r=t.isStretchy?nr.mathMLnode(t.label):new D.MathNode("mo",[Mt(t.label,t.mode)]),n=new D.MathNode("mover",[Re(t.base,e),r]);return n.setAttribute("accent","true"),n},sh=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(t=>"\\"+t).join("|"));K({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(t,e)=>{var r=Pn(e[0]),n=!sh.test(t.funcName),i=!n||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:n,isShifty:i,base:r}},htmlBuilder:Vi,mathmlBuilder:ys}),K({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(t,e)=>{var r=e[0],n=t.parser.mode;return n==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:t.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Vi,mathmlBuilder:ys}),K({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"accentUnder",mode:r.mode,label:n,base:i}},htmlBuilder:(t,e)=>{var r=ze(t.base,e),n=nr.svgSpan(t,e),i=t.label==="\\utilde"?.12:0,a=T.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]},e);return T.makeSpan(["mord","accentunder"],[a],e)},mathmlBuilder:(t,e)=>{var r=nr.mathMLnode(t.label),n=new D.MathNode("munder",[Re(t.base,e),r]);return n.setAttribute("accentunder","true"),n}});var Hn=t=>{var e=new D.MathNode("mpadded",t?[t]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};K({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n,funcName:i}=t;return{type:"xArrow",mode:n.mode,label:i,body:e[0],below:r[0]}},htmlBuilder(t,e){var r=e.style,n=e.havingStyle(r.sup()),i=T.wrapFragment(ze(t.body,n,e),e),a=t.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;t.below&&(n=e.havingStyle(r.sub()),s=T.wrapFragment(ze(t.below,n,e),e),s.classes.push(a+"-arrow-pad"));var o=nr.svgSpan(t,e),u=-e.fontMetrics().axisHeight+.5*o.height,h=-e.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||t.label==="\\xleftequilibrium")&&(h-=i.depth);var d;if(s){var p=-e.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:p}]},e)}else d=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:o,shift:u}]},e);return d.children[0].children[0].children[1].classes.push("svg-align"),T.makeSpan(["mrel","x-arrow"],[d],e)},mathmlBuilder(t,e){var r=nr.mathMLnode(t.label);r.setAttribute("minsize",t.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(t.body){var i=Hn(Re(t.body,e));if(t.below){var a=Hn(Re(t.below,e));n=new D.MathNode("munderover",[r,a,i])}else n=new D.MathNode("mover",[r,i])}else if(t.below){var s=Hn(Re(t.below,e));n=new D.MathNode("munder",[r,s])}else n=Hn(),n=new D.MathNode("mover",[r,n]);return n}});var oh=T.makeSpan;function ws(t,e){var r=Ke(t.body,e,!0);return oh([t.mclass],r,e)}function xs(t,e){var r,n=pt(t.body,e);return t.mclass==="minner"?r=new D.MathNode("mpadded",n):t.mclass==="mord"?t.isCharacterBox?(r=n[0],r.type="mi"):r=new D.MathNode("mi",n):(t.isCharacterBox?(r=n[0],r.type="mo"):r=new D.MathNode("mo",n),t.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):t.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):t.mclass==="mopen"||t.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):t.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}K({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:Ge(i),isCharacterBox:ie.isCharacterBox(i)}},htmlBuilder:ws,mathmlBuilder:xs});var Gn=t=>{var e=t.type==="ordgroup"&&t.body.length?t.body[0]:t;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};K({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(t,e){var{parser:r}=t;return{type:"mclass",mode:r.mode,mclass:Gn(e[0]),body:Ge(e[1]),isCharacterBox:ie.isCharacterBox(e[1])}}}),K({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(t,e){var{parser:r,funcName:n}=t,i=e[1],a=e[0],s;n!=="\\stackrel"?s=Gn(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Ge(i)},u={type:"supsub",mode:a.mode,base:o,sup:n==="\\underset"?null:a,sub:n==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[u],isCharacterBox:ie.isCharacterBox(u)}},htmlBuilder:ws,mathmlBuilder:xs}),K({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"pmb",mode:r.mode,mclass:Gn(e[0]),body:Ge(e[0])}},htmlBuilder(t,e){var r=Ke(t.body,e,!0),n=T.makeSpan([t.mclass],r,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(t,e){var r=pt(t.body,e),n=new D.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var lh={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ks=()=>({type:"styling",body:[],mode:"math",style:"display"}),Ss=t=>t.type==="textord"&&t.text==="@",uh=(t,e)=>(t.type==="mathord"||t.type==="atom")&&t.text===e;function ch(t,e,r){var n=lh[t];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[e[0]],[]),a={type:"atom",text:n,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[e[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return r.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function hh(t){var e=[];for(t.gullet.beginGroup(),t.gullet.macros.set("\\cr","\\\\\\relax"),t.gullet.beginGroup();;){e.push(t.parseExpression(!1,"\\\\")),t.gullet.endGroup(),t.gullet.beginGroup();var r=t.fetch().text;if(r==="&"||r==="\\\\")t.consume();else if(r==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new F("Expected \\\\ or \\cr or \\end",t.nextToken)}for(var n=[],i=[n],a=0;a<e.length;a++){for(var s=e[a],o=ks(),u=0;u<s.length;u++)if(!Ss(s[u]))o.body.push(s[u]);else{n.push(o),u+=1;var h=ji(s[u]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(h)>-1))if("<>AV".indexOf(h)>-1)for(var p=0;p<2;p++){for(var b=!0,f=u+1;f<s.length;f++){if(uh(s[f],h)){b=!1,u=f;break}if(Ss(s[f]))throw new F("Missing a "+h+" character to complete a CD arrow.",s[f]);d[p].body.push(s[f])}if(b)throw new F("Missing a "+h+" character to complete a CD arrow.",s[u])}else throw new F('Expected one of "<>AV=|." after @',s[u]);var z=ch(h,d,t),E={type:"styling",body:[z],mode:"math",style:"display"};n.push(E),o=ks()}a%2===0?n.push(o):n.shift(),n=[],i.push(n)}t.gullet.endGroup(),t.gullet.endGroup();var O=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:O,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}K({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:e[0]}},htmlBuilder(t,e){var r=e.havingStyle(e.style.sup()),n=T.wrapFragment(ze(t.label,r,e),e);return n.classes.push("cd-label-"+t.side),n.style.bottom=H(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(t,e){var r=new D.MathNode("mrow",[Re(t.label,e)]);return r=new D.MathNode("mpadded",[r]),r.setAttribute("width","0"),t.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new D.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),K({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(t,e){var{parser:r}=t;return{type:"cdlabelparent",mode:r.mode,fragment:e[0]}},htmlBuilder(t,e){var r=T.wrapFragment(ze(t.fragment,e),e);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(t,e){return new D.MathNode("mrow",[Re(t.fragment,e)])}}),K({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(t,e){for(var{parser:r}=t,n=ge(e[0],"ordgroup"),i=n.body,a="",s=0;s<i.length;s++){var o=ge(i[s],"textord");a+=o.text}var u=parseInt(a),h;if(isNaN(u))throw new F("\\@char has non-numeric argument "+a);if(u<0||u>=1114111)throw new F("\\@char with invalid code point "+a);return u<=65535?h=String.fromCharCode(u):(u-=65536,h=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:r.mode,text:h}}});var zs=(t,e)=>{var r=Ke(t.body,e.withColor(t.color),!1);return T.makeFragment(r)},Es=(t,e)=>{var r=pt(t.body,e.withColor(t.color)),n=new D.MathNode("mstyle",r);return n.setAttribute("mathcolor",t.color),n};K({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(t,e){var{parser:r}=t,n=ge(e[0],"color-token").color,i=e[1];return{type:"color",mode:r.mode,color:n,body:Ge(i)}},htmlBuilder:zs,mathmlBuilder:Es}),K({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(t,e){var{parser:r,breakOnTokenText:n}=t,i=ge(e[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var a=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:i,body:a}},htmlBuilder:zs,mathmlBuilder:Es}),K({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(t,e,r){var{parser:n}=t,i=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,a=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:a,size:i&&ge(i,"size").value}},htmlBuilder(t,e){var r=T.makeSpan(["mspace"],[],e);return t.newLine&&(r.classes.push("newline"),t.size&&(r.style.marginTop=H(Fe(t.size,e)))),r},mathmlBuilder(t,e){var r=new D.MathNode("mspace");return t.newLine&&(r.setAttribute("linebreak","newline"),t.size&&r.setAttribute("height",H(Fe(t.size,e)))),r}});var Xi={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Ts=t=>{var e=t.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new F("Expected a control sequence",t);return e},dh=t=>{var e=t.gullet.popToken();return e.text==="="&&(e=t.gullet.popToken(),e.text===" "&&(e=t.gullet.popToken())),e},As=(t,e,r,n)=>{var i=t.gullet.macros.get(r.text);i==null&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!t.gullet.isExpandable(r.text)}),t.gullet.macros.set(e,i,n)};K({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e,funcName:r}=t;e.consumeSpaces();var n=e.fetch();if(Xi[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Xi[n.text]),ge(e.parseFunction(),"internal");throw new F("Invalid token after macro prefix",n)}}),K({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=e.gullet.popToken(),i=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new F("Expected a control sequence",n);for(var a=0,s,o=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),o[a].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new F('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new F('Argument number "'+n.text+'" out of order');a++,o.push([])}else{if(n.text==="EOF")throw new F("Expected a macro definition");o[a].push(n.text)}var{tokens:u}=e.gullet.consumeArg();return s&&u.unshift(s),(r==="\\edef"||r==="\\xdef")&&(u=e.gullet.expandTokens(u),u.reverse()),e.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},r===Xi[r]),{type:"internal",mode:e.mode}}}),K({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=Ts(e.gullet.popToken());e.gullet.consumeSpaces();var i=dh(e);return As(e,n,i,r==="\\\\globallet"),{type:"internal",mode:e.mode}}}),K({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t){var{parser:e,funcName:r}=t,n=Ts(e.gullet.popToken()),i=e.gullet.popToken(),a=e.gullet.popToken();return As(e,n,a,r==="\\\\globalfuture"),e.gullet.pushToken(a),e.gullet.pushToken(i),{type:"internal",mode:e.mode}}});var un=function(e,r,n){var i=Ie.math[e]&&Ie.math[e].replace,a=Ni(i||e,r,n);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+r+".");return a},Ki=function(e,r,n,i){var a=n.havingBaseStyle(r),s=T.makeSpan(i.concat(a.sizingClasses(n)),[e],n),o=a.sizeMultiplier/n.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},Ms=function(e,r,n){var i=r.havingBaseStyle(n),a=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=H(a),e.height-=a,e.depth+=a},mh=function(e,r,n,i,a,s){var o=T.makeSymbol(e,"Main-Regular",a,i),u=Ki(o,r,i,s);return n&&Ms(u,i,r),u},ph=function(e,r,n,i){return T.makeSymbol(e,"Size"+r+"-Regular",n,i)},Cs=function(e,r,n,i,a,s){var o=ph(e,r,a,i),u=Ki(T.makeSpan(["delimsizing","size"+r],[o],i),se.TEXT,i,s);return n&&Ms(u,i,se.TEXT),u},Yi=function(e,r,n){var i;r==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=T.makeSpan(["delimsizinginner",i],[T.makeSpan([],[T.makeSymbol(e,r,n)])]);return{type:"elem",elem:a}},Zi=function(e,r,n){var i=Ht["Size4-Regular"][e.charCodeAt(0)]?Ht["Size4-Regular"][e.charCodeAt(0)][4]:Ht["Size1-Regular"][e.charCodeAt(0)][4],a=new fr("inner",wc(e,Math.round(1e3*r))),s=new Qt([a],{width:H(i),height:H(r),style:"width:"+H(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=T.makeSvgSpan([],[s],n);return o.height=r,o.style.height=H(r),o.style.width=H(i),{type:"elem",elem:o}},Ji=.008,$n={type:"kern",size:-1*Ji},fh=["|","\\lvert","\\rvert","\\vert"],gh=["\\|","\\lVert","\\rVert","\\Vert"],_s=function(e,r,n,i,a,s){var o,u,h,d,p="",b=0;o=h=d=e,u=null;var f="Size1-Regular";e==="\\uparrow"?h=d="⏐":e==="\\Uparrow"?h=d="‖":e==="\\downarrow"?o=h="⏐":e==="\\Downarrow"?o=h="‖":e==="\\updownarrow"?(o="\\uparrow",h="⏐",d="\\downarrow"):e==="\\Updownarrow"?(o="\\Uparrow",h="‖",d="\\Downarrow"):ie.contains(fh,e)?(h="∣",p="vert",b=333):ie.contains(gh,e)?(h="∥",p="doublevert",b=556):e==="["||e==="\\lbrack"?(o="⎡",h="⎢",d="⎣",f="Size4-Regular",p="lbrack",b=667):e==="]"||e==="\\rbrack"?(o="⎤",h="⎥",d="⎦",f="Size4-Regular",p="rbrack",b=667):e==="\\lfloor"||e==="⌊"?(h=o="⎢",d="⎣",f="Size4-Regular",p="lfloor",b=667):e==="\\lceil"||e==="⌈"?(o="⎡",h=d="⎢",f="Size4-Regular",p="lceil",b=667):e==="\\rfloor"||e==="⌋"?(h=o="⎥",d="⎦",f="Size4-Regular",p="rfloor",b=667):e==="\\rceil"||e==="⌉"?(o="⎤",h=d="⎥",f="Size4-Regular",p="rceil",b=667):e==="("||e==="\\lparen"?(o="⎛",h="⎜",d="⎝",f="Size4-Regular",p="lparen",b=875):e===")"||e==="\\rparen"?(o="⎞",h="⎟",d="⎠",f="Size4-Regular",p="rparen",b=875):e==="\\{"||e==="\\lbrace"?(o="⎧",u="⎨",d="⎩",h="⎪",f="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(o="⎫",u="⎬",d="⎭",h="⎪",f="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(o="⎧",d="⎩",h="⎪",f="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(o="⎫",d="⎭",h="⎪",f="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(o="⎧",d="⎭",h="⎪",f="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(o="⎫",d="⎩",h="⎪",f="Size4-Regular");var z=un(o,f,a),E=z.height+z.depth,O=un(h,f,a),A=O.height+O.depth,N=un(d,f,a),I=N.height+N.depth,Y=0,G=1;if(u!==null){var C=un(u,f,a);Y=C.height+C.depth,G=2}var V=E+I+Y,ee=Math.max(0,Math.ceil((r-V)/(G*A))),j=V+ee*G*A,M=i.fontMetrics().axisHeight;n&&(M*=i.sizeMultiplier);var W=j/2-M,$=[];if(p.length>0){var be=j-E-I,he=Math.round(j*1e3),le=xc(p,Math.round(be*1e3)),Ee=new fr(p,le),Ce=(b/1e3).toFixed(3)+"em",ue=(he/1e3).toFixed(3)+"em",_e=new Qt([Ee],{width:Ce,height:ue,viewBox:"0 0 "+b+" "+he}),w=T.makeSvgSpan([],[_e],i);w.height=he/1e3,w.style.width=Ce,w.style.height=ue,$.push({type:"elem",elem:w})}else{if($.push(Yi(d,f,a)),$.push($n),u===null){var Te=j-E-I+2*Ji;$.push(Zi(h,Te,i))}else{var Ae=(j-E-I-Y)/2+2*Ji;$.push(Zi(h,Ae,i)),$.push($n),$.push(Yi(u,f,a)),$.push($n),$.push(Zi(h,Ae,i))}$.push($n),$.push(Yi(o,f,a))}var k=i.havingBaseStyle(se.TEXT),et=T.makeVList({positionType:"bottom",positionData:W,children:$},k);return Ki(T.makeSpan(["delimsizing","mult"],[et],k),se.TEXT,i,s)},Qi=80,ea=.08,ta=function(e,r,n,i,a){var s=yc(e,i,n),o=new fr(e,s),u=new Qt([o],{width:"400em",height:H(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return T.makeSvgSpan(["hide-tail"],[u],a)},bh=function(e,r){var n=r.havingBaseSizing(),i=Is("\\surd",e*n.sizeMultiplier,Rs,n),a=n.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,u=0,h=0,d=0,p;return i.type==="small"?(d=1e3+1e3*s+Qi,e<1?a=1:e<1.4&&(a=.7),u=(1+s+ea)/a,h=(1+s)/a,o=ta("sqrtMain",u,d,s,r),o.style.minWidth="0.853em",p=.833/a):i.type==="large"?(d=(1e3+Qi)*cn[i.size],h=(cn[i.size]+s)/a,u=(cn[i.size]+s+ea)/a,o=ta("sqrtSize"+i.size,u,d,s,r),o.style.minWidth="1.02em",p=1/a):(u=e+s+ea,h=e+s,d=Math.floor(1e3*e+s)+Qi,o=ta("sqrtTall",u,d,s,r),o.style.minWidth="0.742em",p=1.056),o.height=h,o.style.height=H(u),{span:o,advanceWidth:p,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},Ns=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],vh=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Bs=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],cn=[0,1.2,1.8,2.4,3],yh=function(e,r,n,i,a){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),ie.contains(Ns,e)||ie.contains(Bs,e))return Cs(e,r,!1,n,i,a);if(ie.contains(vh,e))return _s(e,cn[r],!1,n,i,a);throw new F("Illegal delimiter: '"+e+"'")},wh=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],xh=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"stack"}],Rs=[{type:"small",style:se.SCRIPTSCRIPT},{type:"small",style:se.SCRIPT},{type:"small",style:se.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],kh=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Is=function(e,r,n,i){for(var a=Math.min(2,3-i.style.size),s=a;s<n.length&&n[s].type!=="stack";s++){var o=un(e,kh(n[s]),"math"),u=o.height+o.depth;if(n[s].type==="small"){var h=i.havingBaseStyle(n[s].style);u*=h.sizeMultiplier}if(u>r)return n[s]}return n[n.length-1]},Os=function(e,r,n,i,a,s){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var o;ie.contains(Bs,e)?o=wh:ie.contains(Ns,e)?o=Rs:o=xh;var u=Is(e,r,o,i);return u.type==="small"?mh(e,u.style,n,i,a,s):u.type==="large"?Cs(e,u.size,n,i,a,s):_s(e,r,n,i,a,s)},Sh=function(e,r,n,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,h=5/i.fontMetrics().ptPerEm,d=Math.max(r-o,n+o),p=Math.max(d/500*u,2*d-h);return Os(e,p,!0,i,a,s)},ir={sqrtImage:bh,sizedDelim:yh,sizeToMaxHeight:cn,customSizedDelim:Os,leftRightDelim:Sh},Ls={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},zh=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Wn(t,e){var r=Un(t);if(r&&ie.contains(zh,r.text))return r;throw r?new F("Invalid delimiter '"+r.text+"' after '"+e.funcName+"'",t):new F("Invalid delimiter type '"+t.type+"'",t)}K({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(t,e)=>{var r=Wn(e[0],t);return{type:"delimsizing",mode:t.parser.mode,size:Ls[t.funcName].size,mclass:Ls[t.funcName].mclass,delim:r.text}},htmlBuilder:(t,e)=>t.delim==="."?T.makeSpan([t.mclass]):ir.sizedDelim(t.delim,t.size,e,t.mode,[t.mclass]),mathmlBuilder:t=>{var e=[];t.delim!=="."&&e.push(Mt(t.delim,t.mode));var r=new D.MathNode("mo",e);t.mclass==="mopen"||t.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=H(ir.sizeToMaxHeight[t.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Ds(t){if(!t.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}K({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=t.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new F("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:t.parser.mode,delim:Wn(e[0],t).text,color:r}}}),K({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=Wn(e[0],t),n=t.parser;++n.leftrightDepth;var i=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var a=ge(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:i,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(t,e)=>{Ds(t);for(var r=Ke(t.body,e,!0,["mopen","mclose"]),n=0,i=0,a=!1,s=0;s<r.length;s++)r[s].isMiddle?a=!0:(n=Math.max(r[s].height,n),i=Math.max(r[s].depth,i));n*=e.sizeMultiplier,i*=e.sizeMultiplier;var o;if(t.left==="."?o=on(e,["mopen"]):o=ir.leftRightDelim(t.left,n,i,e,t.mode,["mopen"]),r.unshift(o),a)for(var u=1;u<r.length;u++){var h=r[u],d=h.isMiddle;d&&(r[u]=ir.leftRightDelim(d.delim,n,i,d.options,t.mode,[]))}var p;if(t.right===".")p=on(e,["mclose"]);else{var b=t.rightColor?e.withColor(t.rightColor):e;p=ir.leftRightDelim(t.right,n,i,b,t.mode,["mclose"])}return r.push(p),T.makeSpan(["minner"],r,e)},mathmlBuilder:(t,e)=>{Ds(t);var r=pt(t.body,e);if(t.left!=="."){var n=new D.MathNode("mo",[Mt(t.left,t.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(t.right!=="."){var i=new D.MathNode("mo",[Mt(t.right,t.mode)]);i.setAttribute("fence","true"),t.rightColor&&i.setAttribute("mathcolor",t.rightColor),r.push(i)}return $i(r)}}),K({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var r=Wn(e[0],t);if(!t.parser.leftrightDepth)throw new F("\\middle without preceding \\left",r);return{type:"middle",mode:t.parser.mode,delim:r.text}},htmlBuilder:(t,e)=>{var r;if(t.delim===".")r=on(e,[]);else{r=ir.sizedDelim(t.delim,1,e,t.mode,[]);var n={delim:t.delim,options:e};r.isMiddle=n}return r},mathmlBuilder:(t,e)=>{var r=t.delim==="\\vert"||t.delim==="|"?Mt("|","text"):Mt(t.delim,t.mode),n=new D.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var ra=(t,e)=>{var r=T.wrapFragment(ze(t.body,e),e),n=t.label.slice(1),i=e.sizeMultiplier,a,s=0,o=ie.isCharacterBox(t.body);if(n==="sout")a=T.makeSpan(["stretchy","sout"]),a.height=e.fontMetrics().defaultRuleThickness/i,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var u=Fe({number:.6,unit:"pt"},e),h=Fe({number:.35,unit:"ex"},e),d=e.havingBaseSizing();i=i/d.sizeMultiplier;var p=r.height+r.depth+u+h;r.style.paddingLeft=H(p/2+u);var b=Math.floor(1e3*p*i),f=bc(b),z=new Qt([new fr("phase",f)],{width:"400em",height:H(b/1e3),viewBox:"0 0 400000 "+b,preserveAspectRatio:"xMinYMin slice"});a=T.makeSvgSpan(["hide-tail"],[z],e),a.style.height=H(p),s=r.depth+u+h}else{/cancel/.test(n)?o||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var E=0,O=0,A=0;/box/.test(n)?(A=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),E=e.fontMetrics().fboxsep+(n==="colorbox"?0:A),O=E):n==="angl"?(A=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),E=4*A,O=Math.max(0,.25-r.depth)):(E=o?.2:0,O=E),a=nr.encloseSpan(r,n,E,O,e),/fbox|boxed|fcolorbox/.test(n)?(a.style.borderStyle="solid",a.style.borderWidth=H(A)):n==="angl"&&A!==.049&&(a.style.borderTopWidth=H(A),a.style.borderRightWidth=H(A)),s=r.depth+O,t.backgroundColor&&(a.style.backgroundColor=t.backgroundColor,t.borderColor&&(a.style.borderColor=t.borderColor))}var N;if(t.backgroundColor)N=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]},e);else{var I=/cancel|phase/.test(n)?["svg-align"]:[];N=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:I}]},e)}return/cancel/.test(n)&&(N.height=r.height,N.depth=r.depth),/cancel/.test(n)&&!o?T.makeSpan(["mord","cancel-lap"],[N],e):T.makeSpan(["mord"],[N],e)},na=(t,e)=>{var r=0,n=new D.MathNode(t.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Re(t.body,e)]);switch(t.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),t.label==="\\fcolorbox"){var i=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+i+"em solid "+String(t.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return t.backgroundColor&&n.setAttribute("mathbackground",t.backgroundColor),n};K({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=ge(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:ra,mathmlBuilder:na}),K({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(t,e,r){var{parser:n,funcName:i}=t,a=ge(e[0],"color-token").color,s=ge(e[1],"color-token").color,o=e[2];return{type:"enclose",mode:n.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:ra,mathmlBuilder:na}),K({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\fbox",body:e[0]}}}),K({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"enclose",mode:r.mode,label:n,body:i}},htmlBuilder:ra,mathmlBuilder:na}),K({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"enclose",mode:r.mode,label:"\\angl",body:e[0]}}});var Fs={};function Gt(t){for(var{type:e,names:r,props:n,handler:i,htmlBuilder:a,mathmlBuilder:s}=t,o={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u<r.length;++u)Fs[r[u]]=o;a&&(Dn[e]=a),s&&(Fn[e]=s)}var Ps={};function g(t,e){Ps[t]=e}function qs(t){var e=[];t.consumeSpaces();var r=t.fetch().text;for(r==="\\relax"&&(t.consume(),t.consumeSpaces(),r=t.fetch().text);r==="\\hline"||r==="\\hdashline";)t.consume(),e.push(r==="\\hdashline"),t.consumeSpaces(),r=t.fetch().text;return e}var jn=t=>{var e=t.parser.settings;if(!e.displayMode)throw new F("{"+t.envName+"} can be used only in display mode.")};function ia(t){if(t.indexOf("ed")===-1)return t.indexOf("*")===-1}function vr(t,e,r){var{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:h,emptySingleRow:d,maxNumCols:p,leqno:b}=e;if(t.gullet.beginGroup(),h||t.gullet.macros.set("\\cr","\\\\\\relax"),!s){var f=t.gullet.expandMacroAsText("\\arraystretch");if(f==null)s=1;else if(s=parseFloat(f),!s||s<0)throw new F("Invalid \\arraystretch: "+f)}t.gullet.beginGroup();var z=[],E=[z],O=[],A=[],N=u!=null?[]:void 0;function I(){u&&t.gullet.macros.set("\\@eqnsw","1",!0)}function Y(){N&&(t.gullet.macros.get("\\df@tag")?(N.push(t.subparse([new zt("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):N.push(!!u&&t.gullet.macros.get("\\@eqnsw")==="1"))}for(I(),A.push(qs(t));;){var G=t.parseExpression(!1,h?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),G={type:"ordgroup",mode:t.mode,body:G},r&&(G={type:"styling",mode:t.mode,style:r,body:[G]}),z.push(G);var C=t.fetch().text;if(C==="&"){if(p&&z.length===p){if(h||o)throw new F("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else if(C==="\\end"){Y(),z.length===1&&G.type==="styling"&&G.body[0].body.length===0&&(E.length>1||!d)&&E.pop(),A.length<E.length+1&&A.push([]);break}else if(C==="\\\\"){t.consume();var V=void 0;t.gullet.future().text!==" "&&(V=t.parseSizeGroup(!0)),O.push(V?V.value:null),Y(),A.push(qs(t)),z=[],E.push(z),I()}else throw new F("Expected & or \\\\ or \\cr or \\end",t.nextToken)}return t.gullet.endGroup(),t.gullet.endGroup(),{type:"array",mode:t.mode,addJot:i,arraystretch:s,body:E,cols:a,rowGaps:O,hskipBeforeAndAfter:n,hLinesBeforeRow:A,colSeparationType:o,tags:N,leqno:b}}function aa(t){return t.slice(0,1)==="d"?"display":"text"}var $t=function(e,r){var n,i,a=e.body.length,s=e.hLinesBeforeRow,o=0,u=new Array(a),h=[],d=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),p=1/r.fontMetrics().ptPerEm,b=5*p;if(e.colSeparationType&&e.colSeparationType==="small"){var f=r.havingStyle(se.SCRIPT).sizeMultiplier;b=.2778*(f/r.sizeMultiplier)}var z=e.colSeparationType==="CD"?Fe({number:3,unit:"ex"},r):12*p,E=3*p,O=e.arraystretch*z,A=.7*O,N=.3*O,I=0;function Y(kr){for(var ar=0;ar<kr.length;++ar)ar>0&&(I+=.25),h.push({pos:I,isDashed:kr[ar]})}for(Y(s[0]),n=0;n<e.body.length;++n){var G=e.body[n],C=A,V=N;o<G.length&&(o=G.length);var ee=new Array(G.length);for(i=0;i<G.length;++i){var j=ze(G[i],r);V<j.depth&&(V=j.depth),C<j.height&&(C=j.height),ee[i]=j}var M=e.rowGaps[n],W=0;M&&(W=Fe(M,r),W>0&&(W+=N,V<W&&(V=W),W=0)),e.addJot&&(V+=E),ee.height=C,ee.depth=V,I+=C,ee.pos=I,I+=V+W,u[n]=ee,Y(s[n+1])}var $=I/2+r.fontMetrics().axisHeight,be=e.cols||[],he=[],le,Ee,Ce=[];if(e.tags&&e.tags.some(kr=>kr))for(n=0;n<a;++n){var ue=u[n],_e=ue.pos-$,w=e.tags[n],Te=void 0;w===!0?Te=T.makeSpan(["eqn-num"],[],r):w===!1?Te=T.makeSpan([],[],r):Te=T.makeSpan([],Ke(w,r,!0),r),Te.depth=ue.depth,Te.height=ue.height,Ce.push({type:"elem",elem:Te,shift:_e})}for(i=0,Ee=0;i<o||Ee<be.length;++i,++Ee){for(var Ae=be[Ee]||{},k=!0;Ae.type==="separator";){if(k||(le=T.makeSpan(["arraycolsep"],[]),le.style.width=H(r.fontMetrics().doubleRuleSep),he.push(le)),Ae.separator==="|"||Ae.separator===":"){var et=Ae.separator==="|"?"solid":"dashed",it=T.makeSpan(["vertical-separator"],[],r);it.style.height=H(I),it.style.borderRightWidth=H(d),it.style.borderRightStyle=et,it.style.margin="0 "+H(-d/2);var He=I-$;He&&(it.style.verticalAlign=H(-He)),he.push(it)}else throw new F("Invalid separator type: "+Ae.separator);Ee++,Ae=be[Ee]||{},k=!1}if(!(i>=o)){var ft=void 0;(i>0||e.hskipBeforeAndAfter)&&(ft=ie.deflt(Ae.pregap,b),ft!==0&&(le=T.makeSpan(["arraycolsep"],[]),le.style.width=H(ft),he.push(le)));var tt=[];for(n=0;n<a;++n){var _t=u[n],at=_t[i];if(at){var wr=_t.pos-$;at.depth=_t.depth,at.height=_t.height,tt.push({type:"elem",elem:at,shift:wr})}}tt=T.makeVList({positionType:"individualShift",children:tt},r),tt=T.makeSpan(["col-align-"+(Ae.align||"c")],[tt]),he.push(tt),(i<o-1||e.hskipBeforeAndAfter)&&(ft=ie.deflt(Ae.postgap,b),ft!==0&&(le=T.makeSpan(["arraycolsep"],[]),le.style.width=H(ft),he.push(le)))}}if(u=T.makeSpan(["mtable"],he),h.length>0){for(var mn=T.makeLineSpan("hline",r,d),pn=T.makeLineSpan("hdashline",r,d),Or=[{type:"elem",elem:u,shift:0}];h.length>0;){var Lr=h.pop(),Dr=Lr.pos-$;Lr.isDashed?Or.push({type:"elem",elem:pn,shift:Dr}):Or.push({type:"elem",elem:mn,shift:Dr})}u=T.makeVList({positionType:"individualShift",children:Or},r)}if(Ce.length===0)return T.makeSpan(["mord"],[u],r);var xr=T.makeVList({positionType:"individualShift",children:Ce},r);return xr=T.makeSpan(["tag"],[xr],r),T.makeFragment([u,xr])},Eh={c:"center ",l:"left ",r:"right "},Wt=function(e,r){for(var n=[],i=new D.MathNode("mtd",[],["mtr-glue"]),a=new D.MathNode("mtd",[],["mml-eqn-num"]),s=0;s<e.body.length;s++){for(var o=e.body[s],u=[],h=0;h<o.length;h++)u.push(new D.MathNode("mtd",[Re(o[h],r)]));e.tags&&e.tags[s]&&(u.unshift(i),u.push(i),e.leqno?u.unshift(a):u.push(a)),n.push(new D.MathNode("mtr",u))}var d=new D.MathNode("mtable",n),p=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);d.setAttribute("rowspacing",H(p));var b="",f="";if(e.cols&&e.cols.length>0){var z=e.cols,E="",O=!1,A=0,N=z.length;z[0].type==="separator"&&(b+="top ",A=1),z[z.length-1].type==="separator"&&(b+="bottom ",N-=1);for(var I=A;I<N;I++)z[I].type==="align"?(f+=Eh[z[I].align],O&&(E+="none "),O=!0):z[I].type==="separator"&&O&&(E+=z[I].separator==="|"?"solid ":"dashed ",O=!1);d.setAttribute("columnalign",f.trim()),/[sd]/.test(E)&&d.setAttribute("columnlines",E.trim())}if(e.colSeparationType==="align"){for(var Y=e.cols||[],G="",C=1;C<Y.length;C++)G+=C%2?"0em ":"1em ";d.setAttribute("columnspacing",G.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?d.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?d.setAttribute("columnspacing","0.5em"):d.setAttribute("columnspacing","1em");var V="",ee=e.hLinesBeforeRow;b+=ee[0].length>0?"left ":"",b+=ee[ee.length-1].length>0?"right ":"";for(var j=1;j<ee.length-1;j++)V+=ee[j].length===0?"none ":ee[j][0]?"dashed ":"solid ";return/[sd]/.test(V)&&d.setAttribute("rowlines",V.trim()),b!==""&&(d=new D.MathNode("menclose",[d]),d.setAttribute("notation",b.trim())),e.arraystretch&&e.arraystretch<1&&(d=new D.MathNode("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},Us=function(e,r){e.envName.indexOf("ed")===-1&&jn(e);var n=[],i=e.envName.indexOf("at")>-1?"alignat":"align",a=e.envName==="split",s=vr(e.parser,{cols:n,addJot:!0,autoTag:a?void 0:ia(e.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:e.parser.settings.leqno},"display"),o,u=0,h={type:"ordgroup",mode:e.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var d="",p=0;p<r[0].body.length;p++){var b=ge(r[0].body[p],"textord");d+=b.text}o=Number(d),u=o*2}var f=!u;s.body.forEach(function(A){for(var N=1;N<A.length;N+=2){var I=ge(A[N],"styling"),Y=ge(I.body[0],"ordgroup");Y.body.unshift(h)}if(f)u<A.length&&(u=A.length);else{var G=A.length/2;if(o<G)throw new F("Too many math in a row: "+("expected "+o+", but got "+G),A[0])}});for(var z=0;z<u;++z){var E="r",O=0;z%2===1?E="l":z>0&&f&&(O=1),n[z]={type:"align",align:E,pregap:O,postgap:0}}return s.colSeparationType=f?"align":"alignat",s};Gt({type:"array",names:["array","darray"],props:{numArgs:1},handler(t,e){var r=Un(e[0]),n=r?[e[0]]:ge(e[0],"ordgroup").body,i=n.map(function(s){var o=ji(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new F("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return vr(t.parser,a,aa(t.envName))},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(t){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[t.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(t.envName.charAt(t.envName.length-1)==="*"){var i=t.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),r=i.fetch().text,"lcr".indexOf(r)===-1)throw new F("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),n.cols=[{type:"align",align:r}]}}var a=vr(t.parser,n,aa(t.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),e?{type:"leftright",mode:t.mode,body:[a],left:e[0],right:e[1],rightColor:void 0}:a},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(t){var e={arraystretch:.5},r=vr(t.parser,e,"script");return r.colSeparationType="small",r},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["subarray"],props:{numArgs:1},handler(t,e){var r=Un(e[0]),n=r?[e[0]]:ge(e[0],"ordgroup").body,i=n.map(function(s){var o=ji(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new F("Unknown column alignment: "+u,s)});if(i.length>1)throw new F("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=vr(t.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new F("{subarray} can contain only one column");return a},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(t){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=vr(t.parser,e,aa(t.envName));return{type:"leftright",mode:t.mode,body:[r],left:t.envName.indexOf("r")>-1?".":"\\{",right:t.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Us,htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(t){ie.contains(["gather","gather*"],t.envName)&&jn(t);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ia(t.envName),emptySingleRow:!0,leqno:t.parser.settings.leqno};return vr(t.parser,e,"display")},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Us,htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(t){jn(t);var e={autoTag:ia(t.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:t.parser.settings.leqno};return vr(t.parser,e,"display")},htmlBuilder:$t,mathmlBuilder:Wt}),Gt({type:"array",names:["CD"],props:{numArgs:0},handler(t){return jn(t),hh(t.parser)},htmlBuilder:$t,mathmlBuilder:Wt}),g("\\nonumber","\\gdef\\@eqnsw{0}"),g("\\notag","\\nonumber"),K({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(t,e){throw new F(t.funcName+" valid only within array environment")}});var Hs=Fs;K({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];if(i.type!=="ordgroup")throw new F("Invalid environment name",i);for(var a="",s=0;s<i.body.length;++s)a+=ge(i.body[s],"textord").text;if(n==="\\begin"){if(!Hs.hasOwnProperty(a))throw new F("No such environment: "+a,i);var o=Hs[a],{args:u,optArgs:h}=r.parseArguments("\\begin{"+a+"}",o),d={mode:r.mode,envName:a,parser:r},p=o.handler(d,u,h);r.expect("\\end",!1);var b=r.nextToken,f=ge(r.parseFunction(),"environment");if(f.name!==a)throw new F("Mismatch: \\begin{"+a+"} matched by \\end{"+f.name+"}",b);return p}return{type:"environment",mode:r.mode,name:a,nameGroup:i}}});var Gs=(t,e)=>{var r=t.font,n=e.withFont(r);return ze(t.body,n)},$s=(t,e)=>{var r=t.font,n=e.withFont(r);return Re(t.body,n)},Ws={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};K({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=Pn(e[0]),a=n;return a in Ws&&(a=Ws[a]),{type:"font",mode:r.mode,font:a.slice(1),body:i}},htmlBuilder:Gs,mathmlBuilder:$s}),K({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(t,e)=>{var{parser:r}=t,n=e[0],i=ie.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:Gn(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:i}}}),K({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n,breakOnTokenText:i}=t,{mode:a}=r,s=r.parseExpression(!0,i),o="math"+n.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:Gs,mathmlBuilder:$s});var js=(t,e)=>{var r=e;return t==="display"?r=r.id>=se.SCRIPT.id?r.text():se.DISPLAY:t==="text"&&r.size===se.DISPLAY.size?r=se.TEXT:t==="script"?r=se.SCRIPT:t==="scriptscript"&&(r=se.SCRIPTSCRIPT),r},sa=(t,e)=>{var r=js(t.size,e.style),n=r.fracNum(),i=r.fracDen(),a;a=e.havingStyle(n);var s=ze(t.numer,a,e);if(t.continued){var o=8.5/e.fontMetrics().ptPerEm,u=3.5/e.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<u?u:s.depth}a=e.havingStyle(i);var h=ze(t.denom,a,e),d,p,b;t.hasBarLine?(t.barSize?(p=Fe(t.barSize,e),d=T.makeLineSpan("frac-line",e,p)):d=T.makeLineSpan("frac-line",e),p=d.height,b=d.height):(d=null,p=0,b=e.fontMetrics().defaultRuleThickness);var f,z,E;r.size===se.DISPLAY.size||t.size==="display"?(f=e.fontMetrics().num1,p>0?z=3*b:z=7*b,E=e.fontMetrics().denom1):(p>0?(f=e.fontMetrics().num2,z=b):(f=e.fontMetrics().num3,z=3*b),E=e.fontMetrics().denom2);var O;if(d){var N=e.fontMetrics().axisHeight;f-s.depth-(N+.5*p)<z&&(f+=z-(f-s.depth-(N+.5*p))),N-.5*p-(h.height-E)<z&&(E+=z-(N-.5*p-(h.height-E)));var I=-(N-.5*p);O=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:E},{type:"elem",elem:d,shift:I},{type:"elem",elem:s,shift:-f}]},e)}else{var A=f-s.depth-(h.height-E);A<z&&(f+=.5*(z-A),E+=.5*(z-A)),O=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:E},{type:"elem",elem:s,shift:-f}]},e)}a=e.havingStyle(r),O.height*=a.sizeMultiplier/e.sizeMultiplier,O.depth*=a.sizeMultiplier/e.sizeMultiplier;var Y;r.size===se.DISPLAY.size?Y=e.fontMetrics().delim1:r.size===se.SCRIPTSCRIPT.size?Y=e.havingStyle(se.SCRIPT).fontMetrics().delim2:Y=e.fontMetrics().delim2;var G,C;return t.leftDelim==null?G=on(e,["mopen"]):G=ir.customSizedDelim(t.leftDelim,Y,!0,e.havingStyle(r),t.mode,["mopen"]),t.continued?C=T.makeSpan([]):t.rightDelim==null?C=on(e,["mclose"]):C=ir.customSizedDelim(t.rightDelim,Y,!0,e.havingStyle(r),t.mode,["mclose"]),T.makeSpan(["mord"].concat(a.sizingClasses(e)),[G,T.makeSpan(["mfrac"],[O]),C],e)},oa=(t,e)=>{var r=new D.MathNode("mfrac",[Re(t.numer,e),Re(t.denom,e)]);if(!t.hasBarLine)r.setAttribute("linethickness","0px");else if(t.barSize){var n=Fe(t.barSize,e);r.setAttribute("linethickness",H(n))}var i=js(t.size,e.style);if(i.size!==e.style.size){r=new D.MathNode("mstyle",[r]);var a=i.size===se.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",a),r.setAttribute("scriptlevel","0")}if(t.leftDelim!=null||t.rightDelim!=null){var s=[];if(t.leftDelim!=null){var o=new D.MathNode("mo",[new D.TextNode(t.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(r),t.rightDelim!=null){var u=new D.MathNode("mo",[new D.TextNode(t.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return $i(s)}return r};K({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1],s,o=null,u=null,h="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:h,barSize:null}},htmlBuilder:sa,mathmlBuilder:oa}),K({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=e[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),K({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(t){var{parser:e,funcName:r,token:n}=t,i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:i,token:n}}});var Vs=["display","text","script","scriptscript"],Xs=function(e){var r=null;return e.length>0&&(r=e,r=r==="."?null:r),r};K({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(t,e){var{parser:r}=t,n=e[4],i=e[5],a=Pn(e[0]),s=a.type==="atom"&&a.family==="open"?Xs(a.text):null,o=Pn(e[1]),u=o.type==="atom"&&o.family==="close"?Xs(o.text):null,h=ge(e[2],"size"),d,p=null;h.isBlank?d=!0:(p=h.value,d=p.number>0);var b="auto",f=e[3];if(f.type==="ordgroup"){if(f.body.length>0){var z=ge(f.body[0],"textord");b=Vs[Number(z.text)]}}else f=ge(f,"textord"),b=Vs[Number(f.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:i,continued:!1,hasBarLine:d,barSize:p,leftDelim:s,rightDelim:u,size:b}},htmlBuilder:sa,mathmlBuilder:oa}),K({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(t,e){var{parser:r,funcName:n,token:i}=t;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:ge(e[0],"size").value,token:i}}}),K({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0],a=rc(ge(e[1],"infix").size),s=e[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:sa,mathmlBuilder:oa});var Ks=(t,e)=>{var r=e.style,n,i;t.type==="supsub"?(n=t.sup?ze(t.sup,e.havingStyle(r.sup()),e):ze(t.sub,e.havingStyle(r.sub()),e),i=ge(t.base,"horizBrace")):i=ge(t,"horizBrace");var a=ze(i.base,e.havingBaseStyle(se.DISPLAY)),s=nr.svgSpan(i,e),o;if(i.isOver?(o=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},e),o.children[0].children[0].children[1].classes.push("svg-align")):(o=T.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},e),o.children[0].children[0].children[0].classes.push("svg-align")),n){var u=T.makeSpan(["mord",i.isOver?"mover":"munder"],[o],e);i.isOver?o=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]},e):o=T.makeVList({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]},e)}return T.makeSpan(["mord",i.isOver?"mover":"munder"],[o],e)},Th=(t,e)=>{var r=nr.mathMLnode(t.label);return new D.MathNode(t.isOver?"mover":"munder",[Re(t.base,e),r])};K({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(t,e){var{parser:r,funcName:n}=t;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:Ks,mathmlBuilder:Th}),K({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[1],i=ge(e[0],"url").url;return r.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:r.mode,href:i,body:Ge(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(t,e)=>{var r=Ke(t.body,e,!1);return T.makeAnchor(t.href,[],r,e)},mathmlBuilder:(t,e)=>{var r=br(t.body,e);return r instanceof At||(r=new At("mrow",[r])),r.setAttribute("href",t.href),r}}),K({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=ge(e[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var i=[],a=0;a<n.length;a++){var s=n[a];s==="~"&&(s="\\textasciitilde"),i.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:r.mode,font:"\\texttt",body:i};return{type:"href",mode:r.mode,href:n,body:Ge(o)}}}),K({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(t,e){var{parser:r}=t;return{type:"hbox",mode:r.mode,body:Ge(e[0])}},htmlBuilder(t,e){var r=Ke(t.body,e,!1);return T.makeFragment(r)},mathmlBuilder(t,e){return new D.MathNode("mrow",pt(t.body,e))}}),K({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n,token:i}=t,a=ge(e[0],"raw").string,s=e[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(n){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var h=a.split(","),d=0;d<h.length;d++){var p=h[d].split("=");if(p.length!==2)throw new F("Error parsing key-value for \\htmlData");u["data-"+p[0].trim()]=p[1].trim()}o={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(o)?{type:"html",mode:r.mode,attributes:u,body:Ge(s)}:r.formatUnsupportedCmd(n)},htmlBuilder:(t,e)=>{var r=Ke(t.body,e,!1),n=["enclosing"];t.attributes.class&&n.push(...t.attributes.class.trim().split(/\s+/));var i=T.makeSpan(n,r,e);for(var a in t.attributes)a!=="class"&&t.attributes.hasOwnProperty(a)&&i.setAttribute(a,t.attributes[a]);return i},mathmlBuilder:(t,e)=>br(t.body,e)}),K({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"htmlmathml",mode:r.mode,html:Ge(e[0]),mathml:Ge(e[1])}},htmlBuilder:(t,e)=>{var r=Ke(t.html,e,!1);return T.makeFragment(r)},mathmlBuilder:(t,e)=>br(t.mathml,e)});var la=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!r)throw new F("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!Z0(n))throw new F("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};K({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,r)=>{var{parser:n}=t,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var u=ge(r[0],"raw").string,h=u.split(","),d=0;d<h.length;d++){var p=h[d].split("=");if(p.length===2){var b=p[1].trim();switch(p[0].trim()){case"alt":o=b;break;case"width":i=la(b);break;case"height":a=la(b);break;case"totalheight":s=la(b);break;default:throw new F("Invalid key: '"+p[0]+"' in \\includegraphics.")}}}var f=ge(e[0],"url").url;return o===""&&(o=f,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:f})?{type:"includegraphics",mode:n.mode,alt:o,width:i,height:a,totalheight:s,src:f}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(t,e)=>{var r=Fe(t.height,e),n=0;t.totalheight.number>0&&(n=Fe(t.totalheight,e)-r);var i=0;t.width.number>0&&(i=Fe(t.width,e));var a={height:H(r+n)};i>0&&(a.width=H(i)),n>0&&(a.verticalAlign=H(-n));var s=new Tc(t.src,t.alt,a);return s.height=r,s.depth=n,s},mathmlBuilder:(t,e)=>{var r=new D.MathNode("mglyph",[]);r.setAttribute("alt",t.alt);var n=Fe(t.height,e),i=0;if(t.totalheight.number>0&&(i=Fe(t.totalheight,e)-n,r.setAttribute("valign",H(-i))),r.setAttribute("height",H(n+i)),t.width.number>0){var a=Fe(t.width,e);r.setAttribute("width",H(a))}return r.setAttribute("src",t.src),r}}),K({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=ge(e[0],"size");if(r.settings.strict){var a=n[1]==="m",s=i.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+i.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(t,e){return T.makeGlue(t.dimension,e)},mathmlBuilder(t,e){var r=Fe(t.dimension,e);return new D.SpaceNode(r)}}),K({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:i}},htmlBuilder:(t,e)=>{var r;t.alignment==="clap"?(r=T.makeSpan([],[ze(t.body,e)]),r=T.makeSpan(["inner"],[r],e)):r=T.makeSpan(["inner"],[ze(t.body,e)]);var n=T.makeSpan(["fix"],[]),i=T.makeSpan([t.alignment],[r,n],e),a=T.makeSpan(["strut"]);return a.style.height=H(i.height+i.depth),i.depth&&(a.style.verticalAlign=H(-i.depth)),i.children.unshift(a),i=T.makeSpan(["thinbox"],[i],e),T.makeSpan(["mord","vbox"],[i],e)},mathmlBuilder:(t,e)=>{var r=new D.MathNode("mpadded",[Re(t.body,e)]);if(t.alignment!=="rlap"){var n=t.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}}),K({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){var{funcName:r,parser:n}=t,i=n.mode;n.switchMode("math");var a=r==="\\("?"\\)":"$",s=n.parseExpression(!1,a);return n.expect(a),n.switchMode(i),{type:"styling",mode:n.mode,style:"text",body:s}}}),K({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(t,e){throw new F("Mismatched "+t.funcName)}});var Ys=(t,e)=>{switch(e.style.size){case se.DISPLAY.size:return t.display;case se.TEXT.size:return t.text;case se.SCRIPT.size:return t.script;case se.SCRIPTSCRIPT.size:return t.scriptscript;default:return t.text}};K({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(t,e)=>{var{parser:r}=t;return{type:"mathchoice",mode:r.mode,display:Ge(e[0]),text:Ge(e[1]),script:Ge(e[2]),scriptscript:Ge(e[3])}},htmlBuilder:(t,e)=>{var r=Ys(t,e),n=Ke(r,e,!1);return T.makeFragment(n)},mathmlBuilder:(t,e)=>{var r=Ys(t,e);return br(r,e)}});var Zs=(t,e,r,n,i,a,s)=>{t=T.makeSpan([],[t]);var o=r&&ie.isCharacterBox(r),u,h;if(e){var d=ze(e,n.havingStyle(i.sup()),n);h={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var p=ze(r,n.havingStyle(i.sub()),n);u={elem:p,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-p.height)}}var b;if(h&&u){var f=n.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+t.depth+s;b=T.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:H(-a)},{type:"kern",size:u.kern},{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:H(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(u){var z=t.height-s;b=T.makeVList({positionType:"top",positionData:z,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:H(-a)},{type:"kern",size:u.kern},{type:"elem",elem:t}]},n)}else if(h){var E=t.depth+s;b=T.makeVList({positionType:"bottom",positionData:E,children:[{type:"elem",elem:t},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:H(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return t;var O=[b];if(u&&a!==0&&!o){var A=T.makeSpan(["mspace"],[],n);A.style.marginRight=H(a),O.unshift(A)}return T.makeSpan(["mop","op-limits"],O,n)},Js=["\\smallint"],Zr=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=ge(t.base,"op"),i=!0):a=ge(t,"op");var s=e.style,o=!1;s.size===se.DISPLAY.size&&a.symbol&&!ie.contains(Js,a.name)&&(o=!0);var u;if(a.symbol){var h=o?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),u=T.makeSymbol(a.name,h,"math",e,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var p=u.italic,b=T.staticSvg(d+"Size"+(o?"2":"1"),e);u=T.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:b,shift:o?.08:0}]},e),a.name="\\"+d,u.classes.unshift("mop"),u.italic=p}}else if(a.body){var f=Ke(a.body,e,!0);f.length===1&&f[0]instanceof Tt?(u=f[0],u.classes[0]="mop"):u=T.makeSpan(["mop"],f,e)}else{for(var z=[],E=1;E<a.name.length;E++)z.push(T.mathsym(a.name[E],a.mode,e));u=T.makeSpan(["mop"],z,e)}var O=0,A=0;return(u instanceof Tt||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift&&(O=(u.height-u.depth)/2-e.fontMetrics().axisHeight,A=u.italic),i?Zs(u,r,n,e,s,A,O):(O&&(u.style.position="relative",u.style.top=H(O)),u)},hn=(t,e)=>{var r;if(t.symbol)r=new At("mo",[Mt(t.name,t.mode)]),ie.contains(Js,t.name)&&r.setAttribute("largeop","false");else if(t.body)r=new At("mo",pt(t.body,e));else{r=new At("mi",[new ln(t.name.slice(1))]);var n=new At("mo",[Mt("","text")]);t.parentIsSupSub?r=new At("mrow",[r,n]):r=fs([r,n])}return r},Ah={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};K({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=n;return i.length===1&&(i=Ah[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Zr,mathmlBuilder:hn}),K({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ge(n)}},htmlBuilder:Zr,mathmlBuilder:hn});var Mh={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};K({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Zr,mathmlBuilder:hn}),K({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Zr,mathmlBuilder:hn}),K({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(t){var{parser:e,funcName:r}=t,n=r;return n.length===1&&(n=Mh[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Zr,mathmlBuilder:hn});var Qs=(t,e)=>{var r,n,i=!1,a;t.type==="supsub"?(r=t.sup,n=t.sub,a=ge(t.base,"operatorname"),i=!0):a=ge(t,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(p=>{var b=p.text;return typeof b=="string"?{type:"textord",mode:p.mode,text:b}:p}),u=Ke(o,e.withFont("mathrm"),!0),h=0;h<u.length;h++){var d=u[h];d instanceof Tt&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=T.makeSpan(["mop"],u,e)}else s=T.makeSpan(["mop"],[],e);return i?Zs(s,r,n,e,e.style,0,0):s},Ch=(t,e)=>{for(var r=pt(t.body,e.withFont("mathrm")),n=!0,i=0;i<r.length;i++){var a=r[i];if(!(a instanceof D.SpaceNode))if(a instanceof D.MathNode)switch(a.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var s=a.children[0];a.children.length===1&&s instanceof D.TextNode?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var o=r.map(d=>d.toText()).join("");r=[new D.TextNode(o)]}var u=new D.MathNode("mi",r);u.setAttribute("mathvariant","normal");var h=new D.MathNode("mo",[Mt("","text")]);return t.parentIsSupSub?new D.MathNode("mrow",[u,h]):D.newDocumentFragment([u,h])};K({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(t,e)=>{var{parser:r,funcName:n}=t,i=e[0];return{type:"operatorname",mode:r.mode,body:Ge(i),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Qs,mathmlBuilder:Ch}),g("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Ir({type:"ordgroup",htmlBuilder(t,e){return t.semisimple?T.makeFragment(Ke(t.body,e,!1)):T.makeSpan(["mord"],Ke(t.body,e,!0),e)},mathmlBuilder(t,e){return br(t.body,e,!0)}}),K({type:"overline",names:["\\overline"],props:{numArgs:1},handler(t,e){var{parser:r}=t,n=e[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(t,e){var r=ze(t.body,e.havingCrampedStyle()),n=T.makeLineSpan("overline-line",e),i=e.fontMetrics().defaultRuleThickness,a=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n},{type:"kern",size:i}]},e);return T.makeSpan(["mord","overline"],[a],e)},mathmlBuilder(t,e){var r=new D.MathNode("mo",[new D.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new D.MathNode("mover",[Re(t.body,e),r]);return n.setAttribute("accent","true"),n}}),K({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"phantom",mode:r.mode,body:Ge(n)}},htmlBuilder:(t,e)=>{var r=Ke(t.body,e.withPhantom(),!1);return T.makeFragment(r)},mathmlBuilder:(t,e)=>{var r=pt(t.body,e);return new D.MathNode("mphantom",r)}}),K({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=T.makeSpan([],[ze(t.body,e.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},e),T.makeSpan(["mord"],[r],e)},mathmlBuilder:(t,e)=>{var r=pt(Ge(t.body),e),n=new D.MathNode("mphantom",r),i=new D.MathNode("mpadded",[n]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}}),K({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(t,e)=>{var{parser:r}=t,n=e[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(t,e)=>{var r=T.makeSpan(["inner"],[ze(t.body,e.withPhantom())]),n=T.makeSpan(["fix"],[]);return T.makeSpan(["mord","rlap"],[r,n],e)},mathmlBuilder:(t,e)=>{var r=pt(Ge(t.body),e),n=new D.MathNode("mphantom",r),i=new D.MathNode("mpadded",[n]);return i.setAttribute("width","0px"),i}}),K({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(t,e){var{parser:r}=t,n=ge(e[0],"size").value,i=e[1];return{type:"raisebox",mode:r.mode,dy:n,body:i}},htmlBuilder(t,e){var r=ze(t.body,e),n=Fe(t.dy,e);return T.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},e)},mathmlBuilder(t,e){var r=new D.MathNode("mpadded",[Re(t.body,e)]),n=t.dy.number+t.dy.unit;return r.setAttribute("voffset",n),r}}),K({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(t){var{parser:e}=t;return{type:"internal",mode:e.mode}}}),K({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(t,e,r){var{parser:n}=t,i=r[0],a=ge(e[0],"size"),s=ge(e[1],"size");return{type:"rule",mode:n.mode,shift:i&&ge(i,"size").value,width:a.value,height:s.value}},htmlBuilder(t,e){var r=T.makeSpan(["mord","rule"],[],e),n=Fe(t.width,e),i=Fe(t.height,e),a=t.shift?Fe(t.shift,e):0;return r.style.borderRightWidth=H(n),r.style.borderTopWidth=H(i),r.style.bottom=H(a),r.width=n,r.height=i+a,r.depth=-a,r.maxFontSize=i*1.125*e.sizeMultiplier,r},mathmlBuilder(t,e){var r=Fe(t.width,e),n=Fe(t.height,e),i=t.shift?Fe(t.shift,e):0,a=e.color&&e.getColor()||"black",s=new D.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",H(r)),s.setAttribute("height",H(n));var o=new D.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",H(i)):(o.setAttribute("height",H(i)),o.setAttribute("depth",H(-i))),o.setAttribute("voffset",H(i)),o}});function eo(t,e,r){for(var n=Ke(t,e,!1),i=e.sizeMultiplier/r.sizeMultiplier,a=0;a<n.length;a++){var s=n[a].classes.indexOf("sizing");s<0?Array.prototype.push.apply(n[a].classes,e.sizingClasses(r)):n[a].classes[s+1]==="reset-size"+e.size&&(n[a].classes[s+1]="reset-size"+r.size),n[a].height*=i,n[a].depth*=i}return T.makeFragment(n)}var to=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],_h=(t,e)=>{var r=e.havingSize(t.size);return eo(t.body,r,e)};K({type:"sizing",names:to,props:{numArgs:0,allowedInText:!0},handler:(t,e)=>{var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!1,r);return{type:"sizing",mode:i.mode,size:to.indexOf(n)+1,body:a}},htmlBuilder:_h,mathmlBuilder:(t,e)=>{var r=e.havingSize(t.size),n=pt(t.body,r),i=new D.MathNode("mstyle",n);return i.setAttribute("mathsize",H(r.sizeMultiplier)),i}}),K({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(t,e,r)=>{var{parser:n}=t,i=!1,a=!1,s=r[0]&&ge(r[0],"ordgroup");if(s)for(var o="",u=0;u<s.body.length;++u){var h=s.body[u];if(o=h.text,o==="t")i=!0;else if(o==="b")a=!0;else{i=!1,a=!1;break}}else i=!0,a=!0;var d=e[0];return{type:"smash",mode:n.mode,body:d,smashHeight:i,smashDepth:a}},htmlBuilder:(t,e)=>{var r=T.makeSpan([],[ze(t.body,e)]);if(!t.smashHeight&&!t.smashDepth)return r;if(t.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(t.smashDepth&&(r.depth=0,r.children))for(var i=0;i<r.children.length;i++)r.children[i].depth=0;var a=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},e);return T.makeSpan(["mord"],[a],e)},mathmlBuilder:(t,e)=>{var r=new D.MathNode("mpadded",[Re(t.body,e)]);return t.smashHeight&&r.setAttribute("height","0px"),t.smashDepth&&r.setAttribute("depth","0px"),r}}),K({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(t,e,r){var{parser:n}=t,i=r[0],a=e[0];return{type:"sqrt",mode:n.mode,body:a,index:i}},htmlBuilder(t,e){var r=ze(t.body,e.havingCrampedStyle());r.height===0&&(r.height=e.fontMetrics().xHeight),r=T.wrapFragment(r,e);var n=e.fontMetrics(),i=n.defaultRuleThickness,a=i;e.style.id<se.TEXT.id&&(a=e.fontMetrics().xHeight);var s=i+a/4,o=r.height+r.depth+s+i,{span:u,ruleWidth:h,advanceWidth:d}=ir.sqrtImage(o,e),p=u.height-h;p>r.height+r.depth+s&&(s=(s+p-r.height-r.depth)/2);var b=u.height-r.height-s-h;r.style.paddingLeft=H(d);var f=T.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+b)},{type:"elem",elem:u},{type:"kern",size:h}]},e);if(t.index){var z=e.havingStyle(se.SCRIPTSCRIPT),E=ze(t.index,z,e),O=.6*(f.height-f.depth),A=T.makeVList({positionType:"shift",positionData:-O,children:[{type:"elem",elem:E}]},e),N=T.makeSpan(["root"],[A]);return T.makeSpan(["mord","sqrt"],[N,f],e)}else return T.makeSpan(["mord","sqrt"],[f],e)},mathmlBuilder(t,e){var{body:r,index:n}=t;return n?new D.MathNode("mroot",[Re(r,e),Re(n,e)]):new D.MathNode("msqrt",[Re(r,e)])}});var ro={display:se.DISPLAY,text:se.TEXT,script:se.SCRIPT,scriptscript:se.SCRIPTSCRIPT};K({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(t,e){var{breakOnTokenText:r,funcName:n,parser:i}=t,a=i.parseExpression(!0,r),s=n.slice(1,n.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(t,e){var r=ro[t.style],n=e.havingStyle(r).withFont("");return eo(t.body,n,e)},mathmlBuilder(t,e){var r=ro[t.style],n=e.havingStyle(r),i=pt(t.body,n),a=new D.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[t.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Nh=function(e,r){var n=e.base;if(n)if(n.type==="op"){var i=n.limits&&(r.style.size===se.DISPLAY.size||n.alwaysHandleSupSub);return i?Zr:null}else if(n.type==="operatorname"){var a=n.alwaysHandleSupSub&&(r.style.size===se.DISPLAY.size||n.limits);return a?Qs:null}else{if(n.type==="accent")return ie.isCharacterBox(n.base)?Vi:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?Ks:null}else return null}else return null};Ir({type:"supsub",htmlBuilder(t,e){var r=Nh(t,e);if(r)return r(t,e);var{base:n,sup:i,sub:a}=t,s=ze(n,e),o,u,h=e.fontMetrics(),d=0,p=0,b=n&&ie.isCharacterBox(n);if(i){var f=e.havingStyle(e.style.sup());o=ze(i,f,e),b||(d=s.height-f.fontMetrics().supDrop*f.sizeMultiplier/e.sizeMultiplier)}if(a){var z=e.havingStyle(e.style.sub());u=ze(a,z,e),b||(p=s.depth+z.fontMetrics().subDrop*z.sizeMultiplier/e.sizeMultiplier)}var E;e.style===se.DISPLAY?E=h.sup1:e.style.cramped?E=h.sup3:E=h.sup2;var O=e.sizeMultiplier,A=H(.5/h.ptPerEm/O),N=null;if(u){var I=t.base&&t.base.type==="op"&&t.base.name&&(t.base.name==="\\oiint"||t.base.name==="\\oiiint");(s instanceof Tt||I)&&(N=H(-s.italic))}var Y;if(o&&u){d=Math.max(d,E,o.depth+.25*h.xHeight),p=Math.max(p,h.sub2);var G=h.defaultRuleThickness,C=4*G;if(d-o.depth-(u.height-p)<C){p=C-(d-o.depth)+u.height;var V=.8*h.xHeight-(d-o.depth);V>0&&(d+=V,p-=V)}var ee=[{type:"elem",elem:u,shift:p,marginRight:A,marginLeft:N},{type:"elem",elem:o,shift:-d,marginRight:A}];Y=T.makeVList({positionType:"individualShift",children:ee},e)}else if(u){p=Math.max(p,h.sub1,u.height-.8*h.xHeight);var j=[{type:"elem",elem:u,marginLeft:N,marginRight:A}];Y=T.makeVList({positionType:"shift",positionData:p,children:j},e)}else if(o)d=Math.max(d,E,o.depth+.25*h.xHeight),Y=T.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:A}]},e);else throw new Error("supsub must have either sup or sub.");var M=Hi(s,"right")||"mord";return T.makeSpan([M],[s,T.makeSpan(["msupsub"],[Y])],e)},mathmlBuilder(t,e){var r=!1,n,i;t.base&&t.base.type==="horizBrace"&&(i=!!t.sup,i===t.base.isOver&&(r=!0,n=t.base.isOver)),t.base&&(t.base.type==="op"||t.base.type==="operatorname")&&(t.base.parentIsSupSub=!0);var a=[Re(t.base,e)];t.sub&&a.push(Re(t.sub,e)),t.sup&&a.push(Re(t.sup,e));var s;if(r)s=n?"mover":"munder";else if(t.sub)if(t.sup){var h=t.base;h&&h.type==="op"&&h.limits&&e.style===se.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(e.style===se.DISPLAY||h.limits)?s="munderover":s="msubsup"}else{var u=t.base;u&&u.type==="op"&&u.limits&&(e.style===se.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||e.style===se.DISPLAY)?s="munder":s="msub"}else{var o=t.base;o&&o.type==="op"&&o.limits&&(e.style===se.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||e.style===se.DISPLAY)?s="mover":s="msup"}return new D.MathNode(s,a)}}),Ir({type:"atom",htmlBuilder(t,e){return T.mathsym(t.text,t.mode,e,["m"+t.family])},mathmlBuilder(t,e){var r=new D.MathNode("mo",[Mt(t.text,t.mode)]);if(t.family==="bin"){var n=Wi(t,e);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else t.family==="punct"?r.setAttribute("separator","true"):(t.family==="open"||t.family==="close")&&r.setAttribute("stretchy","false");return r}});var no={mi:"italic",mn:"normal",mtext:"normal"};Ir({type:"mathord",htmlBuilder(t,e){return T.makeOrd(t,e,"mathord")},mathmlBuilder(t,e){var r=new D.MathNode("mi",[Mt(t.text,t.mode,e)]),n=Wi(t,e)||"italic";return n!==no[r.type]&&r.setAttribute("mathvariant",n),r}}),Ir({type:"textord",htmlBuilder(t,e){return T.makeOrd(t,e,"textord")},mathmlBuilder(t,e){var r=Mt(t.text,t.mode,e),n=Wi(t,e)||"normal",i;return t.mode==="text"?i=new D.MathNode("mtext",[r]):/[0-9]/.test(t.text)?i=new D.MathNode("mn",[r]):t.text==="\\prime"?i=new D.MathNode("mo",[r]):i=new D.MathNode("mi",[r]),n!==no[i.type]&&i.setAttribute("mathvariant",n),i}});var ua={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ca={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ir({type:"spacing",htmlBuilder(t,e){if(ca.hasOwnProperty(t.text)){var r=ca[t.text].className||"";if(t.mode==="text"){var n=T.makeOrd(t,e,"textord");return n.classes.push(r),n}else return T.makeSpan(["mspace",r],[T.mathsym(t.text,t.mode,e)],e)}else{if(ua.hasOwnProperty(t.text))return T.makeSpan(["mspace",ua[t.text]],[],e);throw new F('Unknown type of space "'+t.text+'"')}},mathmlBuilder(t,e){var r;if(ca.hasOwnProperty(t.text))r=new D.MathNode("mtext",[new D.TextNode(" ")]);else{if(ua.hasOwnProperty(t.text))return new D.MathNode("mspace");throw new F('Unknown type of space "'+t.text+'"')}return r}});var io=()=>{var t=new D.MathNode("mtd",[]);return t.setAttribute("width","50%"),t};Ir({type:"tag",mathmlBuilder(t,e){var r=new D.MathNode("mtable",[new D.MathNode("mtr",[io(),new D.MathNode("mtd",[br(t.body,e)]),io(),new D.MathNode("mtd",[br(t.tag,e)])])]);return r.setAttribute("width","100%"),r}});var ao={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},so={"\\textbf":"textbf","\\textmd":"textmd"},Bh={"\\textit":"textit","\\textup":"textup"},oo=(t,e)=>{var r=t.font;if(r){if(ao[r])return e.withTextFontFamily(ao[r]);if(so[r])return e.withTextFontWeight(so[r]);if(r==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(Bh[r])};K({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(t,e){var{parser:r,funcName:n}=t,i=e[0];return{type:"text",mode:r.mode,body:Ge(i),font:n}},htmlBuilder(t,e){var r=oo(t,e),n=Ke(t.body,r,!0);return T.makeSpan(["mord","text"],n,r)},mathmlBuilder(t,e){var r=oo(t,e);return br(t.body,r)}}),K({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(t,e){var{parser:r}=t;return{type:"underline",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=ze(t.body,e),n=T.makeLineSpan("underline-line",e),i=e.fontMetrics().defaultRuleThickness,a=T.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r}]},e);return T.makeSpan(["mord","underline"],[a],e)},mathmlBuilder(t,e){var r=new D.MathNode("mo",[new D.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new D.MathNode("munder",[Re(t.body,e),r]);return n.setAttribute("accentunder","true"),n}}),K({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(t,e){var{parser:r}=t;return{type:"vcenter",mode:r.mode,body:e[0]}},htmlBuilder(t,e){var r=ze(t.body,e),n=e.fontMetrics().axisHeight,i=.5*(r.height-n-(r.depth+n));return T.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]},e)},mathmlBuilder(t,e){return new D.MathNode("mpadded",[Re(t.body,e)],["vcenter"])}}),K({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(t,e,r){throw new F("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(t,e){for(var r=lo(t),n=[],i=e.havingStyle(e.style.text()),a=0;a<r.length;a++){var s=r[a];s==="~"&&(s="\\textasciitilde"),n.push(T.makeSymbol(s,"Typewriter-Regular",t.mode,i,["mord","texttt"]))}return T.makeSpan(["mord","text"].concat(i.sizingClasses(e)),T.tryCombineChars(n),i)},mathmlBuilder(t,e){var r=new D.TextNode(lo(t)),n=new D.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var lo=t=>t.body.replace(/ /g,t.star?"␣":" "),yr=ds,uo=`[ \r
|
|
262
262
|
]`,Rh="\\\\[a-zA-Z@]+",Ih="\\\\[^\uD800-\uDFFF]",Oh="("+Rh+")"+uo+"*",Lh=`\\\\(
|
|
263
263
|
|[ \r ]+
|
|
264
|
-
?)[ \r ]*`,
|
|
265
|
-
`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new zt(i,new bt(this,r,this.tokenRegex.lastIndex))}}class Ph{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new F("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}}var qh=Ps;g("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}}),g("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}}),g("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}}),g("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}}),g("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}}),g("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),g("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var ho={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};g("\\char",function(t){var e=t.popToken(),r,n="";if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new F("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=ho[e.text],n==null||n>=r)throw new F("Invalid base-"+r+" digit "+e.text);for(var i;(i=ho[t.future().text])!=null&&i<r;)n*=r,n+=i,t.popToken()}return"\\@char{"+n+"}"});var ha=(t,e,r)=>{var n=t.consumeArg().tokens;if(n.length!==1)throw new F("\\newcommand's first argument must be a macro name");var i=n[0].text,a=t.isDefined(i);if(a&&!e)throw new F("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!r)throw new F("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(n=t.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var o="",u=t.expandNextToken();u.text!=="]"&&u.text!=="EOF";)o+=u.text,u=t.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new F("Invalid number of arguments: "+o);s=parseInt(o),n=t.consumeArg().tokens}return t.macros.set(i,{tokens:n,numArgs:s}),""};g("\\newcommand",t=>ha(t,!1,!0)),g("\\renewcommand",t=>ha(t,!0,!1)),g("\\providecommand",t=>ha(t,!0,!0)),g("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""}),g("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""}),g("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),yr[r],Ie.math[r],Ie.text[r]),""}),g("\\bgroup","{"),g("\\egroup","}"),g("~","\\nobreakspace"),g("\\lq","`"),g("\\rq","'"),g("\\aa","\\r a"),g("\\AA","\\r A"),g("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),g("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),g("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),g("ℬ","\\mathscr{B}"),g("ℰ","\\mathscr{E}"),g("ℱ","\\mathscr{F}"),g("ℋ","\\mathscr{H}"),g("ℐ","\\mathscr{I}"),g("ℒ","\\mathscr{L}"),g("ℳ","\\mathscr{M}"),g("ℛ","\\mathscr{R}"),g("ℭ","\\mathfrak{C}"),g("ℌ","\\mathfrak{H}"),g("ℨ","\\mathfrak{Z}"),g("\\Bbbk","\\Bbb{k}"),g("·","\\cdotp"),g("\\llap","\\mathllap{\\textrm{#1}}"),g("\\rlap","\\mathrlap{\\textrm{#1}}"),g("\\clap","\\mathclap{\\textrm{#1}}"),g("\\mathstrut","\\vphantom{(}"),g("\\underbar","\\underline{\\text{#1}}"),g("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),g("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),g("\\ne","\\neq"),g("≠","\\neq"),g("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),g("∉","\\notin"),g("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),g("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),g("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),g("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),g("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),g("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),g("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),g("⟂","\\perp"),g("‼","\\mathclose{!\\mkern-0.8mu!}"),g("∌","\\notni"),g("⌜","\\ulcorner"),g("⌝","\\urcorner"),g("⌞","\\llcorner"),g("⌟","\\lrcorner"),g("©","\\copyright"),g("®","\\textregistered"),g("️","\\textregistered"),g("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),g("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),g("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),g("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),g("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),g("⋮","\\vdots"),g("\\varGamma","\\mathit{\\Gamma}"),g("\\varDelta","\\mathit{\\Delta}"),g("\\varTheta","\\mathit{\\Theta}"),g("\\varLambda","\\mathit{\\Lambda}"),g("\\varXi","\\mathit{\\Xi}"),g("\\varPi","\\mathit{\\Pi}"),g("\\varSigma","\\mathit{\\Sigma}"),g("\\varUpsilon","\\mathit{\\Upsilon}"),g("\\varPhi","\\mathit{\\Phi}"),g("\\varPsi","\\mathit{\\Psi}"),g("\\varOmega","\\mathit{\\Omega}"),g("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),g("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),g("\\boxed","\\fbox{$\\displaystyle{#1}$}"),g("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),g("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),g("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),g("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),g("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var mo={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};g("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in mo?e=mo[r]:(r.slice(0,4)==="\\not"||r in Ie.math&&ie.contains(["bin","rel"],Ie.math[r].group))&&(e="\\dotsb"),e});var da={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};g("\\dotso",function(t){var e=t.future().text;return e in da?"\\ldots\\,":"\\ldots"}),g("\\dotsc",function(t){var e=t.future().text;return e in da&&e!==","?"\\ldots\\,":"\\ldots"}),g("\\cdots",function(t){var e=t.future().text;return e in da?"\\@cdots\\,":"\\@cdots"}),g("\\dotsb","\\cdots"),g("\\dotsm","\\cdots"),g("\\dotsi","\\!\\cdots"),g("\\dotsx","\\ldots\\,"),g("\\DOTSI","\\relax"),g("\\DOTSB","\\relax"),g("\\DOTSX","\\relax"),g("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),g("\\,","\\tmspace+{3mu}{.1667em}"),g("\\thinspace","\\,"),g("\\>","\\mskip{4mu}"),g("\\:","\\tmspace+{4mu}{.2222em}"),g("\\medspace","\\:"),g("\\;","\\tmspace+{5mu}{.2777em}"),g("\\thickspace","\\;"),g("\\!","\\tmspace-{3mu}{.1667em}"),g("\\negthinspace","\\!"),g("\\negmedspace","\\tmspace-{4mu}{.2222em}"),g("\\negthickspace","\\tmspace-{5mu}{.277em}"),g("\\enspace","\\kern.5em "),g("\\enskip","\\hskip.5em\\relax"),g("\\quad","\\hskip1em\\relax"),g("\\qquad","\\hskip2em\\relax"),g("\\tag","\\@ifstar\\tag@literal\\tag@paren"),g("\\tag@paren","\\tag@literal{({#1})}"),g("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new F("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),g("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),g("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),g("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),g("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),g("\\newline","\\\\\\relax"),g("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var po=H(Ht["Main-Regular"][84][1]-.7*Ht["Main-Regular"][65][1]);g("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+po+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),g("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+po+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),g("\\hspace","\\@ifstar\\@hspacer\\@hspace"),g("\\@hspace","\\hskip #1\\relax"),g("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),g("\\ordinarycolon",":"),g("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),g("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),g("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),g("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),g("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),g("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),g("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),g("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),g("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),g("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),g("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),g("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),g("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),g("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),g("∷","\\dblcolon"),g("∹","\\eqcolon"),g("≔","\\coloneqq"),g("≕","\\eqqcolon"),g("⩴","\\Coloneqq"),g("\\ratio","\\vcentcolon"),g("\\coloncolon","\\dblcolon"),g("\\colonequals","\\coloneqq"),g("\\coloncolonequals","\\Coloneqq"),g("\\equalscolon","\\eqqcolon"),g("\\equalscoloncolon","\\Eqqcolon"),g("\\colonminus","\\coloneq"),g("\\coloncolonminus","\\Coloneq"),g("\\minuscolon","\\eqcolon"),g("\\minuscoloncolon","\\Eqcolon"),g("\\coloncolonapprox","\\Colonapprox"),g("\\coloncolonsim","\\Colonsim"),g("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),g("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),g("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),g("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),g("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),g("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),g("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),g("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),g("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),g("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),g("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),g("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),g("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),g("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),g("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),g("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),g("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),g("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),g("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),g("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),g("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),g("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),g("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),g("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),g("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),g("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),g("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),g("\\imath","\\html@mathml{\\@imath}{ı}"),g("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),g("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),g("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),g("⟦","\\llbracket"),g("⟧","\\rrbracket"),g("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),g("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),g("⦃","\\lBrace"),g("⦄","\\rBrace"),g("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),g("⦵","\\minuso"),g("\\darr","\\downarrow"),g("\\dArr","\\Downarrow"),g("\\Darr","\\Downarrow"),g("\\lang","\\langle"),g("\\rang","\\rangle"),g("\\uarr","\\uparrow"),g("\\uArr","\\Uparrow"),g("\\Uarr","\\Uparrow"),g("\\N","\\mathbb{N}"),g("\\R","\\mathbb{R}"),g("\\Z","\\mathbb{Z}"),g("\\alef","\\aleph"),g("\\alefsym","\\aleph"),g("\\Alpha","\\mathrm{A}"),g("\\Beta","\\mathrm{B}"),g("\\bull","\\bullet"),g("\\Chi","\\mathrm{X}"),g("\\clubs","\\clubsuit"),g("\\cnums","\\mathbb{C}"),g("\\Complex","\\mathbb{C}"),g("\\Dagger","\\ddagger"),g("\\diamonds","\\diamondsuit"),g("\\empty","\\emptyset"),g("\\Epsilon","\\mathrm{E}"),g("\\Eta","\\mathrm{H}"),g("\\exist","\\exists"),g("\\harr","\\leftrightarrow"),g("\\hArr","\\Leftrightarrow"),g("\\Harr","\\Leftrightarrow"),g("\\hearts","\\heartsuit"),g("\\image","\\Im"),g("\\infin","\\infty"),g("\\Iota","\\mathrm{I}"),g("\\isin","\\in"),g("\\Kappa","\\mathrm{K}"),g("\\larr","\\leftarrow"),g("\\lArr","\\Leftarrow"),g("\\Larr","\\Leftarrow"),g("\\lrarr","\\leftrightarrow"),g("\\lrArr","\\Leftrightarrow"),g("\\Lrarr","\\Leftrightarrow"),g("\\Mu","\\mathrm{M}"),g("\\natnums","\\mathbb{N}"),g("\\Nu","\\mathrm{N}"),g("\\Omicron","\\mathrm{O}"),g("\\plusmn","\\pm"),g("\\rarr","\\rightarrow"),g("\\rArr","\\Rightarrow"),g("\\Rarr","\\Rightarrow"),g("\\real","\\Re"),g("\\reals","\\mathbb{R}"),g("\\Reals","\\mathbb{R}"),g("\\Rho","\\mathrm{P}"),g("\\sdot","\\cdot"),g("\\sect","\\S"),g("\\spades","\\spadesuit"),g("\\sub","\\subset"),g("\\sube","\\subseteq"),g("\\supe","\\supseteq"),g("\\Tau","\\mathrm{T}"),g("\\thetasym","\\vartheta"),g("\\weierp","\\wp"),g("\\Zeta","\\mathrm{Z}"),g("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),g("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),g("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),g("\\bra","\\mathinner{\\langle{#1}|}"),g("\\ket","\\mathinner{|{#1}\\rangle}"),g("\\braket","\\mathinner{\\langle{#1}\\rangle}"),g("\\Bra","\\left\\langle#1\\right|"),g("\\Ket","\\left|#1\\right\\rangle");var fo=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,i=e.consumeArg().tokens,a=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var u=p=>b=>{t&&(b.macros.set("|",s),i.length&&b.macros.set("\\|",o));var f=p;if(!p&&i.length){var z=b.future();z.text==="|"&&(b.popToken(),f=!0)}return{tokens:f?i:n,numArgs:0}};e.macros.set("|",u(!1)),i.length&&e.macros.set("\\|",u(!0));var h=e.consumeArg().tokens,d=e.expandTokens([...a,...h,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};g("\\bra@ket",fo(!1)),g("\\bra@set",fo(!0)),g("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),g("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),g("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),g("\\angln","{\\angl n}"),g("\\blue","\\textcolor{##6495ed}{#1}"),g("\\orange","\\textcolor{##ffa500}{#1}"),g("\\pink","\\textcolor{##ff00af}{#1}"),g("\\red","\\textcolor{##df0030}{#1}"),g("\\green","\\textcolor{##28ae7b}{#1}"),g("\\gray","\\textcolor{gray}{#1}"),g("\\purple","\\textcolor{##9d38bd}{#1}"),g("\\blueA","\\textcolor{##ccfaff}{#1}"),g("\\blueB","\\textcolor{##80f6ff}{#1}"),g("\\blueC","\\textcolor{##63d9ea}{#1}"),g("\\blueD","\\textcolor{##11accd}{#1}"),g("\\blueE","\\textcolor{##0c7f99}{#1}"),g("\\tealA","\\textcolor{##94fff5}{#1}"),g("\\tealB","\\textcolor{##26edd5}{#1}"),g("\\tealC","\\textcolor{##01d1c1}{#1}"),g("\\tealD","\\textcolor{##01a995}{#1}"),g("\\tealE","\\textcolor{##208170}{#1}"),g("\\greenA","\\textcolor{##b6ffb0}{#1}"),g("\\greenB","\\textcolor{##8af281}{#1}"),g("\\greenC","\\textcolor{##74cf70}{#1}"),g("\\greenD","\\textcolor{##1fab54}{#1}"),g("\\greenE","\\textcolor{##0d923f}{#1}"),g("\\goldA","\\textcolor{##ffd0a9}{#1}"),g("\\goldB","\\textcolor{##ffbb71}{#1}"),g("\\goldC","\\textcolor{##ff9c39}{#1}"),g("\\goldD","\\textcolor{##e07d10}{#1}"),g("\\goldE","\\textcolor{##a75a05}{#1}"),g("\\redA","\\textcolor{##fca9a9}{#1}"),g("\\redB","\\textcolor{##ff8482}{#1}"),g("\\redC","\\textcolor{##f9685d}{#1}"),g("\\redD","\\textcolor{##e84d39}{#1}"),g("\\redE","\\textcolor{##bc2612}{#1}"),g("\\maroonA","\\textcolor{##ffbde0}{#1}"),g("\\maroonB","\\textcolor{##ff92c6}{#1}"),g("\\maroonC","\\textcolor{##ed5fa6}{#1}"),g("\\maroonD","\\textcolor{##ca337c}{#1}"),g("\\maroonE","\\textcolor{##9e034e}{#1}"),g("\\purpleA","\\textcolor{##ddd7ff}{#1}"),g("\\purpleB","\\textcolor{##c6b9fc}{#1}"),g("\\purpleC","\\textcolor{##aa87ff}{#1}"),g("\\purpleD","\\textcolor{##7854ab}{#1}"),g("\\purpleE","\\textcolor{##543b78}{#1}"),g("\\mintA","\\textcolor{##f5f9e8}{#1}"),g("\\mintB","\\textcolor{##edf2df}{#1}"),g("\\mintC","\\textcolor{##e0e5cc}{#1}"),g("\\grayA","\\textcolor{##f6f7f7}{#1}"),g("\\grayB","\\textcolor{##f0f1f2}{#1}"),g("\\grayC","\\textcolor{##e3e5e6}{#1}"),g("\\grayD","\\textcolor{##d6d8da}{#1}"),g("\\grayE","\\textcolor{##babec2}{#1}"),g("\\grayF","\\textcolor{##888d93}{#1}"),g("\\grayG","\\textcolor{##626569}{#1}"),g("\\grayH","\\textcolor{##3b3e40}{#1}"),g("\\grayI","\\textcolor{##21242c}{#1}"),g("\\kaBlue","\\textcolor{##314453}{#1}"),g("\\kaGreen","\\textcolor{##71B307}{#1}");var go={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Uh{constructor(e,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new Ph(qh,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new co(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,n,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new zt("EOF",n.loc)),this.pushTokens(i),r.range(n,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new F("Extra }",a)}else if(a.text==="EOF")throw new F("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",a);if(e&&n)if((s===0||s===1&&e[o]==="{")&&a.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new F("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var a=this.popToken();if(n[i]!==a.text)throw new F("Use of the macro doesn't match its definition",a)}}for(var s=[],o=0;o<e;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new F("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||e&&i.unexpandable){if(e&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new F("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var u=a[o];if(u.text==="#"){if(o===0)throw new F("Incomplete placeholder at end of macro body",u);if(u=a[--o],u.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(u.text))a.splice(o,2,...s[+u.text-1]);else throw new F("Not a valid argument number",u)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new zt(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new co(i,this.settings),u=[],h=o.lex();h.text!=="EOF";)u.push(h),h=o.lex();u.reverse();var d={tokens:u,numArgs:a};return d}return i}isDefined(e){return this.macros.has(e)||yr.hasOwnProperty(e)||Ie.math.hasOwnProperty(e)||Ie.text.hasOwnProperty(e)||go.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:yr.hasOwnProperty(e)&&!yr[e].primitive}}var bo=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Vn=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),ma={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},vo={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Xn{constructor(e,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Uh(e,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new F("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new zt("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Xn.endOfExpression.indexOf(i.text)!==-1||r&&i.text===r||e&&yr[i.text]&&yr[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,i=0;i<e.length;i++)if(e[i].type==="infix"){if(r!==-1)throw new F("only one infix operator per group",e[i].token);r=i,n=e[i].replaceWith}if(r!==-1&&n){var a,s,o=e.slice(0,r),u=e.slice(r+1);o.length===1&&o[0].type==="ordgroup"?a=o[0]:a={type:"ordgroup",mode:this.mode,body:o},u.length===1&&u[0].type==="ordgroup"?s=u[0]:s={type:"ordgroup",mode:this.mode,body:u};var h;return n==="\\\\abovefrac"?h=this.callFunction(n,[a,e[r],s],[]):h=this.callFunction(n,[a,s],[]),[h]}else return e}handleSupSubscript(e){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i=this.parseGroup(e);if(!i)throw new F("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(e){for(var r=[],n=0;n<e.length;n++)r.push({type:"textord",mode:"text",text:e[n]});var i={type:"text",mode:this.mode,body:r},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(e){var r=this.parseGroup("atom",e);if(this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(r&&r.type==="op"){var s=a.text==="\\limits";r.limits=s,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=a.text==="\\limits");else throw new F("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(n)throw new F("Double superscript",a);n=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new F("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(n)throw new F("Double superscript",a);var o={type:"textord",mode:this.mode,text:"\\prime"},u=[o];for(this.consume();this.fetch().text==="'";)u.push(o),this.consume();this.fetch().text==="^"&&u.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:u}}else if(Vn[a.text]){var h=bo.test(a.text),d=[];for(d.push(new zt(Vn[a.text])),this.consume();;){var p=this.fetch().text;if(!Vn[p]||bo.test(p)!==h)break;d.unshift(new zt(Vn[p])),this.consume()}var b=this.subparse(d);h?i={type:"ordgroup",mode:"math",body:b}:n={type:"ordgroup",mode:"math",body:b}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(e,r){var n=this.fetch(),i=n.text,a=yr[i];if(!a)return null;if(this.consume(),r&&r!=="atom"&&!a.allowedInArgument)throw new F("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!a.allowedInText)throw new F("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&a.allowedInMath===!1)throw new F("Can't use function '"+i+"' in math mode",n);var{args:s,optArgs:o}=this.parseArguments(i,a);return this.callFunction(i,s,o,n,e)}callFunction(e,r,n,i,a){var s={funcName:e,parser:this,token:i,breakOnTokenText:a},o=yr[e];if(o&&o.handler)return o.handler(s,r,n);throw new F("No function handler for "+e)}parseArguments(e,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],a=[],s=0;s<n;s++){var o=r.argTypes&&r.argTypes[s],u=s<r.numOptionalArgs;(r.primitive&&o==null||r.type==="sqrt"&&s===1&&a[0]==null)&&(o="primitive");var h=this.parseGroupOfType("argument to '"+e+"'",o,u);if(u)a.push(h);else if(h!=null)i.push(h);else throw new F("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(e,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var a=this.parseStringGroup("raw",n);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(n)throw new F("A primitive argument cannot be optional");var s=this.parseGroup(e);if(s==null)throw new F("Expected group as "+e,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new F("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(e,r){for(var n=this.fetch(),i=n,a="",s;(s=this.fetch()).text!=="EOF"&&e.test(a+s.text);)i=s,a+=i.text,this.consume();if(a==="")throw new F("Invalid "+r+": '"+n.text+"'",n);return n.range(i,a)}parseColorGroup(e){var r=this.parseStringGroup("color",e);if(r==null)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new F("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(e){var r,n=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",e),!r)return null;!e&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new F("Invalid size: '"+r.text+"'",r);var a={number:+(i[1]+i[2]),unit:i[3]};if(!Z0(a))throw new F("Invalid unit: '"+a.unit+"'",r);return{type:"size",mode:this.mode,value:a,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,r){var n=this.gullet.scanArgument(e);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return r&&this.switchMode(i),s}parseGroup(e,r){var n=this.fetch(),i=n.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var s=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),u=this.fetch();this.expect(s),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:bt.range(n,u),body:o,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(r,e)||this.parseSymbol(),a==null&&i[0]==="\\"&&!go.hasOwnProperty(i)){if(this.settings.throwOnError)throw new F("Undefined control sequence: "+i,n);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(e){for(var r=e.length-1,n=0;n<r;++n){var i=e[n],a=i.text;a==="-"&&e[n+1].text==="-"&&(n+1<r&&e[n+2].text==="-"?(e.splice(n,3,{type:"textord",mode:"text",loc:bt.range(i,e[n+2]),text:"---"}),r-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:bt.range(i,e[n+1]),text:"--"}),r-=1)),(a==="'"||a==="`")&&e[n+1].text===a&&(e.splice(n,2,{type:"textord",mode:"text",loc:bt.range(i,e[n+1]),text:a+a}),r-=1)}}parseSymbol(){var e=this.fetch(),r=e.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new F(`\\verb assertion failed --
|
|
266
|
-
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}vo.hasOwnProperty(r[0])&&!Ie[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',e),r=vo[r[0]]+r.slice(1));var a=Dh.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Ie[this.mode][r]){this.settings.strict&&this.mode==="math"&&Fi.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);var o=Ie[this.mode][r].group,u=bt.range(e),h;if(Cc.hasOwnProperty(o)){var d=o;h={type:"atom",mode:this.mode,family:d,loc:u,text:r}}else h={type:o,mode:this.mode,loc:u,text:r};s=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(j0(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:bt.range(e),text:r};else return null;if(this.consume(),a)for(var p=0;p<a[0].length;p++){var b=a[0][p];if(!ma[b])throw new F("Unknown accent ' "+b+"'",e);var f=ma[b][this.mode]||ma[b].text;if(!f)throw new F("Accent "+b+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:bt.range(e),label:f,isStretchy:!1,isShifty:!0,base:s}}return s}}Xn.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var pa=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Xn(e,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new F("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new zt("\\df@tag")])}]}return i},yo=function(e,r,n){r.textContent="";var i=fa(e,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),yo=function(){throw new F("KaTeX doesn't work in quirks mode.")});var Hh=function(e,r){var n=fa(e,r).toMarkup();return n},Gh=function(e,r){var n=new Ai(r);return pa(e,n)},wo=function(e,r,n){if(n.throwOnError||!(e instanceof F))throw e;var i=T.makeSpan(["katex-error"],[new Tt(r)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+n.errorColor),i},fa=function(e,r){var n=new Ai(r);try{var i=pa(e,n);return Jc(i,e,n)}catch(a){return wo(a,e,n)}},$h=function(e,r){var n=new Ai(r);try{var i=pa(e,n);return Qc(i,e,n)}catch(a){return wo(a,e,n)}},Wh={version:"0.16.15",render:yo,renderToString:Hh,ParseError:F,SETTINGS_SCHEMA:Tn,__parse:Gh,__renderToDomTree:fa,__renderToHTMLTree:$h,__setFontMetrics:kc,__defineSymbol:l,__defineFunction:K,__defineMacro:g,__domTree:{Span:an,Anchor:Ri,SymbolNode:Tt,SvgNode:Jt,PathNode:fr,LineNode:Ii}};const jh=Object.freeze(Object.defineProperty({__proto__:null,default:Wh},Symbol.toStringTag,{value:"Module"}));function Vh(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:a},exit:{mathFlow:i,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:o,mathText:s,mathTextData:o}};function t(u){const h={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[h]}},u)}function e(){this.buffer()}function r(){const u=this.resume(),h=this.stack[this.stack.length-1];h.type,h.meta=u}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const h=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),d=this.stack[this.stack.length-1];d.type,this.exit(u),d.value=h;const p=d.data.hChildren[0];p.type,p.tagName,p.children.push({type:"text",value:h}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const h=this.resume(),d=this.stack[this.stack.length-1];d.type,this.exit(u),d.value=h,d.data.hChildren.push({type:"text",value:h})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function Xh(t){const e=/(```[\s\S]+?```|~~~[\s\S]+?~~~)/g,r=t.split(e),n=/\\\((.*?)\\\)/g,i=/\\\[([\s\S]*?)\\\]/g;for(let a=0;a<r.length;a++)a%2===0&&(r[a]=r[a].replace(n,(s,o)=>`$${o}$`).replace(i,(s,o)=>`$$${o}$$`));return r.join("")}function ga(t,e,r,n){const i=Su(Xh(e),{extensions:[Cu(),Vu()],mdastExtensions:[Bu(),Vh(),...n]}),a={},s={};xo(i,a,s),ba(i,t,a,s,r)}function xo(t,e,r){for(const n of t.children){switch(n.type){case"definition":const i=n.identifier;i&&(e[i]=n,r[i.toLowerCase()]=n);continue}n.children&&xo(n,e,r)}}function ba(t,e,r,n,i){var s;let a=e.firstChild;for(const o of t.children){let u;switch(o.type){case"inlineMath":{if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="SPAN"&&Kn.has(a))){for(;a;){const d=a.nextSibling;a.remove(),a=d}a=document.createElement("span"),e.appendChild(a)}ko(a,o.value),a=a.nextSibling;continue}case"math":{if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="DIV"&&Kn.has(a))){for(;a;){const d=a.nextSibling;a.remove(),a=d}a=document.createElement("div"),e.appendChild(a)}ko(a,o.value),a=a.nextSibling;continue}case"code":{let d=So.get(a);if(d)d.updateCode(o.lang,o.value);else{for(;a;){const p=a.nextSibling;a.remove(),a=p}d=new H0(o.lang,o.value),a=d.node,So.set(a,d),e.appendChild(a)}a=a.nextSibling;continue}case"html":if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="SPAN")){for(;a;){const d=a.nextSibling;a.remove(),a=d}a=document.createElement("span"),e.appendChild(a)}a.innerHTML=o.value,a=a.nextSibling;continue;case"inlineCode":if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="CODE")){for(;a;){const d=a.nextSibling;a.remove(),a=d}a=document.createElement("code"),e.appendChild(a)}a.textContent=o.value,a=a.nextSibling;continue;case"text":if((a==null?void 0:a.nodeType)===Node.TEXT_NODE)a.nodeValue=o.value;else{for(;a;){const d=a.nextSibling;a.remove(),a=d}e.appendChild(a=document.createTextNode(o.value))}a=a.nextSibling;continue;case"yaml":continue;case"break":if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="BR")){for(;a;){const d=a.nextSibling;a.remove(),a=d}e.appendChild(a=document.createElement("br"))}a=a.nextSibling;continue;case"thematicBreak":if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="HR")){for(;a;){const d=a.nextSibling;a.remove(),a=d}a=document.createElement("hr"),e.appendChild(a)}a=a.nextSibling;continue;case"image":{if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="IMG")){for(;a;){const p=a.nextSibling;a.remove(),a=p}a=document.createElement("img"),e.appendChild(a)}const d=o.url;if(d)if(d.startsWith("python://")){let p=d.substring(9);try{a.src=qu(i,p)}catch(b){console.error(b),a.src=""}}else a.src=d;else a.src="";a.alt=o.alt||"",a.title=o.title||"",a=a.nextSibling;continue}case"linkReference":if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="A")){for(;a;){const d=a.nextSibling;a.remove(),a=d}a=document.createElement("a"),e.appendChild(a)}ba(o,a,r,n,i);let h;switch(o.referenceType){case"shortcut":h=r[a.textContent.toLowerCase()];break;case"collapsed":h=n[a.textContent.toLowerCase()]||r[a.textContent.toLowerCase()];break;case"full":h=n[(s=o.identifier)==null?void 0:s.toLowerCase()];break}a.href=(h==null?void 0:h.url)||"",a.target="_blank",a.title=(h==null?void 0:h.title)||"",a=a.nextSibling;continue;case"definition":continue;case"footnoteDefinition":case"footnoteReference":case"imageReference":continue;case"blockquote":u="BLOCKQUOTE";break;case"delete":u="DEL";break;case"emphasis":u="EM";break;case"heading":u="H"+o.depth;break;case"link":u="A";break;case"list":u=o.ordered?"OL":"UL";break;case"listItem":u="LI";break;case"paragraph":u="P";break;case"strong":u="STRONG";break;case"table":u="TABLE";break;case"tableCell":u="TD";break;case"tableRow":u="TR";break;default:console.warn("Unknown MDAST node type: "+o.type);continue}if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName===u)){for(;a;){const h=a.nextSibling;a.remove(),a=h}a=document.createElement(u),e.appendChild(a)}u==="A"&&(a.href=o.url||"",a.target="_blank",a.title=o.title||""),ba(o,a,r,n,i),a=a.nextSibling}for(;a;){const o=a.nextSibling;a.remove(),a=o}}let va;function Kh(){return va||(va=Promise.resolve().then(()=>jh)),va}async function ko(t,e){let r=Kn.get(t);r==null||r.cancel(),Kn.set(t,r=new lr),(async()=>{const n=await Kh();r.isCancellationRequested||n.default.render(e,t,{throwOnError:!1})})()}const Kn=new WeakMap,So=new WeakMap;function Yh(t){const r=t.trim().replace(/[^\w\s]|_/g,"").replace(/\s+/g," ").toUpperCase().split(" ");if(r.length===1&&r[0]==="")return"?";let n=r[0][0];return r.length>1&&(n+=r[1][0]),n}function Zh({as:t="div",size:e="avatar-lg",id:r,...n},i){const a=B(t,{...n},i);return t==="button"&&!("type"in n)&&(a.type="button"),a.classList.add("avatar"),e&&a.classList.add(e),r&&a.classList.add(...Jh(r)),a}const zo=[["bg-Land-Green-95","text-Land-Green-30"],["bg-Sunflower-85","text-Sunflower-20"],["bg-Energy-Red-95","text-Energy-Red-45"],["bg-Sea-Blue-Main-28","text-Sky-Blue-95"],["bg-Lavender-90","text-Lavender-50"],["bg-Eucalyptus-85","text-Eucalyptus-20"],["bg-Terracotta-85","text-Terracotta-20"]];function Jh(t){const e=Qh(t);return zo[Math.floor(Math.abs(e%zo.length))]}function Qh(t){let e=0;for(let r=0;r<t.length;r++)e=t.charCodeAt(r)+((e<<5)-e);return e}var Bt=(t=>(t[t.Error=0]="Error",t[t.Danger=1]="Danger",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Success=4]="Success",t))(Bt||{}),Jr=(t=>(t[t.Primary=0]="Primary",t[t.Secondary=1]="Secondary",t[t.Tertiary=2]="Tertiary",t[t.Destructive=3]="Destructive",t[t.CTA=4]="CTA",t))(Jr||{});function Ge(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}var Rt=(t=>(t.ExtraSmall="16",t.Small="20",t.Medium="24",t.Large="28",t.ExtraLarge="32",t.ExtraExtraLarge="40",t))(Rt||{});function Yn({size:t=Rt.Medium,...e}){const r=Ge("svg");r.setAttribute("viewBox","0 0 448 512"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),rt(r,e);const n=Ge("path");return n.setAttribute("d","M413.505 91.951L133.49 371.966l-98.995-98.995c-4.686-4.686-12.284-4.686-16.971 0L6.211 284.284c-4.686 4.686-4.686 12.284 0 16.971l118.794 118.794c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.686-4.686-12.284-4.686-16.97 0z"),r.appendChild(n),r.classList.add("icon"),r}function Eo({size:t=Rt.Medium,...e}){const r=Ge("svg");r.setAttribute("viewBox","0 0 448 512"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),rt(r,e);const n=Ge("path");return n.setAttribute("d","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 464c-118.664 0-216-96.055-216-216 0-118.663 96.055-216 216-216 118.664 0 216 96.055 216 216 0 118.663-96.055 216-216 216zm141.63-274.961L217.15 376.071c-4.705 4.667-12.303 4.637-16.97-.068l-85.878-86.572c-4.667-4.705-4.637-12.303.068-16.97l8.52-8.451c4.705-4.667 12.303-4.637 16.97.068l68.976 69.533 163.441-162.13c4.705-4.667 12.303-4.637 16.97.068l8.451 8.52c4.668 4.705 4.637 12.303-.068 16.97z"),r.appendChild(n),r}function ya({size:t=Rt.Medium,...e}){const r=Ge("svg");r.setAttribute("viewBox","0 0 512 512"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),rt(r,e);const n=Ge("path");return n.setAttribute("d","M256 40c118.621 0 216 96.075 216 216 0 119.291-96.61 216-216 216-119.244 0-216-96.562-216-216 0-119.203 96.602-216 216-216m0-32C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm-11.49 120h22.979c6.823 0 12.274 5.682 11.99 12.5l-7 168c-.268 6.428-5.556 11.5-11.99 11.5h-8.979c-6.433 0-11.722-5.073-11.99-11.5l-7-168c-.283-6.818 5.167-12.5 11.99-12.5zM256 340c-15.464 0-28 12.536-28 28s12.536 28 28 28 28-12.536 28-28-12.536-28-28-28z"),r.appendChild(n),r.classList.add("icon"),r}function Zn({size:t=Rt.Medium,...e}){const r=Ge("svg");r.setAttribute("viewBox","0 0 576 512"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),rt(r,e);const n=Ge("path");return n.setAttribute("d","M270.2 160h35.5c3.4 0 6.1 2.8 6 6.2l-7.5 196c-.1 3.2-2.8 5.8-6 5.8h-20.5c-3.2 0-5.9-2.5-6-5.8l-7.5-196c-.1-3.4 2.6-6.2 6-6.2zM288 388c-15.5 0-28 12.5-28 28s12.5 28 28 28 28-12.5 28-28-12.5-28-28-28zm281.5 52L329.6 24c-18.4-32-64.7-32-83.2 0L6.5 440c-18.4 31.9 4.6 72 41.6 72H528c36.8 0 60-40 41.5-72zM528 480H48c-12.3 0-20-13.3-13.9-24l240-416c6.1-10.6 21.6-10.7 27.7 0l240 416c6.2 10.6-1.5 24-13.8 24z"),r.appendChild(n),r.classList.add("icon"),r}function wa({size:t=Rt.Medium,...e}){const r=Ge("svg");r.setAttribute("viewBox","0 0 512 512"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),rt(r,e);const n=Ge("path");return n.setAttribute("d","M256 40c118.621 0 216 96.075 216 216 0 119.291-96.61 216-216 216-119.244 0-216-96.562-216-216 0-119.203 96.602-216 216-216m0-32C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm-36 344h12V232h-12c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h48c6.627 0 12 5.373 12 12v140h12c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12h-72c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12zm36-240c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"),r.appendChild(n),r.classList.add("icon"),r}var hn=(t=>(t.ExtraSmall="20",t.Small="24",t.Medium="32",t.Large="40",t.ExtraLarge="48",t.ExtraExtraLarge="60",t.ExtraExtraExtraLarge="80",t.ExtraExtraExtraExtraLarge="120",t))(hn||{});function Jn({size:t="80",...e}){const r=Ge("svg");r.setAttribute("viewBox","0 0 80 80"),r.setAttribute("fill","none"),r.setAttribute("width",t),r.setAttribute("height",t),rt(r,e),r.setAttribute("class",(r.getAttribute("class")??"")+" animate-spin");const n=Ge("path");n.setAttribute("d","M40 6.15385C21.3073 6.15385 6.15385 21.3073 6.15385 40C6.15385 58.6927 21.3073 73.8462 40 73.8462C58.6927 73.8462 73.8462 58.6927 73.8462 40C73.8462 21.3073 58.6927 6.15385 40 6.15385ZM0 40C0 17.9086 17.9086 0 40 0C62.0914 0 80 17.9086 80 40C80 62.0914 62.0914 80 40 80C17.9086 80 0 62.0914 0 40Z"),n.setAttribute("fill","#99BEFF"),r.appendChild(n);const i=Ge("path");return i.setAttribute("d","M36.9229 3.07692C36.9229 1.37759 38.3004 0 39.9998 0C45.2526 0 50.4541 1.03463 55.3071 3.04482C60.1601 5.05501 64.5697 8.00138 68.284 11.7157C71.9984 15.4301 74.9448 19.8396 76.955 24.6927C78.9651 29.5457 79.9998 34.7471 79.9998 40C79.9998 41.6993 78.6222 43.0769 76.9228 43.0769C75.2235 43.0769 73.8459 41.6993 73.8459 40C73.8459 35.5553 72.9705 31.154 71.2695 27.0476C69.5686 22.9412 67.0755 19.2101 63.9326 16.0672C60.7897 12.9242 57.0585 10.4312 52.9521 8.73023C48.8457 7.0293 44.4445 6.15385 39.9998 6.15385C38.3004 6.15385 36.9229 4.77626 36.9229 3.07692Z"),i.setAttribute("fill","#003591"),r.appendChild(i),r}class Qn{}class ed extends Qn{constructor(r,n){super();q(this,"node");q(this,"buttons",{});q(this,"buttonsFieldset");this.context=r;let i;switch(n.type){case Bt.Error:i=B(ya,{class:"text-Energy-Red-45"});break;case Bt.Danger:i=B(Zn,{class:"text-Energy-Red-45"});break;case Bt.Warning:i=B(Zn,{class:"text-Terracotta-30"});break;case Bt.Info:i=B(wa,{class:"text-Sea-Blue-Main-28"});break;case Bt.Success:i=B(Eo,{class:"text-Land-Green-30"});break}i.classList.add("shrink-0");for(const s of n.buttons)this.buttons[s.value]=new td(this,s);let a;this.node=B("section",{class:"max-w-lg text-left my-2 bg-Sandstone-97 select-none border border-Light"},B("div",{class:"p-6 pb-3 flex gap-5"},i,B("div",null,B("h6",null,n.title),a=B("div",{class:"prose prose-sm prose-neutral"}))),this.buttonsFieldset=B("fieldset",{class:"p-6 pt-3 flex justify-end gap-3"},Object.values(this.buttons).map(s=>s.node))),ga(a,n.textInMarkdown,this.context.conversationMessage.chat.pyodide,this.context.conversationMessage.chat.mdastExtensions)}onClientResult(r){this.buttons[r].selected()}onOpcodeMessageToolCallErrorReceived(r){this.buttonsFieldset.disabled=!0;for(const n in this.buttons)this.buttons[n].possiblyRemoveSpinner()}onErrorWhileReadingBodyStream(r){this.buttonsFieldset.disabled=!0;for(const n in this.buttons)this.buttons[n].possiblyRemoveSpinner()}}class td{constructor(e,r){q(this,"node");q(this,"_spinner");this.dialog=e,this.buttonOption=r,this.node=B(en,{class:rd(this.buttonOption.variant)+" min-w-24",size:$r.Medium,onclick:()=>this.onClickAsync()},this.buttonOption.text)}async onClickAsync(){this.dialog.buttonsFieldset.disabled=!0,this.node.insertBefore(this._spinner=B(Jn,{size:hn.ExtraSmall}),this.node.firstChild);try{await this.dialog.context.postResultAsync(this.buttonOption.value)}catch(e){throw e}}selected(){this.possiblyRemoveSpinner(),this.node.insertBefore(B(Yn,{size:Rt.Small}),this.node.firstChild)}possiblyRemoveSpinner(){var e;(e=this._spinner)==null||e.remove()}}function rd(t){switch(t){case Jr.Primary:return Ft.Primary;case Jr.Secondary:return Ft.Secondary;case Jr.Tertiary:return Ft.Tertiary;case Jr.Destructive:return Ft.Destructive;case Jr.CTA:return Ft.CTA}}class nd{constructor(){q(this,"_dataByIndex",{})}append(e){const r=this._dataByIndex[e.toolCallUpdateIndex];return r?(e.llmFunctionId&&(r.llmFunctionId=e.llmFunctionId),e.toolCallUpdateName&&(r.functionName=e.toolCallUpdateName),e.toolCallUpdateArguments&&(r.functionArguments+=e.toolCallUpdateArguments),r):this._dataByIndex[e.toolCallUpdateIndex]=new To(e.llmFunctionId,e.toolCallUpdateName,e.toolCallUpdateArguments??"")}clear(){this._dataByIndex={}}}class To{constructor(e,r,n){this.llmFunctionId=e,this.functionName=r,this.functionArguments=n}}function id(t){const e=[];let r=0;for(;r<t.length;)if(t[r]==="\\"&&r+1<t.length){switch(t[r+1]){case"n":e.push(`
|
|
264
|
+
?)[ \r ]*`,ha="[̀-ͯ]",Dh=new RegExp(ha+"+$"),Fh="("+uo+"+)|"+(Lh+"|")+"([!-\\[\\]-‧-豈-]"+(ha+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(ha+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Oh)+("|"+Ih+")");class co{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(Fh,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new zt("EOF",new bt(this,r,r));var n=this.tokenRegex.exec(e);if(n===null||n.index!==r)throw new F("Unexpected character: '"+e[r]+"'",new zt(e[r],new bt(this,r,r+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=e.indexOf(`
|
|
265
|
+
`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new zt(i,new bt(this,r,this.tokenRegex.lastIndex))}}class Ph{constructor(e,r){e===void 0&&(e={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new F("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r in e)e.hasOwnProperty(r)&&(e[r]==null?delete this.current[r]:this.current[r]=e[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,r,n){if(n===void 0&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}r==null?delete this.current[e]:this.current[e]=r}}var qh=Ps;g("\\noexpand",function(t){var e=t.popToken();return t.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}}),g("\\expandafter",function(t){var e=t.popToken();return t.expandOnce(!0),{tokens:[e],numArgs:0}}),g("\\@firstoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[0],numArgs:0}}),g("\\@secondoftwo",function(t){var e=t.consumeArgs(2);return{tokens:e[1],numArgs:0}}),g("\\@ifnextchar",function(t){var e=t.consumeArgs(3);t.consumeSpaces();var r=t.future();return e[0].length===1&&e[0][0].text===r.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}}),g("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),g("\\TextOrMath",function(t){var e=t.consumeArgs(2);return t.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var ho={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};g("\\char",function(t){var e=t.popToken(),r,n="";if(e.text==="'")r=8,e=t.popToken();else if(e.text==='"')r=16,e=t.popToken();else if(e.text==="`")if(e=t.popToken(),e.text[0]==="\\")n=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new F("\\char` missing argument");n=e.text.charCodeAt(0)}else r=10;if(r){if(n=ho[e.text],n==null||n>=r)throw new F("Invalid base-"+r+" digit "+e.text);for(var i;(i=ho[t.future().text])!=null&&i<r;)n*=r,n+=i,t.popToken()}return"\\@char{"+n+"}"});var da=(t,e,r)=>{var n=t.consumeArg().tokens;if(n.length!==1)throw new F("\\newcommand's first argument must be a macro name");var i=n[0].text,a=t.isDefined(i);if(a&&!e)throw new F("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!r)throw new F("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(n=t.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var o="",u=t.expandNextToken();u.text!=="]"&&u.text!=="EOF";)o+=u.text,u=t.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new F("Invalid number of arguments: "+o);s=parseInt(o),n=t.consumeArg().tokens}return t.macros.set(i,{tokens:n,numArgs:s}),""};g("\\newcommand",t=>da(t,!1,!0)),g("\\renewcommand",t=>da(t,!0,!1)),g("\\providecommand",t=>da(t,!0,!0)),g("\\message",t=>{var e=t.consumeArgs(1)[0];return console.log(e.reverse().map(r=>r.text).join("")),""}),g("\\errmessage",t=>{var e=t.consumeArgs(1)[0];return console.error(e.reverse().map(r=>r.text).join("")),""}),g("\\show",t=>{var e=t.popToken(),r=e.text;return console.log(e,t.macros.get(r),yr[r],Ie.math[r],Ie.text[r]),""}),g("\\bgroup","{"),g("\\egroup","}"),g("~","\\nobreakspace"),g("\\lq","`"),g("\\rq","'"),g("\\aa","\\r a"),g("\\AA","\\r A"),g("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),g("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),g("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),g("ℬ","\\mathscr{B}"),g("ℰ","\\mathscr{E}"),g("ℱ","\\mathscr{F}"),g("ℋ","\\mathscr{H}"),g("ℐ","\\mathscr{I}"),g("ℒ","\\mathscr{L}"),g("ℳ","\\mathscr{M}"),g("ℛ","\\mathscr{R}"),g("ℭ","\\mathfrak{C}"),g("ℌ","\\mathfrak{H}"),g("ℨ","\\mathfrak{Z}"),g("\\Bbbk","\\Bbb{k}"),g("·","\\cdotp"),g("\\llap","\\mathllap{\\textrm{#1}}"),g("\\rlap","\\mathrlap{\\textrm{#1}}"),g("\\clap","\\mathclap{\\textrm{#1}}"),g("\\mathstrut","\\vphantom{(}"),g("\\underbar","\\underline{\\text{#1}}"),g("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),g("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),g("\\ne","\\neq"),g("≠","\\neq"),g("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),g("∉","\\notin"),g("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),g("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),g("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),g("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),g("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),g("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),g("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),g("⟂","\\perp"),g("‼","\\mathclose{!\\mkern-0.8mu!}"),g("∌","\\notni"),g("⌜","\\ulcorner"),g("⌝","\\urcorner"),g("⌞","\\llcorner"),g("⌟","\\lrcorner"),g("©","\\copyright"),g("®","\\textregistered"),g("️","\\textregistered"),g("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),g("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),g("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),g("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),g("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),g("⋮","\\vdots"),g("\\varGamma","\\mathit{\\Gamma}"),g("\\varDelta","\\mathit{\\Delta}"),g("\\varTheta","\\mathit{\\Theta}"),g("\\varLambda","\\mathit{\\Lambda}"),g("\\varXi","\\mathit{\\Xi}"),g("\\varPi","\\mathit{\\Pi}"),g("\\varSigma","\\mathit{\\Sigma}"),g("\\varUpsilon","\\mathit{\\Upsilon}"),g("\\varPhi","\\mathit{\\Phi}"),g("\\varPsi","\\mathit{\\Psi}"),g("\\varOmega","\\mathit{\\Omega}"),g("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),g("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),g("\\boxed","\\fbox{$\\displaystyle{#1}$}"),g("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),g("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),g("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),g("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),g("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var mo={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};g("\\dots",function(t){var e="\\dotso",r=t.expandAfterFuture().text;return r in mo?e=mo[r]:(r.slice(0,4)==="\\not"||r in Ie.math&&ie.contains(["bin","rel"],Ie.math[r].group))&&(e="\\dotsb"),e});var ma={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};g("\\dotso",function(t){var e=t.future().text;return e in ma?"\\ldots\\,":"\\ldots"}),g("\\dotsc",function(t){var e=t.future().text;return e in ma&&e!==","?"\\ldots\\,":"\\ldots"}),g("\\cdots",function(t){var e=t.future().text;return e in ma?"\\@cdots\\,":"\\@cdots"}),g("\\dotsb","\\cdots"),g("\\dotsm","\\cdots"),g("\\dotsi","\\!\\cdots"),g("\\dotsx","\\ldots\\,"),g("\\DOTSI","\\relax"),g("\\DOTSB","\\relax"),g("\\DOTSX","\\relax"),g("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),g("\\,","\\tmspace+{3mu}{.1667em}"),g("\\thinspace","\\,"),g("\\>","\\mskip{4mu}"),g("\\:","\\tmspace+{4mu}{.2222em}"),g("\\medspace","\\:"),g("\\;","\\tmspace+{5mu}{.2777em}"),g("\\thickspace","\\;"),g("\\!","\\tmspace-{3mu}{.1667em}"),g("\\negthinspace","\\!"),g("\\negmedspace","\\tmspace-{4mu}{.2222em}"),g("\\negthickspace","\\tmspace-{5mu}{.277em}"),g("\\enspace","\\kern.5em "),g("\\enskip","\\hskip.5em\\relax"),g("\\quad","\\hskip1em\\relax"),g("\\qquad","\\hskip2em\\relax"),g("\\tag","\\@ifstar\\tag@literal\\tag@paren"),g("\\tag@paren","\\tag@literal{({#1})}"),g("\\tag@literal",t=>{if(t.macros.get("\\df@tag"))throw new F("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),g("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),g("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),g("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),g("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),g("\\newline","\\\\\\relax"),g("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var po=H(Ht["Main-Regular"][84][1]-.7*Ht["Main-Regular"][65][1]);g("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+po+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),g("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+po+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),g("\\hspace","\\@ifstar\\@hspacer\\@hspace"),g("\\@hspace","\\hskip #1\\relax"),g("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),g("\\ordinarycolon",":"),g("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),g("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),g("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),g("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),g("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),g("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),g("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),g("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),g("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),g("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),g("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),g("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),g("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),g("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),g("∷","\\dblcolon"),g("∹","\\eqcolon"),g("≔","\\coloneqq"),g("≕","\\eqqcolon"),g("⩴","\\Coloneqq"),g("\\ratio","\\vcentcolon"),g("\\coloncolon","\\dblcolon"),g("\\colonequals","\\coloneqq"),g("\\coloncolonequals","\\Coloneqq"),g("\\equalscolon","\\eqqcolon"),g("\\equalscoloncolon","\\Eqqcolon"),g("\\colonminus","\\coloneq"),g("\\coloncolonminus","\\Coloneq"),g("\\minuscolon","\\eqcolon"),g("\\minuscoloncolon","\\Eqcolon"),g("\\coloncolonapprox","\\Colonapprox"),g("\\coloncolonsim","\\Colonsim"),g("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),g("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),g("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),g("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),g("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),g("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),g("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),g("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),g("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),g("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),g("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),g("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),g("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),g("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),g("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),g("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),g("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),g("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),g("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),g("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),g("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),g("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),g("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),g("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),g("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),g("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),g("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),g("\\imath","\\html@mathml{\\@imath}{ı}"),g("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),g("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),g("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),g("⟦","\\llbracket"),g("⟧","\\rrbracket"),g("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),g("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),g("⦃","\\lBrace"),g("⦄","\\rBrace"),g("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),g("⦵","\\minuso"),g("\\darr","\\downarrow"),g("\\dArr","\\Downarrow"),g("\\Darr","\\Downarrow"),g("\\lang","\\langle"),g("\\rang","\\rangle"),g("\\uarr","\\uparrow"),g("\\uArr","\\Uparrow"),g("\\Uarr","\\Uparrow"),g("\\N","\\mathbb{N}"),g("\\R","\\mathbb{R}"),g("\\Z","\\mathbb{Z}"),g("\\alef","\\aleph"),g("\\alefsym","\\aleph"),g("\\Alpha","\\mathrm{A}"),g("\\Beta","\\mathrm{B}"),g("\\bull","\\bullet"),g("\\Chi","\\mathrm{X}"),g("\\clubs","\\clubsuit"),g("\\cnums","\\mathbb{C}"),g("\\Complex","\\mathbb{C}"),g("\\Dagger","\\ddagger"),g("\\diamonds","\\diamondsuit"),g("\\empty","\\emptyset"),g("\\Epsilon","\\mathrm{E}"),g("\\Eta","\\mathrm{H}"),g("\\exist","\\exists"),g("\\harr","\\leftrightarrow"),g("\\hArr","\\Leftrightarrow"),g("\\Harr","\\Leftrightarrow"),g("\\hearts","\\heartsuit"),g("\\image","\\Im"),g("\\infin","\\infty"),g("\\Iota","\\mathrm{I}"),g("\\isin","\\in"),g("\\Kappa","\\mathrm{K}"),g("\\larr","\\leftarrow"),g("\\lArr","\\Leftarrow"),g("\\Larr","\\Leftarrow"),g("\\lrarr","\\leftrightarrow"),g("\\lrArr","\\Leftrightarrow"),g("\\Lrarr","\\Leftrightarrow"),g("\\Mu","\\mathrm{M}"),g("\\natnums","\\mathbb{N}"),g("\\Nu","\\mathrm{N}"),g("\\Omicron","\\mathrm{O}"),g("\\plusmn","\\pm"),g("\\rarr","\\rightarrow"),g("\\rArr","\\Rightarrow"),g("\\Rarr","\\Rightarrow"),g("\\real","\\Re"),g("\\reals","\\mathbb{R}"),g("\\Reals","\\mathbb{R}"),g("\\Rho","\\mathrm{P}"),g("\\sdot","\\cdot"),g("\\sect","\\S"),g("\\spades","\\spadesuit"),g("\\sub","\\subset"),g("\\sube","\\subseteq"),g("\\supe","\\supseteq"),g("\\Tau","\\mathrm{T}"),g("\\thetasym","\\vartheta"),g("\\weierp","\\wp"),g("\\Zeta","\\mathrm{Z}"),g("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),g("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),g("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),g("\\bra","\\mathinner{\\langle{#1}|}"),g("\\ket","\\mathinner{|{#1}\\rangle}"),g("\\braket","\\mathinner{\\langle{#1}\\rangle}"),g("\\Bra","\\left\\langle#1\\right|"),g("\\Ket","\\left|#1\\right\\rangle");var fo=t=>e=>{var r=e.consumeArg().tokens,n=e.consumeArg().tokens,i=e.consumeArg().tokens,a=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var u=p=>b=>{t&&(b.macros.set("|",s),i.length&&b.macros.set("\\|",o));var f=p;if(!p&&i.length){var z=b.future();z.text==="|"&&(b.popToken(),f=!0)}return{tokens:f?i:n,numArgs:0}};e.macros.set("|",u(!1)),i.length&&e.macros.set("\\|",u(!0));var h=e.consumeArg().tokens,d=e.expandTokens([...a,...h,...r]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};g("\\bra@ket",fo(!1)),g("\\bra@set",fo(!0)),g("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),g("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),g("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),g("\\angln","{\\angl n}"),g("\\blue","\\textcolor{##6495ed}{#1}"),g("\\orange","\\textcolor{##ffa500}{#1}"),g("\\pink","\\textcolor{##ff00af}{#1}"),g("\\red","\\textcolor{##df0030}{#1}"),g("\\green","\\textcolor{##28ae7b}{#1}"),g("\\gray","\\textcolor{gray}{#1}"),g("\\purple","\\textcolor{##9d38bd}{#1}"),g("\\blueA","\\textcolor{##ccfaff}{#1}"),g("\\blueB","\\textcolor{##80f6ff}{#1}"),g("\\blueC","\\textcolor{##63d9ea}{#1}"),g("\\blueD","\\textcolor{##11accd}{#1}"),g("\\blueE","\\textcolor{##0c7f99}{#1}"),g("\\tealA","\\textcolor{##94fff5}{#1}"),g("\\tealB","\\textcolor{##26edd5}{#1}"),g("\\tealC","\\textcolor{##01d1c1}{#1}"),g("\\tealD","\\textcolor{##01a995}{#1}"),g("\\tealE","\\textcolor{##208170}{#1}"),g("\\greenA","\\textcolor{##b6ffb0}{#1}"),g("\\greenB","\\textcolor{##8af281}{#1}"),g("\\greenC","\\textcolor{##74cf70}{#1}"),g("\\greenD","\\textcolor{##1fab54}{#1}"),g("\\greenE","\\textcolor{##0d923f}{#1}"),g("\\goldA","\\textcolor{##ffd0a9}{#1}"),g("\\goldB","\\textcolor{##ffbb71}{#1}"),g("\\goldC","\\textcolor{##ff9c39}{#1}"),g("\\goldD","\\textcolor{##e07d10}{#1}"),g("\\goldE","\\textcolor{##a75a05}{#1}"),g("\\redA","\\textcolor{##fca9a9}{#1}"),g("\\redB","\\textcolor{##ff8482}{#1}"),g("\\redC","\\textcolor{##f9685d}{#1}"),g("\\redD","\\textcolor{##e84d39}{#1}"),g("\\redE","\\textcolor{##bc2612}{#1}"),g("\\maroonA","\\textcolor{##ffbde0}{#1}"),g("\\maroonB","\\textcolor{##ff92c6}{#1}"),g("\\maroonC","\\textcolor{##ed5fa6}{#1}"),g("\\maroonD","\\textcolor{##ca337c}{#1}"),g("\\maroonE","\\textcolor{##9e034e}{#1}"),g("\\purpleA","\\textcolor{##ddd7ff}{#1}"),g("\\purpleB","\\textcolor{##c6b9fc}{#1}"),g("\\purpleC","\\textcolor{##aa87ff}{#1}"),g("\\purpleD","\\textcolor{##7854ab}{#1}"),g("\\purpleE","\\textcolor{##543b78}{#1}"),g("\\mintA","\\textcolor{##f5f9e8}{#1}"),g("\\mintB","\\textcolor{##edf2df}{#1}"),g("\\mintC","\\textcolor{##e0e5cc}{#1}"),g("\\grayA","\\textcolor{##f6f7f7}{#1}"),g("\\grayB","\\textcolor{##f0f1f2}{#1}"),g("\\grayC","\\textcolor{##e3e5e6}{#1}"),g("\\grayD","\\textcolor{##d6d8da}{#1}"),g("\\grayE","\\textcolor{##babec2}{#1}"),g("\\grayF","\\textcolor{##888d93}{#1}"),g("\\grayG","\\textcolor{##626569}{#1}"),g("\\grayH","\\textcolor{##3b3e40}{#1}"),g("\\grayI","\\textcolor{##21242c}{#1}"),g("\\kaBlue","\\textcolor{##314453}{#1}"),g("\\kaGreen","\\textcolor{##71B307}{#1}");var go={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Uh{constructor(e,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new Ph(qh,r.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new co(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,n,i;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:r,end:n}=this.consumeArg());return this.pushToken(new zt("EOF",n.loc)),this.pushTokens(i),r.range(n,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],n=e&&e.length>0;n||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new F("Extra }",a)}else if(a.text==="EOF")throw new F("Unexpected end of input in a macro argument, expected '"+(e&&n?e[o]:"}")+"'",a);if(e&&n)if((s===0||s===1&&e[o]==="{")&&a.text===e[o]){if(++o,o===e.length){r.splice(-o,o);break}}else o=0}while(s!==0||n);return i.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:i,end:a}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new F("The length of delimiters doesn't match the number of args!");for(var n=r[0],i=0;i<n.length;i++){var a=this.popToken();if(n[i]!==a.text)throw new F("Use of the macro doesn't match its definition",a)}}for(var s=[],o=0;o<e;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new F("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),n=r.text,i=r.noexpand?null:this._getExpansion(n);if(i==null||e&&i.unexpandable){if(e&&i==null&&n[0]==="\\"&&!this.isDefined(n))throw new F("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var u=a[o];if(u.text==="#"){if(o===0)throw new F("Incomplete placeholder at end of macro body",u);if(u=a[--o],u.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(u.text))a.splice(o,2,...s[+u.text-1]);else throw new F("Not a valid argument number",u)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new zt(e)]):void 0}expandTokens(e){var r=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),r.push(i)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);return r&&r.map(n=>n.text).join("")}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var n=this.lexer.catcodes[e];if(n!=null&&n!==13)return}var i=typeof r=="function"?r(this):r;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new co(i,this.settings),u=[],h=o.lex();h.text!=="EOF";)u.push(h),h=o.lex();u.reverse();var d={tokens:u,numArgs:a};return d}return i}isDefined(e){return this.macros.has(e)||yr.hasOwnProperty(e)||Ie.math.hasOwnProperty(e)||Ie.text.hasOwnProperty(e)||go.hasOwnProperty(e)}isExpandable(e){var r=this.macros.get(e);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:yr.hasOwnProperty(e)&&!yr[e].primitive}}var bo=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Vn=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),pa={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},vo={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Xn{constructor(e,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Uh(e,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(e,r){if(r===void 0&&(r=!0),this.fetch().text!==e)throw new F("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new zt("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(e,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(Xn.endOfExpression.indexOf(i.text)!==-1||r&&i.text===r||e&&yr[i.text]&&yr[i.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;n.push(a)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(e){for(var r=-1,n,i=0;i<e.length;i++)if(e[i].type==="infix"){if(r!==-1)throw new F("only one infix operator per group",e[i].token);r=i,n=e[i].replaceWith}if(r!==-1&&n){var a,s,o=e.slice(0,r),u=e.slice(r+1);o.length===1&&o[0].type==="ordgroup"?a=o[0]:a={type:"ordgroup",mode:this.mode,body:o},u.length===1&&u[0].type==="ordgroup"?s=u[0]:s={type:"ordgroup",mode:this.mode,body:u};var h;return n==="\\\\abovefrac"?h=this.callFunction(n,[a,e[r],s],[]):h=this.callFunction(n,[a,s],[]),[h]}else return e}handleSupSubscript(e){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var i=this.parseGroup(e);if(!i)throw new F("Expected group after '"+n+"'",r);return i}formatUnsupportedCmd(e){for(var r=[],n=0;n<e.length;n++)r.push({type:"textord",mode:"text",text:e[n]});var i={type:"text",mode:this.mode,body:r},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]};return a}parseAtom(e){var r=this.parseGroup("atom",e);if(this.mode==="text")return r;for(var n,i;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(r&&r.type==="op"){var s=a.text==="\\limits";r.limits=s,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=a.text==="\\limits");else throw new F("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(n)throw new F("Double superscript",a);n=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(i)throw new F("Double subscript",a);i=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(n)throw new F("Double superscript",a);var o={type:"textord",mode:this.mode,text:"\\prime"},u=[o];for(this.consume();this.fetch().text==="'";)u.push(o),this.consume();this.fetch().text==="^"&&u.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:u}}else if(Vn[a.text]){var h=bo.test(a.text),d=[];for(d.push(new zt(Vn[a.text])),this.consume();;){var p=this.fetch().text;if(!Vn[p]||bo.test(p)!==h)break;d.unshift(new zt(Vn[p])),this.consume()}var b=this.subparse(d);h?i={type:"ordgroup",mode:"math",body:b}:n={type:"ordgroup",mode:"math",body:b}}else break}return n||i?{type:"supsub",mode:this.mode,base:r,sup:n,sub:i}:r}parseFunction(e,r){var n=this.fetch(),i=n.text,a=yr[i];if(!a)return null;if(this.consume(),r&&r!=="atom"&&!a.allowedInArgument)throw new F("Got function '"+i+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!a.allowedInText)throw new F("Can't use function '"+i+"' in text mode",n);if(this.mode==="math"&&a.allowedInMath===!1)throw new F("Can't use function '"+i+"' in math mode",n);var{args:s,optArgs:o}=this.parseArguments(i,a);return this.callFunction(i,s,o,n,e)}callFunction(e,r,n,i,a){var s={funcName:e,parser:this,token:i,breakOnTokenText:a},o=yr[e];if(o&&o.handler)return o.handler(s,r,n);throw new F("No function handler for "+e)}parseArguments(e,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var i=[],a=[],s=0;s<n;s++){var o=r.argTypes&&r.argTypes[s],u=s<r.numOptionalArgs;(r.primitive&&o==null||r.type==="sqrt"&&s===1&&a[0]==null)&&(o="primitive");var h=this.parseGroupOfType("argument to '"+e+"'",o,u);if(u)a.push(h);else if(h!=null)i.push(h);else throw new F("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(e,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var i=this.parseArgumentGroup(n,"text");return i!=null?{type:"styling",mode:i.mode,body:[i],style:"text"}:null}case"raw":{var a=this.parseStringGroup("raw",n);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(n)throw new F("A primitive argument cannot be optional");var s=this.parseGroup(e);if(s==null)throw new F("Expected group as "+e,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new F("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var i="",a;(a=this.fetch()).text!=="EOF";)i+=a.text,this.consume();return this.consume(),n.text=i,n}parseRegexGroup(e,r){for(var n=this.fetch(),i=n,a="",s;(s=this.fetch()).text!=="EOF"&&e.test(a+s.text);)i=s,a+=i.text,this.consume();if(a==="")throw new F("Invalid "+r+": '"+n.text+"'",n);return n.range(i,a)}parseColorGroup(e){var r=this.parseStringGroup("color",e);if(r==null)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new F("Invalid color: '"+r.text+"'",r);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(e){var r,n=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",e),!r)return null;!e&&r.text.length===0&&(r.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!i)throw new F("Invalid size: '"+r.text+"'",r);var a={number:+(i[1]+i[2]),unit:i[3]};if(!Z0(a))throw new F("Invalid unit: '"+a.unit+"'",r);return{type:"size",mode:this.mode,value:a,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,r){var n=this.gullet.scanArgument(e);if(n==null)return null;var i=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return r&&this.switchMode(i),s}parseGroup(e,r){var n=this.fetch(),i=n.text,a;if(i==="{"||i==="\\begingroup"){this.consume();var s=i==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),u=this.fetch();this.expect(s),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:bt.range(n,u),body:o,semisimple:i==="\\begingroup"||void 0}}else if(a=this.parseFunction(r,e)||this.parseSymbol(),a==null&&i[0]==="\\"&&!go.hasOwnProperty(i)){if(this.settings.throwOnError)throw new F("Undefined control sequence: "+i,n);a=this.formatUnsupportedCmd(i),this.consume()}return a}formLigatures(e){for(var r=e.length-1,n=0;n<r;++n){var i=e[n],a=i.text;a==="-"&&e[n+1].text==="-"&&(n+1<r&&e[n+2].text==="-"?(e.splice(n,3,{type:"textord",mode:"text",loc:bt.range(i,e[n+2]),text:"---"}),r-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:bt.range(i,e[n+1]),text:"--"}),r-=1)),(a==="'"||a==="`")&&e[n+1].text===a&&(e.splice(n,2,{type:"textord",mode:"text",loc:bt.range(i,e[n+1]),text:a+a}),r-=1)}}parseSymbol(){var e=this.fetch(),r=e.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),i=n.charAt(0)==="*";if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new F(`\\verb assertion failed --
|
|
266
|
+
please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:i}}vo.hasOwnProperty(r[0])&&!Ie[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',e),r=vo[r[0]]+r.slice(1));var a=Dh.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Ie[this.mode][r]){this.settings.strict&&this.mode==="math"&&Pi.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',e);var o=Ie[this.mode][r].group,u=bt.range(e),h;if(Cc.hasOwnProperty(o)){var d=o;h={type:"atom",mode:this.mode,family:d,loc:u,text:r}}else h={type:o,mode:this.mode,loc:u,text:r};s=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(j0(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:bt.range(e),text:r};else return null;if(this.consume(),a)for(var p=0;p<a[0].length;p++){var b=a[0][p];if(!pa[b])throw new F("Unknown accent ' "+b+"'",e);var f=pa[b][this.mode]||pa[b].text;if(!f)throw new F("Accent "+b+" unsupported in "+this.mode+" mode",e);s={type:"accent",mode:this.mode,loc:bt.range(e),label:f,isStretchy:!1,isShifty:!0,base:s}}return s}}Xn.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var fa=function(e,r){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new Xn(e,r);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new F("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new zt("\\df@tag")])}]}return i},yo=function(e,r,n){r.textContent="";var i=ga(e,n).toNode();r.appendChild(i)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),yo=function(){throw new F("KaTeX doesn't work in quirks mode.")});var Hh=function(e,r){var n=ga(e,r).toMarkup();return n},Gh=function(e,r){var n=new Mi(r);return fa(e,n)},wo=function(e,r,n){if(n.throwOnError||!(e instanceof F))throw e;var i=T.makeSpan(["katex-error"],[new Tt(r)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+n.errorColor),i},ga=function(e,r){var n=new Mi(r);try{var i=fa(e,n);return Jc(i,e,n)}catch(a){return wo(a,e,n)}},$h=function(e,r){var n=new Mi(r);try{var i=fa(e,n);return Qc(i,e,n)}catch(a){return wo(a,e,n)}},Wh={version:"0.16.15",render:yo,renderToString:Hh,ParseError:F,SETTINGS_SCHEMA:Tn,__parse:Gh,__renderToDomTree:ga,__renderToHTMLTree:$h,__setFontMetrics:kc,__defineSymbol:l,__defineFunction:K,__defineMacro:g,__domTree:{Span:sn,Anchor:Ii,SymbolNode:Tt,SvgNode:Qt,PathNode:fr,LineNode:Oi}};const jh=Object.freeze(Object.defineProperty({__proto__:null,default:Wh},Symbol.toStringTag,{value:"Module"}));function Vh(){return{enter:{mathFlow:t,mathFlowFenceMeta:e,mathText:a},exit:{mathFlow:i,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:o,mathText:s,mathTextData:o}};function t(u){const h={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[h]}},u)}function e(){this.buffer()}function r(){const u=this.resume(),h=this.stack[this.stack.length-1];h.type,h.meta=u}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const h=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),d=this.stack[this.stack.length-1];d.type,this.exit(u),d.value=h;const p=d.data.hChildren[0];p.type,p.tagName,p.children.push({type:"text",value:h}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const h=this.resume(),d=this.stack[this.stack.length-1];d.type,this.exit(u),d.value=h,d.data.hChildren.push({type:"text",value:h})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function Xh(t){const e=/(```[\s\S]+?```|~~~[\s\S]+?~~~)/g,r=t.split(e),n=/\\\((.*?)\\\)/g,i=/\\\[([\s\S]*?)\\\]/g;for(let a=0;a<r.length;a++)a%2===0&&(r[a]=r[a].replace(n,(s,o)=>`$${o}$`).replace(i,(s,o)=>`$$${o}$$`));return r.join("")}function ba(t,e,r,n){const i=Su(Xh(e),{extensions:[Cu(),Vu()],mdastExtensions:[Bu(),Vh(),...n]}),a={},s={};xo(i,a,s),va(i,t,a,s,r)}function xo(t,e,r){for(const n of t.children){switch(n.type){case"definition":const i=n.identifier;i&&(e[i]=n,r[i.toLowerCase()]=n);continue}n.children&&xo(n,e,r)}}function va(t,e,r,n,i){var s;let a=e.firstChild;for(const o of t.children){let u;switch(o.type){case"inlineMath":{if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="SPAN"&&Kn.has(a))){for(;a;){const d=a.nextSibling;a.remove(),a=d}a=document.createElement("span"),e.appendChild(a)}ko(a,o.value),a=a.nextSibling;continue}case"math":{if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="DIV"&&Kn.has(a))){for(;a;){const d=a.nextSibling;a.remove(),a=d}a=document.createElement("div"),e.appendChild(a)}ko(a,o.value),a=a.nextSibling;continue}case"code":{let d=So.get(a);if(d)d.updateCode(o.lang,o.value);else{for(;a;){const p=a.nextSibling;a.remove(),a=p}d=new H0(o.lang,o.value),a=d.node,So.set(a,d),e.appendChild(a)}a=a.nextSibling;continue}case"html":if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="SPAN")){for(;a;){const d=a.nextSibling;a.remove(),a=d}a=document.createElement("span"),e.appendChild(a)}a.innerHTML=o.value,a=a.nextSibling;continue;case"inlineCode":if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="CODE")){for(;a;){const d=a.nextSibling;a.remove(),a=d}a=document.createElement("code"),e.appendChild(a)}a.textContent=o.value,a=a.nextSibling;continue;case"text":if((a==null?void 0:a.nodeType)===Node.TEXT_NODE)a.nodeValue=o.value;else{for(;a;){const d=a.nextSibling;a.remove(),a=d}e.appendChild(a=document.createTextNode(o.value))}a=a.nextSibling;continue;case"yaml":continue;case"break":if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="BR")){for(;a;){const d=a.nextSibling;a.remove(),a=d}e.appendChild(a=document.createElement("br"))}a=a.nextSibling;continue;case"thematicBreak":if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="HR")){for(;a;){const d=a.nextSibling;a.remove(),a=d}a=document.createElement("hr"),e.appendChild(a)}a=a.nextSibling;continue;case"image":{if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="IMG")){for(;a;){const p=a.nextSibling;a.remove(),a=p}a=document.createElement("img"),e.appendChild(a)}const d=o.url;if(d)if(d.startsWith("python://")){let p=d.substring(9);try{a.src=qu(i,p)}catch(b){console.error(b),a.src=""}}else a.src=d;else a.src="";a.alt=o.alt||"",a.title=o.title||"",a=a.nextSibling;continue}case"linkReference":if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName==="A")){for(;a;){const d=a.nextSibling;a.remove(),a=d}a=document.createElement("a"),e.appendChild(a)}va(o,a,r,n,i);let h;switch(o.referenceType){case"shortcut":h=r[a.textContent.toLowerCase()];break;case"collapsed":h=n[a.textContent.toLowerCase()]||r[a.textContent.toLowerCase()];break;case"full":h=n[(s=o.identifier)==null?void 0:s.toLowerCase()];break}a.href=(h==null?void 0:h.url)||"",a.target="_blank",a.title=(h==null?void 0:h.title)||"",a=a.nextSibling;continue;case"definition":continue;case"footnoteDefinition":case"footnoteReference":case"imageReference":continue;case"blockquote":u="BLOCKQUOTE";break;case"delete":u="DEL";break;case"emphasis":u="EM";break;case"heading":u="H"+o.depth;break;case"link":u="A";break;case"list":u=o.ordered?"OL":"UL";break;case"listItem":u="LI";break;case"paragraph":u="P";break;case"strong":u="STRONG";break;case"table":u="TABLE";break;case"tableCell":u="TD";break;case"tableRow":u="TR";break;default:console.warn("Unknown MDAST node type: "+o.type);continue}if(!((a==null?void 0:a.nodeType)===Node.ELEMENT_NODE&&a.nodeName===u)){for(;a;){const h=a.nextSibling;a.remove(),a=h}a=document.createElement(u),e.appendChild(a)}u==="A"&&(a.href=o.url||"",a.target="_blank",a.title=o.title||""),va(o,a,r,n,i),a=a.nextSibling}for(;a;){const o=a.nextSibling;a.remove(),a=o}}let ya;function Kh(){return ya||(ya=Promise.resolve().then(()=>jh)),ya}async function ko(t,e){let r=Kn.get(t);r==null||r.cancel(),Kn.set(t,r=new Kt),(async()=>{const n=await Kh();r.isCancellationRequested||n.default.render(e,t,{throwOnError:!1})})()}const Kn=new WeakMap,So=new WeakMap;function Yh(t){const r=t.trim().replace(/[^\w\s]|_/g,"").replace(/\s+/g," ").toUpperCase().split(" ");if(r.length===1&&r[0]==="")return"?";let n=r[0][0];return r.length>1&&(n+=r[1][0]),n}function Zh({as:t="div",size:e="avatar-lg",id:r,...n},i){const a=_(t,{...n},i);return t==="button"&&!("type"in n)&&(a.type="button"),a.classList.add("avatar"),e&&a.classList.add(e),r&&a.classList.add(...Jh(r)),a}const zo=[["bg-Land-Green-95","text-Land-Green-30"],["bg-Sunflower-85","text-Sunflower-20"],["bg-Energy-Red-95","text-Energy-Red-45"],["bg-Sea-Blue-Main-28","text-Sky-Blue-95"],["bg-Lavender-90","text-Lavender-50"],["bg-Eucalyptus-85","text-Eucalyptus-20"],["bg-Terracotta-85","text-Terracotta-20"]];function Jh(t){const e=Qh(t);return zo[Math.floor(Math.abs(e%zo.length))]}function Qh(t){let e=0;for(let r=0;r<t.length;r++)e=t.charCodeAt(r)+((e<<5)-e);return e}var Rt=(t=>(t[t.Error=0]="Error",t[t.Danger=1]="Danger",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Success=4]="Success",t))(Rt||{}),Jr=(t=>(t[t.Primary=0]="Primary",t[t.Secondary=1]="Secondary",t[t.Tertiary=2]="Tertiary",t[t.Destructive=3]="Destructive",t[t.CTA=4]="CTA",t))(Jr||{});function qe(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}var Ct=(t=>(t.ExtraSmall="16",t.Small="20",t.Medium="24",t.Large="28",t.ExtraLarge="32",t.ExtraExtraLarge="40",t))(Ct||{});function Yn({size:t=Ct.Medium,...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 448 512"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e);const n=qe("path");return n.setAttribute("d","M413.505 91.951L133.49 371.966l-98.995-98.995c-4.686-4.686-12.284-4.686-16.971 0L6.211 284.284c-4.686 4.686-4.686 12.284 0 16.971l118.794 118.794c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.686-4.686-12.284-4.686-16.97 0z"),r.appendChild(n),r.classList.add("icon"),r}function Eo({size:t=Ct.Medium,...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 448 512"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e);const n=qe("path");return n.setAttribute("d","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 464c-118.664 0-216-96.055-216-216 0-118.663 96.055-216 216-216 118.664 0 216 96.055 216 216 0 118.663-96.055 216-216 216zm141.63-274.961L217.15 376.071c-4.705 4.667-12.303 4.637-16.97-.068l-85.878-86.572c-4.667-4.705-4.637-12.303.068-16.97l8.52-8.451c4.705-4.667 12.303-4.637 16.97.068l68.976 69.533 163.441-162.13c4.705-4.667 12.303-4.637 16.97.068l8.451 8.52c4.668 4.705 4.637 12.303-.068 16.97z"),r.appendChild(n),r}function wa({size:t=Ct.Medium,...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 512 512"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e);const n=qe("path");return n.setAttribute("d","M256 40c118.621 0 216 96.075 216 216 0 119.291-96.61 216-216 216-119.244 0-216-96.562-216-216 0-119.203 96.602-216 216-216m0-32C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm-11.49 120h22.979c6.823 0 12.274 5.682 11.99 12.5l-7 168c-.268 6.428-5.556 11.5-11.99 11.5h-8.979c-6.433 0-11.722-5.073-11.99-11.5l-7-168c-.283-6.818 5.167-12.5 11.99-12.5zM256 340c-15.464 0-28 12.536-28 28s12.536 28 28 28 28-12.536 28-28-12.536-28-28-28z"),r.appendChild(n),r.classList.add("icon"),r}function Zn({size:t=Ct.Medium,...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 576 512"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e);const n=qe("path");return n.setAttribute("d","M270.2 160h35.5c3.4 0 6.1 2.8 6 6.2l-7.5 196c-.1 3.2-2.8 5.8-6 5.8h-20.5c-3.2 0-5.9-2.5-6-5.8l-7.5-196c-.1-3.4 2.6-6.2 6-6.2zM288 388c-15.5 0-28 12.5-28 28s12.5 28 28 28 28-12.5 28-28-12.5-28-28-28zm281.5 52L329.6 24c-18.4-32-64.7-32-83.2 0L6.5 440c-18.4 31.9 4.6 72 41.6 72H528c36.8 0 60-40 41.5-72zM528 480H48c-12.3 0-20-13.3-13.9-24l240-416c6.1-10.6 21.6-10.7 27.7 0l240 416c6.2 10.6-1.5 24-13.8 24z"),r.appendChild(n),r.classList.add("icon"),r}function xa({size:t=Ct.Medium,...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 512 512"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e);const n=qe("path");return n.setAttribute("d","M256 40c118.621 0 216 96.075 216 216 0 119.291-96.61 216-216 216-119.244 0-216-96.562-216-216 0-119.203 96.602-216 216-216m0-32C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm-36 344h12V232h-12c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h48c6.627 0 12 5.373 12 12v140h12c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12h-72c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12zm36-240c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"),r.appendChild(n),r.classList.add("icon"),r}var dn=(t=>(t.ExtraSmall="20",t.Small="24",t.Medium="32",t.Large="40",t.ExtraLarge="48",t.ExtraExtraLarge="60",t.ExtraExtraExtraLarge="80",t.ExtraExtraExtraExtraLarge="120",t))(dn||{});function Jn({size:t="80",...e}){const r=qe("svg");r.setAttribute("viewBox","0 0 80 80"),r.setAttribute("fill","none"),r.setAttribute("width",t),r.setAttribute("height",t),Je(r,e),r.setAttribute("class",(r.getAttribute("class")??"")+" animate-spin");const n=qe("path");n.setAttribute("d","M40 6.15385C21.3073 6.15385 6.15385 21.3073 6.15385 40C6.15385 58.6927 21.3073 73.8462 40 73.8462C58.6927 73.8462 73.8462 58.6927 73.8462 40C73.8462 21.3073 58.6927 6.15385 40 6.15385ZM0 40C0 17.9086 17.9086 0 40 0C62.0914 0 80 17.9086 80 40C80 62.0914 62.0914 80 40 80C17.9086 80 0 62.0914 0 40Z"),n.setAttribute("fill","#99BEFF"),r.appendChild(n);const i=qe("path");return i.setAttribute("d","M36.9229 3.07692C36.9229 1.37759 38.3004 0 39.9998 0C45.2526 0 50.4541 1.03463 55.3071 3.04482C60.1601 5.05501 64.5697 8.00138 68.284 11.7157C71.9984 15.4301 74.9448 19.8396 76.955 24.6927C78.9651 29.5457 79.9998 34.7471 79.9998 40C79.9998 41.6993 78.6222 43.0769 76.9228 43.0769C75.2235 43.0769 73.8459 41.6993 73.8459 40C73.8459 35.5553 72.9705 31.154 71.2695 27.0476C69.5686 22.9412 67.0755 19.2101 63.9326 16.0672C60.7897 12.9242 57.0585 10.4312 52.9521 8.73023C48.8457 7.0293 44.4445 6.15385 39.9998 6.15385C38.3004 6.15385 36.9229 4.77626 36.9229 3.07692Z"),i.setAttribute("fill","#003591"),r.appendChild(i),r}class Qn{}class ed extends Qn{constructor(r,n){super();P(this,"node");P(this,"buttons",{});P(this,"buttonsFieldset");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");for(const s of n.buttons)this.buttons[s.value]=new td(this,s);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"}))),this.buttonsFieldset=_("fieldset",{class:"p-6 pt-3 flex justify-end gap-3"},Object.values(this.buttons).map(s=>s.node))),ba(a,n.textInMarkdown,this.context.conversationMessage.chat.pyodide,this.context.conversationMessage.chat.mdastExtensions)}onClientResult(r){this.buttons[r].selected()}onOpcodeMessageToolCallErrorReceived(r){this.buttonsFieldset.disabled=!0;for(const n in this.buttons)this.buttons[n].possiblyRemoveSpinner()}onErrorWhileReadingBodyStream(r){this.buttonsFieldset.disabled=!0;for(const n in this.buttons)this.buttons[n].possiblyRemoveSpinner()}}class td{constructor(e,r){P(this,"node");P(this,"_spinner");this.dialog=e,this.buttonOption=r,this.node=_(tn,{class:rd(this.buttonOption.variant)+" min-w-24",size:$r.Medium,onclick:()=>this.onClickAsync()},this.buttonOption.text)}async onClickAsync(){this.dialog.buttonsFieldset.disabled=!0,this.node.insertBefore(this._spinner=_(Jn,{size:dn.ExtraSmall}),this.node.firstChild);try{await this.dialog.context.postResultAsync(this.buttonOption.value)}catch(e){throw e}}selected(){this.possiblyRemoveSpinner(),this.node.insertBefore(_(Yn,{size:Ct.Small}),this.node.firstChild)}possiblyRemoveSpinner(){var e;(e=this._spinner)==null||e.remove()}}function rd(t){switch(t){case Jr.Primary:return Ft.Primary;case Jr.Secondary:return Ft.Secondary;case Jr.Tertiary:return Ft.Tertiary;case Jr.Destructive:return Ft.Destructive;case Jr.CTA:return Ft.CTA}}class nd{constructor(){P(this,"_dataByIndex",{})}append(e){const r=this._dataByIndex[e.toolCallUpdateIndex];return r?(e.llmFunctionId&&(r.llmFunctionId=e.llmFunctionId),e.toolCallUpdateName&&(r.functionName=e.toolCallUpdateName),e.toolCallUpdateArguments&&(r.functionArguments+=e.toolCallUpdateArguments),r):this._dataByIndex[e.toolCallUpdateIndex]=new To(e.llmFunctionId,e.toolCallUpdateName,e.toolCallUpdateArguments??"")}clear(){this._dataByIndex={}}}class To{constructor(e,r,n){this.llmFunctionId=e,this.functionName=r,this.functionArguments=n}}function id(t){const e=[];let r=0;for(;r<t.length;)if(t[r]==="\\"&&r+1<t.length){switch(t[r+1]){case"n":e.push(`
|
|
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
|
-
`: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=
|
|
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){q(this,"node");q(this,"_buttonNode");q(this,"_buttonIconWrapperNode");this.context=e,this.node=B("div",{class:"my-2"},this._buttonNode=B(en,{as:"div",class:"p-2 pr-3 gap-2 select-none",variant:Ft.Badge,size:$r.Medium},this._buttonIconWrapperNode=B("div",{width:"24px",height:"24px"},B(Jn,{size:hn.Small})),`Search for '${r}'`))}setButtonSuccess(){this._buttonNode.setAttribute("data-status","success"),this._buttonIconWrapperNode.replaceChild(B(Yn,null),this._buttonIconWrapperNode.firstChild)}setButtonError(){this._buttonNode.setAttribute("data-status","error"),this._buttonIconWrapperNode.replaceChild(B(xa,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();q(this,"node");this.context=r;let i;switch(n.type){case Bt.Error:i=B(ya,{class:"text-Energy-Red-45"});break;case Bt.Danger:i=B(Zn,{class:"text-Energy-Red-45"});break;case Bt.Warning:i=B(Zn,{class:"text-Terracotta-30"});break;case Bt.Info:i=B(wa,{class:"text-Sea-Blue-Main-28"});break;case Bt.Success:i=B(Eo,{class:"text-Land-Green-30"});break}i.classList.add("shrink-0");let a;this.node=B("section",{class:"max-w-lg text-left my-2 bg-Sandstone-97 select-none border border-Light"},B("div",{class:"p-6 pb-3 flex gap-5"},i,B("div",null,B("h6",null,n.title),a=B("div",{class:"prose prose-sm prose-neutral"}))),B("fieldset",{class:"p-6 pt-3 flex justify-end gap-3"},B(en,{as:"a",variant:Ft.Tertiary,class:"min-w-24",size:$r.Medium,target:"_blank",href:n.url},"Open in new tab"))),ga(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 ka({size:t=Rt.Medium,...e}){const r=Ge("svg");r.setAttribute("viewBox","0 0 20 20"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),rt(r,e);const n=Ge("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 Sa({size:t=Rt.Medium,...e}){const r=Ge("svg");r.setAttribute("viewBox","0 0 20 20"),r.setAttribute("fill","currentColor"),r.setAttribute("width",t),r.setAttribute("height",t),rt(r,e);const n=Ge("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}class _o{constructor(e,r,n,i,a,s,o){q(this,"node");q(this,"_rightColumnNode");q(this,"_feedbackNode");q(this,"_showToolCallResult",!1);q(this,"_toolCallInfoNode");q(this,"_currentMessageBlockNode");q(this,"_currentMessageBlockNodeMarkdown");q(this,"_accumulatedMarkdown","");q(this,"_toolCallBuilder",new nd);q(this,"_clientFunctionInvocationsByOperationId",{});q(this,"_clientFunctionInvocationsByLlmFunctionId",{});q(this,"_subConversations",{});q(this,"_pulseNode");q(this,"_pulseNodeAnimation");this.conversation=e,this.authorRole=r,this.authorId=n,this.authorPictureUrl=i,this.authorDisplayName=a,this.authorEmail=s,this.messageId=o,this.node=B("li",{class:"p-2 flex gap-2"},B(Zh,{class:"shrink-0",id:this.authorId,title:this.authorDisplayName},this.authorPictureUrl?B("img",{src:this.authorPictureUrl,class:"w-full h-full"}):B("span",{marginTop:"-.1em"},Yh(this.authorDisplayName))),this._rightColumnNode=B("div",{class:"shrink-0 flex-1"},B("div",{class:"font-medium text-base leading-5"},this.authorDisplayName))),this.ensureCurrentMessageBlockNode()}get chat(){return this.conversation.chat}ensureCurrentMessageBlockNode(){if(!this._currentMessageBlockNode&&(this._rightColumnNode.appendChild(this._toolCallInfoNode=B("div",{class:"prose prose-neutral prose-sm max-w-none"})),this._rightColumnNode.appendChild(this._currentMessageBlockNode=B("div",{class:"prose prose-neutral prose-sm max-w-none"})),this._currentMessageBlockNodeMarkdown="",this.authorRole==="assistant")){this._pulseNode=B("div",{class:"inline-flex relative h-3 w-3"},B("div",{class:"absolute inline-flex h-full w-full rounded-full bg-Sky-Blue-80"}),B("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()}ga(this._currentMessageBlockNode,this._currentMessageBlockNodeMarkdown,this.chat.pyodide,this.chat.mdastExtensions),this._pulseNode&&(this._pulseNodeAnimation.currentTime=r,this._pulseNode.classList.add("ml-[1ch]"),ud(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(B("div",{class:"flex"},B("div",{class:"p-1"},B("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(B("div",{class:"flex"},B("div",{class:"p-1"},B("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=B("div",{class:"flex"},B("a",{class:"btn btn-link p-1"},B(e?ka:Sa,null))):this._feedbackNode=B("div",{class:"flex"},B("a",{class:"btn btn-link p-1",onclick:()=>{this.conversation.chat.setLike(this.messageId,!0),this._feedbackNode.replaceWith(this._feedbackNode=B("div",{class:"flex"},B("a",{class:"btn btn-link p-1"},B(ka,null))))}},B(ka,null)),B("a",{class:"btn btn-link p-1",onclick:()=>{this.conversation.chat.setLike(this.messageId,!1),this._feedbackNode.replaceWith(this._feedbackNode=B("div",{class:"flex"},B("a",{class:"btn btn-link p-1"},B(Sa,null))))}},B(Sa,null))),this._rightColumnNode.appendChild(this._feedbackNode)}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 ud(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){q(this,"node");q(this,"messagesListNode");q(this,"messages",[]);q(this,"activeMessage");q(this,"_opcodeConversationEndReceived");q(this,"_opcodeConversationErrorReceived");q(this,"_onErrorWhileReadingBodyStreamCalled");this.chat=e,this.id=r,this.node=this.messagesListNode=B("ol",null)}onOpcodeMessageBeginReceived(e,r,n,i,a,s){const o=new _o(this,e,r,n,i,a,s);return this.messages.push(this.activeMessage=o),this.messagesListNode.appendChild(o.node),o}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),!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 Ia){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(B("li",{class:"m-2 border border-Light p-6 flex gap-5 bg-Sandstone-97"},B(ya,{class:"text-Energy-Red-45"}),B("div",null,B("h6",null,e),B("div",{class:"prose prose-sm prose-neutral"},B("p",null,r)))))}displayInfo(e,r){this.messagesListNode.appendChild(B("li",{class:"m-2 border border-Light p-6 flex gap-5 bg-Sandstone-97"},B(wa,{class:"text-Sea-Blue-Main-28"}),B("div",null,B("h6",null,e),B("div",{class:"prose prose-sm prose-neutral"},B("p",null,r)))))}}class Bo extends No{constructor(r,n,i,a){super(r,n);q(this,"_buttonNode");q(this,"_buttonIconWrapperNode");q(this,"_buttonTextNode");q(this,"_contentWrapperNode");q(this,"_contentNode");q(this,"_expanded",!1);q(this,"_expandedCt");q(this,"_expandPromise");this.parentMessage=i,this.title=a,this.node=B("div",{class:"my-2"},this._buttonNode=B(en,{class:"p-2 gap-2 group",variant:Ft.Badge,size:$r.Medium,onclick:()=>this.expanded=!this.expanded},this._buttonIconWrapperNode=B("div",{width:"24px",height:"24px"},B(Jn,{size:hn.Small})),this.title,B(Ao,{class:"transition-all duration-300 group-data-[expanded=true]:-rotate-180"})),this._contentWrapperNode=B("div",{class:"grid",gridTemplateRows:this._expanded?"1fr":"0fr",opacity:this._expanded?"1":"0","aria-expanded":this._expanded},B("div",{class:"overflow-hidden"},this._contentNode=B("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 lr;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 lr;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(B(Yn,null),this._buttonIconWrapperNode.firstChild)}setButtonError(){this._buttonNode.setAttribute("data-status","error"),this._buttonIconWrapperNode.replaceChild(B(xa,null),this._buttonIconWrapperNode.firstChild)}async expandAsync(){await this.parentMessage.expandAsync(),this._expanded?this._expandPromise&&await this._expandPromise:await this.doExpandAsync()}}class cd{constructor(e){q(this,"node");q(this,"url");q(this,"historyUrl");q(this,"feedbackUrl");q(this,"fetch");q(this,"conversationsById",new Map);q(this,"feedbackByMessageId",new Map);q(this,"rootConversation",new No(this,null));q(this,"clientFunctionInvocationHandlers",{});q(this,"clientFunctionInvocationHandlersPartial",{});q(this,"clientFunctionInvocationsByOperationId",{});q(this,"mdastExtensions",[]);q(this,"pyodide");q(this,"_lazyInitializePyodidePromise");q(this,"_completion");this.conversationsById.set(null,this.rootConversation),this.url=e.url,this.historyUrl=e.historyUrl,this.feedbackUrl=e.feedbackUrl,this.fetch=e.fetch??fetch.bind(window),this.node=B("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}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.setLike(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.setLike(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){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+`
|
|
271
271
|
`+al+`
|
|
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
|
|
273
|
-
`+n[a].content,n.splice(a,1)}try{await this._completion.startAsync(this.fetch,this.url,n,r)}catch(i){let a=this._completion.wasStopped;this._completion=null,this.rootConversation.onErrorBeforeReadingBodyStreamStarted(i,a);return}try{for(;await this._completion.waitToReadAsync();)for(const i of this._completion.read()){switch(i.type){case Me.MessageInvokeClientFunctionResult:{const a=this.clientFunctionInvocationsByOperationId[i.operationId];a.context.conversationMessage.setClientInvocationResult(a,JSON.parse(i.result));continue}case Me.MessageInvokeClientFunctionError:{const a=this.clientFunctionInvocationsByOperationId[i.operationId];a.context.conversationMessage.setClientInvocationError(a,i.error);continue}}this.conversationsById.get(i.conversationId).handleMessage(i)}}catch(i){this.rootConversation.onErrorWhileReadingBodyStream(i,this._completion.wasStopped)}finally{this._completion=null,this.rootConversation.onRootConversationEndOfBodyStream()}}stop(){var e;(e=this._completion)==null||e.stop()}async setLike(e,r){const n=await this.fetch(this.feedbackUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messageId:e,isThumbsUp:r})});if(!n.ok)throw new Error(`Failed to send feedback: ${n.status} ${n.statusText}`);this.feedbackByMessageId.set(e,r)}async LoadLikes(){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 hd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var za,Ro;function dd(){if(Ro)return za;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,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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 _(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},Qe={scope:"number",begin:W,relevance:0},it={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},Ue={scope:"title",begin:V,relevance:0},ft={scope:"title",begin:ee,relevance:0},et={begin:"\\.\\s*"+ee,relevance:0};var at=Object.freeze({__proto__:null,APOS_STRING_MODE:le,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:Qe,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:et,NUMBER_MODE:Ae,NUMBER_RE:j,PHRASAL_WORDS_MODE:Ce,QUOTE_STRING_MODE:Ee,REGEXP_MODE:it,RE_STARTERS_RE:$,SHEBANG:be,TITLE_MODE:Ue,UNDERSCORE_IDENT_RE:ee,UNDERSCORE_TITLE_MODE:ft});function wr(x,R){x.input[x.index-1]==="."&&R.ignoreMatch()}function dn(x,R){x.className!==void 0&&(x.scope=x.className,delete x.className)}function mn(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"],ir="keyword";function pn(x,R,X=ir){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,pn(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,Ea(me[0],me[1])]})}}function Ea(x,R){return R?Number(R):Ta(x)?0:1}function Ta(x){return kr.includes(x.toLowerCase())}const ti={},ar=x=>{console.error(x)},ri=(x,...R)=>{console.log(`WARN: ${x}`,...R)},N=(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+=_(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 ar("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),U;if(typeof x.beginScope!="object"||x.beginScope===null)throw ar("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 ar("skip, excludeEnd, returnEnd not compatible with endScope: {}"),U;if(typeof x.endScope!="object"||x.endScope===null)throw ar("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 sr(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+=_(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((fn,Aa)=>Aa>0&&fn!==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;[dn,Lr,sr,xr].forEach(Ve=>Ve(te,Q)),x.compilerExtensions.forEach(Ve=>Ve(te,Q)),te.__beforeBegin=null,[mn,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=pn(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"),Fd=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(P){return Q.noHighlightRe.test(P)}function Ze(P){let ae=P.className+" ";ae+=P.parentNode?P.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.",P)),Oe?ke[1]:"no-highlight"}return ae.split(/\s+/).find(Oe=>me(Oe)||Er(Oe))}function Ve(P,ae,ke){let Oe="",Ye="";typeof ae=="object"?(Oe=P,ke=ae.ignoreIllegals,Ye=ae.language):(N("10.7.0","highlight(lang, code, ...args) has been deprecated."),N("10.7.0",`Please use highlight(code, options) instead.
|
|
274
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),Ye=P,Oe=ae),ke===void 0&&(ke=!0);const Ot={code:Oe,language:Ye};ii("before:highlight",Ot);const Tr=Ot.result?Ot.result:fn(Ot.language,Ot.code,ke);return Tr.code=Ot.code,ii("after:highlight",Tr),Tr}function fn(P,ae,ke,Oe){const Ye=Object.create(null);function Ot(Z,ne){return Z.keywords[ne]}function Tr(){if(!fe.keywords){tt.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[or,r4]=st;if(tt.addText(ve),ve="",Ye[Be]=(Ye[Be]||0)+1,Ye[Be]<=Fd&&(oi+=r4),or.startsWith("_"))ve+=ne[0];else{const n4=Xt.classNameAliases[or]||or;Vt(ne[0],n4)}}else ve+=ne[0];Z=fe.keywordPatternRe.lastIndex,ne=fe.keywordPatternRe.exec(Le)}ve+=Le.substring(Z),tt.addText(ve)}function ai(){if(Le==="")return;let Z=null;if(typeof fe.subLanguage=="string"){if(!R[fe.subLanguage]){tt.addText(Le);return}Z=fn(fe.subLanguage,Le,!0,rl[fe.subLanguage]),rl[fe.subLanguage]=Z._top}else Z=Ma(Le,fe.subLanguage.length?fe.subLanguage:null);fe.relevance>0&&(oi+=Z.relevance),tt.__addSublanguage(Z._emitter,Z.language)}function xt(){fe.subLanguage!=null?ai():Tr(),Le=""}function Vt(Z,ne){Z!==""&&(tt.startScope(ne),tt.addText(Z),tt.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],or=ne[ve];st?Vt(or,st):(Le=or,Tr(),Le=""),ve++}}function Qo(Z,ne){return Z.scope&&typeof Z.scope=="string"&&tt.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 Zd(Z){return fe.matcher.regexIndex===0?(Le+=Z[0],1):(Ba=!0,0)}function Jd(Z){const ne=Z[0],ve=Z.rule,Be=new e(ve),st=[ve.__beforeBegin,ve["on:begin"]];for(const or of st)if(or&&(or(Z,Be),Be.isMatchIgnored))return Zd(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 Qd(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&&tt.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 e4(){const Z=[];for(let ne=fe;ne!==Xt;ne=ne.parent)ne.scope&&Z.unshift(ne.scope);Z.forEach(ne=>tt.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 (${P})`);throw Be.languageName=P,Be.badRule=si.rule,Be}return 1}if(si=ne,ne.type==="begin")return Jd(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=Qd(ne);if(Be!==Vo)return Be}if(ne.type==="illegal"&&ve==="")return 1;if(Na>1e5&&Na>ne.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Le+=ve,ve.length}const Xt=Er(P);if(!Xt)throw ar(We.replace("{}",P)),new Error('Unknown language: "'+P+'"');const t4=It(Xt);let _a="",fe=Oe||t4;const rl={},tt=new Q.__emitter(Q);e4();let Le="",oi=0,Pr=0,Na=0,Ba=!1;try{if(Xt.__emitTokens)Xt.__emitTokens(ae,tt);else{for(fe.matcher.considerAll();;){Na++,Ba?Ba=!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 tt.finalize(),_a=tt.toHTML(),{language:P,value:_a,relevance:oi,illegal:!1,_emitter:tt,_top:fe}}catch(Z){if(Z.message&&Z.message.includes("Illegal"))return{language:P,value:wt(ae),illegal:!0,relevance:0,_illegalBy:{message:Z.message,index:Pr,context:ae.slice(Pr-100,Pr+100),mode:Z.mode,resultSoFar:_a},_emitter:tt};if($e)return{language:P,value:wt(ae),illegal:!1,relevance:0,errorRaised:Z,_emitter:tt,_top:fe};throw Z}}function Aa(P){const ae={value:wt(P),illegal:!1,relevance:0,_top:te,_emitter:new Q.__emitter(Q)};return ae._emitter.addText(P),ae}function Ma(P,ae){ae=ae||Q.languages||Object.keys(R);const ke=Aa(P),Oe=ae.filter(Er).filter(Zo).map(xt=>fn(xt,P,!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 Pd(P,ae,ke){const Oe=ae&&X[ae]||ke;P.classList.add("hljs"),P.classList.add(`language-${Oe}`)}function Ca(P){let ae=null;const ke=Ze(P);if(me(ke))return;if(ii("before:highlightElement",{el:P,language:ke}),P.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",P);return}if(P.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(P)),Q.throwUnescapedHTML))throw new zr("One of your code blocks includes unescaped HTML.",P.innerHTML);ae=P;const Oe=ae.textContent,Ye=ke?Ve(Oe,{language:ke,ignoreIllegals:!0}):Ma(Oe);P.innerHTML=Ye.value,P.dataset.highlighted="yes",Pd(P,ke,Ye.language),P.result={language:Ye.language,re:Ye.relevance,relevance:Ye.relevance},Ye.secondBest&&(P.secondBest={language:Ye.secondBest.language,relevance:Ye.secondBest.relevance}),ii("after:highlightElement",{el:P,result:Ye,text:Oe})}function qd(P){Q=jo(Q,P)}const Ud=()=>{ni(),N("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Hd(){ni(),N("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(Ca)}function Gd(){Ko&&ni()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Gd,!1);function $d(P,ae){let ke=null;try{ke=ae(x)}catch(Oe){if(ar("Language definition for '{}' could not be registered.".replace("{}",P)),$e)ar(Oe);else throw Oe;ke=te}ke.name||(ke.name=P),R[P]=ke,ke.rawDefinition=ae.bind(null,x),ke.aliases&&Yo(ke.aliases,{languageName:P})}function Wd(P){delete R[P];for(const ae of Object.keys(X))X[ae]===P&&delete X[ae]}function jd(){return Object.keys(R)}function Er(P){return P=(P||"").toLowerCase(),R[P]||R[X[P]]}function Yo(P,{languageName:ae}){typeof P=="string"&&(P=[P]),P.forEach(ke=>{X[ke.toLowerCase()]=ae})}function Zo(P){const ae=Er(P);return ae&&!ae.disableAutodetect}function Vd(P){P["before:highlightBlock"]&&!P["before:highlightElement"]&&(P["before:highlightElement"]=ae=>{P["before:highlightBlock"](Object.assign({block:ae.el},ae))}),P["after:highlightBlock"]&&!P["after:highlightElement"]&&(P["after:highlightElement"]=ae=>{P["after:highlightBlock"](Object.assign({block:ae.el},ae))})}function Xd(P){Vd(P),pe.push(P)}function Kd(P){const ae=pe.indexOf(P);ae!==-1&&pe.splice(ae,1)}function ii(P,ae){const ke=P;pe.forEach(function(Oe){Oe[ke]&&Oe[ke](ae)})}function Yd(P){return N("10.7.0","highlightBlock will be removed entirely in v12.0"),N("10.7.0","Please use highlightElement now."),Ca(P)}Object.assign(x,{highlight:Ve,highlightAuto:Ma,highlightAll:ni,highlightElement:Ca,highlightBlock:Yd,configure:qd,initHighlighting:Ud,initHighlightingOnLoad:Hd,registerLanguage:$d,unregisterLanguage:Wd,listLanguages:jd,getLanguage:Er,registerAliases:Yo,autoDetection:Zo,inherit:jo,addPlugin:Xd,removePlugin:Kd}),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 P in at)typeof at[P]=="object"&&t(at[P]);return Object.assign(x,at),x},Qr=Xo({});return Qr.newInstance=()=>Xo({}),za=Qr,Qr.HighlightJS=Qr,Qr.default=Qr,za}var md=dd();const Io=hd(md),pd=Object.freeze(Object.defineProperty({__proto__:null,HighlightJS:Io,default:Io},Symbol.toStringTag,{value:"Module"})),Oo="[A-Za-z$_][0-9A-Za-z$_]*",fd=["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"],gd=["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"],bd=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],vd=[].concat(Fo,Lo,Do);function yd(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:fd,literal:gd,built_in:vd,"variable.language":bd},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]},_={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(_,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,_,{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:[_,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 wd=Object.freeze(Object.defineProperty({__proto__:null,default:yd},Symbol.toStringTag,{value:"Module"}));function xd(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]},_={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,_,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,_,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,_],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 kd=Object.freeze(Object.defineProperty({__proto__:null,default:xd},Symbol.toStringTag,{value:"Module"}));function Sd(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 zd=Object.freeze(Object.defineProperty({__proto__:null,default:Sd},Symbol.toStringTag,{value:"Module"})),Ed=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_-]*/}}),Td=["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"],Ad=["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"],Md=[...Td,...Ad],Cd=["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(),_d=["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(),Nd=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Bd=["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 Rd(t){const e=t.regex,r=Ed(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:":("+_d.join("|")+")"},{begin:":(:)?("+Nd.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Bd.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:Cd.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...o,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Md.join("|")+")\\b"}]}}const Id=Object.freeze(Object.defineProperty({__proto__:null,default:Rd},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 Od(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]},_={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(_,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,_,{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:[_,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 Ld(t){const e=Od(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 Dd=Object.freeze(Object.defineProperty({__proto__:null,default:Ld},Symbol.toStringTag,{value:"Module"}));kt.Chat=cd,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})});
|
|
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.LoadLikes();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
|
+
`+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 setLike(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 LoadLikes(){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,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}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"})});
|