@eloquentai/chat-sdk 0.23.0-dev → 0.24.0-dev
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/{index-CES5n8Xe.js → index-B3OStgEa.js} +798 -798
- package/dist/{index-CES5n8Xe.js.map → index-B3OStgEa.js.map} +1 -1
- package/dist/{index-B8k1g58i.js → index-DLHceM4_.js} +2 -2
- package/dist/{index-B8k1g58i.js.map → index-DLHceM4_.js.map} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as x, jsxs as U, Fragment as Qe } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronDown as qo, X as gr, Copy as nl, ThumbsUp as rl, ThumbsDown as il, FileSearch as ol, CheckCircle as al, Info as sl, XCircle as ll, AlertTriangle as cl, ArrowUp as ul, RefreshCcw as fl } from "lucide-react";
|
|
3
|
-
import { clsx as
|
|
4
|
-
import { twMerge as
|
|
3
|
+
import { clsx as pl } from "clsx";
|
|
4
|
+
import { twMerge as dl } from "tailwind-merge";
|
|
5
5
|
import * as ue from "react";
|
|
6
|
-
import { useState as V, useEffect as ee, createContext as
|
|
6
|
+
import { useState as V, useEffect as ee, createContext as pn, useContext as dn, useMemo as st, useRef as se, useCallback as Z } from "react";
|
|
7
7
|
import { useDebounce as br } from "@uidotdev/usehooks";
|
|
8
8
|
import * as Xe from "@radix-ui/react-scroll-area";
|
|
9
9
|
import { ScrollArea as hl } from "@radix-ui/react-scroll-area";
|
|
@@ -15,16 +15,16 @@ import { z as X } from "zod";
|
|
|
15
15
|
import xl from "react-dom/client";
|
|
16
16
|
try {
|
|
17
17
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
18
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
18
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "73a0d284-250a-4e94-b19f-51501ebde5df", e._sentryDebugIdIdentifier = "sentry-dbid-73a0d284-250a-4e94-b19f-51501ebde5df");
|
|
19
19
|
} catch {
|
|
20
20
|
}
|
|
21
21
|
{
|
|
22
22
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
23
|
-
e.SENTRY_RELEASE = { id: "
|
|
23
|
+
e.SENTRY_RELEASE = { id: "24df6ec74e0b5722a68f1ac62ce9a65a3c4c9136" };
|
|
24
24
|
}
|
|
25
25
|
if (typeof window < "u") {
|
|
26
26
|
const e = "development";
|
|
27
|
-
import("./index-
|
|
27
|
+
import("./index-DLHceM4_.js").then((t) => {
|
|
28
28
|
t.init({
|
|
29
29
|
dsn: void 0,
|
|
30
30
|
environment: e,
|
|
@@ -38,9 +38,9 @@ if (typeof window < "u") {
|
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
const En = `*,: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:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";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]){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::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}*{scrollbar-color:initial;scrollbar-width:initial}:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 267 56% 46%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%;--radius: .5rem}.dark{--background: 262 50% 10%;--foreground: 262 5% 90%;--card: 262 50% 10%;--card-foreground: 262 5% 90%;--popover: 262 50% 5%;--popover-foreground: 262 5% 90%;--primary: 262 62% 70%;--primary-foreground: 0 0% 100%;--primary-dark: 262 62% 60%;--secondary: 262 30% 30%;--secondary-foreground: 0 0% 100%;--secondary-dark: 262 30% 20%;--secondary-light: 262 30% 40%;--tertiary: 267 56% 46%;--tertiary-foreground: 0 0% 100%;--tertiary-dark: 267 38% 25%;--tertiary-light: 263 100% 85%;--muted: 224 30% 25%;--muted-foreground: 262 5% 90%;--accent: 224 30% 25%;--accent-foreground: 262 5% 100%;--accent-dark: 224 30% 15%;--destructive: 0 100% 30%;--destructive-foreground: 262 5% 90%;--border: 0 0% 30%;--input: 262 30% 25%;--ring: 262 62% 71%;--radius: .5rem;--sidebar-background: var(--background);--sidebar-foreground: var(--foreground);--sidebar-primary: var(--primary);--sidebar-primary-foreground: var(--primary-foreground);--sidebar-accent: var(--accent);--sidebar-accent-foreground: var(--accent-foreground);--sidebar-border: var(--border);--sidebar-ring: var(--ring)}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-10{bottom:2.5rem}.bottom-2{bottom:.5rem}.left-1{left:.25rem}.left-\\[50\\%\\]{left:50%}.left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.right-0{right:0}.right-1{right:.25rem}.right-16{right:4rem}.right-2{right:.5rem}.right-4{right:1rem}.right-\\[-9px\\]{right:-9px}.top-0{top:0}.top-4{top:1rem}.top-\\[50\\%\\]{top:50%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.m-0{margin:0}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mt-20{margin-top:-5rem}.-mt-6{margin-top:-1.5rem}.mb-0{margin-bottom:0}.mb-10{margin-bottom:2.5rem}.mb-3{margin-bottom:.75rem}.mb-\\[19px\\]{margin-bottom:19px}.ml-0{margin-left:0}.ml-3{margin-left:.75rem}.ml-5{margin-left:1.25rem}.mr-3{margin-right:.75rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-2\\.5{height:.625rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.max-h-\\[132px\\]{max-height:132px}.min-h-\\[48px\\]{min-height:48px}.min-h-\\[80px\\]{min-height:80px}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-2\\.5{width:.625rem}.w-2\\/3{width:66.666667%}.w-24{width:6rem}.w-3{width:.75rem}.w-32{width:8rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-full{width:100%}.min-w-min{min-width:min-content}.max-w-\\[75\\%\\]{max-width:75%}.max-w-\\[88\\%\\]{max-width:88%}.max-w-\\[90vw\\]{max-width:90vw}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom-right{transform-origin:bottom right}.translate-x-0{--tw-translate-x: 0px;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))}.translate-x-8{--tw-translate-x: 2rem;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))}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;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))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;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))}.-rotate-180{--tw-rotate: -180deg;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))}.rotate-0{--tw-rotate: 0deg;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))}.rotate-180{--tw-rotate: 180deg;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))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;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))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.scale-95,.scale-\\[0\\.95\\]{--tw-scale-x: .95;--tw-scale-y: .95;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))}.-scale-x-100{--tw-scale-x: -1;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))}.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))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.resize-none{resize:none}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.self-end{align-self:flex-end}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-0{border-width:0px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-amber-400{--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\\[\\#000\\]{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FAF9F7\\]{--tw-bg-opacity: 1;background-color:rgb(250 249 247 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-black\\/80{background-color:#000c}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.bg-popover{background-color:hsl(var(--popover))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/90{background-color:#ffffffe6}.object-contain{object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\\[1px\\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.pb-10{padding-bottom:2.5rem}.pb-14{padding-bottom:3.5rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-10{padding-top:2.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.text-\\[\\#fff\\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-70{opacity:.7}.shadow-\\[0_0_4px_0_rgba\\(0\\,0\\,0\\,0\\.20\\)\\]{--tw-shadow: 0 0 4px 0 rgba(0,0,0,.2);--tw-shadow-colored: 0 0 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-transparent{--scrollbar-track: transparent !important}.scrollbar-thumb-border{--scrollbar-thumb: hsl(var(--border)) !important}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{animation-timing-function:linear}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}body{background-color:transparent}.eloquent-chat{font-family:Roboto,Arial,sans-serif}.wrap-anywhere{overflow-wrap:anywhere}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:-right-2:before{content:var(--tw-content);right:-.5rem}.before\\:bottom-2:before{content:var(--tw-content);bottom:.5rem}.before\\:h-0:before{content:var(--tw-content);height:0px}.before\\:w-0:before{content:var(--tw-content);width:0px}.before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.last\\:mb-0:last-child{margin-bottom:0}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--primary))}.hover\\:opacity-100:hover{opacity:1}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:scrollbar-thumb-border{--scrollbar-thumb-hover: hsl(var(--border)) !important}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--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(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-1:focus-visible{--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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-2:focus-visible{--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(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-muted:focus-visible{--tw-ring-color: hsl(var(--muted))}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.dark\\:bg-background:is(.dark *){background-color:hsl(var(--background))}.dark\\:bg-card:is(.dark *){background-color:hsl(var(--card))}@media (min-width: 640px){.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius)}.sm\\:text-left{text-align:left}}@media (min-width: 768px){.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}`, vl = ".eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}";
|
|
41
|
+
const En = `*,: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:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";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]){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::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}*{scrollbar-color:initial;scrollbar-width:initial}:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 267 56% 46%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%;--radius: .5rem}.dark{--background: 262 50% 10%;--foreground: 262 5% 90%;--card: 262 50% 10%;--card-foreground: 262 5% 90%;--popover: 262 50% 5%;--popover-foreground: 262 5% 90%;--primary: 262 62% 70%;--primary-foreground: 0 0% 100%;--primary-dark: 262 62% 60%;--secondary: 262 30% 30%;--secondary-foreground: 0 0% 100%;--secondary-dark: 262 30% 20%;--secondary-light: 262 30% 40%;--tertiary: 267 56% 46%;--tertiary-foreground: 0 0% 100%;--tertiary-dark: 267 38% 25%;--tertiary-light: 263 100% 85%;--muted: 224 30% 25%;--muted-foreground: 262 5% 90%;--accent: 224 30% 25%;--accent-foreground: 262 5% 100%;--accent-dark: 224 30% 15%;--destructive: 0 100% 30%;--destructive-foreground: 262 5% 90%;--border: 0 0% 30%;--input: 262 30% 25%;--ring: 262 62% 71%;--radius: .5rem;--sidebar-background: var(--background);--sidebar-foreground: var(--foreground);--sidebar-primary: var(--primary);--sidebar-primary-foreground: var(--primary-foreground);--sidebar-accent: var(--accent);--sidebar-accent-foreground: var(--accent-foreground);--sidebar-border: var(--border);--sidebar-ring: var(--ring)}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-10{bottom:2.5rem}.bottom-2{bottom:.5rem}.left-1{left:.25rem}.left-\\[50\\%\\]{left:50%}.left-\\[calc\\(50\\%-0\\.75rem\\)\\]{left:calc(50% - .75rem)}.right-0{right:0}.right-1{right:.25rem}.right-16{right:4rem}.right-2{right:.5rem}.right-4{right:1rem}.right-\\[-9px\\]{right:-9px}.top-0{top:0}.top-4{top:1rem}.top-\\[50\\%\\]{top:50%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.m-0{margin:0}.m-auto{margin:auto}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mt-20{margin-top:-5rem}.-mt-6{margin-top:-1.5rem}.mb-0{margin-bottom:0}.mb-10{margin-bottom:2.5rem}.mb-3{margin-bottom:.75rem}.mb-\\[19px\\]{margin-bottom:19px}.ml-0{margin-left:0}.ml-3{margin-left:.75rem}.ml-5{margin-left:1.25rem}.mr-3{margin-right:.75rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2\\.5{height:.625rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[7px\\]{height:7px}.h-full{height:100%}.max-h-\\[132px\\]{max-height:132px}.min-h-\\[48px\\]{min-height:48px}.min-h-\\[80px\\]{min-height:80px}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-2\\.5{width:.625rem}.w-2\\/3{width:66.666667%}.w-24{width:6rem}.w-3{width:.75rem}.w-32{width:8rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-\\[7px\\]{width:7px}.w-full{width:100%}.min-w-min{min-width:min-content}.max-w-\\[75\\%\\]{max-width:75%}.max-w-\\[88\\%\\]{max-width:88%}.max-w-\\[90vw\\]{max-width:90vw}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.origin-bottom-right{transform-origin:bottom right}.translate-x-0{--tw-translate-x: 0px;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))}.translate-x-8{--tw-translate-x: 2rem;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))}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;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))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;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))}.-rotate-180{--tw-rotate: -180deg;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))}.rotate-0{--tw-rotate: 0deg;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))}.rotate-180{--tw-rotate: 180deg;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))}.scale-0{--tw-scale-x: 0;--tw-scale-y: 0;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))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.scale-95,.scale-\\[0\\.95\\]{--tw-scale-x: .95;--tw-scale-y: .95;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))}.-scale-x-100{--tw-scale-x: -1;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))}.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))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{user-select:none}.resize-none{resize:none}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.self-end{align-self:flex-end}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-0{border-width:0px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-amber-400{--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\\[\\#000\\]{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-\\[\\#FAF9F7\\]{--tw-bg-opacity: 1;background-color:rgb(250 249 247 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-black\\/80{background-color:#000c}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.bg-popover{background-color:hsl(var(--popover))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/90{background-color:#ffffffe6}.object-contain{object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\\[1px\\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-\\[12px\\]{padding-left:12px;padding-right:12px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-\\[10px\\]{padding-top:10px;padding-bottom:10px}.pb-10{padding-bottom:2.5rem}.pb-14{padding-bottom:3.5rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-10{padding-top:2.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.text-\\[\\#fff\\]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-muted{color:hsl(var(--muted))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-70{opacity:.7}.shadow-\\[0_0_4px_0_rgba\\(0\\,0\\,0\\,0\\.20\\)\\]{--tw-shadow: 0 0 4px 0 rgba(0,0,0,.2);--tw-shadow-colored: 0 0 4px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.scrollbar-thin::-webkit-scrollbar-track{background-color:var(--scrollbar-track);border-radius:var(--scrollbar-track-radius)}.scrollbar-thin::-webkit-scrollbar-track:hover{background-color:var(--scrollbar-track-hover, var(--scrollbar-track))}.scrollbar-thin::-webkit-scrollbar-track:active{background-color:var(--scrollbar-track-active, var(--scrollbar-track-hover, var(--scrollbar-track)))}.scrollbar-thin::-webkit-scrollbar-thumb{background-color:var(--scrollbar-thumb);border-radius:var(--scrollbar-thumb-radius)}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background-color:var(--scrollbar-thumb-hover, var(--scrollbar-thumb))}.scrollbar-thin::-webkit-scrollbar-thumb:active{background-color:var(--scrollbar-thumb-active, var(--scrollbar-thumb-hover, var(--scrollbar-thumb)))}.scrollbar-thin::-webkit-scrollbar-corner{background-color:var(--scrollbar-corner);border-radius:var(--scrollbar-corner-radius)}.scrollbar-thin::-webkit-scrollbar-corner:hover{background-color:var(--scrollbar-corner-hover, var(--scrollbar-corner))}.scrollbar-thin::-webkit-scrollbar-corner:active{background-color:var(--scrollbar-corner-active, var(--scrollbar-corner-hover, var(--scrollbar-corner)))}.scrollbar-thin{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb, initial) var(--scrollbar-track, initial)}.scrollbar-thin::-webkit-scrollbar{display:block;width:8px;height:8px}.scrollbar-track-transparent{--scrollbar-track: transparent !important}.scrollbar-thumb-border{--scrollbar-thumb: hsl(var(--border)) !important}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.duration-500{animation-duration:.5s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{animation-timing-function:linear}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}body{background-color:transparent}.eloquent-chat{font-family:Roboto,Arial,sans-serif}.wrap-anywhere{overflow-wrap:anywhere}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:-right-2:before{content:var(--tw-content);right:-.5rem}.before\\:bottom-2:before{content:var(--tw-content);bottom:.5rem}.before\\:h-0:before{content:var(--tw-content);height:0px}.before\\:w-0:before{content:var(--tw-content);width:0px}.before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.last\\:mb-0:last-child{margin-bottom:0}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--primary))}.hover\\:opacity-100:hover{opacity:1}.hover\\:opacity-80:hover{opacity:.8}.hover\\:opacity-90:hover{opacity:.9}.hover\\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:scrollbar-thumb-border{--scrollbar-thumb-hover: hsl(var(--border)) !important}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--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(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-1:focus-visible{--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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-2:focus-visible{--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(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-muted:focus-visible{--tw-ring-color: hsl(var(--muted))}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.dark\\:bg-background:is(.dark *){background-color:hsl(var(--background))}.dark\\:bg-card:is(.dark *){background-color:hsl(var(--card))}@media (min-width: 640px){.sm\\:flex-row{flex-direction:row}.sm\\:justify-end{justify-content:flex-end}.sm\\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\\:rounded-lg{border-radius:var(--radius)}.sm\\:text-left{text-align:left}}@media (min-width: 768px){.md\\:text-sm{font-size:.875rem;line-height:1.25rem}}`, vl = ".eloquentai-chat-launcher{transition:transform .2s ease-in-out}.eloquentai-chat-launcher:hover{transform:scale(1.1)}";
|
|
42
42
|
function F(...e) {
|
|
43
|
-
return pl(
|
|
43
|
+
return dl(pl(e));
|
|
44
44
|
}
|
|
45
45
|
async function kl(e) {
|
|
46
46
|
try {
|
|
@@ -173,7 +173,7 @@ const vr = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
173
173
|
}
|
|
174
174
|
));
|
|
175
175
|
vr.displayName = "CardFooter";
|
|
176
|
-
const Fo =
|
|
176
|
+
const Fo = pn(void 0);
|
|
177
177
|
function Bo(e) {
|
|
178
178
|
return /* @__PURE__ */ x(
|
|
179
179
|
Fo.Provider,
|
|
@@ -189,7 +189,7 @@ function Bo(e) {
|
|
|
189
189
|
);
|
|
190
190
|
}
|
|
191
191
|
const kr = () => {
|
|
192
|
-
const e =
|
|
192
|
+
const e = dn(Fo);
|
|
193
193
|
if (!e)
|
|
194
194
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
195
195
|
return e;
|
|
@@ -285,7 +285,7 @@ const Wo = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
285
285
|
}
|
|
286
286
|
));
|
|
287
287
|
Wo.displayName = Pe.Description.displayName;
|
|
288
|
-
const Go =
|
|
288
|
+
const Go = pn(void 0);
|
|
289
289
|
function Il({
|
|
290
290
|
children: e,
|
|
291
291
|
...t
|
|
@@ -293,7 +293,7 @@ function Il({
|
|
|
293
293
|
return /* @__PURE__ */ x(Go.Provider, { value: t, children: e });
|
|
294
294
|
}
|
|
295
295
|
function mn() {
|
|
296
|
-
const e =
|
|
296
|
+
const e = dn(Go);
|
|
297
297
|
if (!e)
|
|
298
298
|
throw new Error(
|
|
299
299
|
"useChatInterfaceContext must be used within a ChatInterfaceProvider"
|
|
@@ -356,8 +356,8 @@ function Ml(e, t = 50, n = !0) {
|
|
|
356
356
|
if (!n) return;
|
|
357
357
|
let o = 0;
|
|
358
358
|
const s = ((c, u) => {
|
|
359
|
-
const f = c / 2,
|
|
360
|
-
return u > 100 ? f :
|
|
359
|
+
const f = c / 2, d = c * 2;
|
|
360
|
+
return u > 100 ? f : d;
|
|
361
361
|
})(t, e.length), l = setInterval(() => {
|
|
362
362
|
o < e.length ? (i(e.substring(0, o + 1)), o++) : clearInterval(l);
|
|
363
363
|
}, s);
|
|
@@ -1557,7 +1557,7 @@ function ec() {
|
|
|
1557
1557
|
if (ci) return _n;
|
|
1558
1558
|
ci = 1;
|
|
1559
1559
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, a = /^[;\s]*/, s = /^\s+|\s+$/g, l = `
|
|
1560
|
-
`, c = "/", u = "*", f = "",
|
|
1560
|
+
`, c = "/", u = "*", f = "", d = "comment", p = "declaration";
|
|
1561
1561
|
_n = function(b, k) {
|
|
1562
1562
|
if (typeof b != "string")
|
|
1563
1563
|
throw new TypeError("First argument must be a string");
|
|
@@ -1611,7 +1611,7 @@ function ec() {
|
|
|
1611
1611
|
return v("End of comment missing");
|
|
1612
1612
|
var z = b.slice(2, R - 2);
|
|
1613
1613
|
return S += 2, E(z), b = b.slice(R), S += 2, _({
|
|
1614
|
-
type:
|
|
1614
|
+
type: d,
|
|
1615
1615
|
comment: z
|
|
1616
1616
|
});
|
|
1617
1617
|
}
|
|
@@ -1621,7 +1621,7 @@ function ec() {
|
|
|
1621
1621
|
if (R) {
|
|
1622
1622
|
if (w(), !M(i)) return v("property missing ':'");
|
|
1623
1623
|
var z = M(o), $ = _({
|
|
1624
|
-
type:
|
|
1624
|
+
type: p,
|
|
1625
1625
|
property: h(R[0].replace(e, f)),
|
|
1626
1626
|
value: z ? h(z[0].replace(e, f)) : f
|
|
1627
1627
|
});
|
|
@@ -1680,10 +1680,10 @@ function nc() {
|
|
|
1680
1680
|
};
|
|
1681
1681
|
return xt.camelCase = l, xt;
|
|
1682
1682
|
}
|
|
1683
|
-
var vt,
|
|
1683
|
+
var vt, pi;
|
|
1684
1684
|
function rc() {
|
|
1685
|
-
if (
|
|
1686
|
-
|
|
1685
|
+
if (pi) return vt;
|
|
1686
|
+
pi = 1;
|
|
1687
1687
|
var e = vt && vt.__importDefault || function(i) {
|
|
1688
1688
|
return i && i.__esModule ? i : { default: i };
|
|
1689
1689
|
}, t = e(tc()), n = nc();
|
|
@@ -1715,12 +1715,12 @@ function aa(e) {
|
|
|
1715
1715
|
return { start: t, end: n };
|
|
1716
1716
|
}
|
|
1717
1717
|
function It(e) {
|
|
1718
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ?
|
|
1718
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? di(e.position) : "start" in e || "end" in e ? di(e) : "line" in e || "column" in e ? Xn(e) : "";
|
|
1719
1719
|
}
|
|
1720
1720
|
function Xn(e) {
|
|
1721
1721
|
return hi(e && e.line) + ":" + hi(e && e.column);
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function di(e) {
|
|
1724
1724
|
return Xn(e && e.start) + "-" + Xn(e && e.end);
|
|
1725
1725
|
}
|
|
1726
1726
|
function hi(e) {
|
|
@@ -1858,11 +1858,11 @@ function la(e, t, n) {
|
|
|
1858
1858
|
if (t.type === "element")
|
|
1859
1859
|
return fc(e, t, n);
|
|
1860
1860
|
if (t.type === "mdxFlowExpression" || t.type === "mdxTextExpression")
|
|
1861
|
-
return
|
|
1861
|
+
return pc(e, t);
|
|
1862
1862
|
if (t.type === "mdxJsxFlowElement" || t.type === "mdxJsxTextElement")
|
|
1863
1863
|
return hc(e, t, n);
|
|
1864
1864
|
if (t.type === "mdxjsEsm")
|
|
1865
|
-
return
|
|
1865
|
+
return dc(e, t);
|
|
1866
1866
|
if (t.type === "root")
|
|
1867
1867
|
return mc(e, t, n);
|
|
1868
1868
|
if (t.type === "text")
|
|
@@ -1878,7 +1878,7 @@ function fc(e, t, n) {
|
|
|
1878
1878
|
return typeof l == "string" ? !jl(l) : !0;
|
|
1879
1879
|
})), ca(e, a, o, t), Ar(a, s), e.ancestors.pop(), e.schema = r, e.create(t, o, a, n);
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1881
|
+
function pc(e, t) {
|
|
1882
1882
|
if (t.data && t.data.estree && e.evaluater) {
|
|
1883
1883
|
const r = t.data.estree.body[0];
|
|
1884
1884
|
return r.type, /** @type {Child | undefined} */
|
|
@@ -1886,7 +1886,7 @@ function dc(e, t) {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
Lt(e, t.position);
|
|
1888
1888
|
}
|
|
1889
|
-
function
|
|
1889
|
+
function dc(e, t) {
|
|
1890
1890
|
if (t.data && t.data.estree && e.evaluater)
|
|
1891
1891
|
return (
|
|
1892
1892
|
/** @type {Child | undefined} */
|
|
@@ -4293,7 +4293,7 @@ function Ae(e, t) {
|
|
|
4293
4293
|
return e.length > 0 ? (ke(e, e.length, 0, t), e) : t;
|
|
4294
4294
|
}
|
|
4295
4295
|
const bi = {}.hasOwnProperty;
|
|
4296
|
-
function
|
|
4296
|
+
function pa(e) {
|
|
4297
4297
|
const t = {};
|
|
4298
4298
|
let n = -1;
|
|
4299
4299
|
for (; ++n < e.length; )
|
|
@@ -4324,7 +4324,7 @@ function Nc(e, t) {
|
|
|
4324
4324
|
(t[n].add === "after" ? e : r).push(t[n]);
|
|
4325
4325
|
ke(e, 0, 0, r);
|
|
4326
4326
|
}
|
|
4327
|
-
function
|
|
4327
|
+
function da(e, t) {
|
|
4328
4328
|
const n = Number.parseInt(e, t);
|
|
4329
4329
|
return (
|
|
4330
4330
|
// C0 except for HT, LF, FF, CR, space.
|
|
@@ -4466,7 +4466,7 @@ function zc(e) {
|
|
|
4466
4466
|
function c(E) {
|
|
4467
4467
|
if (r === n.length) {
|
|
4468
4468
|
if (!i)
|
|
4469
|
-
return
|
|
4469
|
+
return d(E);
|
|
4470
4470
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
|
4471
4471
|
return h(E);
|
|
4472
4472
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
|
@@ -4474,16 +4474,16 @@ function zc(e) {
|
|
|
4474
4474
|
return t.containerState = {}, e.check(yi, u, f)(E);
|
|
4475
4475
|
}
|
|
4476
4476
|
function u(E) {
|
|
4477
|
-
return i && S(), y(r),
|
|
4477
|
+
return i && S(), y(r), d(E);
|
|
4478
4478
|
}
|
|
4479
4479
|
function f(E) {
|
|
4480
4480
|
return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, h(E);
|
|
4481
4481
|
}
|
|
4482
|
-
function p(E) {
|
|
4483
|
-
return t.containerState = {}, e.attempt(yi, d, h)(E);
|
|
4484
|
-
}
|
|
4485
4482
|
function d(E) {
|
|
4486
|
-
return
|
|
4483
|
+
return t.containerState = {}, e.attempt(yi, p, h)(E);
|
|
4484
|
+
}
|
|
4485
|
+
function p(E) {
|
|
4486
|
+
return r++, n.push([t.currentConstruct, t.containerState]), d(E);
|
|
4487
4487
|
}
|
|
4488
4488
|
function h(E) {
|
|
4489
4489
|
if (E === null) {
|
|
@@ -4579,10 +4579,10 @@ function Fc(e, t) {
|
|
|
4579
4579
|
l = e[r][1].end.offset - e[r][1].start.offset > 1 && e[n][1].end.offset - e[n][1].start.offset > 1 ? 2 : 1;
|
|
4580
4580
|
const f = {
|
|
4581
4581
|
...e[r][1].end
|
|
4582
|
-
},
|
|
4582
|
+
}, d = {
|
|
4583
4583
|
...e[n][1].start
|
|
4584
4584
|
};
|
|
4585
|
-
wi(f, -l), wi(
|
|
4585
|
+
wi(f, -l), wi(d, l), a = {
|
|
4586
4586
|
type: l > 1 ? "strongSequence" : "emphasisSequence",
|
|
4587
4587
|
start: f,
|
|
4588
4588
|
end: {
|
|
@@ -4593,7 +4593,7 @@ function Fc(e, t) {
|
|
|
4593
4593
|
start: {
|
|
4594
4594
|
...e[n][1].start
|
|
4595
4595
|
},
|
|
4596
|
-
end:
|
|
4596
|
+
end: d
|
|
4597
4597
|
}, o = {
|
|
4598
4598
|
type: l > 1 ? "strongText" : "emphasisText",
|
|
4599
4599
|
start: {
|
|
@@ -4632,8 +4632,8 @@ function Bc(e, t) {
|
|
|
4632
4632
|
function s(l) {
|
|
4633
4633
|
if (l === o)
|
|
4634
4634
|
return e.consume(l), s;
|
|
4635
|
-
const c = e.exit("attentionSequence"), u = ft(l), f = !u || u === 2 && i || n.includes(l),
|
|
4636
|
-
return c._open = !!(o === 42 ? f : f && (i || !
|
|
4635
|
+
const c = e.exit("attentionSequence"), u = ft(l), f = !u || u === 2 && i || n.includes(l), d = !i || i === 2 && u || n.includes(r);
|
|
4636
|
+
return c._open = !!(o === 42 ? f : f && (i || !d)), c._close = !!(o === 42 ? d : d && (u || !f)), t(l);
|
|
4637
4637
|
}
|
|
4638
4638
|
}
|
|
4639
4639
|
function wi(e, t) {
|
|
@@ -4646,36 +4646,36 @@ const Uc = {
|
|
|
4646
4646
|
function jc(e, t, n) {
|
|
4647
4647
|
let r = 0;
|
|
4648
4648
|
return i;
|
|
4649
|
-
function i(
|
|
4650
|
-
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(
|
|
4649
|
+
function i(p) {
|
|
4650
|
+
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), o;
|
|
4651
4651
|
}
|
|
4652
|
-
function o(
|
|
4653
|
-
return he(
|
|
4652
|
+
function o(p) {
|
|
4653
|
+
return he(p) ? (e.consume(p), a) : p === 64 ? n(p) : c(p);
|
|
4654
4654
|
}
|
|
4655
|
-
function a(
|
|
4656
|
-
return
|
|
4655
|
+
function a(p) {
|
|
4656
|
+
return p === 43 || p === 45 || p === 46 || ce(p) ? (r = 1, s(p)) : c(p);
|
|
4657
4657
|
}
|
|
4658
|
-
function s(
|
|
4659
|
-
return
|
|
4658
|
+
function s(p) {
|
|
4659
|
+
return p === 58 ? (e.consume(p), r = 0, l) : (p === 43 || p === 45 || p === 46 || ce(p)) && r++ < 32 ? (e.consume(p), s) : (r = 0, c(p));
|
|
4660
4660
|
}
|
|
4661
|
-
function l(
|
|
4662
|
-
return
|
|
4661
|
+
function l(p) {
|
|
4662
|
+
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : p === null || p === 32 || p === 60 || cn(p) ? n(p) : (e.consume(p), l);
|
|
4663
4663
|
}
|
|
4664
|
-
function c(
|
|
4665
|
-
return
|
|
4664
|
+
function c(p) {
|
|
4665
|
+
return p === 64 ? (e.consume(p), u) : Rc(p) ? (e.consume(p), c) : n(p);
|
|
4666
4666
|
}
|
|
4667
|
-
function u(
|
|
4668
|
-
return ce(
|
|
4667
|
+
function u(p) {
|
|
4668
|
+
return ce(p) ? f(p) : n(p);
|
|
4669
4669
|
}
|
|
4670
|
-
function f(
|
|
4671
|
-
return
|
|
4670
|
+
function f(p) {
|
|
4671
|
+
return p === 46 ? (e.consume(p), r = 0, u) : p === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : d(p);
|
|
4672
4672
|
}
|
|
4673
|
-
function p
|
|
4674
|
-
if ((
|
|
4675
|
-
const h =
|
|
4676
|
-
return e.consume(
|
|
4673
|
+
function d(p) {
|
|
4674
|
+
if ((p === 45 || ce(p)) && r++ < 63) {
|
|
4675
|
+
const h = p === 45 ? d : f;
|
|
4676
|
+
return e.consume(p), h;
|
|
4677
4677
|
}
|
|
4678
|
-
return n(
|
|
4678
|
+
return n(p);
|
|
4679
4679
|
}
|
|
4680
4680
|
}
|
|
4681
4681
|
const Bt = {
|
|
@@ -4760,8 +4760,8 @@ function Kc(e, t, n) {
|
|
|
4760
4760
|
}
|
|
4761
4761
|
function u(f) {
|
|
4762
4762
|
if (f === 59 && i) {
|
|
4763
|
-
const
|
|
4764
|
-
return a === ce && !Nr(r.sliceSerialize(
|
|
4763
|
+
const d = e.exit("characterReferenceValue");
|
|
4764
|
+
return a === ce && !Nr(r.sliceSerialize(d)) ? n(f) : (e.enter("characterReferenceMarker"), e.consume(f), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
4765
4765
|
}
|
|
4766
4766
|
return a(f) && i++ < o ? (e.consume(f), u) : n(f);
|
|
4767
4767
|
}
|
|
@@ -4794,12 +4794,12 @@ function Yc(e, t, n) {
|
|
|
4794
4794
|
function f(v) {
|
|
4795
4795
|
return v === null || q(v) ? (e.exit("codeFencedFence"), r.interrupt ? t(v) : e.check(xi, b, P)(v)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
4796
4796
|
contentType: "string"
|
|
4797
|
-
}),
|
|
4798
|
-
}
|
|
4799
|
-
function p(v) {
|
|
4800
|
-
return v === null || q(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(v)) : H(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), G(e, d, "whitespace")(v)) : v === 96 && v === s ? n(v) : (e.consume(v), p);
|
|
4797
|
+
}), d(v));
|
|
4801
4798
|
}
|
|
4802
4799
|
function d(v) {
|
|
4800
|
+
return v === null || q(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(v)) : H(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), G(e, p, "whitespace")(v)) : v === 96 && v === s ? n(v) : (e.consume(v), d);
|
|
4801
|
+
}
|
|
4802
|
+
function p(v) {
|
|
4803
4803
|
return v === null || q(v) ? f(v) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
4804
4804
|
contentType: "string"
|
|
4805
4805
|
}), h(v));
|
|
@@ -5137,22 +5137,22 @@ function ou(e, t) {
|
|
|
5137
5137
|
let a = n._tokenizer;
|
|
5138
5138
|
a || (a = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (a._contentTypeTextTrailing = !0));
|
|
5139
5139
|
const s = a.events, l = [], c = {};
|
|
5140
|
-
let u, f,
|
|
5140
|
+
let u, f, d = -1, p = n, h = 0, b = 0;
|
|
5141
5141
|
const k = [b];
|
|
5142
|
-
for (;
|
|
5143
|
-
for (; e.get(++i)[1] !==
|
|
5142
|
+
for (; p; ) {
|
|
5143
|
+
for (; e.get(++i)[1] !== p; )
|
|
5144
5144
|
;
|
|
5145
|
-
o.push(i),
|
|
5145
|
+
o.push(i), p._tokenizer || (u = r.sliceStream(p), p.next || u.push(null), f && a.defineSkip(p.start), p._isInFirstContentOfListItem && (a._gfmTasklistFirstContentOfListItem = !0), a.write(u), p._isInFirstContentOfListItem && (a._gfmTasklistFirstContentOfListItem = void 0)), f = p, p = p.next;
|
|
5146
5146
|
}
|
|
5147
|
-
for (
|
|
5147
|
+
for (p = n; ++d < s.length; )
|
|
5148
5148
|
// Find a void token that includes a break.
|
|
5149
|
-
s[
|
|
5150
|
-
for (a.events = [],
|
|
5151
|
-
const y = s.slice(k[
|
|
5149
|
+
s[d][0] === "exit" && s[d - 1][0] === "enter" && s[d][1].type === s[d - 1][1].type && s[d][1].start.line !== s[d][1].end.line && (b = d + 1, k.push(b), p._tokenizer = void 0, p.previous = void 0, p = p.next);
|
|
5150
|
+
for (a.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : k.pop(), d = k.length; d--; ) {
|
|
5151
|
+
const y = s.slice(k[d], k[d + 1]), S = o.pop();
|
|
5152
5152
|
l.push([S, S + y.length - 1]), e.splice(S, 2, y);
|
|
5153
5153
|
}
|
|
5154
|
-
for (l.reverse(),
|
|
5155
|
-
c[h + l[
|
|
5154
|
+
for (l.reverse(), d = -1; ++d < l.length; )
|
|
5155
|
+
c[h + l[d][0]] = h + l[d][1], h += l[d][1] - l[d][0] - 1;
|
|
5156
5156
|
return c;
|
|
5157
5157
|
}
|
|
5158
5158
|
const au = {
|
|
@@ -5204,20 +5204,20 @@ function ya(e, t, n, r, i, o, a, s, l) {
|
|
|
5204
5204
|
let u = 0;
|
|
5205
5205
|
return f;
|
|
5206
5206
|
function f(y) {
|
|
5207
|
-
return y === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(y), e.exit(o),
|
|
5207
|
+
return y === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(y), e.exit(o), d) : y === null || y === 32 || y === 41 || cn(y) ? n(y) : (e.enter(r), e.enter(a), e.enter(s), e.enter("chunkString", {
|
|
5208
5208
|
contentType: "string"
|
|
5209
5209
|
}), b(y));
|
|
5210
5210
|
}
|
|
5211
|
-
function
|
|
5211
|
+
function d(y) {
|
|
5212
5212
|
return y === 62 ? (e.enter(o), e.consume(y), e.exit(o), e.exit(i), e.exit(r), t) : (e.enter(s), e.enter("chunkString", {
|
|
5213
5213
|
contentType: "string"
|
|
5214
|
-
}),
|
|
5214
|
+
}), p(y));
|
|
5215
5215
|
}
|
|
5216
|
-
function
|
|
5217
|
-
return y === 62 ? (e.exit("chunkString"), e.exit(s),
|
|
5216
|
+
function p(y) {
|
|
5217
|
+
return y === 62 ? (e.exit("chunkString"), e.exit(s), d(y)) : y === null || y === 60 || q(y) ? n(y) : (e.consume(y), y === 92 ? h : p);
|
|
5218
5218
|
}
|
|
5219
5219
|
function h(y) {
|
|
5220
|
-
return y === 60 || y === 62 || y === 92 ? (e.consume(y),
|
|
5220
|
+
return y === 60 || y === 62 || y === 92 ? (e.consume(y), p) : p(y);
|
|
5221
5221
|
}
|
|
5222
5222
|
function b(y) {
|
|
5223
5223
|
return !u && (y === null || y === 41 || J(y)) ? (e.exit("chunkString"), e.exit(s), e.exit(a), e.exit(r), t(y)) : u < c && y === 40 ? (e.consume(y), u++, b) : y === 41 ? (e.consume(y), u--, b) : y === null || y === 32 || y === 40 || cn(y) ? n(y) : (e.consume(y), y === 92 ? k : b);
|
|
@@ -5230,45 +5230,45 @@ function wa(e, t, n, r, i, o) {
|
|
|
5230
5230
|
const a = this;
|
|
5231
5231
|
let s = 0, l;
|
|
5232
5232
|
return c;
|
|
5233
|
-
function c(
|
|
5234
|
-
return e.enter(r), e.enter(i), e.consume(
|
|
5233
|
+
function c(p) {
|
|
5234
|
+
return e.enter(r), e.enter(i), e.consume(p), e.exit(i), e.enter(o), u;
|
|
5235
5235
|
}
|
|
5236
|
-
function u(
|
|
5237
|
-
return s > 999 ||
|
|
5236
|
+
function u(p) {
|
|
5237
|
+
return s > 999 || p === null || p === 91 || p === 93 && !l || // To do: remove in the future once we’ve switched from
|
|
5238
5238
|
// `micromark-extension-footnote` to `micromark-extension-gfm-footnote`,
|
|
5239
5239
|
// which doesn’t need this.
|
|
5240
5240
|
// Hidden footnotes hook.
|
|
5241
5241
|
/* c8 ignore next 3 */
|
|
5242
|
-
|
|
5242
|
+
p === 94 && !s && "_hiddenFootnoteSupport" in a.parser.constructs ? n(p) : p === 93 ? (e.exit(o), e.enter(i), e.consume(p), e.exit(i), e.exit(r), t) : q(p) ? (e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), u) : (e.enter("chunkString", {
|
|
5243
5243
|
contentType: "string"
|
|
5244
|
-
}), f(
|
|
5244
|
+
}), f(p));
|
|
5245
5245
|
}
|
|
5246
|
-
function f(
|
|
5247
|
-
return
|
|
5246
|
+
function f(p) {
|
|
5247
|
+
return p === null || p === 91 || p === 93 || q(p) || s++ > 999 ? (e.exit("chunkString"), u(p)) : (e.consume(p), l || (l = !H(p)), p === 92 ? d : f);
|
|
5248
5248
|
}
|
|
5249
|
-
function p
|
|
5250
|
-
return
|
|
5249
|
+
function d(p) {
|
|
5250
|
+
return p === 91 || p === 92 || p === 93 ? (e.consume(p), s++, f) : f(p);
|
|
5251
5251
|
}
|
|
5252
5252
|
}
|
|
5253
5253
|
function xa(e, t, n, r, i, o) {
|
|
5254
5254
|
let a;
|
|
5255
5255
|
return s;
|
|
5256
|
-
function s(
|
|
5257
|
-
return
|
|
5256
|
+
function s(d) {
|
|
5257
|
+
return d === 34 || d === 39 || d === 40 ? (e.enter(r), e.enter(i), e.consume(d), e.exit(i), a = d === 40 ? 41 : d, l) : n(d);
|
|
5258
5258
|
}
|
|
5259
|
-
function l(
|
|
5260
|
-
return
|
|
5259
|
+
function l(d) {
|
|
5260
|
+
return d === a ? (e.enter(i), e.consume(d), e.exit(i), e.exit(r), t) : (e.enter(o), c(d));
|
|
5261
5261
|
}
|
|
5262
|
-
function c(
|
|
5263
|
-
return
|
|
5262
|
+
function c(d) {
|
|
5263
|
+
return d === a ? (e.exit(o), l(a)) : d === null ? n(d) : q(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), G(e, c, "linePrefix")) : (e.enter("chunkString", {
|
|
5264
5264
|
contentType: "string"
|
|
5265
|
-
}), u(
|
|
5265
|
+
}), u(d));
|
|
5266
5266
|
}
|
|
5267
|
-
function u(
|
|
5268
|
-
return
|
|
5267
|
+
function u(d) {
|
|
5268
|
+
return d === a || d === null || q(d) ? (e.exit("chunkString"), c(d)) : (e.consume(d), d === 92 ? f : u);
|
|
5269
5269
|
}
|
|
5270
|
-
function f(
|
|
5271
|
-
return
|
|
5270
|
+
function f(d) {
|
|
5271
|
+
return d === a || d === 92 ? (e.consume(d), u) : u(d);
|
|
5272
5272
|
}
|
|
5273
5273
|
}
|
|
5274
5274
|
function Tt(e, t) {
|
|
@@ -5280,19 +5280,19 @@ function Tt(e, t) {
|
|
|
5280
5280
|
}
|
|
5281
5281
|
const fu = {
|
|
5282
5282
|
name: "definition",
|
|
5283
|
-
tokenize:
|
|
5284
|
-
},
|
|
5283
|
+
tokenize: du
|
|
5284
|
+
}, pu = {
|
|
5285
5285
|
partial: !0,
|
|
5286
5286
|
tokenize: hu
|
|
5287
5287
|
};
|
|
5288
|
-
function
|
|
5288
|
+
function du(e, t, n) {
|
|
5289
5289
|
const r = this;
|
|
5290
5290
|
let i;
|
|
5291
5291
|
return o;
|
|
5292
|
-
function o(
|
|
5293
|
-
return e.enter("definition"), a(
|
|
5292
|
+
function o(p) {
|
|
5293
|
+
return e.enter("definition"), a(p);
|
|
5294
5294
|
}
|
|
5295
|
-
function a(
|
|
5295
|
+
function a(p) {
|
|
5296
5296
|
return wa.call(
|
|
5297
5297
|
r,
|
|
5298
5298
|
e,
|
|
@@ -5302,15 +5302,15 @@ function pu(e, t, n) {
|
|
|
5302
5302
|
"definitionLabel",
|
|
5303
5303
|
"definitionLabelMarker",
|
|
5304
5304
|
"definitionLabelString"
|
|
5305
|
-
)(
|
|
5305
|
+
)(p);
|
|
5306
5306
|
}
|
|
5307
|
-
function s(
|
|
5308
|
-
return i = De(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)),
|
|
5307
|
+
function s(p) {
|
|
5308
|
+
return i = De(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), l) : n(p);
|
|
5309
5309
|
}
|
|
5310
|
-
function l(
|
|
5311
|
-
return J(
|
|
5310
|
+
function l(p) {
|
|
5311
|
+
return J(p) ? Tt(e, c)(p) : c(p);
|
|
5312
5312
|
}
|
|
5313
|
-
function c(
|
|
5313
|
+
function c(p) {
|
|
5314
5314
|
return ya(
|
|
5315
5315
|
e,
|
|
5316
5316
|
u,
|
|
@@ -5321,16 +5321,16 @@ function pu(e, t, n) {
|
|
|
5321
5321
|
"definitionDestinationLiteralMarker",
|
|
5322
5322
|
"definitionDestinationRaw",
|
|
5323
5323
|
"definitionDestinationString"
|
|
5324
|
-
)(
|
|
5324
|
+
)(p);
|
|
5325
5325
|
}
|
|
5326
|
-
function u(
|
|
5327
|
-
return e.attempt(
|
|
5326
|
+
function u(p) {
|
|
5327
|
+
return e.attempt(pu, f, f)(p);
|
|
5328
5328
|
}
|
|
5329
|
-
function f(
|
|
5330
|
-
return H(
|
|
5329
|
+
function f(p) {
|
|
5330
|
+
return H(p) ? G(e, d, "whitespace")(p) : d(p);
|
|
5331
5331
|
}
|
|
5332
|
-
function p
|
|
5333
|
-
return
|
|
5332
|
+
function d(p) {
|
|
5333
|
+
return p === null || q(p) ? (e.exit("definition"), r.parser.defined.push(i), t(p)) : n(p);
|
|
5334
5334
|
}
|
|
5335
5335
|
}
|
|
5336
5336
|
function hu(e, t, n) {
|
|
@@ -5493,12 +5493,12 @@ function Cu(e, t, n) {
|
|
|
5493
5493
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(g), f;
|
|
5494
5494
|
}
|
|
5495
5495
|
function f(g) {
|
|
5496
|
-
return g === 33 ? (e.consume(g),
|
|
5497
|
-
}
|
|
5498
|
-
function p(g) {
|
|
5499
|
-
return g === 45 ? (e.consume(g), i = 2, d) : g === 91 ? (e.consume(g), i = 5, s = 0, h) : he(g) ? (e.consume(g), i = 4, r.interrupt ? t : m) : n(g);
|
|
5496
|
+
return g === 33 ? (e.consume(g), d) : g === 47 ? (e.consume(g), o = !0, b) : g === 63 ? (e.consume(g), i = 3, r.interrupt ? t : m) : he(g) ? (e.consume(g), a = String.fromCharCode(g), k) : n(g);
|
|
5500
5497
|
}
|
|
5501
5498
|
function d(g) {
|
|
5499
|
+
return g === 45 ? (e.consume(g), i = 2, p) : g === 91 ? (e.consume(g), i = 5, s = 0, h) : he(g) ? (e.consume(g), i = 4, r.interrupt ? t : m) : n(g);
|
|
5500
|
+
}
|
|
5501
|
+
function p(g) {
|
|
5502
5502
|
return g === 45 ? (e.consume(g), r.interrupt ? t : m) : n(g);
|
|
5503
5503
|
}
|
|
5504
5504
|
function h(g) {
|
|
@@ -5510,8 +5510,8 @@ function Cu(e, t, n) {
|
|
|
5510
5510
|
}
|
|
5511
5511
|
function k(g) {
|
|
5512
5512
|
if (g === null || g === 47 || g === 62 || J(g)) {
|
|
5513
|
-
const K = g === 47,
|
|
5514
|
-
return !K && !o && ki.includes(
|
|
5513
|
+
const K = g === 47, pe = a.toLowerCase();
|
|
5514
|
+
return !K && !o && ki.includes(pe) ? (i = 1, r.interrupt ? t(g) : I(g)) : xu.includes(a.toLowerCase()) ? (i = 6, K ? (e.consume(g), y) : r.interrupt ? t(g) : I(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? S(g) : E(g));
|
|
5515
5515
|
}
|
|
5516
5516
|
return g === 45 || ce(g) ? (e.consume(g), a += String.fromCharCode(g), k) : n(g);
|
|
5517
5517
|
}
|
|
@@ -5620,16 +5620,16 @@ function Tu(e, t, n) {
|
|
|
5620
5620
|
return m === 45 ? (e.consume(m), u) : m === 91 ? (e.consume(m), o = 0, h) : he(m) ? (e.consume(m), S) : n(m);
|
|
5621
5621
|
}
|
|
5622
5622
|
function u(m) {
|
|
5623
|
-
return m === 45 ? (e.consume(m),
|
|
5623
|
+
return m === 45 ? (e.consume(m), p) : n(m);
|
|
5624
5624
|
}
|
|
5625
5625
|
function f(m) {
|
|
5626
|
-
return m === null ? n(m) : m === 45 ? (e.consume(m),
|
|
5627
|
-
}
|
|
5628
|
-
function p(m) {
|
|
5629
|
-
return m === 45 ? (e.consume(m), d) : f(m);
|
|
5626
|
+
return m === null ? n(m) : m === 45 ? (e.consume(m), d) : q(m) ? (a = f, re(m)) : (e.consume(m), f);
|
|
5630
5627
|
}
|
|
5631
5628
|
function d(m) {
|
|
5632
|
-
return m ===
|
|
5629
|
+
return m === 45 ? (e.consume(m), p) : f(m);
|
|
5630
|
+
}
|
|
5631
|
+
function p(m) {
|
|
5632
|
+
return m === 62 ? $(m) : m === 45 ? d(m) : f(m);
|
|
5633
5633
|
}
|
|
5634
5634
|
function h(m) {
|
|
5635
5635
|
const me = "CDATA[";
|
|
@@ -5772,23 +5772,23 @@ function Pu(e, t, n) {
|
|
|
5772
5772
|
break;
|
|
5773
5773
|
}
|
|
5774
5774
|
return s;
|
|
5775
|
-
function s(
|
|
5776
|
-
return o ? o._inactive ? f(
|
|
5775
|
+
function s(d) {
|
|
5776
|
+
return o ? o._inactive ? f(d) : (a = r.parser.defined.includes(De(r.sliceSerialize({
|
|
5777
5777
|
start: o.end,
|
|
5778
5778
|
end: r.now()
|
|
5779
|
-
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(
|
|
5779
|
+
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(d), e.exit("labelMarker"), e.exit("labelEnd"), l) : n(d);
|
|
5780
5780
|
}
|
|
5781
|
-
function l(
|
|
5782
|
-
return
|
|
5781
|
+
function l(d) {
|
|
5782
|
+
return d === 40 ? e.attempt(Nu, u, a ? u : f)(d) : d === 91 ? e.attempt(Ru, u, a ? c : f)(d) : a ? u(d) : f(d);
|
|
5783
5783
|
}
|
|
5784
|
-
function c(
|
|
5785
|
-
return e.attempt(Lu, u, f)(
|
|
5784
|
+
function c(d) {
|
|
5785
|
+
return e.attempt(Lu, u, f)(d);
|
|
5786
5786
|
}
|
|
5787
|
-
function u(
|
|
5788
|
-
return t(
|
|
5787
|
+
function u(d) {
|
|
5788
|
+
return t(d);
|
|
5789
5789
|
}
|
|
5790
|
-
function f(
|
|
5791
|
-
return o._balanced = !0, n(
|
|
5790
|
+
function f(d) {
|
|
5791
|
+
return o._balanced = !0, n(d);
|
|
5792
5792
|
}
|
|
5793
5793
|
}
|
|
5794
5794
|
function Mu(e, t, n) {
|
|
@@ -5921,37 +5921,37 @@ function Gu(e, t, n) {
|
|
|
5921
5921
|
const r = this, i = r.events[r.events.length - 1];
|
|
5922
5922
|
let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, a = 0;
|
|
5923
5923
|
return s;
|
|
5924
|
-
function s(
|
|
5925
|
-
const h = r.containerState.type || (
|
|
5926
|
-
if (h === "listUnordered" ? !r.containerState.marker ||
|
|
5924
|
+
function s(p) {
|
|
5925
|
+
const h = r.containerState.type || (p === 42 || p === 43 || p === 45 ? "listUnordered" : "listOrdered");
|
|
5926
|
+
if (h === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker : Zn(p)) {
|
|
5927
5927
|
if (r.containerState.type || (r.containerState.type = h, e.enter(h, {
|
|
5928
5928
|
_container: !0
|
|
5929
5929
|
})), h === "listUnordered")
|
|
5930
|
-
return e.enter("listItemPrefix"),
|
|
5931
|
-
if (!r.interrupt ||
|
|
5932
|
-
return e.enter("listItemPrefix"), e.enter("listItemValue"), l(
|
|
5930
|
+
return e.enter("listItemPrefix"), p === 42 || p === 45 ? e.check(tn, n, c)(p) : c(p);
|
|
5931
|
+
if (!r.interrupt || p === 49)
|
|
5932
|
+
return e.enter("listItemPrefix"), e.enter("listItemValue"), l(p);
|
|
5933
5933
|
}
|
|
5934
|
-
return n(
|
|
5934
|
+
return n(p);
|
|
5935
5935
|
}
|
|
5936
|
-
function l(
|
|
5937
|
-
return Zn(
|
|
5936
|
+
function l(p) {
|
|
5937
|
+
return Zn(p) && ++a < 10 ? (e.consume(p), l) : (!r.interrupt || a < 2) && (r.containerState.marker ? p === r.containerState.marker : p === 41 || p === 46) ? (e.exit("listItemValue"), c(p)) : n(p);
|
|
5938
5938
|
}
|
|
5939
|
-
function c(
|
|
5940
|
-
return e.enter("listItemMarker"), e.consume(
|
|
5939
|
+
function c(p) {
|
|
5940
|
+
return e.enter("listItemMarker"), e.consume(p), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || p, e.check(
|
|
5941
5941
|
Bt,
|
|
5942
5942
|
// Can’t be empty when interrupting.
|
|
5943
5943
|
r.interrupt ? n : u,
|
|
5944
|
-
e.attempt($u,
|
|
5944
|
+
e.attempt($u, d, f)
|
|
5945
5945
|
);
|
|
5946
5946
|
}
|
|
5947
|
-
function u(
|
|
5948
|
-
return r.containerState.initialBlankLine = !0, o++, p
|
|
5947
|
+
function u(p) {
|
|
5948
|
+
return r.containerState.initialBlankLine = !0, o++, d(p);
|
|
5949
5949
|
}
|
|
5950
|
-
function f(
|
|
5951
|
-
return H(
|
|
5950
|
+
function f(p) {
|
|
5951
|
+
return H(p) ? (e.enter("listItemPrefixWhitespace"), e.consume(p), e.exit("listItemPrefixWhitespace"), d) : n(p);
|
|
5952
5952
|
}
|
|
5953
|
-
function p
|
|
5954
|
-
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(
|
|
5953
|
+
function d(p) {
|
|
5954
|
+
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(p);
|
|
5955
5955
|
}
|
|
5956
5956
|
}
|
|
5957
5957
|
function Ku(e, t, n) {
|
|
@@ -6093,11 +6093,11 @@ function va(e) {
|
|
|
6093
6093
|
if (u === null)
|
|
6094
6094
|
return !0;
|
|
6095
6095
|
const f = i[u];
|
|
6096
|
-
let
|
|
6096
|
+
let d = -1;
|
|
6097
6097
|
if (f)
|
|
6098
|
-
for (; ++
|
|
6099
|
-
const
|
|
6100
|
-
if (!
|
|
6098
|
+
for (; ++d < f.length; ) {
|
|
6099
|
+
const p = f[d];
|
|
6100
|
+
if (!p.previous || p.previous.call(r, r.previous))
|
|
6101
6101
|
return !0;
|
|
6102
6102
|
}
|
|
6103
6103
|
return !1;
|
|
@@ -6188,7 +6188,7 @@ const sf = {
|
|
|
6188
6188
|
}, ff = {
|
|
6189
6189
|
38: ga,
|
|
6190
6190
|
92: ma
|
|
6191
|
-
},
|
|
6191
|
+
}, pf = {
|
|
6192
6192
|
[-5]: Tn,
|
|
6193
6193
|
[-4]: Tn,
|
|
6194
6194
|
[-3]: Tn,
|
|
@@ -6201,7 +6201,7 @@ const sf = {
|
|
|
6201
6201
|
93: Rr,
|
|
6202
6202
|
95: er,
|
|
6203
6203
|
96: eu
|
|
6204
|
-
},
|
|
6204
|
+
}, df = {
|
|
6205
6205
|
null: [er, nf]
|
|
6206
6206
|
}, hf = {
|
|
6207
6207
|
null: [42, 95]
|
|
@@ -6215,9 +6215,9 @@ const sf = {
|
|
|
6215
6215
|
document: sf,
|
|
6216
6216
|
flow: uf,
|
|
6217
6217
|
flowInitial: cf,
|
|
6218
|
-
insideSpan:
|
|
6218
|
+
insideSpan: df,
|
|
6219
6219
|
string: ff,
|
|
6220
|
-
text:
|
|
6220
|
+
text: pf
|
|
6221
6221
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6222
6222
|
function bf(e, t, n) {
|
|
6223
6223
|
let r = {
|
|
@@ -6246,8 +6246,8 @@ function bf(e, t, n) {
|
|
|
6246
6246
|
now: h,
|
|
6247
6247
|
parser: e,
|
|
6248
6248
|
previous: null,
|
|
6249
|
-
sliceSerialize:
|
|
6250
|
-
sliceStream:
|
|
6249
|
+
sliceSerialize: d,
|
|
6250
|
+
sliceStream: p,
|
|
6251
6251
|
write: f
|
|
6252
6252
|
};
|
|
6253
6253
|
let u = t.tokenize.call(c, l);
|
|
@@ -6255,10 +6255,10 @@ function bf(e, t, n) {
|
|
|
6255
6255
|
function f(N) {
|
|
6256
6256
|
return a = Ae(a, N), k(), a[a.length - 1] !== null ? [] : (A(t, 0), c.events = bn(o, c.events, c), c.events);
|
|
6257
6257
|
}
|
|
6258
|
-
function
|
|
6259
|
-
return wf(
|
|
6258
|
+
function d(N, I) {
|
|
6259
|
+
return wf(p(N), I);
|
|
6260
6260
|
}
|
|
6261
|
-
function
|
|
6261
|
+
function p(N) {
|
|
6262
6262
|
return yf(a, N);
|
|
6263
6263
|
}
|
|
6264
6264
|
function h() {
|
|
@@ -6346,21 +6346,21 @@ function bf(e, t, n) {
|
|
|
6346
6346
|
function g(ie) {
|
|
6347
6347
|
return Ge;
|
|
6348
6348
|
function Ge(Re) {
|
|
6349
|
-
return m = D(), Te = ie, ie.partial || (c.currentConstruct = ie), ie.name && c.parser.constructs.disable.null.includes(ie.name) ?
|
|
6349
|
+
return m = D(), Te = ie, ie.partial || (c.currentConstruct = ie), ie.name && c.parser.constructs.disable.null.includes(ie.name) ? pe() : ie.tokenize.call(
|
|
6350
6350
|
// If we do have fields, create an object w/ `context` as its
|
|
6351
6351
|
// prototype.
|
|
6352
6352
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
6353
6353
|
I ? Object.assign(Object.create(c), I) : c,
|
|
6354
6354
|
l,
|
|
6355
6355
|
K,
|
|
6356
|
-
|
|
6356
|
+
pe
|
|
6357
6357
|
)(Re);
|
|
6358
6358
|
}
|
|
6359
6359
|
}
|
|
6360
6360
|
function K(ie) {
|
|
6361
6361
|
return N(Te, m), z;
|
|
6362
6362
|
}
|
|
6363
|
-
function
|
|
6363
|
+
function pe(ie) {
|
|
6364
6364
|
return m.restore(), ++Ee < re.length ? g(re[Ee]) : $;
|
|
6365
6365
|
}
|
|
6366
6366
|
}
|
|
@@ -6440,7 +6440,7 @@ function xf(e) {
|
|
|
6440
6440
|
const r = {
|
|
6441
6441
|
constructs: (
|
|
6442
6442
|
/** @type {FullNormalizedExtension} */
|
|
6443
|
-
|
|
6443
|
+
pa([gf, ...(e || {}).extensions || []])
|
|
6444
6444
|
),
|
|
6445
6445
|
content: i(Dc),
|
|
6446
6446
|
defined: [],
|
|
@@ -6469,16 +6469,16 @@ function kf() {
|
|
|
6469
6469
|
return i;
|
|
6470
6470
|
function i(o, a, s) {
|
|
6471
6471
|
const l = [];
|
|
6472
|
-
let c, u, f,
|
|
6472
|
+
let c, u, f, d, p;
|
|
6473
6473
|
for (o = t + (typeof o == "string" ? o.toString() : new TextDecoder(a || void 0).decode(o)), f = 0, t = "", n && (o.charCodeAt(0) === 65279 && f++, n = void 0); f < o.length; ) {
|
|
6474
|
-
if (Ei.lastIndex = f, c = Ei.exec(o),
|
|
6474
|
+
if (Ei.lastIndex = f, c = Ei.exec(o), d = c && c.index !== void 0 ? c.index : o.length, p = o.charCodeAt(d), !c) {
|
|
6475
6475
|
t = o.slice(f);
|
|
6476
6476
|
break;
|
|
6477
6477
|
}
|
|
6478
|
-
if (
|
|
6478
|
+
if (p === 10 && f === d && r)
|
|
6479
6479
|
l.push(-3), r = void 0;
|
|
6480
6480
|
else
|
|
6481
|
-
switch (r && (l.push(-5), r = void 0), f <
|
|
6481
|
+
switch (r && (l.push(-5), r = void 0), f < d && (l.push(o.slice(f, d)), e += d - f), p) {
|
|
6482
6482
|
case 0: {
|
|
6483
6483
|
l.push(65533), e++;
|
|
6484
6484
|
break;
|
|
@@ -6494,7 +6494,7 @@ function kf() {
|
|
|
6494
6494
|
default:
|
|
6495
6495
|
r = !0, e = 1;
|
|
6496
6496
|
}
|
|
6497
|
-
f =
|
|
6497
|
+
f = d + 1;
|
|
6498
6498
|
}
|
|
6499
6499
|
return s && (r && l.push(-5), t && l.push(t), l.push(null)), l;
|
|
6500
6500
|
}
|
|
@@ -6508,7 +6508,7 @@ function Cf(e, t, n) {
|
|
|
6508
6508
|
return t;
|
|
6509
6509
|
if (n.charCodeAt(0) === 35) {
|
|
6510
6510
|
const i = n.charCodeAt(1), o = i === 120 || i === 88;
|
|
6511
|
-
return
|
|
6511
|
+
return da(n.slice(o ? 2 : 1), o ? 16 : 10);
|
|
6512
6512
|
}
|
|
6513
6513
|
return Nr(n) || e;
|
|
6514
6514
|
}
|
|
@@ -6551,7 +6551,7 @@ function Af(e) {
|
|
|
6551
6551
|
label: a,
|
|
6552
6552
|
link: o(ri),
|
|
6553
6553
|
listItem: o(Qs),
|
|
6554
|
-
listItemValue:
|
|
6554
|
+
listItemValue: d,
|
|
6555
6555
|
listOrdered: o(ii, f),
|
|
6556
6556
|
listUnordered: o(ii),
|
|
6557
6557
|
paragraph: o(Xs),
|
|
@@ -6571,13 +6571,13 @@ function Af(e) {
|
|
|
6571
6571
|
autolinkProtocol: Re,
|
|
6572
6572
|
blockQuote: l(),
|
|
6573
6573
|
characterEscapeValue: w,
|
|
6574
|
-
characterReferenceMarkerHexadecimal:
|
|
6575
|
-
characterReferenceMarkerNumeric:
|
|
6574
|
+
characterReferenceMarkerHexadecimal: pe,
|
|
6575
|
+
characterReferenceMarkerNumeric: pe,
|
|
6576
6576
|
characterReferenceValue: ie,
|
|
6577
6577
|
characterReference: Ge,
|
|
6578
6578
|
codeFenced: l(k),
|
|
6579
6579
|
codeFencedFence: b,
|
|
6580
|
-
codeFencedFenceInfo:
|
|
6580
|
+
codeFencedFenceInfo: p,
|
|
6581
6581
|
codeFencedFenceMeta: h,
|
|
6582
6582
|
codeFlowValue: w,
|
|
6583
6583
|
codeIndented: l(y),
|
|
@@ -6758,13 +6758,13 @@ function Af(e) {
|
|
|
6758
6758
|
function f() {
|
|
6759
6759
|
this.data.expectingFirstListItemValue = !0;
|
|
6760
6760
|
}
|
|
6761
|
-
function
|
|
6761
|
+
function d(C) {
|
|
6762
6762
|
if (this.data.expectingFirstListItemValue) {
|
|
6763
6763
|
const O = this.stack[this.stack.length - 2];
|
|
6764
6764
|
O.start = Number.parseInt(this.sliceSerialize(C), 10), this.data.expectingFirstListItemValue = void 0;
|
|
6765
6765
|
}
|
|
6766
6766
|
}
|
|
6767
|
-
function
|
|
6767
|
+
function p() {
|
|
6768
6768
|
const C = this.resume(), O = this.stack[this.stack.length - 1];
|
|
6769
6769
|
O.lang = C;
|
|
6770
6770
|
}
|
|
@@ -6897,13 +6897,13 @@ function Af(e) {
|
|
|
6897
6897
|
const O = this.resume(), B = this.stack[this.stack.length - 1];
|
|
6898
6898
|
B.label = O, B.identifier = De(this.sliceSerialize(C)).toLowerCase(), this.data.referenceType = "full";
|
|
6899
6899
|
}
|
|
6900
|
-
function
|
|
6900
|
+
function pe(C) {
|
|
6901
6901
|
this.data.characterReferenceType = C.type;
|
|
6902
6902
|
}
|
|
6903
6903
|
function ie(C) {
|
|
6904
6904
|
const O = this.sliceSerialize(C), B = this.data.characterReferenceType;
|
|
6905
6905
|
let W;
|
|
6906
|
-
B ? (W =
|
|
6906
|
+
B ? (W = da(O, B === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : W = Nr(O);
|
|
6907
6907
|
const Y = this.stack[this.stack.length - 1];
|
|
6908
6908
|
Y.value += W;
|
|
6909
6909
|
}
|
|
@@ -7352,9 +7352,9 @@ function Jf(e, t, n) {
|
|
|
7352
7352
|
let l = -1;
|
|
7353
7353
|
const c = [];
|
|
7354
7354
|
for (; ++l < s; ) {
|
|
7355
|
-
const f = t.children[l],
|
|
7356
|
-
|
|
7357
|
-
let h = { type: "element", tagName: o, properties:
|
|
7355
|
+
const f = t.children[l], d = {}, p = a ? a[l] : void 0;
|
|
7356
|
+
p && (d.align = p);
|
|
7357
|
+
let h = { type: "element", tagName: o, properties: d, children: [] };
|
|
7358
7358
|
f && (h.children = e.all(f), e.patch(f, h), h = e.applyData(f, h)), c.push(h);
|
|
7359
7359
|
}
|
|
7360
7360
|
const u = {
|
|
@@ -7405,7 +7405,7 @@ function Zf(e, t) {
|
|
|
7405
7405
|
const n = { type: "text", value: Xf(String(t.value)) };
|
|
7406
7406
|
return e.patch(t, n), e.applyData(t, n);
|
|
7407
7407
|
}
|
|
7408
|
-
function
|
|
7408
|
+
function ep(e, t) {
|
|
7409
7409
|
const n = {
|
|
7410
7410
|
type: "element",
|
|
7411
7411
|
tagName: "hr",
|
|
@@ -7414,7 +7414,7 @@ function ed(e, t) {
|
|
|
7414
7414
|
};
|
|
7415
7415
|
return e.patch(t, n), e.applyData(t, n);
|
|
7416
7416
|
}
|
|
7417
|
-
const
|
|
7417
|
+
const tp = {
|
|
7418
7418
|
blockquote: Nf,
|
|
7419
7419
|
break: Rf,
|
|
7420
7420
|
code: Lf,
|
|
@@ -7438,7 +7438,7 @@ const td = {
|
|
|
7438
7438
|
tableCell: Qf,
|
|
7439
7439
|
tableRow: Jf,
|
|
7440
7440
|
text: Zf,
|
|
7441
|
-
thematicBreak:
|
|
7441
|
+
thematicBreak: ep,
|
|
7442
7442
|
toml: Vt,
|
|
7443
7443
|
yaml: Vt,
|
|
7444
7444
|
definition: Vt,
|
|
@@ -7446,7 +7446,7 @@ const td = {
|
|
|
7446
7446
|
};
|
|
7447
7447
|
function Vt() {
|
|
7448
7448
|
}
|
|
7449
|
-
const Aa = -1, yn = 0, Nt = 1, un = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, Ia = 7, Ta = 8, Ti = typeof self == "object" ? self : globalThis,
|
|
7449
|
+
const Aa = -1, yn = 0, Nt = 1, un = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, Ia = 7, Ta = 8, Ti = typeof self == "object" ? self : globalThis, np = (e, t) => {
|
|
7450
7450
|
const n = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
7451
7451
|
if (e.has(i))
|
|
7452
7452
|
return e.get(i);
|
|
@@ -7503,11 +7503,11 @@ const Aa = -1, yn = 0, Nt = 1, un = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, Ia = 7, T
|
|
|
7503
7503
|
return n(new Ti[o](a), i);
|
|
7504
7504
|
};
|
|
7505
7505
|
return r;
|
|
7506
|
-
}, Ni = (e) =>
|
|
7506
|
+
}, Ni = (e) => np(/* @__PURE__ */ new Map(), e)(0), ot = "", { toString: rp } = {}, { keys: ip } = Object, St = (e) => {
|
|
7507
7507
|
const t = typeof e;
|
|
7508
7508
|
if (t !== "object" || !e)
|
|
7509
7509
|
return [yn, t];
|
|
7510
|
-
const n =
|
|
7510
|
+
const n = rp.call(e).slice(8, -1);
|
|
7511
7511
|
switch (n) {
|
|
7512
7512
|
case "Array":
|
|
7513
7513
|
return [Nt, ot];
|
|
@@ -7525,7 +7525,7 @@ const Aa = -1, yn = 0, Nt = 1, un = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, Ia = 7, T
|
|
|
7525
7525
|
return [Nt, n];
|
|
7526
7526
|
}
|
|
7527
7527
|
return n.includes("Array") ? [Nt, n] : n.includes("Error") ? [Ia, n] : [un, n];
|
|
7528
|
-
}, $t = ([e, t]) => e === yn && (t === "function" || t === "symbol"),
|
|
7528
|
+
}, $t = ([e, t]) => e === yn && (t === "function" || t === "symbol"), op = (e, t, n, r) => {
|
|
7529
7529
|
const i = (a, s) => {
|
|
7530
7530
|
const l = r.push(a) - 1;
|
|
7531
7531
|
return n.set(s, l), l;
|
|
@@ -7553,12 +7553,12 @@ const Aa = -1, yn = 0, Nt = 1, un = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, Ia = 7, T
|
|
|
7553
7553
|
}
|
|
7554
7554
|
case Nt: {
|
|
7555
7555
|
if (l) {
|
|
7556
|
-
let
|
|
7557
|
-
return l === "DataView" ?
|
|
7556
|
+
let d = a;
|
|
7557
|
+
return l === "DataView" ? d = new Uint8Array(a.buffer) : l === "ArrayBuffer" && (d = new Uint8Array(a)), i([l, [...d]], a);
|
|
7558
7558
|
}
|
|
7559
7559
|
const u = [], f = i([s, u], a);
|
|
7560
|
-
for (const
|
|
7561
|
-
u.push(o(
|
|
7560
|
+
for (const d of a)
|
|
7561
|
+
u.push(o(d));
|
|
7562
7562
|
return f;
|
|
7563
7563
|
}
|
|
7564
7564
|
case un: {
|
|
@@ -7574,8 +7574,8 @@ const Aa = -1, yn = 0, Nt = 1, un = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, Ia = 7, T
|
|
|
7574
7574
|
if (t && "toJSON" in a)
|
|
7575
7575
|
return o(a.toJSON());
|
|
7576
7576
|
const u = [], f = i([s, u], a);
|
|
7577
|
-
for (const
|
|
7578
|
-
(e || !$t(St(a[
|
|
7577
|
+
for (const d of ip(a))
|
|
7578
|
+
(e || !$t(St(a[d]))) && u.push([o(d), o(a[d])]);
|
|
7579
7579
|
return f;
|
|
7580
7580
|
}
|
|
7581
7581
|
case Lr:
|
|
@@ -7586,14 +7586,14 @@ const Aa = -1, yn = 0, Nt = 1, un = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, Ia = 7, T
|
|
|
7586
7586
|
}
|
|
7587
7587
|
case Dr: {
|
|
7588
7588
|
const u = [], f = i([s, u], a);
|
|
7589
|
-
for (const [
|
|
7590
|
-
(e || !($t(St(
|
|
7589
|
+
for (const [d, p] of a)
|
|
7590
|
+
(e || !($t(St(d)) || $t(St(p)))) && u.push([o(d), o(p)]);
|
|
7591
7591
|
return f;
|
|
7592
7592
|
}
|
|
7593
7593
|
case Pr: {
|
|
7594
7594
|
const u = [], f = i([s, u], a);
|
|
7595
|
-
for (const
|
|
7596
|
-
(e || !$t(St(
|
|
7595
|
+
for (const d of a)
|
|
7596
|
+
(e || !$t(St(d))) && u.push(o(d));
|
|
7597
7597
|
return f;
|
|
7598
7598
|
}
|
|
7599
7599
|
}
|
|
@@ -7603,12 +7603,12 @@ const Aa = -1, yn = 0, Nt = 1, un = 2, Lr = 3, Or = 4, Dr = 5, Pr = 6, Ia = 7, T
|
|
|
7603
7603
|
return o;
|
|
7604
7604
|
}, Ri = (e, { json: t, lossy: n } = {}) => {
|
|
7605
7605
|
const r = [];
|
|
7606
|
-
return
|
|
7606
|
+
return op(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
7607
7607
|
}, Ot = typeof structuredClone == "function" ? (
|
|
7608
7608
|
/* c8 ignore start */
|
|
7609
7609
|
(e, t) => t && ("json" in t || "lossy" in t) ? Ni(Ri(e, t)) : structuredClone(e)
|
|
7610
7610
|
) : (e, t) => Ni(Ri(e, t));
|
|
7611
|
-
function
|
|
7611
|
+
function ap(e, t) {
|
|
7612
7612
|
const n = [{ type: "text", value: "↩" }];
|
|
7613
7613
|
return t > 1 && n.push({
|
|
7614
7614
|
type: "element",
|
|
@@ -7617,11 +7617,11 @@ function ad(e, t) {
|
|
|
7617
7617
|
children: [{ type: "text", value: String(t) }]
|
|
7618
7618
|
}), n;
|
|
7619
7619
|
}
|
|
7620
|
-
function
|
|
7620
|
+
function sp(e, t) {
|
|
7621
7621
|
return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
|
|
7622
7622
|
}
|
|
7623
|
-
function
|
|
7624
|
-
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent ||
|
|
7623
|
+
function lp(e) {
|
|
7624
|
+
const t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || ap, r = e.options.footnoteBackLabel || sp, i = e.options.footnoteLabel || "Footnotes", o = e.options.footnoteLabelTagName || "h2", a = e.options.footnoteLabelProperties || {
|
|
7625
7625
|
className: ["sr-only"]
|
|
7626
7626
|
}, s = [];
|
|
7627
7627
|
let l = -1;
|
|
@@ -7631,19 +7631,19 @@ function ld(e) {
|
|
|
7631
7631
|
);
|
|
7632
7632
|
if (!c)
|
|
7633
7633
|
continue;
|
|
7634
|
-
const u = e.all(c), f = String(c.identifier).toUpperCase(),
|
|
7635
|
-
let
|
|
7634
|
+
const u = e.all(c), f = String(c.identifier).toUpperCase(), d = gt(f.toLowerCase());
|
|
7635
|
+
let p = 0;
|
|
7636
7636
|
const h = [], b = e.footnoteCounts.get(f);
|
|
7637
|
-
for (; b !== void 0 && ++
|
|
7637
|
+
for (; b !== void 0 && ++p <= b; ) {
|
|
7638
7638
|
h.length > 0 && h.push({ type: "text", value: " " });
|
|
7639
|
-
let S = typeof n == "string" ? n : n(l,
|
|
7639
|
+
let S = typeof n == "string" ? n : n(l, p);
|
|
7640
7640
|
typeof S == "string" && (S = { type: "text", value: S }), h.push({
|
|
7641
7641
|
type: "element",
|
|
7642
7642
|
tagName: "a",
|
|
7643
7643
|
properties: {
|
|
7644
|
-
href: "#" + t + "fnref-" +
|
|
7644
|
+
href: "#" + t + "fnref-" + d + (p > 1 ? "-" + p : ""),
|
|
7645
7645
|
dataFootnoteBackref: "",
|
|
7646
|
-
ariaLabel: typeof r == "string" ? r : r(l,
|
|
7646
|
+
ariaLabel: typeof r == "string" ? r : r(l, p),
|
|
7647
7647
|
className: ["data-footnote-backref"]
|
|
7648
7648
|
},
|
|
7649
7649
|
children: Array.isArray(S) ? S : [S]
|
|
@@ -7658,7 +7658,7 @@ function ld(e) {
|
|
|
7658
7658
|
const y = {
|
|
7659
7659
|
type: "element",
|
|
7660
7660
|
tagName: "li",
|
|
7661
|
-
properties: { id: t + "fn-" +
|
|
7661
|
+
properties: { id: t + "fn-" + d },
|
|
7662
7662
|
children: e.wrap(u, !0)
|
|
7663
7663
|
};
|
|
7664
7664
|
e.patch(c, y), s.push(y);
|
|
@@ -7708,17 +7708,17 @@ const wn = (
|
|
|
7708
7708
|
*/
|
|
7709
7709
|
function(e) {
|
|
7710
7710
|
if (e == null)
|
|
7711
|
-
return
|
|
7711
|
+
return pp;
|
|
7712
7712
|
if (typeof e == "function")
|
|
7713
7713
|
return xn(e);
|
|
7714
7714
|
if (typeof e == "object")
|
|
7715
|
-
return Array.isArray(e) ?
|
|
7715
|
+
return Array.isArray(e) ? cp(e) : up(e);
|
|
7716
7716
|
if (typeof e == "string")
|
|
7717
|
-
return
|
|
7717
|
+
return fp(e);
|
|
7718
7718
|
throw new Error("Expected function, string, or object as test");
|
|
7719
7719
|
}
|
|
7720
7720
|
);
|
|
7721
|
-
function
|
|
7721
|
+
function cp(e) {
|
|
7722
7722
|
const t = [];
|
|
7723
7723
|
let n = -1;
|
|
7724
7724
|
for (; ++n < e.length; )
|
|
@@ -7731,7 +7731,7 @@ function cd(e) {
|
|
|
7731
7731
|
return !1;
|
|
7732
7732
|
}
|
|
7733
7733
|
}
|
|
7734
|
-
function
|
|
7734
|
+
function up(e) {
|
|
7735
7735
|
const t = (
|
|
7736
7736
|
/** @type {Record<string, unknown>} */
|
|
7737
7737
|
e
|
|
@@ -7749,7 +7749,7 @@ function ud(e) {
|
|
|
7749
7749
|
return !0;
|
|
7750
7750
|
}
|
|
7751
7751
|
}
|
|
7752
|
-
function
|
|
7752
|
+
function fp(e) {
|
|
7753
7753
|
return xn(t);
|
|
7754
7754
|
function t(n) {
|
|
7755
7755
|
return n && n.type === e;
|
|
@@ -7758,7 +7758,7 @@ function fd(e) {
|
|
|
7758
7758
|
function xn(e) {
|
|
7759
7759
|
return t;
|
|
7760
7760
|
function t(n, r, i) {
|
|
7761
|
-
return !!(
|
|
7761
|
+
return !!(dp(n) && e.call(
|
|
7762
7762
|
this,
|
|
7763
7763
|
n,
|
|
7764
7764
|
typeof r == "number" ? r : void 0,
|
|
@@ -7766,13 +7766,13 @@ function xn(e) {
|
|
|
7766
7766
|
));
|
|
7767
7767
|
}
|
|
7768
7768
|
}
|
|
7769
|
-
function
|
|
7769
|
+
function pp() {
|
|
7770
7770
|
return !0;
|
|
7771
7771
|
}
|
|
7772
|
-
function
|
|
7772
|
+
function dp(e) {
|
|
7773
7773
|
return e !== null && typeof e == "object" && "type" in e;
|
|
7774
7774
|
}
|
|
7775
|
-
const Na = [],
|
|
7775
|
+
const Na = [], hp = !0, tr = !1, mp = "skip";
|
|
7776
7776
|
function Ra(e, t, n, r) {
|
|
7777
7777
|
let i;
|
|
7778
7778
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
|
@@ -7784,28 +7784,28 @@ function Ra(e, t, n, r) {
|
|
|
7784
7784
|
l && typeof l == "object" ? l : {}
|
|
7785
7785
|
);
|
|
7786
7786
|
if (typeof f.type == "string") {
|
|
7787
|
-
const
|
|
7787
|
+
const p = (
|
|
7788
7788
|
// `hast`
|
|
7789
7789
|
typeof f.tagName == "string" ? f.tagName : (
|
|
7790
7790
|
// `xast`
|
|
7791
7791
|
typeof f.name == "string" ? f.name : void 0
|
|
7792
7792
|
)
|
|
7793
7793
|
);
|
|
7794
|
-
Object.defineProperty(
|
|
7795
|
-
value: "node (" + (l.type + (
|
|
7794
|
+
Object.defineProperty(d, "name", {
|
|
7795
|
+
value: "node (" + (l.type + (p ? "<" + p + ">" : "")) + ")"
|
|
7796
7796
|
});
|
|
7797
7797
|
}
|
|
7798
|
-
return
|
|
7799
|
-
function
|
|
7800
|
-
let
|
|
7801
|
-
if ((!t || o(l, c, u[u.length - 1] || void 0)) && (
|
|
7802
|
-
return
|
|
7798
|
+
return d;
|
|
7799
|
+
function d() {
|
|
7800
|
+
let p = Na, h, b, k;
|
|
7801
|
+
if ((!t || o(l, c, u[u.length - 1] || void 0)) && (p = gp(n(l, u)), p[0] === tr))
|
|
7802
|
+
return p;
|
|
7803
7803
|
if ("children" in l && l.children) {
|
|
7804
7804
|
const y = (
|
|
7805
7805
|
/** @type {UnistParent} */
|
|
7806
7806
|
l
|
|
7807
7807
|
);
|
|
7808
|
-
if (y.children &&
|
|
7808
|
+
if (y.children && p[0] !== mp)
|
|
7809
7809
|
for (b = (r ? y.children.length : -1) + a, k = u.concat(y); b > -1 && b < y.children.length; ) {
|
|
7810
7810
|
const S = y.children[b];
|
|
7811
7811
|
if (h = s(S, b, k)(), h[0] === tr)
|
|
@@ -7813,12 +7813,12 @@ function Ra(e, t, n, r) {
|
|
|
7813
7813
|
b = typeof h[1] == "number" ? h[1] : b + a;
|
|
7814
7814
|
}
|
|
7815
7815
|
}
|
|
7816
|
-
return
|
|
7816
|
+
return p;
|
|
7817
7817
|
}
|
|
7818
7818
|
}
|
|
7819
7819
|
}
|
|
7820
|
-
function
|
|
7821
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [
|
|
7820
|
+
function gp(e) {
|
|
7821
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [hp, e] : e == null ? Na : [e];
|
|
7822
7822
|
}
|
|
7823
7823
|
function Mr(e, t, n, r) {
|
|
7824
7824
|
let i, o, a;
|
|
@@ -7828,11 +7828,11 @@ function Mr(e, t, n, r) {
|
|
|
7828
7828
|
return a(l, f, u);
|
|
7829
7829
|
}
|
|
7830
7830
|
}
|
|
7831
|
-
const nr = {}.hasOwnProperty,
|
|
7832
|
-
function
|
|
7833
|
-
const n = t ||
|
|
7831
|
+
const nr = {}.hasOwnProperty, bp = {};
|
|
7832
|
+
function yp(e, t) {
|
|
7833
|
+
const n = t || bp, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), a = { ...tp, ...n.handlers }, s = {
|
|
7834
7834
|
all: c,
|
|
7835
|
-
applyData:
|
|
7835
|
+
applyData: xp,
|
|
7836
7836
|
definitionById: r,
|
|
7837
7837
|
footnoteById: i,
|
|
7838
7838
|
footnoteCounts: o,
|
|
@@ -7840,37 +7840,37 @@ function yd(e, t) {
|
|
|
7840
7840
|
handlers: a,
|
|
7841
7841
|
one: l,
|
|
7842
7842
|
options: n,
|
|
7843
|
-
patch:
|
|
7844
|
-
wrap:
|
|
7843
|
+
patch: wp,
|
|
7844
|
+
wrap: kp
|
|
7845
7845
|
};
|
|
7846
7846
|
return Mr(e, function(u) {
|
|
7847
7847
|
if (u.type === "definition" || u.type === "footnoteDefinition") {
|
|
7848
|
-
const f = u.type === "definition" ? r : i,
|
|
7849
|
-
f.has(
|
|
7848
|
+
const f = u.type === "definition" ? r : i, d = String(u.identifier).toUpperCase();
|
|
7849
|
+
f.has(d) || f.set(d, u);
|
|
7850
7850
|
}
|
|
7851
7851
|
}), s;
|
|
7852
7852
|
function l(u, f) {
|
|
7853
|
-
const
|
|
7854
|
-
if (nr.call(s.handlers,
|
|
7855
|
-
return
|
|
7856
|
-
if (s.options.passThrough && s.options.passThrough.includes(
|
|
7853
|
+
const d = u.type, p = s.handlers[d];
|
|
7854
|
+
if (nr.call(s.handlers, d) && p)
|
|
7855
|
+
return p(s, u, f);
|
|
7856
|
+
if (s.options.passThrough && s.options.passThrough.includes(d)) {
|
|
7857
7857
|
if ("children" in u) {
|
|
7858
7858
|
const { children: b, ...k } = u, y = Ot(k);
|
|
7859
7859
|
return y.children = s.all(u), y;
|
|
7860
7860
|
}
|
|
7861
7861
|
return Ot(u);
|
|
7862
7862
|
}
|
|
7863
|
-
return (s.options.unknownHandler ||
|
|
7863
|
+
return (s.options.unknownHandler || vp)(s, u, f);
|
|
7864
7864
|
}
|
|
7865
7865
|
function c(u) {
|
|
7866
7866
|
const f = [];
|
|
7867
7867
|
if ("children" in u) {
|
|
7868
|
-
const
|
|
7869
|
-
let
|
|
7870
|
-
for (; ++
|
|
7871
|
-
const h = s.one(p
|
|
7868
|
+
const d = u.children;
|
|
7869
|
+
let p = -1;
|
|
7870
|
+
for (; ++p < d.length; ) {
|
|
7871
|
+
const h = s.one(d[p], u);
|
|
7872
7872
|
if (h) {
|
|
7873
|
-
if (
|
|
7873
|
+
if (p && d[p - 1].type === "break" && (!Array.isArray(h) && h.type === "text" && (h.value = Li(h.value)), !Array.isArray(h) && h.type === "element")) {
|
|
7874
7874
|
const b = h.children[0];
|
|
7875
7875
|
b && b.type === "text" && (b.value = Li(b.value));
|
|
7876
7876
|
}
|
|
@@ -7881,10 +7881,10 @@ function yd(e, t) {
|
|
|
7881
7881
|
return f;
|
|
7882
7882
|
}
|
|
7883
7883
|
}
|
|
7884
|
-
function
|
|
7884
|
+
function wp(e, t) {
|
|
7885
7885
|
e.position && (t.position = aa(e));
|
|
7886
7886
|
}
|
|
7887
|
-
function
|
|
7887
|
+
function xp(e, t) {
|
|
7888
7888
|
let n = t;
|
|
7889
7889
|
if (e && e.data) {
|
|
7890
7890
|
const r = e.data.hName, i = e.data.hChildren, o = e.data.hProperties;
|
|
@@ -7899,7 +7899,7 @@ function xd(e, t) {
|
|
|
7899
7899
|
}
|
|
7900
7900
|
return n;
|
|
7901
7901
|
}
|
|
7902
|
-
function
|
|
7902
|
+
function vp(e, t) {
|
|
7903
7903
|
const n = t.data || {}, r = "value" in t && !(nr.call(n, "hProperties") || nr.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
7904
7904
|
type: "element",
|
|
7905
7905
|
tagName: "div",
|
|
@@ -7908,7 +7908,7 @@ function vd(e, t) {
|
|
|
7908
7908
|
};
|
|
7909
7909
|
return e.patch(t, r), e.applyData(t, r);
|
|
7910
7910
|
}
|
|
7911
|
-
function
|
|
7911
|
+
function kp(e, t) {
|
|
7912
7912
|
const n = [];
|
|
7913
7913
|
let r = -1;
|
|
7914
7914
|
for (t && n.push({ type: "text", value: `
|
|
@@ -7925,11 +7925,11 @@ function Li(e) {
|
|
|
7925
7925
|
return e.slice(t);
|
|
7926
7926
|
}
|
|
7927
7927
|
function Oi(e, t) {
|
|
7928
|
-
const n =
|
|
7928
|
+
const n = yp(e, t), r = n.one(e, void 0), i = lp(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
7929
7929
|
return i && o.children.push({ type: "text", value: `
|
|
7930
7930
|
` }, i), o;
|
|
7931
7931
|
}
|
|
7932
|
-
function
|
|
7932
|
+
function Sp(e, t) {
|
|
7933
7933
|
return e && "run" in e ? async function(n, r) {
|
|
7934
7934
|
const i = (
|
|
7935
7935
|
/** @type {HastRoot} */
|
|
@@ -7948,7 +7948,7 @@ function Di(e) {
|
|
|
7948
7948
|
throw e;
|
|
7949
7949
|
}
|
|
7950
7950
|
var Nn, Pi;
|
|
7951
|
-
function
|
|
7951
|
+
function Ep() {
|
|
7952
7952
|
if (Pi) return Nn;
|
|
7953
7953
|
Pi = 1;
|
|
7954
7954
|
var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = function(c) {
|
|
@@ -7959,10 +7959,10 @@ function Ed() {
|
|
|
7959
7959
|
var u = e.call(c, "constructor"), f = c.constructor && c.constructor.prototype && e.call(c.constructor.prototype, "isPrototypeOf");
|
|
7960
7960
|
if (c.constructor && !u && !f)
|
|
7961
7961
|
return !1;
|
|
7962
|
-
var
|
|
7963
|
-
for (
|
|
7962
|
+
var d;
|
|
7963
|
+
for (d in c)
|
|
7964
7964
|
;
|
|
7965
|
-
return typeof
|
|
7965
|
+
return typeof d > "u" || e.call(c, d);
|
|
7966
7966
|
}, a = function(c, u) {
|
|
7967
7967
|
n && u.name === "__proto__" ? n(c, u.name, {
|
|
7968
7968
|
enumerable: !0,
|
|
@@ -7979,23 +7979,23 @@ function Ed() {
|
|
|
7979
7979
|
return c[u];
|
|
7980
7980
|
};
|
|
7981
7981
|
return Nn = function l() {
|
|
7982
|
-
var c, u, f,
|
|
7982
|
+
var c, u, f, d, p, h, b = arguments[0], k = 1, y = arguments.length, S = !1;
|
|
7983
7983
|
for (typeof b == "boolean" && (S = b, b = arguments[1] || {}, k = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); k < y; ++k)
|
|
7984
7984
|
if (c = arguments[k], c != null)
|
|
7985
7985
|
for (u in c)
|
|
7986
|
-
f = s(b, u),
|
|
7986
|
+
f = s(b, u), d = s(c, u), b !== d && (S && d && (o(d) || (p = i(d))) ? (p ? (p = !1, h = f && i(f) ? f : []) : h = f && o(f) ? f : {}, a(b, { name: u, newValue: l(S, h, d) })) : typeof d < "u" && a(b, { name: u, newValue: d }));
|
|
7987
7987
|
return b;
|
|
7988
7988
|
}, Nn;
|
|
7989
7989
|
}
|
|
7990
|
-
var
|
|
7991
|
-
const Rn = /* @__PURE__ */ ra(
|
|
7990
|
+
var Cp = Ep();
|
|
7991
|
+
const Rn = /* @__PURE__ */ ra(Cp);
|
|
7992
7992
|
function rr(e) {
|
|
7993
7993
|
if (typeof e != "object" || e === null)
|
|
7994
7994
|
return !1;
|
|
7995
7995
|
const t = Object.getPrototypeOf(e);
|
|
7996
7996
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
7997
7997
|
}
|
|
7998
|
-
function
|
|
7998
|
+
function _p() {
|
|
7999
7999
|
const e = [], t = { run: n, use: r };
|
|
8000
8000
|
return t;
|
|
8001
8001
|
function n(...i) {
|
|
@@ -8013,7 +8013,7 @@ function _d() {
|
|
|
8013
8013
|
}
|
|
8014
8014
|
for (; ++f < i.length; )
|
|
8015
8015
|
(c[f] === null || c[f] === void 0) && (c[f] = i[f]);
|
|
8016
|
-
i = c, u ?
|
|
8016
|
+
i = c, u ? Ap(u, s)(...c) : a(null, ...c);
|
|
8017
8017
|
}
|
|
8018
8018
|
}
|
|
8019
8019
|
function r(i) {
|
|
@@ -8024,7 +8024,7 @@ function _d() {
|
|
|
8024
8024
|
return e.push(i), t;
|
|
8025
8025
|
}
|
|
8026
8026
|
}
|
|
8027
|
-
function
|
|
8027
|
+
function Ap(e, t) {
|
|
8028
8028
|
let n;
|
|
8029
8029
|
return r;
|
|
8030
8030
|
function r(...a) {
|
|
@@ -8051,8 +8051,8 @@ function Ad(e, t) {
|
|
|
8051
8051
|
i(null, a);
|
|
8052
8052
|
}
|
|
8053
8053
|
}
|
|
8054
|
-
const ze = { basename:
|
|
8055
|
-
function
|
|
8054
|
+
const ze = { basename: Ip, dirname: Tp, extname: Np, join: Rp, sep: "/" };
|
|
8055
|
+
function Ip(e, t) {
|
|
8056
8056
|
if (t !== void 0 && typeof t != "string")
|
|
8057
8057
|
throw new TypeError('"ext" argument must be a string');
|
|
8058
8058
|
Ut(e);
|
|
@@ -8080,7 +8080,7 @@ function Id(e, t) {
|
|
|
8080
8080
|
a < 0 && (o = !0, a = i + 1), s > -1 && (e.codePointAt(i) === t.codePointAt(s--) ? s < 0 && (r = i) : (s = -1, r = a));
|
|
8081
8081
|
return n === r ? r = a : r < 0 && (r = e.length), e.slice(n, r);
|
|
8082
8082
|
}
|
|
8083
|
-
function
|
|
8083
|
+
function Tp(e) {
|
|
8084
8084
|
if (Ut(e), e.length === 0)
|
|
8085
8085
|
return ".";
|
|
8086
8086
|
let t = -1, n = e.length, r;
|
|
@@ -8093,7 +8093,7 @@ function Td(e) {
|
|
|
8093
8093
|
} else r || (r = !0);
|
|
8094
8094
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
8095
8095
|
}
|
|
8096
|
-
function
|
|
8096
|
+
function Np(e) {
|
|
8097
8097
|
Ut(e);
|
|
8098
8098
|
let t = e.length, n = -1, r = 0, i = -1, o = 0, a;
|
|
8099
8099
|
for (; t--; ) {
|
|
@@ -8111,19 +8111,19 @@ function Nd(e) {
|
|
|
8111
8111
|
o === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
8112
8112
|
o === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
|
|
8113
8113
|
}
|
|
8114
|
-
function
|
|
8114
|
+
function Rp(...e) {
|
|
8115
8115
|
let t = -1, n;
|
|
8116
8116
|
for (; ++t < e.length; )
|
|
8117
8117
|
Ut(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
8118
|
-
return n === void 0 ? "." :
|
|
8118
|
+
return n === void 0 ? "." : Lp(n);
|
|
8119
8119
|
}
|
|
8120
|
-
function
|
|
8120
|
+
function Lp(e) {
|
|
8121
8121
|
Ut(e);
|
|
8122
8122
|
const t = e.codePointAt(0) === 47;
|
|
8123
|
-
let n =
|
|
8123
|
+
let n = Op(e, !t);
|
|
8124
8124
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
8125
8125
|
}
|
|
8126
|
-
function
|
|
8126
|
+
function Op(e, t) {
|
|
8127
8127
|
let n = "", r = 0, i = -1, o = 0, a = -1, s, l;
|
|
8128
8128
|
for (; ++a <= e.length; ) {
|
|
8129
8129
|
if (a < e.length)
|
|
@@ -8160,15 +8160,15 @@ function Ut(e) {
|
|
|
8160
8160
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
8161
8161
|
);
|
|
8162
8162
|
}
|
|
8163
|
-
const
|
|
8164
|
-
function
|
|
8163
|
+
const Dp = { cwd: Pp };
|
|
8164
|
+
function Pp() {
|
|
8165
8165
|
return "/";
|
|
8166
8166
|
}
|
|
8167
8167
|
function ir(e) {
|
|
8168
8168
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
8169
8169
|
e.auth === void 0);
|
|
8170
8170
|
}
|
|
8171
|
-
function
|
|
8171
|
+
function Mp(e) {
|
|
8172
8172
|
if (typeof e == "string")
|
|
8173
8173
|
e = new URL(e);
|
|
8174
8174
|
else if (!ir(e)) {
|
|
@@ -8181,9 +8181,9 @@ function Md(e) {
|
|
|
8181
8181
|
const t = new TypeError("The URL must be of scheme file");
|
|
8182
8182
|
throw t.code = "ERR_INVALID_URL_SCHEME", t;
|
|
8183
8183
|
}
|
|
8184
|
-
return
|
|
8184
|
+
return zp(e);
|
|
8185
8185
|
}
|
|
8186
|
-
function
|
|
8186
|
+
function zp(e) {
|
|
8187
8187
|
if (e.hostname !== "") {
|
|
8188
8188
|
const r = new TypeError(
|
|
8189
8189
|
'File URL host must be "localhost" or empty on darwin'
|
|
@@ -8240,7 +8240,7 @@ class La {
|
|
|
8240
8240
|
*/
|
|
8241
8241
|
constructor(t) {
|
|
8242
8242
|
let n;
|
|
8243
|
-
t ? ir(t) ? n = { path: t } : typeof t == "string" ||
|
|
8243
|
+
t ? ir(t) ? n = { path: t } : typeof t == "string" || qp(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : Dp.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
8244
8244
|
let r = -1;
|
|
8245
8245
|
for (; ++r < Ln.length; ) {
|
|
8246
8246
|
const o = Ln[r];
|
|
@@ -8348,7 +8348,7 @@ class La {
|
|
|
8348
8348
|
* Nothing.
|
|
8349
8349
|
*/
|
|
8350
8350
|
set path(t) {
|
|
8351
|
-
ir(t) && (t =
|
|
8351
|
+
ir(t) && (t = Mp(t)), Dn(t, "path"), this.path !== t && this.history.push(t);
|
|
8352
8352
|
}
|
|
8353
8353
|
/**
|
|
8354
8354
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -8599,10 +8599,10 @@ function Mi(e, t) {
|
|
|
8599
8599
|
if (!e)
|
|
8600
8600
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
8601
8601
|
}
|
|
8602
|
-
function
|
|
8602
|
+
function qp(e) {
|
|
8603
8603
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
8604
8604
|
}
|
|
8605
|
-
const
|
|
8605
|
+
const Fp = (
|
|
8606
8606
|
/**
|
|
8607
8607
|
* @type {new <Parameters extends Array<unknown>, Result>(property: string | symbol) => (...parameters: Parameters) => Result}
|
|
8608
8608
|
*/
|
|
@@ -8623,13 +8623,13 @@ const Fd = (
|
|
|
8623
8623
|
};
|
|
8624
8624
|
return Object.setPrototypeOf(o, r), o;
|
|
8625
8625
|
}
|
|
8626
|
-
),
|
|
8627
|
-
class zr extends
|
|
8626
|
+
), Bp = {}.hasOwnProperty;
|
|
8627
|
+
class zr extends Fp {
|
|
8628
8628
|
/**
|
|
8629
8629
|
* Create a processor.
|
|
8630
8630
|
*/
|
|
8631
8631
|
constructor() {
|
|
8632
|
-
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers =
|
|
8632
|
+
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = _p();
|
|
8633
8633
|
}
|
|
8634
8634
|
/**
|
|
8635
8635
|
* Copy a processor.
|
|
@@ -8714,7 +8714,7 @@ class zr extends Fd {
|
|
|
8714
8714
|
* the entire dataset when getting without key.
|
|
8715
8715
|
*/
|
|
8716
8716
|
data(t, n) {
|
|
8717
|
-
return typeof t == "string" ? arguments.length === 2 ? (zn("data", this.frozen), this.namespace[t] = n, this) :
|
|
8717
|
+
return typeof t == "string" ? arguments.length === 2 ? (zn("data", this.frozen), this.namespace[t] = n, this) : Bp.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (zn("data", this.frozen), this.namespace = t, this) : this.namespace;
|
|
8718
8718
|
}
|
|
8719
8719
|
/**
|
|
8720
8720
|
* Freeze a processor.
|
|
@@ -8821,18 +8821,18 @@ class zr extends Fd {
|
|
|
8821
8821
|
/** @type {unknown} */
|
|
8822
8822
|
r.parse(s)
|
|
8823
8823
|
);
|
|
8824
|
-
r.run(l, s, function(u, f,
|
|
8825
|
-
if (u || !f || !
|
|
8824
|
+
r.run(l, s, function(u, f, d) {
|
|
8825
|
+
if (u || !f || !d)
|
|
8826
8826
|
return c(u);
|
|
8827
|
-
const
|
|
8827
|
+
const p = (
|
|
8828
8828
|
/** @type {CompileTree extends undefined ? Node : CompileTree} */
|
|
8829
8829
|
/** @type {unknown} */
|
|
8830
8830
|
f
|
|
8831
|
-
), h = r.stringify(
|
|
8832
|
-
|
|
8831
|
+
), h = r.stringify(p, d);
|
|
8832
|
+
Hp(h) ? d.value = h : d.result = h, c(
|
|
8833
8833
|
u,
|
|
8834
8834
|
/** @type {VFileWithOutput<CompileResult>} */
|
|
8835
|
-
|
|
8835
|
+
d
|
|
8836
8836
|
);
|
|
8837
8837
|
});
|
|
8838
8838
|
function c(u, f) {
|
|
@@ -8923,12 +8923,12 @@ class zr extends Fd {
|
|
|
8923
8923
|
function o(a, s) {
|
|
8924
8924
|
const l = Wt(n);
|
|
8925
8925
|
i.run(t, l, c);
|
|
8926
|
-
function c(u, f,
|
|
8927
|
-
const
|
|
8926
|
+
function c(u, f, d) {
|
|
8927
|
+
const p = (
|
|
8928
8928
|
/** @type {TailTree extends undefined ? Node : TailTree} */
|
|
8929
8929
|
f || t
|
|
8930
8930
|
);
|
|
8931
|
-
u ? s(u) : a ? a(
|
|
8931
|
+
u ? s(u) : a ? a(p) : r(void 0, p, d);
|
|
8932
8932
|
}
|
|
8933
8933
|
}
|
|
8934
8934
|
}
|
|
@@ -9089,23 +9089,23 @@ class zr extends Fd {
|
|
|
9089
9089
|
throw new TypeError("Expected a list of plugins, not `" + c + "`");
|
|
9090
9090
|
}
|
|
9091
9091
|
function l(c, u) {
|
|
9092
|
-
let f = -1,
|
|
9092
|
+
let f = -1, d = -1;
|
|
9093
9093
|
for (; ++f < r.length; )
|
|
9094
9094
|
if (r[f][0] === c) {
|
|
9095
|
-
|
|
9095
|
+
d = f;
|
|
9096
9096
|
break;
|
|
9097
9097
|
}
|
|
9098
|
-
if (
|
|
9098
|
+
if (d === -1)
|
|
9099
9099
|
r.push([c, ...u]);
|
|
9100
9100
|
else if (u.length > 0) {
|
|
9101
|
-
let [
|
|
9102
|
-
const b = r[
|
|
9103
|
-
rr(b) && rr(
|
|
9101
|
+
let [p, ...h] = u;
|
|
9102
|
+
const b = r[d][1];
|
|
9103
|
+
rr(b) && rr(p) && (p = Rn(!0, b, p)), r[d] = [c, p, ...h];
|
|
9104
9104
|
}
|
|
9105
9105
|
}
|
|
9106
9106
|
}
|
|
9107
9107
|
}
|
|
9108
|
-
const
|
|
9108
|
+
const Up = new zr().freeze();
|
|
9109
9109
|
function Pn(e, t) {
|
|
9110
9110
|
if (typeof t != "function")
|
|
9111
9111
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
@@ -9131,18 +9131,18 @@ function qi(e, t, n) {
|
|
|
9131
9131
|
);
|
|
9132
9132
|
}
|
|
9133
9133
|
function Wt(e) {
|
|
9134
|
-
return
|
|
9134
|
+
return jp(e) ? e : new La(e);
|
|
9135
9135
|
}
|
|
9136
|
-
function
|
|
9136
|
+
function jp(e) {
|
|
9137
9137
|
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
9138
9138
|
}
|
|
9139
|
-
function
|
|
9140
|
-
return typeof e == "string" ||
|
|
9139
|
+
function Hp(e) {
|
|
9140
|
+
return typeof e == "string" || Vp(e);
|
|
9141
9141
|
}
|
|
9142
|
-
function
|
|
9142
|
+
function Vp(e) {
|
|
9143
9143
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
9144
9144
|
}
|
|
9145
|
-
const $
|
|
9145
|
+
const $p = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Fi = [], Bi = { allowDangerousHtml: !0 }, Wp = /^(https?|ircs?|mailto|xmpp)$/i, Gp = [
|
|
9146
9146
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
9147
9147
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
9148
9148
|
{
|
|
@@ -9176,22 +9176,22 @@ const $d = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
9176
9176
|
{ from: "transformImageUri", id: "#add-urltransform", to: "urlTransform" },
|
|
9177
9177
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
9178
9178
|
];
|
|
9179
|
-
function
|
|
9180
|
-
const t =
|
|
9181
|
-
return
|
|
9179
|
+
function Kp(e) {
|
|
9180
|
+
const t = Yp(e), n = Jp(e);
|
|
9181
|
+
return Qp(t.runSync(t.parse(n), n), e);
|
|
9182
9182
|
}
|
|
9183
|
-
function
|
|
9183
|
+
function Yp(e) {
|
|
9184
9184
|
const t = e.rehypePlugins || Fi, n = e.remarkPlugins || Fi, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Bi } : Bi;
|
|
9185
|
-
return
|
|
9185
|
+
return Up().use(Tf).use(n).use(Sp, r).use(t);
|
|
9186
9186
|
}
|
|
9187
|
-
function
|
|
9187
|
+
function Jp(e) {
|
|
9188
9188
|
const t = e.children || "", n = new La();
|
|
9189
9189
|
return typeof t == "string" && (n.value = t), n;
|
|
9190
9190
|
}
|
|
9191
|
-
function
|
|
9192
|
-
const n = t.allowedElements, r = t.allowElement, i = t.components, o = t.disallowedElements, a = t.skipHtml, s = t.unwrapDisallowed, l = t.urlTransform ||
|
|
9193
|
-
for (const u of
|
|
9194
|
-
Object.hasOwn(t, u.from) && ("" + u.from + (u.to ? "use `" + u.to + "` instead" : "remove it") + $
|
|
9191
|
+
function Qp(e, t) {
|
|
9192
|
+
const n = t.allowedElements, r = t.allowElement, i = t.components, o = t.disallowedElements, a = t.skipHtml, s = t.unwrapDisallowed, l = t.urlTransform || Xp;
|
|
9193
|
+
for (const u of Gp)
|
|
9194
|
+
Object.hasOwn(t, u.from) && ("" + u.from + (u.to ? "use `" + u.to + "` instead" : "remove it") + $p + u.id, void 0);
|
|
9195
9195
|
return Mr(e, c), uc(e, {
|
|
9196
9196
|
Fragment: Qe,
|
|
9197
9197
|
components: i,
|
|
@@ -9201,31 +9201,31 @@ function Qd(e, t) {
|
|
|
9201
9201
|
passKeys: !0,
|
|
9202
9202
|
passNode: !0
|
|
9203
9203
|
});
|
|
9204
|
-
function c(u, f,
|
|
9205
|
-
if (u.type === "raw" &&
|
|
9206
|
-
return a ?
|
|
9204
|
+
function c(u, f, d) {
|
|
9205
|
+
if (u.type === "raw" && d && typeof f == "number")
|
|
9206
|
+
return a ? d.children.splice(f, 1) : d.children[f] = { type: "text", value: u.value }, f;
|
|
9207
9207
|
if (u.type === "element") {
|
|
9208
|
-
let
|
|
9209
|
-
for (
|
|
9210
|
-
if (Object.hasOwn(An,
|
|
9211
|
-
const h = u.properties[
|
|
9212
|
-
(b === null || b.includes(u.tagName)) && (u.properties[
|
|
9208
|
+
let p;
|
|
9209
|
+
for (p in An)
|
|
9210
|
+
if (Object.hasOwn(An, p) && Object.hasOwn(u.properties, p)) {
|
|
9211
|
+
const h = u.properties[p], b = An[p];
|
|
9212
|
+
(b === null || b.includes(u.tagName)) && (u.properties[p] = l(String(h || ""), p, u));
|
|
9213
9213
|
}
|
|
9214
9214
|
}
|
|
9215
9215
|
if (u.type === "element") {
|
|
9216
|
-
let
|
|
9217
|
-
if (!
|
|
9218
|
-
return s && u.children ?
|
|
9216
|
+
let p = n ? !n.includes(u.tagName) : o ? o.includes(u.tagName) : !1;
|
|
9217
|
+
if (!p && r && typeof f == "number" && (p = !r(u, f, d)), p && d && typeof f == "number")
|
|
9218
|
+
return s && u.children ? d.children.splice(f, 1, ...u.children) : d.children.splice(f, 1), f;
|
|
9219
9219
|
}
|
|
9220
9220
|
}
|
|
9221
9221
|
}
|
|
9222
|
-
function
|
|
9222
|
+
function Xp(e) {
|
|
9223
9223
|
const t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
|
9224
9224
|
return (
|
|
9225
9225
|
// If there is no protocol, it’s relative.
|
|
9226
9226
|
t === -1 || // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.
|
|
9227
9227
|
i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || // It is a protocol, it should be allowed.
|
|
9228
|
-
|
|
9228
|
+
Wp.test(e.slice(0, t)) ? e : ""
|
|
9229
9229
|
);
|
|
9230
9230
|
}
|
|
9231
9231
|
const Ye = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Ui = {
|
|
@@ -9423,7 +9423,7 @@ const Ye = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Ui = {
|
|
|
9423
9423
|
"var"
|
|
9424
9424
|
]
|
|
9425
9425
|
}, $e = {}.hasOwnProperty;
|
|
9426
|
-
function
|
|
9426
|
+
function Zp(e, t) {
|
|
9427
9427
|
let n = { type: "root", children: [] };
|
|
9428
9428
|
const r = {
|
|
9429
9429
|
schema: t ? { ...Ui, ...t } : Ui,
|
|
@@ -9439,37 +9439,37 @@ function Oa(e, t) {
|
|
|
9439
9439
|
);
|
|
9440
9440
|
switch (typeof n.type == "string" ? n.type : "") {
|
|
9441
9441
|
case "comment":
|
|
9442
|
-
return
|
|
9442
|
+
return ed(e, n);
|
|
9443
9443
|
case "doctype":
|
|
9444
|
-
return
|
|
9444
|
+
return td(e, n);
|
|
9445
9445
|
case "element":
|
|
9446
|
-
return
|
|
9446
|
+
return nd(e, n);
|
|
9447
9447
|
case "root":
|
|
9448
|
-
return
|
|
9448
|
+
return rd(e, n);
|
|
9449
9449
|
case "text":
|
|
9450
|
-
return
|
|
9450
|
+
return id(e, n);
|
|
9451
9451
|
}
|
|
9452
9452
|
}
|
|
9453
9453
|
}
|
|
9454
|
-
function
|
|
9454
|
+
function ed(e, t) {
|
|
9455
9455
|
if (e.schema.allowComments) {
|
|
9456
9456
|
const n = typeof t.value == "string" ? t.value : "", r = n.indexOf("-->"), o = { type: "comment", value: r < 0 ? n : n.slice(0, r) };
|
|
9457
9457
|
return jt(o, t), o;
|
|
9458
9458
|
}
|
|
9459
9459
|
}
|
|
9460
|
-
function
|
|
9460
|
+
function td(e, t) {
|
|
9461
9461
|
if (e.schema.allowDoctypes) {
|
|
9462
9462
|
const n = { type: "doctype" };
|
|
9463
9463
|
return jt(n, t), n;
|
|
9464
9464
|
}
|
|
9465
9465
|
}
|
|
9466
|
-
function
|
|
9466
|
+
function nd(e, t) {
|
|
9467
9467
|
const n = typeof t.tagName == "string" ? t.tagName : "";
|
|
9468
9468
|
e.stack.push(n);
|
|
9469
9469
|
const r = (
|
|
9470
9470
|
/** @type {Array<ElementContent>} */
|
|
9471
9471
|
Da(e, t.children)
|
|
9472
|
-
), i =
|
|
9472
|
+
), i = od(e, t.properties);
|
|
9473
9473
|
e.stack.pop();
|
|
9474
9474
|
let o = !1;
|
|
9475
9475
|
if (n && n !== "*" && (!e.schema.tagNames || e.schema.tagNames.includes(n)) && (o = !0, e.schema.ancestors && $e.call(e.schema.ancestors, n))) {
|
|
@@ -9488,14 +9488,14 @@ function np(e, t) {
|
|
|
9488
9488
|
};
|
|
9489
9489
|
return jt(a, t), a;
|
|
9490
9490
|
}
|
|
9491
|
-
function
|
|
9491
|
+
function rd(e, t) {
|
|
9492
9492
|
const r = { type: "root", children: (
|
|
9493
9493
|
/** @type {Array<RootContent>} */
|
|
9494
9494
|
Da(e, t.children)
|
|
9495
9495
|
) };
|
|
9496
9496
|
return jt(r, t), r;
|
|
9497
9497
|
}
|
|
9498
|
-
function
|
|
9498
|
+
function id(e, t) {
|
|
9499
9499
|
const r = { type: "text", value: typeof t.value == "string" ? t.value : "" };
|
|
9500
9500
|
return jt(r, t), r;
|
|
9501
9501
|
}
|
|
@@ -9514,7 +9514,7 @@ function Da(e, t) {
|
|
|
9514
9514
|
}
|
|
9515
9515
|
return n;
|
|
9516
9516
|
}
|
|
9517
|
-
function
|
|
9517
|
+
function od(e, t) {
|
|
9518
9518
|
const n = e.stack[e.stack.length - 1], r = e.schema.attributes, i = e.schema.required, o = r && $e.call(r, n) ? r[n] : void 0, a = r && $e.call(r, "*") ? r["*"] : void 0, s = (
|
|
9519
9519
|
/** @type {Readonly<Record<string, Readonly<unknown>>>} */
|
|
9520
9520
|
t && typeof t == "object" ? t : {}
|
|
@@ -9539,9 +9539,9 @@ function op(e, t) {
|
|
|
9539
9539
|
return l;
|
|
9540
9540
|
}
|
|
9541
9541
|
function ji(e, t, n, r) {
|
|
9542
|
-
return t ? Array.isArray(r) ?
|
|
9542
|
+
return t ? Array.isArray(r) ? ad(e, t, n, r) : Pa(e, t, n, r) : void 0;
|
|
9543
9543
|
}
|
|
9544
|
-
function
|
|
9544
|
+
function ad(e, t, n, r) {
|
|
9545
9545
|
let i = -1;
|
|
9546
9546
|
const o = [];
|
|
9547
9547
|
for (; ++i < r.length; ) {
|
|
@@ -9551,7 +9551,7 @@ function ap(e, t, n, r) {
|
|
|
9551
9551
|
return o;
|
|
9552
9552
|
}
|
|
9553
9553
|
function Pa(e, t, n, r) {
|
|
9554
|
-
if (!(typeof r != "boolean" && typeof r != "number" && typeof r != "string") &&
|
|
9554
|
+
if (!(typeof r != "boolean" && typeof r != "number" && typeof r != "string") && sd(e, n, r)) {
|
|
9555
9555
|
if (typeof t == "object" && t.length > 1) {
|
|
9556
9556
|
let i = !1, o = 0;
|
|
9557
9557
|
for (; ++o < t.length; ) {
|
|
@@ -9571,7 +9571,7 @@ function Pa(e, t, n, r) {
|
|
|
9571
9571
|
return e.schema.clobber && e.schema.clobberPrefix && e.schema.clobber.includes(n) ? e.schema.clobberPrefix + r : r;
|
|
9572
9572
|
}
|
|
9573
9573
|
}
|
|
9574
|
-
function
|
|
9574
|
+
function sd(e, t, n) {
|
|
9575
9575
|
const r = e.schema.protocols && $e.call(e.schema.protocols, t) ? e.schema.protocols[t] : void 0;
|
|
9576
9576
|
if (!r || r.length === 0)
|
|
9577
9577
|
return !0;
|
|
@@ -9606,11 +9606,11 @@ function Hi(e, t) {
|
|
|
9606
9606
|
if (t.length > 4 && t.slice(0, 4).toLowerCase() === "data")
|
|
9607
9607
|
return n;
|
|
9608
9608
|
}
|
|
9609
|
-
function
|
|
9609
|
+
function ld(e) {
|
|
9610
9610
|
return function(t) {
|
|
9611
9611
|
return (
|
|
9612
9612
|
/** @type {Root} */
|
|
9613
|
-
|
|
9613
|
+
Zp(t, e)
|
|
9614
9614
|
);
|
|
9615
9615
|
};
|
|
9616
9616
|
}
|
|
@@ -9623,56 +9623,56 @@ function Vi(e, t) {
|
|
|
9623
9623
|
r++, i = n.indexOf(t, i + t.length);
|
|
9624
9624
|
return r;
|
|
9625
9625
|
}
|
|
9626
|
-
function
|
|
9626
|
+
function cd(e) {
|
|
9627
9627
|
if (typeof e != "string")
|
|
9628
9628
|
throw new TypeError("Expected a string");
|
|
9629
9629
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
9630
9630
|
}
|
|
9631
|
-
function
|
|
9632
|
-
const i = wn((n || {}).ignore || []), o =
|
|
9631
|
+
function ud(e, t, n) {
|
|
9632
|
+
const i = wn((n || {}).ignore || []), o = fd(t);
|
|
9633
9633
|
let a = -1;
|
|
9634
9634
|
for (; ++a < o.length; )
|
|
9635
9635
|
Ra(e, "text", s);
|
|
9636
9636
|
function s(c, u) {
|
|
9637
|
-
let f = -1,
|
|
9637
|
+
let f = -1, d;
|
|
9638
9638
|
for (; ++f < u.length; ) {
|
|
9639
|
-
const
|
|
9639
|
+
const p = u[f], h = d ? d.children : void 0;
|
|
9640
9640
|
if (i(
|
|
9641
|
-
|
|
9642
|
-
h ? h.indexOf(
|
|
9643
|
-
|
|
9641
|
+
p,
|
|
9642
|
+
h ? h.indexOf(p) : void 0,
|
|
9643
|
+
d
|
|
9644
9644
|
))
|
|
9645
9645
|
return;
|
|
9646
|
-
|
|
9646
|
+
d = p;
|
|
9647
9647
|
}
|
|
9648
|
-
if (
|
|
9648
|
+
if (d)
|
|
9649
9649
|
return l(c, u);
|
|
9650
9650
|
}
|
|
9651
9651
|
function l(c, u) {
|
|
9652
|
-
const f = u[u.length - 1],
|
|
9652
|
+
const f = u[u.length - 1], d = o[a][0], p = o[a][1];
|
|
9653
9653
|
let h = 0;
|
|
9654
9654
|
const k = f.children.indexOf(c);
|
|
9655
9655
|
let y = !1, S = [];
|
|
9656
|
-
|
|
9657
|
-
let E =
|
|
9656
|
+
d.lastIndex = 0;
|
|
9657
|
+
let E = d.exec(c.value);
|
|
9658
9658
|
for (; E; ) {
|
|
9659
9659
|
const P = E.index, L = {
|
|
9660
9660
|
index: E.index,
|
|
9661
9661
|
input: E.input,
|
|
9662
9662
|
stack: [...u, c]
|
|
9663
9663
|
};
|
|
9664
|
-
let v =
|
|
9665
|
-
if (typeof v == "string" && (v = v.length > 0 ? { type: "text", value: v } : void 0), v === !1 ?
|
|
9664
|
+
let v = p(...E, L);
|
|
9665
|
+
if (typeof v == "string" && (v = v.length > 0 ? { type: "text", value: v } : void 0), v === !1 ? d.lastIndex = P + 1 : (h !== P && S.push({
|
|
9666
9666
|
type: "text",
|
|
9667
9667
|
value: c.value.slice(h, P)
|
|
9668
|
-
}), Array.isArray(v) ? S.push(...v) : v && S.push(v), h = P + E[0].length, y = !0), !
|
|
9668
|
+
}), Array.isArray(v) ? S.push(...v) : v && S.push(v), h = P + E[0].length, y = !0), !d.global)
|
|
9669
9669
|
break;
|
|
9670
|
-
E =
|
|
9670
|
+
E = d.exec(c.value);
|
|
9671
9671
|
}
|
|
9672
9672
|
return y ? (h < c.value.length && S.push({ type: "text", value: c.value.slice(h) }), f.children.splice(k, 1, ...S)) : S = [c], k + S.length;
|
|
9673
9673
|
}
|
|
9674
9674
|
}
|
|
9675
|
-
function
|
|
9675
|
+
function fd(e) {
|
|
9676
9676
|
const t = [];
|
|
9677
9677
|
if (!Array.isArray(e))
|
|
9678
9678
|
throw new TypeError("Expected find and replace tuple or list of tuples");
|
|
@@ -9680,37 +9680,37 @@ function fp(e) {
|
|
|
9680
9680
|
let r = -1;
|
|
9681
9681
|
for (; ++r < n.length; ) {
|
|
9682
9682
|
const i = n[r];
|
|
9683
|
-
t.push([
|
|
9683
|
+
t.push([pd(i[0]), dd(i[1])]);
|
|
9684
9684
|
}
|
|
9685
9685
|
return t;
|
|
9686
9686
|
}
|
|
9687
|
-
function
|
|
9688
|
-
return typeof e == "string" ? new RegExp(
|
|
9687
|
+
function pd(e) {
|
|
9688
|
+
return typeof e == "string" ? new RegExp(cd(e), "g") : e;
|
|
9689
9689
|
}
|
|
9690
|
-
function
|
|
9690
|
+
function dd(e) {
|
|
9691
9691
|
return typeof e == "function" ? e : function() {
|
|
9692
9692
|
return e;
|
|
9693
9693
|
};
|
|
9694
9694
|
}
|
|
9695
9695
|
const qn = "phrasing", Fn = ["autolink", "link", "image", "label"];
|
|
9696
|
-
function
|
|
9696
|
+
function hd() {
|
|
9697
9697
|
return {
|
|
9698
|
-
transforms: [
|
|
9698
|
+
transforms: [vd],
|
|
9699
9699
|
enter: {
|
|
9700
|
-
literalAutolink:
|
|
9700
|
+
literalAutolink: gd,
|
|
9701
9701
|
literalAutolinkEmail: Bn,
|
|
9702
9702
|
literalAutolinkHttp: Bn,
|
|
9703
9703
|
literalAutolinkWww: Bn
|
|
9704
9704
|
},
|
|
9705
9705
|
exit: {
|
|
9706
|
-
literalAutolink:
|
|
9707
|
-
literalAutolinkEmail:
|
|
9708
|
-
literalAutolinkHttp:
|
|
9709
|
-
literalAutolinkWww:
|
|
9706
|
+
literalAutolink: xd,
|
|
9707
|
+
literalAutolinkEmail: wd,
|
|
9708
|
+
literalAutolinkHttp: bd,
|
|
9709
|
+
literalAutolinkWww: yd
|
|
9710
9710
|
}
|
|
9711
9711
|
};
|
|
9712
9712
|
}
|
|
9713
|
-
function
|
|
9713
|
+
function md() {
|
|
9714
9714
|
return {
|
|
9715
9715
|
unsafe: [
|
|
9716
9716
|
{
|
|
@@ -9737,41 +9737,41 @@ function mp() {
|
|
|
9737
9737
|
]
|
|
9738
9738
|
};
|
|
9739
9739
|
}
|
|
9740
|
-
function
|
|
9740
|
+
function gd(e) {
|
|
9741
9741
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
|
9742
9742
|
}
|
|
9743
9743
|
function Bn(e) {
|
|
9744
9744
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
9745
9745
|
}
|
|
9746
|
-
function
|
|
9746
|
+
function bd(e) {
|
|
9747
9747
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
9748
9748
|
}
|
|
9749
|
-
function
|
|
9749
|
+
function yd(e) {
|
|
9750
9750
|
this.config.exit.data.call(this, e);
|
|
9751
9751
|
const t = this.stack[this.stack.length - 1];
|
|
9752
9752
|
t.type, t.url = "http://" + this.sliceSerialize(e);
|
|
9753
9753
|
}
|
|
9754
|
-
function
|
|
9754
|
+
function wd(e) {
|
|
9755
9755
|
this.config.exit.autolinkEmail.call(this, e);
|
|
9756
9756
|
}
|
|
9757
|
-
function
|
|
9757
|
+
function xd(e) {
|
|
9758
9758
|
this.exit(e);
|
|
9759
9759
|
}
|
|
9760
|
-
function
|
|
9761
|
-
|
|
9760
|
+
function vd(e) {
|
|
9761
|
+
ud(
|
|
9762
9762
|
e,
|
|
9763
9763
|
[
|
|
9764
|
-
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,
|
|
9765
|
-
[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,
|
|
9764
|
+
[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, kd],
|
|
9765
|
+
[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, Sd]
|
|
9766
9766
|
],
|
|
9767
9767
|
{ ignore: ["link", "linkReference"] }
|
|
9768
9768
|
);
|
|
9769
9769
|
}
|
|
9770
|
-
function
|
|
9770
|
+
function kd(e, t, n, r, i) {
|
|
9771
9771
|
let o = "";
|
|
9772
|
-
if (!Ma(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !
|
|
9772
|
+
if (!Ma(i) || (/^w/i.test(t) && (n = t + n, t = "", o = "http://"), !Ed(n)))
|
|
9773
9773
|
return !1;
|
|
9774
|
-
const a =
|
|
9774
|
+
const a = Cd(n + r);
|
|
9775
9775
|
if (!a[0]) return !1;
|
|
9776
9776
|
const s = {
|
|
9777
9777
|
type: "link",
|
|
@@ -9781,7 +9781,7 @@ function kp(e, t, n, r, i) {
|
|
|
9781
9781
|
};
|
|
9782
9782
|
return a[1] ? [s, { type: "text", value: a[1] }] : s;
|
|
9783
9783
|
}
|
|
9784
|
-
function
|
|
9784
|
+
function Sd(e, t, n, r) {
|
|
9785
9785
|
return (
|
|
9786
9786
|
// Not an expected previous character.
|
|
9787
9787
|
!Ma(r, !0) || // Label ends in not allowed character.
|
|
@@ -9793,11 +9793,11 @@ function Sp(e, t, n, r) {
|
|
|
9793
9793
|
}
|
|
9794
9794
|
);
|
|
9795
9795
|
}
|
|
9796
|
-
function
|
|
9796
|
+
function Ed(e) {
|
|
9797
9797
|
const t = e.split(".");
|
|
9798
9798
|
return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
|
|
9799
9799
|
}
|
|
9800
|
-
function
|
|
9800
|
+
function Cd(e) {
|
|
9801
9801
|
const t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
9802
9802
|
if (!t)
|
|
9803
9803
|
return [e, void 0];
|
|
@@ -9814,41 +9814,41 @@ function Ma(e, t) {
|
|
|
9814
9814
|
return (e.index === 0 || et(n) || gn(n)) && // If it’s an email, the previous character should not be a slash.
|
|
9815
9815
|
(!t || n !== 47);
|
|
9816
9816
|
}
|
|
9817
|
-
za.peek =
|
|
9818
|
-
function
|
|
9817
|
+
za.peek = Dd;
|
|
9818
|
+
function _d() {
|
|
9819
9819
|
this.buffer();
|
|
9820
9820
|
}
|
|
9821
|
-
function
|
|
9821
|
+
function Ad(e) {
|
|
9822
9822
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
|
|
9823
9823
|
}
|
|
9824
|
-
function
|
|
9824
|
+
function Id() {
|
|
9825
9825
|
this.buffer();
|
|
9826
9826
|
}
|
|
9827
|
-
function
|
|
9827
|
+
function Td(e) {
|
|
9828
9828
|
this.enter(
|
|
9829
9829
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
|
9830
9830
|
e
|
|
9831
9831
|
);
|
|
9832
9832
|
}
|
|
9833
|
-
function
|
|
9833
|
+
function Nd(e) {
|
|
9834
9834
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
9835
9835
|
n.type, n.identifier = De(
|
|
9836
9836
|
this.sliceSerialize(e)
|
|
9837
9837
|
).toLowerCase(), n.label = t;
|
|
9838
9838
|
}
|
|
9839
|
-
function
|
|
9839
|
+
function Rd(e) {
|
|
9840
9840
|
this.exit(e);
|
|
9841
9841
|
}
|
|
9842
|
-
function
|
|
9842
|
+
function Ld(e) {
|
|
9843
9843
|
const t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
9844
9844
|
n.type, n.identifier = De(
|
|
9845
9845
|
this.sliceSerialize(e)
|
|
9846
9846
|
).toLowerCase(), n.label = t;
|
|
9847
9847
|
}
|
|
9848
|
-
function
|
|
9848
|
+
function Od(e) {
|
|
9849
9849
|
this.exit(e);
|
|
9850
9850
|
}
|
|
9851
|
-
function
|
|
9851
|
+
function Dd() {
|
|
9852
9852
|
return "[";
|
|
9853
9853
|
}
|
|
9854
9854
|
function za(e, t, n, r) {
|
|
@@ -9859,23 +9859,23 @@ function za(e, t, n, r) {
|
|
|
9859
9859
|
n.safe(n.associationId(e), { after: "]", before: o })
|
|
9860
9860
|
), s(), a(), o += i.move("]"), o;
|
|
9861
9861
|
}
|
|
9862
|
-
function
|
|
9862
|
+
function Pd() {
|
|
9863
9863
|
return {
|
|
9864
9864
|
enter: {
|
|
9865
|
-
gfmFootnoteCallString:
|
|
9866
|
-
gfmFootnoteCall:
|
|
9867
|
-
gfmFootnoteDefinitionLabelString:
|
|
9868
|
-
gfmFootnoteDefinition:
|
|
9865
|
+
gfmFootnoteCallString: _d,
|
|
9866
|
+
gfmFootnoteCall: Ad,
|
|
9867
|
+
gfmFootnoteDefinitionLabelString: Id,
|
|
9868
|
+
gfmFootnoteDefinition: Td
|
|
9869
9869
|
},
|
|
9870
9870
|
exit: {
|
|
9871
|
-
gfmFootnoteCallString:
|
|
9872
|
-
gfmFootnoteCall:
|
|
9873
|
-
gfmFootnoteDefinitionLabelString:
|
|
9874
|
-
gfmFootnoteDefinition:
|
|
9871
|
+
gfmFootnoteCallString: Nd,
|
|
9872
|
+
gfmFootnoteCall: Rd,
|
|
9873
|
+
gfmFootnoteDefinitionLabelString: Ld,
|
|
9874
|
+
gfmFootnoteDefinition: Od
|
|
9875
9875
|
}
|
|
9876
9876
|
};
|
|
9877
9877
|
}
|
|
9878
|
-
function
|
|
9878
|
+
function Md(e) {
|
|
9879
9879
|
let t = !1;
|
|
9880
9880
|
return e && e.firstLineBlank && (t = !0), {
|
|
9881
9881
|
handlers: { footnoteDefinition: n, footnoteReference: za },
|
|
@@ -9892,18 +9892,18 @@ function Mp(e) {
|
|
|
9892
9892
|
(t ? `
|
|
9893
9893
|
` : " ") + o.indentLines(
|
|
9894
9894
|
o.containerFlow(r, s.current()),
|
|
9895
|
-
t ? qa :
|
|
9895
|
+
t ? qa : zd
|
|
9896
9896
|
)
|
|
9897
9897
|
)), c(), l;
|
|
9898
9898
|
}
|
|
9899
9899
|
}
|
|
9900
|
-
function
|
|
9900
|
+
function zd(e, t, n) {
|
|
9901
9901
|
return t === 0 ? e : qa(e, t, n);
|
|
9902
9902
|
}
|
|
9903
9903
|
function qa(e, t, n) {
|
|
9904
9904
|
return (n ? "" : " ") + e;
|
|
9905
9905
|
}
|
|
9906
|
-
const
|
|
9906
|
+
const qd = [
|
|
9907
9907
|
"autolink",
|
|
9908
9908
|
"destinationLiteral",
|
|
9909
9909
|
"destinationRaw",
|
|
@@ -9911,30 +9911,30 @@ const qp = [
|
|
|
9911
9911
|
"titleQuote",
|
|
9912
9912
|
"titleApostrophe"
|
|
9913
9913
|
];
|
|
9914
|
-
Fa.peek =
|
|
9915
|
-
function
|
|
9914
|
+
Fa.peek = Hd;
|
|
9915
|
+
function Fd() {
|
|
9916
9916
|
return {
|
|
9917
9917
|
canContainEols: ["delete"],
|
|
9918
|
-
enter: { strikethrough:
|
|
9919
|
-
exit: { strikethrough:
|
|
9918
|
+
enter: { strikethrough: Ud },
|
|
9919
|
+
exit: { strikethrough: jd }
|
|
9920
9920
|
};
|
|
9921
9921
|
}
|
|
9922
|
-
function
|
|
9922
|
+
function Bd() {
|
|
9923
9923
|
return {
|
|
9924
9924
|
unsafe: [
|
|
9925
9925
|
{
|
|
9926
9926
|
character: "~",
|
|
9927
9927
|
inConstruct: "phrasing",
|
|
9928
|
-
notInConstruct:
|
|
9928
|
+
notInConstruct: qd
|
|
9929
9929
|
}
|
|
9930
9930
|
],
|
|
9931
9931
|
handlers: { delete: Fa }
|
|
9932
9932
|
};
|
|
9933
9933
|
}
|
|
9934
|
-
function
|
|
9934
|
+
function Ud(e) {
|
|
9935
9935
|
this.enter({ type: "delete", children: [] }, e);
|
|
9936
9936
|
}
|
|
9937
|
-
function
|
|
9937
|
+
function jd(e) {
|
|
9938
9938
|
this.exit(e);
|
|
9939
9939
|
}
|
|
9940
9940
|
function Fa(e, t, n, r) {
|
|
@@ -9946,20 +9946,20 @@ function Fa(e, t, n, r) {
|
|
|
9946
9946
|
after: "~"
|
|
9947
9947
|
}), a += i.move("~~"), o(), a;
|
|
9948
9948
|
}
|
|
9949
|
-
function
|
|
9949
|
+
function Hd() {
|
|
9950
9950
|
return "~";
|
|
9951
9951
|
}
|
|
9952
|
-
function
|
|
9952
|
+
function Vd(e) {
|
|
9953
9953
|
return e.length;
|
|
9954
9954
|
}
|
|
9955
|
-
function $
|
|
9956
|
-
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength ||
|
|
9955
|
+
function $d(e, t) {
|
|
9956
|
+
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || Vd, o = [], a = [], s = [], l = [];
|
|
9957
9957
|
let c = 0, u = -1;
|
|
9958
9958
|
for (; ++u < e.length; ) {
|
|
9959
9959
|
const b = [], k = [];
|
|
9960
9960
|
let y = -1;
|
|
9961
9961
|
for (e[u].length > c && (c = e[u].length); ++y < e[u].length; ) {
|
|
9962
|
-
const S =
|
|
9962
|
+
const S = Wd(e[u][y]);
|
|
9963
9963
|
if (n.alignDelimiters !== !1) {
|
|
9964
9964
|
const E = i(S);
|
|
9965
9965
|
k[y] = E, (l[y] === void 0 || E > l[y]) && (l[y] = E);
|
|
@@ -9978,7 +9978,7 @@ function $p(e, t) {
|
|
|
9978
9978
|
o[f] = b;
|
|
9979
9979
|
}
|
|
9980
9980
|
f = -1;
|
|
9981
|
-
const
|
|
9981
|
+
const d = [], p = [];
|
|
9982
9982
|
for (; ++f < c; ) {
|
|
9983
9983
|
const b = o[f];
|
|
9984
9984
|
let k = "", y = "";
|
|
@@ -9988,9 +9988,9 @@ function $p(e, t) {
|
|
|
9988
9988
|
l[f] - k.length - y.length
|
|
9989
9989
|
);
|
|
9990
9990
|
const E = k + "-".repeat(S) + y;
|
|
9991
|
-
n.alignDelimiters !== !1 && (S = k.length + S + y.length, S > l[f] && (l[f] = S),
|
|
9991
|
+
n.alignDelimiters !== !1 && (S = k.length + S + y.length, S > l[f] && (l[f] = S), p[f] = S), d[f] = E;
|
|
9992
9992
|
}
|
|
9993
|
-
a.splice(1, 0,
|
|
9993
|
+
a.splice(1, 0, d), s.splice(1, 0, p), u = -1;
|
|
9994
9994
|
const h = [];
|
|
9995
9995
|
for (; ++u < a.length; ) {
|
|
9996
9996
|
const b = a[u], k = s[u];
|
|
@@ -10014,26 +10014,26 @@ function $p(e, t) {
|
|
|
10014
10014
|
return h.join(`
|
|
10015
10015
|
`);
|
|
10016
10016
|
}
|
|
10017
|
-
function
|
|
10017
|
+
function Wd(e) {
|
|
10018
10018
|
return e == null ? "" : String(e);
|
|
10019
10019
|
}
|
|
10020
10020
|
function $i(e) {
|
|
10021
10021
|
const t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
10022
10022
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
10023
10023
|
}
|
|
10024
|
-
function
|
|
10024
|
+
function Gd(e, t, n, r) {
|
|
10025
10025
|
const i = n.enter("blockquote"), o = n.createTracker(r);
|
|
10026
10026
|
o.move("> "), o.shift(2);
|
|
10027
10027
|
const a = n.indentLines(
|
|
10028
10028
|
n.containerFlow(e, o.current()),
|
|
10029
|
-
|
|
10029
|
+
Kd
|
|
10030
10030
|
);
|
|
10031
10031
|
return i(), a;
|
|
10032
10032
|
}
|
|
10033
|
-
function
|
|
10033
|
+
function Kd(e, t, n) {
|
|
10034
10034
|
return ">" + (n ? "" : " ") + e;
|
|
10035
10035
|
}
|
|
10036
|
-
function
|
|
10036
|
+
function Yd(e, t) {
|
|
10037
10037
|
return Wi(e, t.inConstruct, !0) && !Wi(e, t.notInConstruct, !1);
|
|
10038
10038
|
}
|
|
10039
10039
|
function Wi(e, t, n) {
|
|
@@ -10049,12 +10049,12 @@ function Gi(e, t, n, r) {
|
|
|
10049
10049
|
let i = -1;
|
|
10050
10050
|
for (; ++i < n.unsafe.length; )
|
|
10051
10051
|
if (n.unsafe[i].character === `
|
|
10052
|
-
` &&
|
|
10052
|
+
` && Yd(n.stack, n.unsafe[i]))
|
|
10053
10053
|
return /[ \t]/.test(r.before) ? "" : " ";
|
|
10054
10054
|
return `\\
|
|
10055
10055
|
`;
|
|
10056
10056
|
}
|
|
10057
|
-
function
|
|
10057
|
+
function Jd(e, t) {
|
|
10058
10058
|
const n = String(e);
|
|
10059
10059
|
let r = n.indexOf(t), i = r, o = 0, a = 0;
|
|
10060
10060
|
if (typeof t != "string")
|
|
@@ -10063,13 +10063,13 @@ function Jp(e, t) {
|
|
|
10063
10063
|
r === i ? ++o > a && (a = o) : o = 1, i = r + t.length, r = n.indexOf(t, i);
|
|
10064
10064
|
return a;
|
|
10065
10065
|
}
|
|
10066
|
-
function
|
|
10066
|
+
function Qd(e, t) {
|
|
10067
10067
|
return !!(t.options.fences === !1 && e.value && // If there’s no info…
|
|
10068
10068
|
!e.lang && // And there’s a non-whitespace character…
|
|
10069
10069
|
/[^ \r\n]/.test(e.value) && // And the value doesn’t start or end in a blank…
|
|
10070
10070
|
!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
10071
10071
|
}
|
|
10072
|
-
function
|
|
10072
|
+
function Xd(e) {
|
|
10073
10073
|
const t = e.options.fence || "`";
|
|
10074
10074
|
if (t !== "`" && t !== "~")
|
|
10075
10075
|
throw new Error(
|
|
@@ -10077,13 +10077,13 @@ function Xp(e) {
|
|
|
10077
10077
|
);
|
|
10078
10078
|
return t;
|
|
10079
10079
|
}
|
|
10080
|
-
function
|
|
10081
|
-
const i =
|
|
10082
|
-
if (
|
|
10083
|
-
const f = n.enter("codeIndented"),
|
|
10084
|
-
return f(),
|
|
10080
|
+
function Zd(e, t, n, r) {
|
|
10081
|
+
const i = Xd(n), o = e.value || "", a = i === "`" ? "GraveAccent" : "Tilde";
|
|
10082
|
+
if (Qd(e, n)) {
|
|
10083
|
+
const f = n.enter("codeIndented"), d = n.indentLines(o, eh);
|
|
10084
|
+
return f(), d;
|
|
10085
10085
|
}
|
|
10086
|
-
const s = n.createTracker(r), l = i.repeat(Math.max(
|
|
10086
|
+
const s = n.createTracker(r), l = i.repeat(Math.max(Jd(o, i) + 1, 3)), c = n.enter("codeFenced");
|
|
10087
10087
|
let u = s.move(l);
|
|
10088
10088
|
if (e.lang) {
|
|
10089
10089
|
const f = n.enter(`codeFencedLang${a}`);
|
|
@@ -10213,13 +10213,13 @@ function Ba(e, t, n, r) {
|
|
|
10213
10213
|
i
|
|
10214
10214
|
);
|
|
10215
10215
|
u.inside && (l = Dt(c) + l.slice(1));
|
|
10216
|
-
const f = l.charCodeAt(l.length - 1),
|
|
10217
|
-
|
|
10218
|
-
const
|
|
10216
|
+
const f = l.charCodeAt(l.length - 1), d = fn(r.after.charCodeAt(0), f, i);
|
|
10217
|
+
d.inside && (l = l.slice(0, -1) + Dt(f));
|
|
10218
|
+
const p = a.move(i);
|
|
10219
10219
|
return o(), n.attentionEncodeSurroundingInfo = {
|
|
10220
|
-
after:
|
|
10220
|
+
after: d.outside,
|
|
10221
10221
|
before: u.outside
|
|
10222
|
-
}, s + l +
|
|
10222
|
+
}, s + l + p;
|
|
10223
10223
|
}
|
|
10224
10224
|
function rh(e, t, n) {
|
|
10225
10225
|
return n.options.emphasis || "*";
|
|
@@ -10234,19 +10234,19 @@ function ih(e, t) {
|
|
|
10234
10234
|
function oh(e, t, n, r) {
|
|
10235
10235
|
const i = Math.max(Math.min(6, e.depth || 1), 1), o = n.createTracker(r);
|
|
10236
10236
|
if (ih(e, n)) {
|
|
10237
|
-
const u = n.enter("headingSetext"), f = n.enter("phrasing"),
|
|
10237
|
+
const u = n.enter("headingSetext"), f = n.enter("phrasing"), d = n.containerPhrasing(e, {
|
|
10238
10238
|
...o.current(),
|
|
10239
10239
|
before: `
|
|
10240
10240
|
`,
|
|
10241
10241
|
after: `
|
|
10242
10242
|
`
|
|
10243
10243
|
});
|
|
10244
|
-
return f(), u(),
|
|
10244
|
+
return f(), u(), d + `
|
|
10245
10245
|
` + (i === 1 ? "=" : "-").repeat(
|
|
10246
10246
|
// The whole size…
|
|
10247
|
-
|
|
10247
|
+
d.length - // Minus the position of the character after the last EOL (or
|
|
10248
10248
|
// 0 if there is none)…
|
|
10249
|
-
(Math.max(
|
|
10249
|
+
(Math.max(d.lastIndexOf("\r"), d.lastIndexOf(`
|
|
10250
10250
|
`)) + 1)
|
|
10251
10251
|
);
|
|
10252
10252
|
}
|
|
@@ -10427,7 +10427,7 @@ function Fr(e) {
|
|
|
10427
10427
|
);
|
|
10428
10428
|
return t;
|
|
10429
10429
|
}
|
|
10430
|
-
function
|
|
10430
|
+
function ph(e) {
|
|
10431
10431
|
const t = Fr(e), n = e.options.bulletOther;
|
|
10432
10432
|
if (!n)
|
|
10433
10433
|
return t === "*" ? "-" : "*";
|
|
@@ -10441,7 +10441,7 @@ function dh(e) {
|
|
|
10441
10441
|
);
|
|
10442
10442
|
return n;
|
|
10443
10443
|
}
|
|
10444
|
-
function
|
|
10444
|
+
function dh(e) {
|
|
10445
10445
|
const t = e.options.bulletOrdered || ".";
|
|
10446
10446
|
if (t !== "." && t !== ")")
|
|
10447
10447
|
throw new Error(
|
|
@@ -10459,8 +10459,8 @@ function Ka(e) {
|
|
|
10459
10459
|
}
|
|
10460
10460
|
function hh(e, t, n, r) {
|
|
10461
10461
|
const i = n.enter("list"), o = n.bulletCurrent;
|
|
10462
|
-
let a = e.ordered ?
|
|
10463
|
-
const s = e.ordered ? a === "." ? ")" : "." :
|
|
10462
|
+
let a = e.ordered ? dh(n) : Fr(n);
|
|
10463
|
+
const s = e.ordered ? a === "." ? ")" : "." : ph(n);
|
|
10464
10464
|
let l = t && n.bulletLastUsed ? a === n.bulletLastUsed : !1;
|
|
10465
10465
|
if (!e.ordered) {
|
|
10466
10466
|
const u = e.children ? e.children[0] : void 0;
|
|
@@ -10473,8 +10473,8 @@ function hh(e, t, n, r) {
|
|
|
10473
10473
|
) {
|
|
10474
10474
|
let f = -1;
|
|
10475
10475
|
for (; ++f < e.children.length; ) {
|
|
10476
|
-
const
|
|
10477
|
-
if (
|
|
10476
|
+
const d = e.children[f];
|
|
10477
|
+
if (d && d.type === "listItem" && d.children && d.children[0] && d.children[0].type === "thematicBreak") {
|
|
10478
10478
|
l = !0;
|
|
10479
10479
|
break;
|
|
10480
10480
|
}
|
|
@@ -10506,8 +10506,8 @@ function gh(e, t, n, r) {
|
|
|
10506
10506
|
u
|
|
10507
10507
|
);
|
|
10508
10508
|
return l(), c;
|
|
10509
|
-
function u(f,
|
|
10510
|
-
return
|
|
10509
|
+
function u(f, d, p) {
|
|
10510
|
+
return d ? (p ? "" : " ".repeat(a)) + f : (p ? o : o + " ".repeat(a - o.length)) + f;
|
|
10511
10511
|
}
|
|
10512
10512
|
}
|
|
10513
10513
|
function bh(e, t, n, r) {
|
|
@@ -10569,13 +10569,13 @@ function Ya(e, t, n, r) {
|
|
|
10569
10569
|
i
|
|
10570
10570
|
);
|
|
10571
10571
|
u.inside && (l = Dt(c) + l.slice(1));
|
|
10572
|
-
const f = l.charCodeAt(l.length - 1),
|
|
10573
|
-
|
|
10574
|
-
const
|
|
10572
|
+
const f = l.charCodeAt(l.length - 1), d = fn(r.after.charCodeAt(0), f, i);
|
|
10573
|
+
d.inside && (l = l.slice(0, -1) + Dt(f));
|
|
10574
|
+
const p = a.move(i + i);
|
|
10575
10575
|
return o(), n.attentionEncodeSurroundingInfo = {
|
|
10576
|
-
after:
|
|
10576
|
+
after: d.outside,
|
|
10577
10577
|
before: u.outside
|
|
10578
|
-
}, s + l +
|
|
10578
|
+
}, s + l + p;
|
|
10579
10579
|
}
|
|
10580
10580
|
function vh(e, t, n) {
|
|
10581
10581
|
return n.options.strong || "*";
|
|
@@ -10596,9 +10596,9 @@ function Eh(e, t, n) {
|
|
|
10596
10596
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
10597
10597
|
}
|
|
10598
10598
|
const Ja = {
|
|
10599
|
-
blockquote:
|
|
10599
|
+
blockquote: Gd,
|
|
10600
10600
|
break: Gi,
|
|
10601
|
-
code:
|
|
10601
|
+
code: Zd,
|
|
10602
10602
|
definition: th,
|
|
10603
10603
|
emphasis: Ba,
|
|
10604
10604
|
hardBreak: Gi,
|
|
@@ -10691,30 +10691,30 @@ function Rh(e) {
|
|
|
10691
10691
|
{ atBreak: !0, character: "-", after: "[:|-]" }
|
|
10692
10692
|
],
|
|
10693
10693
|
handlers: {
|
|
10694
|
-
inlineCode:
|
|
10694
|
+
inlineCode: d,
|
|
10695
10695
|
table: a,
|
|
10696
10696
|
tableCell: l,
|
|
10697
10697
|
tableRow: s
|
|
10698
10698
|
}
|
|
10699
10699
|
};
|
|
10700
|
-
function a(
|
|
10701
|
-
return c(u(
|
|
10700
|
+
function a(p, h, b, k) {
|
|
10701
|
+
return c(u(p, b, k), p.align);
|
|
10702
10702
|
}
|
|
10703
|
-
function s(
|
|
10704
|
-
const y = f(
|
|
10703
|
+
function s(p, h, b, k) {
|
|
10704
|
+
const y = f(p, b, k), S = c([y]);
|
|
10705
10705
|
return S.slice(0, S.indexOf(`
|
|
10706
10706
|
`));
|
|
10707
10707
|
}
|
|
10708
|
-
function l(
|
|
10709
|
-
const y = b.enter("tableCell"), S = b.enter("phrasing"), E = b.containerPhrasing(
|
|
10708
|
+
function l(p, h, b, k) {
|
|
10709
|
+
const y = b.enter("tableCell"), S = b.enter("phrasing"), E = b.containerPhrasing(p, {
|
|
10710
10710
|
...k,
|
|
10711
10711
|
before: o,
|
|
10712
10712
|
after: o
|
|
10713
10713
|
});
|
|
10714
10714
|
return S(), y(), E;
|
|
10715
10715
|
}
|
|
10716
|
-
function c(
|
|
10717
|
-
return $p
|
|
10716
|
+
function c(p, h) {
|
|
10717
|
+
return $d(p, {
|
|
10718
10718
|
align: h,
|
|
10719
10719
|
// @ts-expect-error: `markdown-table` types should support `null`.
|
|
10720
10720
|
alignDelimiters: r,
|
|
@@ -10724,24 +10724,24 @@ function Rh(e) {
|
|
|
10724
10724
|
stringLength: i
|
|
10725
10725
|
});
|
|
10726
10726
|
}
|
|
10727
|
-
function u(
|
|
10728
|
-
const k =
|
|
10727
|
+
function u(p, h, b) {
|
|
10728
|
+
const k = p.children;
|
|
10729
10729
|
let y = -1;
|
|
10730
10730
|
const S = [], E = h.enter("table");
|
|
10731
10731
|
for (; ++y < k.length; )
|
|
10732
10732
|
S[y] = f(k[y], h, b);
|
|
10733
10733
|
return E(), S;
|
|
10734
10734
|
}
|
|
10735
|
-
function f(
|
|
10736
|
-
const k =
|
|
10735
|
+
function f(p, h, b) {
|
|
10736
|
+
const k = p.children;
|
|
10737
10737
|
let y = -1;
|
|
10738
10738
|
const S = [], E = h.enter("tableRow");
|
|
10739
10739
|
for (; ++y < k.length; )
|
|
10740
|
-
S[y] = l(k[y],
|
|
10740
|
+
S[y] = l(k[y], p, h, b);
|
|
10741
10741
|
return E(), S;
|
|
10742
10742
|
}
|
|
10743
|
-
function p
|
|
10744
|
-
let k = Ja.inlineCode(
|
|
10743
|
+
function d(p, h, b) {
|
|
10744
|
+
let k = Ja.inlineCode(p, h, b);
|
|
10745
10745
|
return b.stack.includes("tableCell") && (k = k.replace(/\|/g, "\\$&")), k;
|
|
10746
10746
|
}
|
|
10747
10747
|
}
|
|
@@ -10799,9 +10799,9 @@ function Ph(e, t, n, r) {
|
|
|
10799
10799
|
}
|
|
10800
10800
|
function Mh() {
|
|
10801
10801
|
return [
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10802
|
+
hd(),
|
|
10803
|
+
Pd(),
|
|
10804
|
+
Fd(),
|
|
10805
10805
|
Ch(),
|
|
10806
10806
|
Lh()
|
|
10807
10807
|
];
|
|
@@ -10809,9 +10809,9 @@ function Mh() {
|
|
|
10809
10809
|
function zh(e) {
|
|
10810
10810
|
return {
|
|
10811
10811
|
extensions: [
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
|
|
10812
|
+
md(),
|
|
10813
|
+
Md(e),
|
|
10814
|
+
Bd(),
|
|
10815
10815
|
Rh(e),
|
|
10816
10816
|
Oh()
|
|
10817
10817
|
]
|
|
@@ -10902,8 +10902,8 @@ function Hh(e, t, n) {
|
|
|
10902
10902
|
if (he(f) && i.length < 5)
|
|
10903
10903
|
return i += String.fromCodePoint(f), e.consume(f), s;
|
|
10904
10904
|
if (f === 58) {
|
|
10905
|
-
const
|
|
10906
|
-
if (
|
|
10905
|
+
const d = i.toLowerCase();
|
|
10906
|
+
if (d === "http" || d === "https")
|
|
10907
10907
|
return e.consume(f), l;
|
|
10908
10908
|
}
|
|
10909
10909
|
return n(f);
|
|
@@ -11132,8 +11132,8 @@ function Zh(e, t, n) {
|
|
|
11132
11132
|
return n(f);
|
|
11133
11133
|
if (f === 93) {
|
|
11134
11134
|
e.exit("chunkString");
|
|
11135
|
-
const
|
|
11136
|
-
return i.includes(De(r.sliceSerialize(
|
|
11135
|
+
const d = e.exit("gfmFootnoteCallString");
|
|
11136
|
+
return i.includes(De(r.sliceSerialize(d))) ? (e.enter("gfmFootnoteCallLabelMarker"), e.consume(f), e.exit("gfmFootnoteCallLabelMarker"), e.exit("gfmFootnoteCall"), t) : n(f);
|
|
11137
11137
|
}
|
|
11138
11138
|
return J(f) || (a = !0), o++, e.consume(f), f === 92 ? u : c;
|
|
11139
11139
|
}
|
|
@@ -11163,17 +11163,17 @@ function em(e, t, n) {
|
|
|
11163
11163
|
if (h === 93) {
|
|
11164
11164
|
e.exit("chunkString");
|
|
11165
11165
|
const b = e.exit("gfmFootnoteDefinitionLabelString");
|
|
11166
|
-
return o = De(r.sliceSerialize(b)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(h), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"),
|
|
11166
|
+
return o = De(r.sliceSerialize(b)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(h), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), d;
|
|
11167
11167
|
}
|
|
11168
11168
|
return J(h) || (s = !0), a++, e.consume(h), h === 92 ? f : u;
|
|
11169
11169
|
}
|
|
11170
11170
|
function f(h) {
|
|
11171
11171
|
return h === 91 || h === 92 || h === 93 ? (e.consume(h), a++, u) : u(h);
|
|
11172
11172
|
}
|
|
11173
|
-
function p(h) {
|
|
11174
|
-
return h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), i.includes(o) || i.push(o), G(e, d, "gfmFootnoteDefinitionWhitespace")) : n(h);
|
|
11175
|
-
}
|
|
11176
11173
|
function d(h) {
|
|
11174
|
+
return h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), i.includes(o) || i.push(o), G(e, p, "gfmFootnoteDefinitionWhitespace")) : n(h);
|
|
11175
|
+
}
|
|
11176
|
+
function p(h) {
|
|
11177
11177
|
return t(h);
|
|
11178
11178
|
}
|
|
11179
11179
|
}
|
|
@@ -11226,8 +11226,8 @@ function im(e) {
|
|
|
11226
11226
|
type: "strikethroughText",
|
|
11227
11227
|
start: Object.assign({}, a[c][1].end),
|
|
11228
11228
|
end: Object.assign({}, a[l][1].start)
|
|
11229
|
-
},
|
|
11230
|
-
|
|
11229
|
+
}, d = [["enter", u, s], ["enter", a[c][1], s], ["exit", a[c][1], s], ["enter", f, s]], p = s.parser.constructs.insideSpan.null;
|
|
11230
|
+
p && ke(d, d.length, 0, bn(p, a.slice(c + 1, l), s)), ke(d, d.length, 0, [["exit", f, s], ["enter", a[l][1], s], ["exit", a[l][1], s], ["exit", u, s]]), ke(a, c - 1, l - c + 3, d), l = c + d.length - 2;
|
|
11231
11231
|
break;
|
|
11232
11232
|
}
|
|
11233
11233
|
}
|
|
@@ -11238,14 +11238,14 @@ function im(e) {
|
|
|
11238
11238
|
function o(a, s, l) {
|
|
11239
11239
|
const c = this.previous, u = this.events;
|
|
11240
11240
|
let f = 0;
|
|
11241
|
-
return
|
|
11242
|
-
function p(h) {
|
|
11243
|
-
return c === 126 && u[u.length - 1][1].type !== "characterEscape" ? l(h) : (a.enter("strikethroughSequenceTemporary"), d(h));
|
|
11244
|
-
}
|
|
11241
|
+
return d;
|
|
11245
11242
|
function d(h) {
|
|
11243
|
+
return c === 126 && u[u.length - 1][1].type !== "characterEscape" ? l(h) : (a.enter("strikethroughSequenceTemporary"), p(h));
|
|
11244
|
+
}
|
|
11245
|
+
function p(h) {
|
|
11246
11246
|
const b = ft(c);
|
|
11247
11247
|
if (h === 126)
|
|
11248
|
-
return f > 1 ? l(h) : (a.consume(h), f++,
|
|
11248
|
+
return f > 1 ? l(h) : (a.consume(h), f++, p);
|
|
11249
11249
|
if (f < 2 && !n) return l(h);
|
|
11250
11250
|
const k = a.exit("strikethroughSequenceTemporary"), y = ft(h);
|
|
11251
11251
|
return k._open = !y || y === 2 && !!b, k._close = !b || b === 2 && !!y, s(h);
|
|
@@ -11373,15 +11373,15 @@ function cm(e, t, n) {
|
|
|
11373
11373
|
return w === 124 || (a = !0, o += 1), u(w);
|
|
11374
11374
|
}
|
|
11375
11375
|
function u(w) {
|
|
11376
|
-
return w === null ? n(w) : q(w) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"),
|
|
11376
|
+
return w === null ? n(w) : q(w) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), p) : n(w) : H(w) ? G(e, u, "whitespace")(w) : (o += 1, a && (a = !1, i += 1), w === 124 ? (e.enter("tableCellDivider"), e.consume(w), e.exit("tableCellDivider"), a = !0, u) : (e.enter("data"), f(w)));
|
|
11377
11377
|
}
|
|
11378
11378
|
function f(w) {
|
|
11379
|
-
return w === null || w === 124 || J(w) ? (e.exit("data"), u(w)) : (e.consume(w), w === 92 ?
|
|
11379
|
+
return w === null || w === 124 || J(w) ? (e.exit("data"), u(w)) : (e.consume(w), w === 92 ? d : f);
|
|
11380
11380
|
}
|
|
11381
|
-
function
|
|
11381
|
+
function d(w) {
|
|
11382
11382
|
return w === 92 || w === 124 ? (e.consume(w), f) : f(w);
|
|
11383
11383
|
}
|
|
11384
|
-
function
|
|
11384
|
+
function p(w) {
|
|
11385
11385
|
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(w) : (e.enter("tableDelimiterRow"), a = !1, H(w) ? G(e, h, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(w) : h(w));
|
|
11386
11386
|
}
|
|
11387
11387
|
function h(w) {
|
|
@@ -11423,24 +11423,24 @@ function cm(e, t, n) {
|
|
|
11423
11423
|
}
|
|
11424
11424
|
function um(e, t) {
|
|
11425
11425
|
let n = -1, r = !0, i = 0, o = [0, 0, 0, 0], a = [0, 0, 0, 0], s = !1, l = 0, c, u, f;
|
|
11426
|
-
const
|
|
11426
|
+
const d = new om();
|
|
11427
11427
|
for (; ++n < e.length; ) {
|
|
11428
|
-
const
|
|
11429
|
-
|
|
11428
|
+
const p = e[n], h = p[1];
|
|
11429
|
+
p[0] === "enter" ? h.type === "tableHead" ? (s = !1, l !== 0 && (Ji(d, t, l, c, u), u = void 0, l = 0), c = {
|
|
11430
11430
|
type: "table",
|
|
11431
11431
|
start: Object.assign({}, h.start),
|
|
11432
11432
|
// Note: correct end is set later.
|
|
11433
11433
|
end: Object.assign({}, h.end)
|
|
11434
|
-
},
|
|
11434
|
+
}, d.add(n, 0, [["enter", c, t]])) : h.type === "tableRow" || h.type === "tableDelimiterRow" ? (r = !0, f = void 0, o = [0, 0, 0, 0], a = [0, n + 1, 0, 0], s && (s = !1, u = {
|
|
11435
11435
|
type: "tableBody",
|
|
11436
11436
|
start: Object.assign({}, h.start),
|
|
11437
11437
|
// Note: correct end is set later.
|
|
11438
11438
|
end: Object.assign({}, h.end)
|
|
11439
|
-
},
|
|
11439
|
+
}, d.add(n, 0, [["enter", u, t]])), i = h.type === "tableDelimiterRow" ? 2 : u ? 3 : 1) : i && (h.type === "data" || h.type === "tableDelimiterMarker" || h.type === "tableDelimiterFiller") ? (r = !1, a[2] === 0 && (o[1] !== 0 && (a[0] = a[1], f = Gt(d, t, o, i, void 0, f), o = [0, 0, 0, 0]), a[2] = n)) : h.type === "tableCellDivider" && (r ? r = !1 : (o[1] !== 0 && (a[0] = a[1], f = Gt(d, t, o, i, void 0, f)), o = a, a = [o[1], n, 0, 0])) : h.type === "tableHead" ? (s = !0, l = n) : h.type === "tableRow" || h.type === "tableDelimiterRow" ? (l = n, o[1] !== 0 ? (a[0] = a[1], f = Gt(d, t, o, i, n, f)) : a[1] !== 0 && (f = Gt(d, t, a, i, n, f)), i = 0) : i && (h.type === "data" || h.type === "tableDelimiterMarker" || h.type === "tableDelimiterFiller") && (a[3] = n);
|
|
11440
11440
|
}
|
|
11441
|
-
for (l !== 0 && Ji(
|
|
11442
|
-
const
|
|
11443
|
-
|
|
11441
|
+
for (l !== 0 && Ji(d, t, l, c, u), d.consume(t.events), n = -1; ++n < t.events.length; ) {
|
|
11442
|
+
const p = t.events[n];
|
|
11443
|
+
p[0] === "enter" && p[1].type === "table" && (p[1]._align = sm(t.events, n));
|
|
11444
11444
|
}
|
|
11445
11445
|
return e;
|
|
11446
11446
|
}
|
|
@@ -11460,8 +11460,8 @@ function Gt(e, t, n, r, i, o) {
|
|
|
11460
11460
|
end: Object.assign({}, u)
|
|
11461
11461
|
};
|
|
11462
11462
|
if (e.add(n[2], 0, [["enter", f, t]]), r !== 2) {
|
|
11463
|
-
const
|
|
11464
|
-
if (
|
|
11463
|
+
const d = t.events[n[2]], p = t.events[n[3]];
|
|
11464
|
+
if (d[1].end = Object.assign({}, p[1].end), d[1].type = "chunkText", d[1].contentType = "text", n[3] > n[2] + 1) {
|
|
11465
11465
|
const h = n[2] + 1, b = n[3] - n[2] - 1;
|
|
11466
11466
|
e.add(h, b, []);
|
|
11467
11467
|
}
|
|
@@ -11480,16 +11480,16 @@ function at(e, t) {
|
|
|
11480
11480
|
}
|
|
11481
11481
|
const fm = {
|
|
11482
11482
|
name: "tasklistCheck",
|
|
11483
|
-
tokenize:
|
|
11483
|
+
tokenize: dm
|
|
11484
11484
|
};
|
|
11485
|
-
function
|
|
11485
|
+
function pm() {
|
|
11486
11486
|
return {
|
|
11487
11487
|
text: {
|
|
11488
11488
|
91: fm
|
|
11489
11489
|
}
|
|
11490
11490
|
};
|
|
11491
11491
|
}
|
|
11492
|
-
function
|
|
11492
|
+
function dm(e, t, n) {
|
|
11493
11493
|
const r = this;
|
|
11494
11494
|
return i;
|
|
11495
11495
|
function i(l) {
|
|
@@ -11519,12 +11519,12 @@ function hm(e, t, n) {
|
|
|
11519
11519
|
}
|
|
11520
11520
|
}
|
|
11521
11521
|
function mm(e) {
|
|
11522
|
-
return
|
|
11522
|
+
return pa([
|
|
11523
11523
|
Bh(),
|
|
11524
11524
|
Jh(),
|
|
11525
11525
|
im(e),
|
|
11526
11526
|
lm(),
|
|
11527
|
-
|
|
11527
|
+
pm()
|
|
11528
11528
|
]);
|
|
11529
11529
|
}
|
|
11530
11530
|
const gm = {};
|
|
@@ -11536,10 +11536,10 @@ function bm(e) {
|
|
|
11536
11536
|
i.push(mm(n)), o.push(Mh()), a.push(zh(n));
|
|
11537
11537
|
}
|
|
11538
11538
|
const ym = ({ text: e }) => /* @__PURE__ */ x(
|
|
11539
|
-
|
|
11539
|
+
Kp,
|
|
11540
11540
|
{
|
|
11541
11541
|
remarkPlugins: [bm],
|
|
11542
|
-
rehypePlugins: [
|
|
11542
|
+
rehypePlugins: [ld],
|
|
11543
11543
|
components: {
|
|
11544
11544
|
p: ({ children: n }) => /* @__PURE__ */ x("p", { className: "mb-3 last:mb-0 whitespace-pre-wrap", children: n }),
|
|
11545
11545
|
ul: ({ children: n }) => /* @__PURE__ */ x("ul", { className: "list-disc ml-5 mb-3 space-y-1", children: n }),
|
|
@@ -11560,25 +11560,25 @@ const ym = ({ text: e }) => /* @__PURE__ */ x(
|
|
|
11560
11560
|
}
|
|
11561
11561
|
);
|
|
11562
11562
|
function wm() {
|
|
11563
|
-
return /* @__PURE__ */ x("div", { className: "bg-gray-100 rounded-2xl px-
|
|
11563
|
+
return /* @__PURE__ */ x("div", { className: "bg-gray-100 rounded-2xl px-[12px] py-[10px]", children: /* @__PURE__ */ U("div", { className: "flex space-x-1", children: [
|
|
11564
11564
|
/* @__PURE__ */ x(
|
|
11565
11565
|
"div",
|
|
11566
11566
|
{
|
|
11567
|
-
className: "w-
|
|
11567
|
+
className: "w-[7px] h-[7px] bg-gray-400 rounded-full animate-bounce",
|
|
11568
11568
|
style: { animationDelay: "0ms" }
|
|
11569
11569
|
}
|
|
11570
11570
|
),
|
|
11571
11571
|
/* @__PURE__ */ x(
|
|
11572
11572
|
"div",
|
|
11573
11573
|
{
|
|
11574
|
-
className: "w-
|
|
11574
|
+
className: "w-[7px] h-[7px] bg-gray-400 rounded-full animate-bounce",
|
|
11575
11575
|
style: { animationDelay: "150ms" }
|
|
11576
11576
|
}
|
|
11577
11577
|
),
|
|
11578
11578
|
/* @__PURE__ */ x(
|
|
11579
11579
|
"div",
|
|
11580
11580
|
{
|
|
11581
|
-
className: "w-
|
|
11581
|
+
className: "w-[7px] h-[7px] bg-gray-400 rounded-full animate-bounce",
|
|
11582
11582
|
style: { animationDelay: "300ms" }
|
|
11583
11583
|
}
|
|
11584
11584
|
)
|
|
@@ -11595,7 +11595,7 @@ function Qi({
|
|
|
11595
11595
|
}) {
|
|
11596
11596
|
const s = !t, [l, c] = V(!1), [u, f] = V(
|
|
11597
11597
|
null
|
|
11598
|
-
), [
|
|
11598
|
+
), [d, p] = V(!1), [h, b] = V(!1), k = kr(), { collectUserFeedback: y, onMessageClick: S } = mn(), E = !e.isWelcomeMessage && typeof S == "function", P = Ml(
|
|
11599
11599
|
e.content,
|
|
11600
11600
|
15,
|
|
11601
11601
|
n && s
|
|
@@ -11702,11 +11702,11 @@ function Qi({
|
|
|
11702
11702
|
"button",
|
|
11703
11703
|
{
|
|
11704
11704
|
onClick: async () => {
|
|
11705
|
-
await navigator.clipboard.writeText(e.content),
|
|
11705
|
+
await navigator.clipboard.writeText(e.content), p(!0), setTimeout(() => p(!1), 2e3);
|
|
11706
11706
|
},
|
|
11707
11707
|
className: F(
|
|
11708
11708
|
v,
|
|
11709
|
-
|
|
11709
|
+
d && "text-primary"
|
|
11710
11710
|
),
|
|
11711
11711
|
title: "Copy message",
|
|
11712
11712
|
children: /* @__PURE__ */ x(nl, { size: 16 })
|
|
@@ -11856,7 +11856,7 @@ function vm(e) {
|
|
|
11856
11856
|
}
|
|
11857
11857
|
) });
|
|
11858
11858
|
}
|
|
11859
|
-
const os =
|
|
11859
|
+
const os = pn(null), km = {
|
|
11860
11860
|
isVisible: !1,
|
|
11861
11861
|
content: null,
|
|
11862
11862
|
showCognition: () => {
|
|
@@ -11865,35 +11865,35 @@ const os = dn(null), km = {
|
|
|
11865
11865
|
}
|
|
11866
11866
|
};
|
|
11867
11867
|
function as() {
|
|
11868
|
-
const e =
|
|
11868
|
+
const e = dn(os);
|
|
11869
11869
|
return e || (console.warn(
|
|
11870
11870
|
"useAgentCognitionContext: AgentCognitionContext is not provided. Using default values."
|
|
11871
11871
|
), km);
|
|
11872
11872
|
}
|
|
11873
11873
|
function Sm() {
|
|
11874
|
-
const e = mn(), t = as(), n = se(null), r = se(!0), [i, o] = V(!1), [a, s] = V(!1), l = (
|
|
11875
|
-
const
|
|
11876
|
-
l(
|
|
11877
|
-
}, u = (
|
|
11874
|
+
const e = mn(), t = as(), n = se(null), r = se(!0), [i, o] = V(!1), [a, s] = V(!1), l = (d) => d.scrollHeight - d.scrollTop <= d.clientHeight + 60, c = (d) => {
|
|
11875
|
+
const p = d.target;
|
|
11876
|
+
l(p) ? (o(!1), s(!1)) : (o(!0), s(!0));
|
|
11877
|
+
}, u = (d = "smooth") => {
|
|
11878
11878
|
if (n.current) {
|
|
11879
|
-
const
|
|
11880
|
-
|
|
11881
|
-
top:
|
|
11882
|
-
behavior:
|
|
11879
|
+
const p = n.current.querySelector("div");
|
|
11880
|
+
p && p.scrollTo({
|
|
11881
|
+
top: p.scrollHeight,
|
|
11882
|
+
behavior: d
|
|
11883
11883
|
});
|
|
11884
11884
|
}
|
|
11885
11885
|
};
|
|
11886
11886
|
ee(() => {
|
|
11887
11887
|
r.current ? (u("instant"), r.current = !1) : a || u();
|
|
11888
11888
|
}, [e.messages, a]), ee(() => {
|
|
11889
|
-
const
|
|
11889
|
+
const d = n.current?.querySelector(
|
|
11890
11890
|
"div.chat-interface-body"
|
|
11891
11891
|
);
|
|
11892
|
-
if (!
|
|
11893
|
-
const
|
|
11894
|
-
!a && l(
|
|
11892
|
+
if (!d) return;
|
|
11893
|
+
const p = new ResizeObserver(() => {
|
|
11894
|
+
!a && l(d) && u("auto");
|
|
11895
11895
|
});
|
|
11896
|
-
return
|
|
11896
|
+
return p.observe(d), () => p.disconnect();
|
|
11897
11897
|
}, [a]);
|
|
11898
11898
|
const f = [
|
|
11899
11899
|
...e.messages || [],
|
|
@@ -11927,17 +11927,17 @@ function Sm() {
|
|
|
11927
11927
|
/* @__PURE__ */ x("p", { className: "text-muted-foreground text-center text-sm", children: e.subtitle })
|
|
11928
11928
|
] })
|
|
11929
11929
|
] }),
|
|
11930
|
-
/* @__PURE__ */ x("div", { className: "chat-interface-body flex flex-col space-y-4 mb-10", children: f.map((
|
|
11931
|
-
const b = Array.isArray(
|
|
11930
|
+
/* @__PURE__ */ x("div", { className: "chat-interface-body flex flex-col space-y-4 mb-10", children: f.map((d, p, h) => {
|
|
11931
|
+
const b = Array.isArray(d) ? d.map((k) => k.id).join("-") : d.id;
|
|
11932
11932
|
return /* @__PURE__ */ x(
|
|
11933
11933
|
xm,
|
|
11934
11934
|
{
|
|
11935
|
-
message:
|
|
11936
|
-
nextMessage: h[
|
|
11935
|
+
message: d,
|
|
11936
|
+
nextMessage: h[p + 1],
|
|
11937
11937
|
className: F({
|
|
11938
|
-
"pt-10":
|
|
11939
|
-
"pb-2":
|
|
11940
|
-
"pb-14": e.suggestedMessages &&
|
|
11938
|
+
"pt-10": p === 0,
|
|
11939
|
+
"pb-2": p >= h.length - 1,
|
|
11940
|
+
"pb-14": e.suggestedMessages && p >= h.length - 1
|
|
11941
11941
|
}),
|
|
11942
11942
|
assistantLogo: e.assistantLogo
|
|
11943
11943
|
},
|
|
@@ -11995,7 +11995,7 @@ const Xi = {
|
|
|
11995
11995
|
5031: "The service is currently undergoing maintenance. Please try again later.",
|
|
11996
11996
|
5001: "We are currently facing technical difficulties. Please try again later.",
|
|
11997
11997
|
DEFAULT: "Something went wrong. Please try again later."
|
|
11998
|
-
}, ls = (e) => Xi[e] || Xi.DEFAULT, cs =
|
|
11998
|
+
}, ls = (e) => Xi[e] || Xi.DEFAULT, cs = pn({
|
|
11999
11999
|
error: null,
|
|
12000
12000
|
publishApiError: () => {
|
|
12001
12001
|
},
|
|
@@ -12004,7 +12004,7 @@ const Xi = {
|
|
|
12004
12004
|
clearError: () => {
|
|
12005
12005
|
}
|
|
12006
12006
|
}), vn = () => {
|
|
12007
|
-
const e =
|
|
12007
|
+
const e = dn(cs);
|
|
12008
12008
|
if (e === void 0)
|
|
12009
12009
|
throw new Error("useError must be used within an ErrorProvider");
|
|
12010
12010
|
return e;
|
|
@@ -12062,36 +12062,36 @@ function Am() {
|
|
|
12062
12062
|
children: /* @__PURE__ */ x("div", { className: "flex gap-2 min-w-min", children: [
|
|
12063
12063
|
"Tell me more about Product X.",
|
|
12064
12064
|
"Do you offer delivery in Palo Alto?"
|
|
12065
|
-
].map((
|
|
12065
|
+
].map((d) => /* @__PURE__ */ x(
|
|
12066
12066
|
"button",
|
|
12067
12067
|
{
|
|
12068
12068
|
onClick: () => {
|
|
12069
|
-
o(
|
|
12069
|
+
o(d), r.current && r.current.focus();
|
|
12070
12070
|
},
|
|
12071
12071
|
className: "whitespace-nowrap px-3 py-1.5 text-sm rounded-full bg-muted hover:bg-muted cursor-grab",
|
|
12072
|
-
children:
|
|
12072
|
+
children: d
|
|
12073
12073
|
},
|
|
12074
|
-
|
|
12074
|
+
d
|
|
12075
12075
|
)) })
|
|
12076
12076
|
}
|
|
12077
12077
|
) : null, u = async (f) => {
|
|
12078
12078
|
f.preventDefault();
|
|
12079
|
-
const
|
|
12080
|
-
if (!(!
|
|
12079
|
+
const d = i.trim();
|
|
12080
|
+
if (!(!d || t))
|
|
12081
12081
|
try {
|
|
12082
12082
|
if (o(""), await n.onSendMessage?.({
|
|
12083
12083
|
id: crypto.randomUUID(),
|
|
12084
|
-
content:
|
|
12084
|
+
content: d,
|
|
12085
12085
|
sender: "user",
|
|
12086
12086
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
12087
12087
|
}), r.current) {
|
|
12088
|
-
const
|
|
12089
|
-
|
|
12090
|
-
const h = Math.min(
|
|
12091
|
-
|
|
12088
|
+
const p = r.current;
|
|
12089
|
+
p.style.height = "auto";
|
|
12090
|
+
const h = Math.min(p.scrollHeight, 48);
|
|
12091
|
+
p.style.height = `${h}px`;
|
|
12092
12092
|
}
|
|
12093
12093
|
} catch {
|
|
12094
|
-
o(
|
|
12094
|
+
o(d);
|
|
12095
12095
|
}
|
|
12096
12096
|
};
|
|
12097
12097
|
return /* @__PURE__ */ U(vr, { className: "flex flex-col bg-background p-0", children: [
|
|
@@ -12118,15 +12118,15 @@ function Am() {
|
|
|
12118
12118
|
onKeyDown: (f) => {
|
|
12119
12119
|
if (f.key === "Enter" && !f.shiftKey) {
|
|
12120
12120
|
f.preventDefault();
|
|
12121
|
-
const
|
|
12122
|
-
|
|
12121
|
+
const d = f.currentTarget.form;
|
|
12122
|
+
d && d.dispatchEvent(new Event("submit", { bubbles: !0 }));
|
|
12123
12123
|
}
|
|
12124
12124
|
},
|
|
12125
12125
|
onInput: (f) => {
|
|
12126
|
-
const
|
|
12127
|
-
|
|
12128
|
-
const
|
|
12129
|
-
|
|
12126
|
+
const d = f.currentTarget;
|
|
12127
|
+
d.style.height = "auto";
|
|
12128
|
+
const p = Math.min(d.scrollHeight, 132);
|
|
12129
|
+
d.style.height = `${p}px`, o(d.value);
|
|
12130
12130
|
}
|
|
12131
12131
|
}
|
|
12132
12132
|
) }),
|
|
@@ -12256,7 +12256,7 @@ function Me({
|
|
|
12256
12256
|
}
|
|
12257
12257
|
);
|
|
12258
12258
|
}
|
|
12259
|
-
function
|
|
12259
|
+
function ps({
|
|
12260
12260
|
isOpen: e = !1,
|
|
12261
12261
|
isMobile: t
|
|
12262
12262
|
}) {
|
|
@@ -12300,7 +12300,7 @@ function Rm(e) {
|
|
|
12300
12300
|
/* @__PURE__ */ x(Sm, {}),
|
|
12301
12301
|
/* @__PURE__ */ x(Am, {})
|
|
12302
12302
|
] }) : /* @__PURE__ */ U(Qe, { children: [
|
|
12303
|
-
/* @__PURE__ */ x(
|
|
12303
|
+
/* @__PURE__ */ x(ps, { isOpen: t, isMobile: n }),
|
|
12304
12304
|
!s && /* @__PURE__ */ x(
|
|
12305
12305
|
Yo,
|
|
12306
12306
|
{
|
|
@@ -12498,10 +12498,10 @@ function Mm({
|
|
|
12498
12498
|
sender: A.role,
|
|
12499
12499
|
timestamp: A.created_at,
|
|
12500
12500
|
type: "text"
|
|
12501
|
-
}),
|
|
12501
|
+
}), d = (A) => ({
|
|
12502
12502
|
message_id: A.message_id,
|
|
12503
12503
|
response: A.response
|
|
12504
|
-
}),
|
|
12504
|
+
}), p = Z(
|
|
12505
12505
|
(A, D) => {
|
|
12506
12506
|
const w = D.map(f), N = Math.min(A.length, w.length);
|
|
12507
12507
|
for (let I = 0; I < N; I++)
|
|
@@ -12513,7 +12513,7 @@ function Mm({
|
|
|
12513
12513
|
), h = Z(
|
|
12514
12514
|
(A) => {
|
|
12515
12515
|
setTimeout(() => {
|
|
12516
|
-
o(
|
|
12516
|
+
o(d(A), t);
|
|
12517
12517
|
}, 100);
|
|
12518
12518
|
},
|
|
12519
12519
|
[o, t]
|
|
@@ -12531,7 +12531,7 @@ function Mm({
|
|
|
12531
12531
|
(A) => {
|
|
12532
12532
|
if (A.role === "assistant")
|
|
12533
12533
|
o(
|
|
12534
|
-
|
|
12534
|
+
d(A),
|
|
12535
12535
|
t
|
|
12536
12536
|
);
|
|
12537
12537
|
else {
|
|
@@ -12584,7 +12584,7 @@ function Mm({
|
|
|
12584
12584
|
(R) => !N.has(R.id)
|
|
12585
12585
|
);
|
|
12586
12586
|
if (!(I.length === 0 && _.length === 0)) {
|
|
12587
|
-
const R =
|
|
12587
|
+
const R = p(D, A), z = I.length === 1 && _.length === 0, $ = I.length > 1 && _.length === 0;
|
|
12588
12588
|
R && z ? k(I[0]) : R && $ ? y(A, I) : S(
|
|
12589
12589
|
A,
|
|
12590
12590
|
I,
|
|
@@ -12605,7 +12605,7 @@ function Mm({
|
|
|
12605
12605
|
e,
|
|
12606
12606
|
t,
|
|
12607
12607
|
n,
|
|
12608
|
-
|
|
12608
|
+
p,
|
|
12609
12609
|
k,
|
|
12610
12610
|
y,
|
|
12611
12611
|
S
|
|
@@ -12670,16 +12670,16 @@ function Ur({ appId: e }) {
|
|
|
12670
12670
|
}, [r]), o = Z(
|
|
12671
12671
|
(l, c, u, f) => {
|
|
12672
12672
|
try {
|
|
12673
|
-
const
|
|
12673
|
+
const d = {
|
|
12674
12674
|
conversationId: l,
|
|
12675
12675
|
userId: c,
|
|
12676
12676
|
deviceId: f,
|
|
12677
12677
|
messages: u,
|
|
12678
12678
|
lastActivity: Date.now()
|
|
12679
12679
|
};
|
|
12680
|
-
localStorage.setItem(t, JSON.stringify(
|
|
12681
|
-
} catch (
|
|
12682
|
-
console.error("Error saving conversation data to localStorage:",
|
|
12680
|
+
localStorage.setItem(t, JSON.stringify(d));
|
|
12681
|
+
} catch (d) {
|
|
12682
|
+
console.error("Error saving conversation data to localStorage:", d);
|
|
12683
12683
|
}
|
|
12684
12684
|
},
|
|
12685
12685
|
[t]
|
|
@@ -12844,7 +12844,7 @@ class Ie {
|
|
|
12844
12844
|
}
|
|
12845
12845
|
Ie.LOG_LEVEL = null;
|
|
12846
12846
|
Ie.BIND_ALL_LOG_LEVELS = !1;
|
|
12847
|
-
class
|
|
12847
|
+
class pt extends Error {
|
|
12848
12848
|
/**
|
|
12849
12849
|
* Constructs an AmplifyError.
|
|
12850
12850
|
*
|
|
@@ -12858,7 +12858,7 @@ class dt extends Error {
|
|
|
12858
12858
|
const { extendedRequestId: a, httpStatusCode: s, requestId: l } = o;
|
|
12859
12859
|
this.metadata = { extendedRequestId: a, httpStatusCode: s, requestId: l };
|
|
12860
12860
|
}
|
|
12861
|
-
this.constructor =
|
|
12861
|
+
this.constructor = pt, Object.setPrototypeOf(this, pt.prototype);
|
|
12862
12862
|
}
|
|
12863
12863
|
}
|
|
12864
12864
|
const jr = typeof Symbol < "u" ? Symbol("amplify_default") : "@@amplify_default", Et = new Ie("Hub");
|
|
@@ -12909,7 +12909,7 @@ class jm {
|
|
|
12909
12909
|
listen(t, n, r = "noname") {
|
|
12910
12910
|
let i;
|
|
12911
12911
|
if (typeof n != "function")
|
|
12912
|
-
throw new
|
|
12912
|
+
throw new pt({
|
|
12913
12913
|
name: Um,
|
|
12914
12914
|
message: "No callback supplied to Hub"
|
|
12915
12915
|
});
|
|
@@ -12939,11 +12939,11 @@ const Hr = new jm("__default__"), Hm = () => {
|
|
|
12939
12939
|
return window.btoa;
|
|
12940
12940
|
if (typeof btoa == "function")
|
|
12941
12941
|
return btoa;
|
|
12942
|
-
throw new
|
|
12942
|
+
throw new pt({
|
|
12943
12943
|
name: "Base64EncoderError",
|
|
12944
12944
|
message: "Cannot resolve the `btoa` function from the environment."
|
|
12945
12945
|
});
|
|
12946
|
-
},
|
|
12946
|
+
}, ds = (e) => e && e["nonRetryable"], Yt = new Ie("retryUtil");
|
|
12947
12947
|
async function Vm(e, t, n, r) {
|
|
12948
12948
|
if (typeof e != "function")
|
|
12949
12949
|
throw Error("functionToRetry must be a function");
|
|
@@ -12956,7 +12956,7 @@ async function Vm(e, t, n, r) {
|
|
|
12956
12956
|
i(await e(...t));
|
|
12957
12957
|
return;
|
|
12958
12958
|
} catch (u) {
|
|
12959
|
-
if (c = u, Yt.debug(`error on ${e.name}`, u),
|
|
12959
|
+
if (c = u, Yt.debug(`error on ${e.name}`, u), ds(u)) {
|
|
12960
12960
|
Yt.debug(`${e.name} non retryable error`, u), o(u);
|
|
12961
12961
|
return;
|
|
12962
12962
|
}
|
|
@@ -12965,8 +12965,8 @@ async function Vm(e, t, n, r) {
|
|
|
12965
12965
|
o(u);
|
|
12966
12966
|
return;
|
|
12967
12967
|
} else
|
|
12968
|
-
await new Promise((
|
|
12969
|
-
l =
|
|
12968
|
+
await new Promise((d) => {
|
|
12969
|
+
l = d, setTimeout(l, f);
|
|
12970
12970
|
});
|
|
12971
12971
|
}
|
|
12972
12972
|
}
|
|
@@ -12995,12 +12995,12 @@ const hs = (e) => {
|
|
|
12995
12995
|
LAMBDA: "lambda"
|
|
12996
12996
|
}, Gm = (e = {}) => {
|
|
12997
12997
|
if (!Object.prototype.hasOwnProperty.call(e, "aws_project_region"))
|
|
12998
|
-
throw new
|
|
12998
|
+
throw new pt({
|
|
12999
12999
|
name: "InvalidParameterException",
|
|
13000
13000
|
message: "Invalid config parameter.",
|
|
13001
13001
|
recoverySuggestion: "Ensure passing the config object imported from `amplifyconfiguration.json`."
|
|
13002
13002
|
});
|
|
13003
|
-
const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: i, aws_bots_config: o, aws_cognito_identity_pool_id: a, aws_cognito_sign_up_verification_method: s, aws_cognito_mfa_configuration: l, aws_cognito_mfa_types: c, aws_cognito_password_protection_settings: u, aws_cognito_verification_mechanisms: f, aws_cognito_signup_attributes:
|
|
13003
|
+
const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: i, aws_bots_config: o, aws_cognito_identity_pool_id: a, aws_cognito_sign_up_verification_method: s, aws_cognito_mfa_configuration: l, aws_cognito_mfa_types: c, aws_cognito_password_protection_settings: u, aws_cognito_verification_mechanisms: f, aws_cognito_signup_attributes: d, aws_cognito_social_providers: p, aws_cognito_username_attributes: h, aws_mandatory_sign_in: b, aws_mobile_analytics_app_id: k, aws_mobile_analytics_app_region: y, aws_user_files_s3_bucket: S, aws_user_files_s3_bucket_region: E, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing: P, aws_user_pools_id: L, aws_user_pools_web_client_id: v, geo: M, oauth: A, predictions: D, aws_cloud_logic_custom: w, Notifications: N, modelIntrospection: I } = e, _ = {};
|
|
13004
13004
|
k && (_.Analytics = {
|
|
13005
13005
|
Pinpoint: {
|
|
13006
13006
|
appId: k,
|
|
@@ -13010,24 +13010,24 @@ const hs = (e) => {
|
|
|
13010
13010
|
const { InAppMessaging: R, Push: z } = N ?? {};
|
|
13011
13011
|
if (R?.AWSPinpoint || z?.AWSPinpoint) {
|
|
13012
13012
|
if (R?.AWSPinpoint) {
|
|
13013
|
-
const { appId: K, region:
|
|
13013
|
+
const { appId: K, region: pe } = R.AWSPinpoint;
|
|
13014
13014
|
_.Notifications = {
|
|
13015
13015
|
InAppMessaging: {
|
|
13016
13016
|
Pinpoint: {
|
|
13017
13017
|
appId: K,
|
|
13018
|
-
region:
|
|
13018
|
+
region: pe
|
|
13019
13019
|
}
|
|
13020
13020
|
}
|
|
13021
13021
|
};
|
|
13022
13022
|
}
|
|
13023
13023
|
if (z?.AWSPinpoint) {
|
|
13024
|
-
const { appId: K, region:
|
|
13024
|
+
const { appId: K, region: pe } = z.AWSPinpoint;
|
|
13025
13025
|
_.Notifications = {
|
|
13026
13026
|
..._.Notifications,
|
|
13027
13027
|
PushNotification: {
|
|
13028
13028
|
Pinpoint: {
|
|
13029
13029
|
appId: K,
|
|
13030
|
-
region:
|
|
13030
|
+
region: pe
|
|
13031
13031
|
}
|
|
13032
13032
|
}
|
|
13033
13033
|
};
|
|
@@ -13058,11 +13058,11 @@ const hs = (e) => {
|
|
|
13058
13058
|
requireSpecialCharacters: u.passwordPolicyCharacters?.includes("REQUIRES_SYMBOLS") ?? !1
|
|
13059
13059
|
} : void 0, Te = Array.from(/* @__PURE__ */ new Set([
|
|
13060
13060
|
...f ?? [],
|
|
13061
|
-
...
|
|
13062
|
-
])).reduce((K,
|
|
13061
|
+
...d ?? []
|
|
13062
|
+
])).reduce((K, pe) => ({
|
|
13063
13063
|
...K,
|
|
13064
13064
|
// All user attributes generated by the CLI are required
|
|
13065
|
-
[
|
|
13065
|
+
[pe.toLowerCase()]: { required: !0 }
|
|
13066
13066
|
}), {}), m = h?.includes("EMAIL") ?? !1, me = h?.includes("PHONE_NUMBER") ?? !1;
|
|
13067
13067
|
(a || L) && (_.Auth = {
|
|
13068
13068
|
Cognito: {
|
|
@@ -13081,13 +13081,13 @@ const hs = (e) => {
|
|
|
13081
13081
|
}
|
|
13082
13082
|
}
|
|
13083
13083
|
});
|
|
13084
|
-
const Ne = A ? Object.keys(A).length > 0 : !1, g =
|
|
13084
|
+
const Ne = A ? Object.keys(A).length > 0 : !1, g = p ? p.length > 0 : !1;
|
|
13085
13085
|
if (_.Auth && Ne && (_.Auth.Cognito.loginWith = {
|
|
13086
13086
|
..._.Auth.Cognito.loginWith,
|
|
13087
13087
|
oauth: {
|
|
13088
13088
|
...Km(A),
|
|
13089
13089
|
...g && {
|
|
13090
|
-
providers: Ym(
|
|
13090
|
+
providers: Ym(p)
|
|
13091
13091
|
}
|
|
13092
13092
|
}
|
|
13093
13093
|
}), S && (_.Storage = {
|
|
@@ -13109,8 +13109,8 @@ const hs = (e) => {
|
|
|
13109
13109
|
}
|
|
13110
13110
|
if (w && (_.API = {
|
|
13111
13111
|
..._.API,
|
|
13112
|
-
REST: w.reduce((K,
|
|
13113
|
-
const { name: ie, endpoint: Ge, region: Re, service: Fe } =
|
|
13112
|
+
REST: w.reduce((K, pe) => {
|
|
13113
|
+
const { name: ie, endpoint: Ge, region: Re, service: Fe } = pe;
|
|
13114
13114
|
return {
|
|
13115
13115
|
...K,
|
|
13116
13116
|
[ie]: {
|
|
@@ -13192,42 +13192,42 @@ function rg(e) {
|
|
|
13192
13192
|
function ig(e) {
|
|
13193
13193
|
if (!e)
|
|
13194
13194
|
return;
|
|
13195
|
-
const { user_pool_id: t, user_pool_client_id: n, identity_pool_id: r, password_policy: i, mfa_configuration: o, mfa_methods: a, unauthenticated_identities_enabled: s, oauth: l, username_attributes: c, standard_required_attributes: u, groups: f } = e,
|
|
13195
|
+
const { user_pool_id: t, user_pool_client_id: n, identity_pool_id: r, password_policy: i, mfa_configuration: o, mfa_methods: a, unauthenticated_identities_enabled: s, oauth: l, username_attributes: c, standard_required_attributes: u, groups: f } = e, d = {
|
|
13196
13196
|
Cognito: {
|
|
13197
13197
|
userPoolId: t,
|
|
13198
13198
|
userPoolClientId: n,
|
|
13199
13199
|
groups: f
|
|
13200
13200
|
}
|
|
13201
13201
|
};
|
|
13202
|
-
return r && (
|
|
13203
|
-
...
|
|
13202
|
+
return r && (d.Cognito = {
|
|
13203
|
+
...d.Cognito,
|
|
13204
13204
|
identityPoolId: r
|
|
13205
|
-
}), i && (
|
|
13205
|
+
}), i && (d.Cognito.passwordFormat = {
|
|
13206
13206
|
requireLowercase: i.require_lowercase,
|
|
13207
13207
|
requireNumbers: i.require_numbers,
|
|
13208
13208
|
requireUppercase: i.require_uppercase,
|
|
13209
13209
|
requireSpecialCharacters: i.require_symbols,
|
|
13210
13210
|
minLength: i.min_length ?? 6
|
|
13211
|
-
}), o && (
|
|
13212
|
-
status:
|
|
13211
|
+
}), o && (d.Cognito.mfa = {
|
|
13212
|
+
status: dg(o),
|
|
13213
13213
|
smsEnabled: a?.includes("SMS"),
|
|
13214
13214
|
totpEnabled: a?.includes("TOTP")
|
|
13215
|
-
}), s && (
|
|
13215
|
+
}), s && (d.Cognito.allowGuestAccess = s), l && (d.Cognito.loginWith = {
|
|
13216
13216
|
oauth: {
|
|
13217
13217
|
domain: l.domain,
|
|
13218
13218
|
redirectSignIn: l.redirect_sign_in_uri,
|
|
13219
13219
|
redirectSignOut: l.redirect_sign_out_uri,
|
|
13220
13220
|
responseType: l.response_type === "token" ? "token" : "code",
|
|
13221
13221
|
scopes: l.scopes,
|
|
13222
|
-
providers:
|
|
13222
|
+
providers: pg(l.identity_providers)
|
|
13223
13223
|
}
|
|
13224
|
-
}), c && (
|
|
13225
|
-
...
|
|
13224
|
+
}), c && (d.Cognito.loginWith = {
|
|
13225
|
+
...d.Cognito.loginWith,
|
|
13226
13226
|
email: c.includes("email"),
|
|
13227
13227
|
phone: c.includes("phone_number"),
|
|
13228
13228
|
// Signing in with a username is not currently supported in Gen2, this should always evaluate to false
|
|
13229
13229
|
username: c.includes("username")
|
|
13230
|
-
}), u && (
|
|
13230
|
+
}), u && (d.Cognito.userAttributes = u.reduce((p, h) => ({ ...p, [h]: { required: !0 } }), {})), d;
|
|
13231
13231
|
}
|
|
13232
13232
|
function og(e) {
|
|
13233
13233
|
if (!e?.amazon_pinpoint)
|
|
@@ -13323,10 +13323,10 @@ const ro = {
|
|
|
13323
13323
|
FACEBOOK: "Facebook",
|
|
13324
13324
|
SIGN_IN_WITH_APPLE: "Apple"
|
|
13325
13325
|
};
|
|
13326
|
-
function
|
|
13326
|
+
function pg(e = []) {
|
|
13327
13327
|
return e.reduce((t, n) => (ro[n] !== void 0 && t.push(ro[n]), t), []);
|
|
13328
13328
|
}
|
|
13329
|
-
function
|
|
13329
|
+
function dg(e) {
|
|
13330
13330
|
return e === "OPTIONAL" ? "optional" : e === "REQUIRED" ? "on" : "off";
|
|
13331
13331
|
}
|
|
13332
13332
|
function hg(e) {
|
|
@@ -13487,36 +13487,36 @@ function gg(e, t, n) {
|
|
|
13487
13487
|
return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), s("next"), s("throw"), s("return", a), i[Symbol.asyncIterator] = function() {
|
|
13488
13488
|
return this;
|
|
13489
13489
|
}, i;
|
|
13490
|
-
function a(
|
|
13490
|
+
function a(p) {
|
|
13491
13491
|
return function(h) {
|
|
13492
|
-
return Promise.resolve(h).then(
|
|
13492
|
+
return Promise.resolve(h).then(p, f);
|
|
13493
13493
|
};
|
|
13494
13494
|
}
|
|
13495
|
-
function s(
|
|
13496
|
-
r[
|
|
13495
|
+
function s(p, h) {
|
|
13496
|
+
r[p] && (i[p] = function(b) {
|
|
13497
13497
|
return new Promise(function(k, y) {
|
|
13498
|
-
o.push([
|
|
13498
|
+
o.push([p, b, k, y]) > 1 || l(p, b);
|
|
13499
13499
|
});
|
|
13500
|
-
}, h && (i[
|
|
13500
|
+
}, h && (i[p] = h(i[p])));
|
|
13501
13501
|
}
|
|
13502
|
-
function l(
|
|
13502
|
+
function l(p, h) {
|
|
13503
13503
|
try {
|
|
13504
|
-
c(r[
|
|
13504
|
+
c(r[p](h));
|
|
13505
13505
|
} catch (b) {
|
|
13506
|
-
|
|
13506
|
+
d(o[0][3], b);
|
|
13507
13507
|
}
|
|
13508
13508
|
}
|
|
13509
|
-
function c(
|
|
13510
|
-
|
|
13509
|
+
function c(p) {
|
|
13510
|
+
p.value instanceof ct ? Promise.resolve(p.value.v).then(u, f) : d(o[0][2], p);
|
|
13511
13511
|
}
|
|
13512
|
-
function u(
|
|
13513
|
-
l("next",
|
|
13512
|
+
function u(p) {
|
|
13513
|
+
l("next", p);
|
|
13514
13514
|
}
|
|
13515
|
-
function f(
|
|
13516
|
-
l("throw",
|
|
13515
|
+
function f(p) {
|
|
13516
|
+
l("throw", p);
|
|
13517
13517
|
}
|
|
13518
|
-
function p
|
|
13519
|
-
|
|
13518
|
+
function d(p, h) {
|
|
13519
|
+
p(h), o.shift(), o.length && l(o[0][0], o[0][1]);
|
|
13520
13520
|
}
|
|
13521
13521
|
}
|
|
13522
13522
|
function bg(e) {
|
|
@@ -13642,16 +13642,16 @@ var Ce = 64, yg = 32, wg = new Uint32Array([
|
|
|
13642
13642
|
o[i * 4] = this.state[i] >>> 24 & 255, o[i * 4 + 1] = this.state[i] >>> 16 & 255, o[i * 4 + 2] = this.state[i] >>> 8 & 255, o[i * 4 + 3] = this.state[i] >>> 0 & 255;
|
|
13643
13643
|
return o;
|
|
13644
13644
|
}, e.prototype.hashBuffer = function() {
|
|
13645
|
-
for (var t = this, n = t.buffer, r = t.state, i = r[0], o = r[1], a = r[2], s = r[3], l = r[4], c = r[5], u = r[6], f = r[7],
|
|
13646
|
-
if (
|
|
13647
|
-
this.temp[
|
|
13645
|
+
for (var t = this, n = t.buffer, r = t.state, i = r[0], o = r[1], a = r[2], s = r[3], l = r[4], c = r[5], u = r[6], f = r[7], d = 0; d < Ce; d++) {
|
|
13646
|
+
if (d < 16)
|
|
13647
|
+
this.temp[d] = (n[d * 4] & 255) << 24 | (n[d * 4 + 1] & 255) << 16 | (n[d * 4 + 2] & 255) << 8 | n[d * 4 + 3] & 255;
|
|
13648
13648
|
else {
|
|
13649
|
-
var
|
|
13650
|
-
|
|
13651
|
-
var b = (
|
|
13652
|
-
this.temp[
|
|
13649
|
+
var p = this.temp[d - 2], h = (p >>> 17 | p << 15) ^ (p >>> 19 | p << 13) ^ p >>> 10;
|
|
13650
|
+
p = this.temp[d - 15];
|
|
13651
|
+
var b = (p >>> 7 | p << 25) ^ (p >>> 18 | p << 14) ^ p >>> 3;
|
|
13652
|
+
this.temp[d] = (h + this.temp[d - 7] | 0) + (b + this.temp[d - 16] | 0);
|
|
13653
13653
|
}
|
|
13654
|
-
var k = (((l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7)) + (l & c ^ ~l & u) | 0) + (f + (wg[
|
|
13654
|
+
var k = (((l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7)) + (l & c ^ ~l & u) | 0) + (f + (wg[d] + this.temp[d] | 0) | 0) | 0, y = ((i >>> 2 | i << 30) ^ (i >>> 13 | i << 19) ^ (i >>> 22 | i << 10)) + (i & o ^ i & a ^ o & a) | 0;
|
|
13655
13655
|
f = u, u = c, c = l, l = s + k | 0, s = a, a = o, o = i, i = k + y | 0;
|
|
13656
13656
|
}
|
|
13657
13657
|
r[0] += i, r[1] += o, r[2] += a, r[3] += s, r[4] += l, r[5] += c, r[6] += u, r[7] += f;
|
|
@@ -13950,8 +13950,8 @@ var Gr = function() {
|
|
|
13950
13950
|
if (f) {
|
|
13951
13951
|
this._finalizers = null;
|
|
13952
13952
|
try {
|
|
13953
|
-
for (var
|
|
13954
|
-
var h =
|
|
13953
|
+
for (var d = Pt(f), p = d.next(); !p.done; p = d.next()) {
|
|
13954
|
+
var h = p.value;
|
|
13955
13955
|
try {
|
|
13956
13956
|
xo(h);
|
|
13957
13957
|
} catch (b) {
|
|
@@ -13962,7 +13962,7 @@ var Gr = function() {
|
|
|
13962
13962
|
r = { error: b };
|
|
13963
13963
|
} finally {
|
|
13964
13964
|
try {
|
|
13965
|
-
|
|
13965
|
+
p && !p.done && (i = d.return) && i.call(d);
|
|
13966
13966
|
} finally {
|
|
13967
13967
|
if (r) throw r.error;
|
|
13968
13968
|
}
|
|
@@ -14137,7 +14137,7 @@ var Se = function() {
|
|
|
14137
14137
|
var n = new e();
|
|
14138
14138
|
return n.source = this, n.operator = t, n;
|
|
14139
14139
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
14140
|
-
var i = this, o =
|
|
14140
|
+
var i = this, o = pb(t) ? t : new fr(t, n, r);
|
|
14141
14141
|
return ob(function() {
|
|
14142
14142
|
var a = i, s = a.operator, l = a.source;
|
|
14143
14143
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -14196,15 +14196,15 @@ function ko(e) {
|
|
|
14196
14196
|
function fb(e) {
|
|
14197
14197
|
return e && le(e.next) && le(e.error) && le(e.complete);
|
|
14198
14198
|
}
|
|
14199
|
-
function
|
|
14199
|
+
function pb(e) {
|
|
14200
14200
|
return e && e instanceof Kr || fb(e) && vs(e);
|
|
14201
14201
|
}
|
|
14202
|
-
function
|
|
14202
|
+
function db(e) {
|
|
14203
14203
|
return le(e?.lift);
|
|
14204
14204
|
}
|
|
14205
14205
|
function Sn(e) {
|
|
14206
14206
|
return function(t) {
|
|
14207
|
-
if (
|
|
14207
|
+
if (db(t))
|
|
14208
14208
|
return t.lift(function(n) {
|
|
14209
14209
|
try {
|
|
14210
14210
|
return e(n, this);
|
|
@@ -14670,7 +14670,7 @@ function Pb(e = zs) {
|
|
|
14670
14670
|
return i > e ? !1 : i;
|
|
14671
14671
|
};
|
|
14672
14672
|
}
|
|
14673
|
-
const
|
|
14673
|
+
const pr = tg, Zr = URL, qs = URLSearchParams, Fs = (e) => Object.keys(e).map((t) => t.toLowerCase()).sort().join(";"), Mb = "X-Amz-Date", zb = "X-Amz-Security-Token", qb = "authorization", Fb = "host", Bb = Mb.toLowerCase(), Ub = zb.toLowerCase(), Bs = "aws4_request", Us = "AWS4-HMAC-SHA256", jb = "AWS4", Hb = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", Vb = "UNSIGNED-PAYLOAD", $b = (e, t, n) => `${e}/${t}/${n}/${Bs}`, Wb = (e) => {
|
|
14674
14674
|
const t = e.toISOString().replace(/[:-]|\.\d{3}/g, "");
|
|
14675
14675
|
return {
|
|
14676
14676
|
longDate: t,
|
|
@@ -14692,14 +14692,14 @@ const dr = tg, Zr = URL, qs = URLSearchParams, Fs = (e) => Object.keys(e).map((t
|
|
|
14692
14692
|
}, _t = (e, t) => {
|
|
14693
14693
|
const n = new Cg(e ?? void 0);
|
|
14694
14694
|
return n.update(t), n.digestSync();
|
|
14695
|
-
},
|
|
14695
|
+
}, dr = (e, t) => {
|
|
14696
14696
|
const n = _t(e, t);
|
|
14697
14697
|
return Ag(n);
|
|
14698
14698
|
}, Kb = (e) => Object.entries(e).map(([t, n]) => ({
|
|
14699
14699
|
key: t.toLowerCase(),
|
|
14700
14700
|
value: n?.trim().replace(/\s+/g, " ") ?? ""
|
|
14701
14701
|
})).sort((t, n) => t.key < n.key ? -1 : 1).map((t) => `${t.key}:${t.value}
|
|
14702
|
-
`).join(""), Yb = (e) => Array.from(e).sort(([t, n], [r, i]) => t === r ? n < i ? -1 : 1 : t < r ? -1 : 1).map(([t, n]) => `${Co(t)}=${Co(n)}`).join("&"), Co = (e) => encodeURIComponent(e).replace(/[!'()*]/g, Jb), Jb = (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`, Qb = (e, t = !0) => e ? t ? encodeURIComponent(e).replace(/%2F/g, "/") : e : "/", Xb = (e) => e == null ? Hb : Zb(e) ?
|
|
14702
|
+
`).join(""), Yb = (e) => Array.from(e).sort(([t, n], [r, i]) => t === r ? n < i ? -1 : 1 : t < r ? -1 : 1).map(([t, n]) => `${Co(t)}=${Co(n)}`).join("&"), Co = (e) => encodeURIComponent(e).replace(/[!'()*]/g, Jb), Jb = (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`, Qb = (e, t = !0) => e ? t ? encodeURIComponent(e).replace(/%2F/g, "/") : e : "/", Xb = (e) => e == null ? Hb : Zb(e) ? dr(null, e) : Vb, Zb = (e) => typeof e == "string" || ArrayBuffer.isView(e) || ey(e), ey = (e) => typeof ArrayBuffer == "function" && e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", ty = ({ body: e, headers: t, method: n, url: r }, i = !0) => [
|
|
14703
14703
|
n,
|
|
14704
14704
|
Qb(r.pathname, i),
|
|
14705
14705
|
Yb(r.searchParams),
|
|
@@ -14712,13 +14712,13 @@ const dr = tg, Zr = URL, qs = URLSearchParams, Fs = (e) => Object.keys(e).map((t
|
|
|
14712
14712
|
return _t(s, Bs);
|
|
14713
14713
|
}, ry = (e, t, n) => [Us, e, t, n].join(`
|
|
14714
14714
|
`), iy = (e, { credentialScope: t, longDate: n, secretAccessKey: r, shortDate: i, signingRegion: o, signingService: a, uriEscapePath: s }) => {
|
|
14715
|
-
const l = ty(e, s), c =
|
|
14716
|
-
return
|
|
14715
|
+
const l = ty(e, s), c = dr(null, l), u = ry(n, t, c);
|
|
14716
|
+
return dr(ny(r, i, o, a), u);
|
|
14717
14717
|
}, oy = (e, t) => {
|
|
14718
14718
|
const n = Gb(t), { accessKeyId: r, credentialScope: i, longDate: o, sessionToken: a } = n, s = { ...e.headers };
|
|
14719
14719
|
s[Fb] = e.url.host, s[Bb] = o, a && (s[Ub] = a);
|
|
14720
|
-
const l = { ...e, headers: s }, c = iy(l, n), u = `Credential=${r}/${i}`, f = `SignedHeaders=${Fs(s)}`,
|
|
14721
|
-
return s[qb] = `${Us} ${u}, ${f}, ${
|
|
14720
|
+
const l = { ...e, headers: s }, c = iy(l, n), u = `Credential=${r}/${i}`, f = `SignedHeaders=${Fs(s)}`, d = `Signature=${c}`;
|
|
14721
|
+
return s[qb] = `${Us} ${u}, ${f}, ${d}`, l;
|
|
14722
14722
|
};
|
|
14723
14723
|
function rn(e) {
|
|
14724
14724
|
"@babel/helpers - typeof";
|
|
@@ -14747,11 +14747,11 @@ function js(e, t) {
|
|
|
14747
14747
|
var n = e.locationOffset.column - 1, r = on(n) + e.body, i = t.line - 1, o = e.locationOffset.line - 1, a = t.line + o, s = t.line === 1 ? n : 0, l = t.column + s, c = "".concat(e.name, ":").concat(a, ":").concat(l, `
|
|
14748
14748
|
`), u = r.split(/\r\n|[\n\r]/g), f = u[i];
|
|
14749
14749
|
if (f.length > 120) {
|
|
14750
|
-
for (var
|
|
14750
|
+
for (var d = Math.floor(l / 80), p = l % 80, h = [], b = 0; b < f.length; b += 80)
|
|
14751
14751
|
h.push(f.slice(b, b + 80));
|
|
14752
|
-
return c + _o([["".concat(a), h[0]]].concat(h.slice(1,
|
|
14752
|
+
return c + _o([["".concat(a), h[0]]].concat(h.slice(1, d + 1).map(function(k) {
|
|
14753
14753
|
return ["", k];
|
|
14754
|
-
}), [[" ", on(
|
|
14754
|
+
}), [[" ", on(p - 1) + "^"], ["", h[d + 1]]]));
|
|
14755
14755
|
}
|
|
14756
14756
|
return c + _o([
|
|
14757
14757
|
// Lines specified like this: ["prefix", "string"],
|
|
@@ -14814,18 +14814,18 @@ function uy(e) {
|
|
|
14814
14814
|
function fy(e, t, n) {
|
|
14815
14815
|
return t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
14816
14816
|
}
|
|
14817
|
-
function
|
|
14817
|
+
function py(e, t) {
|
|
14818
14818
|
if (!(e instanceof t))
|
|
14819
14819
|
throw new TypeError("Cannot call a class as a function");
|
|
14820
14820
|
}
|
|
14821
|
-
function
|
|
14821
|
+
function dy(e, t) {
|
|
14822
14822
|
for (var n = 0; n < t.length; n++) {
|
|
14823
14823
|
var r = t[n];
|
|
14824
14824
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
|
|
14825
14825
|
}
|
|
14826
14826
|
}
|
|
14827
14827
|
function hy(e, t, n) {
|
|
14828
|
-
return t &&
|
|
14828
|
+
return t && dy(e.prototype, t), e;
|
|
14829
14829
|
}
|
|
14830
14830
|
function my(e, t) {
|
|
14831
14831
|
if (typeof t != "function" && t !== null)
|
|
@@ -14903,32 +14903,32 @@ var $n = /* @__PURE__ */ function(e) {
|
|
|
14903
14903
|
my(n, e);
|
|
14904
14904
|
var t = gy(n);
|
|
14905
14905
|
function n(r, i, o, a, s, l, c) {
|
|
14906
|
-
var u, f,
|
|
14907
|
-
|
|
14908
|
-
for (var h = [], b = 0, k = (y =
|
|
14906
|
+
var u, f, d, p;
|
|
14907
|
+
py(this, n), p = t.call(this, r), p.name = "GraphQLError", p.originalError = l ?? void 0, p.nodes = Io(Array.isArray(i) ? i : i ? [i] : void 0);
|
|
14908
|
+
for (var h = [], b = 0, k = (y = p.nodes) !== null && y !== void 0 ? y : []; b < k.length; b++) {
|
|
14909
14909
|
var y, S = k[b], E = S.loc;
|
|
14910
14910
|
E != null && h.push(E);
|
|
14911
14911
|
}
|
|
14912
|
-
h = Io(h),
|
|
14912
|
+
h = Io(h), p.source = o ?? ((u = h) === null || u === void 0 ? void 0 : u[0].source), p.positions = a ?? ((f = h) === null || f === void 0 ? void 0 : f.map(function(L) {
|
|
14913
14913
|
return L.start;
|
|
14914
|
-
})),
|
|
14914
|
+
})), p.locations = a && o ? a.map(function(L) {
|
|
14915
14915
|
return hr(o, L);
|
|
14916
|
-
}) : (
|
|
14916
|
+
}) : (d = h) === null || d === void 0 ? void 0 : d.map(function(L) {
|
|
14917
14917
|
return hr(L.source, L.start);
|
|
14918
|
-
}),
|
|
14918
|
+
}), p.path = s ?? void 0;
|
|
14919
14919
|
var P = l?.extensions;
|
|
14920
|
-
return c == null && ay(P) ?
|
|
14920
|
+
return c == null && ay(P) ? p.extensions = uy({}, P) : p.extensions = c ?? {}, Object.defineProperties(At(p), {
|
|
14921
14921
|
message: {
|
|
14922
14922
|
enumerable: !0
|
|
14923
14923
|
},
|
|
14924
14924
|
locations: {
|
|
14925
|
-
enumerable:
|
|
14925
|
+
enumerable: p.locations != null
|
|
14926
14926
|
},
|
|
14927
14927
|
path: {
|
|
14928
|
-
enumerable:
|
|
14928
|
+
enumerable: p.path != null
|
|
14929
14929
|
},
|
|
14930
14930
|
extensions: {
|
|
14931
|
-
enumerable:
|
|
14931
|
+
enumerable: p.extensions != null && Object.keys(p.extensions).length > 0
|
|
14932
14932
|
},
|
|
14933
14933
|
name: {
|
|
14934
14934
|
enumerable: !1
|
|
@@ -14945,15 +14945,15 @@ var $n = /* @__PURE__ */ function(e) {
|
|
|
14945
14945
|
originalError: {
|
|
14946
14946
|
enumerable: !1
|
|
14947
14947
|
}
|
|
14948
|
-
}), l != null && l.stack ? (Object.defineProperty(At(
|
|
14948
|
+
}), l != null && l.stack ? (Object.defineProperty(At(p), "stack", {
|
|
14949
14949
|
value: l.stack,
|
|
14950
14950
|
writable: !0,
|
|
14951
14951
|
configurable: !0
|
|
14952
|
-
}), Hs(
|
|
14952
|
+
}), Hs(p)) : (Error.captureStackTrace ? Error.captureStackTrace(At(p), n) : Object.defineProperty(At(p), "stack", {
|
|
14953
14953
|
value: Error().stack,
|
|
14954
14954
|
writable: !0,
|
|
14955
14955
|
configurable: !0
|
|
14956
|
-
}),
|
|
14956
|
+
}), p);
|
|
14957
14957
|
}
|
|
14958
14958
|
return hy(n, [{
|
|
14959
14959
|
key: "toString",
|
|
@@ -15026,10 +15026,10 @@ var je;
|
|
|
15026
15026
|
(function(e) {
|
|
15027
15027
|
e[e.PENDING = 0] = "PENDING", e[e.CONNECTED = 1] = "CONNECTED", e[e.FAILED = 2] = "FAILED";
|
|
15028
15028
|
})(je || (je = {}));
|
|
15029
|
-
var
|
|
15029
|
+
var de;
|
|
15030
15030
|
(function(e) {
|
|
15031
15031
|
e[e.CLOSED = 0] = "CLOSED", e[e.READY = 1] = "READY", e[e.CONNECTING = 2] = "CONNECTING";
|
|
15032
|
-
})(
|
|
15032
|
+
})(de || (de = {}));
|
|
15033
15033
|
const _y = {
|
|
15034
15034
|
accept: "application/json, text/javascript",
|
|
15035
15035
|
"content-encoding": "amz-1.0",
|
|
@@ -15117,10 +15117,10 @@ class Oy {
|
|
|
15117
15117
|
return t === "connected" && n === "disconnected" ? oe.ConnectedPendingNetwork : t === "connected" && r === "disconnected" ? oe.ConnectedPendingDisconnect : t === "disconnected" && r === "connected" && n === "disconnected" ? oe.ConnectionDisruptedPendingNetwork : t === "disconnected" && r === "connected" ? oe.ConnectionDisrupted : t === "connected" && i === "unhealthy" ? oe.ConnectedPendingKeepAlive : t === "connecting" ? oe.Connecting : t === "disconnected" ? oe.Disconnected : oe.Connected;
|
|
15118
15118
|
}
|
|
15119
15119
|
}
|
|
15120
|
-
var
|
|
15120
|
+
var dt;
|
|
15121
15121
|
(function(e) {
|
|
15122
15122
|
e.START_RECONNECT = "START_RECONNECT", e.HALT_RECONNECT = "HALT_RECONNECT";
|
|
15123
|
-
})(
|
|
15123
|
+
})(dt || (dt = {}));
|
|
15124
15124
|
class Dy {
|
|
15125
15125
|
constructor() {
|
|
15126
15126
|
this.reconnectObservers = [];
|
|
@@ -15135,11 +15135,11 @@ class Dy {
|
|
|
15135
15135
|
* Given a reconnect event, start the appropriate behavior
|
|
15136
15136
|
*/
|
|
15137
15137
|
record(t) {
|
|
15138
|
-
t ===
|
|
15138
|
+
t === dt.START_RECONNECT && this.reconnectSetTimeoutId === void 0 && this.reconnectIntervalId === void 0 && (this.reconnectSetTimeoutId = setTimeout(() => {
|
|
15139
15139
|
this._triggerReconnect(), this.reconnectIntervalId = setInterval(() => {
|
|
15140
15140
|
this._triggerReconnect();
|
|
15141
15141
|
}, Ly);
|
|
15142
|
-
}, Ry)), t ===
|
|
15142
|
+
}, Ry)), t === dt.HALT_RECONNECT && (this.reconnectIntervalId && (clearInterval(this.reconnectIntervalId), this.reconnectIntervalId = void 0), this.reconnectSetTimeoutId && (clearTimeout(this.reconnectSetTimeoutId), this.reconnectSetTimeoutId = void 0));
|
|
15143
15143
|
}
|
|
15144
15144
|
/**
|
|
15145
15145
|
* Complete all reconnect observers
|
|
@@ -15256,7 +15256,7 @@ const Ro = "wss://", Py = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
|
|
|
15256
15256
|
};
|
|
15257
15257
|
class $y {
|
|
15258
15258
|
constructor(t) {
|
|
15259
|
-
this.subscriptionObserverMap = /* @__PURE__ */ new Map(), this.allowNoSubscriptions = !1, this.socketStatus =
|
|
15259
|
+
this.subscriptionObserverMap = /* @__PURE__ */ new Map(), this.allowNoSubscriptions = !1, this.socketStatus = de.CLOSED, this.keepAliveTimestamp = Date.now(), this.promiseArray = [], this.connectionStateMonitor = new Oy(), this.reconnectionMonitor = new Dy(), this._establishConnection = async (n, r) => {
|
|
15260
15260
|
this.logger.debug(`Establishing WebSocket connection to ${n}`);
|
|
15261
15261
|
try {
|
|
15262
15262
|
await this._openConnection(n, r), await this._initiateHandshake();
|
|
@@ -15272,7 +15272,7 @@ class $y {
|
|
|
15272
15272
|
* Mark the socket closed and release all active listeners
|
|
15273
15273
|
*/
|
|
15274
15274
|
close() {
|
|
15275
|
-
return this.socketStatus =
|
|
15275
|
+
return this.socketStatus = de.CLOSED, this.connectionStateMonitor.record(_e.CONNECTION_FAILED), this.connectionStateMonitorSubscription.unsubscribe(), this.reconnectionMonitor.close(), new Promise((t, n) => {
|
|
15276
15276
|
this.awsRealTimeSocket ? (this.awsRealTimeSocket.onclose = (r) => {
|
|
15277
15277
|
this._closeSocket(), this.subscriptionObserverMap = /* @__PURE__ */ new Map(), this.awsRealTimeSocket = void 0, t();
|
|
15278
15278
|
}, this.awsRealTimeSocket.onerror = (r) => {
|
|
@@ -15293,7 +15293,7 @@ class $y {
|
|
|
15293
15293
|
return;
|
|
15294
15294
|
}
|
|
15295
15295
|
let i = !1;
|
|
15296
|
-
const o =
|
|
15296
|
+
const o = pr(), a = () => {
|
|
15297
15297
|
i || (i = !0, this._startSubscriptionWithAWSAppSyncRealTime({
|
|
15298
15298
|
options: t,
|
|
15299
15299
|
observer: r,
|
|
@@ -15315,10 +15315,10 @@ class $y {
|
|
|
15315
15315
|
});
|
|
15316
15316
|
}
|
|
15317
15317
|
async connect(t) {
|
|
15318
|
-
this.socketStatus !==
|
|
15318
|
+
this.socketStatus !== de.READY && await this._connectWebSocket(t);
|
|
15319
15319
|
}
|
|
15320
15320
|
async publish(t, n) {
|
|
15321
|
-
if (this.socketStatus !==
|
|
15321
|
+
if (this.socketStatus !== de.READY)
|
|
15322
15322
|
throw new Error("Subscription has not been initialized");
|
|
15323
15323
|
return this._publishMessage(t, n);
|
|
15324
15324
|
}
|
|
@@ -15333,7 +15333,7 @@ class $y {
|
|
|
15333
15333
|
});
|
|
15334
15334
|
}
|
|
15335
15335
|
async _publishMessage(t, n) {
|
|
15336
|
-
const r =
|
|
15336
|
+
const r = pr(), { additionalCustomHeaders: i, libraryConfigHeaders: o } = await Wn(t), a = await this._prepareSubscriptionPayload({
|
|
15337
15337
|
options: t,
|
|
15338
15338
|
subscriptionId: r,
|
|
15339
15339
|
customUserAgentDetails: n,
|
|
@@ -15343,17 +15343,17 @@ class $y {
|
|
|
15343
15343
|
});
|
|
15344
15344
|
return new Promise((s, l) => {
|
|
15345
15345
|
if (this.awsRealTimeSocket) {
|
|
15346
|
-
const c = (
|
|
15347
|
-
const h = JSON.parse(
|
|
15348
|
-
if (h.id === r && h.type === "publish_success" && (this.awsRealTimeSocket && this.awsRealTimeSocket.removeEventListener("message", c),
|
|
15346
|
+
const c = (p) => {
|
|
15347
|
+
const h = JSON.parse(p.data);
|
|
15348
|
+
if (h.id === r && h.type === "publish_success" && (this.awsRealTimeSocket && this.awsRealTimeSocket.removeEventListener("message", c), d(), s()), h.errors && h.errors.length > 0) {
|
|
15349
15349
|
const b = h.errors.map((k) => k.errorType);
|
|
15350
|
-
|
|
15350
|
+
d(), l(new Error(`Publish errors: ${b.join(", ")}`));
|
|
15351
15351
|
}
|
|
15352
|
-
}, u = (
|
|
15353
|
-
|
|
15352
|
+
}, u = (p) => {
|
|
15353
|
+
d(), l(new Error(`WebSocket error: ${p}`));
|
|
15354
15354
|
}, f = () => {
|
|
15355
|
-
|
|
15356
|
-
},
|
|
15355
|
+
d(), l(new Error("WebSocket is closed"));
|
|
15356
|
+
}, d = () => {
|
|
15357
15357
|
this.awsRealTimeSocket?.removeEventListener("message", c), this.awsRealTimeSocket?.removeEventListener("error", u), this.awsRealTimeSocket?.removeEventListener("close", f);
|
|
15358
15358
|
};
|
|
15359
15359
|
this.awsRealTimeSocket.addEventListener("message", c), this.awsRealTimeSocket.addEventListener("error", u), this.awsRealTimeSocket.addEventListener("close", f), this.awsRealTimeSocket.send(a);
|
|
@@ -15388,14 +15388,14 @@ class $y {
|
|
|
15388
15388
|
connectionState: t
|
|
15389
15389
|
},
|
|
15390
15390
|
message: `Connection state is ${t}`
|
|
15391
|
-
}), this.connectionState = t, t === oe.ConnectionDisrupted && this.reconnectionMonitor.record(
|
|
15391
|
+
}), this.connectionState = t, t === oe.ConnectionDisrupted && this.reconnectionMonitor.record(dt.START_RECONNECT), [
|
|
15392
15392
|
oe.Connected,
|
|
15393
15393
|
oe.ConnectedPendingDisconnect,
|
|
15394
15394
|
oe.ConnectedPendingKeepAlive,
|
|
15395
15395
|
oe.ConnectedPendingNetwork,
|
|
15396
15396
|
oe.ConnectionDisruptedPendingNetwork,
|
|
15397
15397
|
oe.Disconnected
|
|
15398
|
-
].includes(t) && this.reconnectionMonitor.record(
|
|
15398
|
+
].includes(t) && this.reconnectionMonitor.record(dt.HALT_RECONNECT);
|
|
15399
15399
|
});
|
|
15400
15400
|
}
|
|
15401
15401
|
async _startSubscriptionWithAWSAppSyncRealTime({ options: t, observer: n, subscriptionId: r, customUserAgentDetails: i }) {
|
|
@@ -15416,8 +15416,8 @@ class $y {
|
|
|
15416
15416
|
});
|
|
15417
15417
|
try {
|
|
15418
15418
|
await this._connectWebSocket(t);
|
|
15419
|
-
} catch (
|
|
15420
|
-
this._logStartSubscriptionError(r, n,
|
|
15419
|
+
} catch (d) {
|
|
15420
|
+
this._logStartSubscriptionError(r, n, d);
|
|
15421
15421
|
return;
|
|
15422
15422
|
}
|
|
15423
15423
|
const { subscriptionFailedCallback: u, subscriptionReadyCallback: f } = this.subscriptionObserverMap.get(r) ?? {};
|
|
@@ -15438,7 +15438,7 @@ class $y {
|
|
|
15438
15438
|
this.logger.debug({ err: r });
|
|
15439
15439
|
const i = String(r.message ?? "");
|
|
15440
15440
|
if (this._closeSocket(), this.connectionState !== oe.ConnectionDisruptedPendingNetwork) {
|
|
15441
|
-
|
|
15441
|
+
ds(r) ? n.error({
|
|
15442
15442
|
errors: [
|
|
15443
15443
|
{
|
|
15444
15444
|
...new $n(`${Oe.CONNECTION_FAILED}: ${i}`)
|
|
@@ -15470,7 +15470,7 @@ class $y {
|
|
|
15470
15470
|
}
|
|
15471
15471
|
_sendUnsubscriptionMessage(t) {
|
|
15472
15472
|
try {
|
|
15473
|
-
if (this.awsRealTimeSocket && this.awsRealTimeSocket.readyState === WebSocket.OPEN && this.socketStatus ===
|
|
15473
|
+
if (this.awsRealTimeSocket && this.awsRealTimeSocket.readyState === WebSocket.OPEN && this.socketStatus === de.READY) {
|
|
15474
15474
|
const n = this._unsubscribeMessage(t), r = JSON.stringify(n);
|
|
15475
15475
|
this.awsRealTimeSocket.send(r);
|
|
15476
15476
|
}
|
|
@@ -15484,7 +15484,7 @@ class $y {
|
|
|
15484
15484
|
_closeSocketIfRequired() {
|
|
15485
15485
|
if (!(this.subscriptionObserverMap.size > 0)) {
|
|
15486
15486
|
if (!this.awsRealTimeSocket) {
|
|
15487
|
-
this.socketStatus =
|
|
15487
|
+
this.socketStatus = de.CLOSED;
|
|
15488
15488
|
return;
|
|
15489
15489
|
}
|
|
15490
15490
|
if (this.connectionStateMonitor.record(_e.CLOSING_CONNECTION), this.awsRealTimeSocket.bufferedAmount > 0)
|
|
@@ -15492,7 +15492,7 @@ class $y {
|
|
|
15492
15492
|
else {
|
|
15493
15493
|
this.logger.debug("closing WebSocket...");
|
|
15494
15494
|
const t = this.awsRealTimeSocket;
|
|
15495
|
-
t.onclose = null, t.onerror = null, t.close(1e3), this.awsRealTimeSocket = void 0, this.socketStatus =
|
|
15495
|
+
t.onclose = null, t.onerror = null, t.close(1e3), this.awsRealTimeSocket = void 0, this.socketStatus = de.CLOSED, this._closeSocket();
|
|
15496
15496
|
}
|
|
15497
15497
|
}
|
|
15498
15498
|
}
|
|
@@ -15511,22 +15511,22 @@ class $y {
|
|
|
15511
15511
|
this.maintainKeepAlive();
|
|
15512
15512
|
return;
|
|
15513
15513
|
}
|
|
15514
|
-
const { type: i, id: o, payload: a } = r, { observer: s = null, query: l = "", variables: c = {}, startAckTimeoutId: u, subscriptionReadyCallback: f, subscriptionFailedCallback:
|
|
15514
|
+
const { type: i, id: o, payload: a } = r, { observer: s = null, query: l = "", variables: c = {}, startAckTimeoutId: u, subscriptionReadyCallback: f, subscriptionFailedCallback: d } = this.subscriptionObserverMap.get(o) || {};
|
|
15515
15515
|
if (i === ve.GQL_START_ACK || i === ve.EVENT_SUBSCRIBE_ACK) {
|
|
15516
15516
|
this.logger.debug(`subscription ready for ${JSON.stringify({ query: l, variables: c })}`), typeof f == "function" && f(), u && clearTimeout(u), Mo({
|
|
15517
15517
|
event: Oe.SUBSCRIPTION_ACK,
|
|
15518
15518
|
data: { query: l, variables: c },
|
|
15519
15519
|
message: "Connection established for subscription"
|
|
15520
15520
|
});
|
|
15521
|
-
const
|
|
15521
|
+
const p = je.CONNECTED;
|
|
15522
15522
|
s && this.subscriptionObserverMap.set(o, {
|
|
15523
15523
|
observer: s,
|
|
15524
15524
|
query: l,
|
|
15525
15525
|
variables: c,
|
|
15526
15526
|
startAckTimeoutId: void 0,
|
|
15527
|
-
subscriptionState:
|
|
15527
|
+
subscriptionState: p,
|
|
15528
15528
|
subscriptionReadyCallback: f,
|
|
15529
|
-
subscriptionFailedCallback:
|
|
15529
|
+
subscriptionFailedCallback: d
|
|
15530
15530
|
}), this.connectionStateMonitor.record(_e.CONNECTION_ESTABLISHED);
|
|
15531
15531
|
return;
|
|
15532
15532
|
}
|
|
@@ -15535,26 +15535,26 @@ class $y {
|
|
|
15535
15535
|
return;
|
|
15536
15536
|
}
|
|
15537
15537
|
if (i === ve.GQL_ERROR) {
|
|
15538
|
-
const
|
|
15538
|
+
const p = je.FAILED;
|
|
15539
15539
|
s && (this.subscriptionObserverMap.set(o, {
|
|
15540
15540
|
observer: s,
|
|
15541
15541
|
query: l,
|
|
15542
15542
|
variables: c,
|
|
15543
15543
|
startAckTimeoutId: u,
|
|
15544
15544
|
subscriptionReadyCallback: f,
|
|
15545
|
-
subscriptionFailedCallback:
|
|
15546
|
-
subscriptionState:
|
|
15545
|
+
subscriptionFailedCallback: d,
|
|
15546
|
+
subscriptionState: p
|
|
15547
15547
|
}), this.logger.debug(`${Oe.CONNECTION_FAILED}: ${JSON.stringify(a ?? r)}`), s.error({
|
|
15548
15548
|
errors: [
|
|
15549
15549
|
{
|
|
15550
15550
|
...new $n(`${Oe.CONNECTION_FAILED}: ${JSON.stringify(a ?? r)}`)
|
|
15551
15551
|
}
|
|
15552
15552
|
]
|
|
15553
|
-
}), u && clearTimeout(u), typeof
|
|
15553
|
+
}), u && clearTimeout(u), typeof d == "function" && d());
|
|
15554
15554
|
}
|
|
15555
15555
|
}
|
|
15556
15556
|
_errorDisconnect(t) {
|
|
15557
|
-
this.logger.debug(`Disconnect error: ${t}`), this.awsRealTimeSocket && (this._closeSocket(), this.awsRealTimeSocket.close()), this.socketStatus =
|
|
15557
|
+
this.logger.debug(`Disconnect error: ${t}`), this.awsRealTimeSocket && (this._closeSocket(), this.awsRealTimeSocket.close()), this.socketStatus = de.CLOSED;
|
|
15558
15558
|
}
|
|
15559
15559
|
_closeSocket() {
|
|
15560
15560
|
this.keepAliveHeartbeatIntervalId && (clearInterval(this.keepAliveHeartbeatIntervalId), this.keepAliveHeartbeatIntervalId = void 0), this.connectionStateMonitor.record(_e.CLOSED);
|
|
@@ -15574,11 +15574,11 @@ class $y {
|
|
|
15574
15574
|
}
|
|
15575
15575
|
}
|
|
15576
15576
|
_initializeWebSocketConnection({ appSyncGraphqlEndpoint: t, authenticationType: n, apiKey: r, region: i, additionalCustomHeaders: o }) {
|
|
15577
|
-
if (this.socketStatus !==
|
|
15577
|
+
if (this.socketStatus !== de.READY)
|
|
15578
15578
|
return new Promise(async (a, s) => {
|
|
15579
|
-
if (this.promiseArray.push({ res: a, rej: s }), this.socketStatus ===
|
|
15579
|
+
if (this.promiseArray.push({ res: a, rej: s }), this.socketStatus === de.CLOSED)
|
|
15580
15580
|
try {
|
|
15581
|
-
this.socketStatus =
|
|
15581
|
+
this.socketStatus = de.CONNECTING;
|
|
15582
15582
|
const c = await Ws({
|
|
15583
15583
|
authenticationType: n,
|
|
15584
15584
|
payload: "{}",
|
|
@@ -15587,17 +15587,17 @@ class $y {
|
|
|
15587
15587
|
appSyncGraphqlEndpoint: t,
|
|
15588
15588
|
region: i,
|
|
15589
15589
|
additionalCustomHeaders: o
|
|
15590
|
-
}), u = c ? JSON.stringify(c) : "",
|
|
15590
|
+
}), u = c ? JSON.stringify(c) : "", d = `header-${ky.convert(u, {
|
|
15591
15591
|
urlSafe: !0,
|
|
15592
15592
|
skipPadding: !0
|
|
15593
|
-
})}`,
|
|
15594
|
-
await this._establishRetryableConnection(h,
|
|
15593
|
+
})}`, p = Uy(o), h = jy(t, p);
|
|
15594
|
+
await this._establishRetryableConnection(h, d), this.promiseArray.forEach(({ res: b }) => {
|
|
15595
15595
|
this.logger.debug("Notifying connection successful"), b();
|
|
15596
|
-
}), this.socketStatus =
|
|
15596
|
+
}), this.socketStatus = de.READY, this.promiseArray = [];
|
|
15597
15597
|
} catch (l) {
|
|
15598
15598
|
this.logger.debug("Connection exited with", l), this.promiseArray.forEach(({ rej: c }) => {
|
|
15599
15599
|
c(l);
|
|
15600
|
-
}), this.promiseArray = [], this.awsRealTimeSocket && this.awsRealTimeSocket.readyState === WebSocket.OPEN && this.awsRealTimeSocket.close(3001), this.awsRealTimeSocket = void 0, this.socketStatus =
|
|
15600
|
+
}), this.promiseArray = [], this.awsRealTimeSocket && this.awsRealTimeSocket.readyState === WebSocket.OPEN && this.awsRealTimeSocket.close(3001), this.awsRealTimeSocket = void 0, this.socketStatus = de.CLOSED;
|
|
15601
15601
|
}
|
|
15602
15602
|
});
|
|
15603
15603
|
}
|
|
@@ -15717,10 +15717,10 @@ class Yy extends $y {
|
|
|
15717
15717
|
this._closeSocketIfRequired();
|
|
15718
15718
|
}
|
|
15719
15719
|
async _prepareSubscriptionPayload({ options: t, subscriptionId: n, customUserAgentDetails: r, additionalCustomHeaders: i, libraryConfigHeaders: o, publish: a }) {
|
|
15720
|
-
const { appSyncGraphqlEndpoint: s, authenticationType: l, query: c, apiKey: u, region: f, variables:
|
|
15720
|
+
const { appSyncGraphqlEndpoint: s, authenticationType: l, query: c, apiKey: u, region: f, variables: d } = t, p = {
|
|
15721
15721
|
channel: c,
|
|
15722
|
-
events:
|
|
15723
|
-
}, h = JSON.stringify(
|
|
15722
|
+
events: d !== void 0 ? Gn(d) : void 0
|
|
15723
|
+
}, h = JSON.stringify(p), b = {
|
|
15724
15724
|
...await Ws({
|
|
15725
15725
|
apiKey: u,
|
|
15726
15726
|
appSyncGraphqlEndpoint: s,
|
|
@@ -15736,12 +15736,12 @@ class Yy extends $y {
|
|
|
15736
15736
|
}, k = {
|
|
15737
15737
|
id: n,
|
|
15738
15738
|
channel: c,
|
|
15739
|
-
events:
|
|
15739
|
+
events: d !== void 0 ? Gn(d) : void 0,
|
|
15740
15740
|
authorization: {
|
|
15741
15741
|
...b
|
|
15742
15742
|
},
|
|
15743
15743
|
payload: {
|
|
15744
|
-
events:
|
|
15744
|
+
events: d !== void 0 ? Gn(d) : void 0,
|
|
15745
15745
|
channel: c,
|
|
15746
15746
|
extensions: {
|
|
15747
15747
|
authorization: {
|
|
@@ -15781,7 +15781,7 @@ const Xt = new Yy(), Ct = /* @__PURE__ */ new Set();
|
|
|
15781
15781
|
async function Jy(e, t) {
|
|
15782
15782
|
const n = Wy();
|
|
15783
15783
|
n.authenticationType = ln(t?.authMode, n.authenticationType), n.apiKey = n.apiKey, n.authToken = n.authToken, await Xt.connect(n);
|
|
15784
|
-
const r =
|
|
15784
|
+
const r = pr();
|
|
15785
15785
|
Ct.add(r);
|
|
15786
15786
|
let i;
|
|
15787
15787
|
return {
|
|
@@ -15855,7 +15855,7 @@ function iw({
|
|
|
15855
15855
|
Pl(c, f, u)
|
|
15856
15856
|
), o(!0));
|
|
15857
15857
|
}, [c, f, u]);
|
|
15858
|
-
const
|
|
15858
|
+
const d = async (S) => {
|
|
15859
15859
|
if (!i || !S)
|
|
15860
15860
|
throw new Error(
|
|
15861
15861
|
"Cannot connect: Amplify not ready or missing conversationId"
|
|
@@ -15877,7 +15877,7 @@ function iw({
|
|
|
15877
15877
|
const M = v.data, A = M.data.type;
|
|
15878
15878
|
switch (A) {
|
|
15879
15879
|
case "utterance":
|
|
15880
|
-
return
|
|
15880
|
+
return p(
|
|
15881
15881
|
M,
|
|
15882
15882
|
S
|
|
15883
15883
|
);
|
|
@@ -15895,7 +15895,7 @@ function iw({
|
|
|
15895
15895
|
console.error("Error in conversation channel:", L);
|
|
15896
15896
|
}
|
|
15897
15897
|
}), await y();
|
|
15898
|
-
},
|
|
15898
|
+
}, p = (S, E) => {
|
|
15899
15899
|
const P = {
|
|
15900
15900
|
message_id: S.message_id,
|
|
15901
15901
|
response: {
|
|
@@ -15930,7 +15930,7 @@ function iw({
|
|
|
15930
15930
|
const { payload: E } = S;
|
|
15931
15931
|
E.event === $s && (E.data?.connectionState === "Connected" ? a.current = !0 : a.current = !1);
|
|
15932
15932
|
}
|
|
15933
|
-
), { connect:
|
|
15933
|
+
), { connect: d, disconnect: k };
|
|
15934
15934
|
}
|
|
15935
15935
|
function ow({
|
|
15936
15936
|
appId: e,
|
|
@@ -15946,7 +15946,7 @@ function ow({
|
|
|
15946
15946
|
setCurrentConversation: u,
|
|
15947
15947
|
chatOpen: f
|
|
15948
15948
|
}) {
|
|
15949
|
-
const { saveConversationData:
|
|
15949
|
+
const { saveConversationData: d, clearConversationData: p, updateLastActivity: h } = Ur({ appId: e }), { publishApiError: b } = vn(), { showCognition: k, hideCognition: y } = as(), S = Z(
|
|
15950
15950
|
(w, N) => {
|
|
15951
15951
|
y(), l((I) => {
|
|
15952
15952
|
const _ = I.filter(($) => !$.isThinking);
|
|
@@ -15963,7 +15963,7 @@ function ow({
|
|
|
15963
15963
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
15964
15964
|
}
|
|
15965
15965
|
];
|
|
15966
|
-
return
|
|
15966
|
+
return d(
|
|
15967
15967
|
N,
|
|
15968
15968
|
t,
|
|
15969
15969
|
z,
|
|
@@ -15971,7 +15971,7 @@ function ow({
|
|
|
15971
15971
|
), z;
|
|
15972
15972
|
});
|
|
15973
15973
|
},
|
|
15974
|
-
[i, y,
|
|
15974
|
+
[i, y, d, l, t]
|
|
15975
15975
|
), E = Z(() => {
|
|
15976
15976
|
y(), l((w) => w.filter((N) => !N.isThinking));
|
|
15977
15977
|
}, [l, y]), { connect: P, disconnect: L } = iw({
|
|
@@ -15989,11 +15989,11 @@ function ow({
|
|
|
15989
15989
|
}), A = Z(() => {
|
|
15990
15990
|
L(), M(), l(
|
|
15991
15991
|
(w) => w.filter((N) => Array.isArray(N) ? !1 : N.isWelcomeMessage)
|
|
15992
|
-
),
|
|
15992
|
+
), p(), u(null);
|
|
15993
15993
|
}, [
|
|
15994
15994
|
L,
|
|
15995
15995
|
M,
|
|
15996
|
-
|
|
15996
|
+
p,
|
|
15997
15997
|
l,
|
|
15998
15998
|
u
|
|
15999
15999
|
]), D = Z(
|
|
@@ -16029,7 +16029,7 @@ function ow({
|
|
|
16029
16029
|
} catch (_) {
|
|
16030
16030
|
throw y(), l(
|
|
16031
16031
|
(R) => R.filter((z) => !z.isThinking)
|
|
16032
|
-
), b(_), _ instanceof ar && _.status >= 500 && (u(null),
|
|
16032
|
+
), b(_), _ instanceof ar && _.status >= 500 && (u(null), p(), l((R) => R.slice(0, -1)), o.reset()), _;
|
|
16033
16033
|
}
|
|
16034
16034
|
},
|
|
16035
16035
|
[
|
|
@@ -16047,7 +16047,7 @@ function ow({
|
|
|
16047
16047
|
P,
|
|
16048
16048
|
y,
|
|
16049
16049
|
b,
|
|
16050
|
-
|
|
16050
|
+
p,
|
|
16051
16051
|
n
|
|
16052
16052
|
]
|
|
16053
16053
|
);
|
|
@@ -16125,32 +16125,32 @@ function sw(e, t, n) {
|
|
|
16125
16125
|
se(() => (f.current = !0, () => {
|
|
16126
16126
|
f.current = !1;
|
|
16127
16127
|
}));
|
|
16128
|
-
const
|
|
16128
|
+
const d = Z(async () => {
|
|
16129
16129
|
if (Zt.has(e)) {
|
|
16130
|
-
const
|
|
16131
|
-
return o(
|
|
16130
|
+
const p = Zt.get(e);
|
|
16131
|
+
return o(p), p;
|
|
16132
16132
|
}
|
|
16133
16133
|
u(!0), l(void 0);
|
|
16134
16134
|
try {
|
|
16135
16135
|
if (r && en.has(e))
|
|
16136
16136
|
return await en.get(e);
|
|
16137
|
-
const
|
|
16138
|
-
r && en.set(e,
|
|
16139
|
-
const h = await
|
|
16137
|
+
const p = t();
|
|
16138
|
+
r && en.set(e, p);
|
|
16139
|
+
const h = await p;
|
|
16140
16140
|
return Zt.set(e, h), f.current && o(h), h;
|
|
16141
|
-
} catch (
|
|
16142
|
-
throw a(
|
|
16141
|
+
} catch (p) {
|
|
16142
|
+
throw a(p), f.current && l(p), p;
|
|
16143
16143
|
} finally {
|
|
16144
16144
|
en.delete(e), f.current && u(!1);
|
|
16145
16145
|
}
|
|
16146
16146
|
}, [e, r, t, a]);
|
|
16147
|
-
return { data: i, error: s, isLoading: c, fetch:
|
|
16147
|
+
return { data: i, error: s, isLoading: c, fetch: d };
|
|
16148
16148
|
}
|
|
16149
16149
|
function lw(e) {
|
|
16150
16150
|
const { appId: t, initialUserId: n } = e, { getSavedConversationData: r } = Ur({ appId: t }), [i, o] = V(!1), [a, s] = V(""), [l, c] = V(""), [u, f] = V(null);
|
|
16151
16151
|
return ee(() => {
|
|
16152
|
-
const
|
|
16153
|
-
|
|
16152
|
+
const d = r();
|
|
16153
|
+
d?.userId ? d?.externalId !== n ? (s(d.userId), f(n)) : (s(d?.userId), f(d.externalId)) : n ? (s(n), f(n)) : s(crypto.randomUUID()), c(d?.deviceId || crypto.randomUUID()), o(!0);
|
|
16154
16154
|
}, [r, n]), {
|
|
16155
16155
|
isReady: i,
|
|
16156
16156
|
userId: a,
|
|
@@ -16177,7 +16177,7 @@ function cw({
|
|
|
16177
16177
|
baseURL: u,
|
|
16178
16178
|
appId: e
|
|
16179
16179
|
})
|
|
16180
|
-
), [
|
|
16180
|
+
), [d, p] = V(null), [h, b] = V(null), [k, y] = V([]), [S, E] = V(!1), L = sw(`sdk-boot-${e}`, () => f.boot()).fetch;
|
|
16181
16181
|
return ee(() => {
|
|
16182
16182
|
if (s())
|
|
16183
16183
|
l();
|
|
@@ -16200,7 +16200,7 @@ function cw({
|
|
|
16200
16200
|
return;
|
|
16201
16201
|
}
|
|
16202
16202
|
const D = M.chat_settings.welcome_message;
|
|
16203
|
-
|
|
16203
|
+
p(M.chat_settings), D && k.length === 0 && y([
|
|
16204
16204
|
{
|
|
16205
16205
|
id: crypto.randomUUID(),
|
|
16206
16206
|
content: D,
|
|
@@ -16216,7 +16216,7 @@ function cw({
|
|
|
16216
16216
|
externalId: i,
|
|
16217
16217
|
deviceId: o,
|
|
16218
16218
|
apiClient: f,
|
|
16219
|
-
chatSettings:
|
|
16219
|
+
chatSettings: d,
|
|
16220
16220
|
currentConversation: h,
|
|
16221
16221
|
messages: k,
|
|
16222
16222
|
isReady: S
|
|
@@ -16257,8 +16257,8 @@ function fw({
|
|
|
16257
16257
|
const { isMobile: l, portalContainer: c } = uw(o), {
|
|
16258
16258
|
userId: u,
|
|
16259
16259
|
userName: f,
|
|
16260
|
-
externalId:
|
|
16261
|
-
deviceId:
|
|
16260
|
+
externalId: d,
|
|
16261
|
+
deviceId: p,
|
|
16262
16262
|
apiClient: h,
|
|
16263
16263
|
chatSettings: b,
|
|
16264
16264
|
currentConversation: k,
|
|
@@ -16278,8 +16278,8 @@ function fw({
|
|
|
16278
16278
|
appId: t,
|
|
16279
16279
|
userId: u,
|
|
16280
16280
|
userName: f,
|
|
16281
|
-
externalId:
|
|
16282
|
-
deviceId:
|
|
16281
|
+
externalId: d,
|
|
16282
|
+
deviceId: p,
|
|
16283
16283
|
apiClient: h,
|
|
16284
16284
|
chatSettings: b,
|
|
16285
16285
|
setMessages: A,
|
|
@@ -16293,14 +16293,14 @@ function fw({
|
|
|
16293
16293
|
}, [y]), ee(() => {
|
|
16294
16294
|
k && w(k);
|
|
16295
16295
|
}, [k]), ee(() => {
|
|
16296
|
-
D &&
|
|
16296
|
+
D && d && h?.identifyUser({
|
|
16297
16297
|
userId: u,
|
|
16298
16298
|
userName: f,
|
|
16299
|
-
externalId:
|
|
16300
|
-
deviceId:
|
|
16299
|
+
externalId: d,
|
|
16300
|
+
deviceId: p,
|
|
16301
16301
|
conversationId: D.id
|
|
16302
16302
|
});
|
|
16303
|
-
}, [
|
|
16303
|
+
}, [d, u, f, p, D, h]);
|
|
16304
16304
|
const z = Z(() => {
|
|
16305
16305
|
I(($) => ({
|
|
16306
16306
|
...$,
|
|
@@ -16332,7 +16332,7 @@ function fw({
|
|
|
16332
16332
|
hideProactiveMessage: z
|
|
16333
16333
|
};
|
|
16334
16334
|
}
|
|
16335
|
-
function
|
|
16335
|
+
function pw() {
|
|
16336
16336
|
const [e, t] = V(!1), [n, r] = V(null), i = se(null), o = se(null), a = Z((l = "...") => {
|
|
16337
16337
|
const c = () => {
|
|
16338
16338
|
r(l), t(!0), o.current = null, i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
@@ -16350,10 +16350,10 @@ function dw() {
|
|
|
16350
16350
|
hideCognition: s
|
|
16351
16351
|
};
|
|
16352
16352
|
}
|
|
16353
|
-
function
|
|
16353
|
+
function dw({
|
|
16354
16354
|
children: e
|
|
16355
16355
|
}) {
|
|
16356
|
-
const t =
|
|
16356
|
+
const t = pw();
|
|
16357
16357
|
return /* @__PURE__ */ x(os.Provider, { value: t, children: e });
|
|
16358
16358
|
}
|
|
16359
16359
|
const hw = ({
|
|
@@ -16380,8 +16380,8 @@ function mw({
|
|
|
16380
16380
|
INTERNAL_ONLY_CHAT_INTERFACE_ONLY: c = !1,
|
|
16381
16381
|
INTERNAL_ONLY_FEATURE_HIDE_PROACTIVE_MESSAGE: u = !1,
|
|
16382
16382
|
INTERNAL_ONLY_BLOCK_STYLE: f = !1,
|
|
16383
|
-
INTERNAL_ONLY_FEATURE_MESSAGE_CLICK:
|
|
16384
|
-
INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK:
|
|
16383
|
+
INTERNAL_ONLY_FEATURE_MESSAGE_CLICK: d = void 0,
|
|
16384
|
+
INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK: p = void 0,
|
|
16385
16385
|
INTERNAL_ONLY_ENVIRONMENT: h = "live"
|
|
16386
16386
|
}) {
|
|
16387
16387
|
const {
|
|
@@ -16468,16 +16468,16 @@ function mw({
|
|
|
16468
16468
|
isOpen: y,
|
|
16469
16469
|
messages: P,
|
|
16470
16470
|
onSendMessage: v,
|
|
16471
|
-
onMessageClick:
|
|
16471
|
+
onMessageClick: d,
|
|
16472
16472
|
isMobile: k,
|
|
16473
16473
|
closeButton: a,
|
|
16474
16474
|
cleanChatButton: s,
|
|
16475
16475
|
onClose: () => M(!1),
|
|
16476
16476
|
onCleanChat: () => {
|
|
16477
|
-
A(),
|
|
16477
|
+
A(), p?.();
|
|
16478
16478
|
}
|
|
16479
16479
|
}
|
|
16480
|
-
) : /* @__PURE__ */ x(
|
|
16480
|
+
) : /* @__PURE__ */ x(ps, { isOpen: y, isMobile: k })
|
|
16481
16481
|
}
|
|
16482
16482
|
),
|
|
16483
16483
|
!c && /* @__PURE__ */ x(
|
|
@@ -16534,7 +16534,7 @@ function mw({
|
|
|
16534
16534
|
return /* @__PURE__ */ x(Qe, { children: f ? N() : L ? /* @__PURE__ */ x(Lm, { container: L, children: N() }) : null });
|
|
16535
16535
|
}
|
|
16536
16536
|
function gw(e) {
|
|
16537
|
-
return /* @__PURE__ */ x(hw, { children: /* @__PURE__ */ x(
|
|
16537
|
+
return /* @__PURE__ */ x(hw, { children: /* @__PURE__ */ x(dw, { children: /* @__PURE__ */ x(mw, { ...e }) }) });
|
|
16538
16538
|
}
|
|
16539
16539
|
function Iw(e, t) {
|
|
16540
16540
|
return ((r, i, o) => {
|
|
@@ -16548,4 +16548,4 @@ export {
|
|
|
16548
16548
|
ra as g,
|
|
16549
16549
|
Iw as r
|
|
16550
16550
|
};
|
|
16551
|
-
//# sourceMappingURL=index-
|
|
16551
|
+
//# sourceMappingURL=index-B3OStgEa.js.map
|