@yext/pages-components 1.1.15 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD-PARTY-NOTICES +15 -45
- package/dist/{debugger-BxGLUF0a.js → debugger-o-hgjM54.js} +1 -1
- package/dist/index-DpqXrf_z.js +6740 -0
- package/dist/index-sidm05Eh.js +20870 -0
- package/dist/index.d.ts +9 -9
- package/dist/pages-components.js +13 -13
- package/package.json +22 -27
- package/dist/debugger-Bc6LFql_.cjs +0 -1
- package/dist/index-7fAhZ2Ii.cjs +0 -47
- package/dist/index-BZoK3sUE.js +0 -5937
- package/dist/index-CDEZRpEm.js +0 -31791
- package/dist/index-CjhHamzw.cjs +0 -111
- package/dist/index.d.cts +0 -1997
- package/dist/pages-components.cjs +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -342,7 +342,7 @@ declare const useIdentify: () => ((visitor: Record<string, string>) => void) | u
|
|
|
342
342
|
*
|
|
343
343
|
* @public
|
|
344
344
|
*/
|
|
345
|
-
declare function AnalyticsProvider(props: PropsWithChildren<AnalyticsProviderProps>):
|
|
345
|
+
declare function AnalyticsProvider(props: PropsWithChildren<AnalyticsProviderProps>): React.ReactElement;
|
|
346
346
|
/**
|
|
347
347
|
* This will look for the xYextDebug parameter and if it is present,
|
|
348
348
|
* enable analytics debugging.
|
|
@@ -363,7 +363,7 @@ declare const useScope: () => string;
|
|
|
363
363
|
*
|
|
364
364
|
* @param props - AnalyticsScopeProps
|
|
365
365
|
*/
|
|
366
|
-
declare function AnalyticsScopeProvider(props: PropsWithChildren<AnalyticsScopeProps>):
|
|
366
|
+
declare function AnalyticsScopeProvider(props: PropsWithChildren<AnalyticsScopeProps>): React.ReactElement;
|
|
367
367
|
|
|
368
368
|
/**
|
|
369
369
|
* The type definition for a thumbnail.
|
|
@@ -1525,10 +1525,10 @@ interface MapProps {
|
|
|
1525
1525
|
iframeId?: string;
|
|
1526
1526
|
}
|
|
1527
1527
|
interface MarkerProps {
|
|
1528
|
-
children?: React__default.
|
|
1528
|
+
children?: React__default.ReactElement;
|
|
1529
1529
|
coordinate: Coordinate;
|
|
1530
1530
|
hideOffscreen?: boolean;
|
|
1531
|
-
icon?:
|
|
1531
|
+
icon?: React__default.ReactElement;
|
|
1532
1532
|
id: string;
|
|
1533
1533
|
onClick?: (id: string) => void;
|
|
1534
1534
|
onHover?: (hovered: boolean, id: string) => void;
|
|
@@ -1544,8 +1544,8 @@ type ClusterTemplateProps = {
|
|
|
1544
1544
|
};
|
|
1545
1545
|
type ClustererProps = {
|
|
1546
1546
|
clusterRadius?: number;
|
|
1547
|
-
children:
|
|
1548
|
-
ClusterTemplate?: (props: ClusterTemplateProps) =>
|
|
1547
|
+
children: React__default.ReactElement[] | React__default.ReactElement;
|
|
1548
|
+
ClusterTemplate?: (props: ClusterTemplateProps) => React__default.ReactElement;
|
|
1549
1549
|
};
|
|
1550
1550
|
type PinStoreType = {
|
|
1551
1551
|
id: string;
|
|
@@ -1560,13 +1560,13 @@ interface ClustererContextType {
|
|
|
1560
1560
|
declare function useMapContext(): Map$1;
|
|
1561
1561
|
declare const Map: ({ apiKey, bounds, children, className, clientKey, controls, defaultCenter, defaultZoom, mapRef, padding, panHandler, panStartHandler, provider, providerOptions, singleZoom, iframeId, }: MapProps) => react_jsx_runtime.JSX.Element;
|
|
1562
1562
|
|
|
1563
|
-
declare const Marker: ({ children, coordinate, hideOffscreen, id, icon, onClick, onFocus, onHover, zIndex, hasPinUrl, }: MarkerProps) =>
|
|
1563
|
+
declare const Marker: ({ children, coordinate, hideOffscreen, id, icon, onClick, onFocus, onHover, zIndex, hasPinUrl, }: MarkerProps) => React__default.ReactElement | null;
|
|
1564
1564
|
|
|
1565
1565
|
declare function useClusterContext(): ClustererContextType;
|
|
1566
1566
|
declare const Clusterer: ({ clusterRadius, children, ClusterTemplate, }: ClustererProps) => react_jsx_runtime.JSX.Element;
|
|
1567
1567
|
|
|
1568
1568
|
interface LocationMapProps extends MapProps {
|
|
1569
|
-
children?: React.
|
|
1569
|
+
children?: React.ReactElement;
|
|
1570
1570
|
coordinate: Coordinate;
|
|
1571
1571
|
linkSameTab?: boolean;
|
|
1572
1572
|
pinUrl?: string;
|
|
@@ -1607,7 +1607,7 @@ declare function LexicalRichText({ serializedAST, nodeClassNames, }: LexicalRich
|
|
|
1607
1607
|
*/
|
|
1608
1608
|
declare const LegacyRichText: (props: {
|
|
1609
1609
|
markdown: string;
|
|
1610
|
-
}) => ReactElement<
|
|
1610
|
+
}) => ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | null;
|
|
1611
1611
|
|
|
1612
1612
|
declare class HoursInterval {
|
|
1613
1613
|
end: DateTime;
|
package/dist/pages-components.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as e,
|
|
1
|
+
import { A as e, N as t, X as o, e as i, f as r, l as c, o as n, Z as p, E as g, _ as u, C as h, a3 as m, D as l, F as S, J as d, $ as M, H as P, B as y, I as x, q as A, a1 as L, z as C, y as f, r as O, L as v, G as R, x as T, O as B, s as I, M as b, a2 as k, a0 as D, v as H, R as w, Q as G, U as Q, T as z, V as E, W as F, P as U, Y as V, S as W, m as q, d as J, p as K, K as N, u as X, w as Y, k as Z, t as _, i as $, n as j, h as aa } from "./index-sidm05Eh.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Address,
|
|
4
4
|
t as AddressSchema,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
o as AggregateRatingSchema,
|
|
6
|
+
i as Analytics,
|
|
7
7
|
r as AnalyticsContext,
|
|
8
8
|
c as AnalyticsProvider,
|
|
9
9
|
n as AnalyticsScopeProvider,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
p as BaiduMaps,
|
|
11
|
+
g as BaseSchema,
|
|
12
12
|
u as BingMaps,
|
|
13
13
|
h as Clusterer,
|
|
14
14
|
m as CoordinateClass,
|
|
@@ -24,12 +24,12 @@ export {
|
|
|
24
24
|
C as LegacyRichText,
|
|
25
25
|
f as LexicalRichText,
|
|
26
26
|
O as Link,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
v as ListingPublisherOption,
|
|
28
|
+
R as LocalBusiness,
|
|
29
|
+
T as LocationMap,
|
|
30
|
+
B as LocationSchema,
|
|
31
|
+
I as Map,
|
|
32
|
+
b as MapProviderOption,
|
|
33
33
|
k as MapQuestMaps,
|
|
34
34
|
D as MapboxMaps,
|
|
35
35
|
H as Marker,
|
|
@@ -42,7 +42,7 @@ export {
|
|
|
42
42
|
U as Product,
|
|
43
43
|
V as ReviewSchema,
|
|
44
44
|
W as SchemaWrapper,
|
|
45
|
-
|
|
45
|
+
q as debuggingParamDetected,
|
|
46
46
|
J as getDirections,
|
|
47
47
|
K as getImageUrl,
|
|
48
48
|
N as getRichTextContent,
|
|
@@ -51,6 +51,6 @@ export {
|
|
|
51
51
|
Z as useIdentify,
|
|
52
52
|
_ as useMapContext,
|
|
53
53
|
$ as usePageView,
|
|
54
|
-
|
|
54
|
+
j as useScope,
|
|
55
55
|
aa as useTrack
|
|
56
56
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yext/pages-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A React component library that supports Yext Pages development",
|
|
5
5
|
"author": "sumo@yext.com",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -18,17 +18,12 @@
|
|
|
18
18
|
"dist",
|
|
19
19
|
"THIRD-PARTY-NOTICES"
|
|
20
20
|
],
|
|
21
|
-
"main": "./dist/pages-components.cjs",
|
|
22
21
|
"module": "./dist/pages-components.js",
|
|
23
22
|
"exports": {
|
|
24
23
|
".": {
|
|
25
24
|
"import": {
|
|
26
25
|
"types": "./dist/index.d.ts",
|
|
27
26
|
"default": "./dist/pages-components.js"
|
|
28
|
-
},
|
|
29
|
-
"require": {
|
|
30
|
-
"types": "./dist/index.d.cts",
|
|
31
|
-
"default": "./dist/pages-components.cjs"
|
|
32
27
|
}
|
|
33
28
|
},
|
|
34
29
|
"./style.css": "./dist/style.css"
|
|
@@ -38,8 +33,8 @@
|
|
|
38
33
|
"node": "^18 || ^20 || ^22"
|
|
39
34
|
},
|
|
40
35
|
"peerDependencies": {
|
|
41
|
-
"react": "^17.0.2 || ^18.2.0",
|
|
42
|
-
"react-dom": "^17.0.2 || ^18.2.0",
|
|
36
|
+
"react": "^17.0.2 || ^18.2.0 || ^19.0.0",
|
|
37
|
+
"react-dom": "^17.0.2 || ^18.2.0 || ^19.0.0",
|
|
43
38
|
"mapbox-gl": "^2.9.2"
|
|
44
39
|
},
|
|
45
40
|
"devDependencies": {
|
|
@@ -52,7 +47,8 @@
|
|
|
52
47
|
"@storybook/react-vite": "^8.5.8",
|
|
53
48
|
"@storybook/test-runner": "^0.21.3",
|
|
54
49
|
"@storybook/testing-library": "^0.2.2",
|
|
55
|
-
"@testing-library/
|
|
50
|
+
"@testing-library/dom": "^10.0.0",
|
|
51
|
+
"@testing-library/react": "^16.1.0",
|
|
56
52
|
"@testing-library/user-event": "^14.5.1",
|
|
57
53
|
"@types/bingmaps": "^0.0.1",
|
|
58
54
|
"@types/google.maps": "^3.58.1",
|
|
@@ -61,8 +57,8 @@
|
|
|
61
57
|
"@types/mapbox-gl": "^3.4.0",
|
|
62
58
|
"@types/mdast": "3.0.10",
|
|
63
59
|
"@types/node": "^20.10.4",
|
|
64
|
-
"@types/react": "^
|
|
65
|
-
"@types/react-dom": "^
|
|
60
|
+
"@types/react": "^19.0.0",
|
|
61
|
+
"@types/react-dom": "^19.0.0",
|
|
66
62
|
"@vitejs/plugin-react": "^4.2.1",
|
|
67
63
|
"axe-core": "^4.8.2",
|
|
68
64
|
"axe-playwright": "^1.2.3",
|
|
@@ -72,8 +68,8 @@
|
|
|
72
68
|
"@playwright/test": "^1.55.1",
|
|
73
69
|
"playwright-core": "^1.55.1",
|
|
74
70
|
"prop-types": "^15.8.1",
|
|
75
|
-
"react": "^
|
|
76
|
-
"react-dom": "^
|
|
71
|
+
"react": "^19.0.0",
|
|
72
|
+
"react-dom": "^19.0.0",
|
|
77
73
|
"storybook": "^8.5.8",
|
|
78
74
|
"tsup": "^8.0.1",
|
|
79
75
|
"typescript": "^5.3.3",
|
|
@@ -82,19 +78,18 @@
|
|
|
82
78
|
"vitest": "^3.0.5"
|
|
83
79
|
},
|
|
84
80
|
"dependencies": {
|
|
85
|
-
"@lexical/code": "0.
|
|
86
|
-
"@lexical/hashtag": "0.
|
|
87
|
-
"@lexical/html": "0.
|
|
88
|
-
"@lexical/link": "0.
|
|
89
|
-
"@lexical/list": "0.
|
|
90
|
-
"@lexical/react": "0.
|
|
91
|
-
"@lexical/rich-text": "0.
|
|
92
|
-
"@lexical/table": "0.
|
|
81
|
+
"@lexical/code": "~0.38.2",
|
|
82
|
+
"@lexical/hashtag": "~0.38.2",
|
|
83
|
+
"@lexical/html": "~0.38.2",
|
|
84
|
+
"@lexical/link": "~0.38.2",
|
|
85
|
+
"@lexical/list": "~0.38.2",
|
|
86
|
+
"@lexical/react": "~0.38.2",
|
|
87
|
+
"@lexical/rich-text": "~0.38.2",
|
|
88
|
+
"@lexical/table": "~0.38.2",
|
|
93
89
|
"@yext/analytics": "^1.0.0",
|
|
94
|
-
"browser-or-node": "^
|
|
95
|
-
"classnames": "^2.
|
|
96
|
-
"
|
|
97
|
-
"lexical": "0.12.6",
|
|
90
|
+
"browser-or-node": "^3.0.0",
|
|
91
|
+
"classnames": "^2.5.1",
|
|
92
|
+
"lexical": "~0.38.2",
|
|
98
93
|
"mdast-util-from-markdown": "1.2.0",
|
|
99
94
|
"mdast-util-to-hast": "12.3.0",
|
|
100
95
|
"micromark-util-chunked": "1.0.0",
|
|
@@ -103,8 +98,8 @@
|
|
|
103
98
|
"micromark-util-resolve-all": "1.0.0",
|
|
104
99
|
"micromark-util-symbol": "1.0.1",
|
|
105
100
|
"micromark-util-types": "1.0.2",
|
|
106
|
-
"picocolors": "^1.
|
|
107
|
-
"react-markdown": "^
|
|
101
|
+
"picocolors": "^1.1.1",
|
|
102
|
+
"react-markdown": "^9.0.2",
|
|
108
103
|
"remark-rehype": "10.1.0",
|
|
109
104
|
"unified": "11.0.4",
|
|
110
105
|
"uvu": "0.5.6"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CjhHamzw.cjs"),m=require("react"),N=require("react-dom");function S(){return i.getRuntime().name!=="browser"||window.hasOwnProperty("debuggerInitialized")?null:(window.debuggerInitialized=!0,N.createPortal(i.jsxRuntimeExports.jsx(k,{}),document.body))}const B=(e,n)=>{const s=e.dataset.yaAction,t=e.dataset.yaScopeoverride,r=e.dataset.yaEventname,c=t||n;return{action:s,originalEventName:c?`${c}_${r}`:r,scope:c}},C=(e,n)=>{const s=[];let t=e;for(;t!=null&&t.parentElement;)t=t.parentElement.closest(n),t&&s.push(t);return s},b={},R="YA_NO_SCOPE",w=(e,n,s,t)=>{b.hasOwnProperty(e)?b[e].events.map(r=>r.el).includes(t)||(b[e].events=[...b[e].events,{eventData:n,el:t}]):b[e]={scopeEl:s||t,events:[{eventData:n,el:t}]}};function k(){const[e,n]=m.useState(),[s,t]=m.useState([]),[r,c]=m.useState(!1),o=a=>{n(e===a?void 0:a)};return m.useEffect(()=>{let a=null;const d=()=>{a&&a.abort(),a=new AbortController;const l=a.signal;document.documentElement.classList.add("xYextDebug"),document.querySelectorAll("[data-ya-eventname]").forEach((u,j)=>{const p=u.closest("[data-ya-scope]"),v=p==null?void 0:p.dataset.yaScope,x=B(u,v);u.addEventListener("mouseenter",()=>{t([{elem:u,key:`${x.originalEventName}_${j}`,action:x.action,originalEventName:x.originalEventName,scope:x.scope}])},{signal:l}),u.addEventListener("mouseleave",()=>{t([])},{signal:l});const E=u.dataset.yaScopeoverride;E?w(E,x,p,u):[v,...C(u,"[data-ya-scope]").map(y=>y.dataset.yaScope)].forEach(y=>{w(y||R,x,p,u)})}),c(!0)};d();const g=new MutationObserver(d);return g.observe(document,{childList:!0,subtree:!0}),()=>{document.documentElement.classList.remove("xYextDebug"),g.disconnect(),a==null||a.abort()}},[]),r?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger",children:[i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-toggles",children:[i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-toggle",{"is-active":e==="Events"}),onClick:()=>o("Events"),children:"Events"}),i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-toggle",{"is-active":e==="Scopes"}),onClick:()=>o("Scopes"),children:"Scopes"})]}),e&&i.jsxRuntimeExports.jsx("div",{className:"analytics-debugger-tabs",children:e==="Events"?i.jsxRuntimeExports.jsx(O,{data:b,setTooltips:t}):i.jsxRuntimeExports.jsx(Y,{data:b,setTooltips:t})})]}),i.jsxRuntimeExports.jsx(T,{tooltips:s})]}):null}const D=()=>{const e={};return Object.values(b).forEach(n=>{n.events.forEach(s=>{const{originalEventName:t}=s.eventData;e[t]||(e[t]=[]),!e[t].find(r=>r.el===s.el)&&e[t].push(s)})}),e};function O(e){const{setTooltips:n}=e,[s,t]=m.useState([]),[r,c]=m.useState(""),o=(a,d)=>{s.forEach(l=>l.classList.remove("analytics-event-highlight"));const g=a.map(l=>(l.el.scrollIntoView({behavior:"smooth",block:"nearest"}),l.el.classList.add("analytics-event-highlight"),l.el));t(g),c(d),n(a.map((l,h)=>({elem:l.el,key:`${l.eventData.originalEventName}_${h}`,action:l.eventData.action,originalEventName:l.eventData.originalEventName,scope:l.eventData.scope})))};return i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[i.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Event Names"}),i.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:Object.entries(D()).map(([a,d],g)=>{const l=`${a}_${g}`;return i.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-button",{"is-active":l===r}),onClick:()=>o(d,l),children:a})},l)})})]})}function Y(e){const{data:n,setTooltips:s}=e,[t,r]=m.useState(""),c=o=>{const a=n[o];a.scopeEl&&(a.scopeEl.scrollIntoView({behavior:"smooth",block:"nearest"}),r(o),s(a.events.map((d,g)=>{const l=d.eventData;return{elem:d.el,key:`${l.originalEventName}_${g}`,action:l.action,originalEventName:l.originalEventName,scope:l.scope}})))};return i.jsxRuntimeExports.jsxs("div",{className:"analytics-debugger-tab",children:[i.jsxRuntimeExports.jsx("h2",{className:"analytics-debugger-tab-title",children:"Scope Names"}),i.jsxRuntimeExports.jsx("ul",{className:"analytics-debugger-list",children:Object.keys(n).map((o,a)=>{if(o!==R)return i.jsxRuntimeExports.jsx("li",{className:"analytics-debugger-listItem",children:i.jsxRuntimeExports.jsx("button",{className:i.c("analytics-debugger-button",{"is-active":o===t}),onClick:()=>c(o),children:o})},o+a)})})]})}function T(e){const n=m.useRef({});return m.useEffect(()=>{if(n.current)for(const s of Object.values(n.current)){const t=Object.values(n.current).map(r=>r.el).filter(r=>r!==s.el);A(s,t),s.el.style.visibility="visible"}},[e.tooltips]),i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:e.tooltips.map(s=>i.jsxRuntimeExports.jsxs("div",{style:{visibility:"hidden"},className:"analytics-debugger-tooltip",ref:t=>{t?n.current[s.key]={el:t,tooltip:s}:delete n.current[s.key]},children:[i.jsxRuntimeExports.jsxs("span",{children:["Action: ",s.action]}),i.jsxRuntimeExports.jsx("br",{}),i.jsxRuntimeExports.jsxs("span",{children:["Scope: ",s.scope]}),i.jsxRuntimeExports.jsx("br",{}),i.jsxRuntimeExports.jsxs("span",{children:["Original Event Name: ",s.originalEventName]})]},s.key))})}function A(e,n){for(let s=0;s<9;s++){const t=I(e.tooltip.elem.getBoundingClientRect(),e.el,s);if(e.el.style.inset=`${t.top} auto auto ${t.left}`,!!L(e.el.getBoundingClientRect().left,e.el.getBoundingClientRect().top+window.scrollY,e.el.getBoundingClientRect().right,e.el.getBoundingClientRect().bottom+window.scrollY))continue;let c=!0;for(let o=0;o<n.length;o++){const a=n[o];$(e.el,a)&&(c=!1)}if(c)break}}function $(e,n){const s=e.getBoundingClientRect().top+window.scrollY,t=e.getBoundingClientRect().left,r=s+e.clientHeight,c=t+e.clientWidth,o=n.getBoundingClientRect().top+window.scrollY,a=n.getBoundingClientRect().left,d=o+n.clientHeight,g=a+n.clientWidth,l=(h,u,j,p,v,x,E,f)=>j<=v&&v<=E&&p<=x&&x<=f||j<=h&&h<=E&&p<=u&&u<=f||j<=h&&h<=E&&p<=x&&x<=f||j<=v&&v<=E&&p<=u&&u<=f;return l(t,s,a,o,c,r,g,d)||l(a,o,t,s,g,d,c,r)}function L(e,n,s,t){return e<0||s>window.innerWidth||n<0||t>document.documentElement.scrollHeight}function I(e,n,s){const t=n.clientHeight,r=n.clientWidth;let c,o;switch(s){case 0:{o=window.scrollY+e.top-t+"px",c=e.left-r+"px";break}case 1:{o=window.scrollY+e.top-t+"px",c=e.left+"px";break}case 2:{o=window.scrollY+e.top-t+"px",c=e.right+"px";break}case 3:{o=window.scrollY+e.top-t+"px",c=e.right-r+"px";break}case 4:{o=window.scrollY+e.bottom+"px",c=e.left-r+"px";break}case 5:{o=window.scrollY+e.bottom+"px",c=e.left+"px";break}case 6:{o=window.scrollY+e.bottom+"px",c=e.right-r+"px";break}case 7:{o=window.scrollY+e.bottom+"px",c=e.right+"px";break}default:o=0,c=0}return{top:o,left:c}}exports.AnalyticsDebuggerInternal=k;exports.default=S;
|
package/dist/index-7fAhZ2Ii.cjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const On=require("react"),m=require("./index-CjhHamzw.cjs");function er(n){const t=[];let e=-1;for(;++e<n.footnoteOrder.length;){const r=n.footnoteById[n.footnoteOrder[e]];if(!r)continue;const i=n.all(r),l=String(r.identifier).toUpperCase(),o=m.normalizeUri(l.toLowerCase());let a=0;const s=[];for(;++a<=n.footnoteCounts[l];){const p={type:"element",tagName:"a",properties:{href:"#"+n.clobberPrefix+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:n.footnoteBackLabel},children:[{type:"text",value:"↩"}]};a>1&&p.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),s.length>0&&s.push({type:"text",value:" "}),s.push(p)}const c=i[i.length-1];if(c&&c.type==="element"&&c.tagName==="p"){const p=c.children[c.children.length-1];p&&p.type==="text"?p.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...s)}else i.push(...s);const d={type:"element",tagName:"li",properties:{id:n.clobberPrefix+"fn-"+o},children:n.wrap(i,!0)};n.patch(r,d),t.push(d)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:n.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(n.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:n.footnoteLabel}]},{type:"text",value:`
|
|
2
|
-
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(t,!0)},{type:"text",value:`
|
|
3
|
-
`}]}}function yt(n,t){const e=m.createState(n,t),r=e.one(n,null),i=er(e);return i&&r.children.push({type:"text",value:`
|
|
4
|
-
`},i),Array.isArray(r)?{type:"root",children:r}:r}const tr=function(n,t){return n&&"run"in n?rr(n,t):ir(n||t)};function rr(n,t){return(e,r,i)=>{n.run(yt(e,t),r,l=>{i(l)})}}function ir(n){return t=>yt(t,n)}const Pe=["http","https","mailto","tel"];function xt(n){const t=(n||"").trim(),e=t.charAt(0);if(e==="#"||e==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++i<Pe.length;){const l=Pe[i];if(r===l.length&&t.slice(0,l.length).toLowerCase()===l)return t}return i=t.indexOf("?"),i!==-1&&r>i||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*!
|
|
5
|
-
* Determine if an object is a Buffer
|
|
6
|
-
*
|
|
7
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
8
|
-
* @license MIT
|
|
9
|
-
*/var lr=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const kt=m.getDefaultExportFromCjs(lr);function Fn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Oe(n.position):"start"in n||"end"in n?Oe(n):"line"in n||"column"in n?ue(n):""}function ue(n){return Ae(n&&n.line)+":"+Ae(n&&n.column)}function Oe(n){return ue(n&&n.start)+"-"+ue(n&&n.end)}function Ae(n){return n&&typeof n=="number"?n:1}class kn extends Error{constructor(t,e,r){const i=[null,null];let l={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof e=="string"&&(r=e,e=void 0),typeof r=="string"){const o=r.indexOf(":");o===-1?i[1]=r:(i[0]=r.slice(0,o),i[1]=r.slice(o+1))}e&&("type"in e||"position"in e?e.position&&(l=e.position):"start"in e||"end"in e?l=e:("line"in e||"column"in e)&&(l.start=e)),this.name=Fn(e)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=l.start.line,this.column=l.start.column,this.position=l,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}kn.prototype.file="";kn.prototype.name="";kn.prototype.reason="";kn.prototype.message="";kn.prototype.stack="";kn.prototype.fatal=null;kn.prototype.column=null;kn.prototype.line=null;kn.prototype.source=null;kn.prototype.ruleId=null;kn.prototype.position=null;const wn={basename:or,dirname:ar,extname:ur,join:sr,sep:"/"};function or(n,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');jn(n);let e=0,r=-1,i=n.length,l;if(t===void 0||t.length===0||t.length>n.length){for(;i--;)if(n.charCodeAt(i)===47){if(l){e=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":n.slice(e,r)}if(t===n)return"";let o=-1,a=t.length-1;for(;i--;)if(n.charCodeAt(i)===47){if(l){e=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(n.charCodeAt(i)===t.charCodeAt(a--)?a<0&&(r=i):(a=-1,r=o));return e===r?r=o:r<0&&(r=n.length),n.slice(e,r)}function ar(n){if(jn(n),n.length===0)return".";let t=-1,e=n.length,r;for(;--e;)if(n.charCodeAt(e)===47){if(r){t=e;break}}else r||(r=!0);return t<0?n.charCodeAt(0)===47?"/":".":t===1&&n.charCodeAt(0)===47?"//":n.slice(0,t)}function ur(n){jn(n);let t=n.length,e=-1,r=0,i=-1,l=0,o;for(;t--;){const a=n.charCodeAt(t);if(a===47){if(o){r=t+1;break}continue}e<0&&(o=!0,e=t+1),a===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||e<0||l===0||l===1&&i===e-1&&i===r+1?"":n.slice(i,e)}function sr(...n){let t=-1,e;for(;++t<n.length;)jn(n[t]),n[t]&&(e=e===void 0?n[t]:e+"/"+n[t]);return e===void 0?".":cr(e)}function cr(n){jn(n);const t=n.charCodeAt(0)===47;let e=fr(n,!t);return e.length===0&&!t&&(e="."),e.length>0&&n.charCodeAt(n.length-1)===47&&(e+="/"),t?"/"+e:e}function fr(n,t){let e="",r=0,i=-1,l=0,o=-1,a,s;for(;++o<=n.length;){if(o<n.length)a=n.charCodeAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-1&&l===2){if(e.length<2||r!==2||e.charCodeAt(e.length-1)!==46||e.charCodeAt(e.length-2)!==46){if(e.length>2){if(s=e.lastIndexOf("/"),s!==e.length-1){s<0?(e="",r=0):(e=e.slice(0,s),r=e.length-1-e.lastIndexOf("/")),i=o,l=0;continue}}else if(e.length>0){e="",r=0,i=o,l=0;continue}}t&&(e=e.length>0?e+"/..":"..",r=2)}else e.length>0?e+="/"+n.slice(i+1,o):e=n.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return e}function jn(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const pr={cwd:hr};function hr(){return"/"}function se(n){return n!==null&&typeof n=="object"&&n.href&&n.origin}function dr(n){if(typeof n=="string")n=new URL(n);else if(!se(n)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(n.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return mr(n)}function mr(n){if(n.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=n.pathname;let e=-1;for(;++e<t.length;)if(t.charCodeAt(e)===37&&t.charCodeAt(e+1)===50){const r=t.charCodeAt(e+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Yn=["history","path","basename","stem","extname","dirname"];class bt{constructor(t){let e;t?typeof t=="string"||gr(t)?e={value:t}:se(t)?e={path:t}:e=t:e={},this.data={},this.messages=[],this.history=[],this.cwd=pr.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<Yn.length;){const l=Yn[r];l in e&&e[l]!==void 0&&e[l]!==null&&(this[l]=l==="history"?[...e[l]]:e[l])}let i;for(i in e)Yn.includes(i)||(this[i]=e[i])}get path(){return this.history[this.history.length-1]}set path(t){se(t)&&(t=dr(t)),Qn(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?wn.dirname(this.path):void 0}set dirname(t){Ie(this.basename,"dirname"),this.path=wn.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?wn.basename(this.path):void 0}set basename(t){Qn(t,"basename"),Wn(t,"basename"),this.path=wn.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?wn.extname(this.path):void 0}set extname(t){if(Wn(t,"extname"),Ie(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wn.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?wn.basename(this.path,this.extname):void 0}set stem(t){Qn(t,"stem"),Wn(t,"stem"),this.path=wn.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,e,r){const i=new kn(t,e,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(t,e,r){const i=this.message(t,e,r);return i.fatal=null,i}fail(t,e,r){const i=this.message(t,e,r);throw i.fatal=!0,i}}function Wn(n,t){if(n&&n.includes(wn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+wn.sep+"`")}function Qn(n,t){if(!n)throw new Error("`"+t+"` cannot be empty")}function Ie(n,t){if(!n)throw new Error("Setting `"+t+"` requires `path` to be set too")}function gr(n){return kt(n)}function Le(n){if(n)throw n}var qn=Object.prototype.hasOwnProperty,wt=Object.prototype.toString,Re=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,ze=function(t){return typeof Array.isArray=="function"?Array.isArray(t):wt.call(t)==="[object Array]"},Me=function(t){if(!t||wt.call(t)!=="[object Object]")return!1;var e=qn.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&qn.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!r)return!1;var i;for(i in t);return typeof i>"u"||qn.call(t,i)},Fe=function(t,e){Re&&e.name==="__proto__"?Re(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},De=function(t,e){if(e==="__proto__")if(qn.call(t,e)){if(_e)return _e(t,e).value}else return;return t[e]},yr=function n(){var t,e,r,i,l,o,a=arguments[0],s=1,c=arguments.length,d=!1;for(typeof a=="boolean"&&(d=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<c;++s)if(t=arguments[s],t!=null)for(e in t)r=De(a,e),i=De(t,e),a!==i&&(d&&i&&(Me(i)||(l=ze(i)))?(l?(l=!1,o=r&&ze(r)?r:[]):o=r&&Me(r)?r:{},Fe(a,{name:e,newValue:n(d,o,i)})):typeof i<"u"&&Fe(a,{name:e,newValue:i}));return a};const je=m.getDefaultExportFromCjs(yr);function ce(n){if(typeof n!="object"||n===null)return!1;const t=Object.getPrototypeOf(n);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function xr(){const n=[],t={run:e,use:r};return t;function e(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(s,...c){const d=n[++l];let p=-1;if(s){o(s);return}for(;++p<i.length;)(c[p]===null||c[p]===void 0)&&(c[p]=i[p]);i=c,d?kr(d,a)(...c):o(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return n.push(i),t}}function kr(n,t){let e;return r;function r(...o){const a=n.length>o.length;let s;a&&o.push(i);try{s=n.apply(this,o)}catch(c){const d=c;if(a&&e)throw d;return i(d)}a||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...a){e||(e=!0,t(o,...a))}function l(o){i(null,o)}}const br=Et().freeze(),St={}.hasOwnProperty;function Et(){const n=xr(),t=[];let e={},r,i=-1;return l.data=o,l.Parser=void 0,l.Compiler=void 0,l.freeze=a,l.attachers=t,l.use=s,l.parse=c,l.stringify=d,l.run=p,l.runSync=g,l.process=h,l.processSync=E,l;function l(){const y=Et();let x=-1;for(;++x<t.length;)y.use(...t[x]);return y.data(je(!0,{},e)),y}function o(y,x){return typeof y=="string"?arguments.length===2?(Gn("data",r),e[y]=x,l):St.call(e,y)&&e[y]||null:y?(Gn("data",r),e=y,l):e}function a(){if(r)return l;for(;++i<t.length;){const[y,...x]=t[i];if(x[0]===!1)continue;x[0]===!0&&(x[0]=void 0);const w=y.call(l,...x);typeof w=="function"&&n.use(w)}return r=!0,i=Number.POSITIVE_INFINITY,l}function s(y,...x){let w;if(Gn("use",r),y!=null)if(typeof y=="function")S(y,...x);else if(typeof y=="object")Array.isArray(y)?z(y):C(y);else throw new TypeError("Expected usable value, not `"+y+"`");return w&&(e.settings=Object.assign(e.settings||{},w)),l;function F(k){if(typeof k=="function")S(k);else if(typeof k=="object")if(Array.isArray(k)){const[R,...q]=k;S(R,...q)}else C(k);else throw new TypeError("Expected usable value, not `"+k+"`")}function C(k){z(k.plugins),k.settings&&(w=Object.assign(w||{},k.settings))}function z(k){let R=-1;if(k!=null)if(Array.isArray(k))for(;++R<k.length;){const q=k[R];F(q)}else throw new TypeError("Expected a list of plugins, not `"+k+"`")}function S(k,R){let q=-1,X;for(;++q<t.length;)if(t[q][0]===k){X=t[q];break}X?(ce(X[1])&&ce(R)&&(R=je(!0,X[1],R)),X[1]=R):t.push([...arguments])}}function c(y){l.freeze();const x=Mn(y),w=l.Parser;return Xn("parse",w),Be(w,"parse")?new w(String(x),x).parse():w(String(x),x)}function d(y,x){l.freeze();const w=Mn(x),F=l.Compiler;return Kn("stringify",F),Ne(y),Be(F,"compile")?new F(y,w).compile():F(y,w)}function p(y,x,w){if(Ne(y),l.freeze(),!w&&typeof x=="function"&&(w=x,x=void 0),!w)return new Promise(F);F(null,w);function F(C,z){n.run(y,Mn(x),S);function S(k,R,q){R=R||y,k?z(k):C?C(R):w(null,R,q)}}}function g(y,x){let w,F;return l.run(y,x,C),$e("runSync","run",F),w;function C(z,S){Le(z),w=S,F=!0}}function h(y,x){if(l.freeze(),Xn("process",l.Parser),Kn("process",l.Compiler),!x)return new Promise(w);w(null,x);function w(F,C){const z=Mn(y);l.run(l.parse(z),z,(k,R,q)=>{if(k||!R||!q)S(k);else{const X=l.stringify(R,q);X==null||(Er(X)?q.value=X:q.result=X),S(k,q)}});function S(k,R){k||!R?C(k):F?F(R):x(null,R)}}}function E(y){let x;l.freeze(),Xn("processSync",l.Parser),Kn("processSync",l.Compiler);const w=Mn(y);return l.process(w,F),$e("processSync","process",x),w;function F(C){x=!0,Le(C)}}}function Be(n,t){return typeof n=="function"&&n.prototype&&(wr(n.prototype)||t in n.prototype)}function wr(n){let t;for(t in n)if(St.call(n,t))return!0;return!1}function Xn(n,t){if(typeof t!="function")throw new TypeError("Cannot `"+n+"` without `Parser`")}function Kn(n,t){if(typeof t!="function")throw new TypeError("Cannot `"+n+"` without `Compiler`")}function Gn(n,t){if(t)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ne(n){if(!ce(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function $e(n,t,e){if(!e)throw new Error("`"+n+"` finished async. Use `"+t+"` instead")}function Mn(n){return Sr(n)?n:new bt(n)}function Sr(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function Er(n){return typeof n=="string"||kt(n)}const vr={};function Cr(n,t){const e=vr,r=typeof e.includeImageAlt=="boolean"?e.includeImageAlt:!0,i=typeof e.includeHtml=="boolean"?e.includeHtml:!0;return vt(n,r,i)}function vt(n,t,e){if(Tr(n)){if("value"in n)return n.type==="html"&&!e?"":n.value;if(t&&"alt"in n&&n.alt)return n.alt;if("children"in n)return qe(n.children,t,e)}return Array.isArray(n)?qe(n,t,e):""}function qe(n,t,e){const r=[];let i=-1;for(;++i<n.length;)r[i]=vt(n[i],t,e);return r.join("")}function Tr(n){return!!(n&&typeof n=="object")}function on(n,t,e,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return m.markdownSpace(s)?(n.enter(e),a(s)):t(s)}function a(s){return m.markdownSpace(s)&&l++<i?(n.consume(s),a):(n.exit(e),t(s))}}const Pr={tokenize:Or};function Or(n){const t=n.attempt(this.parser.constructs.contentInitial,r,i);let e;return t;function r(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),on(n,t,"linePrefix")}function i(a){return n.enter("paragraph"),l(a)}function l(a){const s=n.enter("chunkText",{contentType:"text",previous:e});return e&&(e.next=s),e=s,o(a)}function o(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return m.markdownLineEnding(a)?(n.consume(a),n.exit("chunkText"),l):(n.consume(a),o)}}const Ar={tokenize:Ir},Ue={tokenize:Lr};function Ir(n){const t=this,e=[];let r=0,i,l,o;return a;function a(C){if(r<e.length){const z=e[r];return t.containerState=z[1],n.attempt(z[0].continuation,s,c)(C)}return c(C)}function s(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&F();const z=t.events.length;let S=z,k;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){k=t.events[S][1].end;break}w(r);let R=z;for(;R<t.events.length;)t.events[R][1].end=Object.assign({},k),R++;return m.splice(t.events,S+1,0,t.events.slice(z)),t.events.length=R,c(C)}return a(C)}function c(C){if(r===e.length){if(!i)return g(C);if(i.currentConstruct&&i.currentConstruct.concrete)return E(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},n.check(Ue,d,p)(C)}function d(C){return i&&F(),w(r),g(C)}function p(C){return t.parser.lazy[t.now().line]=r!==e.length,o=t.now().offset,E(C)}function g(C){return t.containerState={},n.attempt(Ue,h,E)(C)}function h(C){return r++,e.push([t.currentConstruct,t.containerState]),g(C)}function E(C){if(C===null){i&&F(),w(0),n.consume(C);return}return i=i||t.parser.flow(t.now()),n.enter("chunkFlow",{contentType:"flow",previous:l,_tokenizer:i}),y(C)}function y(C){if(C===null){x(n.exit("chunkFlow"),!0),w(0),n.consume(C);return}return m.markdownLineEnding(C)?(n.consume(C),x(n.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(n.consume(C),y)}function x(C,z){const S=t.sliceStream(C);if(z&&S.push(null),C.previous=l,l&&(l.next=C),l=C,i.defineSkip(C.start),i.write(S),t.parser.lazy[C.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<o&&(!i.events[k][1].end||i.events[k][1].end.offset>o))return;const R=t.events.length;let q=R,X,un;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(X){un=t.events[q][1].end;break}X=!0}for(w(r),k=R;k<t.events.length;)t.events[k][1].end=Object.assign({},un),k++;m.splice(t.events,q+1,0,t.events.slice(R)),t.events.length=k}}function w(C){let z=e.length;for(;z-- >C;){const S=e[z];t.containerState=S[1],S[0].exit.call(t,n)}e.length=C}function F(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Lr(n,t,e){return on(n,n.attempt(this.parser.constructs.document,t,e),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const fe={name:"attention",tokenize:_r,resolveAll:Rr};function Rr(n,t){let e=-1,r,i,l,o,a,s,c,d;for(;++e<n.length;)if(n[e][0]==="enter"&&n[e][1].type==="attentionSequence"&&n[e][1]._close){for(r=e;r--;)if(n[r][0]==="exit"&&n[r][1].type==="attentionSequence"&&n[r][1]._open&&t.sliceSerialize(n[r][1]).charCodeAt(0)===t.sliceSerialize(n[e][1]).charCodeAt(0)){if((n[r][1]._close||n[e][1]._open)&&(n[e][1].end.offset-n[e][1].start.offset)%3&&!((n[r][1].end.offset-n[r][1].start.offset+n[e][1].end.offset-n[e][1].start.offset)%3))continue;s=n[r][1].end.offset-n[r][1].start.offset>1&&n[e][1].end.offset-n[e][1].start.offset>1?2:1;const p=Object.assign({},n[r][1].end),g=Object.assign({},n[e][1].start);He(p,-s),He(g,s),o={type:s>1?"strongSequence":"emphasisSequence",start:p,end:Object.assign({},n[r][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[e][1].start),end:g},l={type:s>1?"strongText":"emphasisText",start:Object.assign({},n[r][1].end),end:Object.assign({},n[e][1].start)},i={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},n[r][1].end=Object.assign({},o.start),n[e][1].start=Object.assign({},a.end),c=[],n[r][1].end.offset-n[r][1].start.offset&&(c=m.push(c,[["enter",n[r][1],t],["exit",n[r][1],t]])),c=m.push(c,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),c=m.push(c,m.resolveAll(t.parser.constructs.insideSpan.null,n.slice(r+1,e),t)),c=m.push(c,[["exit",l,t],["enter",a,t],["exit",a,t],["exit",i,t]]),n[e][1].end.offset-n[e][1].start.offset?(d=2,c=m.push(c,[["enter",n[e][1],t],["exit",n[e][1],t]])):d=0,m.splice(n,r-1,e-r+3,c),e=r+c.length-d-2;break}}for(e=-1;++e<n.length;)n[e][1].type==="attentionSequence"&&(n[e][1].type="data");return n}function _r(n,t){const e=this.parser.constructs.attentionMarkers.null,r=this.previous,i=m.classifyCharacter(r);let l;return o;function o(s){return l=s,n.enter("attentionSequence"),a(s)}function a(s){if(s===l)return n.consume(s),a;const c=n.exit("attentionSequence"),d=m.classifyCharacter(s),p=!d||d===2&&i||e.includes(s),g=!i||i===2&&d||e.includes(r);return c._open=!!(l===42?p:p&&(i||!g)),c._close=!!(l===42?g:g&&(d||!p)),t(s)}}function He(n,t){n.column+=t,n.offset+=t,n._bufferIndex+=t}const zr={name:"autolink",tokenize:Mr};function Mr(n,t,e){let r=0;return i;function i(h){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),l}function l(h){return m.asciiAlpha(h)?(n.consume(h),o):c(h)}function o(h){return h===43||h===45||h===46||m.asciiAlphanumeric(h)?(r=1,a(h)):c(h)}function a(h){return h===58?(n.consume(h),r=0,s):(h===43||h===45||h===46||m.asciiAlphanumeric(h))&&r++<32?(n.consume(h),a):(r=0,c(h))}function s(h){return h===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),t):h===null||h===32||h===60||m.asciiControl(h)?e(h):(n.consume(h),s)}function c(h){return h===64?(n.consume(h),d):m.asciiAtext(h)?(n.consume(h),c):e(h)}function d(h){return m.asciiAlphanumeric(h)?p(h):e(h)}function p(h){return h===46?(n.consume(h),r=0,d):h===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(h),n.exit("autolinkMarker"),n.exit("autolink"),t):g(h)}function g(h){if((h===45||m.asciiAlphanumeric(h))&&r++<63){const E=h===45?g:p;return n.consume(h),E}return e(h)}}const Hn={tokenize:Fr,partial:!0};function Fr(n,t,e){return r;function r(l){return m.markdownSpace(l)?on(n,i,"linePrefix")(l):i(l)}function i(l){return l===null||m.markdownLineEnding(l)?t(l):e(l)}}const Ct={name:"blockQuote",tokenize:Dr,continuation:{tokenize:jr},exit:Br};function Dr(n,t,e){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(n.enter("blockQuote",{_container:!0}),a.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(o),n.exit("blockQuoteMarker"),l}return e(o)}function l(o){return m.markdownSpace(o)?(n.enter("blockQuotePrefixWhitespace"),n.consume(o),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),t):(n.exit("blockQuotePrefix"),t(o))}}function jr(n,t,e){const r=this;return i;function i(o){return m.markdownSpace(o)?on(n,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return n.attempt(Ct,t,e)(o)}}function Br(n){n.exit("blockQuote")}const Tt={name:"characterEscape",tokenize:Nr};function Nr(n,t,e){return r;function r(l){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(l),n.exit("escapeMarker"),i}function i(l){return m.asciiPunctuation(l)?(n.enter("characterEscapeValue"),n.consume(l),n.exit("characterEscapeValue"),n.exit("characterEscape"),t):e(l)}}const Ve=document.createElement("i");function xe(n){const t="&"+n+";";Ve.innerHTML=t;const e=Ve.textContent;return e.charCodeAt(e.length-1)===59&&n!=="semi"||e===t?!1:e}const Pt={name:"characterReference",tokenize:$r};function $r(n,t,e){const r=this;let i=0,l,o;return a;function a(p){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(p),n.exit("characterReferenceMarker"),s}function s(p){return p===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(p),n.exit("characterReferenceMarkerNumeric"),c):(n.enter("characterReferenceValue"),l=31,o=m.asciiAlphanumeric,d(p))}function c(p){return p===88||p===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(p),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),l=6,o=m.asciiHexDigit,d):(n.enter("characterReferenceValue"),l=7,o=m.asciiDigit,d(p))}function d(p){if(p===59&&i){const g=n.exit("characterReferenceValue");return o===m.asciiAlphanumeric&&!xe(r.sliceSerialize(g))?e(p):(n.enter("characterReferenceMarker"),n.consume(p),n.exit("characterReferenceMarker"),n.exit("characterReference"),t)}return o(p)&&i++<l?(n.consume(p),d):e(p)}}const Ye={tokenize:Ur,partial:!0},We={name:"codeFenced",tokenize:qr,concrete:!0};function qr(n,t,e){const r=this,i={tokenize:S,partial:!0};let l=0,o=0,a;return s;function s(k){return c(k)}function c(k){const R=r.events[r.events.length-1];return l=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=k,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),d(k)}function d(k){return k===a?(o++,n.consume(k),d):o<3?e(k):(n.exit("codeFencedFenceSequence"),m.markdownSpace(k)?on(n,p,"whitespace")(k):p(k))}function p(k){return k===null||m.markdownLineEnding(k)?(n.exit("codeFencedFence"),r.interrupt?t(k):n.check(Ye,y,z)(k)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===null||m.markdownLineEnding(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),p(k)):m.markdownSpace(k)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),on(n,h,"whitespace")(k)):k===96&&k===a?e(k):(n.consume(k),g)}function h(k){return k===null||m.markdownLineEnding(k)?p(k):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),E(k))}function E(k){return k===null||m.markdownLineEnding(k)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),p(k)):k===96&&k===a?e(k):(n.consume(k),E)}function y(k){return n.attempt(i,z,x)(k)}function x(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),w}function w(k){return l>0&&m.markdownSpace(k)?on(n,F,"linePrefix",l+1)(k):F(k)}function F(k){return k===null||m.markdownLineEnding(k)?n.check(Ye,y,z)(k):(n.enter("codeFlowValue"),C(k))}function C(k){return k===null||m.markdownLineEnding(k)?(n.exit("codeFlowValue"),F(k)):(n.consume(k),C)}function z(k){return n.exit("codeFenced"),t(k)}function S(k,R,q){let X=0;return un;function un(Y){return k.enter("lineEnding"),k.consume(Y),k.exit("lineEnding"),_}function _(Y){return k.enter("codeFencedFence"),m.markdownSpace(Y)?on(k,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):A(Y)}function A(Y){return Y===a?(k.enter("codeFencedFenceSequence"),W(Y)):q(Y)}function W(Y){return Y===a?(X++,k.consume(Y),W):X>=o?(k.exit("codeFencedFenceSequence"),m.markdownSpace(Y)?on(k,nn,"whitespace")(Y):nn(Y)):q(Y)}function nn(Y){return Y===null||m.markdownLineEnding(Y)?(k.exit("codeFencedFence"),R(Y)):q(Y)}}}function Ur(n,t,e){const r=this;return i;function i(o){return o===null?e(o):(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?e(o):t(o)}}const Jn={name:"codeIndented",tokenize:Vr},Hr={tokenize:Yr,partial:!0};function Vr(n,t,e){const r=this;return i;function i(c){return n.enter("codeIndented"),on(n,l,"linePrefix",5)(c)}function l(c){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(c):e(c)}function o(c){return c===null?s(c):m.markdownLineEnding(c)?n.attempt(Hr,o,s)(c):(n.enter("codeFlowValue"),a(c))}function a(c){return c===null||m.markdownLineEnding(c)?(n.exit("codeFlowValue"),o(c)):(n.consume(c),a)}function s(c){return n.exit("codeIndented"),t(c)}}function Yr(n,t,e){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?e(o):m.markdownLineEnding(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),i):on(n,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):m.markdownLineEnding(o)?i(o):e(o)}}const Wr={name:"codeText",tokenize:Kr,resolve:Qr,previous:Xr};function Qr(n){let t=n.length-4,e=3,r,i;if((n[e][1].type==="lineEnding"||n[e][1].type==="space")&&(n[t][1].type==="lineEnding"||n[t][1].type==="space")){for(r=e;++r<t;)if(n[r][1].type==="codeTextData"){n[e][1].type="codeTextPadding",n[t][1].type="codeTextPadding",e+=2,t-=2;break}}for(r=e-1,t++;++r<=t;)i===void 0?r!==t&&n[r][1].type!=="lineEnding"&&(i=r):(r===t||n[r][1].type==="lineEnding")&&(n[i][1].type="codeTextData",r!==i+2&&(n[i][1].end=n[r-1][1].end,n.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return n}function Xr(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Kr(n,t,e){let r=0,i,l;return o;function o(p){return n.enter("codeText"),n.enter("codeTextSequence"),a(p)}function a(p){return p===96?(n.consume(p),r++,a):(n.exit("codeTextSequence"),s(p))}function s(p){return p===null?e(p):p===32?(n.enter("space"),n.consume(p),n.exit("space"),s):p===96?(l=n.enter("codeTextSequence"),i=0,d(p)):m.markdownLineEnding(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),s):(n.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||m.markdownLineEnding(p)?(n.exit("codeTextData"),s(p)):(n.consume(p),c)}function d(p){return p===96?(n.consume(p),i++,d):i===r?(n.exit("codeTextSequence"),n.exit("codeText"),t(p)):(l.type="codeTextData",c(p))}}function Ot(n){const t={};let e=-1,r,i,l,o,a,s,c;for(;++e<n.length;){for(;e in t;)e=t[e];if(r=n[e],e&&r[1].type==="chunkFlow"&&n[e-1][1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Gr(n,e)),e=t[e],c=!0);else if(r[1]._container){for(l=e,i=void 0;l--&&(o=n[l],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(n[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);i&&(r[1].end=Object.assign({},n[i][1].start),a=n.slice(i,e),a.unshift(r),m.splice(n,i,e-i+1,a))}}return!c}function Gr(n,t){const e=n[t][1],r=n[t][2];let i=t-1;const l=[],o=e._tokenizer||r.parser[e.contentType](e.start),a=o.events,s=[],c={};let d,p,g=-1,h=e,E=0,y=0;const x=[y];for(;h;){for(;n[++i][1]!==h;);l.push(i),h._tokenizer||(d=r.sliceStream(h),h.next||d.push(null),p&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=h,h=h.next}for(h=e;++g<a.length;)a[g][0]==="exit"&&a[g-1][0]==="enter"&&a[g][1].type===a[g-1][1].type&&a[g][1].start.line!==a[g][1].end.line&&(y=g+1,x.push(y),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):x.pop(),g=x.length;g--;){const w=a.slice(x[g],x[g+1]),F=l.pop();s.unshift([F,F+w.length-1]),m.splice(n,F,2,w)}for(g=-1;++g<s.length;)c[E+s[g][0]]=E+s[g][1],E+=s[g][1]-s[g][0]-1;return c}const Jr={tokenize:ei,resolve:ni},Zr={tokenize:ti,partial:!0};function ni(n){return Ot(n),n}function ei(n,t){let e;return r;function r(a){return n.enter("content"),e=n.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):m.markdownLineEnding(a)?n.check(Zr,o,l)(a):(n.consume(a),i)}function l(a){return n.exit("chunkContent"),n.exit("content"),t(a)}function o(a){return n.consume(a),n.exit("chunkContent"),e.next=n.enter("chunkContent",{contentType:"content",previous:e}),e=e.next,i}}function ti(n,t,e){const r=this;return i;function i(o){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),on(n,l,"linePrefix")}function l(o){if(o===null||m.markdownLineEnding(o))return e(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):n.interrupt(r.parser.constructs.flow,e,t)(o)}}function At(n,t,e,r,i,l,o,a,s){const c=s||Number.POSITIVE_INFINITY;let d=0;return p;function p(w){return w===60?(n.enter(r),n.enter(i),n.enter(l),n.consume(w),n.exit(l),g):w===null||w===32||w===41||m.asciiControl(w)?e(w):(n.enter(r),n.enter(o),n.enter(a),n.enter("chunkString",{contentType:"string"}),y(w))}function g(w){return w===62?(n.enter(l),n.consume(w),n.exit(l),n.exit(i),n.exit(r),t):(n.enter(a),n.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===62?(n.exit("chunkString"),n.exit(a),g(w)):w===null||w===60||m.markdownLineEnding(w)?e(w):(n.consume(w),w===92?E:h)}function E(w){return w===60||w===62||w===92?(n.consume(w),h):h(w)}function y(w){return!d&&(w===null||w===41||m.markdownLineEndingOrSpace(w))?(n.exit("chunkString"),n.exit(a),n.exit(o),n.exit(r),t(w)):d<c&&w===40?(n.consume(w),d++,y):w===41?(n.consume(w),d--,y):w===null||w===32||w===40||m.asciiControl(w)?e(w):(n.consume(w),w===92?x:y)}function x(w){return w===40||w===41||w===92?(n.consume(w),y):y(w)}}function It(n,t,e,r,i,l){const o=this;let a=0,s;return c;function c(h){return n.enter(r),n.enter(i),n.consume(h),n.exit(i),n.enter(l),d}function d(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?e(h):h===93?(n.exit(l),n.enter(i),n.consume(h),n.exit(i),n.exit(r),t):m.markdownLineEnding(h)?(n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),d):(n.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===null||h===91||h===93||m.markdownLineEnding(h)||a++>999?(n.exit("chunkString"),d(h)):(n.consume(h),s||(s=!m.markdownSpace(h)),h===92?g:p)}function g(h){return h===91||h===92||h===93?(n.consume(h),a++,p):p(h)}}function Lt(n,t,e,r,i,l){let o;return a;function a(g){return g===34||g===39||g===40?(n.enter(r),n.enter(i),n.consume(g),n.exit(i),o=g===40?41:g,s):e(g)}function s(g){return g===o?(n.enter(i),n.consume(g),n.exit(i),n.exit(r),t):(n.enter(l),c(g))}function c(g){return g===o?(n.exit(l),s(o)):g===null?e(g):m.markdownLineEnding(g)?(n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),on(n,c,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===o||g===null||m.markdownLineEnding(g)?(n.exit("chunkString"),c(g)):(n.consume(g),g===92?p:d)}function p(g){return g===o||g===92?(n.consume(g),d):d(g)}}function Dn(n,t){let e;return r;function r(i){return m.markdownLineEnding(i)?(n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),e=!0,r):m.markdownSpace(i)?on(n,r,e?"linePrefix":"lineSuffix")(i):t(i)}}function An(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ri={name:"definition",tokenize:li},ii={tokenize:oi,partial:!0};function li(n,t,e){const r=this;let i;return l;function l(h){return n.enter("definition"),o(h)}function o(h){return It.call(r,n,a,e,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=An(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(n.enter("definitionMarker"),n.consume(h),n.exit("definitionMarker"),s):e(h)}function s(h){return m.markdownLineEndingOrSpace(h)?Dn(n,c)(h):c(h)}function c(h){return At(n,d,e,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function d(h){return n.attempt(ii,p,p)(h)}function p(h){return m.markdownSpace(h)?on(n,g,"whitespace")(h):g(h)}function g(h){return h===null||m.markdownLineEnding(h)?(n.exit("definition"),r.parser.defined.push(i),t(h)):e(h)}}function oi(n,t,e){return r;function r(a){return m.markdownLineEndingOrSpace(a)?Dn(n,i)(a):e(a)}function i(a){return Lt(n,l,e,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return m.markdownSpace(a)?on(n,o,"whitespace")(a):o(a)}function o(a){return a===null||m.markdownLineEnding(a)?t(a):e(a)}}const ai={name:"hardBreakEscape",tokenize:ui};function ui(n,t,e){return r;function r(l){return n.enter("hardBreakEscape"),n.consume(l),i}function i(l){return m.markdownLineEnding(l)?(n.exit("hardBreakEscape"),t(l)):e(l)}}const si={name:"headingAtx",tokenize:fi,resolve:ci};function ci(n,t){let e=n.length-2,r=3,i,l;return n[r][1].type==="whitespace"&&(r+=2),e-2>r&&n[e][1].type==="whitespace"&&(e-=2),n[e][1].type==="atxHeadingSequence"&&(r===e-1||e-4>r&&n[e-2][1].type==="whitespace")&&(e-=r+1===e?2:4),e>r&&(i={type:"atxHeadingText",start:n[r][1].start,end:n[e][1].end},l={type:"chunkText",start:n[r][1].start,end:n[e][1].end,contentType:"text"},m.splice(n,r,e-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),n}function fi(n,t,e){let r=0;return i;function i(d){return n.enter("atxHeading"),l(d)}function l(d){return n.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(n.consume(d),o):d===null||m.markdownLineEndingOrSpace(d)?(n.exit("atxHeadingSequence"),a(d)):e(d)}function a(d){return d===35?(n.enter("atxHeadingSequence"),s(d)):d===null||m.markdownLineEnding(d)?(n.exit("atxHeading"),t(d)):m.markdownSpace(d)?on(n,a,"whitespace")(d):(n.enter("atxHeadingText"),c(d))}function s(d){return d===35?(n.consume(d),s):(n.exit("atxHeadingSequence"),a(d))}function c(d){return d===null||d===35||m.markdownLineEndingOrSpace(d)?(n.exit("atxHeadingText"),a(d)):(n.consume(d),c)}}const pi=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Qe=["pre","script","style","textarea"],hi={name:"htmlFlow",tokenize:yi,resolveTo:gi,concrete:!0},di={tokenize:ki,partial:!0},mi={tokenize:xi,partial:!0};function gi(n){let t=n.length;for(;t--&&!(n[t][0]==="enter"&&n[t][1].type==="htmlFlow"););return t>1&&n[t-2][1].type==="linePrefix"&&(n[t][1].start=n[t-2][1].start,n[t+1][1].start=n[t-2][1].start,n.splice(t-2,2)),n}function yi(n,t,e){const r=this;let i,l,o,a,s;return c;function c(f){return d(f)}function d(f){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(f),p}function p(f){return f===33?(n.consume(f),g):f===47?(n.consume(f),l=!0,y):f===63?(n.consume(f),i=3,r.interrupt?t:u):m.asciiAlpha(f)?(n.consume(f),o=String.fromCharCode(f),x):e(f)}function g(f){return f===45?(n.consume(f),i=2,h):f===91?(n.consume(f),i=5,a=0,E):m.asciiAlpha(f)?(n.consume(f),i=4,r.interrupt?t:u):e(f)}function h(f){return f===45?(n.consume(f),r.interrupt?t:u):e(f)}function E(f){const M="CDATA[";return f===M.charCodeAt(a++)?(n.consume(f),a===M.length?r.interrupt?t:A:E):e(f)}function y(f){return m.asciiAlpha(f)?(n.consume(f),o=String.fromCharCode(f),x):e(f)}function x(f){if(f===null||f===47||f===62||m.markdownLineEndingOrSpace(f)){const M=f===47,H=o.toLowerCase();return!M&&!l&&Qe.includes(H)?(i=1,r.interrupt?t(f):A(f)):pi.includes(o.toLowerCase())?(i=6,M?(n.consume(f),w):r.interrupt?t(f):A(f)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?e(f):l?F(f):C(f))}return f===45||m.asciiAlphanumeric(f)?(n.consume(f),o+=String.fromCharCode(f),x):e(f)}function w(f){return f===62?(n.consume(f),r.interrupt?t:A):e(f)}function F(f){return m.markdownSpace(f)?(n.consume(f),F):un(f)}function C(f){return f===47?(n.consume(f),un):f===58||f===95||m.asciiAlpha(f)?(n.consume(f),z):m.markdownSpace(f)?(n.consume(f),C):un(f)}function z(f){return f===45||f===46||f===58||f===95||m.asciiAlphanumeric(f)?(n.consume(f),z):S(f)}function S(f){return f===61?(n.consume(f),k):m.markdownSpace(f)?(n.consume(f),S):C(f)}function k(f){return f===null||f===60||f===61||f===62||f===96?e(f):f===34||f===39?(n.consume(f),s=f,R):m.markdownSpace(f)?(n.consume(f),k):q(f)}function R(f){return f===s?(n.consume(f),s=null,X):f===null||m.markdownLineEnding(f)?e(f):(n.consume(f),R)}function q(f){return f===null||f===34||f===39||f===47||f===60||f===61||f===62||f===96||m.markdownLineEndingOrSpace(f)?S(f):(n.consume(f),q)}function X(f){return f===47||f===62||m.markdownSpace(f)?C(f):e(f)}function un(f){return f===62?(n.consume(f),_):e(f)}function _(f){return f===null||m.markdownLineEnding(f)?A(f):m.markdownSpace(f)?(n.consume(f),_):e(f)}function A(f){return f===45&&i===2?(n.consume(f),en):f===60&&i===1?(n.consume(f),rn):f===62&&i===4?(n.consume(f),P):f===63&&i===3?(n.consume(f),u):f===93&&i===5?(n.consume(f),dn):m.markdownLineEnding(f)&&(i===6||i===7)?(n.exit("htmlFlowData"),n.check(di,D,W)(f)):f===null||m.markdownLineEnding(f)?(n.exit("htmlFlowData"),W(f)):(n.consume(f),A)}function W(f){return n.check(mi,nn,D)(f)}function nn(f){return n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),Y}function Y(f){return f===null||m.markdownLineEnding(f)?W(f):(n.enter("htmlFlowData"),A(f))}function en(f){return f===45?(n.consume(f),u):A(f)}function rn(f){return f===47?(n.consume(f),o="",pn):A(f)}function pn(f){if(f===62){const M=o.toLowerCase();return Qe.includes(M)?(n.consume(f),P):A(f)}return m.asciiAlpha(f)&&o.length<8?(n.consume(f),o+=String.fromCharCode(f),pn):A(f)}function dn(f){return f===93?(n.consume(f),u):A(f)}function u(f){return f===62?(n.consume(f),P):f===45&&i===2?(n.consume(f),u):A(f)}function P(f){return f===null||m.markdownLineEnding(f)?(n.exit("htmlFlowData"),D(f)):(n.consume(f),P)}function D(f){return n.exit("htmlFlow"),t(f)}}function xi(n,t,e){const r=this;return i;function i(o){return m.markdownLineEnding(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l):e(o)}function l(o){return r.parser.lazy[r.now().line]?e(o):t(o)}}function ki(n,t,e){return r;function r(i){return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),n.attempt(Hn,t,e)}}const bi={name:"htmlText",tokenize:wi};function wi(n,t,e){const r=this;let i,l,o;return a;function a(u){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(u),s}function s(u){return u===33?(n.consume(u),c):u===47?(n.consume(u),S):u===63?(n.consume(u),C):m.asciiAlpha(u)?(n.consume(u),q):e(u)}function c(u){return u===45?(n.consume(u),d):u===91?(n.consume(u),l=0,E):m.asciiAlpha(u)?(n.consume(u),F):e(u)}function d(u){return u===45?(n.consume(u),h):e(u)}function p(u){return u===null?e(u):u===45?(n.consume(u),g):m.markdownLineEnding(u)?(o=p,rn(u)):(n.consume(u),p)}function g(u){return u===45?(n.consume(u),h):p(u)}function h(u){return u===62?en(u):u===45?g(u):p(u)}function E(u){const P="CDATA[";return u===P.charCodeAt(l++)?(n.consume(u),l===P.length?y:E):e(u)}function y(u){return u===null?e(u):u===93?(n.consume(u),x):m.markdownLineEnding(u)?(o=y,rn(u)):(n.consume(u),y)}function x(u){return u===93?(n.consume(u),w):y(u)}function w(u){return u===62?en(u):u===93?(n.consume(u),w):y(u)}function F(u){return u===null||u===62?en(u):m.markdownLineEnding(u)?(o=F,rn(u)):(n.consume(u),F)}function C(u){return u===null?e(u):u===63?(n.consume(u),z):m.markdownLineEnding(u)?(o=C,rn(u)):(n.consume(u),C)}function z(u){return u===62?en(u):C(u)}function S(u){return m.asciiAlpha(u)?(n.consume(u),k):e(u)}function k(u){return u===45||m.asciiAlphanumeric(u)?(n.consume(u),k):R(u)}function R(u){return m.markdownLineEnding(u)?(o=R,rn(u)):m.markdownSpace(u)?(n.consume(u),R):en(u)}function q(u){return u===45||m.asciiAlphanumeric(u)?(n.consume(u),q):u===47||u===62||m.markdownLineEndingOrSpace(u)?X(u):e(u)}function X(u){return u===47?(n.consume(u),en):u===58||u===95||m.asciiAlpha(u)?(n.consume(u),un):m.markdownLineEnding(u)?(o=X,rn(u)):m.markdownSpace(u)?(n.consume(u),X):en(u)}function un(u){return u===45||u===46||u===58||u===95||m.asciiAlphanumeric(u)?(n.consume(u),un):_(u)}function _(u){return u===61?(n.consume(u),A):m.markdownLineEnding(u)?(o=_,rn(u)):m.markdownSpace(u)?(n.consume(u),_):X(u)}function A(u){return u===null||u===60||u===61||u===62||u===96?e(u):u===34||u===39?(n.consume(u),i=u,W):m.markdownLineEnding(u)?(o=A,rn(u)):m.markdownSpace(u)?(n.consume(u),A):(n.consume(u),nn)}function W(u){return u===i?(n.consume(u),i=void 0,Y):u===null?e(u):m.markdownLineEnding(u)?(o=W,rn(u)):(n.consume(u),W)}function nn(u){return u===null||u===34||u===39||u===60||u===61||u===96?e(u):u===47||u===62||m.markdownLineEndingOrSpace(u)?X(u):(n.consume(u),nn)}function Y(u){return u===47||u===62||m.markdownLineEndingOrSpace(u)?X(u):e(u)}function en(u){return u===62?(n.consume(u),n.exit("htmlTextData"),n.exit("htmlText"),t):e(u)}function rn(u){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),pn}function pn(u){return m.markdownSpace(u)?on(n,dn,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):dn(u)}function dn(u){return n.enter("htmlTextData"),o(u)}}const ke={name:"labelEnd",tokenize:Pi,resolveTo:Ti,resolveAll:Ci},Si={tokenize:Oi},Ei={tokenize:Ai},vi={tokenize:Ii};function Ci(n){let t=-1;for(;++t<n.length;){const e=n[t][1];(e.type==="labelImage"||e.type==="labelLink"||e.type==="labelEnd")&&(n.splice(t+1,e.type==="labelImage"?4:2),e.type="data",t++)}return n}function Ti(n,t){let e=n.length,r=0,i,l,o,a;for(;e--;)if(i=n[e][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;n[e][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(n[e][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=e,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=e);const s={type:n[l][1].type==="labelLink"?"link":"image",start:Object.assign({},n[l][1].start),end:Object.assign({},n[n.length-1][1].end)},c={type:"label",start:Object.assign({},n[l][1].start),end:Object.assign({},n[o][1].end)},d={type:"labelText",start:Object.assign({},n[l+r+2][1].end),end:Object.assign({},n[o-2][1].start)};return a=[["enter",s,t],["enter",c,t]],a=m.push(a,n.slice(l+1,l+r+3)),a=m.push(a,[["enter",d,t]]),a=m.push(a,m.resolveAll(t.parser.constructs.insideSpan.null,n.slice(l+r+4,o-3),t)),a=m.push(a,[["exit",d,t],n[o-2],n[o-1],["exit",c,t]]),a=m.push(a,n.slice(o+1)),a=m.push(a,[["exit",s,t]]),m.splice(n,l,n.length,a),n}function Pi(n,t,e){const r=this;let i=r.events.length,l,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return a;function a(g){return l?l._inactive?p(g):(o=r.parser.defined.includes(An(r.sliceSerialize({start:l.end,end:r.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(g),n.exit("labelMarker"),n.exit("labelEnd"),s):e(g)}function s(g){return g===40?n.attempt(Si,d,o?d:p)(g):g===91?n.attempt(Ei,d,o?c:p)(g):o?d(g):p(g)}function c(g){return n.attempt(vi,d,p)(g)}function d(g){return t(g)}function p(g){return l._balanced=!0,e(g)}}function Oi(n,t,e){return r;function r(p){return n.enter("resource"),n.enter("resourceMarker"),n.consume(p),n.exit("resourceMarker"),i}function i(p){return m.markdownLineEndingOrSpace(p)?Dn(n,l)(p):l(p)}function l(p){return p===41?d(p):At(n,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return m.markdownLineEndingOrSpace(p)?Dn(n,s)(p):d(p)}function a(p){return e(p)}function s(p){return p===34||p===39||p===40?Lt(n,c,e,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function c(p){return m.markdownLineEndingOrSpace(p)?Dn(n,d)(p):d(p)}function d(p){return p===41?(n.enter("resourceMarker"),n.consume(p),n.exit("resourceMarker"),n.exit("resource"),t):e(p)}}function Ai(n,t,e){const r=this;return i;function i(a){return It.call(r,n,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(An(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):e(a)}function o(a){return e(a)}}function Ii(n,t,e){return r;function r(l){return n.enter("reference"),n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),i}function i(l){return l===93?(n.enter("referenceMarker"),n.consume(l),n.exit("referenceMarker"),n.exit("reference"),t):e(l)}}const Li={name:"labelStartImage",tokenize:Ri,resolveAll:ke.resolveAll};function Ri(n,t,e){const r=this;return i;function i(a){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(a),n.exit("labelImageMarker"),l}function l(a){return a===91?(n.enter("labelMarker"),n.consume(a),n.exit("labelMarker"),n.exit("labelImage"),o):e(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?e(a):t(a)}}const _i={name:"labelStartLink",tokenize:zi,resolveAll:ke.resolveAll};function zi(n,t,e){const r=this;return i;function i(o){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(o),n.exit("labelMarker"),n.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?e(o):t(o)}}const Zn={name:"lineEnding",tokenize:Mi};function Mi(n,t){return e;function e(r){return n.enter("lineEnding"),n.consume(r),n.exit("lineEnding"),on(n,t,"linePrefix")}}const Un={name:"thematicBreak",tokenize:Fi};function Fi(n,t,e){let r=0,i;return l;function l(c){return n.enter("thematicBreak"),o(c)}function o(c){return i=c,a(c)}function a(c){return c===i?(n.enter("thematicBreakSequence"),s(c)):r>=3&&(c===null||m.markdownLineEnding(c))?(n.exit("thematicBreak"),t(c)):e(c)}function s(c){return c===i?(n.consume(c),r++,s):(n.exit("thematicBreakSequence"),m.markdownSpace(c)?on(n,a,"whitespace")(c):a(c))}}const gn={name:"list",tokenize:Bi,continuation:{tokenize:Ni},exit:qi},Di={tokenize:Ui,partial:!0},ji={tokenize:$i,partial:!0};function Bi(n,t,e){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(h){const E=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:m.asciiDigit(h)){if(r.containerState.type||(r.containerState.type=E,n.enter(E,{_container:!0})),E==="listUnordered")return n.enter("listItemPrefix"),h===42||h===45?n.check(Un,e,c)(h):c(h);if(!r.interrupt||h===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),s(h)}return e(h)}function s(h){return m.asciiDigit(h)&&++o<10?(n.consume(h),s):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(n.exit("listItemValue"),c(h)):e(h)}function c(h){return n.enter("listItemMarker"),n.consume(h),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,n.check(Hn,r.interrupt?e:d,n.attempt(Di,g,p))}function d(h){return r.containerState.initialBlankLine=!0,l++,g(h)}function p(h){return m.markdownSpace(h)?(n.enter("listItemPrefixWhitespace"),n.consume(h),n.exit("listItemPrefixWhitespace"),g):e(h)}function g(h){return r.containerState.size=l+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,t(h)}}function Ni(n,t,e){const r=this;return r.containerState._closeFlow=void 0,n.check(Hn,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,on(n,t,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!m.markdownSpace(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt(ji,t,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,on(n,n.attempt(gn,t,e),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function $i(n,t,e){const r=this;return on(n,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):e(l)}}function qi(n){n.exit(this.containerState.type)}function Ui(n,t,e){const r=this;return on(n,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!m.markdownSpace(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):e(l)}}const Xe={name:"setextUnderline",tokenize:Vi,resolveTo:Hi};function Hi(n,t){let e=n.length,r,i,l;for(;e--;)if(n[e][0]==="enter"){if(n[e][1].type==="content"){r=e;break}n[e][1].type==="paragraph"&&(i=e)}else n[e][1].type==="content"&&n.splice(e,1),!l&&n[e][1].type==="definition"&&(l=e);const o={type:"setextHeading",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[i][1].type="setextHeadingText",l?(n.splice(i,0,["enter",o,t]),n.splice(l+1,0,["exit",n[r][1],t]),n[r][1].end=Object.assign({},n[l][1].end)):n[r][1]=o,n.push(["exit",o,t]),n}function Vi(n,t,e){const r=this;let i;return l;function l(c){let d=r.events.length,p;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){p=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(n.enter("setextHeadingLine"),i=c,o(c)):e(c)}function o(c){return n.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===i?(n.consume(c),a):(n.exit("setextHeadingLineSequence"),m.markdownSpace(c)?on(n,s,"lineSuffix")(c):s(c))}function s(c){return c===null||m.markdownLineEnding(c)?(n.exit("setextHeadingLine"),t(c)):e(c)}}const Yi={tokenize:Wi};function Wi(n){const t=this,e=n.attempt(Hn,r,n.attempt(this.parser.constructs.flowInitial,i,on(n,n.attempt(this.parser.constructs.flow,i,n.attempt(Jr,i)),"linePrefix")));return e;function r(l){if(l===null){n.consume(l);return}return n.enter("lineEndingBlank"),n.consume(l),n.exit("lineEndingBlank"),t.currentConstruct=void 0,e}function i(l){if(l===null){n.consume(l);return}return n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),t.currentConstruct=void 0,e}}const Qi={resolveAll:_t()},Xi=Rt("string"),Ki=Rt("text");function Rt(n){return{tokenize:t,resolveAll:_t(n==="text"?Gi:void 0)};function t(e){const r=this,i=this.parser.constructs[n],l=e.attempt(i,o,a);return o;function o(d){return c(d)?l(d):a(d)}function a(d){if(d===null){e.consume(d);return}return e.enter("data"),e.consume(d),s}function s(d){return c(d)?(e.exit("data"),l(d)):(e.consume(d),s)}function c(d){if(d===null)return!0;const p=i[d];let g=-1;if(p)for(;++g<p.length;){const h=p[g];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function _t(n){return t;function t(e,r){let i=-1,l;for(;++i<=e.length;)l===void 0?e[i]&&e[i][1].type==="data"&&(l=i,i++):(!e[i]||e[i][1].type!=="data")&&(i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),i=l+2),l=void 0);return n?n(e,r):e}}function Gi(n,t){let e=0;for(;++e<=n.length;)if((e===n.length||n[e][1].type==="lineEnding")&&n[e-1][1].type==="data"){const r=n[e-1][1],i=t.sliceStream(r);let l=i.length,o=-1,a=0,s;for(;l--;){const c=i[l];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(c===-2)s=!0,a++;else if(c!==-1){l++;break}}if(a){const c={type:e===n.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-a,offset:r.end.offset-a,_index:r.start._index+l,_bufferIndex:l?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(n.splice(e,0,["enter",c,t],["exit",c,t]),e+=2)}e++}return n}function Ji(n,t,e){let r=Object.assign(e?Object.assign({},e):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},l=[];let o=[],a=[];const s={consume:F,enter:C,exit:z,attempt:R(S),check:R(k),interrupt:R(k,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:n,sliceStream:h,sliceSerialize:g,now:E,defineSkip:y,write:p};let d=t.tokenize.call(c,s);return t.resolveAll&&l.push(t),c;function p(_){return o=m.push(o,_),x(),o[o.length-1]!==null?[]:(q(t,0),c.events=m.resolveAll(l,c.events,c),c.events)}function g(_,A){return nl(h(_),A)}function h(_){return Zi(o,_)}function E(){const{line:_,column:A,offset:W,_index:nn,_bufferIndex:Y}=r;return{line:_,column:A,offset:W,_index:nn,_bufferIndex:Y}}function y(_){i[_.line]=_.column,un()}function x(){let _;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(_=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===_&&r._bufferIndex<A.length;)w(A.charCodeAt(r._bufferIndex));else w(A)}}function w(_){d=d(_)}function F(_){m.markdownLineEnding(_)?(r.line++,r.column=1,r.offset+=_===-3?2:1,un()):_!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=_}function C(_,A){const W=A||{};return W.type=_,W.start=E(),c.events.push(["enter",W,c]),a.push(W),W}function z(_){const A=a.pop();return A.end=E(),c.events.push(["exit",A,c]),A}function S(_,A){q(_,A.from)}function k(_,A){A.restore()}function R(_,A){return W;function W(nn,Y,en){let rn,pn,dn,u;return Array.isArray(nn)?D(nn):"tokenize"in nn?D([nn]):P(nn);function P(I){return j;function j(B){const Q=B!==null&&I[B],V=B!==null&&I.null,cn=[...Array.isArray(Q)?Q:Q?[Q]:[],...Array.isArray(V)?V:V?[V]:[]];return D(cn)(B)}}function D(I){return rn=I,pn=0,I.length===0?en:f(I[pn])}function f(I){return j;function j(B){return u=X(),dn=I,I.partial||(c.currentConstruct=I),I.name&&c.parser.constructs.disable.null.includes(I.name)?H():I.tokenize.call(A?Object.assign(Object.create(c),A):c,s,M,H)(B)}}function M(I){return _(dn,u),Y}function H(I){return u.restore(),++pn<rn.length?f(rn[pn]):en}}}function q(_,A){_.resolveAll&&!l.includes(_)&&l.push(_),_.resolve&&m.splice(c.events,A,c.events.length-A,_.resolve(c.events.slice(A),c)),_.resolveTo&&(c.events=_.resolveTo(c.events,c))}function X(){const _=E(),A=c.previous,W=c.currentConstruct,nn=c.events.length,Y=Array.from(a);return{restore:en,from:nn};function en(){r=_,c.previous=A,c.currentConstruct=W,c.events.length=nn,a=Y,un()}}function un(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Zi(n,t){const e=t.start._index,r=t.start._bufferIndex,i=t.end._index,l=t.end._bufferIndex;let o;if(e===i)o=[n[e].slice(r,l)];else{if(o=n.slice(e,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(n[i].slice(0,l))}return o}function nl(n,t){let e=-1;const r=[];let i;for(;++e<n.length;){const l=n[e];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
|
|
10
|
-
`;break}case-3:{o=`\r
|
|
11
|
-
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}const el={42:gn,43:gn,45:gn,48:gn,49:gn,50:gn,51:gn,52:gn,53:gn,54:gn,55:gn,56:gn,57:gn,62:Ct},tl={91:ri},rl={[-2]:Jn,[-1]:Jn,32:Jn},il={35:si,42:Un,45:[Xe,Un],60:hi,61:Xe,95:Un,96:We,126:We},ll={38:Pt,92:Tt},ol={[-5]:Zn,[-4]:Zn,[-3]:Zn,33:Li,38:Pt,42:fe,60:[zr,bi],91:_i,92:[ai,Tt],93:ke,95:fe,96:Wr},al={null:[fe,Qi]},ul={null:[42,95]},sl={null:[]},cl=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ul,contentInitial:tl,disable:sl,document:el,flow:il,flowInitial:rl,insideSpan:al,string:ll,text:ol},Symbol.toStringTag,{value:"Module"}));function fl(n){const t=n||{},e=m.combineExtensions([cl,...t.extensions||[]]),r={defined:[],lazy:{},constructs:e,content:i(Pr),document:i(Ar),flow:i(Yi),string:i(Xi),text:i(Ki)};return r;function i(l){return o;function o(a){return Ji(r,l,a)}}}const Ke=/[\0\t\n\r]/g;function pl(){let n=1,t="",e=!0,r;return i;function i(l,o,a){const s=[];let c,d,p,g,h;for(l=t+l.toString(o),p=0,t="",e&&(l.charCodeAt(0)===65279&&p++,e=void 0);p<l.length;){if(Ke.lastIndex=p,c=Ke.exec(l),g=c&&c.index!==void 0?c.index:l.length,h=l.charCodeAt(g),!c){t=l.slice(p);break}if(h===10&&p===g&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),p<g&&(s.push(l.slice(p,g)),n+=g-p),h){case 0:{s.push(65533),n++;break}case 9:{for(d=Math.ceil(n/4)*4,s.push(-2);n++<d;)s.push(-1);break}case 10:{s.push(-4),n=1;break}default:r=!0,n=1}p=g+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}function hl(n){for(;!Ot(n););return n}function zt(n,t){const e=Number.parseInt(n,t);return e<9||e===11||e>13&&e<32||e>126&&e<160||e>55295&&e<57344||e>64975&&e<65008||(e&65535)===65535||(e&65535)===65534||e>1114111?"�":String.fromCharCode(e)}const dl=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ml(n){return n.replace(dl,gl)}function gl(n,t,e){if(t)return t;if(e.charCodeAt(0)===35){const i=e.charCodeAt(1),l=i===120||i===88;return zt(e.slice(l?2:1),l?16:10)}return xe(e)||n}const pe={}.hasOwnProperty,yl=function(n,t,e){return typeof t!="string"&&(e=t,t=void 0),xl(e)(hl(fl(e).document().write(pl()(n,t,!0))))};function xl(n={}){const t=Mt({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ce),autolinkProtocol:A,autolinkEmail:A,atxHeading:s(Rn),blockQuote:s(O),characterEscape:A,characterReference:A,codeFenced:s(mn),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(mn,c),codeText:s(L,c),codeTextData:A,data:A,codeFlowValue:A,definition:s(En),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Tn),hardBreakEscape:s(Ee),hardBreakTrailing:s(Ee),htmlFlow:s(ve,c),htmlFlowData:A,htmlText:s(ve,c),htmlTextData:A,image:s(Xt),label:c,link:s(Ce),listItem:s(Kt),listItemValue:y,listOrdered:s(Te,E),listUnordered:s(Te),paragraph:s(Gt),reference:I,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Rn),strong:s(Jt),thematicBreak:s(nr)},exit:{atxHeading:p(),atxHeadingSequence:q,autolink:p(),autolinkEmail:cn,autolinkProtocol:V,blockQuote:p(),characterEscapeValue:W,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:Q,codeFenced:p(C),codeFencedFence:F,codeFencedFenceInfo:x,codeFencedFenceMeta:w,codeFlowValue:W,codeIndented:p(z),codeText:p(pn),codeTextData:W,data:W,definition:p(),definitionDestinationString:R,definitionLabelString:S,definitionTitleString:k,emphasis:p(),hardBreakEscape:p(Y),hardBreakTrailing:p(Y),htmlFlow:p(en),htmlFlowData:W,htmlText:p(rn),htmlTextData:W,image:p(u),label:D,labelText:P,lineEnding:nn,link:p(dn),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:j,resourceDestinationString:f,resourceTitleString:M,resource:H,setextHeading:p(_),setextHeadingLineSequence:un,setextHeadingText:X,strong:p(),thematicBreak:p()}},n.mdastExtensions||[]),e={};return r;function r(b){let T={type:"root",children:[]};const $=[T],tn=[],xn=[],_n={stack:$,tokenStack:tn,config:t,enter:d,exit:g,buffer:c,resume:h,setData:l,getData:o};let an=-1;for(;++an<b.length;)if(b[an][1].type==="listOrdered"||b[an][1].type==="listUnordered")if(b[an][0]==="enter")xn.push(an);else{const hn=xn.pop();an=i(b,hn,an)}for(an=-1;++an<b.length;){const hn=t[b[an][0]];pe.call(hn,b[an][1].type)&&hn[b[an][1].type].call(Object.assign({sliceSerialize:b[an][2].sliceSerialize},_n),b[an][1])}if(tn.length>0){const hn=tn[tn.length-1];(hn[1]||Ge).call(_n,void 0,hn[0])}for(T.position={start:a(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:a(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},an=-1;++an<t.transforms.length;)T=t.transforms[an](T)||T;return T}function i(b,T,$){let tn=T-1,xn=-1,_n=!1,an,hn,Pn,zn;for(;++tn<=$;){const sn=b[tn];if(sn[1].type==="listUnordered"||sn[1].type==="listOrdered"||sn[1].type==="blockQuote"?(sn[0]==="enter"?xn++:xn--,zn=void 0):sn[1].type==="lineEndingBlank"?sn[0]==="enter"&&(an&&!zn&&!xn&&!Pn&&(Pn=tn),zn=void 0):sn[1].type==="linePrefix"||sn[1].type==="listItemValue"||sn[1].type==="listItemMarker"||sn[1].type==="listItemPrefix"||sn[1].type==="listItemPrefixWhitespace"||(zn=void 0),!xn&&sn[0]==="enter"&&sn[1].type==="listItemPrefix"||xn===-1&&sn[0]==="exit"&&(sn[1].type==="listUnordered"||sn[1].type==="listOrdered")){if(an){let Vn=tn;for(hn=void 0;Vn--;){const Sn=b[Vn];if(Sn[1].type==="lineEnding"||Sn[1].type==="lineEndingBlank"){if(Sn[0]==="exit")continue;hn&&(b[hn][1].type="lineEndingBlank",_n=!0),Sn[1].type="lineEnding",hn=Vn}else if(!(Sn[1].type==="linePrefix"||Sn[1].type==="blockQuotePrefix"||Sn[1].type==="blockQuotePrefixWhitespace"||Sn[1].type==="blockQuoteMarker"||Sn[1].type==="listItemIndent"))break}Pn&&(!hn||Pn<hn)&&(an._spread=!0),an.end=Object.assign({},hn?b[hn][1].start:sn[1].end),b.splice(hn||tn,0,["exit",an,sn[2]]),tn++,$++}sn[1].type==="listItemPrefix"&&(an={type:"listItem",_spread:!1,start:Object.assign({},sn[1].start)},b.splice(tn,0,["enter",an,sn[2]]),tn++,$++,Pn=void 0,zn=!0)}}return b[T][1]._spread=_n,$}function l(b,T){e[b]=T}function o(b){return e[b]}function a(b){return{line:b.line,column:b.column,offset:b.offset}}function s(b,T){return $;function $(tn){d.call(this,b(tn),tn),T&&T.call(this,tn)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(b,T,$){return this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([T,$]),b.position={start:a(T.start)},b}function p(b){return T;function T($){b&&b.call(this,$),g.call(this,$)}}function g(b,T){const $=this.stack.pop(),tn=this.tokenStack.pop();if(tn)tn[0].type!==b.type&&(T?T.call(this,b,tn[0]):(tn[1]||Ge).call(this,b,tn[0]));else throw new Error("Cannot close `"+b.type+"` ("+Fn({start:b.start,end:b.end})+"): it’s not open");return $.position.end=a(b.end),$}function h(){return Cr(this.stack.pop())}function E(){l("expectingFirstListItemValue",!0)}function y(b){if(o("expectingFirstListItemValue")){const T=this.stack[this.stack.length-2];T.start=Number.parseInt(this.sliceSerialize(b),10),l("expectingFirstListItemValue")}}function x(){const b=this.resume(),T=this.stack[this.stack.length-1];T.lang=b}function w(){const b=this.resume(),T=this.stack[this.stack.length-1];T.meta=b}function F(){o("flowCodeInside")||(this.buffer(),l("flowCodeInside",!0))}function C(){const b=this.resume(),T=this.stack[this.stack.length-1];T.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),l("flowCodeInside")}function z(){const b=this.resume(),T=this.stack[this.stack.length-1];T.value=b.replace(/(\r?\n|\r)$/g,"")}function S(b){const T=this.resume(),$=this.stack[this.stack.length-1];$.label=T,$.identifier=An(this.sliceSerialize(b)).toLowerCase()}function k(){const b=this.resume(),T=this.stack[this.stack.length-1];T.title=b}function R(){const b=this.resume(),T=this.stack[this.stack.length-1];T.url=b}function q(b){const T=this.stack[this.stack.length-1];if(!T.depth){const $=this.sliceSerialize(b).length;T.depth=$}}function X(){l("setextHeadingSlurpLineEnding",!0)}function un(b){const T=this.stack[this.stack.length-1];T.depth=this.sliceSerialize(b).charCodeAt(0)===61?1:2}function _(){l("setextHeadingSlurpLineEnding")}function A(b){const T=this.stack[this.stack.length-1];let $=T.children[T.children.length-1];(!$||$.type!=="text")&&($=Zt(),$.position={start:a(b.start)},T.children.push($)),this.stack.push($)}function W(b){const T=this.stack.pop();T.value+=this.sliceSerialize(b),T.position.end=a(b.end)}function nn(b){const T=this.stack[this.stack.length-1];if(o("atHardBreak")){const $=T.children[T.children.length-1];$.position.end=a(b.end),l("atHardBreak");return}!o("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(T.type)&&(A.call(this,b),W.call(this,b))}function Y(){l("atHardBreak",!0)}function en(){const b=this.resume(),T=this.stack[this.stack.length-1];T.value=b}function rn(){const b=this.resume(),T=this.stack[this.stack.length-1];T.value=b}function pn(){const b=this.resume(),T=this.stack[this.stack.length-1];T.value=b}function dn(){const b=this.stack[this.stack.length-1];o("inReference")?(b.type+="Reference",b.referenceType=o("referenceType")||"shortcut",delete b.url,delete b.title):(delete b.identifier,delete b.label),l("referenceType")}function u(){const b=this.stack[this.stack.length-1];o("inReference")?(b.type+="Reference",b.referenceType=o("referenceType")||"shortcut",delete b.url,delete b.title):(delete b.identifier,delete b.label),l("referenceType")}function P(b){const T=this.stack[this.stack.length-2],$=this.sliceSerialize(b);T.label=ml($),T.identifier=An($).toLowerCase()}function D(){const b=this.stack[this.stack.length-1],T=this.resume(),$=this.stack[this.stack.length-1];l("inReference",!0),$.type==="link"?$.children=b.children:$.alt=T}function f(){const b=this.resume(),T=this.stack[this.stack.length-1];T.url=b}function M(){const b=this.resume(),T=this.stack[this.stack.length-1];T.title=b}function H(){l("inReference")}function I(){l("referenceType","collapsed")}function j(b){const T=this.resume(),$=this.stack[this.stack.length-1];$.label=T,$.identifier=An(this.sliceSerialize(b)).toLowerCase(),l("referenceType","full")}function B(b){l("characterReferenceType",b.type)}function Q(b){const T=this.sliceSerialize(b),$=o("characterReferenceType");let tn;$?(tn=zt(T,$==="characterReferenceMarkerNumeric"?10:16),l("characterReferenceType")):tn=xe(T);const xn=this.stack.pop();xn.value+=tn,xn.position.end=a(b.end)}function V(b){W.call(this,b);const T=this.stack[this.stack.length-1];T.url=this.sliceSerialize(b)}function cn(b){W.call(this,b);const T=this.stack[this.stack.length-1];T.url="mailto:"+this.sliceSerialize(b)}function O(){return{type:"blockquote",children:[]}}function mn(){return{type:"code",lang:null,meta:null,value:""}}function L(){return{type:"inlineCode",value:""}}function En(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Tn(){return{type:"emphasis",children:[]}}function Rn(){return{type:"heading",depth:void 0,children:[]}}function Ee(){return{type:"break"}}function ve(){return{type:"html",value:""}}function Xt(){return{type:"image",title:null,url:"",alt:null}}function Ce(){return{type:"link",title:null,url:"",children:[]}}function Te(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function Kt(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function Gt(){return{type:"paragraph",children:[]}}function Jt(){return{type:"strong",children:[]}}function Zt(){return{type:"text",value:""}}function nr(){return{type:"thematicBreak"}}}function Mt(n,t){let e=-1;for(;++e<t.length;){const r=t[e];Array.isArray(r)?Mt(n,r):kl(n,r)}return n}function kl(n,t){let e;for(e in t)if(pe.call(t,e)){const r=e==="canContainEols"||e==="transforms",l=(pe.call(n,e)?n[e]:void 0)||(n[e]=r?[]:{}),o=t[e];o&&(r?n[e]=[...l,...o]:Object.assign(l,o))}}function Ge(n,t){throw n?new Error("Cannot close `"+n.type+"` ("+Fn({start:n.start,end:n.end})+"): a different token (`"+t.type+"`, "+Fn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Fn({start:t.start,end:t.end})+") is still open")}function bl(n){Object.assign(this,{Parser:e=>{const r=this.data("settings");return yl(e,Object.assign({},r,n,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}var he={exports:{}},Nn={exports:{}},K={};/** @license React v16.13.1
|
|
12
|
-
* react-is.production.min.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Je;function wl(){if(Je)return K;Je=1;var n=typeof Symbol=="function"&&Symbol.for,t=n?Symbol.for("react.element"):60103,e=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,o=n?Symbol.for("react.provider"):60109,a=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,E=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,x=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,F=n?Symbol.for("react.scope"):60119;function C(S){if(typeof S=="object"&&S!==null){var k=S.$$typeof;switch(k){case t:switch(S=S.type,S){case s:case c:case r:case l:case i:case p:return S;default:switch(S=S&&S.$$typeof,S){case a:case d:case E:case h:case o:return S;default:return k}}case e:return k}}}function z(S){return C(S)===c}return K.AsyncMode=s,K.ConcurrentMode=c,K.ContextConsumer=a,K.ContextProvider=o,K.Element=t,K.ForwardRef=d,K.Fragment=r,K.Lazy=E,K.Memo=h,K.Portal=e,K.Profiler=l,K.StrictMode=i,K.Suspense=p,K.isAsyncMode=function(S){return z(S)||C(S)===s},K.isConcurrentMode=z,K.isContextConsumer=function(S){return C(S)===a},K.isContextProvider=function(S){return C(S)===o},K.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},K.isForwardRef=function(S){return C(S)===d},K.isFragment=function(S){return C(S)===r},K.isLazy=function(S){return C(S)===E},K.isMemo=function(S){return C(S)===h},K.isPortal=function(S){return C(S)===e},K.isProfiler=function(S){return C(S)===l},K.isStrictMode=function(S){return C(S)===i},K.isSuspense=function(S){return C(S)===p},K.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===c||S===l||S===i||S===p||S===g||typeof S=="object"&&S!==null&&(S.$$typeof===E||S.$$typeof===h||S.$$typeof===o||S.$$typeof===a||S.$$typeof===d||S.$$typeof===x||S.$$typeof===w||S.$$typeof===F||S.$$typeof===y)},K.typeOf=C,K}var G={};/** @license React v16.13.1
|
|
19
|
-
* react-is.development.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Ze;function Sl(){return Ze||(Ze=1,process.env.NODE_ENV!=="production"&&function(){var n=typeof Symbol=="function"&&Symbol.for,t=n?Symbol.for("react.element"):60103,e=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,o=n?Symbol.for("react.provider"):60109,a=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,c=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,E=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,x=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,F=n?Symbol.for("react.scope"):60119;function C(O){return typeof O=="string"||typeof O=="function"||O===r||O===c||O===l||O===i||O===p||O===g||typeof O=="object"&&O!==null&&(O.$$typeof===E||O.$$typeof===h||O.$$typeof===o||O.$$typeof===a||O.$$typeof===d||O.$$typeof===x||O.$$typeof===w||O.$$typeof===F||O.$$typeof===y)}function z(O){if(typeof O=="object"&&O!==null){var mn=O.$$typeof;switch(mn){case t:var L=O.type;switch(L){case s:case c:case r:case l:case i:case p:return L;default:var En=L&&L.$$typeof;switch(En){case a:case d:case E:case h:case o:return En;default:return mn}}case e:return mn}}}var S=s,k=c,R=a,q=o,X=t,un=d,_=r,A=E,W=h,nn=e,Y=l,en=i,rn=p,pn=!1;function dn(O){return pn||(pn=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),u(O)||z(O)===s}function u(O){return z(O)===c}function P(O){return z(O)===a}function D(O){return z(O)===o}function f(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function M(O){return z(O)===d}function H(O){return z(O)===r}function I(O){return z(O)===E}function j(O){return z(O)===h}function B(O){return z(O)===e}function Q(O){return z(O)===l}function V(O){return z(O)===i}function cn(O){return z(O)===p}G.AsyncMode=S,G.ConcurrentMode=k,G.ContextConsumer=R,G.ContextProvider=q,G.Element=X,G.ForwardRef=un,G.Fragment=_,G.Lazy=A,G.Memo=W,G.Portal=nn,G.Profiler=Y,G.StrictMode=en,G.Suspense=rn,G.isAsyncMode=dn,G.isConcurrentMode=u,G.isContextConsumer=P,G.isContextProvider=D,G.isElement=f,G.isForwardRef=M,G.isFragment=H,G.isLazy=I,G.isMemo=j,G.isPortal=B,G.isProfiler=Q,G.isStrictMode=V,G.isSuspense=cn,G.isValidElementType=C,G.typeOf=z}()),G}var nt;function Ft(){return nt||(nt=1,process.env.NODE_ENV==="production"?Nn.exports=wl():Nn.exports=Sl()),Nn.exports}/*
|
|
26
|
-
object-assign
|
|
27
|
-
(c) Sindre Sorhus
|
|
28
|
-
@license MIT
|
|
29
|
-
*/var ne,et;function El(){if(et)return ne;et=1;var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable;function r(l){if(l==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(l)}function i(){try{if(!Object.assign)return!1;var l=new String("abc");if(l[5]="de",Object.getOwnPropertyNames(l)[0]==="5")return!1;for(var o={},a=0;a<10;a++)o["_"+String.fromCharCode(a)]=a;var s=Object.getOwnPropertyNames(o).map(function(d){return o[d]});if(s.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ne=i()?Object.assign:function(l,o){for(var a,s=r(l),c,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var p in a)t.call(a,p)&&(s[p]=a[p]);if(n){c=n(a);for(var g=0;g<c.length;g++)e.call(a,c[g])&&(s[c[g]]=a[c[g]])}}return s},ne}var ee,tt;function be(){if(tt)return ee;tt=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ee=n,ee}var te,rt;function Dt(){return rt||(rt=1,te=Function.call.bind(Object.prototype.hasOwnProperty)),te}var re,it;function vl(){if(it)return re;it=1;var n=function(){};if(process.env.NODE_ENV!=="production"){var t=be(),e={},r=Dt();n=function(l){var o="Warning: "+l;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(l,o,a,s,c){if(process.env.NODE_ENV!=="production"){for(var d in l)if(r(l,d)){var p;try{if(typeof l[d]!="function"){var g=Error((s||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}p=l[d](o,d,s,a,null,t)}catch(E){p=E}if(p&&!(p instanceof Error)&&n((s||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in e)){e[p.message]=!0;var h=c?c():"";n("Failed "+a+" type: "+p.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(e={})},re=i,re}var ie,lt;function Cl(){if(lt)return ie;lt=1;var n=Ft(),t=El(),e=be(),r=Dt(),i=vl(),l=function(){};process.env.NODE_ENV!=="production"&&(l=function(a){var s="Warning: "+a;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function o(){return null}return ie=function(a,s){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(u){var P=u&&(c&&u[c]||u[d]);if(typeof P=="function")return P}var g="<<anonymous>>",h={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:F(),arrayOf:C,element:z(),elementType:S(),instanceOf:k,node:un(),objectOf:q,oneOf:R,oneOfType:X,shape:A,exact:W};function E(u,P){return u===P?u!==0||1/u===1/P:u!==u&&P!==P}function y(u,P){this.message=u,this.data=P&&typeof P=="object"?P:{},this.stack=""}y.prototype=Error.prototype;function x(u){if(process.env.NODE_ENV!=="production")var P={},D=0;function f(H,I,j,B,Q,V,cn){if(B=B||g,V=V||j,cn!==e){if(s){var O=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw O.name="Invariant Violation",O}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var mn=B+":"+j;!P[mn]&&D<3&&(l("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+B+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),P[mn]=!0,D++)}}return I[j]==null?H?I[j]===null?new y("The "+Q+" `"+V+"` is marked as required "+("in `"+B+"`, but its value is `null`.")):new y("The "+Q+" `"+V+"` is marked as required in "+("`"+B+"`, but its value is `undefined`.")):null:u(I,j,B,Q,V)}var M=f.bind(null,!1);return M.isRequired=f.bind(null,!0),M}function w(u){function P(D,f,M,H,I,j){var B=D[f],Q=en(B);if(Q!==u){var V=rn(B);return new y("Invalid "+H+" `"+I+"` of type "+("`"+V+"` supplied to `"+M+"`, expected ")+("`"+u+"`."),{expectedType:u})}return null}return x(P)}function F(){return x(o)}function C(u){function P(D,f,M,H,I){if(typeof u!="function")return new y("Property `"+I+"` of component `"+M+"` has invalid PropType notation inside arrayOf.");var j=D[f];if(!Array.isArray(j)){var B=en(j);return new y("Invalid "+H+" `"+I+"` of type "+("`"+B+"` supplied to `"+M+"`, expected an array."))}for(var Q=0;Q<j.length;Q++){var V=u(j,Q,M,H,I+"["+Q+"]",e);if(V instanceof Error)return V}return null}return x(P)}function z(){function u(P,D,f,M,H){var I=P[D];if(!a(I)){var j=en(I);return new y("Invalid "+M+" `"+H+"` of type "+("`"+j+"` supplied to `"+f+"`, expected a single ReactElement."))}return null}return x(u)}function S(){function u(P,D,f,M,H){var I=P[D];if(!n.isValidElementType(I)){var j=en(I);return new y("Invalid "+M+" `"+H+"` of type "+("`"+j+"` supplied to `"+f+"`, expected a single ReactElement type."))}return null}return x(u)}function k(u){function P(D,f,M,H,I){if(!(D[f]instanceof u)){var j=u.name||g,B=dn(D[f]);return new y("Invalid "+H+" `"+I+"` of type "+("`"+B+"` supplied to `"+M+"`, expected ")+("instance of `"+j+"`."))}return null}return x(P)}function R(u){if(!Array.isArray(u))return process.env.NODE_ENV!=="production"&&(arguments.length>1?l("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):l("Invalid argument supplied to oneOf, expected an array.")),o;function P(D,f,M,H,I){for(var j=D[f],B=0;B<u.length;B++)if(E(j,u[B]))return null;var Q=JSON.stringify(u,function(cn,O){var mn=rn(O);return mn==="symbol"?String(O):O});return new y("Invalid "+H+" `"+I+"` of value `"+String(j)+"` "+("supplied to `"+M+"`, expected one of "+Q+"."))}return x(P)}function q(u){function P(D,f,M,H,I){if(typeof u!="function")return new y("Property `"+I+"` of component `"+M+"` has invalid PropType notation inside objectOf.");var j=D[f],B=en(j);if(B!=="object")return new y("Invalid "+H+" `"+I+"` of type "+("`"+B+"` supplied to `"+M+"`, expected an object."));for(var Q in j)if(r(j,Q)){var V=u(j,Q,M,H,I+"."+Q,e);if(V instanceof Error)return V}return null}return x(P)}function X(u){if(!Array.isArray(u))return process.env.NODE_ENV!=="production"&&l("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var P=0;P<u.length;P++){var D=u[P];if(typeof D!="function")return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+pn(D)+" at index "+P+"."),o}function f(M,H,I,j,B){for(var Q=[],V=0;V<u.length;V++){var cn=u[V],O=cn(M,H,I,j,B,e);if(O==null)return null;O.data&&r(O.data,"expectedType")&&Q.push(O.data.expectedType)}var mn=Q.length>0?", expected one of type ["+Q.join(", ")+"]":"";return new y("Invalid "+j+" `"+B+"` supplied to "+("`"+I+"`"+mn+"."))}return x(f)}function un(){function u(P,D,f,M,H){return nn(P[D])?null:new y("Invalid "+M+" `"+H+"` supplied to "+("`"+f+"`, expected a ReactNode."))}return x(u)}function _(u,P,D,f,M){return new y((u||"React class")+": "+P+" type `"+D+"."+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+M+"`.")}function A(u){function P(D,f,M,H,I){var j=D[f],B=en(j);if(B!=="object")return new y("Invalid "+H+" `"+I+"` of type `"+B+"` "+("supplied to `"+M+"`, expected `object`."));for(var Q in u){var V=u[Q];if(typeof V!="function")return _(M,H,I,Q,rn(V));var cn=V(j,Q,M,H,I+"."+Q,e);if(cn)return cn}return null}return x(P)}function W(u){function P(D,f,M,H,I){var j=D[f],B=en(j);if(B!=="object")return new y("Invalid "+H+" `"+I+"` of type `"+B+"` "+("supplied to `"+M+"`, expected `object`."));var Q=t({},D[f],u);for(var V in Q){var cn=u[V];if(r(u,V)&&typeof cn!="function")return _(M,H,I,V,rn(cn));if(!cn)return new y("Invalid "+H+" `"+I+"` key `"+V+"` supplied to `"+M+"`.\nBad object: "+JSON.stringify(D[f],null," ")+`
|
|
30
|
-
Valid keys: `+JSON.stringify(Object.keys(u),null," "));var O=cn(j,V,M,H,I+"."+V,e);if(O)return O}return null}return x(P)}function nn(u){switch(typeof u){case"number":case"string":case"undefined":return!0;case"boolean":return!u;case"object":if(Array.isArray(u))return u.every(nn);if(u===null||a(u))return!0;var P=p(u);if(P){var D=P.call(u),f;if(P!==u.entries){for(;!(f=D.next()).done;)if(!nn(f.value))return!1}else for(;!(f=D.next()).done;){var M=f.value;if(M&&!nn(M[1]))return!1}}else return!1;return!0;default:return!1}}function Y(u,P){return u==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function en(u){var P=typeof u;return Array.isArray(u)?"array":u instanceof RegExp?"object":Y(P,u)?"symbol":P}function rn(u){if(typeof u>"u"||u===null)return""+u;var P=en(u);if(P==="object"){if(u instanceof Date)return"date";if(u instanceof RegExp)return"regexp"}return P}function pn(u){var P=rn(u);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function dn(u){return!u.constructor||!u.constructor.name?g:u.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},ie}var le,ot;function Tl(){if(ot)return le;ot=1;var n=be();function t(){}function e(){}return e.resetWarningCache=t,le=function(){function r(o,a,s,c,d,p){if(p!==n){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var l={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:e,resetWarningCache:t};return l.PropTypes=l,l},le}if(process.env.NODE_ENV!=="production"){var Pl=Ft(),Ol=!0;he.exports=Cl()(Pl.isElement,Ol)}else he.exports=Tl()();var Al=he.exports;const N=m.getDefaultExportFromCjs(Al);class Bn{constructor(t,e,r){this.property=t,this.normal=e,r&&(this.space=r)}}Bn.prototype.property={};Bn.prototype.normal={};Bn.prototype.space=null;function jt(n,t){const e={},r={};let i=-1;for(;++i<n.length;)Object.assign(e,n[i].property),Object.assign(r,n[i].normal);return new Bn(e,r,t)}function de(n){return n.toLowerCase()}class bn{constructor(t,e){this.property=t,this.attribute=e}}bn.prototype.space=null;bn.prototype.boolean=!1;bn.prototype.booleanish=!1;bn.prototype.overloadedBoolean=!1;bn.prototype.number=!1;bn.prototype.commaSeparated=!1;bn.prototype.spaceSeparated=!1;bn.prototype.commaOrSpaceSeparated=!1;bn.prototype.mustUseProperty=!1;bn.prototype.defined=!1;let Il=0;const U=Cn(),fn=Cn(),Bt=Cn(),v=Cn(),ln=Cn(),In=Cn(),yn=Cn();function Cn(){return 2**++Il}const me=Object.freeze(Object.defineProperty({__proto__:null,boolean:U,booleanish:fn,commaOrSpaceSeparated:yn,commaSeparated:In,number:v,overloadedBoolean:Bt,spaceSeparated:ln},Symbol.toStringTag,{value:"Module"})),oe=Object.keys(me);class we extends bn{constructor(t,e,r,i){let l=-1;if(super(t,e),at(this,"space",i),typeof r=="number")for(;++l<oe.length;){const o=oe[l];at(this,oe[l],(r&me[o])===me[o])}}}we.prototype.defined=!0;function at(n,t,e){e&&(n[t]=e)}const Ll={}.hasOwnProperty;function Ln(n){const t={},e={};let r;for(r in n.properties)if(Ll.call(n.properties,r)){const i=n.properties[r],l=new we(r,n.transform(n.attributes||{},r),i,n.space);n.mustUseProperty&&n.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,e[de(r)]=r,e[de(l.attribute)]=r}return new Bn(t,e,n.space)}const Nt=Ln({space:"xlink",transform(n,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),$t=Ln({space:"xml",transform(n,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function qt(n,t){return t in n?n[t]:t}function Ut(n,t){return qt(n,t.toLowerCase())}const Ht=Ln({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ut,properties:{xmlns:null,xmlnsXLink:null}}),Vt=Ln({transform(n,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:fn,ariaAutoComplete:null,ariaBusy:fn,ariaChecked:fn,ariaColCount:v,ariaColIndex:v,ariaColSpan:v,ariaControls:ln,ariaCurrent:null,ariaDescribedBy:ln,ariaDetails:null,ariaDisabled:fn,ariaDropEffect:ln,ariaErrorMessage:null,ariaExpanded:fn,ariaFlowTo:ln,ariaGrabbed:fn,ariaHasPopup:null,ariaHidden:fn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ln,ariaLevel:v,ariaLive:null,ariaModal:fn,ariaMultiLine:fn,ariaMultiSelectable:fn,ariaOrientation:null,ariaOwns:ln,ariaPlaceholder:null,ariaPosInSet:v,ariaPressed:fn,ariaReadOnly:fn,ariaRelevant:null,ariaRequired:fn,ariaRoleDescription:ln,ariaRowCount:v,ariaRowIndex:v,ariaRowSpan:v,ariaSelected:fn,ariaSetSize:v,ariaSort:null,ariaValueMax:v,ariaValueMin:v,ariaValueNow:v,ariaValueText:null,role:null}}),Rl=Ln({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ut,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:In,acceptCharset:ln,accessKey:ln,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:ln,autoFocus:U,autoPlay:U,blocking:ln,capture:null,charSet:null,checked:U,cite:null,className:ln,cols:v,colSpan:null,content:null,contentEditable:fn,controls:U,controlsList:ln,coords:v|In,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:Bt,draggable:fn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:ln,height:v,hidden:U,high:v,href:null,hrefLang:null,htmlFor:ln,httpEquiv:ln,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:ln,itemRef:ln,itemScope:U,itemType:ln,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:v,manifest:null,max:null,maxLength:v,media:null,method:null,min:null,minLength:v,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:U,optimum:v,pattern:null,ping:ln,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:ln,required:U,reversed:U,rows:v,rowSpan:v,sandbox:ln,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shape:null,size:v,sizes:null,slot:null,span:v,spellCheck:fn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:v,step:null,style:null,tabIndex:v,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:fn,width:v,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ln,axis:null,background:null,bgColor:null,border:v,borderColor:null,bottomMargin:v,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:v,leftMargin:v,link:null,longDesc:null,lowSrc:null,marginHeight:v,marginWidth:v,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:v,rules:null,scheme:null,scrolling:fn,standby:null,summary:null,text:null,topMargin:v,valueType:null,version:null,vAlign:null,vLink:null,vSpace:v,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:U,disableRemotePlayback:U,prefix:null,property:null,results:v,security:null,unselectable:null}}),_l=Ln({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:qt,properties:{about:yn,accentHeight:v,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:v,amplitude:v,arabicForm:null,ascent:v,attributeName:null,attributeType:null,azimuth:v,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:v,by:null,calcMode:null,capHeight:v,className:ln,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:v,diffuseConstant:v,direction:null,display:null,dur:null,divisor:v,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:v,enableBackground:null,end:null,event:null,exponent:v,externalResourcesRequired:null,fill:null,fillOpacity:v,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:In,g2:In,glyphName:In,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:v,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:v,horizOriginX:v,horizOriginY:v,id:null,ideographic:v,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:v,k:v,k1:v,k2:v,k3:v,k4:v,kernelMatrix:yn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:v,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:v,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:v,overlineThickness:v,paintOrder:null,panose1:null,path:null,pathLength:v,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ln,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:v,pointsAtY:v,pointsAtZ:v,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yn,rev:yn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yn,requiredFeatures:yn,requiredFonts:yn,requiredFormats:yn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:v,specularExponent:v,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:v,strikethroughThickness:v,string:null,stroke:null,strokeDashArray:yn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:v,strokeOpacity:v,strokeWidth:null,style:null,surfaceScale:v,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yn,tabIndex:v,tableValues:null,target:null,targetX:v,targetY:v,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:v,underlineThickness:v,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:v,values:null,vAlphabetic:v,vMathematical:v,vectorEffect:null,vHanging:v,vIdeographic:v,version:null,vertAdvY:v,vertOriginX:v,vertOriginY:v,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:v,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),zl=/^data[-\w.:]+$/i,ut=/-[a-z]/g,Ml=/[A-Z]/g;function Fl(n,t){const e=de(t);let r=t,i=bn;if(e in n.normal)return n.property[n.normal[e]];if(e.length>4&&e.slice(0,4)==="data"&&zl.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(ut,jl);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!ut.test(l)){let o=l.replace(Ml,Dl);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=we}return new i(r,t)}function Dl(n){return"-"+n.toLowerCase()}function jl(n){return n.charAt(1).toUpperCase()}const st={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Bl=jt([$t,Nt,Ht,Vt,Rl],"html"),Nl=jt([$t,Nt,Ht,Vt,_l],"svg");function $l(n){if(n.allowedElements&&n.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(n.allowedElements||n.disallowedElements||n.allowElement)return t=>{m.visit(t,"element",(e,r,i)=>{const l=i;let o;if(n.allowedElements?o=!n.allowedElements.includes(e.tagName):n.disallowedElements&&(o=n.disallowedElements.includes(e.tagName)),!o&&n.allowElement&&typeof r=="number"&&(o=!n.allowElement(e,r,l)),o&&typeof r=="number")return n.unwrapDisallowed&&e.children?l.children.splice(r,1,...e.children):l.children.splice(r,1),r})}}var ge={exports:{}},J={};/**
|
|
31
|
-
* @license React
|
|
32
|
-
* react-is.production.min.js
|
|
33
|
-
*
|
|
34
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
35
|
-
*
|
|
36
|
-
* This source code is licensed under the MIT license found in the
|
|
37
|
-
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/var ct;function ql(){if(ct)return J;ct=1;var n=Symbol.for("react.element"),t=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function y(x){if(typeof x=="object"&&x!==null){var w=x.$$typeof;switch(w){case n:switch(x=x.type,x){case e:case i:case r:case c:case d:return x;default:switch(x=x&&x.$$typeof,x){case a:case o:case s:case g:case p:case l:return x;default:return w}}case t:return w}}}return J.ContextConsumer=o,J.ContextProvider=l,J.Element=n,J.ForwardRef=s,J.Fragment=e,J.Lazy=g,J.Memo=p,J.Portal=t,J.Profiler=i,J.StrictMode=r,J.Suspense=c,J.SuspenseList=d,J.isAsyncMode=function(){return!1},J.isConcurrentMode=function(){return!1},J.isContextConsumer=function(x){return y(x)===o},J.isContextProvider=function(x){return y(x)===l},J.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===n},J.isForwardRef=function(x){return y(x)===s},J.isFragment=function(x){return y(x)===e},J.isLazy=function(x){return y(x)===g},J.isMemo=function(x){return y(x)===p},J.isPortal=function(x){return y(x)===t},J.isProfiler=function(x){return y(x)===i},J.isStrictMode=function(x){return y(x)===r},J.isSuspense=function(x){return y(x)===c},J.isSuspenseList=function(x){return y(x)===d},J.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===e||x===i||x===r||x===c||x===d||x===h||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===p||x.$$typeof===l||x.$$typeof===o||x.$$typeof===s||x.$$typeof===E||x.getModuleId!==void 0)},J.typeOf=y,J}var Z={};/**
|
|
39
|
-
* @license React
|
|
40
|
-
* react-is.development.js
|
|
41
|
-
*
|
|
42
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the MIT license found in the
|
|
45
|
-
* LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/var ft;function Ul(){return ft||(ft=1,process.env.NODE_ENV!=="production"&&function(){var n=Symbol.for("react.element"),t=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),E=!1,y=!1,x=!1,w=!1,F=!1,C;C=Symbol.for("react.module.reference");function z(L){return!!(typeof L=="string"||typeof L=="function"||L===e||L===i||F||L===r||L===c||L===d||w||L===h||E||y||x||typeof L=="object"&&L!==null&&(L.$$typeof===g||L.$$typeof===p||L.$$typeof===l||L.$$typeof===o||L.$$typeof===s||L.$$typeof===C||L.getModuleId!==void 0))}function S(L){if(typeof L=="object"&&L!==null){var En=L.$$typeof;switch(En){case n:var Tn=L.type;switch(Tn){case e:case i:case r:case c:case d:return Tn;default:var Rn=Tn&&Tn.$$typeof;switch(Rn){case a:case o:case s:case g:case p:case l:return Rn;default:return En}}case t:return En}}}var k=o,R=l,q=n,X=s,un=e,_=g,A=p,W=t,nn=i,Y=r,en=c,rn=d,pn=!1,dn=!1;function u(L){return pn||(pn=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function P(L){return dn||(dn=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(L){return S(L)===o}function f(L){return S(L)===l}function M(L){return typeof L=="object"&&L!==null&&L.$$typeof===n}function H(L){return S(L)===s}function I(L){return S(L)===e}function j(L){return S(L)===g}function B(L){return S(L)===p}function Q(L){return S(L)===t}function V(L){return S(L)===i}function cn(L){return S(L)===r}function O(L){return S(L)===c}function mn(L){return S(L)===d}Z.ContextConsumer=k,Z.ContextProvider=R,Z.Element=q,Z.ForwardRef=X,Z.Fragment=un,Z.Lazy=_,Z.Memo=A,Z.Portal=W,Z.Profiler=nn,Z.StrictMode=Y,Z.Suspense=en,Z.SuspenseList=rn,Z.isAsyncMode=u,Z.isConcurrentMode=P,Z.isContextConsumer=D,Z.isContextProvider=f,Z.isElement=M,Z.isForwardRef=H,Z.isFragment=I,Z.isLazy=j,Z.isMemo=B,Z.isPortal=Q,Z.isProfiler=V,Z.isStrictMode=cn,Z.isSuspense=O,Z.isSuspenseList=mn,Z.isValidElementType=z,Z.typeOf=S}()),Z}process.env.NODE_ENV==="production"?ge.exports=ql():ge.exports=Ul();var Hl=ge.exports;const Vl=m.getDefaultExportFromCjs(Hl);function Yl(n){const t=n&&typeof n=="object"&&n.type==="text"?n.value||"":n;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function Wl(n){return n.join(" ").trim()}function Ql(n,t){const e={};return(n[n.length-1]===""?[...n,""]:n).join((e.padRight?" ":"")+","+(e.padLeft===!1?"":" ")).trim()}var Se={exports:{}},pt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Xl=/\n/g,Kl=/^\s*/,Gl=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Jl=/^:\s*/,Zl=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,no=/^[;\s]*/,eo=/^\s+|\s+$/g,to=`
|
|
47
|
-
`,ht="/",dt="*",vn="",ro="comment",io="declaration",lo=function(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function i(E){var y=E.match(Xl);y&&(e+=y.length);var x=E.lastIndexOf(to);r=~x?E.length-x:r+E.length}function l(){var E={line:e,column:r};return function(y){return y.position=new o(E),c(),y}}function o(E){this.start=E,this.end={line:e,column:r},this.source=t.source}o.prototype.content=n;function a(E){var y=new Error(t.source+":"+e+":"+r+": "+E);if(y.reason=E,y.filename=t.source,y.line=e,y.column=r,y.source=n,!t.silent)throw y}function s(E){var y=E.exec(n);if(y){var x=y[0];return i(x),n=n.slice(x.length),y}}function c(){s(Kl)}function d(E){var y;for(E=E||[];y=p();)y!==!1&&E.push(y);return E}function p(){var E=l();if(!(ht!=n.charAt(0)||dt!=n.charAt(1))){for(var y=2;vn!=n.charAt(y)&&(dt!=n.charAt(y)||ht!=n.charAt(y+1));)++y;if(y+=2,vn===n.charAt(y-1))return a("End of comment missing");var x=n.slice(2,y-2);return r+=2,i(x),n=n.slice(y),r+=2,E({type:ro,comment:x})}}function g(){var E=l(),y=s(Gl);if(y){if(p(),!s(Jl))return a("property missing ':'");var x=s(Zl),w=E({type:io,property:mt(y[0].replace(pt,vn)),value:x?mt(x[0].replace(pt,vn)):vn});return s(no),w}}function h(){var E=[];d(E);for(var y;y=g();)y!==!1&&(E.push(y),d(E));return E}return c(),h()};function mt(n){return n?n.replace(eo,vn):vn}var oo=lo;function Yt(n,t){var e=null;if(!n||typeof n!="string")return e;for(var r,i=oo(n),l=typeof t=="function",o,a,s=0,c=i.length;s<c;s++)r=i[s],o=r.property,a=r.value,l?t(o,a,r):a&&(e||(e={}),e[o]=a);return e}Se.exports=Yt;Se.exports.default=Yt;var ao=Se.exports;const uo=m.getDefaultExportFromCjs(ao),ye={}.hasOwnProperty,so=new Set(["table","thead","tbody","tfoot","tr"]);function Wt(n,t){const e=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?e.push(co(n,i,r,t)):i.type==="text"?(t.type!=="element"||!so.has(t.tagName)||!Yl(i))&&e.push(i.value):i.type==="raw"&&!n.options.skipHtml&&e.push(i.value);return e}function co(n,t,e,r){const i=n.options,l=i.transformLinkUri===void 0?xt:i.transformLinkUri,o=n.schema,a=t.tagName,s={};let c=o,d;if(o.space==="html"&&a==="svg"&&(c=Nl,n.schema=c),t.properties)for(d in t.properties)ye.call(t.properties,d)&&po(s,d,t.properties[d],n);(a==="ol"||a==="ul")&&n.listDepth++;const p=Wt(n,t);(a==="ol"||a==="ul")&&n.listDepth--,n.schema=o;const g=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},h=i.components&&ye.call(i.components,a)?i.components[a]:a,E=typeof h=="string"||h===On.Fragment;if(!Vl.isValidElementType(h))throw new TypeError(`Component for name \`${a}\` not defined or is not renderable`);if(s.key=e,a==="a"&&i.linkTarget&&(s.target=typeof i.linkTarget=="function"?i.linkTarget(String(s.href||""),t.children,typeof s.title=="string"?s.title:null):i.linkTarget),a==="a"&&l&&(s.href=l(String(s.href||""),t.children,typeof s.title=="string"?s.title:null)),!E&&a==="code"&&r.type==="element"&&r.tagName!=="pre"&&(s.inline=!0),!E&&(a==="h1"||a==="h2"||a==="h3"||a==="h4"||a==="h5"||a==="h6")&&(s.level=Number.parseInt(a.charAt(1),10)),a==="img"&&i.transformImageUri&&(s.src=i.transformImageUri(String(s.src||""),String(s.alt||""),typeof s.title=="string"?s.title:null)),!E&&a==="li"&&r.type==="element"){const y=fo(t);s.checked=y&&y.properties?!!y.properties.checked:null,s.index=ae(r,t),s.ordered=r.tagName==="ol"}return!E&&(a==="ol"||a==="ul")&&(s.ordered=a==="ol",s.depth=n.listDepth),(a==="td"||a==="th")&&(s.align&&(s.style||(s.style={}),s.style.textAlign=s.align,delete s.align),E||(s.isHeader=a==="th")),!E&&a==="tr"&&r.type==="element"&&(s.isHeader=r.tagName==="thead"),i.sourcePos&&(s["data-sourcepos"]=go(g)),!E&&i.rawSourcePos&&(s.sourcePosition=t.position),!E&&i.includeElementIndex&&(s.index=ae(r,t),s.siblingCount=ae(r)),E||(s.node=t),p.length>0?On.createElement(h,s,p):On.createElement(h,s)}function fo(n){let t=-1;for(;++t<n.children.length;){const e=n.children[t];if(e.type==="element"&&e.tagName==="input")return e}return null}function ae(n,t){let e=-1,r=0;for(;++e<n.children.length&&n.children[e]!==t;)n.children[e].type==="element"&&r++;return r}function po(n,t,e,r){const i=Fl(r.schema,t);let l=e;l==null||l!==l||(Array.isArray(l)&&(l=i.commaSeparated?Ql(l):Wl(l)),i.property==="style"&&typeof l=="string"&&(l=ho(l)),i.space&&i.property?n[ye.call(st,i.property)?st[i.property]:i.property]=l:i.attribute&&(n[i.attribute]=l))}function ho(n){const t={};try{uo(n,e)}catch{}return t;function e(r,i){const l=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[l.replace(/-([a-z])/g,mo)]=i}}function mo(n,t){return t.toUpperCase()}function go(n){return[n.start.line,":",n.start.column,"-",n.end.line,":",n.end.column].map(String).join("")}const gt={}.hasOwnProperty,yo="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",$n={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function Qt(n){for(const l in $n)if(gt.call($n,l)&>.call(n,l)){const o=$n[l];console.warn(`[react-markdown] Warning: please ${o.to?`use \`${o.to}\` instead of`:"remove"} \`${l}\` (see <${yo}#${o.id}> for more info)`),delete $n[l]}const t=br().use(bl).use(n.remarkPlugins||[]).use(tr,{...n.remarkRehypeOptions,allowDangerousHtml:!0}).use(n.rehypePlugins||[]).use($l,n),e=new bt;typeof n.children=="string"?e.value=n.children:n.children!==void 0&&n.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${n.children}\`)`);const r=t.runSync(t.parse(e),e);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=On.createElement(On.Fragment,{},Wt({options:n,schema:Bl,listDepth:0},r));return n.className&&(i=On.createElement("div",{className:n.className},i)),i}Qt.propTypes={children:N.string,className:N.string,allowElement:N.func,allowedElements:N.arrayOf(N.string),disallowedElements:N.arrayOf(N.string),unwrapDisallowed:N.bool,remarkPlugins:N.arrayOf(N.oneOfType([N.object,N.func,N.arrayOf(N.oneOfType([N.bool,N.string,N.object,N.func,N.arrayOf(N.any)]))])),rehypePlugins:N.arrayOf(N.oneOfType([N.object,N.func,N.arrayOf(N.oneOfType([N.bool,N.string,N.object,N.func,N.arrayOf(N.any)]))])),sourcePos:N.bool,rawSourcePos:N.bool,skipHtml:N.bool,includeElementIndex:N.bool,transformLinkUri:N.oneOfType([N.func,N.bool]),linkTarget:N.oneOfType([N.func,N.string]),transformImageUri:N.func,components:N.object};exports.default=Qt;exports.uriTransformer=xt;
|