import{bL as fr,a7 as Ic,d as Nc,u as qc,ac as Lc,b as Oc,r as wr,C as Pc,h as Qi,ab as zc,c as Kr,a as Ee,m as ke,s as eu,k as Me,l as sr,c0 as $c,o as Wr,A as ru,J as _r,I as Cr,_ as Kn,c1 as Uc}from"./index-ff703318.js";import{r as Hc}from"./katex-83f11750.js";var it={exports:{}};/*! markmap-lib v0.14.4 | MIT License */(function(r,n){(function(i,a){a(n,Hc())})(fr,function(i,a){function c(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var p=c(a);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var u=arguments[t];for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(e[l]=u[l])}return e},d.apply(this,arguments)}/*! markmap-common v0.14.2 | MIT License */class g{constructor(){this.listeners=[]}tap(t){return this.listeners.push(t),()=>this.revoke(t)}revoke(t){const u=this.listeners.indexOf(t);u>=0&&this.listeners.splice(u,1)}revokeAll(){this.listeners.splice(0)}call(...t){for(const u of this.listeners)u(...t)}}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var u=arguments[t];for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(e[l]=u[l])}return e},v.apply(this,arguments)}function A(e,t){if(e==null)return{};var u={},l=Object.keys(e),o,s;for(s=0;s<l.length;s++)o=l[s],!(t.indexOf(o)>=0)&&(u[o]=e[o]);return u}const x=["textContent"];function k(e){return e.replace(/[&<"]/g,t=>({"&":"&amp;","<":"&lt;",'"':"&quot;"})[t])}function E(e){return e.replace(/<(\/script>)/g,"\\x3c$2")}function D(e,t){const u=t?Object.entries(t).map(([l,o])=>{if(!(o==null||o===!1))return l=` ${k(l)}`,o===!0?l:`${l}="${k(o)}"`}).filter(Boolean).join(""):"";return`<${e}${u}>`}function Y(e){return`</${e}>`}function z(e,t,u){return t==null?D(e,u):D(e,u)+(t||"")+Y(e)}function Z(e,t){const u=t.map(l=>typeof l=="function"?l.toString():JSON.stringify(l??null)).join(",");return`(${e.toString()})(${u})`}function q(e,t){return e.map(u=>{if(u.type==="script"){const l=u.data,{textContent:o}=l,s=A(l,x);return z("script",o||"",s)}if(u.type==="iife"){const{fn:l,getParams:o}=u.data;return z("script",E(Z(l,(o==null?void 0:o(t))||[])))}return""})}function X(e){return e.map(t=>t.type==="stylesheet"?z("link",null,v({rel:"stylesheet"},t.data)):z("style",t.data))}Math.random().toString(36).slice(2,8);function ie(e,{before:t,after:u}){return function(...o){const s={args:o,thisObj:this};try{t&&t(s)}catch{}s.result=e.apply(s.thisObj,s.args);try{u&&u(s)}catch{}return s.result}}function ae(e){const t={};return function(...l){const o=`${l[0]}`;let s=t[o];return s||(s={value:e(...l)},t[o]=s),s.value}}function se(e,t,u){const l=document.createElement(e);return t&&Object.entries(t).forEach(([o,s])=>{l[o]=s}),u&&Object.entries(u).forEach(([o,s])=>{l.setAttribute(o,s)}),l}const fe=ae(e=>{document.head.append(se("link",{rel:"preload",as:"script",href:e}))});async function I(e,t){if(!e.loaded&&(e.type==="script"&&(e.loaded=new Promise((u,l)=>{var o;document.head.append(se("script",v({},e.data,{onload:u,onerror:l}))),(o=e.data)!=null&&o.src||u(void 0)}).then(()=>{e.loaded=!0})),e.type==="iife")){const{fn:u,getParams:l}=e.data;u(...(l==null?void 0:l(t))||[]),e.loaded=!0}await e.loaded}async function R(e,t){const u=e.filter(l=>{var o;return l.type==="script"&&((o=l.data)==null?void 0:o.src)});u.length>1&&u.forEach(l=>fe(l.data.src)),t=v({getMarkmap:()=>window.markmap},t);for(const l of e)await I(l,t)}const $=`<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Markmap</title>
<style>
* {
  margin: 0;
  padding: 0;
}
#mindmap {
  display: block;
  width: 100vw;
  height: 100vh;
}
</style>
<!--CSS-->
</head>
<body>
<svg id="mindmap"></svg>
<!--JS-->
</body>
</html>
`,V=["https://cdn.jsdelivr.net/npm/d3@6.7.0","https://cdn.jsdelivr.net/npm/markmap-view@0.14.4"].map(e=>({type:"script",data:{src:e}}));function ue(e,t,u){u=d({baseJs:V},u);const{scripts:l,styles:o}=t,s=[...o?X(o):[]],f={getMarkmap:()=>window.markmap,getOptions:u.getOptions,jsonOptions:u.jsonOptions,root:e},h=[...q([...u.baseJs,...l||[],{type:"iife",data:{fn:(w,y,_,F)=>{const B=w();window.mm=B.Markmap.create("svg#mindmap",(y||B.deriveOptions)(F),_)},getParams:({getMarkmap:w,getOptions:y,root:_,jsonOptions:F})=>[w,y,_,F]}}],f)];return $.replace("<!--CSS-->",()=>s.join("")).replace("<!--JS-->",()=>h.join(""))}var J={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",Ffr:"𝔉",ffr:"𝔣",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"Ĳ",ijlig:"ĳ",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"	",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},C=Object.prototype.hasOwnProperty;function b(e,t){return e?C.call(e,t):!1}function M(e){return b(J,e)?J[e]:e}var S=Object.prototype.hasOwnProperty;function L(e,t){return e?S.call(e,t):!1}function K(e){var t=[].slice.call(arguments,1);return t.forEach(function(u){if(u){if(typeof u!="object")throw new TypeError(u+"must be object");Object.keys(u).forEach(function(l){e[l]=u[l]})}}),e}var W=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function U(e){return e.indexOf("\\")<0?e:e.replace(W,"$1")}function re(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function oe(e){if(e>65535){e-=65536;var t=55296+(e>>10),u=56320+(e&1023);return String.fromCharCode(t,u)}return String.fromCharCode(e)}var ce=/&([a-z#][a-z0-9]{1,31});/gi,le=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function P(e,t){var u=0,l=M(t);return t!==l?l:t.charCodeAt(0)===35&&le.test(t)&&(u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),re(u))?oe(u):e}function G(e){return e.indexOf("&")<0?e:e.replace(ce,P)}var te=/[&<>"]/,ne=/[&<>"]/g,he={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Fe(e){return he[e]}function ge(e){return te.test(e)?e.replace(ne,Fe):e}var O={};O.blockquote_open=function(){return`<blockquote>
`},O.blockquote_close=function(e,t){return"</blockquote>"+me(e,t)},O.code=function(e,t){return e[t].block?"<pre><code>"+ge(e[t].content)+"</code></pre>"+me(e,t):"<code>"+ge(e[t].content)+"</code>"},O.fence=function(e,t,u,l,o){var s=e[t],f="",h=u.langPrefix,m="",w,y,_;if(s.params){if(w=s.params.split(/\s+/g),y=w.join(" "),L(o.rules.fence_custom,w[0]))return o.rules.fence_custom[w[0]](e,t,u,l,o);m=ge(G(U(y))),f=' class="'+h+m+'"'}return u.highlight?_=u.highlight.apply(u.highlight,[s.content].concat(w))||ge(s.content):_=ge(s.content),"<pre><code"+f+">"+_+"</code></pre>"+me(e,t)},O.fence_custom={},O.heading_open=function(e,t){return"<h"+e[t].hLevel+">"},O.heading_close=function(e,t){return"</h"+e[t].hLevel+`>
`},O.hr=function(e,t,u){return(u.xhtmlOut?"<hr />":"<hr>")+me(e,t)},O.bullet_list_open=function(){return`<ul>
`},O.bullet_list_close=function(e,t){return"</ul>"+me(e,t)},O.list_item_open=function(){return"<li>"},O.list_item_close=function(){return`</li>
`},O.ordered_list_open=function(e,t){var u=e[t],l=u.order>1?' start="'+u.order+'"':"";return"<ol"+l+`>
`},O.ordered_list_close=function(e,t){return"</ol>"+me(e,t)},O.paragraph_open=function(e,t){return e[t].tight?"":"<p>"},O.paragraph_close=function(e,t){var u=!(e[t].tight&&t&&e[t-1].type==="inline"&&!e[t-1].content);return(e[t].tight?"":"</p>")+(u?me(e,t):"")},O.link_open=function(e,t,u){var l=e[t].title?' title="'+ge(G(e[t].title))+'"':"",o=u.linkTarget?' target="'+u.linkTarget+'"':"";return'<a href="'+ge(e[t].href)+'"'+l+o+">"},O.link_close=function(){return"</a>"},O.image=function(e,t,u){var l=' src="'+ge(e[t].src)+'"',o=e[t].title?' title="'+ge(G(e[t].title))+'"':"",s=' alt="'+(e[t].alt?ge(G(U(e[t].alt))):"")+'"',f=u.xhtmlOut?" /":"";return"<img"+l+s+o+f+">"},O.table_open=function(){return`<table>
`},O.table_close=function(){return`</table>
`},O.thead_open=function(){return`<thead>
`},O.thead_close=function(){return`</thead>
`},O.tbody_open=function(){return`<tbody>
`},O.tbody_close=function(){return`</tbody>
`},O.tr_open=function(){return"<tr>"},O.tr_close=function(){return`</tr>
`},O.th_open=function(e,t){var u=e[t];return"<th"+(u.align?' style="text-align:'+u.align+'"':"")+">"},O.th_close=function(){return"</th>"},O.td_open=function(e,t){var u=e[t];return"<td"+(u.align?' style="text-align:'+u.align+'"':"")+">"},O.td_close=function(){return"</td>"},O.strong_open=function(){return"<strong>"},O.strong_close=function(){return"</strong>"},O.em_open=function(){return"<em>"},O.em_close=function(){return"</em>"},O.del_open=function(){return"<del>"},O.del_close=function(){return"</del>"},O.ins_open=function(){return"<ins>"},O.ins_close=function(){return"</ins>"},O.mark_open=function(){return"<mark>"},O.mark_close=function(){return"</mark>"},O.sub=function(e,t){return"<sub>"+ge(e[t].content)+"</sub>"},O.sup=function(e,t){return"<sup>"+ge(e[t].content)+"</sup>"},O.hardbreak=function(e,t,u){return u.xhtmlOut?`<br />
`:`<br>
`},O.softbreak=function(e,t,u){return u.breaks?u.xhtmlOut?`<br />
`:`<br>
`:`
`},O.text=function(e,t){return ge(e[t].content)},O.htmlblock=function(e,t){return e[t].content},O.htmltag=function(e,t){return e[t].content},O.abbr_open=function(e,t){return'<abbr title="'+ge(G(e[t].title))+'">'},O.abbr_close=function(){return"</abbr>"},O.footnote_ref=function(e,t){var u=Number(e[t].id+1).toString(),l="fnref"+u;return e[t].subId>0&&(l+=":"+e[t].subId),'<sup class="footnote-ref"><a href="#fn'+u+'" id="'+l+'">['+u+"]</a></sup>"},O.footnote_block_open=function(e,t,u){var l=u.xhtmlOut?`<hr class="footnotes-sep" />
`:`<hr class="footnotes-sep">
`;return l+`<section class="footnotes">
<ol class="footnotes-list">
`},O.footnote_block_close=function(){return`</ol>
</section>
`},O.footnote_open=function(e,t){var u=Number(e[t].id+1).toString();return'<li id="fn'+u+'"  class="footnote-item">'},O.footnote_close=function(){return`</li>
`},O.footnote_anchor=function(e,t){var u=Number(e[t].id+1).toString(),l="fnref"+u;return e[t].subId>0&&(l+=":"+e[t].subId),' <a href="#'+l+'" class="footnote-backref">↩</a>'},O.dl_open=function(){return`<dl>
`},O.dt_open=function(){return"<dt>"},O.dd_open=function(){return"<dd>"},O.dl_close=function(){return`</dl>
`},O.dt_close=function(){return`</dt>
`},O.dd_close=function(){return`</dd>
`};function Be(e,t){return++t>=e.length-2?t:e[t].type==="paragraph_open"&&e[t].tight&&e[t+1].type==="inline"&&e[t+1].content.length===0&&e[t+2].type==="paragraph_close"&&e[t+2].tight?Be(e,t+2):t}var me=O.getBreak=function(t,u){return u=Be(t,u),u<t.length&&t[u].type==="list_item_close"?"":`
`};function Oe(){this.rules=K({},O),this.getBreak=O.getBreak}Oe.prototype.renderInline=function(e,t,u){for(var l=this.rules,o=e.length,s=0,f="";o--;)f+=l[e[s].type](e,s++,t,u,this);return f},Oe.prototype.render=function(e,t,u){for(var l=this.rules,o=e.length,s=-1,f="";++s<o;)e[s].type==="inline"?f+=this.renderInline(e[s].children,t,u):f+=l[e[s].type](e,s,t,u,this);return f};function Ce(){this.__rules__=[],this.__cache__=null}Ce.prototype.__find__=function(e){for(var t=this.__rules__.length,u=-1;t--;)if(this.__rules__[++u].name===e)return u;return-1},Ce.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(u){u.enabled&&u.alt.forEach(function(l){t.indexOf(l)<0&&t.push(l)})}),e.__cache__={},t.forEach(function(u){e.__cache__[u]=[],e.__rules__.forEach(function(l){l.enabled&&(u&&l.alt.indexOf(u)<0||e.__cache__[u].push(l.fn))})})},Ce.prototype.at=function(e,t,u){var l=this.__find__(e),o=u||{};if(l===-1)throw new Error("Parser rule not found: "+e);this.__rules__[l].fn=t,this.__rules__[l].alt=o.alt||[],this.__cache__=null},Ce.prototype.before=function(e,t,u,l){var o=this.__find__(e),s=l||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:u,alt:s.alt||[]}),this.__cache__=null},Ce.prototype.after=function(e,t,u,l){var o=this.__find__(e),s=l||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:u,alt:s.alt||[]}),this.__cache__=null},Ce.prototype.push=function(e,t,u){var l=u||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:l.alt||[]}),this.__cache__=null},Ce.prototype.enable=function(e,t){e=Array.isArray(e)?e:[e],t&&this.__rules__.forEach(function(u){u.enabled=!1}),e.forEach(function(u){var l=this.__find__(u);if(l<0)throw new Error("Rules manager: invalid rule name "+u);this.__rules__[l].enabled=!0},this),this.__cache__=null},Ce.prototype.disable=function(e){e=Array.isArray(e)?e:[e],e.forEach(function(t){var u=this.__find__(t);if(u<0)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[u].enabled=!1},this),this.__cache__=null},Ce.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Fo(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}function Ke(e,t,u,l,o){this.src=e,this.env=l,this.options=u,this.parser=t,this.tokens=o,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}Ke.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},Ke.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level},Ke.prototype.cacheSet=function(e,t){for(var u=this.cache.length;u<=e;u++)this.cache.push(0);this.cache[e]=t},Ke.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};function gr(e,t){var u,l,o,s=-1,f=e.posMax,h=e.pos,m=e.isInLabel;if(e.isInLabel)return-1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,u=1;e.pos<f;){if(o=e.src.charCodeAt(e.pos),o===91)u++;else if(o===93&&(u--,u===0)){l=!0;break}e.parser.skipToken(e)}return l?(s=e.pos,e.labelUnmatchedScopes=0):e.labelUnmatchedScopes=u-1,e.pos=h,e.isInLabel=m,s}function Bo(e,t,u,l){var o,s,f,h,m,w;if(e.charCodeAt(0)!==42||e.charCodeAt(1)!==91||e.indexOf("]:")===-1||(o=new Ke(e,t,u,l,[]),s=gr(o,1),s<0||e.charCodeAt(s+1)!==58))return-1;for(h=o.posMax,f=s+2;f<h&&o.src.charCodeAt(f)!==10;f++);return m=e.slice(2,s),w=e.slice(s+2,f).trim(),w.length===0?-1:(l.abbreviations||(l.abbreviations={}),typeof l.abbreviations[":"+m]>"u"&&(l.abbreviations[":"+m]=w),f)}function To(e){var t=e.tokens,u,l,o,s;if(!e.inlineMode){for(u=1,l=t.length-1;u<l;u++)if(t[u-1].type==="paragraph_open"&&t[u].type==="inline"&&t[u+1].type==="paragraph_close"){for(o=t[u].content;o.length&&(s=Bo(o,e.inline,e.options,e.env),!(s<0));)o=o.slice(s).trim();t[u].content=o,o.length||(t[u-1].tight=!0,t[u+1].tight=!0)}}}function wn(e){var t=G(e);try{t=decodeURI(t)}catch{}return encodeURI(t)}function Ft(e,t){var u,l,o,s=t,f=e.posMax;if(e.src.charCodeAt(t)===60){for(t++;t<f;){if(u=e.src.charCodeAt(t),u===10)return!1;if(u===62)return o=wn(U(e.src.slice(s+1,t))),e.parser.validateLink(o)?(e.pos=t+1,e.linkContent=o,!0):!1;if(u===92&&t+1<f){t+=2;continue}t++}return!1}for(l=0;t<f&&(u=e.src.charCodeAt(t),!(u===32||u<32||u===127));){if(u===92&&t+1<f){t+=2;continue}if(u===40&&(l++,l>1)||u===41&&(l--,l<0))break;t++}return s===t||(o=U(e.src.slice(s,t)),!e.parser.validateLink(o))?!1:(e.linkContent=o,e.pos=t,!0)}function Bt(e,t){var u,l=t,o=e.posMax,s=e.src.charCodeAt(t);if(s!==34&&s!==39&&s!==40)return!1;for(t++,s===40&&(s=41);t<o;){if(u=e.src.charCodeAt(t),u===s)return e.pos=t+1,e.linkContent=U(e.src.slice(l+1,t)),!0;if(u===92&&t+1<o){t+=2;continue}t++}return!1}function Tt(e){return e.trim().replace(/\s+/g," ").toUpperCase()}function Mo(e,t,u,l){var o,s,f,h,m,w,y,_,F;if(e.charCodeAt(0)!==91||e.indexOf("]:")===-1||(o=new Ke(e,t,u,l,[]),s=gr(o,0),s<0||e.charCodeAt(s+1)!==58))return-1;for(h=o.posMax,f=s+2;f<h&&(m=o.src.charCodeAt(f),!(m!==32&&m!==10));f++);if(!Ft(o,f))return-1;for(y=o.linkContent,f=o.pos,w=f,f=f+1;f<h&&(m=o.src.charCodeAt(f),!(m!==32&&m!==10));f++);for(f<h&&w!==f&&Bt(o,f)?(_=o.linkContent,f=o.pos):(_="",f=w);f<h&&o.src.charCodeAt(f)===32;)f++;return f<h&&o.src.charCodeAt(f)!==10?-1:(F=Tt(e.slice(1,s)),typeof l.references[F]>"u"&&(l.references[F]={title:_,href:y}),f)}function Ro(e){var t=e.tokens,u,l,o,s;if(e.env.references=e.env.references||{},!e.inlineMode){for(u=1,l=t.length-1;u<l;u++)if(t[u].type==="inline"&&t[u-1].type==="paragraph_open"&&t[u+1].type==="paragraph_close"){for(o=t[u].content;o.length&&(s=Mo(o,e.inline,e.options,e.env),!(s<0));)o=o.slice(s).trim();t[u].content=o,o.length||(t[u-1].tight=!0,t[u+1].tight=!0)}}}function Io(e){var t=e.tokens,u,l,o;for(l=0,o=t.length;l<o;l++)u=t[l],u.type==="inline"&&e.inline.parse(u.content,e.options,e.env,u.children)}function No(e){var t,u,l,o,s,f,h,m,w,y=0,_=!1,F={};if(e.env.footnotes&&(e.tokens=e.tokens.filter(function(B){return B.type==="footnote_reference_open"?(_=!0,m=[],w=B.label,!1):B.type==="footnote_reference_close"?(_=!1,F[":"+w]=m,!1):(_&&m.push(B),!_)}),!!e.env.footnotes.list)){for(f=e.env.footnotes.list,e.tokens.push({type:"footnote_block_open",level:y++}),t=0,u=f.length;t<u;t++){for(e.tokens.push({type:"footnote_open",id:t,level:y++}),f[t].tokens?(h=[],h.push({type:"paragraph_open",tight:!1,level:y++}),h.push({type:"inline",content:"",level:y,children:f[t].tokens}),h.push({type:"paragraph_close",tight:!1,level:--y})):f[t].label&&(h=F[":"+f[t].label]),e.tokens=e.tokens.concat(h),e.tokens[e.tokens.length-1].type==="paragraph_close"?s=e.tokens.pop():s=null,o=f[t].count>0?f[t].count:1,l=0;l<o;l++)e.tokens.push({type:"footnote_anchor",id:t,subId:l,level:y});s&&e.tokens.push(s),e.tokens.push({type:"footnote_close",level:--y})}e.tokens.push({type:"footnote_block_close",level:--y})}}var Mt=` 
()[]'".,!?-`;function _n(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function qo(e){var t,u,l,o,s,f,h,m,w,y,_,F,B=e.tokens;if(e.env.abbreviations){for(e.env.abbrRegExp||(F="(^|["+Mt.split("").map(_n).join("")+"])("+Object.keys(e.env.abbreviations).map(function(T){return T.substr(1)}).sort(function(T,N){return N.length-T.length}).map(_n).join("|")+")($|["+Mt.split("").map(_n).join("")+"])",e.env.abbrRegExp=new RegExp(F,"g")),y=e.env.abbrRegExp,u=0,l=B.length;u<l;u++)if(B[u].type==="inline"){for(o=B[u].children,t=o.length-1;t>=0;t--)if(s=o[t],s.type==="text"){for(m=0,f=s.content,y.lastIndex=0,w=s.level,h=[];_=y.exec(f);)y.lastIndex>m&&h.push({type:"text",content:f.slice(m,_.index+_[1].length),level:w}),h.push({type:"abbr_open",title:e.env.abbreviations[":"+_[2]],level:w++}),h.push({type:"text",content:_[2],level:w}),h.push({type:"abbr_close",level:--w}),m=y.lastIndex-_[3].length;h.length&&(m<f.length&&h.push({type:"text",content:f.slice(m),level:w}),B[u].children=o=[].concat(o.slice(0,t),h,o.slice(t+1)))}}}}var Lo=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Oo=/\((c|tm|r|p)\)/ig,Po={c:"©",r:"®",p:"§",tm:"™"};function zo(e){return e.indexOf("(")<0?e:e.replace(Oo,function(t,u){return Po[u.toLowerCase()]})}function $o(e){var t,u,l,o,s;if(e.options.typographer){for(s=e.tokens.length-1;s>=0;s--)if(e.tokens[s].type==="inline")for(o=e.tokens[s].children,t=o.length-1;t>=0;t--)u=o[t],u.type==="text"&&(l=u.content,l=zo(l),Lo.test(l)&&(l=l.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),u.content=l)}}var Uo=/['"]/,Rt=/['"]/g,Ho=/[-\s()\[\]]/,It="’";function Nt(e,t){return t<0||t>=e.length?!1:!Ho.test(e[t])}function tr(e,t,u){return e.substr(0,t)+u+e.substr(t+1)}function jo(e){var t,u,l,o,s,f,h,m,w,y,_,F,B,T,N,j,Q;if(e.options.typographer){for(Q=[],N=e.tokens.length-1;N>=0;N--)if(e.tokens[N].type==="inline"){for(j=e.tokens[N].children,Q.length=0,t=0;t<j.length;t++)if(u=j[t],!(u.type!=="text"||Uo.test(u.text))){for(h=j[t].level,B=Q.length-1;B>=0&&!(Q[B].level<=h);B--);Q.length=B+1,l=u.content,s=0,f=l.length;e:for(;s<f&&(Rt.lastIndex=s,o=Rt.exec(l),!!o);){if(m=!Nt(l,o.index-1),s=o.index+1,T=o[0]==="'",w=!Nt(l,s),!w&&!m){T&&(u.content=tr(u.content,o.index,It));continue}if(_=!w,F=!m,F){for(B=Q.length-1;B>=0&&(y=Q[B],!(Q[B].level<h));B--)if(y.single===T&&Q[B].level===h){y=Q[B],T?(j[y.token].content=tr(j[y.token].content,y.pos,e.options.quotes[2]),u.content=tr(u.content,o.index,e.options.quotes[3])):(j[y.token].content=tr(j[y.token].content,y.pos,e.options.quotes[0]),u.content=tr(u.content,o.index,e.options.quotes[1])),Q.length=B;continue e}}_?Q.push({token:t,pos:o.index,single:T,level:h}):F&&T&&(u.content=tr(u.content,o.index,It))}}}}}var Cn=[["block",Fo],["abbr",To],["references",Ro],["inline",Io],["footnote_tail",No],["abbr2",qo],["replacements",$o],["smartquotes",jo]];function qt(){this.options={},this.ruler=new Ce;for(var e=0;e<Cn.length;e++)this.ruler.push(Cn[e][0],Cn[e][1])}qt.prototype.process=function(e){var t,u,l;for(l=this.ruler.getRules(""),t=0,u=l.length;t<u;t++)l[t](e)};function We(e,t,u,l,o){var s,f,h,m,w,y,_;for(this.src=e,this.parser=t,this.options=u,this.env=l,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",f=this.src,y=0,_=!1,h=m=y=0,w=f.length;m<w;m++){if(s=f.charCodeAt(m),!_)if(s===32){y++;continue}else _=!0;(s===10||m===w-1)&&(s!==10&&m++,this.bMarks.push(h),this.eMarks.push(m),this.tShift.push(y),_=!1,y=0,h=m+1)}this.bMarks.push(f.length),this.eMarks.push(f.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}We.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},We.prototype.skipEmptyLines=function(t){for(var u=this.lineMax;t<u&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},We.prototype.skipSpaces=function(t){for(var u=this.src.length;t<u&&this.src.charCodeAt(t)===32;t++);return t},We.prototype.skipChars=function(t,u){for(var l=this.src.length;t<l&&this.src.charCodeAt(t)===u;t++);return t},We.prototype.skipCharsBack=function(t,u,l){if(t<=l)return t;for(;t>l;)if(u!==this.src.charCodeAt(--t))return t+1;return t},We.prototype.getLines=function(t,u,l,o){var s,f,h,m,w,y=t;if(t>=u)return"";if(y+1===u)return f=this.bMarks[y]+Math.min(this.tShift[y],l),h=o?this.eMarks[y]+1:this.eMarks[y],this.src.slice(f,h);for(m=new Array(u-t),s=0;y<u;y++,s++)w=this.tShift[y],w>l&&(w=l),w<0&&(w=0),f=this.bMarks[y]+w,y+1<u||o?h=this.eMarks[y]+1:h=this.eMarks[y],m[s]=this.src.slice(f,h);return m.join("")};function Vo(e,t,u){var l,o;if(e.tShift[t]-e.blkIndent<4)return!1;for(o=l=t+1;l<u;){if(e.isEmpty(l)){l++;continue}if(e.tShift[l]-e.blkIndent>=4){l++,o=l;continue}break}return e.line=l,e.tokens.push({type:"code",content:e.getLines(t,o,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}function Go(e,t,u,l){var o,s,f,h,m,w=!1,y=e.bMarks[t]+e.tShift[t],_=e.eMarks[t];if(y+3>_||(o=e.src.charCodeAt(y),o!==126&&o!==96)||(m=y,y=e.skipChars(y,o),s=y-m,s<3)||(f=e.src.slice(y,_).trim(),f.indexOf("`")>=0))return!1;if(l)return!0;for(h=t;h++,!(h>=u||(y=m=e.bMarks[h]+e.tShift[h],_=e.eMarks[h],y<_&&e.tShift[h]<e.blkIndent));)if(e.src.charCodeAt(y)===o&&!(e.tShift[h]-e.blkIndent>=4)&&(y=e.skipChars(y,o),!(y-m<s)&&(y=e.skipSpaces(y),!(y<_)))){w=!0;break}return s=e.tShift[t],e.line=h+(w?1:0),e.tokens.push({type:"fence",params:f,content:e.getLines(t+1,h,s,!0),lines:[t,e.line],level:e.level}),!0}function Yo(e,t,u,l){var o,s,f,h,m,w,y,_,F,B,T,N=e.bMarks[t]+e.tShift[t],j=e.eMarks[t];if(N>j||e.src.charCodeAt(N++)!==62||e.level>=e.options.maxNesting)return!1;if(l)return!0;for(e.src.charCodeAt(N)===32&&N++,m=e.blkIndent,e.blkIndent=0,h=[e.bMarks[t]],e.bMarks[t]=N,N=N<j?e.skipSpaces(N):N,s=N>=j,f=[e.tShift[t]],e.tShift[t]=N-e.bMarks[t],_=e.parser.ruler.getRules("blockquote"),o=t+1;o<u&&(N=e.bMarks[o]+e.tShift[o],j=e.eMarks[o],!(N>=j));o++){if(e.src.charCodeAt(N++)===62){e.src.charCodeAt(N)===32&&N++,h.push(e.bMarks[o]),e.bMarks[o]=N,N=N<j?e.skipSpaces(N):N,s=N>=j,f.push(e.tShift[o]),e.tShift[o]=N-e.bMarks[o];continue}if(s)break;for(T=!1,F=0,B=_.length;F<B;F++)if(_[F](e,o,u,!0)){T=!0;break}if(T)break;h.push(e.bMarks[o]),f.push(e.tShift[o]),e.tShift[o]=-1337}for(w=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:y=[t,0],level:e.level++}),e.parser.tokenize(e,t,o),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=w,y[1]=e.line,F=0;F<f.length;F++)e.bMarks[F+t]=h[F],e.tShift[F+t]=f[F];return e.blkIndent=m,!0}function Xo(e,t,u,l){var o,s,f,h=e.bMarks[t],m=e.eMarks[t];if(h+=e.tShift[t],h>m||(o=e.src.charCodeAt(h++),o!==42&&o!==45&&o!==95))return!1;for(s=1;h<m;){if(f=e.src.charCodeAt(h++),f!==o&&f!==32)return!1;f===o&&s++}return s<3?!1:(l||(e.line=t+1,e.tokens.push({type:"hr",lines:[t,e.line],level:e.level})),!0)}function Lt(e,t){var u,l,o;return l=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],l>=o||(u=e.src.charCodeAt(l++),u!==42&&u!==45&&u!==43)||l<o&&e.src.charCodeAt(l)!==32?-1:l}function Ot(e,t){var u,l=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(l+1>=o||(u=e.src.charCodeAt(l++),u<48||u>57))return-1;for(;;){if(l>=o)return-1;if(u=e.src.charCodeAt(l++),!(u>=48&&u<=57)){if(u===41||u===46)break;return-1}}return l<o&&e.src.charCodeAt(l)!==32?-1:l}function Ko(e,t){var u,l,o=e.level+2;for(u=t+2,l=e.tokens.length-2;u<l;u++)e.tokens[u].level===o&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].tight=!0,e.tokens[u].tight=!0,u+=2)}function Wo(e,t,u,l){var o,s,f,h,m,w,y,_,F,B,T,N,j,Q,ee,ye,Te,Yr,Zi=!0,Yn,Xr,Ji,Xn;if((_=Ot(e,t))>=0)j=!0;else if((_=Lt(e,t))>=0)j=!1;else return!1;if(e.level>=e.options.maxNesting)return!1;if(N=e.src.charCodeAt(_-1),l)return!0;for(ee=e.tokens.length,j?(y=e.bMarks[t]+e.tShift[t],T=Number(e.src.substr(y,_-y-1)),e.tokens.push({type:"ordered_list_open",order:T,lines:Te=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:Te=[t,0],level:e.level++}),o=t,ye=!1,Yn=e.parser.ruler.getRules("list");o<u&&(Q=e.skipSpaces(_),F=e.eMarks[o],Q>=F?B=1:B=Q-_,B>4&&(B=1),B<1&&(B=1),s=_-e.bMarks[o]+B,e.tokens.push({type:"list_item_open",lines:Yr=[t,0],level:e.level++}),h=e.blkIndent,m=e.tight,f=e.tShift[t],w=e.parentType,e.tShift[t]=Q-e.bMarks[t],e.blkIndent=s,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,u,!0),(!e.tight||ye)&&(Zi=!1),ye=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=h,e.tShift[t]=f,e.tight=m,e.parentType=w,e.tokens.push({type:"list_item_close",level:--e.level}),o=t=e.line,Yr[1]=o,Q=e.bMarks[t],!(o>=u||e.isEmpty(o)||e.tShift[o]<e.blkIndent));){for(Xn=!1,Xr=0,Ji=Yn.length;Xr<Ji;Xr++)if(Yn[Xr](e,o,u,!0)){Xn=!0;break}if(Xn)break;if(j){if(_=Ot(e,o),_<0)break}else if(_=Lt(e,o),_<0)break;if(N!==e.src.charCodeAt(_-1))break}return e.tokens.push({type:j?"ordered_list_close":"bullet_list_close",level:--e.level}),Te[1]=o,e.line=o,Zi&&Ko(e,ee),!0}function Zo(e,t,u,l){var o,s,f,h,m,w=e.bMarks[t]+e.tShift[t],y=e.eMarks[t];if(w+4>y||e.src.charCodeAt(w)!==91||e.src.charCodeAt(w+1)!==94||e.level>=e.options.maxNesting)return!1;for(h=w+2;h<y;h++){if(e.src.charCodeAt(h)===32)return!1;if(e.src.charCodeAt(h)===93)break}return h===w+2||h+1>=y||e.src.charCodeAt(++h)!==58?!1:(l||(h++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),m=e.src.slice(w+2,h-2),e.env.footnotes.refs[":"+m]=-1,e.tokens.push({type:"footnote_reference_open",label:m,level:e.level++}),o=e.bMarks[t],s=e.tShift[t],f=e.parentType,e.tShift[t]=e.skipSpaces(h)-h,e.bMarks[t]=h,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]<e.blkIndent&&(e.tShift[t]+=e.blkIndent,e.bMarks[t]-=e.blkIndent),e.parser.tokenize(e,t,u,!0),e.parentType=f,e.blkIndent-=4,e.tShift[t]=s,e.bMarks[t]=o,e.tokens.push({type:"footnote_reference_close",level:--e.level})),!0)}function Jo(e,t,u,l){var o,s,f,h=e.bMarks[t]+e.tShift[t],m=e.eMarks[t];if(h>=m||(o=e.src.charCodeAt(h),o!==35||h>=m))return!1;for(s=1,o=e.src.charCodeAt(++h);o===35&&h<m&&s<=6;)s++,o=e.src.charCodeAt(++h);return s>6||h<m&&o!==32?!1:(l||(m=e.skipCharsBack(m,32,h),f=e.skipCharsBack(m,35,h),f>h&&e.src.charCodeAt(f-1)===32&&(m=f),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:s,lines:[t,e.line],level:e.level}),h<m&&e.tokens.push({type:"inline",content:e.src.slice(h,m).trim(),level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"heading_close",hLevel:s,level:e.level})),!0)}function Qo(e,t,u){var l,o,s,f=t+1;return f>=u||e.tShift[f]<e.blkIndent||e.tShift[f]-e.blkIndent>3||(o=e.bMarks[f]+e.tShift[f],s=e.eMarks[f],o>=s)||(l=e.src.charCodeAt(o),l!==45&&l!==61)||(o=e.skipChars(o,l),o=e.skipSpaces(o),o<s)?!1:(o=e.bMarks[t]+e.tShift[t],e.line=f+1,e.tokens.push({type:"heading_open",hLevel:l===61?1:2,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:e.src.slice(o,e.eMarks[t]).trim(),level:e.level+1,lines:[t,e.line-1],children:[]}),e.tokens.push({type:"heading_close",hLevel:l===61?1:2,level:e.level}),!0)}var Pt={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(e){Pt[e]=!0});var el=/^<([a-zA-Z]{1,15})[\s\/>]/,rl=/^<\/([a-zA-Z]{1,15})[\s>]/;function nl(e){var t=e|32;return t>=97&&t<=122}function tl(e,t,u,l){var o,s,f,h=e.bMarks[t],m=e.eMarks[t],w=e.tShift[t];if(h+=w,!e.options.html||w>3||h+2>=m||e.src.charCodeAt(h)!==60)return!1;if(o=e.src.charCodeAt(h+1),o===33||o===63){if(l)return!0}else if(o===47||nl(o)){if(o===47){if(s=e.src.slice(h,m).match(rl),!s)return!1}else if(s=e.src.slice(h,m).match(el),!s)return!1;if(Pt[s[1].toLowerCase()]!==!0)return!1;if(l)return!0}else return!1;for(f=t+1;f<e.lineMax&&!e.isEmpty(f);)f++;return e.line=f,e.tokens.push({type:"htmlblock",level:e.level,lines:[t,e.line],content:e.getLines(t,f,0,!0)}),!0}function kn(e,t){var u=e.bMarks[t]+e.blkIndent,l=e.eMarks[t];return e.src.substr(u,l-u)}function il(e,t,u,l){var o,s,f,h,m,w,y,_,F,B,T;if(t+2>u||(m=t+1,e.tShift[m]<e.blkIndent)||(f=e.bMarks[m]+e.tShift[m],f>=e.eMarks[m])||(o=e.src.charCodeAt(f),o!==124&&o!==45&&o!==58)||(s=kn(e,t+1),!/^[-:| ]+$/.test(s))||(w=s.split("|"),w<=2))return!1;for(_=[],h=0;h<w.length;h++){if(F=w[h].trim(),!F){if(h===0||h===w.length-1)continue;return!1}if(!/^:?-+:?$/.test(F))return!1;F.charCodeAt(F.length-1)===58?_.push(F.charCodeAt(0)===58?"center":"right"):F.charCodeAt(0)===58?_.push("left"):_.push("")}if(s=kn(e,t).trim(),s.indexOf("|")===-1||(w=s.replace(/^\||\|$/g,"").split("|"),_.length!==w.length))return!1;if(l)return!0;for(e.tokens.push({type:"table_open",lines:B=[t,0],level:e.level++}),e.tokens.push({type:"thead_open",lines:[t,t+1],level:e.level++}),e.tokens.push({type:"tr_open",lines:[t,t+1],level:e.level++}),h=0;h<w.length;h++)e.tokens.push({type:"th_open",align:_[h],lines:[t,t+1],level:e.level++}),e.tokens.push({type:"inline",content:w[h].trim(),lines:[t,t+1],level:e.level,children:[]}),e.tokens.push({type:"th_close",level:--e.level});for(e.tokens.push({type:"tr_close",level:--e.level}),e.tokens.push({type:"thead_close",level:--e.level}),e.tokens.push({type:"tbody_open",lines:T=[t+2,0],level:e.level++}),m=t+2;m<u&&!(e.tShift[m]<e.blkIndent||(s=kn(e,m).trim(),s.indexOf("|")===-1));m++){for(w=s.replace(/^\||\|$/g,"").split("|"),e.tokens.push({type:"tr_open",level:e.level++}),h=0;h<w.length;h++)e.tokens.push({type:"td_open",align:_[h],level:e.level++}),y=w[h].substring(w[h].charCodeAt(0)===124?1:0,w[h].charCodeAt(w[h].length-1)===124?w[h].length-1:w[h].length).trim(),e.tokens.push({type:"inline",content:y,level:e.level,children:[]}),e.tokens.push({type:"td_close",level:--e.level});e.tokens.push({type:"tr_close",level:--e.level})}return e.tokens.push({type:"tbody_close",level:--e.level}),e.tokens.push({type:"table_close",level:--e.level}),B[1]=T[1]=m,e.line=m,!0}function Lr(e,t){var u,l,o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return o>=s||(l=e.src.charCodeAt(o++),l!==126&&l!==58)||(u=e.skipSpaces(o),o===u)||u>=s?-1:u}function ul(e,t){var u,l,o=e.level+2;for(u=t+2,l=e.tokens.length-2;u<l;u++)e.tokens[u].level===o&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].tight=!0,e.tokens[u].tight=!0,u+=2)}function ol(e,t,u,l){var o,s,f,h,m,w,y,_,F,B,T,N,j,Q;if(l)return e.ddIndent<0?!1:Lr(e,t)>=0;if(y=t+1,e.isEmpty(y)&&++y>u||e.tShift[y]<e.blkIndent||(o=Lr(e,y),o<0)||e.level>=e.options.maxNesting)return!1;w=e.tokens.length,e.tokens.push({type:"dl_open",lines:m=[t,0],level:e.level++}),f=t,s=y;e:for(;;){for(Q=!0,j=!1,e.tokens.push({type:"dt_open",lines:[f,f],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(f,f+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[f,f],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:h=[y,0],level:e.level++}),N=e.tight,F=e.ddIndent,_=e.blkIndent,T=e.tShift[s],B=e.parentType,e.blkIndent=e.ddIndent=e.tShift[s]+2,e.tShift[s]=o-e.bMarks[s],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,s,u,!0),(!e.tight||j)&&(Q=!1),j=e.line-s>1&&e.isEmpty(e.line-1),e.tShift[s]=T,e.tight=N,e.parentType=B,e.blkIndent=_,e.ddIndent=F,e.tokens.push({type:"dd_close",level:--e.level}),h[1]=y=e.line,y>=u||e.tShift[y]<e.blkIndent)break e;if(o=Lr(e,y),o<0)break;s=y}if(y>=u||(f=y,e.isEmpty(f))||e.tShift[f]<e.blkIndent||(s=f+1,s>=u)||(e.isEmpty(s)&&s++,s>=u)||e.tShift[s]<e.blkIndent||(o=Lr(e,s),o<0))break}return e.tokens.push({type:"dl_close",level:--e.level}),m[1]=y,e.line=y,Q&&ul(e,w),!0}function ll(e,t){var u,l,o,s,f,h=t+1,m;if(u=e.lineMax,h<u&&!e.isEmpty(h)){for(m=e.parser.ruler.getRules("paragraph");h<u&&!e.isEmpty(h);h++)if(!(e.tShift[h]-e.blkIndent>3)){for(o=!1,s=0,f=m.length;s<f;s++)if(m[s](e,h,u,!0)){o=!0;break}if(o)break}}return l=e.getLines(t,h,e.blkIndent,!1).trim(),e.line=h,l.length&&(e.tokens.push({type:"paragraph_open",tight:!1,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:l,level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"paragraph_close",tight:!1,level:e.level})),!0}var Or=[["code",Vo],["fences",Go,["paragraph","blockquote","list"]],["blockquote",Yo,["paragraph","blockquote","list"]],["hr",Xo,["paragraph","blockquote","list"]],["list",Wo,["paragraph","blockquote"]],["footnote",Zo,["paragraph"]],["heading",Jo,["paragraph","blockquote"]],["lheading",Qo],["htmlblock",tl,["paragraph","blockquote"]],["table",il,["paragraph"]],["deflist",ol,["paragraph"]],["paragraph",ll]];function Dn(){this.ruler=new Ce;for(var e=0;e<Or.length;e++)this.ruler.push(Or[e][0],Or[e][1],{alt:(Or[e][2]||[]).slice()})}Dn.prototype.tokenize=function(e,t,u){for(var l=this.ruler.getRules(""),o=l.length,s=t,f=!1,h,m;s<u&&(e.line=s=e.skipEmptyLines(s),!(s>=u||e.tShift[s]<e.blkIndent));){for(m=0;m<o&&(h=l[m](e,s,u,!1),!h);m++);if(e.tight=!f,e.isEmpty(e.line-1)&&(f=!0),s=e.line,s<u&&e.isEmpty(s)){if(f=!0,s++,s<u&&e.parentType==="list"&&e.isEmpty(s))break;e.line=s}}};var al=/[\n\t]/g,sl=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,cl=/\u00a0/g;Dn.prototype.parse=function(e,t,u,l){var o,s=0,f=0;if(!e)return[];e=e.replace(cl," "),e=e.replace(sl,`
`),e.indexOf("	")>=0&&(e=e.replace(al,function(h,m){var w;return e.charCodeAt(m)===10?(s=m+1,f=0,h):(w="    ".slice((m-s-f)%4),f=m-s+1,w)})),o=new We(e,this,t,u,l),this.tokenize(o,o.line,o.lineMax)};function fl(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function hl(e,t){for(var u=e.pos;u<e.posMax&&!fl(e.src.charCodeAt(u));)u++;return u===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,u)),e.pos=u,!0)}function pl(e,t){var u,l,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(u=e.pending.length-1,l=e.posMax,!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){for(var s=u-2;s>=0;s--)if(e.pending.charCodeAt(s)!==32){e.pending=e.pending.substring(0,s+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(o++;o<l&&e.src.charCodeAt(o)===32;)o++;return e.pos=o,!0}for(var En=[],zt=0;zt<256;zt++)En.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){En[e.charCodeAt(0)]=1});function dl(e,t){var u,l=e.pos,o=e.posMax;if(e.src.charCodeAt(l)!==92)return!1;if(l++,l<o){if(u=e.src.charCodeAt(l),u<256&&En[u]!==0)return t||(e.pending+=e.src[l]),e.pos+=2,!0;if(u===10){for(t||e.push({type:"hardbreak",level:e.level}),l++;l<o&&e.src.charCodeAt(l)===32;)l++;return e.pos=l,!0}}return t||(e.pending+="\\"),e.pos++,!0}function gl(e,t){var u,l,o,s,f,h=e.pos,m=e.src.charCodeAt(h);if(m!==96)return!1;for(u=h,h++,l=e.posMax;h<l&&e.src.charCodeAt(h)===96;)h++;for(o=e.src.slice(u,h),s=f=h;(s=e.src.indexOf("`",f))!==-1;){for(f=s+1;f<l&&e.src.charCodeAt(f)===96;)f++;if(f-s===o.length)return t||e.push({type:"code",content:e.src.slice(h,s).replace(/[ \n]+/g," ").trim(),block:!1,level:e.level}),e.pos=f,!0}return t||(e.pending+=o),e.pos+=o.length,!0}function ml(e,t){var u,l,o,s=e.posMax,f=e.pos,h,m;if(e.src.charCodeAt(f)!==126||t||f+4>=s||e.src.charCodeAt(f+1)!==126||e.level>=e.options.maxNesting||(h=f>0?e.src.charCodeAt(f-1):-1,m=e.src.charCodeAt(f+2),h===126)||m===126||m===32||m===10)return!1;for(l=f+2;l<s&&e.src.charCodeAt(l)===126;)l++;if(l>f+3)return e.pos+=l-f,t||(e.pending+=e.src.slice(f,l)),!0;for(e.pos=f+2,o=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===126&&e.src.charCodeAt(e.pos+1)===126&&(h=e.src.charCodeAt(e.pos-1),m=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,m!==126&&h!==126&&(h!==32&&h!==10?o--:m!==32&&m!==10&&o++,o<=0))){u=!0;break}e.parser.skipToken(e)}return u?(e.posMax=e.pos,e.pos=f+2,t||(e.push({type:"del_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"del_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=f,!1)}function vl(e,t){var u,l,o,s=e.posMax,f=e.pos,h,m;if(e.src.charCodeAt(f)!==43||t||f+4>=s||e.src.charCodeAt(f+1)!==43||e.level>=e.options.maxNesting||(h=f>0?e.src.charCodeAt(f-1):-1,m=e.src.charCodeAt(f+2),h===43)||m===43||m===32||m===10)return!1;for(l=f+2;l<s&&e.src.charCodeAt(l)===43;)l++;if(l!==f+2)return e.pos+=l-f,t||(e.pending+=e.src.slice(f,l)),!0;for(e.pos=f+2,o=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===43&&e.src.charCodeAt(e.pos+1)===43&&(h=e.src.charCodeAt(e.pos-1),m=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,m!==43&&h!==43&&(h!==32&&h!==10?o--:m!==32&&m!==10&&o++,o<=0))){u=!0;break}e.parser.skipToken(e)}return u?(e.posMax=e.pos,e.pos=f+2,t||(e.push({type:"ins_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"ins_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=f,!1)}function xl(e,t){var u,l,o,s=e.posMax,f=e.pos,h,m;if(e.src.charCodeAt(f)!==61||t||f+4>=s||e.src.charCodeAt(f+1)!==61||e.level>=e.options.maxNesting||(h=f>0?e.src.charCodeAt(f-1):-1,m=e.src.charCodeAt(f+2),h===61)||m===61||m===32||m===10)return!1;for(l=f+2;l<s&&e.src.charCodeAt(l)===61;)l++;if(l!==f+2)return e.pos+=l-f,t||(e.pending+=e.src.slice(f,l)),!0;for(e.pos=f+2,o=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===61&&e.src.charCodeAt(e.pos+1)===61&&(h=e.src.charCodeAt(e.pos-1),m=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,m!==61&&h!==61&&(h!==32&&h!==10?o--:m!==32&&m!==10&&o++,o<=0))){u=!0;break}e.parser.skipToken(e)}return u?(e.posMax=e.pos,e.pos=f+2,t||(e.push({type:"mark_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"mark_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=f,!1)}function $t(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function Ut(e,t){var u=t,l,o,s,f=!0,h=!0,m=e.posMax,w=e.src.charCodeAt(t);for(l=t>0?e.src.charCodeAt(t-1):-1;u<m&&e.src.charCodeAt(u)===w;)u++;return u>=m&&(f=!1),s=u-t,s>=4?f=h=!1:(o=u<m?e.src.charCodeAt(u):-1,(o===32||o===10)&&(f=!1),(l===32||l===10)&&(h=!1),w===95&&($t(l)&&(f=!1),$t(o)&&(h=!1))),{can_open:f,can_close:h,delims:s}}function yl(e,t){var u,l,o,s,f,h,m,w=e.posMax,y=e.pos,_=e.src.charCodeAt(y);if(_!==95&&_!==42||t)return!1;if(m=Ut(e,y),u=m.delims,!m.can_open)return e.pos+=u,t||(e.pending+=e.src.slice(y,e.pos)),!0;if(e.level>=e.options.maxNesting)return!1;for(e.pos=y+u,h=[u];e.pos<w;){if(e.src.charCodeAt(e.pos)===_){if(m=Ut(e,e.pos),l=m.delims,m.can_close){for(s=h.pop(),f=l;s!==f;){if(f<s){h.push(s-f);break}if(f-=s,h.length===0)break;e.pos+=s,s=h.pop()}if(h.length===0){u=s,o=!0;break}e.pos+=l;continue}m.can_open&&h.push(l),e.pos+=l;continue}e.parser.skipToken(e)}return o?(e.posMax=e.pos,e.pos=y+u,t||((u===2||u===3)&&e.push({type:"strong_open",level:e.level++}),(u===1||u===3)&&e.push({type:"em_open",level:e.level++}),e.parser.tokenize(e),(u===1||u===3)&&e.push({type:"em_close",level:--e.level}),(u===2||u===3)&&e.push({type:"strong_close",level:--e.level})),e.pos=e.posMax+u,e.posMax=w,!0):(e.pos=y,!1)}var Al=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function bl(e,t){var u,l,o=e.posMax,s=e.pos;if(e.src.charCodeAt(s)!==126||t||s+2>=o||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos<o;){if(e.src.charCodeAt(e.pos)===126){u=!0;break}e.parser.skipToken(e)}return!u||s+1===e.pos||(l=e.src.slice(s+1,e.pos),l.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=s,!1):(e.posMax=e.pos,e.pos=s+1,t||e.push({type:"sub",level:e.level,content:l.replace(Al,"$1")}),e.pos=e.posMax+1,e.posMax=o,!0)}var wl=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function _l(e,t){var u,l,o=e.posMax,s=e.pos;if(e.src.charCodeAt(s)!==94||t||s+2>=o||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos<o;){if(e.src.charCodeAt(e.pos)===94){u=!0;break}e.parser.skipToken(e)}return!u||s+1===e.pos||(l=e.src.slice(s+1,e.pos),l.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=s,!1):(e.posMax=e.pos,e.pos=s+1,t||e.push({type:"sup",level:e.level,content:l.replace(wl,"$1")}),e.pos=e.posMax+1,e.posMax=o,!0)}function Cl(e,t){var u,l,o,s,f,h,m,w,y=!1,_=e.pos,F=e.posMax,B=e.pos,T=e.src.charCodeAt(B);if(T===33&&(y=!0,T=e.src.charCodeAt(++B)),T!==91||e.level>=e.options.maxNesting||(u=B+1,l=gr(e,B),l<0))return!1;if(h=l+1,h<F&&e.src.charCodeAt(h)===40){for(h++;h<F&&(w=e.src.charCodeAt(h),!(w!==32&&w!==10));h++);if(h>=F)return!1;for(B=h,Ft(e,h)?(s=e.linkContent,h=e.pos):s="",B=h;h<F&&(w=e.src.charCodeAt(h),!(w!==32&&w!==10));h++);if(h<F&&B!==h&&Bt(e,h))for(f=e.linkContent,h=e.pos;h<F&&(w=e.src.charCodeAt(h),!(w!==32&&w!==10));h++);else f="";if(h>=F||e.src.charCodeAt(h)!==41)return e.pos=_,!1;h++}else{if(e.linkLevel>0)return!1;for(;h<F&&(w=e.src.charCodeAt(h),!(w!==32&&w!==10));h++);if(h<F&&e.src.charCodeAt(h)===91&&(B=h+1,h=gr(e,h),h>=0?o=e.src.slice(B,h++):h=B-1),o||(typeof o>"u"&&(h=l+1),o=e.src.slice(u,l)),m=e.env.references[Tt(o)],!m)return e.pos=_,!1;s=m.href,f=m.title}return t||(e.pos=u,e.posMax=l,y?e.push({type:"image",src:s,title:f,alt:e.src.substr(u,l-u),level:e.level}):(e.push({type:"link_open",href:s,title:f,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=h,e.posMax=F,!0}function kl(e,t){var u,l,o,s,f=e.posMax,h=e.pos;return h+2>=f||e.src.charCodeAt(h)!==94||e.src.charCodeAt(h+1)!==91||e.level>=e.options.maxNesting||(u=h+2,l=gr(e,h+1),l<0)?!1:(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=u,e.posMax=l,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,s=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(s)},e.linkLevel--),e.pos=l+1,e.posMax=f,!0)}function Dl(e,t){var u,l,o,s,f=e.posMax,h=e.pos;if(h+3>f||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(h)!==91||e.src.charCodeAt(h+1)!==94||e.level>=e.options.maxNesting)return!1;for(l=h+2;l<f;l++){if(e.src.charCodeAt(l)===32||e.src.charCodeAt(l)===10)return!1;if(e.src.charCodeAt(l)===93)break}return l===h+2||l>=f||(l++,u=e.src.slice(h+2,l-1),typeof e.env.footnotes.refs[":"+u]>"u")?!1:(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+u]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:u,count:0},e.env.footnotes.refs[":"+u]=o):o=e.env.footnotes.refs[":"+u],s=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:s,level:e.level})),e.pos=l,e.posMax=f,!0)}var El=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],Sl=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,Fl=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function Bl(e,t){var u,l,o,s,f,h=e.pos;return e.src.charCodeAt(h)!==60||(u=e.src.slice(h),u.indexOf(">")<0)?!1:(l=u.match(Fl),l?El.indexOf(l[1].toLowerCase())<0||(s=l[0].slice(1,-1),f=wn(s),!e.parser.validateLink(s))?!1:(t||(e.push({type:"link_open",href:f,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=l[0].length,!0):(o=u.match(Sl),o?(s=o[0].slice(1,-1),f=wn("mailto:"+s),e.parser.validateLink(f)?(t||(e.push({type:"link_open",href:f,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=o[0].length,!0):!1):!1))}function Pr(e,t){return e=e.source,t=t||"",function u(l,o){return l?(o=o.source||o,e=e.replace(l,o),u):new RegExp(e,t)}}var Tl=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,Ml=/[^"'=<>`\x00-\x20]+/,Rl=/'[^']*'/,Il=/"[^"]*"/,Nl=Pr(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",Ml)("single_quoted",Rl)("double_quoted",Il)(),ql=Pr(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",Tl)("attr_value",Nl)(),Ll=Pr(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",ql)(),Ol=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,Pl=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,zl=/<[?].*?[?]>/,$l=/<![A-Z]+\s+[^>]*>/,Ul=/<!\[CDATA\[[\s\S]*?\]\]>/,Hl=Pr(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",Ll)("close_tag",Ol)("comment",Pl)("processing",zl)("declaration",$l)("cdata",Ul)();function jl(e){var t=e|32;return t>=97&&t<=122}function Vl(e,t){var u,l,o,s=e.pos;return!e.options.html||(o=e.posMax,e.src.charCodeAt(s)!==60||s+2>=o)||(u=e.src.charCodeAt(s+1),u!==33&&u!==63&&u!==47&&!jl(u))||(l=e.src.slice(s).match(Hl),!l)?!1:(t||e.push({type:"htmltag",content:e.src.slice(s,s+l[0].length),level:e.level}),e.pos+=l[0].length,!0)}var Gl=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,Yl=/^&([a-z][a-z0-9]{1,31});/i;function Xl(e,t){var u,l,o,s=e.pos,f=e.posMax;if(e.src.charCodeAt(s)!==38)return!1;if(s+1<f){if(u=e.src.charCodeAt(s+1),u===35){if(o=e.src.slice(s).match(Gl),o)return t||(l=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),e.pending+=re(l)?oe(l):oe(65533)),e.pos+=o[0].length,!0}else if(o=e.src.slice(s).match(Yl),o){var h=M(o[1]);if(o[1]!==h)return t||(e.pending+=h),e.pos+=o[0].length,!0}}return t||(e.pending+="&"),e.pos++,!0}var Sn=[["text",hl],["newline",pl],["escape",dl],["backticks",gl],["del",ml],["ins",vl],["mark",xl],["emphasis",yl],["sub",bl],["sup",_l],["links",Cl],["footnote_inline",kl],["footnote_ref",Dl],["autolink",Bl],["htmltag",Vl],["entity",Xl]];function zr(){this.ruler=new Ce;for(var e=0;e<Sn.length;e++)this.ruler.push(Sn[e][0],Sn[e][1]);this.validateLink=Kl}zr.prototype.skipToken=function(e){var t=this.ruler.getRules(""),u=t.length,l=e.pos,o,s;if((s=e.cacheGet(l))>0){e.pos=s;return}for(o=0;o<u;o++)if(t[o](e,!0)){e.cacheSet(l,e.pos);return}e.pos++,e.cacheSet(l,e.pos)},zr.prototype.tokenize=function(e){for(var t=this.ruler.getRules(""),u=t.length,l=e.posMax,o,s;e.pos<l;){for(s=0;s<u&&(o=t[s](e,!1),!o);s++);if(o){if(e.pos>=l)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},zr.prototype.parse=function(e,t,u,l){var o=new Ke(e,this,t,u,l);this.tokenize(o)};function Kl(e){var t=["vbscript","javascript","file","data"],u=e.trim().toLowerCase();return u=G(u),!(u.indexOf(":")!==-1&&t.indexOf(u.split(":")[0])!==-1)}var Wl={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},Zl={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},Jl={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},Ql={default:Wl,full:Zl,commonmark:Jl};function Ht(e,t,u){this.src=t,this.env=u,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function He(e,t){typeof e!="string"&&(t=e,e="default"),t&&t.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:

import Remarkable from 'remarkable';
import linkify from 'remarkable/linkify';
new Remarkable().use(linkify)
`),this.inline=new zr,this.block=new Dn,this.core=new qt,this.renderer=new Oe,this.ruler=new Ce,this.options={},this.configure(Ql[e]),this.set(t||{})}He.prototype.set=function(e){K(this.options,e)},He.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(u){e.components[u].rules&&t[u].ruler.enable(e.components[u].rules,!0)})},He.prototype.use=function(e,t){return e(this,t),this},He.prototype.parse=function(e,t){var u=new Ht(this,e,t);return this.core.process(u),u.tokens},He.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},He.prototype.parseInline=function(e,t){var u=new Ht(this,e,t);return u.inlineMode=!0,this.core.process(u),u.tokens},He.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var ea=(e,t)=>{const u="\\",l="$",s=(t||{}).delimiter||l;if(s.length!==1)throw new Error("invalid delimiter");const f=p,h=(y,_)=>f.renderToString(y,{displayMode:_,throwOnError:!1}),m=(y,_,F)=>{let B=!1,T=y.bMarks[_]+y.tShift[_],N=y.eMarks[_];if(T+1>N)return!1;const j=y.src.charAt(T);if(j!==s)return!1;let Q=T;T=y.skipChars(T,j);let ee=T-Q;if(ee!==2)return!1;let ye=_;for(;++ye,!(ye>=F||(T=Q=y.bMarks[ye]+y.tShift[ye],N=y.eMarks[ye],T<N&&y.tShift[ye]<y.blkIndent));)if(y.src.charAt(T)===s&&!(y.tShift[ye]-y.blkIndent>=4)&&(T=y.skipChars(T,j),!(T-Q<ee)&&(T=y.skipSpaces(T),!(T<N)))){B=!0;break}ee=y.tShift[_],y.line=ye+(B?1:0);const Te=y.getLines(_+1,ye,ee,!0).replace(/[ \n]+/g," ").trim();return y.tokens.push({type:"katex",params:null,content:Te,lines:[_,y.line],level:y.level,block:!0}),!0},w=(y,_)=>{const F=y.pos,B=y.posMax;let T=F;if(y.src.charAt(T)!==s)return!1;for(++T;T<B&&y.src.charAt(T)===s;)++T;const N=y.src.slice(F,T);if(N.length>2)return!1;const j=T;let Q=0;for(;T<B;){const ee=y.src.charAt(T);if(ee==="{"&&(T==0||y.src.charAt(T-1)!=u))Q+=1;else if(ee==="}"&&(T==0||y.src.charAt(T-1)!=u)){if(Q-=1,Q<0)return!1}else if(ee===s&&Q===0){const ye=T;let Te=T+1;for(;Te<B&&y.src.charAt(Te)===s;)++Te;if(Te-ye===N.length){if(!_){const Yr=y.src.slice(j,ye).replace(/[ \n]+/g," ").trim();y.push({type:"katex",content:Yr,block:N.length>1,level:y.level})}return y.pos=Te,!0}}T+=1}return _||(y.pending+=N),y.pos+=N.length,!0};e.inline.ruler.push("katex",w,t),e.block.ruler.push("katex",m,t),e.renderer.rules.katex=(y,_)=>h(y[_].content,y[_].block),e.renderer.rules.katex.delimiter=s},mr={versions:{katex:"0.16.0",webfontloader:"1.6.28"},preloadScripts:[{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.js"}}],scripts:[{type:"iife",data:{fn:e=>{window.WebFontConfig={custom:{families:["KaTeX_AMS","KaTeX_Caligraphic:n4,n7","KaTeX_Fraktur:n4,n7","KaTeX_Main:n4,n7,i4,i7","KaTeX_Math:i4,i7","KaTeX_Script","KaTeX_SansSerif:n4,n7,i4","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4","KaTeX_Typewriter"]},active:()=>{e().refreshHook.call()}}},getParams({getMarkmap:e}){return[e]}}},{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/webfontloader@1.6.28/webfontloader.js",defer:!0}}],styles:[{type:"stylesheet",data:{href:"https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css"}}]};const jt="https://cdn.jsdelivr.net/npm/";function ra(e,t,u){return e.map(l=>(typeof l=="string"&&(l.startsWith(`${t}/`)?l=`${jt}${t}@${u}${l.slice(t.length)}`:l.startsWith(`${t}@`)&&(l=`${jt}${l}`)),l))}function na(){return{parser:new g,beforeParse:new g,afterParse:new g,htmltag:new g,retransform:new g}}function Kd(e){return e}let Fn;const ta=()=>(Fn||(Fn=R(mr.preloadScripts)),Fn),Bn="katex";var ia={name:Bn,config:mr,transform(e){const t=(l,o)=>{const{katex:s}=window;return s?s.renderToString(l,{displayMode:o,throwOnError:!1}):(ta().then(()=>{e.retransform.call()}),l)};let u=()=>{};return e.parser.tap(l=>{l.use(ea),l.renderer.rules.katex=(o,s)=>(u(),t(o[s].content,o[s].block))}),e.beforeParse.tap((l,o)=>{u=()=>{o.features[Bn]=!0}}),e.afterParse.tap((l,o)=>{const{frontmatter:s}=o;s!=null&&s.markmap&&["extraJs","extraCss"].forEach(f=>{s.markmap[f]&&(s.markmap[f]=ra(s.markmap[f],Bn,mr.versions.katex))})}),{styles:mr.styles,scripts:mr.scripts}}},Tn={versions:{prismjs:"1.28.0"},preloadScripts:[{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/components/prism-core.min.js"}},{type:"script",data:{src:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/plugins/autoloader/prism-autoloader.min.js"}}],styles:[{type:"stylesheet",data:{href:"https://cdn.jsdelivr.net/npm/prismjs@1.28.0/themes/prism.css"}}]};let Mn;const ua=()=>(Mn||(Mn=R(Tn.preloadScripts)),Mn);function oa(e,t){ua().then(()=>{window.Prism.plugins.autoloader.loadLanguages([e],()=>{t.retransform.call()})})}const Vt="prism";var la={name:Vt,config:Tn,transform(e){let t=()=>{};return e.parser.tap(u=>{u.set({highlight:(l,o)=>{var s;t();const{Prism:f}=window,h=f==null||(s=f.languages)==null?void 0:s[o];return h?f.highlight(l,h,o):(oa(o,e),"")}})}),e.beforeParse.tap((u,l)=>{t=()=>{l.features[Vt]=!0}}),{styles:Tn.styles}}};/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Gt(e){return typeof e>"u"||e===null}function aa(e){return typeof e=="object"&&e!==null}function sa(e){return Array.isArray(e)?e:Gt(e)?[]:[e]}function ca(e,t){var u,l,o,s;if(t)for(s=Object.keys(t),u=0,l=s.length;u<l;u+=1)o=s[u],e[o]=t[o];return e}function fa(e,t){var u="",l;for(l=0;l<t;l+=1)u+=e;return u}function ha(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var pa=Gt,da=aa,ga=sa,ma=fa,va=ha,xa=ca,de={isNothing:pa,isObject:da,toArray:ga,repeat:ma,isNegativeZero:va,extend:xa};function Yt(e,t){var u="",l=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(u+='in "'+e.mark.name+'" '),u+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(u+=`

`+e.mark.snippet),l+" "+u):l}function vr(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Yt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}vr.prototype=Object.create(Error.prototype),vr.prototype.constructor=vr,vr.prototype.toString=function(t){return this.name+": "+Yt(this,t)};var Ae=vr;function Rn(e,t,u,l,o){var s="",f="",h=Math.floor(o/2)-1;return l-t>h&&(s=" ... ",t=l-h+s.length),u-l>h&&(f=" ...",u=l+h-f.length),{str:s+e.slice(t,u).replace(/\t/g,"→")+f,pos:l-t+s.length}}function In(e,t){return de.repeat(" ",t-e.length)+e}function ya(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var u=/\r?\n|\r|\0/g,l=[0],o=[],s,f=-1;s=u.exec(e.buffer);)o.push(s.index),l.push(s.index+s[0].length),e.position<=s.index&&f<0&&(f=l.length-2);f<0&&(f=l.length-1);var h="",m,w,y=Math.min(e.line+t.linesAfter,o.length).toString().length,_=t.maxLength-(t.indent+y+3);for(m=1;m<=t.linesBefore&&!(f-m<0);m++)w=Rn(e.buffer,l[f-m],o[f-m],e.position-(l[f]-l[f-m]),_),h=de.repeat(" ",t.indent)+In((e.line-m+1).toString(),y)+" | "+w.str+`
`+h;for(w=Rn(e.buffer,l[f],o[f],e.position,_),h+=de.repeat(" ",t.indent)+In((e.line+1).toString(),y)+" | "+w.str+`
`,h+=de.repeat("-",t.indent+y+3+w.pos)+`^
`,m=1;m<=t.linesAfter&&!(f+m>=o.length);m++)w=Rn(e.buffer,l[f+m],o[f+m],e.position-(l[f]-l[f+m]),_),h+=de.repeat(" ",t.indent)+In((e.line+m+1).toString(),y)+" | "+w.str+`
`;return h.replace(/\n$/,"")}var Aa=ya,ba=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],wa=["scalar","sequence","mapping"];function _a(e){var t={};return e!==null&&Object.keys(e).forEach(function(u){e[u].forEach(function(l){t[String(l)]=u})}),t}function Ca(e,t){if(t=t||{},Object.keys(t).forEach(function(u){if(ba.indexOf(u)===-1)throw new Ae('Unknown option "'+u+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(u){return u},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=_a(t.styleAliases||null),wa.indexOf(this.kind)===-1)throw new Ae('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var ve=Ca;function Xt(e,t){var u=[];return e[t].forEach(function(l){var o=u.length;u.forEach(function(s,f){s.tag===l.tag&&s.kind===l.kind&&s.multi===l.multi&&(o=f)}),u[o]=l}),u}function ka(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,u;function l(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(t=0,u=arguments.length;t<u;t+=1)arguments[t].forEach(l);return e}function Nn(e){return this.extend(e)}Nn.prototype.extend=function(t){var u=[],l=[];if(t instanceof ve)l.push(t);else if(Array.isArray(t))l=l.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(u=u.concat(t.implicit)),t.explicit&&(l=l.concat(t.explicit));else throw new Ae("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");u.forEach(function(s){if(!(s instanceof ve))throw new Ae("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Ae("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Ae("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(s){if(!(s instanceof ve))throw new Ae("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(Nn.prototype);return o.implicit=(this.implicit||[]).concat(u),o.explicit=(this.explicit||[]).concat(l),o.compiledImplicit=Xt(o,"implicit"),o.compiledExplicit=Xt(o,"explicit"),o.compiledTypeMap=ka(o.compiledImplicit,o.compiledExplicit),o};var Kt=Nn,Wt=new ve("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Zt=new ve("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Jt=new ve("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Qt=new Kt({explicit:[Wt,Zt,Jt]});function Da(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Ea(){return null}function Sa(e){return e===null}var ei=new ve("tag:yaml.org,2002:null",{kind:"scalar",resolve:Da,construct:Ea,predicate:Sa,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Fa(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function Ba(e){return e==="true"||e==="True"||e==="TRUE"}function Ta(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ri=new ve("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Fa,construct:Ba,predicate:Ta,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Ma(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Ra(e){return 48<=e&&e<=55}function Ia(e){return 48<=e&&e<=57}function Na(e){if(e===null)return!1;var t=e.length,u=0,l=!1,o;if(!t)return!1;if(o=e[u],(o==="-"||o==="+")&&(o=e[++u]),o==="0"){if(u+1===t)return!0;if(o=e[++u],o==="b"){for(u++;u<t;u++)if(o=e[u],o!=="_"){if(o!=="0"&&o!=="1")return!1;l=!0}return l&&o!=="_"}if(o==="x"){for(u++;u<t;u++)if(o=e[u],o!=="_"){if(!Ma(e.charCodeAt(u)))return!1;l=!0}return l&&o!=="_"}if(o==="o"){for(u++;u<t;u++)if(o=e[u],o!=="_"){if(!Ra(e.charCodeAt(u)))return!1;l=!0}return l&&o!=="_"}}if(o==="_")return!1;for(;u<t;u++)if(o=e[u],o!=="_"){if(!Ia(e.charCodeAt(u)))return!1;l=!0}return!(!l||o==="_")}function qa(e){var t=e,u=1,l;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),l=t[0],(l==="-"||l==="+")&&(l==="-"&&(u=-1),t=t.slice(1),l=t[0]),t==="0")return 0;if(l==="0"){if(t[1]==="b")return u*parseInt(t.slice(2),2);if(t[1]==="x")return u*parseInt(t.slice(2),16);if(t[1]==="o")return u*parseInt(t.slice(2),8)}return u*parseInt(t,10)}function La(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!de.isNegativeZero(e)}var ni=new ve("tag:yaml.org,2002:int",{kind:"scalar",resolve:Na,construct:qa,predicate:La,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Oa=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Pa(e){return!(e===null||!Oa.test(e)||e[e.length-1]==="_")}function za(e){var t,u;return t=e.replace(/_/g,"").toLowerCase(),u=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?u===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:u*parseFloat(t,10)}var $a=/^[-+]?[0-9]+e/;function Ua(e,t){var u;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(de.isNegativeZero(e))return"-0.0";return u=e.toString(10),$a.test(u)?u.replace("e",".e"):u}function Ha(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||de.isNegativeZero(e))}var ti=new ve("tag:yaml.org,2002:float",{kind:"scalar",resolve:Pa,construct:za,predicate:Ha,represent:Ua,defaultStyle:"lowercase"}),ii=Qt.extend({implicit:[ei,ri,ni,ti]}),ui=ii,oi=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),li=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ja(e){return e===null?!1:oi.exec(e)!==null||li.exec(e)!==null}function Va(e){var t,u,l,o,s,f,h,m=0,w=null,y,_,F;if(t=oi.exec(e),t===null&&(t=li.exec(e)),t===null)throw new Error("Date resolve error");if(u=+t[1],l=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(u,l,o));if(s=+t[4],f=+t[5],h=+t[6],t[7]){for(m=t[7].slice(0,3);m.length<3;)m+="0";m=+m}return t[9]&&(y=+t[10],_=+(t[11]||0),w=(y*60+_)*6e4,t[9]==="-"&&(w=-w)),F=new Date(Date.UTC(u,l,o,s,f,h,m)),w&&F.setTime(F.getTime()-w),F}function Ga(e){return e.toISOString()}var ai=new ve("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ja,construct:Va,instanceOf:Date,represent:Ga});function Ya(e){return e==="<<"||e===null}var si=new ve("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Ya}),qn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function Xa(e){if(e===null)return!1;var t,u,l=0,o=e.length,s=qn;for(u=0;u<o;u++)if(t=s.indexOf(e.charAt(u)),!(t>64)){if(t<0)return!1;l+=6}return l%8===0}function Ka(e){var t,u,l=e.replace(/[\r\n=]/g,""),o=l.length,s=qn,f=0,h=[];for(t=0;t<o;t++)t%4===0&&t&&(h.push(f>>16&255),h.push(f>>8&255),h.push(f&255)),f=f<<6|s.indexOf(l.charAt(t));return u=o%4*6,u===0?(h.push(f>>16&255),h.push(f>>8&255),h.push(f&255)):u===18?(h.push(f>>10&255),h.push(f>>2&255)):u===12&&h.push(f>>4&255),new Uint8Array(h)}function Wa(e){var t="",u=0,l,o,s=e.length,f=qn;for(l=0;l<s;l++)l%3===0&&l&&(t+=f[u>>18&63],t+=f[u>>12&63],t+=f[u>>6&63],t+=f[u&63]),u=(u<<8)+e[l];return o=s%3,o===0?(t+=f[u>>18&63],t+=f[u>>12&63],t+=f[u>>6&63],t+=f[u&63]):o===2?(t+=f[u>>10&63],t+=f[u>>4&63],t+=f[u<<2&63],t+=f[64]):o===1&&(t+=f[u>>2&63],t+=f[u<<4&63],t+=f[64],t+=f[64]),t}function Za(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var ci=new ve("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Xa,construct:Ka,predicate:Za,represent:Wa}),Ja=Object.prototype.hasOwnProperty,Qa=Object.prototype.toString;function es(e){if(e===null)return!0;var t=[],u,l,o,s,f,h=e;for(u=0,l=h.length;u<l;u+=1){if(o=h[u],f=!1,Qa.call(o)!=="[object Object]")return!1;for(s in o)if(Ja.call(o,s))if(!f)f=!0;else return!1;if(!f)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function rs(e){return e!==null?e:[]}var fi=new ve("tag:yaml.org,2002:omap",{kind:"sequence",resolve:es,construct:rs}),ns=Object.prototype.toString;function ts(e){if(e===null)return!0;var t,u,l,o,s,f=e;for(s=new Array(f.length),t=0,u=f.length;t<u;t+=1){if(l=f[t],ns.call(l)!=="[object Object]"||(o=Object.keys(l),o.length!==1))return!1;s[t]=[o[0],l[o[0]]]}return!0}function is(e){if(e===null)return[];var t,u,l,o,s,f=e;for(s=new Array(f.length),t=0,u=f.length;t<u;t+=1)l=f[t],o=Object.keys(l),s[t]=[o[0],l[o[0]]];return s}var hi=new ve("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:ts,construct:is}),us=Object.prototype.hasOwnProperty;function os(e){if(e===null)return!0;var t,u=e;for(t in u)if(us.call(u,t)&&u[t]!==null)return!1;return!0}function ls(e){return e!==null?e:{}}var pi=new ve("tag:yaml.org,2002:set",{kind:"mapping",resolve:os,construct:ls}),Ln=ui.extend({implicit:[ai,si],explicit:[ci,fi,hi,pi]}),je=Object.prototype.hasOwnProperty,$r=1,di=2,gi=3,Ur=4,On=1,as=2,mi=3,ss=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,cs=/[\x85\u2028\u2029]/,fs=/[,\[\]\{\}]/,vi=/^(?:!|!!|![a-z\-]+!)$/i,xi=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function yi(e){return Object.prototype.toString.call(e)}function Ie(e){return e===10||e===13}function Ze(e){return e===9||e===32}function be(e){return e===9||e===32||e===10||e===13}function ir(e){return e===44||e===91||e===93||e===123||e===125}function hs(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function ps(e){return e===120?2:e===117?4:e===85?8:0}function ds(e){return 48<=e&&e<=57?e-48:-1}function Ai(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?"	":e===110?`
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function gs(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var bi=new Array(256),wi=new Array(256),ur=0;ur<256;ur++)bi[ur]=Ai(ur)?1:0,wi[ur]=Ai(ur);function ms(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ln,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function _i(e,t){var u={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return u.snippet=Aa(u),new Ae(t,u)}function H(e,t){throw _i(e,t)}function Hr(e,t){e.onWarning&&e.onWarning.call(null,_i(e,t))}var Ci={YAML:function(t,u,l){var o,s,f;t.version!==null&&H(t,"duplication of %YAML directive"),l.length!==1&&H(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(l[0]),o===null&&H(t,"ill-formed argument of the YAML directive"),s=parseInt(o[1],10),f=parseInt(o[2],10),s!==1&&H(t,"unacceptable YAML version of the document"),t.version=l[0],t.checkLineBreaks=f<2,f!==1&&f!==2&&Hr(t,"unsupported YAML version of the document")},TAG:function(t,u,l){var o,s;l.length!==2&&H(t,"TAG directive accepts exactly two arguments"),o=l[0],s=l[1],vi.test(o)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),je.call(t.tagMap,o)&&H(t,'there is a previously declared suffix for "'+o+'" tag handle'),xi.test(s)||H(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{H(t,"tag prefix is malformed: "+s)}t.tagMap[o]=s}};function Ve(e,t,u,l){var o,s,f,h;if(t<u){if(h=e.input.slice(t,u),l)for(o=0,s=h.length;o<s;o+=1)f=h.charCodeAt(o),f===9||32<=f&&f<=1114111||H(e,"expected valid JSON character");else ss.test(h)&&H(e,"the stream contains non-printable characters");e.result+=h}}function ki(e,t,u,l){var o,s,f,h;for(de.isObject(u)||H(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(u),f=0,h=o.length;f<h;f+=1)s=o[f],je.call(t,s)||(t[s]=u[s],l[s]=!0)}function or(e,t,u,l,o,s,f,h,m){var w,y;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),w=0,y=o.length;w<y;w+=1)Array.isArray(o[w])&&H(e,"nested arrays are not supported inside keys"),typeof o=="object"&&yi(o[w])==="[object Object]"&&(o[w]="[object Object]");if(typeof o=="object"&&yi(o)==="[object Object]"&&(o="[object Object]"),o=String(o),t===null&&(t={}),l==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(w=0,y=s.length;w<y;w+=1)ki(e,t,s[w],u);else ki(e,t,s,u);else!e.json&&!je.call(u,o)&&je.call(t,o)&&(e.line=f||e.line,e.lineStart=h||e.lineStart,e.position=m||e.position,H(e,"duplicated mapping key")),o==="__proto__"?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[o]=s,delete u[o];return t}function Pn(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):H(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function pe(e,t,u){for(var l=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Ze(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(Ie(o))for(Pn(e),o=e.input.charCodeAt(e.position),l++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return u!==-1&&l!==0&&e.lineIndent<u&&Hr(e,"deficient indentation"),l}function jr(e){var t=e.position,u;return u=e.input.charCodeAt(t),!!((u===45||u===46)&&u===e.input.charCodeAt(t+1)&&u===e.input.charCodeAt(t+2)&&(t+=3,u=e.input.charCodeAt(t),u===0||be(u)))}function zn(e,t){t===1?e.result+=" ":t>1&&(e.result+=de.repeat(`
`,t-1))}function vs(e,t,u){var l,o,s,f,h,m,w,y,_=e.kind,F=e.result,B;if(B=e.input.charCodeAt(e.position),be(B)||ir(B)||B===35||B===38||B===42||B===33||B===124||B===62||B===39||B===34||B===37||B===64||B===96||(B===63||B===45)&&(o=e.input.charCodeAt(e.position+1),be(o)||u&&ir(o)))return!1;for(e.kind="scalar",e.result="",s=f=e.position,h=!1;B!==0;){if(B===58){if(o=e.input.charCodeAt(e.position+1),be(o)||u&&ir(o))break}else if(B===35){if(l=e.input.charCodeAt(e.position-1),be(l))break}else{if(e.position===e.lineStart&&jr(e)||u&&ir(B))break;if(Ie(B))if(m=e.line,w=e.lineStart,y=e.lineIndent,pe(e,!1,-1),e.lineIndent>=t){h=!0,B=e.input.charCodeAt(e.position);continue}else{e.position=f,e.line=m,e.lineStart=w,e.lineIndent=y;break}}h&&(Ve(e,s,f,!1),zn(e,e.line-m),s=f=e.position,h=!1),Ze(B)||(f=e.position+1),B=e.input.charCodeAt(++e.position)}return Ve(e,s,f,!1),e.result?!0:(e.kind=_,e.result=F,!1)}function xs(e,t){var u,l,o;if(u=e.input.charCodeAt(e.position),u!==39)return!1;for(e.kind="scalar",e.result="",e.position++,l=o=e.position;(u=e.input.charCodeAt(e.position))!==0;)if(u===39)if(Ve(e,l,e.position,!0),u=e.input.charCodeAt(++e.position),u===39)l=e.position,e.position++,o=e.position;else return!0;else Ie(u)?(Ve(e,l,o,!0),zn(e,pe(e,!1,t)),l=o=e.position):e.position===e.lineStart&&jr(e)?H(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);H(e,"unexpected end of the stream within a single quoted scalar")}function ys(e,t){var u,l,o,s,f,h;if(h=e.input.charCodeAt(e.position),h!==34)return!1;for(e.kind="scalar",e.result="",e.position++,u=l=e.position;(h=e.input.charCodeAt(e.position))!==0;){if(h===34)return Ve(e,u,e.position,!0),e.position++,!0;if(h===92){if(Ve(e,u,e.position,!0),h=e.input.charCodeAt(++e.position),Ie(h))pe(e,!1,t);else if(h<256&&bi[h])e.result+=wi[h],e.position++;else if((f=ps(h))>0){for(o=f,s=0;o>0;o--)h=e.input.charCodeAt(++e.position),(f=hs(h))>=0?s=(s<<4)+f:H(e,"expected hexadecimal character");e.result+=gs(s),e.position++}else H(e,"unknown escape sequence");u=l=e.position}else Ie(h)?(Ve(e,u,l,!0),zn(e,pe(e,!1,t)),u=l=e.position):e.position===e.lineStart&&jr(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,l=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function As(e,t){var u=!0,l,o,s,f=e.tag,h,m=e.anchor,w,y,_,F,B,T=Object.create(null),N,j,Q,ee;if(ee=e.input.charCodeAt(e.position),ee===91)y=93,B=!1,h=[];else if(ee===123)y=125,B=!0,h={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),ee=e.input.charCodeAt(++e.position);ee!==0;){if(pe(e,!0,t),ee=e.input.charCodeAt(e.position),ee===y)return e.position++,e.tag=f,e.anchor=m,e.kind=B?"mapping":"sequence",e.result=h,!0;u?ee===44&&H(e,"expected the node content, but found ','"):H(e,"missed comma between flow collection entries"),j=N=Q=null,_=F=!1,ee===63&&(w=e.input.charCodeAt(e.position+1),be(w)&&(_=F=!0,e.position++,pe(e,!0,t))),l=e.line,o=e.lineStart,s=e.position,lr(e,t,$r,!1,!0),j=e.tag,N=e.result,pe(e,!0,t),ee=e.input.charCodeAt(e.position),(F||e.line===l)&&ee===58&&(_=!0,ee=e.input.charCodeAt(++e.position),pe(e,!0,t),lr(e,t,$r,!1,!0),Q=e.result),B?or(e,h,T,j,N,Q,l,o,s):_?h.push(or(e,null,T,j,N,Q,l,o,s)):h.push(N),pe(e,!0,t),ee=e.input.charCodeAt(e.position),ee===44?(u=!0,ee=e.input.charCodeAt(++e.position)):u=!1}H(e,"unexpected end of the stream within a flow collection")}function bs(e,t){var u,l,o=On,s=!1,f=!1,h=t,m=0,w=!1,y,_;if(_=e.input.charCodeAt(e.position),_===124)l=!1;else if(_===62)l=!0;else return!1;for(e.kind="scalar",e.result="";_!==0;)if(_=e.input.charCodeAt(++e.position),_===43||_===45)On===o?o=_===43?mi:as:H(e,"repeat of a chomping mode identifier");else if((y=ds(_))>=0)y===0?H(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):f?H(e,"repeat of an indentation width identifier"):(h=t+y-1,f=!0);else break;if(Ze(_)){do _=e.input.charCodeAt(++e.position);while(Ze(_));if(_===35)do _=e.input.charCodeAt(++e.position);while(!Ie(_)&&_!==0)}for(;_!==0;){for(Pn(e),e.lineIndent=0,_=e.input.charCodeAt(e.position);(!f||e.lineIndent<h)&&_===32;)e.lineIndent++,_=e.input.charCodeAt(++e.position);if(!f&&e.lineIndent>h&&(h=e.lineIndent),Ie(_)){m++;continue}if(e.lineIndent<h){o===mi?e.result+=de.repeat(`
`,s?1+m:m):o===On&&s&&(e.result+=`
`);break}for(l?Ze(_)?(w=!0,e.result+=de.repeat(`
`,s?1+m:m)):w?(w=!1,e.result+=de.repeat(`
`,m+1)):m===0?s&&(e.result+=" "):e.result+=de.repeat(`
`,m):e.result+=de.repeat(`
`,s?1+m:m),s=!0,f=!0,m=0,u=e.position;!Ie(_)&&_!==0;)_=e.input.charCodeAt(++e.position);Ve(e,u,e.position,!1)}return!0}function Di(e,t){var u,l=e.tag,o=e.anchor,s=[],f,h=!1,m;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),m=e.input.charCodeAt(e.position);m!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,H(e,"tab characters must not be used in indentation")),!(m!==45||(f=e.input.charCodeAt(e.position+1),!be(f))));){if(h=!0,e.position++,pe(e,!0,-1)&&e.lineIndent<=t){s.push(null),m=e.input.charCodeAt(e.position);continue}if(u=e.line,lr(e,t,gi,!1,!0),s.push(e.result),pe(e,!0,-1),m=e.input.charCodeAt(e.position),(e.line===u||e.lineIndent>t)&&m!==0)H(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return h?(e.tag=l,e.anchor=o,e.kind="sequence",e.result=s,!0):!1}function ws(e,t,u){var l,o,s,f,h,m,w=e.tag,y=e.anchor,_={},F=Object.create(null),B=null,T=null,N=null,j=!1,Q=!1,ee;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=_),ee=e.input.charCodeAt(e.position);ee!==0;){if(!j&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,H(e,"tab characters must not be used in indentation")),l=e.input.charCodeAt(e.position+1),s=e.line,(ee===63||ee===58)&&be(l))ee===63?(j&&(or(e,_,F,B,T,null,f,h,m),B=T=N=null),Q=!0,j=!0,o=!0):j?(j=!1,o=!0):H(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,ee=l;else{if(f=e.line,h=e.lineStart,m=e.position,!lr(e,u,di,!1,!0))break;if(e.line===s){for(ee=e.input.charCodeAt(e.position);Ze(ee);)ee=e.input.charCodeAt(++e.position);if(ee===58)ee=e.input.charCodeAt(++e.position),be(ee)||H(e,"a whitespace character is expected after the key-value separator within a block mapping"),j&&(or(e,_,F,B,T,null,f,h,m),B=T=N=null),Q=!0,j=!1,o=!1,B=e.tag,T=e.result;else if(Q)H(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=w,e.anchor=y,!0}else if(Q)H(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=w,e.anchor=y,!0}if((e.line===s||e.lineIndent>t)&&(j&&(f=e.line,h=e.lineStart,m=e.position),lr(e,t,Ur,!0,o)&&(j?T=e.result:N=e.result),j||(or(e,_,F,B,T,N,f,h,m),B=T=N=null),pe(e,!0,-1),ee=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&ee!==0)H(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return j&&or(e,_,F,B,T,null,f,h,m),Q&&(e.tag=w,e.anchor=y,e.kind="mapping",e.result=_),Q}function _s(e){var t,u=!1,l=!1,o,s,f;if(f=e.input.charCodeAt(e.position),f!==33)return!1;if(e.tag!==null&&H(e,"duplication of a tag property"),f=e.input.charCodeAt(++e.position),f===60?(u=!0,f=e.input.charCodeAt(++e.position)):f===33?(l=!0,o="!!",f=e.input.charCodeAt(++e.position)):o="!",t=e.position,u){do f=e.input.charCodeAt(++e.position);while(f!==0&&f!==62);e.position<e.length?(s=e.input.slice(t,e.position),f=e.input.charCodeAt(++e.position)):H(e,"unexpected end of the stream within a verbatim tag")}else{for(;f!==0&&!be(f);)f===33&&(l?H(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),vi.test(o)||H(e,"named tag handle cannot contain such characters"),l=!0,t=e.position+1)),f=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),fs.test(s)&&H(e,"tag suffix cannot contain flow indicator characters")}s&&!xi.test(s)&&H(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{H(e,"tag name is malformed: "+s)}return u?e.tag=s:je.call(e.tagMap,o)?e.tag=e.tagMap[o]+s:o==="!"?e.tag="!"+s:o==="!!"?e.tag="tag:yaml.org,2002:"+s:H(e,'undeclared tag handle "'+o+'"'),!0}function Cs(e){var t,u;if(u=e.input.charCodeAt(e.position),u!==38)return!1;for(e.anchor!==null&&H(e,"duplication of an anchor property"),u=e.input.charCodeAt(++e.position),t=e.position;u!==0&&!be(u)&&!ir(u);)u=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ks(e){var t,u,l;if(l=e.input.charCodeAt(e.position),l!==42)return!1;for(l=e.input.charCodeAt(++e.position),t=e.position;l!==0&&!be(l)&&!ir(l);)l=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an alias node must contain at least one character"),u=e.input.slice(t,e.position),je.call(e.anchorMap,u)||H(e,'unidentified alias "'+u+'"'),e.result=e.anchorMap[u],pe(e,!0,-1),!0}function lr(e,t,u,l,o){var s,f,h,m=1,w=!1,y=!1,_,F,B,T,N,j;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=f=h=Ur===u||gi===u,l&&pe(e,!0,-1)&&(w=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),m===1)for(;_s(e)||Cs(e);)pe(e,!0,-1)?(w=!0,h=s,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):h=!1;if(h&&(h=w||o),(m===1||Ur===u)&&($r===u||di===u?N=t:N=t+1,j=e.position-e.lineStart,m===1?h&&(Di(e,j)||ws(e,j,N))||As(e,N)?y=!0:(f&&bs(e,N)||xs(e,N)||ys(e,N)?y=!0:ks(e)?(y=!0,(e.tag!==null||e.anchor!==null)&&H(e,"alias node should not have any properties")):vs(e,N,$r===u)&&(y=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):m===0&&(y=h&&Di(e,j))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&H(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),_=0,F=e.implicitTypes.length;_<F;_+=1)if(T=e.implicitTypes[_],T.resolve(e.result)){e.result=T.construct(e.result),e.tag=T.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(je.call(e.typeMap[e.kind||"fallback"],e.tag))T=e.typeMap[e.kind||"fallback"][e.tag];else for(T=null,B=e.typeMap.multi[e.kind||"fallback"],_=0,F=B.length;_<F;_+=1)if(e.tag.slice(0,B[_].tag.length)===B[_].tag){T=B[_];break}T||H(e,"unknown tag !<"+e.tag+">"),e.result!==null&&T.kind!==e.kind&&H(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+T.kind+'", not "'+e.kind+'"'),T.resolve(e.result,e.tag)?(e.result=T.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):H(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||y}function Ds(e){var t=e.position,u,l,o,s=!1,f;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(f=e.input.charCodeAt(e.position))!==0&&(pe(e,!0,-1),f=e.input.charCodeAt(e.position),!(e.lineIndent>0||f!==37));){for(s=!0,f=e.input.charCodeAt(++e.position),u=e.position;f!==0&&!be(f);)f=e.input.charCodeAt(++e.position);for(l=e.input.slice(u,e.position),o=[],l.length<1&&H(e,"directive name must not be less than one character in length");f!==0;){for(;Ze(f);)f=e.input.charCodeAt(++e.position);if(f===35){do f=e.input.charCodeAt(++e.position);while(f!==0&&!Ie(f));break}if(Ie(f))break;for(u=e.position;f!==0&&!be(f);)f=e.input.charCodeAt(++e.position);o.push(e.input.slice(u,e.position))}f!==0&&Pn(e),je.call(Ci,l)?Ci[l](e,l,o):Hr(e,'unknown document directive "'+l+'"')}if(pe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,pe(e,!0,-1)):s&&H(e,"directives end mark is expected"),lr(e,e.lineIndent-1,Ur,!1,!0),pe(e,!0,-1),e.checkLineBreaks&&cs.test(e.input.slice(t,e.position))&&Hr(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&jr(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,pe(e,!0,-1));return}if(e.position<e.length-1)H(e,"end of the stream or a document separator is expected");else return}function Ei(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var u=new ms(e,t),l=e.indexOf("\0");for(l!==-1&&(u.position=l,H(u,"null byte is not allowed in input")),u.input+="\0";u.input.charCodeAt(u.position)===32;)u.lineIndent+=1,u.position+=1;for(;u.position<u.length-1;)Ds(u);return u.documents}function Es(e,t,u){t!==null&&typeof t=="object"&&typeof u>"u"&&(u=t,t=null);var l=Ei(e,u);if(typeof t!="function")return l;for(var o=0,s=l.length;o<s;o+=1)t(l[o])}function Ss(e,t){var u=Ei(e,t);if(u.length!==0){if(u.length===1)return u[0];throw new Ae("expected a single document in the stream, but found more")}}var Fs=Es,Bs=Ss,Si={loadAll:Fs,load:Bs},Fi=Object.prototype.toString,Bi=Object.prototype.hasOwnProperty,$n=65279,Ts=9,xr=10,Ms=13,Rs=32,Is=33,Ns=34,Un=35,qs=37,Ls=38,Os=39,Ps=42,Ti=44,zs=45,Vr=58,$s=61,Us=62,Hs=63,js=64,Mi=91,Ri=93,Vs=96,Ii=123,Gs=124,Ni=125,xe={};xe[0]="\\0",xe[7]="\\a",xe[8]="\\b",xe[9]="\\t",xe[10]="\\n",xe[11]="\\v",xe[12]="\\f",xe[13]="\\r",xe[27]="\\e",xe[34]='\\"',xe[92]="\\\\",xe[133]="\\N",xe[160]="\\_",xe[8232]="\\L",xe[8233]="\\P";var Ys=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Xs=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ks(e,t){var u,l,o,s,f,h,m;if(t===null)return{};for(u={},l=Object.keys(t),o=0,s=l.length;o<s;o+=1)f=l[o],h=String(t[f]),f.slice(0,2)==="!!"&&(f="tag:yaml.org,2002:"+f.slice(2)),m=e.compiledTypeMap.fallback[f],m&&Bi.call(m.styleAliases,h)&&(h=m.styleAliases[h]),u[f]=h;return u}function Ws(e){var t,u,l;if(t=e.toString(16).toUpperCase(),e<=255)u="x",l=2;else if(e<=65535)u="u",l=4;else if(e<=4294967295)u="U",l=8;else throw new Ae("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+u+de.repeat("0",l-t.length)+t}var Zs=1,yr=2;function Js(e){this.schema=e.schema||Ln,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=de.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Ks(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?yr:Zs,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function qi(e,t){for(var u=de.repeat(" ",t),l=0,o=-1,s="",f,h=e.length;l<h;)o=e.indexOf(`
`,l),o===-1?(f=e.slice(l),l=h):(f=e.slice(l,o+1),l=o+1),f.length&&f!==`
`&&(s+=u),s+=f;return s}function Hn(e,t){return`
`+de.repeat(" ",e.indent*t)}function Qs(e,t){var u,l,o;for(u=0,l=e.implicitTypes.length;u<l;u+=1)if(o=e.implicitTypes[u],o.resolve(t))return!0;return!1}function Gr(e){return e===Rs||e===Ts}function Ar(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==$n||65536<=e&&e<=1114111}function Li(e){return Ar(e)&&e!==$n&&e!==Ms&&e!==xr}function Oi(e,t,u){var l=Li(e),o=l&&!Gr(e);return(u?l:l&&e!==Ti&&e!==Mi&&e!==Ri&&e!==Ii&&e!==Ni)&&e!==Un&&!(t===Vr&&!o)||Li(t)&&!Gr(t)&&e===Un||t===Vr&&o}function ec(e){return Ar(e)&&e!==$n&&!Gr(e)&&e!==zs&&e!==Hs&&e!==Vr&&e!==Ti&&e!==Mi&&e!==Ri&&e!==Ii&&e!==Ni&&e!==Un&&e!==Ls&&e!==Ps&&e!==Is&&e!==Gs&&e!==$s&&e!==Us&&e!==Os&&e!==Ns&&e!==qs&&e!==js&&e!==Vs}function rc(e){return!Gr(e)&&e!==Vr}function br(e,t){var u=e.charCodeAt(t),l;return u>=55296&&u<=56319&&t+1<e.length&&(l=e.charCodeAt(t+1),l>=56320&&l<=57343)?(u-55296)*1024+l-56320+65536:u}function Pi(e){var t=/^\n* /;return t.test(e)}var zi=1,jn=2,$i=3,Ui=4,ar=5;function nc(e,t,u,l,o,s,f,h){var m,w=0,y=null,_=!1,F=!1,B=l!==-1,T=-1,N=ec(br(e,0))&&rc(br(e,e.length-1));if(t||f)for(m=0;m<e.length;w>=65536?m+=2:m++){if(w=br(e,m),!Ar(w))return ar;N=N&&Oi(w,y,h),y=w}else{for(m=0;m<e.length;w>=65536?m+=2:m++){if(w=br(e,m),w===xr)_=!0,B&&(F=F||m-T-1>l&&e[T+1]!==" ",T=m);else if(!Ar(w))return ar;N=N&&Oi(w,y,h),y=w}F=F||B&&m-T-1>l&&e[T+1]!==" "}return!_&&!F?N&&!f&&!o(e)?zi:s===yr?ar:jn:u>9&&Pi(e)?ar:f?s===yr?ar:jn:F?Ui:$i}function tc(e,t,u,l,o){e.dump=function(){if(t.length===0)return e.quotingType===yr?'""':"''";if(!e.noCompatMode&&(Ys.indexOf(t)!==-1||Xs.test(t)))return e.quotingType===yr?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,u),f=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),h=l||e.flowLevel>-1&&u>=e.flowLevel;function m(w){return Qs(e,w)}switch(nc(t,h,e.indent,f,m,e.quotingType,e.forceQuotes&&!l,o)){case zi:return t;case jn:return"'"+t.replace(/'/g,"''")+"'";case $i:return"|"+Hi(t,e.indent)+ji(qi(t,s));case Ui:return">"+Hi(t,e.indent)+ji(qi(ic(t,f),s));case ar:return'"'+uc(t)+'"';default:throw new Ae("impossible error: invalid scalar style")}}()}function Hi(e,t){var u=Pi(e)?String(t):"",l=e[e.length-1]===`
`,o=l&&(e[e.length-2]===`
`||e===`
`),s=o?"+":l?"":"-";return u+s+`
`}function ji(e){return e[e.length-1]===`
`?e.slice(0,-1):e}function ic(e,t){for(var u=/(\n+)([^\n]*)/g,l=function(){var w=e.indexOf(`
`);return w=w!==-1?w:e.length,u.lastIndex=w,Vi(e.slice(0,w),t)}(),o=e[0]===`
`||e[0]===" ",s,f;f=u.exec(e);){var h=f[1],m=f[2];s=m[0]===" ",l+=h+(!o&&!s&&m!==""?`
`:"")+Vi(m,t),o=s}return l}function Vi(e,t){if(e===""||e[0]===" ")return e;for(var u=/ [^ ]/g,l,o=0,s,f=0,h=0,m="";l=u.exec(e);)h=l.index,h-o>t&&(s=f>o?f:h,m+=`
`+e.slice(o,s),o=s+1),f=h;return m+=`
`,e.length-o>t&&f>o?m+=e.slice(o,f)+`
`+e.slice(f+1):m+=e.slice(o),m.slice(1)}function uc(e){for(var t="",u=0,l,o=0;o<e.length;u>=65536?o+=2:o++)u=br(e,o),l=xe[u],!l&&Ar(u)?(t+=e[o],u>=65536&&(t+=e[o+1])):t+=l||Ws(u);return t}function oc(e,t,u){var l="",o=e.tag,s,f,h;for(s=0,f=u.length;s<f;s+=1)h=u[s],e.replacer&&(h=e.replacer.call(u,String(s),h)),(Pe(e,t,h,!1,!1)||typeof h>"u"&&Pe(e,t,null,!1,!1))&&(l!==""&&(l+=","+(e.condenseFlow?"":" ")),l+=e.dump);e.tag=o,e.dump="["+l+"]"}function Gi(e,t,u,l){var o="",s=e.tag,f,h,m;for(f=0,h=u.length;f<h;f+=1)m=u[f],e.replacer&&(m=e.replacer.call(u,String(f),m)),(Pe(e,t+1,m,!0,!0,!1,!0)||typeof m>"u"&&Pe(e,t+1,null,!0,!0,!1,!0))&&((!l||o!=="")&&(o+=Hn(e,t)),e.dump&&xr===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=s,e.dump=o||"[]"}function lc(e,t,u){var l="",o=e.tag,s=Object.keys(u),f,h,m,w,y;for(f=0,h=s.length;f<h;f+=1)y="",l!==""&&(y+=", "),e.condenseFlow&&(y+='"'),m=s[f],w=u[m],e.replacer&&(w=e.replacer.call(u,m,w)),Pe(e,t,m,!1,!1)&&(e.dump.length>1024&&(y+="? "),y+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Pe(e,t,w,!1,!1)&&(y+=e.dump,l+=y));e.tag=o,e.dump="{"+l+"}"}function ac(e,t,u,l){var o="",s=e.tag,f=Object.keys(u),h,m,w,y,_,F;if(e.sortKeys===!0)f.sort();else if(typeof e.sortKeys=="function")f.sort(e.sortKeys);else if(e.sortKeys)throw new Ae("sortKeys must be a boolean or a function");for(h=0,m=f.length;h<m;h+=1)F="",(!l||o!=="")&&(F+=Hn(e,t)),w=f[h],y=u[w],e.replacer&&(y=e.replacer.call(u,w,y)),Pe(e,t+1,w,!0,!0,!0)&&(_=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,_&&(e.dump&&xr===e.dump.charCodeAt(0)?F+="?":F+="? "),F+=e.dump,_&&(F+=Hn(e,t)),Pe(e,t+1,y,!0,_)&&(e.dump&&xr===e.dump.charCodeAt(0)?F+=":":F+=": ",F+=e.dump,o+=F));e.tag=s,e.dump=o||"{}"}function Yi(e,t,u){var l,o,s,f,h,m;for(o=u?e.explicitTypes:e.implicitTypes,s=0,f=o.length;s<f;s+=1)if(h=o[s],(h.instanceOf||h.predicate)&&(!h.instanceOf||typeof t=="object"&&t instanceof h.instanceOf)&&(!h.predicate||h.predicate(t))){if(u?h.multi&&h.representName?e.tag=h.representName(t):e.tag=h.tag:e.tag="?",h.represent){if(m=e.styleMap[h.tag]||h.defaultStyle,Fi.call(h.represent)==="[object Function]")l=h.represent(t,m);else if(Bi.call(h.represent,m))l=h.represent[m](t,m);else throw new Ae("!<"+h.tag+'> tag resolver accepts not "'+m+'" style');e.dump=l}return!0}return!1}function Pe(e,t,u,l,o,s,f){e.tag=null,e.dump=u,Yi(e,u,!1)||Yi(e,u,!0);var h=Fi.call(e.dump),m=l,w;l&&(l=e.flowLevel<0||e.flowLevel>t);var y=h==="[object Object]"||h==="[object Array]",_,F;if(y&&(_=e.duplicates.indexOf(u),F=_!==-1),(e.tag!==null&&e.tag!=="?"||F||e.indent!==2&&t>0)&&(o=!1),F&&e.usedDuplicates[_])e.dump="*ref_"+_;else{if(y&&F&&!e.usedDuplicates[_]&&(e.usedDuplicates[_]=!0),h==="[object Object]")l&&Object.keys(e.dump).length!==0?(ac(e,t,e.dump,o),F&&(e.dump="&ref_"+_+e.dump)):(lc(e,t,e.dump),F&&(e.dump="&ref_"+_+" "+e.dump));else if(h==="[object Array]")l&&e.dump.length!==0?(e.noArrayIndent&&!f&&t>0?Gi(e,t-1,e.dump,o):Gi(e,t,e.dump,o),F&&(e.dump="&ref_"+_+e.dump)):(oc(e,t,e.dump),F&&(e.dump="&ref_"+_+" "+e.dump));else if(h==="[object String]")e.tag!=="?"&&tc(e,e.dump,t,s,m);else{if(h==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Ae("unacceptable kind of an object to dump "+h)}e.tag!==null&&e.tag!=="?"&&(w=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?w="!"+w:w.slice(0,18)==="tag:yaml.org,2002:"?w="!!"+w.slice(18):w="!<"+w+">",e.dump=w+" "+e.dump)}return!0}function sc(e,t){var u=[],l=[],o,s;for(Vn(e,u,l),o=0,s=l.length;o<s;o+=1)t.duplicates.push(u[l[o]]);t.usedDuplicates=new Array(s)}function Vn(e,t,u){var l,o,s;if(e!==null&&typeof e=="object")if(o=t.indexOf(e),o!==-1)u.indexOf(o)===-1&&u.push(o);else if(t.push(e),Array.isArray(e))for(o=0,s=e.length;o<s;o+=1)Vn(e[o],t,u);else for(l=Object.keys(e),o=0,s=l.length;o<s;o+=1)Vn(e[l[o]],t,u)}function cc(e,t){t=t||{};var u=new Js(t);u.noRefs||sc(e,u);var l=e;return u.replacer&&(l=u.replacer.call({"":l},"",l)),Pe(u,0,l,!0,!0)?u.dump+`
`:""}var fc=cc,hc={dump:fc};function Gn(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var pc=ve,dc=Kt,gc=Qt,mc=ii,vc=ui,xc=Ln,yc=Si.load,Ac=Si.loadAll,bc=hc.dump,wc=Ae,_c={binary:ci,float:ti,map:Jt,null:ei,pairs:hi,set:pi,timestamp:ai,bool:ri,int:ni,merge:si,omap:fi,seq:Zt,str:Wt},Cc=Gn("safeLoad","load"),kc=Gn("safeLoadAll","loadAll"),Dc=Gn("safeDump","dump"),Ec={Type:pc,Schema:dc,FAILSAFE_SCHEMA:gc,JSON_SCHEMA:mc,CORE_SCHEMA:vc,DEFAULT_SCHEMA:xc,load:yc,loadAll:Ac,dump:bc,YAMLException:wc,types:_c,safeLoad:Cc,safeLoadAll:kc,safeDump:Dc},Sc={name:"frontmatter",transform(e){return e.beforeParse.tap((t,u)=>{const l=t.parse;t.parse=ie(l,{before(o){const[s]=o.args;if(!s.startsWith(`---
`))return;const f=s.indexOf(`
---
`);if(f<0)return;const h=s.slice(4,f);let m;try{var w;m=Ec.load(h),(w=m)!=null&&w.markmap&&(m.markmap=Fc(m.markmap))}catch{return}u.frontmatter=m;const y=f+5;o.args[0]=s.slice(y)},after(){t.parse=l}})}),{}}};function Fc(e){if(e)return["color","extraJs","extraCss"].forEach(t=>{e[t]!=null&&(e[t]=Bc(e[t]))}),["duration","maxWidth","initialExpandLevel"].forEach(t=>{e[t]!=null&&(e[t]=Tc(e[t]))}),e}function Bc(e){var t;let u;return typeof e=="string"?u=[e]:Array.isArray(e)&&(u=e.filter(l=>l&&typeof l=="string")),(t=u)!=null&&t.length?u:void 0}function Tc(e){if(!isNaN(+e))return+e}const Xi=[Sc,ia,la];function Ki(e){if(e.type==="heading")e.children=e.children.filter(o=>o.type!=="paragraph");else if(e.type==="list_item"){var t;e.children=e.children.filter(o=>["paragraph","fence"].includes(o.type)?(e.content||(e.content=o.content,e.payload=d({},e.payload,o.payload)),!1):!0),((t=e.payload)==null?void 0:t.index)!=null&&(e.content=`${e.payload.index}. ${e.content}`)}else if(e.type==="ordered_list"){var u,l;let o=(u=(l=e.payload)==null?void 0:l.startIndex)!=null?u:1;e.children.forEach(s=>{s.type==="list_item"&&(s.payload=d({},s.payload,{index:o}),o+=1)})}e.children.length===0?delete e.children:(e.children.forEach(o=>Ki(o)),e.children.length===1&&!e.children[0].content&&(e.children=e.children[0].children))}function Wi(e,t=0){var u;e.depth=t,(u=e.children)==null||u.forEach(l=>{Wi(l,t+1)})}class Mc{constructor(t=Xi){this.assetsMap={},this.plugins=t,this.hooks=na();const u={};for(const{name:o,transform:s}of t)u[o]=s(this.hooks);this.assetsMap=u;const l=new He("full",{html:!0,breaks:!0,maxNesting:1/0});l.renderer.rules.htmltag=ie(l.renderer.rules.htmltag,{after:o=>{this.hooks.htmltag.call(o)}}),this.md=l,this.hooks.parser.call(l)}buildTree(t){const{md:u}=this,l={type:"root",depth:0,content:"",children:[],payload:{}},o=[l];let s=0;for(const m of t){let w=o[o.length-1];if(m.type.endsWith("_open")){const y=m.type.slice(0,-5),_={};if(m.lines&&(_.lines=m.lines),y==="heading")for(s=m.hLevel;((f=w)==null?void 0:f.depth)>=s;){var f;o.pop(),w=o[o.length-1]}else{var h;s=Math.max(s,((h=w)==null?void 0:h.depth)||0)+1,y==="ordered_list"&&(_.startIndex=m.order)}const F={type:y,depth:s,payload:_,content:"",children:[]};w.children.push(F),o.push(F)}else if(w){if(m.type===`${w.type}_close`)w.type==="heading"?s=w.depth:(o.pop(),s=0);else if(m.type==="inline"){const y=this.hooks.htmltag.tap(F=>{const B=F.result.match(/^<!--([\s\S]*?)-->$/),T=B==null?void 0:B[1].trim().split(" ");T[0]==="fold"&&(w.payload.fold=["all","recursively"].includes(T[1])?2:1,F.result="")}),_=u.renderer.render([m],u.options,{});y(),w.content=`${w.content||""}${_}`}else if(m.type==="fence"){let y=u.renderer.render([m],u.options,{});const _=y.match(/<code( class="[^"]*")>/);_&&(y=y.replace("<pre>",`<pre${_[1]}>`)),w.children.push({type:m.type,depth:s+1,content:y,children:[]})}}else continue}return l}transform(t){var u;const l={features:{}};this.hooks.beforeParse.call(this.md,l);const o=this.md.parse(t,{});this.hooks.afterParse.call(this.md,l);let s=this.buildTree(o);return Ki(s),((u=s.children)==null?void 0:u.length)===1&&(s=s.children[0]),Wi(s),d({},l,{root:s})}getAssets(t){var u;const l=[],o=[];(u=t)!=null||(t=this.plugins.map(s=>s.name));for(const s of t.map(f=>this.assetsMap[f]))s&&(s.styles&&l.push(...s.styles),s.scripts&&o.push(...s.scripts));return{styles:l,scripts:o}}getUsedAssets(t){const u=this.plugins.map(l=>l.name).filter(l=>t[l]);return this.getAssets(u)}}const Rc={"markmap-lib":"0.14.4",d3:"6.7.0"};i.Transformer=Mc,i.builtInPlugins=Xi,i.fillTemplate=ue,i.transformerVersions=Rc})})(it,it.exports);var jc=it.exports;/*! markmap-common v0.14.2 | MIT License */class Iu{constructor(){this.listeners=[]}tap(n){return this.listeners.push(n),()=>this.revoke(n)}revoke(n){const i=this.listeners.indexOf(n);i>=0&&this.listeners.splice(i,1)}revokeAll(){this.listeners.splice(0)}call(...n){for(const i of this.listeners)i(...n)}}const Vc=Math.random().toString(36).slice(2,8);let nu=0;function Gc(){return nu+=1,`mm-${Vc}-${nu}`}function Wn(){}function ut(r,n,i="children"){const a=(c,p)=>n(c,()=>{var d;(d=c[i])==null||d.forEach(g=>{a(g,c)})},p);a(r)}function Nu(r){if(Array.from)return Array.from(r);const n=[];for(let i=0;i<r.length;i+=1)n.push(r[i]);return n}function Yc(r,...n){const i=(r||"").split(" ").filter(Boolean);return n.forEach(a=>{a&&i.indexOf(a)<0&&i.push(a)}),i.join(" ")}function cr(r){if(typeof r=="string"){const i=r;r=a=>a.tagName===i}const n=r;return function(){let a=Nu(this.childNodes);return n&&(a=a.filter(c=>n(c))),a}}function tu(r,n){let i;if(n===void 0)for(const a of r)a!=null&&(i<a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let c of r)(c=n(c,++a,r))!=null&&(i<c||i===void 0&&c>=c)&&(i=c)}return i}function iu(r,n){let i;if(n===void 0)for(const a of r)a!=null&&(i>a||i===void 0&&a>=a)&&(i=a);else{let a=-1;for(let c of r)(c=n(c,++a,r))!=null&&(i>c||i===void 0&&c>=c)&&(i=c)}return i}function Xc(r,n){let i,a=-1,c=-1;if(n===void 0)for(const p of r)++c,p!=null&&(i>p||i===void 0&&p>=p)&&(i=p,a=c);else for(let p of r)(p=n(p,++c,r))!=null&&(i>p||i===void 0&&p>=p)&&(i=p,a=c);return a}var Kc={value:()=>{}};function yt(){for(var r=0,n=arguments.length,i={},a;r<n;++r){if(!(a=arguments[r]+"")||a in i||/[\s.]/.test(a))throw new Error("illegal type: "+a);i[a]=[]}return new nn(i)}function nn(r){this._=r}function Wc(r,n){return r.trim().split(/^|\s+/).map(function(i){var a="",c=i.indexOf(".");if(c>=0&&(a=i.slice(c+1),i=i.slice(0,c)),i&&!n.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:a}})}nn.prototype=yt.prototype={constructor:nn,on:function(r,n){var i=this._,a=Wc(r+"",i),c,p=-1,d=a.length;if(arguments.length<2){for(;++p<d;)if((c=(r=a[p]).type)&&(c=Zc(i[c],r.name)))return c;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++p<d;)if(c=(r=a[p]).type)i[c]=uu(i[c],r.name,n);else if(n==null)for(c in i)i[c]=uu(i[c],r.name,null);return this},copy:function(){var r={},n=this._;for(var i in n)r[i]=n[i].slice();return new nn(r)},call:function(r,n){if((c=arguments.length-2)>0)for(var i=new Array(c),a=0,c,p;a<c;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(p=this._[r],a=0,c=p.length;a<c;++a)p[a].value.apply(n,i)},apply:function(r,n,i){if(!this._.hasOwnProperty(r))throw new Error("unknown type: "+r);for(var a=this._[r],c=0,p=a.length;c<p;++c)a[c].value.apply(n,i)}};function Zc(r,n){for(var i=0,a=r.length,c;i<a;++i)if((c=r[i]).name===n)return c.value}function uu(r,n,i){for(var a=0,c=r.length;a<c;++a)if(r[a].name===n){r[a]=Kc,r=r.slice(0,a).concat(r.slice(a+1));break}return i!=null&&r.push({name:n,value:i}),r}var ot="http://www.w3.org/1999/xhtml";const ou={svg:"http://www.w3.org/2000/svg",xhtml:ot,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function vn(r){var n=r+="",i=n.indexOf(":");return i>=0&&(n=r.slice(0,i))!=="xmlns"&&(r=r.slice(i+1)),ou.hasOwnProperty(n)?{space:ou[n],local:r}:r}function Jc(r){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===ot&&n.documentElement.namespaceURI===ot?n.createElement(r):n.createElementNS(i,r)}}function Qc(r){return function(){return this.ownerDocument.createElementNS(r.space,r.local)}}function qu(r){var n=vn(r);return(n.local?Qc:Jc)(n)}function ef(){}function At(r){return r==null?ef:function(){return this.querySelector(r)}}function rf(r){typeof r!="function"&&(r=At(r));for(var n=this._groups,i=n.length,a=new Array(i),c=0;c<i;++c)for(var p=n[c],d=p.length,g=a[c]=new Array(d),v,A,x=0;x<d;++x)(v=p[x])&&(A=r.call(v,v.__data__,x,p))&&("__data__"in v&&(A.__data__=v.__data__),g[x]=A);return new _e(a,this._parents)}function Lu(r){return typeof r=="object"&&"length"in r?r:Array.from(r)}function nf(){return[]}function Ou(r){return r==null?nf:function(){return this.querySelectorAll(r)}}function tf(r){return function(){var n=r.apply(this,arguments);return n==null?[]:Lu(n)}}function uf(r){typeof r=="function"?r=tf(r):r=Ou(r);for(var n=this._groups,i=n.length,a=[],c=[],p=0;p<i;++p)for(var d=n[p],g=d.length,v,A=0;A<g;++A)(v=d[A])&&(a.push(r.call(v,v.__data__,A,d)),c.push(v));return new _e(a,c)}function Pu(r){return function(){return this.matches(r)}}function zu(r){return function(n){return n.matches(r)}}var of=Array.prototype.find;function lf(r){return function(){return of.call(this.children,r)}}function af(){return this.firstElementChild}function sf(r){return this.select(r==null?af:lf(typeof r=="function"?r:zu(r)))}var cf=Array.prototype.filter;function ff(){return this.children}function hf(r){return function(){return cf.call(this.children,r)}}function pf(r){return this.selectAll(r==null?ff:hf(typeof r=="function"?r:zu(r)))}function df(r){typeof r!="function"&&(r=Pu(r));for(var n=this._groups,i=n.length,a=new Array(i),c=0;c<i;++c)for(var p=n[c],d=p.length,g=a[c]=[],v,A=0;A<d;++A)(v=p[A])&&r.call(v,v.__data__,A,p)&&g.push(v);return new _e(a,this._parents)}function $u(r){return new Array(r.length)}function gf(){return new _e(this._enter||this._groups.map($u),this._parents)}function sn(r,n){this.ownerDocument=r.ownerDocument,this.namespaceURI=r.namespaceURI,this._next=null,this._parent=r,this.__data__=n}sn.prototype={constructor:sn,appendChild:function(r){return this._parent.insertBefore(r,this._next)},insertBefore:function(r,n){return this._parent.insertBefore(r,n)},querySelector:function(r){return this._parent.querySelector(r)},querySelectorAll:function(r){return this._parent.querySelectorAll(r)}};function mf(r){return function(){return r}}function vf(r,n,i,a,c,p){for(var d=0,g,v=n.length,A=p.length;d<A;++d)(g=n[d])?(g.__data__=p[d],a[d]=g):i[d]=new sn(r,p[d]);for(;d<v;++d)(g=n[d])&&(c[d]=g)}function xf(r,n,i,a,c,p,d){var g,v,A=new Map,x=n.length,k=p.length,E=new Array(x),D;for(g=0;g<x;++g)(v=n[g])&&(E[g]=D=d.call(v,v.__data__,g,n)+"",A.has(D)?c[g]=v:A.set(D,v));for(g=0;g<k;++g)D=d.call(r,p[g],g,p)+"",(v=A.get(D))?(a[g]=v,v.__data__=p[g],A.delete(D)):i[g]=new sn(r,p[g]);for(g=0;g<x;++g)(v=n[g])&&A.get(E[g])===v&&(c[g]=v)}function yf(r){return r.__data__}function Af(r,n){if(!arguments.length)return Array.from(this,yf);var i=n?xf:vf,a=this._parents,c=this._groups;typeof r!="function"&&(r=mf(r));for(var p=c.length,d=new Array(p),g=new Array(p),v=new Array(p),A=0;A<p;++A){var x=a[A],k=c[A],E=k.length,D=Lu(r.call(x,x&&x.__data__,A,a)),Y=D.length,z=g[A]=new Array(Y),Z=d[A]=new Array(Y),q=v[A]=new Array(E);i(x,k,z,Z,q,D,n);for(var X=0,ie=0,ae,se;X<Y;++X)if(ae=z[X]){for(X>=ie&&(ie=X+1);!(se=Z[ie])&&++ie<Y;);ae._next=se||null}}return d=new _e(d,a),d._enter=g,d._exit=v,d}function bf(){return new _e(this._exit||this._groups.map($u),this._parents)}function wf(r,n,i){var a=this.enter(),c=this,p=this.exit();return a=typeof r=="function"?r(a):a.append(r+""),n!=null&&(c=n(c)),i==null?p.remove():i(p),a&&c?a.merge(c).order():c}function _f(r){if(!(r instanceof _e))throw new Error("invalid merge");for(var n=this._groups,i=r._groups,a=n.length,c=i.length,p=Math.min(a,c),d=new Array(a),g=0;g<p;++g)for(var v=n[g],A=i[g],x=v.length,k=d[g]=new Array(x),E,D=0;D<x;++D)(E=v[D]||A[D])&&(k[D]=E);for(;g<a;++g)d[g]=n[g];return new _e(d,this._parents)}function Cf(){for(var r=this._groups,n=-1,i=r.length;++n<i;)for(var a=r[n],c=a.length-1,p=a[c],d;--c>=0;)(d=a[c])&&(p&&d.compareDocumentPosition(p)^4&&p.parentNode.insertBefore(d,p),p=d);return this}function kf(r){r||(r=Df);function n(k,E){return k&&E?r(k.__data__,E.__data__):!k-!E}for(var i=this._groups,a=i.length,c=new Array(a),p=0;p<a;++p){for(var d=i[p],g=d.length,v=c[p]=new Array(g),A,x=0;x<g;++x)(A=d[x])&&(v[x]=A);v.sort(n)}return new _e(c,this._parents).order()}function Df(r,n){return r<n?-1:r>n?1:r>=n?0:NaN}function Ef(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function Sf(){return Array.from(this)}function Ff(){for(var r=this._groups,n=0,i=r.length;n<i;++n)for(var a=r[n],c=0,p=a.length;c<p;++c){var d=a[c];if(d)return d}return null}function Bf(){let r=0;for(const n of this)++r;return r}function Tf(){return!this.node()}function Mf(r){for(var n=this._groups,i=0,a=n.length;i<a;++i)for(var c=n[i],p=0,d=c.length,g;p<d;++p)(g=c[p])&&r.call(g,g.__data__,p,c);return this}function Rf(r){return function(){this.removeAttribute(r)}}function If(r){return function(){this.removeAttributeNS(r.space,r.local)}}function Nf(r,n){return function(){this.setAttribute(r,n)}}function qf(r,n){return function(){this.setAttributeNS(r.space,r.local,n)}}function Lf(r,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttribute(r):this.setAttribute(r,i)}}function Of(r,n){return function(){var i=n.apply(this,arguments);i==null?this.removeAttributeNS(r.space,r.local):this.setAttributeNS(r.space,r.local,i)}}function Pf(r,n){var i=vn(r);if(arguments.length<2){var a=this.node();return i.local?a.getAttributeNS(i.space,i.local):a.getAttribute(i)}return this.each((n==null?i.local?If:Rf:typeof n=="function"?i.local?Of:Lf:i.local?qf:Nf)(i,n))}function Uu(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function zf(r){return function(){this.style.removeProperty(r)}}function $f(r,n,i){return function(){this.style.setProperty(r,n,i)}}function Uf(r,n,i){return function(){var a=n.apply(this,arguments);a==null?this.style.removeProperty(r):this.style.setProperty(r,a,i)}}function Hf(r,n,i){return arguments.length>1?this.each((n==null?zf:typeof n=="function"?Uf:$f)(r,n,i??"")):pr(this.node(),r)}function pr(r,n){return r.style.getPropertyValue(n)||Uu(r).getComputedStyle(r,null).getPropertyValue(n)}function jf(r){return function(){delete this[r]}}function Vf(r,n){return function(){this[r]=n}}function Gf(r,n){return function(){var i=n.apply(this,arguments);i==null?delete this[r]:this[r]=i}}function Yf(r,n){return arguments.length>1?this.each((n==null?jf:typeof n=="function"?Gf:Vf)(r,n)):this.node()[r]}function Hu(r){return r.trim().split(/^|\s+/)}function bt(r){return r.classList||new ju(r)}function ju(r){this._node=r,this._names=Hu(r.getAttribute("class")||"")}ju.prototype={add:function(r){var n=this._names.indexOf(r);n<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var n=this._names.indexOf(r);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};function Vu(r,n){for(var i=bt(r),a=-1,c=n.length;++a<c;)i.add(n[a])}function Gu(r,n){for(var i=bt(r),a=-1,c=n.length;++a<c;)i.remove(n[a])}function Xf(r){return function(){Vu(this,r)}}function Kf(r){return function(){Gu(this,r)}}function Wf(r,n){return function(){(n.apply(this,arguments)?Vu:Gu)(this,r)}}function Zf(r,n){var i=Hu(r+"");if(arguments.length<2){for(var a=bt(this.node()),c=-1,p=i.length;++c<p;)if(!a.contains(i[c]))return!1;return!0}return this.each((typeof n=="function"?Wf:n?Xf:Kf)(i,n))}function Jf(){this.textContent=""}function Qf(r){return function(){this.textContent=r}}function eh(r){return function(){var n=r.apply(this,arguments);this.textContent=n??""}}function rh(r){return arguments.length?this.each(r==null?Jf:(typeof r=="function"?eh:Qf)(r)):this.node().textContent}function nh(){this.innerHTML=""}function th(r){return function(){this.innerHTML=r}}function ih(r){return function(){var n=r.apply(this,arguments);this.innerHTML=n??""}}function uh(r){return arguments.length?this.each(r==null?nh:(typeof r=="function"?ih:th)(r)):this.node().innerHTML}function oh(){this.nextSibling&&this.parentNode.appendChild(this)}function lh(){return this.each(oh)}function ah(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function sh(){return this.each(ah)}function ch(r){var n=typeof r=="function"?r:qu(r);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function fh(){return null}function hh(r,n){var i=typeof r=="function"?r:qu(r),a=n==null?fh:typeof n=="function"?n:At(n);return this.select(function(){return this.insertBefore(i.apply(this,arguments),a.apply(this,arguments)||null)})}function ph(){var r=this.parentNode;r&&r.removeChild(this)}function dh(){return this.each(ph)}function gh(){var r=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(r,this.nextSibling):r}function mh(){var r=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(r,this.nextSibling):r}function vh(r){return this.select(r?mh:gh)}function xh(r){return arguments.length?this.property("__data__",r):this.node().__data__}function yh(r){return function(n){r.call(this,n,this.__data__)}}function Ah(r){return r.trim().split(/^|\s+/).map(function(n){var i="",a=n.indexOf(".");return a>=0&&(i=n.slice(a+1),n=n.slice(0,a)),{type:n,name:i}})}function bh(r){return function(){var n=this.__on;if(n){for(var i=0,a=-1,c=n.length,p;i<c;++i)p=n[i],(!r.type||p.type===r.type)&&p.name===r.name?this.removeEventListener(p.type,p.listener,p.options):n[++a]=p;++a?n.length=a:delete this.__on}}}function wh(r,n,i){return function(){var a=this.__on,c,p=yh(n);if(a){for(var d=0,g=a.length;d<g;++d)if((c=a[d]).type===r.type&&c.name===r.name){this.removeEventListener(c.type,c.listener,c.options),this.addEventListener(c.type,c.listener=p,c.options=i),c.value=n;return}}this.addEventListener(r.type,p,i),c={type:r.type,name:r.name,value:n,listener:p,options:i},a?a.push(c):this.__on=[c]}}function _h(r,n,i){var a=Ah(r+""),c,p=a.length,d;if(arguments.length<2){var g=this.node().__on;if(g){for(var v=0,A=g.length,x;v<A;++v)for(c=0,x=g[v];c<p;++c)if((d=a[c]).type===x.type&&d.name===x.name)return x.value}return}for(g=n?wh:bh,c=0;c<p;++c)this.each(g(a[c],n,i));return this}function Yu(r,n,i){var a=Uu(r),c=a.CustomEvent;typeof c=="function"?c=new c(n,i):(c=a.document.createEvent("Event"),i?(c.initEvent(n,i.bubbles,i.cancelable),c.detail=i.detail):c.initEvent(n,!1,!1)),r.dispatchEvent(c)}function Ch(r,n){return function(){return Yu(this,r,n)}}function kh(r,n){return function(){return Yu(this,r,n.apply(this,arguments))}}function Dh(r,n){return this.each((typeof n=="function"?kh:Ch)(r,n))}function*Eh(){for(var r=this._groups,n=0,i=r.length;n<i;++n)for(var a=r[n],c=0,p=a.length,d;c<p;++c)(d=a[c])&&(yield d)}var Xu=[null];function _e(r,n){this._groups=r,this._parents=n}function Nr(){return new _e([[document.documentElement]],Xu)}function Sh(){return this}_e.prototype=Nr.prototype={constructor:_e,select:rf,selectAll:uf,selectChild:sf,selectChildren:pf,filter:df,data:Af,enter:gf,exit:bf,join:wf,merge:_f,selection:Sh,order:Cf,sort:kf,call:Ef,nodes:Sf,node:Ff,size:Bf,empty:Tf,each:Mf,attr:Pf,style:Hf,property:Yf,classed:Zf,text:rh,html:uh,raise:lh,lower:sh,append:ch,insert:hh,remove:dh,clone:vh,datum:xh,on:_h,dispatch:Dh,[Symbol.iterator]:Eh};function Xe(r){return typeof r=="string"?new _e([[document.querySelector(r)]],[document.documentElement]):new _e([[r]],Xu)}function Fh(r){let n;for(;n=r.sourceEvent;)r=n;return r}function Je(r,n){if(r=Fh(r),n===void 0&&(n=r.currentTarget),n){var i=n.ownerSVGElement||n;if(i.createSVGPoint){var a=i.createSVGPoint();return a.x=r.clientX,a.y=r.clientY,a=a.matrixTransform(n.getScreenCTM().inverse()),[a.x,a.y]}if(n.getBoundingClientRect){var c=n.getBoundingClientRect();return[r.clientX-c.left-n.clientLeft,r.clientY-c.top-n.clientTop]}}return[r.pageX,r.pageY]}function lt(r){r.preventDefault(),r.stopImmediatePropagation()}function Bh(r){var n=r.document.documentElement,i=Xe(r).on("dragstart.drag",lt,!0);"onselectstart"in n?i.on("selectstart.drag",lt,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function Th(r,n){var i=r.document.documentElement,a=Xe(r).on("dragstart.drag",null);n&&(a.on("click.drag",lt,!0),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in i?a.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)}function wt(r,n,i){r.prototype=n.prototype=i,i.constructor=r}function Ku(r,n){var i=Object.create(r.prototype);for(var a in n)i[a]=n[a];return i}function qr(){}var Br=.7,cn=1/Br,hr="\\s*([+-]?\\d+)\\s*",Tr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",qe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mh=/^#([0-9a-f]{3,8})$/,Rh=new RegExp("^rgb\\("+[hr,hr,hr]+"\\)$"),Ih=new RegExp("^rgb\\("+[qe,qe,qe]+"\\)$"),Nh=new RegExp("^rgba\\("+[hr,hr,hr,Tr]+"\\)$"),qh=new RegExp("^rgba\\("+[qe,qe,qe,Tr]+"\\)$"),Lh=new RegExp("^hsl\\("+[Tr,qe,qe]+"\\)$"),Oh=new RegExp("^hsla\\("+[Tr,qe,qe,Tr]+"\\)$"),lu={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};wt(qr,Mr,{copy:function(r){return Object.assign(new this.constructor,this,r)},displayable:function(){return this.rgb().displayable()},hex:au,formatHex:au,formatHsl:Ph,formatRgb:su,toString:su});function au(){return this.rgb().formatHex()}function Ph(){return Wu(this).formatHsl()}function su(){return this.rgb().formatRgb()}function Mr(r){var n,i;return r=(r+"").trim().toLowerCase(),(n=Mh.exec(r))?(i=n[1].length,n=parseInt(n[1],16),i===6?cu(n):i===3?new Se(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):i===8?Zr(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):i===4?Zr(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=Rh.exec(r))?new Se(n[1],n[2],n[3],1):(n=Ih.exec(r))?new Se(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Nh.exec(r))?Zr(n[1],n[2],n[3],n[4]):(n=qh.exec(r))?Zr(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=Lh.exec(r))?pu(n[1],n[2]/100,n[3]/100,1):(n=Oh.exec(r))?pu(n[1],n[2]/100,n[3]/100,n[4]):lu.hasOwnProperty(r)?cu(lu[r]):r==="transparent"?new Se(NaN,NaN,NaN,0):null}function cu(r){return new Se(r>>16&255,r>>8&255,r&255,1)}function Zr(r,n,i,a){return a<=0&&(r=n=i=NaN),new Se(r,n,i,a)}function zh(r){return r instanceof qr||(r=Mr(r)),r?(r=r.rgb(),new Se(r.r,r.g,r.b,r.opacity)):new Se}function at(r,n,i,a){return arguments.length===1?zh(r):new Se(r,n,i,a??1)}function Se(r,n,i,a){this.r=+r,this.g=+n,this.b=+i,this.opacity=+a}wt(Se,at,Ku(qr,{brighter:function(r){return r=r==null?cn:Math.pow(cn,r),new Se(this.r*r,this.g*r,this.b*r,this.opacity)},darker:function(r){return r=r==null?Br:Math.pow(Br,r),new Se(this.r*r,this.g*r,this.b*r,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fu,formatHex:fu,formatRgb:hu,toString:hu}));function fu(){return"#"+Zn(this.r)+Zn(this.g)+Zn(this.b)}function hu(){var r=this.opacity;return r=isNaN(r)?1:Math.max(0,Math.min(1,r)),(r===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(r===1?")":", "+r+")")}function Zn(r){return r=Math.max(0,Math.min(255,Math.round(r)||0)),(r<16?"0":"")+r.toString(16)}function pu(r,n,i,a){return a<=0?r=n=i=NaN:i<=0||i>=1?r=n=NaN:n<=0&&(r=NaN),new Ne(r,n,i,a)}function Wu(r){if(r instanceof Ne)return new Ne(r.h,r.s,r.l,r.opacity);if(r instanceof qr||(r=Mr(r)),!r)return new Ne;if(r instanceof Ne)return r;r=r.rgb();var n=r.r/255,i=r.g/255,a=r.b/255,c=Math.min(n,i,a),p=Math.max(n,i,a),d=NaN,g=p-c,v=(p+c)/2;return g?(n===p?d=(i-a)/g+(i<a)*6:i===p?d=(a-n)/g+2:d=(n-i)/g+4,g/=v<.5?p+c:2-p-c,d*=60):g=v>0&&v<1?0:d,new Ne(d,g,v,r.opacity)}function $h(r,n,i,a){return arguments.length===1?Wu(r):new Ne(r,n,i,a??1)}function Ne(r,n,i,a){this.h=+r,this.s=+n,this.l=+i,this.opacity=+a}wt(Ne,$h,Ku(qr,{brighter:function(r){return r=r==null?cn:Math.pow(cn,r),new Ne(this.h,this.s,this.l*r,this.opacity)},darker:function(r){return r=r==null?Br:Math.pow(Br,r),new Ne(this.h,this.s,this.l*r,this.opacity)},rgb:function(){var r=this.h%360+(this.h<0)*360,n=isNaN(r)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,c=2*i-a;return new Se(Jn(r>=240?r-240:r+120,c,a),Jn(r,c,a),Jn(r<120?r+240:r-120,c,a),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var r=this.opacity;return r=isNaN(r)?1:Math.max(0,Math.min(1,r)),(r===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(r===1?")":", "+r+")")}}));function Jn(r,n,i){return(r<60?n+(i-n)*r/60:r<180?i:r<240?n+(i-n)*(240-r)/60:n)*255}const Zu=r=>()=>r;function Uh(r,n){return function(i){return r+i*n}}function Hh(r,n,i){return r=Math.pow(r,i),n=Math.pow(n,i)-r,i=1/i,function(a){return Math.pow(r+a*n,i)}}function jh(r){return(r=+r)==1?Ju:function(n,i){return i-n?Hh(n,i,r):Zu(isNaN(n)?i:n)}}function Ju(r,n){var i=n-r;return i?Uh(r,i):Zu(isNaN(r)?n:r)}const du=function r(n){var i=jh(n);function a(c,p){var d=i((c=at(c)).r,(p=at(p)).r),g=i(c.g,p.g),v=i(c.b,p.b),A=Ju(c.opacity,p.opacity);return function(x){return c.r=d(x),c.g=g(x),c.b=v(x),c.opacity=A(x),c+""}}return a.gamma=r,a}(1);function Ge(r,n){return r=+r,n=+n,function(i){return r*(1-i)+n*i}}var st=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qn=new RegExp(st.source,"g");function Vh(r){return function(){return r}}function Gh(r){return function(n){return r(n)+""}}function Yh(r,n){var i=st.lastIndex=Qn.lastIndex=0,a,c,p,d=-1,g=[],v=[];for(r=r+"",n=n+"";(a=st.exec(r))&&(c=Qn.exec(n));)(p=c.index)>i&&(p=n.slice(i,p),g[d]?g[d]+=p:g[++d]=p),(a=a[0])===(c=c[0])?g[d]?g[d]+=c:g[++d]=c:(g[++d]=null,v.push({i:d,x:Ge(a,c)})),i=Qn.lastIndex;return i<n.length&&(p=n.slice(i),g[d]?g[d]+=p:g[++d]=p),g.length<2?v[0]?Gh(v[0].x):Vh(n):(n=v.length,function(A){for(var x=0,k;x<n;++x)g[(k=v[x]).i]=k.x(A);return g.join("")})}var gu=180/Math.PI,ct={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Qu(r,n,i,a,c,p){var d,g,v;return(d=Math.sqrt(r*r+n*n))&&(r/=d,n/=d),(v=r*i+n*a)&&(i-=r*v,a-=n*v),(g=Math.sqrt(i*i+a*a))&&(i/=g,a/=g,v/=g),r*a<n*i&&(r=-r,n=-n,v=-v,d=-d),{translateX:c,translateY:p,rotate:Math.atan2(n,r)*gu,skewX:Math.atan(v)*gu,scaleX:d,scaleY:g}}var Jr;function Xh(r){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(r+"");return n.isIdentity?ct:Qu(n.a,n.b,n.c,n.d,n.e,n.f)}function Kh(r){return r==null||(Jr||(Jr=document.createElementNS("http://www.w3.org/2000/svg","g")),Jr.setAttribute("transform",r),!(r=Jr.transform.baseVal.consolidate()))?ct:(r=r.matrix,Qu(r.a,r.b,r.c,r.d,r.e,r.f))}function eo(r,n,i,a){function c(A){return A.length?A.pop()+" ":""}function p(A,x,k,E,D,Y){if(A!==k||x!==E){var z=D.push("translate(",null,n,null,i);Y.push({i:z-4,x:Ge(A,k)},{i:z-2,x:Ge(x,E)})}else(k||E)&&D.push("translate("+k+n+E+i)}function d(A,x,k,E){A!==x?(A-x>180?x+=360:x-A>180&&(A+=360),E.push({i:k.push(c(k)+"rotate(",null,a)-2,x:Ge(A,x)})):x&&k.push(c(k)+"rotate("+x+a)}function g(A,x,k,E){A!==x?E.push({i:k.push(c(k)+"skewX(",null,a)-2,x:Ge(A,x)}):x&&k.push(c(k)+"skewX("+x+a)}function v(A,x,k,E,D,Y){if(A!==k||x!==E){var z=D.push(c(D)+"scale(",null,",",null,")");Y.push({i:z-4,x:Ge(A,k)},{i:z-2,x:Ge(x,E)})}else(k!==1||E!==1)&&D.push(c(D)+"scale("+k+","+E+")")}return function(A,x){var k=[],E=[];return A=r(A),x=r(x),p(A.translateX,A.translateY,x.translateX,x.translateY,k,E),d(A.rotate,x.rotate,k,E),g(A.skewX,x.skewX,k,E),v(A.scaleX,A.scaleY,x.scaleX,x.scaleY,k,E),A=x=null,function(D){for(var Y=-1,z=E.length,Z;++Y<z;)k[(Z=E[Y]).i]=Z.x(D);return k.join("")}}}var Wh=eo(Xh,"px, ","px)","deg)"),Zh=eo(Kh,", ",")",")"),Jh=1e-12;function mu(r){return((r=Math.exp(r))+1/r)/2}function Qh(r){return((r=Math.exp(r))-1/r)/2}function ep(r){return((r=Math.exp(2*r))-1)/(r+1)}const rp=function r(n,i,a){function c(p,d){var g=p[0],v=p[1],A=p[2],x=d[0],k=d[1],E=d[2],D=x-g,Y=k-v,z=D*D+Y*Y,Z,q;if(z<Jh)q=Math.log(E/A)/n,Z=function(I){return[g+I*D,v+I*Y,A*Math.exp(n*I*q)]};else{var X=Math.sqrt(z),ie=(E*E-A*A+a*z)/(2*A*i*X),ae=(E*E-A*A-a*z)/(2*E*i*X),se=Math.log(Math.sqrt(ie*ie+1)-ie),fe=Math.log(Math.sqrt(ae*ae+1)-ae);q=(fe-se)/n,Z=function(I){var R=I*q,$=mu(se),V=A/(i*X)*($*ep(n*R+se)-Qh(se));return[g+V*D,v+V*Y,A*$/mu(n*R+se)]}}return Z.duration=q*1e3*n/Math.SQRT2,Z}return c.rho=function(p){var d=Math.max(.001,+p),g=d*d,v=g*g;return r(d,g,v)},c}(Math.SQRT2,2,4);var dr=0,Er=0,kr=0,ro=1e3,fn,Sr,hn=0,nr=0,xn=0,Rr=typeof performance=="object"&&performance.now?performance:Date,no=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(r){setTimeout(r,17)};function _t(){return nr||(no(np),nr=Rr.now()+xn)}function np(){nr=0}function pn(){this._call=this._time=this._next=null}pn.prototype=to.prototype={constructor:pn,restart:function(r,n,i){if(typeof r!="function")throw new TypeError("callback is not a function");i=(i==null?_t():+i)+(n==null?0:+n),!this._next&&Sr!==this&&(Sr?Sr._next=this:fn=this,Sr=this),this._call=r,this._time=i,ft()},stop:function(){this._call&&(this._call=null,this._time=1/0,ft())}};function to(r,n,i){var a=new pn;return a.restart(r,n,i),a}function tp(){_t(),++dr;for(var r=fn,n;r;)(n=nr-r._time)>=0&&r._call.call(null,n),r=r._next;--dr}function vu(){nr=(hn=Rr.now())+xn,dr=Er=0;try{tp()}finally{dr=0,up(),nr=0}}function ip(){var r=Rr.now(),n=r-hn;n>ro&&(xn-=n,hn=r)}function up(){for(var r,n=fn,i,a=1/0;n;)n._call?(a>n._time&&(a=n._time),r=n,n=n._next):(i=n._next,n._next=null,n=r?r._next=i:fn=i);Sr=r,ft(a)}function ft(r){if(!dr){Er&&(Er=clearTimeout(Er));var n=r-nr;n>24?(r<1/0&&(Er=setTimeout(vu,r-Rr.now()-xn)),kr&&(kr=clearInterval(kr))):(kr||(hn=Rr.now(),kr=setInterval(ip,ro)),dr=1,no(vu))}}function xu(r,n,i){var a=new pn;return n=n==null?0:+n,a.restart(c=>{a.stop(),r(c+n)},n,i),a}var op=yt("start","end","cancel","interrupt"),lp=[],io=0,yu=1,ht=2,tn=3,Au=4,pt=5,un=6;function yn(r,n,i,a,c,p){var d=r.__transition;if(!d)r.__transition={};else if(i in d)return;ap(r,i,{name:n,index:a,group:c,on:op,tween:lp,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:io})}function Ct(r,n){var i=Re(r,n);if(i.state>io)throw new Error("too late; already scheduled");return i}function Le(r,n){var i=Re(r,n);if(i.state>tn)throw new Error("too late; already running");return i}function Re(r,n){var i=r.__transition;if(!i||!(i=i[n]))throw new Error("transition not found");return i}function ap(r,n,i){var a=r.__transition,c;a[n]=i,i.timer=to(p,0,i.time);function p(A){i.state=yu,i.timer.restart(d,i.delay,i.time),i.delay<=A&&d(A-i.delay)}function d(A){var x,k,E,D;if(i.state!==yu)return v();for(x in a)if(D=a[x],D.name===i.name){if(D.state===tn)return xu(d);D.state===Au?(D.state=un,D.timer.stop(),D.on.call("interrupt",r,r.__data__,D.index,D.group),delete a[x]):+x<n&&(D.state=un,D.timer.stop(),D.on.call("cancel",r,r.__data__,D.index,D.group),delete a[x])}if(xu(function(){i.state===tn&&(i.state=Au,i.timer.restart(g,i.delay,i.time),g(A))}),i.state=ht,i.on.call("start",r,r.__data__,i.index,i.group),i.state===ht){for(i.state=tn,c=new Array(E=i.tween.length),x=0,k=-1;x<E;++x)(D=i.tween[x].value.call(r,r.__data__,i.index,i.group))&&(c[++k]=D);c.length=k+1}}function g(A){for(var x=A<i.duration?i.ease.call(null,A/i.duration):(i.timer.restart(v),i.state=pt,1),k=-1,E=c.length;++k<E;)c[k].call(r,x);i.state===pt&&(i.on.call("end",r,r.__data__,i.index,i.group),v())}function v(){i.state=un,i.timer.stop(),delete a[n];for(var A in a)return;delete r.__transition}}function on(r,n){var i=r.__transition,a,c,p=!0,d;if(i){n=n==null?null:n+"";for(d in i){if((a=i[d]).name!==n){p=!1;continue}c=a.state>ht&&a.state<pt,a.state=un,a.timer.stop(),a.on.call(c?"interrupt":"cancel",r,r.__data__,a.index,a.group),delete i[d]}p&&delete r.__transition}}function sp(r){return this.each(function(){on(this,r)})}function cp(r,n){var i,a;return function(){var c=Le(this,r),p=c.tween;if(p!==i){a=i=p;for(var d=0,g=a.length;d<g;++d)if(a[d].name===n){a=a.slice(),a.splice(d,1);break}}c.tween=a}}function fp(r,n,i){var a,c;if(typeof i!="function")throw new Error;return function(){var p=Le(this,r),d=p.tween;if(d!==a){c=(a=d).slice();for(var g={name:n,value:i},v=0,A=c.length;v<A;++v)if(c[v].name===n){c[v]=g;break}v===A&&c.push(g)}p.tween=c}}function hp(r,n){var i=this._id;if(r+="",arguments.length<2){for(var a=Re(this.node(),i).tween,c=0,p=a.length,d;c<p;++c)if((d=a[c]).name===r)return d.value;return null}return this.each((n==null?cp:fp)(i,r,n))}function kt(r,n,i){var a=r._id;return r.each(function(){var c=Le(this,a);(c.value||(c.value={}))[n]=i.apply(this,arguments)}),function(c){return Re(c,a).value[n]}}function uo(r,n){var i;return(typeof n=="number"?Ge:n instanceof Mr?du:(i=Mr(n))?(n=i,du):Yh)(r,n)}function pp(r){return function(){this.removeAttribute(r)}}function dp(r){return function(){this.removeAttributeNS(r.space,r.local)}}function gp(r,n,i){var a,c=i+"",p;return function(){var d=this.getAttribute(r);return d===c?null:d===a?p:p=n(a=d,i)}}function mp(r,n,i){var a,c=i+"",p;return function(){var d=this.getAttributeNS(r.space,r.local);return d===c?null:d===a?p:p=n(a=d,i)}}function vp(r,n,i){var a,c,p;return function(){var d,g=i(this),v;return g==null?void this.removeAttribute(r):(d=this.getAttribute(r),v=g+"",d===v?null:d===a&&v===c?p:(c=v,p=n(a=d,g)))}}function xp(r,n,i){var a,c,p;return function(){var d,g=i(this),v;return g==null?void this.removeAttributeNS(r.space,r.local):(d=this.getAttributeNS(r.space,r.local),v=g+"",d===v?null:d===a&&v===c?p:(c=v,p=n(a=d,g)))}}function yp(r,n){var i=vn(r),a=i==="transform"?Zh:uo;return this.attrTween(r,typeof n=="function"?(i.local?xp:vp)(i,a,kt(this,"attr."+r,n)):n==null?(i.local?dp:pp)(i):(i.local?mp:gp)(i,a,n))}function Ap(r,n){return function(i){this.setAttribute(r,n.call(this,i))}}function bp(r,n){return function(i){this.setAttributeNS(r.space,r.local,n.call(this,i))}}function wp(r,n){var i,a;function c(){var p=n.apply(this,arguments);return p!==a&&(i=(a=p)&&bp(r,p)),i}return c._value=n,c}function _p(r,n){var i,a;function c(){var p=n.apply(this,arguments);return p!==a&&(i=(a=p)&&Ap(r,p)),i}return c._value=n,c}function Cp(r,n){var i="attr."+r;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(n==null)return this.tween(i,null);if(typeof n!="function")throw new Error;var a=vn(r);return this.tween(i,(a.local?wp:_p)(a,n))}function kp(r,n){return function(){Ct(this,r).delay=+n.apply(this,arguments)}}function Dp(r,n){return n=+n,function(){Ct(this,r).delay=n}}function Ep(r){var n=this._id;return arguments.length?this.each((typeof r=="function"?kp:Dp)(n,r)):Re(this.node(),n).delay}function Sp(r,n){return function(){Le(this,r).duration=+n.apply(this,arguments)}}function Fp(r,n){return n=+n,function(){Le(this,r).duration=n}}function Bp(r){var n=this._id;return arguments.length?this.each((typeof r=="function"?Sp:Fp)(n,r)):Re(this.node(),n).duration}function Tp(r,n){if(typeof n!="function")throw new Error;return function(){Le(this,r).ease=n}}function Mp(r){var n=this._id;return arguments.length?this.each(Tp(n,r)):Re(this.node(),n).ease}function Rp(r,n){return function(){var i=n.apply(this,arguments);if(typeof i!="function")throw new Error;Le(this,r).ease=i}}function Ip(r){if(typeof r!="function")throw new Error;return this.each(Rp(this._id,r))}function Np(r){typeof r!="function"&&(r=Pu(r));for(var n=this._groups,i=n.length,a=new Array(i),c=0;c<i;++c)for(var p=n[c],d=p.length,g=a[c]=[],v,A=0;A<d;++A)(v=p[A])&&r.call(v,v.__data__,A,p)&&g.push(v);return new Ue(a,this._parents,this._name,this._id)}function qp(r){if(r._id!==this._id)throw new Error;for(var n=this._groups,i=r._groups,a=n.length,c=i.length,p=Math.min(a,c),d=new Array(a),g=0;g<p;++g)for(var v=n[g],A=i[g],x=v.length,k=d[g]=new Array(x),E,D=0;D<x;++D)(E=v[D]||A[D])&&(k[D]=E);for(;g<a;++g)d[g]=n[g];return new Ue(d,this._parents,this._name,this._id)}function Lp(r){return(r+"").trim().split(/^|\s+/).every(function(n){var i=n.indexOf(".");return i>=0&&(n=n.slice(0,i)),!n||n==="start"})}function Op(r,n,i){var a,c,p=Lp(n)?Ct:Le;return function(){var d=p(this,r),g=d.on;g!==a&&(c=(a=g).copy()).on(n,i),d.on=c}}function Pp(r,n){var i=this._id;return arguments.length<2?Re(this.node(),i).on.on(r):this.each(Op(i,r,n))}function zp(r){return function(){var n=this.parentNode;for(var i in this.__transition)if(+i!==r)return;n&&n.removeChild(this)}}function $p(){return this.on("end.remove",zp(this._id))}function Up(r){var n=this._name,i=this._id;typeof r!="function"&&(r=At(r));for(var a=this._groups,c=a.length,p=new Array(c),d=0;d<c;++d)for(var g=a[d],v=g.length,A=p[d]=new Array(v),x,k,E=0;E<v;++E)(x=g[E])&&(k=r.call(x,x.__data__,E,g))&&("__data__"in x&&(k.__data__=x.__data__),A[E]=k,yn(A[E],n,i,E,A,Re(x,i)));return new Ue(p,this._parents,n,i)}function Hp(r){var n=this._name,i=this._id;typeof r!="function"&&(r=Ou(r));for(var a=this._groups,c=a.length,p=[],d=[],g=0;g<c;++g)for(var v=a[g],A=v.length,x,k=0;k<A;++k)if(x=v[k]){for(var E=r.call(x,x.__data__,k,v),D,Y=Re(x,i),z=0,Z=E.length;z<Z;++z)(D=E[z])&&yn(D,n,i,z,E,Y);p.push(E),d.push(x)}return new Ue(p,d,n,i)}var jp=Nr.prototype.constructor;function Vp(){return new jp(this._groups,this._parents)}function Gp(r,n){var i,a,c;return function(){var p=pr(this,r),d=(this.style.removeProperty(r),pr(this,r));return p===d?null:p===i&&d===a?c:c=n(i=p,a=d)}}function oo(r){return function(){this.style.removeProperty(r)}}function Yp(r,n,i){var a,c=i+"",p;return function(){var d=pr(this,r);return d===c?null:d===a?p:p=n(a=d,i)}}function Xp(r,n,i){var a,c,p;return function(){var d=pr(this,r),g=i(this),v=g+"";return g==null&&(v=g=(this.style.removeProperty(r),pr(this,r))),d===v?null:d===a&&v===c?p:(c=v,p=n(a=d,g))}}function Kp(r,n){var i,a,c,p="style."+n,d="end."+p,g;return function(){var v=Le(this,r),A=v.on,x=v.value[p]==null?g||(g=oo(n)):void 0;(A!==i||c!==x)&&(a=(i=A).copy()).on(d,c=x),v.on=a}}function Wp(r,n,i){var a=(r+="")=="transform"?Wh:uo;return n==null?this.styleTween(r,Gp(r,a)).on("end.style."+r,oo(r)):typeof n=="function"?this.styleTween(r,Xp(r,a,kt(this,"style."+r,n))).each(Kp(this._id,r)):this.styleTween(r,Yp(r,a,n),i).on("end.style."+r,null)}function Zp(r,n,i){return function(a){this.style.setProperty(r,n.call(this,a),i)}}function Jp(r,n,i){var a,c;function p(){var d=n.apply(this,arguments);return d!==c&&(a=(c=d)&&Zp(r,d,i)),a}return p._value=n,p}function Qp(r,n,i){var a="style."+(r+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(n==null)return this.tween(a,null);if(typeof n!="function")throw new Error;return this.tween(a,Jp(r,n,i??""))}function e0(r){return function(){this.textContent=r}}function r0(r){return function(){var n=r(this);this.textContent=n??""}}function n0(r){return this.tween("text",typeof r=="function"?r0(kt(this,"text",r)):e0(r==null?"":r+""))}function t0(r){return function(n){this.textContent=r.call(this,n)}}function i0(r){var n,i;function a(){var c=r.apply(this,arguments);return c!==i&&(n=(i=c)&&t0(c)),n}return a._value=r,a}function u0(r){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(r==null)return this.tween(n,null);if(typeof r!="function")throw new Error;return this.tween(n,i0(r))}function o0(){for(var r=this._name,n=this._id,i=lo(),a=this._groups,c=a.length,p=0;p<c;++p)for(var d=a[p],g=d.length,v,A=0;A<g;++A)if(v=d[A]){var x=Re(v,n);yn(v,r,i,A,d,{time:x.time+x.delay+x.duration,delay:0,duration:x.duration,ease:x.ease})}return new Ue(a,this._parents,r,i)}function l0(){var r,n,i=this,a=i._id,c=i.size();return new Promise(function(p,d){var g={value:d},v={value:function(){--c===0&&p()}};i.each(function(){var A=Le(this,a),x=A.on;x!==r&&(n=(r=x).copy(),n._.cancel.push(g),n._.interrupt.push(g),n._.end.push(v)),A.on=n}),c===0&&p()})}var a0=0;function Ue(r,n,i,a){this._groups=r,this._parents=n,this._name=i,this._id=a}function lo(){return++a0}var Qe=Nr.prototype;Ue.prototype={constructor:Ue,select:Up,selectAll:Hp,filter:Np,merge:qp,selection:Vp,transition:o0,call:Qe.call,nodes:Qe.nodes,node:Qe.node,size:Qe.size,empty:Qe.empty,each:Qe.each,on:Pp,attr:yp,attrTween:Cp,style:Wp,styleTween:Qp,text:n0,textTween:u0,remove:$p,tween:hp,delay:Ep,duration:Bp,ease:Mp,easeVarying:Ip,end:l0,[Symbol.iterator]:Qe[Symbol.iterator]};function s0(r){return((r*=2)<=1?r*r*r:(r-=2)*r*r+2)/2}var c0={time:null,delay:0,duration:250,ease:s0};function f0(r,n){for(var i;!(i=r.__transition)||!(i=i[n]);)if(!(r=r.parentNode))throw new Error(`transition ${n} not found`);return i}function h0(r){var n,i;r instanceof Ue?(n=r._id,r=r._name):(n=lo(),(i=c0).time=_t(),r=r==null?null:r+"");for(var a=this._groups,c=a.length,p=0;p<c;++p)for(var d=a[p],g=d.length,v,A=0;A<g;++A)(v=d[A])&&yn(v,r,n,A,d,i||f0(v,n));return new Ue(a,this._parents,r,n)}Nr.prototype.interrupt=sp;Nr.prototype.transition=h0;const dt=Math.PI,gt=2*dt,er=1e-6,p0=gt-er;function mt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ao(){return new mt}mt.prototype=ao.prototype={constructor:mt,moveTo:function(r,n){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(r,n){this._+="L"+(this._x1=+r)+","+(this._y1=+n)},quadraticCurveTo:function(r,n,i,a){this._+="Q"+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(r,n,i,a,c,p){this._+="C"+ +r+","+ +n+","+ +i+","+ +a+","+(this._x1=+c)+","+(this._y1=+p)},arcTo:function(r,n,i,a,c){r=+r,n=+n,i=+i,a=+a,c=+c;var p=this._x1,d=this._y1,g=i-r,v=a-n,A=p-r,x=d-n,k=A*A+x*x;if(c<0)throw new Error("negative radius: "+c);if(this._x1===null)this._+="M"+(this._x1=r)+","+(this._y1=n);else if(k>er)if(!(Math.abs(x*g-v*A)>er)||!c)this._+="L"+(this._x1=r)+","+(this._y1=n);else{var E=i-p,D=a-d,Y=g*g+v*v,z=E*E+D*D,Z=Math.sqrt(Y),q=Math.sqrt(k),X=c*Math.tan((dt-Math.acos((Y+k-z)/(2*Z*q)))/2),ie=X/q,ae=X/Z;Math.abs(ie-1)>er&&(this._+="L"+(r+ie*A)+","+(n+ie*x)),this._+="A"+c+","+c+",0,0,"+ +(x*E>A*D)+","+(this._x1=r+ae*g)+","+(this._y1=n+ae*v)}},arc:function(r,n,i,a,c,p){r=+r,n=+n,i=+i,p=!!p;var d=i*Math.cos(a),g=i*Math.sin(a),v=r+d,A=n+g,x=1^p,k=p?a-c:c-a;if(i<0)throw new Error("negative radius: "+i);this._x1===null?this._+="M"+v+","+A:(Math.abs(this._x1-v)>er||Math.abs(this._y1-A)>er)&&(this._+="L"+v+","+A),i&&(k<0&&(k=k%gt+gt),k>p0?this._+="A"+i+","+i+",0,1,"+x+","+(r-d)+","+(n-g)+"A"+i+","+i+",0,1,"+x+","+(this._x1=v)+","+(this._y1=A):k>er&&(this._+="A"+i+","+i+",0,"+ +(k>=dt)+","+x+","+(this._x1=r+i*Math.cos(c))+","+(this._y1=n+i*Math.sin(c))))},rect:function(r,n,i,a){this._+="M"+(this._x0=this._x1=+r)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};function d0(r,n){switch(arguments.length){case 0:break;case 1:this.range(r);break;default:this.range(n).domain(r);break}return this}const bu=Symbol("implicit");function so(){var r=new Map,n=[],i=[],a=bu;function c(p){var d=p+"",g=r.get(d);if(!g){if(a!==bu)return a;r.set(d,g=n.push(p))}return i[(g-1)%i.length]}return c.domain=function(p){if(!arguments.length)return n.slice();n=[],r=new Map;for(const d of p){const g=d+"";r.has(g)||r.set(g,n.push(d))}return c},c.range=function(p){return arguments.length?(i=Array.from(p),c):i.slice()},c.unknown=function(p){return arguments.length?(a=p,c):a},c.copy=function(){return so(n,i).unknown(a)},d0.apply(c,arguments),c}function g0(r){for(var n=r.length/6|0,i=new Array(n),a=0;a<n;)i[a]="#"+r.slice(a*6,++a*6);return i}const m0=g0("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");function wu(r){return function(){return r}}var v0=Array.prototype.slice;function x0(r){return r[0]}function y0(r){return r[1]}function A0(r){return r.source}function b0(r){return r.target}function w0(r){var n=A0,i=b0,a=x0,c=y0,p=null;function d(){var g,v=v0.call(arguments),A=n.apply(this,v),x=i.apply(this,v);if(p||(p=g=ao()),r(p,+a.apply(this,(v[0]=A,v)),+c.apply(this,v),+a.apply(this,(v[0]=x,v)),+c.apply(this,v)),g)return p=null,g+""||null}return d.source=function(g){return arguments.length?(n=g,d):n},d.target=function(g){return arguments.length?(i=g,d):i},d.x=function(g){return arguments.length?(a=typeof g=="function"?g:wu(+g),d):a},d.y=function(g){return arguments.length?(c=typeof g=="function"?g:wu(+g),d):c},d.context=function(g){return arguments.length?(p=g??null,d):p},d}function _0(r,n,i,a,c){r.moveTo(n,i),r.bezierCurveTo(n=(n+a)/2,i,n,c,a,c)}function C0(){return w0(_0)}const Qr=r=>()=>r;function k0(r,{sourceEvent:n,target:i,transform:a,dispatch:c}){Object.defineProperties(this,{type:{value:r,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:c}})}function ze(r,n,i){this.k=r,this.x=n,this.y=i}ze.prototype={constructor:ze,scale:function(r){return r===1?this:new ze(this.k*r,this.x,this.y)},translate:function(r,n){return r===0&n===0?this:new ze(this.k,this.x+this.k*r,this.y+this.k*n)},apply:function(r){return[r[0]*this.k+this.x,r[1]*this.k+this.y]},applyX:function(r){return r*this.k+this.x},applyY:function(r){return r*this.k+this.y},invert:function(r){return[(r[0]-this.x)/this.k,(r[1]-this.y)/this.k]},invertX:function(r){return(r-this.x)/this.k},invertY:function(r){return(r-this.y)/this.k},rescaleX:function(r){return r.copy().domain(r.range().map(this.invertX,this).map(r.invert,r))},rescaleY:function(r){return r.copy().domain(r.range().map(this.invertY,this).map(r.invert,r))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var An=new ze(1,0,0);ln.prototype=ze.prototype;function ln(r){for(;!r.__zoom;)if(!(r=r.parentNode))return An;return r.__zoom}function et(r){r.stopImmediatePropagation()}function Dr(r){r.preventDefault(),r.stopImmediatePropagation()}function D0(r){return(!r.ctrlKey||r.type==="wheel")&&!r.button}function E0(){var r=this;return r instanceof SVGElement?(r=r.ownerSVGElement||r,r.hasAttribute("viewBox")?(r=r.viewBox.baseVal,[[r.x,r.y],[r.x+r.width,r.y+r.height]]):[[0,0],[r.width.baseVal.value,r.height.baseVal.value]]):[[0,0],[r.clientWidth,r.clientHeight]]}function _u(){return this.__zoom||An}function S0(r){return-r.deltaY*(r.deltaMode===1?.05:r.deltaMode?1:.002)*(r.ctrlKey?10:1)}function F0(){return navigator.maxTouchPoints||"ontouchstart"in this}function B0(r,n,i){var a=r.invertX(n[0][0])-i[0][0],c=r.invertX(n[1][0])-i[1][0],p=r.invertY(n[0][1])-i[0][1],d=r.invertY(n[1][1])-i[1][1];return r.translate(c>a?(a+c)/2:Math.min(0,a)||Math.max(0,c),d>p?(p+d)/2:Math.min(0,p)||Math.max(0,d))}function T0(){var r=D0,n=E0,i=B0,a=S0,c=F0,p=[0,1/0],d=[[-1/0,-1/0],[1/0,1/0]],g=250,v=rp,A=yt("start","zoom","end"),x,k,E,D=500,Y=150,z=0,Z=10;function q(b){b.property("__zoom",_u).on("wheel.zoom",R).on("mousedown.zoom",$).on("dblclick.zoom",V).filter(c).on("touchstart.zoom",ue).on("touchmove.zoom",J).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}q.transform=function(b,M,S,L){var K=b.selection?b.selection():b;K.property("__zoom",_u),b!==K?se(b,M,S,L):K.interrupt().each(function(){fe(this,arguments).event(L).start().zoom(null,typeof M=="function"?M.apply(this,arguments):M).end()})},q.scaleBy=function(b,M,S,L){q.scaleTo(b,function(){var K=this.__zoom.k,W=typeof M=="function"?M.apply(this,arguments):M;return K*W},S,L)},q.scaleTo=function(b,M,S,L){q.transform(b,function(){var K=n.apply(this,arguments),W=this.__zoom,U=S==null?ae(K):typeof S=="function"?S.apply(this,arguments):S,re=W.invert(U),oe=typeof M=="function"?M.apply(this,arguments):M;return i(ie(X(W,oe),U,re),K,d)},S,L)},q.translateBy=function(b,M,S,L){q.transform(b,function(){return i(this.__zoom.translate(typeof M=="function"?M.apply(this,arguments):M,typeof S=="function"?S.apply(this,arguments):S),n.apply(this,arguments),d)},null,L)},q.translateTo=function(b,M,S,L,K){q.transform(b,function(){var W=n.apply(this,arguments),U=this.__zoom,re=L==null?ae(W):typeof L=="function"?L.apply(this,arguments):L;return i(An.translate(re[0],re[1]).scale(U.k).translate(typeof M=="function"?-M.apply(this,arguments):-M,typeof S=="function"?-S.apply(this,arguments):-S),W,d)},L,K)};function X(b,M){return M=Math.max(p[0],Math.min(p[1],M)),M===b.k?b:new ze(M,b.x,b.y)}function ie(b,M,S){var L=M[0]-S[0]*b.k,K=M[1]-S[1]*b.k;return L===b.x&&K===b.y?b:new ze(b.k,L,K)}function ae(b){return[(+b[0][0]+ +b[1][0])/2,(+b[0][1]+ +b[1][1])/2]}function se(b,M,S,L){b.on("start.zoom",function(){fe(this,arguments).event(L).start()}).on("interrupt.zoom end.zoom",function(){fe(this,arguments).event(L).end()}).tween("zoom",function(){var K=this,W=arguments,U=fe(K,W).event(L),re=n.apply(K,W),oe=S==null?ae(re):typeof S=="function"?S.apply(K,W):S,ce=Math.max(re[1][0]-re[0][0],re[1][1]-re[0][1]),le=K.__zoom,P=typeof M=="function"?M.apply(K,W):M,G=v(le.invert(oe).concat(ce/le.k),P.invert(oe).concat(ce/P.k));return function(te){if(te===1)te=P;else{var ne=G(te),he=ce/ne[2];te=new ze(he,oe[0]-ne[0]*he,oe[1]-ne[1]*he)}U.zoom(null,te)}})}function fe(b,M,S){return!S&&b.__zooming||new I(b,M)}function I(b,M){this.that=b,this.args=M,this.active=0,this.sourceEvent=null,this.extent=n.apply(b,M),this.taps=0}I.prototype={event:function(b){return b&&(this.sourceEvent=b),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(b,M){return this.mouse&&b!=="mouse"&&(this.mouse[1]=M.invert(this.mouse[0])),this.touch0&&b!=="touch"&&(this.touch0[1]=M.invert(this.touch0[0])),this.touch1&&b!=="touch"&&(this.touch1[1]=M.invert(this.touch1[0])),this.that.__zoom=M,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(b){var M=Xe(this.that).datum();A.call(b,this.that,new k0(b,{sourceEvent:this.sourceEvent,target:q,type:b,transform:this.that.__zoom,dispatch:A}),M)}};function R(b,...M){if(!r.apply(this,arguments))return;var S=fe(this,M).event(b),L=this.__zoom,K=Math.max(p[0],Math.min(p[1],L.k*Math.pow(2,a.apply(this,arguments)))),W=Je(b);if(S.wheel)(S.mouse[0][0]!==W[0]||S.mouse[0][1]!==W[1])&&(S.mouse[1]=L.invert(S.mouse[0]=W)),clearTimeout(S.wheel);else{if(L.k===K)return;S.mouse=[W,L.invert(W)],on(this),S.start()}Dr(b),S.wheel=setTimeout(U,Y),S.zoom("mouse",i(ie(X(L,K),S.mouse[0],S.mouse[1]),S.extent,d));function U(){S.wheel=null,S.end()}}function $(b,...M){if(E||!r.apply(this,arguments))return;var S=fe(this,M,!0).event(b),L=Xe(b.view).on("mousemove.zoom",oe,!0).on("mouseup.zoom",ce,!0),K=Je(b,W),W=b.currentTarget,U=b.clientX,re=b.clientY;Bh(b.view),et(b),S.mouse=[K,this.__zoom.invert(K)],on(this),S.start();function oe(le){if(Dr(le),!S.moved){var P=le.clientX-U,G=le.clientY-re;S.moved=P*P+G*G>z}S.event(le).zoom("mouse",i(ie(S.that.__zoom,S.mouse[0]=Je(le,W),S.mouse[1]),S.extent,d))}function ce(le){L.on("mousemove.zoom mouseup.zoom",null),Th(le.view,S.moved),Dr(le),S.event(le).end()}}function V(b,...M){if(r.apply(this,arguments)){var S=this.__zoom,L=Je(b.changedTouches?b.changedTouches[0]:b,this),K=S.invert(L),W=S.k*(b.shiftKey?.5:2),U=i(ie(X(S,W),L,K),n.apply(this,M),d);Dr(b),g>0?Xe(this).transition().duration(g).call(se,U,L,b):Xe(this).call(q.transform,U,L,b)}}function ue(b,...M){if(r.apply(this,arguments)){var S=b.touches,L=S.length,K=fe(this,M,b.changedTouches.length===L).event(b),W,U,re,oe;for(et(b),U=0;U<L;++U)re=S[U],oe=Je(re,this),oe=[oe,this.__zoom.invert(oe),re.identifier],K.touch0?!K.touch1&&K.touch0[2]!==oe[2]&&(K.touch1=oe,K.taps=0):(K.touch0=oe,W=!0,K.taps=1+!!x);x&&(x=clearTimeout(x)),W&&(K.taps<2&&(k=oe[0],x=setTimeout(function(){x=null},D)),on(this),K.start())}}function J(b,...M){if(this.__zooming){var S=fe(this,M).event(b),L=b.changedTouches,K=L.length,W,U,re,oe;for(Dr(b),W=0;W<K;++W)U=L[W],re=Je(U,this),S.touch0&&S.touch0[2]===U.identifier?S.touch0[0]=re:S.touch1&&S.touch1[2]===U.identifier&&(S.touch1[0]=re);if(U=S.that.__zoom,S.touch1){var ce=S.touch0[0],le=S.touch0[1],P=S.touch1[0],G=S.touch1[1],te=(te=P[0]-ce[0])*te+(te=P[1]-ce[1])*te,ne=(ne=G[0]-le[0])*ne+(ne=G[1]-le[1])*ne;U=X(U,Math.sqrt(te/ne)),re=[(ce[0]+P[0])/2,(ce[1]+P[1])/2],oe=[(le[0]+G[0])/2,(le[1]+G[1])/2]}else if(S.touch0)re=S.touch0[0],oe=S.touch0[1];else return;S.zoom("touch",i(ie(U,re,oe),S.extent,d))}}function C(b,...M){if(this.__zooming){var S=fe(this,M).event(b),L=b.changedTouches,K=L.length,W,U;for(et(b),E&&clearTimeout(E),E=setTimeout(function(){E=null},D),W=0;W<K;++W)U=L[W],S.touch0&&S.touch0[2]===U.identifier?delete S.touch0:S.touch1&&S.touch1[2]===U.identifier&&delete S.touch1;if(S.touch1&&!S.touch0&&(S.touch0=S.touch1,delete S.touch1),S.touch0)S.touch0[1]=this.__zoom.invert(S.touch0[0]);else if(S.end(),S.taps===2&&(U=Je(U,this),Math.hypot(k[0]-U[0],k[1]-U[1])<Z)){var re=Xe(this).on("dblclick.zoom");re&&re.apply(this,arguments)}}}return q.wheelDelta=function(b){return arguments.length?(a=typeof b=="function"?b:Qr(+b),q):a},q.filter=function(b){return arguments.length?(r=typeof b=="function"?b:Qr(!!b),q):r},q.touchable=function(b){return arguments.length?(c=typeof b=="function"?b:Qr(!!b),q):c},q.extent=function(b){return arguments.length?(n=typeof b=="function"?b:Qr([[+b[0][0],+b[0][1]],[+b[1][0],+b[1][1]]]),q):n},q.scaleExtent=function(b){return arguments.length?(p[0]=+b[0],p[1]=+b[1],q):[p[0],p[1]]},q.translateExtent=function(b){return arguments.length?(d[0][0]=+b[0][0],d[1][0]=+b[1][0],d[0][1]=+b[0][1],d[1][1]=+b[1][1],q):[[d[0][0],d[0][1]],[d[1][0],d[1][1]]]},q.constrain=function(b){return arguments.length?(i=b,q):i},q.duration=function(b){return arguments.length?(g=+b,q):g},q.interpolate=function(b){return arguments.length?(v=b,q):v},q.on=function(){var b=A.on.apply(A,arguments);return b===A?q:b},q.clickDistance=function(b){return arguments.length?(z=(b=+b)*b,q):Math.sqrt(z)},q.tapDistance=function(b){return arguments.length?(Z=+b,q):Z},q}/*! markmap-view v0.14.4 | MIT License */function Ye(){return Ye=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])}return r},Ye.apply(this,arguments)}function M0(r){var n=0,i=r.children,a=i&&i.length;if(!a)n=1;else for(;--a>=0;)n+=i[a].value;r.value=n}function R0(){return this.eachAfter(M0)}function I0(r){var n=this,i,a=[n],c,p,d;do for(i=a.reverse(),a=[];n=i.pop();)if(r(n),c=n.children,c)for(p=0,d=c.length;p<d;++p)a.push(c[p]);while(a.length);return this}function N0(r){for(var n=this,i=[n],a,c;n=i.pop();)if(r(n),a=n.children,a)for(c=a.length-1;c>=0;--c)i.push(a[c]);return this}function q0(r){for(var n=this,i=[n],a=[],c,p,d;n=i.pop();)if(a.push(n),c=n.children,c)for(p=0,d=c.length;p<d;++p)i.push(c[p]);for(;n=a.pop();)r(n);return this}function L0(r){return this.eachAfter(function(n){for(var i=+r(n.data)||0,a=n.children,c=a&&a.length;--c>=0;)i+=a[c].value;n.value=i})}function O0(r){return this.eachBefore(function(n){n.children&&n.children.sort(r)})}function P0(r){for(var n=this,i=z0(n,r),a=[n];n!==i;)n=n.parent,a.push(n);for(var c=a.length;r!==i;)a.splice(c,0,r),r=r.parent;return a}function z0(r,n){if(r===n)return r;var i=r.ancestors(),a=n.ancestors(),c=null;for(r=i.pop(),n=a.pop();r===n;)c=r,r=i.pop(),n=a.pop();return c}function $0(){for(var r=this,n=[r];r=r.parent;)n.push(r);return n}function U0(){var r=[];return this.each(function(n){r.push(n)}),r}function H0(){var r=[];return this.eachBefore(function(n){n.children||r.push(n)}),r}function j0(){var r=this,n=[];return r.each(function(i){i!==r&&n.push({source:i.parent,target:i})}),n}function Dt(r,n){var i=new dn(r),a=+r.value&&(i.value=r.value),c,p=[i],d,g,v,A;for(n==null&&(n=G0);c=p.pop();)if(a&&(c.value=+c.data.value),(g=n(c.data))&&(A=g.length))for(c.children=new Array(A),v=A-1;v>=0;--v)p.push(d=c.children[v]=new dn(g[v])),d.parent=c,d.depth=c.depth+1;return i.eachBefore(X0)}function V0(){return Dt(this).eachBefore(Y0)}function G0(r){return r.children}function Y0(r){r.data=r.data.data}function X0(r){var n=0;do r.height=n;while((r=r.parent)&&r.height<++n)}function dn(r){this.data=r,this.depth=this.height=0,this.parent=null}dn.prototype=Dt.prototype={constructor:dn,count:R0,each:I0,eachAfter:q0,eachBefore:N0,sum:L0,sort:O0,path:P0,ancestors:$0,descendants:U0,leaves:H0,links:j0,copy:V0};var K0="d3-flextree",W0="2.1.2",Z0="build/d3-flextree.js",J0="index",Q0={name:"Chris Maloney",url:"http://chrismaloney.org"},e2="Flexible tree layout algorithm that allows for variable node sizes.",r2=["d3","d3-module","layout","tree","hierarchy","d3-hierarchy","plugin","d3-plugin","infovis","visualization","2d"],n2="https://github.com/klortho/d3-flextree",t2="WTFPL",i2={type:"git",url:"https://github.com/klortho/d3-flextree.git"},u2={clean:"rm -rf build demo test","build:demo":"rollup -c --environment BUILD:demo","build:dev":"rollup -c --environment BUILD:dev","build:prod":"rollup -c --environment BUILD:prod","build:test":"rollup -c --environment BUILD:test",build:"rollup -c",lint:"eslint index.js src","test:main":"node test/bundle.js","test:browser":"node test/browser-tests.js",test:"npm-run-all test:*",prepare:"npm-run-all clean build lint test"},o2={"d3-hierarchy":"^1.1.5"},l2={"babel-plugin-external-helpers":"^6.22.0","babel-preset-es2015-rollup":"^3.0.0",d3:"^4.13.0","d3-selection-multi":"^1.0.1",eslint:"^4.19.1",jsdom:"^11.6.2","npm-run-all":"^4.1.2",rollup:"^0.55.3","rollup-plugin-babel":"^2.7.1","rollup-plugin-commonjs":"^8.0.2","rollup-plugin-copy":"^0.2.3","rollup-plugin-json":"^2.3.0","rollup-plugin-node-resolve":"^3.0.2","rollup-plugin-uglify":"^3.0.0","uglify-es":"^3.3.9"},a2={name:K0,version:W0,main:Z0,module:J0,"jsnext:main":"index",author:Q0,description:e2,keywords:r2,homepage:n2,license:t2,repository:i2,scripts:u2,dependencies:o2,devDependencies:l2};const{version:s2}=a2,c2=Object.freeze({children:r=>r.children,nodeSize:r=>r.data.size,spacing:0});function fo(r){const n=Object.assign({},c2,r);function i(g){const v=n[g];return typeof v=="function"?v:()=>v}function a(g){const v=d(p(),g,A=>A.children);return v.update(),v.data}function c(){const g=i("nodeSize"),v=i("spacing");return class co extends Dt.prototype.constructor{constructor(x){super(x)}copy(){const x=d(this.constructor,this,k=>k.children);return x.each(k=>k.data=k.data.data),x}get size(){return g(this)}spacing(x){return v(this,x)}get nodes(){return this.descendants()}get xSize(){return this.size[0]}get ySize(){return this.size[1]}get top(){return this.y}get bottom(){return this.y+this.ySize}get left(){return this.x-this.xSize/2}get right(){return this.x+this.xSize/2}get root(){const x=this.ancestors();return x[x.length-1]}get numChildren(){return this.hasChildren?this.children.length:0}get hasChildren(){return!this.noChildren}get noChildren(){return this.children===null}get firstChild(){return this.hasChildren?this.children[0]:null}get lastChild(){return this.hasChildren?this.children[this.numChildren-1]:null}get extents(){return(this.children||[]).reduce((x,k)=>co.maxExtents(x,k.extents),this.nodeExtents)}get nodeExtents(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}static maxExtents(x,k){return{top:Math.min(x.top,k.top),bottom:Math.max(x.bottom,k.bottom),left:Math.min(x.left,k.left),right:Math.max(x.right,k.right)}}}}function p(){const g=c(),v=i("nodeSize"),A=i("spacing");return class extends g{constructor(x){super(x),Object.assign(this,{x:0,y:0,relX:0,prelim:0,shift:0,change:0,lExt:this,lExtRelX:0,lThr:null,rExt:this,rExtRelX:0,rThr:null})}get size(){return v(this.data)}spacing(x){return A(this.data,x.data)}get x(){return this.data.x}set x(x){this.data.x=x}get y(){return this.data.y}set y(x){this.data.y=x}update(){return ho(this),po(this),this}}}function d(g,v,A){const x=(k,E)=>{const D=new g(k);Object.assign(D,{parent:E,depth:E===null?0:E.depth+1,height:0,length:1});const Y=A(k)||[];return D.children=Y.length===0?null:Y.map(z=>x(z,D)),D.children&&Object.assign(D,D.children.reduce((z,Z)=>({height:Math.max(z.height,Z.height+1),length:z.length+Z.length}),D)),D};return x(v,null)}return Object.assign(a,{nodeSize(g){return arguments.length?(n.nodeSize=g,a):n.nodeSize},spacing(g){return arguments.length?(n.spacing=g,a):n.spacing},children(g){return arguments.length?(n.children=g,a):n.children},hierarchy(g,v){const A=typeof v>"u"?n.children:v;return d(c(),g,A)},dump(g){const v=i("nodeSize"),A=x=>k=>{const E=x+"  ",D=x+"    ",{x:Y,y:z}=k,Z=v(k),q=k.children||[],X=q.length===0?" ":`,${E}children: [${D}${q.map(A(D)).join(D)}${E}],${x}`;return`{ size: [${Z.join(", ")}],${E}x: ${Y}, y: ${z}${X}},`};return A(`
`)(g)}}),a}fo.version=s2;const ho=(r,n=0)=>(r.y=n,(r.children||[]).reduce((i,a)=>{const[c,p]=i;ho(a,r.y+r.ySize);const d=(c===0?a.lExt:a.rExt).bottom;c!==0&&h2(r,c,p);const g=A2(d,c,p);return[c+1,g]},[0,null]),f2(r),y2(r),r),po=(r,n,i)=>{typeof n>"u"&&(n=-r.relX-r.prelim,i=0);const a=n+r.relX;return r.relX=a+r.prelim-i,r.prelim=0,r.x=i+r.relX,(r.children||[]).forEach(c=>po(c,a,r.x)),r},f2=r=>{(r.children||[]).reduce((n,i)=>{const[a,c]=n,p=a+i.shift,d=c+p+i.change;return i.relX+=d,[p,d]},[0,0])},h2=(r,n,i)=>{const a=r.children[n-1],c=r.children[n];let p=a,d=a.relX,g=c,v=c.relX,A=!0;for(;p&&g;){p.bottom>i.lowY&&(i=i.next);const x=d+p.prelim-(v+g.prelim)+p.xSize/2+g.xSize/2+p.spacing(g);(x>0||x<0&&A)&&(v+=x,p2(c,x),d2(r,n,i.index,x)),A=!1;const k=p.bottom,E=g.bottom;k<=E&&(p=m2(p),p&&(d+=p.relX)),k>=E&&(g=g2(g),g&&(v+=g.relX))}!p&&g?v2(r,n,g,v):p&&!g&&x2(r,n,p,d)},p2=(r,n)=>{r.relX+=n,r.lExtRelX+=n,r.rExtRelX+=n},d2=(r,n,i,a)=>{const c=r.children[n],p=n-i;if(p>1){const d=a/p;r.children[i+1].shift+=d,c.shift-=d,c.change-=a-d}},g2=r=>r.hasChildren?r.firstChild:r.lThr,m2=r=>r.hasChildren?r.lastChild:r.rThr,v2=(r,n,i,a)=>{const c=r.firstChild,p=c.lExt,d=r.children[n];p.lThr=i;const g=a-i.relX-c.lExtRelX;p.relX+=g,p.prelim-=g,c.lExt=d.lExt,c.lExtRelX=d.lExtRelX},x2=(r,n,i,a)=>{const c=r.children[n],p=c.rExt,d=r.children[n-1];p.rThr=i;const g=a-i.relX-c.rExtRelX;p.relX+=g,p.prelim-=g,c.rExt=d.rExt,c.rExtRelX=d.rExtRelX},y2=r=>{if(r.hasChildren){const n=r.firstChild,i=r.lastChild,a=(n.prelim+n.relX-n.xSize/2+i.relX+i.prelim+i.xSize/2)/2;Object.assign(r,{prelim:a,lExt:n.lExt,lExtRelX:n.lExtRelX,rExt:i.rExt,rExtRelX:i.rExtRelX})}},A2=(r,n,i)=>{for(;i!==null&&r>=i.lowY;)i=i.next;return{lowY:r,index:n,next:i}};/*! @gera2ld/jsx-dom v2.1.1 | ISC License */var go=1,mo=2,rr=1,vo=4,b2="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xlink",w2={show:rt,actuate:rt,href:rt},_2=function(n){return typeof n=="string"||typeof n=="number"},C2=function(n){return(n==null?void 0:n.vtype)===go},k2=function(n){return(n==null?void 0:n.vtype)===mo};function en(r,n){var i;if(typeof r=="string")i=go;else if(typeof r=="function")i=mo;else throw new Error("Invalid VNode type");return{vtype:i,type:r,props:n}}function D2(r){return r.children}var E2={isSvg:!1};function vt(r,n){if(n.type===rr)n.node!=null&&r.append(n.node);else if(n.type===vo)n.children.forEach(function(i){vt(r,i)});else throw new Error("Unkown ref type "+JSON.stringify(n))}function S2(r,n,i){for(var a in n)a==="key"||a==="children"||a==="ref"||(a==="dangerouslySetInnerHTML"?r.innerHTML=n[a].__html:a==="innerHTML"||a==="textContent"||a==="innerText"?r[a]=n[a]:a.startsWith("on")?r[a.toLowerCase()]=n[a]:B2(r,a,n[a],i.isSvg))}var F2={className:"class",labelFor:"for"};function B2(r,n,i,a){if(n=F2[n]||n,i===!0)r.setAttribute(n,"");else if(i===!1)r.removeAttribute(n);else{var c=a?w2[n]:void 0;c!==void 0?r.setAttributeNS(c,n,i):r.setAttribute(n,i)}}function Fr(r,n){if(n===void 0&&(n=E2),r==null||typeof r=="boolean")return{type:rr,node:null};if(r instanceof Node)return{type:rr,node:r};if(k2(r)){var i=r,a=i.type,c=i.props;if(a===D2){var p=document.createDocumentFragment();if(c.children){var d=Fr(c.children,n);vt(p,d)}return{type:rr,node:p}}var g=a(c);return Fr(g,n)}if(_2(r))return{type:rr,node:document.createTextNode(""+r)};if(C2(r)){var v,A=r,x=A.type,k=A.props;!n.isSvg&&x==="svg"&&(n=Object.assign({},n,{isSvg:!0})),n.isSvg?v=document.createElementNS(b2,x):v=document.createElement(x),S2(v,k,n);var E;if(k.children){var D=n;n.isSvg&&x==="foreignObject"&&(D=Object.assign({},D,{isSvg:!1})),E=Fr(k.children,D)}E!=null&&vt(v,E);var Y=k.ref;return typeof Y=="function"&&Y(v),{type:rr,node:v}}if(Array.isArray(r))return{type:vo,children:r.map(function(z){return Fr(z,n)})};throw new Error("mount: Invalid Vnode!")}function xo(r){for(var n=[],i=0;i<r.length;i+=1){var a=r[i];Array.isArray(a)?n=n.concat(xo(a)):a!=null&&n.push(a)}return n}function yo(r){return r.type===rr?r.node:r.children.map(yo)}function an(r){return Array.isArray(r)?xo(r.map(an)):yo(Fr(r))}var T2=".markmap{font:300 16px/20px sans-serif}.markmap-link{fill:none}.markmap-node>circle{cursor:pointer}.markmap-foreign{display:inline-block}.markmap-foreign a{color:#0097e6}.markmap-foreign a:hover{color:#00a8ff}.markmap-foreign code{background-color:#f0f0f0;border-radius:2px;color:#555;font-size:calc(1em - 2px)}.markmap-foreign :not(pre)>code{padding:.2em .4em}.markmap-foreign del{text-decoration:line-through}.markmap-foreign em{font-style:italic}.markmap-foreign strong{font-weight:bolder}.markmap-foreign mark{background:#ffeaa7}.markmap-foreign pre,.markmap-foreign pre[class*=language-]{margin:0;padding:.2em .4em}",M2=".markmap-container{height:0;left:-100px;overflow:hidden;position:absolute;top:-100px;width:0}.markmap-container>.markmap-foreign{display:inline-block}.markmap-container>.markmap-foreign>div:last-child{white-space:nowrap}";function Cu(r){const n=r.data;return Math.max(4-2*n.depth,1.5)}function R2(r,n){ut(r,(i,a)=>{i.ySizeInner=i.ySize-n,i.y+=n,a()},"children")}function ku(r,n){const i=Xc(r,n);return r[i]}function Du(r){r.stopPropagation()}function I2(){return{transformHtml:new Iu}}const N2=new Iu,q2=so(m0),L2=typeof navigator<"u"&&navigator.userAgent.includes("Macintosh");class Ir{constructor(n,i){this.revokers=[],["handleZoom","handleClick","handlePan"].forEach(a=>{this[a]=this[a].bind(this)}),this.viewHooks=I2(),this.svg=n.datum?n:Xe(n),this.styleNode=this.svg.append("style"),this.zoom=T0().filter(a=>this.options.scrollForPan&&a.type==="wheel"?a.ctrlKey&&!a.button:(!a.ctrlKey||a.type==="wheel")&&!a.button).on("zoom",this.handleZoom),this.setOptions(i),this.state={id:this.options.id||this.svg.attr("id")||Gc()},this.g=this.svg.append("g"),this.revokers.push(N2.tap(()=>{this.setData()}))}getStyleContent(){const{style:n}=this.options,{id:i}=this.state,a=typeof n=="function"?n(i):"";return[this.options.embedGlobalCSS&&T2,a].filter(Boolean).join(`
`)}updateStyle(){this.svg.attr("class",Yc(this.svg.attr("class"),"markmap",this.state.id));const n=this.getStyleContent();this.styleNode.text(n)}handleZoom(n){const{transform:i}=n;this.g.attr("transform",i)}handlePan(n){n.preventDefault();const i=ln(this.svg.node()),a=i.translate(-n.deltaX/i.k,-n.deltaY/i.k);this.svg.call(this.zoom.transform,a)}handleClick(n,i){var a;const{data:c}=i;c.payload=Ye({},c.payload,{fold:(a=c.payload)!=null&&a.fold?0:1}),this.renderData(i.data)}initializeData(n){let i=0;const{color:a,nodeMinHeight:c,maxWidth:p,initialExpandLevel:d}=this.options,{id:g}=this.state,v=an(en("div",{className:`markmap-container markmap ${g}-g`})),A=an(en("style",{children:[this.getStyleContent(),M2].join(`
`)}));document.body.append(v,A);const x=p?`max-width: ${p}px`:"";let k=0;ut(n,(D,Y,z)=>{var Z,q,X;D.children=(Z=D.children)==null?void 0:Z.map(se=>Ye({},se)),i+=1;const ie=an(en("div",{className:"markmap-foreign",style:x,children:en("div",{dangerouslySetInnerHTML:{__html:D.content}})}));v.append(ie),D.state=Ye({},D.state,{id:i,el:ie.firstChild}),D.state.path=[z==null||(q=z.state)==null?void 0:q.path,D.state.id].filter(Boolean).join("."),a(D);const ae=((X=D.payload)==null?void 0:X.fold)===2;ae?k+=1:(k||d>=0&&D.depth>=d)&&(D.payload=Ye({},D.payload,{fold:1})),Y(),ae&&(k-=1)});const E=Nu(v.childNodes).map(D=>D.firstChild);this.viewHooks.transformHtml.call(this,E),E.forEach(D=>{D.parentNode.append(D.cloneNode(!0))}),ut(n,(D,Y,z)=>{var Z;const q=D.state.el.getBoundingClientRect();D.content=D.state.el.innerHTML,D.state.size=[Math.ceil(q.width)+1,Math.max(Math.ceil(q.height),c)],D.state.key=[z==null||(Z=z.state)==null?void 0:Z.id,D.state.id].filter(Boolean).join(".")+D.content,Y()}),v.remove(),A.remove()}setOptions(n){this.options=Ye({},Ir.defaultOptions,n),this.options.zoom?this.svg.call(this.zoom):this.svg.on(".zoom",null),this.svg.on("wheel",this.options.pan?this.handlePan:null)}setData(n,i){n&&(this.state.data=n),i&&this.setOptions(i),this.initializeData(this.state.data),this.updateStyle(),this.renderData()}renderData(n){var i,a;if(!this.state.data)return;const{spacingHorizontal:c,paddingX:p,spacingVertical:d,autoFit:g,color:v}=this.options,A=fo().children(C=>{var b;return!((b=C.payload)!=null&&b.fold)&&C.children}).nodeSize(C=>{const[b,M]=C.data.state.size;return[M,b+(b?p*2:0)+c]}).spacing((C,b)=>C.parent===b.parent?d:d*2),x=A.hierarchy(this.state.data);A(x),R2(x,c);const k=x.descendants().reverse(),E=x.links(),D=C0(),Y=iu(k,C=>C.x-C.xSize/2),z=tu(k,C=>C.x+C.xSize/2),Z=iu(k,C=>C.y),q=tu(k,C=>C.y+C.ySizeInner);Object.assign(this.state,{minX:Y,maxX:z,minY:Z,maxY:q}),g&&this.fit();const X=n&&k.find(C=>C.data===n)||x,ie=(i=X.data.state.x0)!=null?i:X.x,ae=(a=X.data.state.y0)!=null?a:X.y,se=this.g.selectAll(cr("g")).data(k,C=>C.data.state.key),fe=se.enter().append("g").attr("data-depth",C=>C.data.depth).attr("data-path",C=>C.data.state.path).attr("transform",C=>`translate(${ae+X.ySizeInner-C.ySizeInner},${ie+X.xSize/2-C.xSize})`),I=this.transition(se.exit());I.select("line").attr("x1",C=>C.ySizeInner).attr("x2",C=>C.ySizeInner),I.select("foreignObject").style("opacity",0),I.attr("transform",C=>`translate(${X.y+X.ySizeInner-C.ySizeInner},${X.x+X.xSize/2-C.xSize})`).remove();const R=se.merge(fe).attr("class",C=>{var b;return["markmap-node",((b=C.data.payload)==null?void 0:b.fold)&&"markmap-fold"].filter(Boolean).join(" ")});this.transition(R).attr("transform",C=>`translate(${C.y},${C.x-C.xSize/2})`);const $=R.selectAll(cr("line")).data(C=>[C],C=>C.data.state.key).join(C=>C.append("line").attr("x1",b=>b.ySizeInner).attr("x2",b=>b.ySizeInner),C=>C,C=>C.remove());this.transition($).attr("x1",-1).attr("x2",C=>C.ySizeInner+2).attr("y1",C=>C.xSize).attr("y2",C=>C.xSize).attr("stroke",C=>v(C.data)).attr("stroke-width",Cu);const V=R.selectAll(cr("circle")).data(C=>C.data.children?[C]:[],C=>C.data.state.key).join(C=>C.append("circle").attr("stroke-width","1.5").attr("cx",b=>b.ySizeInner).attr("cy",b=>b.xSize).attr("r",0).on("click",(b,M)=>this.handleClick(b,M)),C=>C,C=>C.remove());this.transition(V).attr("r",6).attr("cx",C=>C.ySizeInner).attr("cy",C=>C.xSize).attr("stroke",C=>v(C.data)).attr("fill",C=>{var b;return(b=C.data.payload)!=null&&b.fold&&C.data.children?v(C.data):"#fff"});const ue=R.selectAll(cr("foreignObject")).data(C=>[C],C=>C.data.state.key).join(C=>{const b=C.append("foreignObject").attr("class","markmap-foreign").attr("x",p).attr("y",0).style("opacity",0).on("mousedown",Du).on("dblclick",Du);return b.append("xhtml:div").select(function(S){const L=S.data.state.el.cloneNode(!0);return this.replaceWith(L),L}).attr("xmlns","http://www.w3.org/1999/xhtml"),b},C=>C,C=>C.remove()).attr("width",C=>Math.max(0,C.ySizeInner-p*2)).attr("height",C=>C.xSize);this.transition(ue).style("opacity",1);const J=this.g.selectAll(cr("path")).data(E,C=>C.target.data.state.key).join(C=>{const b=[ae+X.ySizeInner,ie+X.xSize/2];return C.insert("path","g").attr("class","markmap-link").attr("data-depth",M=>M.target.data.depth).attr("data-path",M=>M.target.data.state.path).attr("d",D({source:b,target:b}))},C=>C,C=>{const b=[X.y+X.ySizeInner,X.x+X.xSize/2];return this.transition(C).attr("d",D({source:b,target:b})).remove()});this.transition(J).attr("stroke",C=>v(C.target.data)).attr("stroke-width",C=>Cu(C.target)).attr("d",C=>{const b=[C.source.y+C.source.ySizeInner,C.source.x+C.source.xSize/2],M=[C.target.y,C.target.x+C.target.xSize/2];return D({source:b,target:M})}),k.forEach(C=>{C.data.state.x0=C.x,C.data.state.y0=C.y})}transition(n){const{duration:i}=this.options;return n.transition().duration(i)}async fit(){const n=this.svg.node(),{width:i,height:a}=n.getBoundingClientRect(),{fitRatio:c}=this.options,{minX:p,maxX:d,minY:g,maxY:v}=this.state,A=v-g,x=d-p,k=Math.min(i/A*c,a/x*c,2),E=An.translate((i-A*k)/2-g*k,(a-x*k)/2-p*k).scale(k);return this.transition(this.svg).call(this.zoom.transform,E).end().catch(Wn)}async ensureView(n,i){let a,c;if(this.g.selectAll(cr("g")).each(function(X){X.data===n&&(a=this,c=X)}),!a||!c)return;const p=this.svg.node(),d=p.getBoundingClientRect(),g=ln(p),[v,A]=[c.y,c.y+c.ySizeInner+2].map(q=>q*g.k+g.x),[x,k]=[c.x-c.xSize/2,c.x+c.xSize/2].map(q=>q*g.k+g.y),E=Ye({left:0,right:0,top:0,bottom:0},i),D=[E.left-v,d.width-E.right-A],Y=[E.top-x,d.height-E.bottom-k],z=D[0]*D[1]>0?ku(D,Math.abs)/g.k:0,Z=Y[0]*Y[1]>0?ku(Y,Math.abs)/g.k:0;if(z||Z){const q=g.translate(z,Z);return this.transition(this.svg).call(this.zoom.transform,q).end().catch(Wn)}}async rescale(n){const i=this.svg.node(),{width:a,height:c}=i.getBoundingClientRect(),p=a/2,d=c/2,g=ln(i),v=g.translate((p-g.x)*(1-n)/g.k,(d-g.y)*(1-n)/g.k).scale(n);return this.transition(this.svg).call(this.zoom.transform,v).end().catch(Wn)}destroy(){this.svg.on(".zoom",null),this.svg.html(null),this.revokers.forEach(n=>{n()})}static create(n,i,a){const c=new Ir(n,i);return a&&(c.setData(a),c.fit()),c}}Ir.defaultOptions={autoFit:!1,color:r=>q2(`${r.state.path}`),duration:500,embedGlobalCSS:!0,fitRatio:.95,maxWidth:0,nodeMinHeight:16,paddingX:8,scrollForPan:L2,spacingHorizontal:80,spacingVertical:5,initialExpandLevel:-1,zoom:!0,pan:!0};var Ao={exports:{}};(function(r,n){(function(i,a){a()})(fr,function(){function i(A,x){return typeof x>"u"?x={autoBom:!1}:typeof x!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),x={autoBom:!x}),x.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob(["\uFEFF",A],{type:A.type}):A}function a(A,x,k){var E=new XMLHttpRequest;E.open("GET",A),E.responseType="blob",E.onload=function(){v(E.response,x,k)},E.onerror=function(){console.error("could not download file")},E.send()}function c(A){var x=new XMLHttpRequest;x.open("HEAD",A,!1);try{x.send()}catch{}return 200<=x.status&&299>=x.status}function p(A){try{A.dispatchEvent(new MouseEvent("click"))}catch{var x=document.createEvent("MouseEvents");x.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),A.dispatchEvent(x)}}var d=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof fr=="object"&&fr.global===fr?fr:void 0,g=d.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=d.saveAs||(typeof window!="object"||window!==d?function(){}:"download"in HTMLAnchorElement.prototype&&!g?function(A,x,k){var E=d.URL||d.webkitURL,D=document.createElement("a");x=x||A.name||"download",D.download=x,D.rel="noopener",typeof A=="string"?(D.href=A,D.origin===location.origin?p(D):c(D.href)?a(A,x,k):p(D,D.target="_blank")):(D.href=E.createObjectURL(A),setTimeout(function(){E.revokeObjectURL(D.href)},4e4),setTimeout(function(){p(D)},0))}:"msSaveOrOpenBlob"in navigator?function(A,x,k){if(x=x||A.name||"download",typeof A!="string")navigator.msSaveOrOpenBlob(i(A,k),x);else if(c(A))a(A,x,k);else{var E=document.createElement("a");E.href=A,E.target="_blank",setTimeout(function(){p(E)})}}:function(A,x,k,E){if(E=E||open("","_blank"),E&&(E.document.title=E.document.body.innerText="downloading..."),typeof A=="string")return a(A,x,k);var D=A.type==="application/octet-stream",Y=/constructor/i.test(d.HTMLElement)||d.safari,z=/CriOS\/[\d]+/.test(navigator.userAgent);if((z||D&&Y||g)&&typeof FileReader<"u"){var Z=new FileReader;Z.onloadend=function(){var ie=Z.result;ie=z?ie:ie.replace(/^data:[^;]*;/,"data:attachment/file;"),E?E.location.href=ie:location=ie,E=null},Z.readAsDataURL(A)}else{var q=d.URL||d.webkitURL,X=q.createObjectURL(A);E?E.location=X:location.href=X,E=null,setTimeout(function(){q.revokeObjectURL(X)},4e4)}});d.saveAs=v.saveAs=v,r.exports=v})})(Ao);var nt=Ao.exports;function O2(r,n){if(r.match(/^[a-z]+:\/\//i))return r;if(r.match(/^\/\//))return window.location.protocol+r;if(r.match(/^[a-z]+:/i))return r;const i=document.implementation.createHTMLDocument(),a=i.createElement("base"),c=i.createElement("a");return i.head.appendChild(a),i.body.appendChild(c),n&&(a.href=n),c.href=r,c.href}const P2=(()=>{let r=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(r+=1,`u${n()}${r}`)})();function $e(r){const n=[];for(let i=0,a=r.length;i<a;i++)n.push(r[i]);return n}function gn(r,n){const a=(r.ownerDocument.defaultView||window).getComputedStyle(r).getPropertyValue(n);return a?parseFloat(a.replace("px","")):0}function z2(r){const n=gn(r,"border-left-width"),i=gn(r,"border-right-width");return r.clientWidth+n+i}function $2(r){const n=gn(r,"border-top-width"),i=gn(r,"border-bottom-width");return r.clientHeight+n+i}function bo(r,n={}){const i=n.width||z2(r),a=n.height||$2(r);return{width:i,height:a}}function U2(){let r,n;try{n=process}catch{}const i=n&&n.env?n.env.devicePixelRatio:null;return i&&(r=parseInt(i,10),Number.isNaN(r)&&(r=1)),r||window.devicePixelRatio||1}const De=16384;function H2(r){(r.width>De||r.height>De)&&(r.width>De&&r.height>De?r.width>r.height?(r.height*=De/r.width,r.width=De):(r.width*=De/r.height,r.height=De):r.width>De?(r.height*=De/r.width,r.width=De):(r.width*=De/r.height,r.height=De))}function mn(r){return new Promise((n,i)=>{const a=new Image;a.decode=()=>n(a),a.onload=()=>n(a),a.onerror=i,a.crossOrigin="anonymous",a.decoding="async",a.src=r})}async function j2(r){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(r)).then(encodeURIComponent).then(n=>`data:image/svg+xml;charset=utf-8,${n}`)}async function V2(r,n,i){const a="http://www.w3.org/2000/svg",c=document.createElementNS(a,"svg"),p=document.createElementNS(a,"foreignObject");return c.setAttribute("width",`${n}`),c.setAttribute("height",`${i}`),c.setAttribute("viewBox",`0 0 ${n} ${i}`),p.setAttribute("width","100%"),p.setAttribute("height","100%"),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("externalResourcesRequired","true"),c.appendChild(p),p.appendChild(r),j2(c)}const we=(r,n)=>{if(r instanceof n)return!0;const i=Object.getPrototypeOf(r);return i===null?!1:i.constructor.name===n.name||we(i,n)};function G2(r){const n=r.getPropertyValue("content");return`${r.cssText} content: '${n.replace(/'|"/g,"")}';`}function Y2(r){return $e(r).map(n=>{const i=r.getPropertyValue(n),a=r.getPropertyPriority(n);return`${n}: ${i}${a?" !important":""};`}).join(" ")}function X2(r,n,i){const a=`.${r}:${n}`,c=i.cssText?G2(i):Y2(i);return document.createTextNode(`${a}{${c}}`)}function Eu(r,n,i){const a=window.getComputedStyle(r,i),c=a.getPropertyValue("content");if(c===""||c==="none")return;const p=P2();try{n.className=`${n.className} ${p}`}catch{return}const d=document.createElement("style");d.appendChild(X2(p,i,a)),n.appendChild(d)}function K2(r,n){Eu(r,n,":before"),Eu(r,n,":after")}const Su="application/font-woff",Fu="image/jpeg",W2={woff:Su,woff2:Su,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Fu,jpeg:Fu,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Z2(r){const n=/\.([^./]*?)$/g.exec(r);return n?n[1]:""}function Et(r){const n=Z2(r).toLowerCase();return W2[n]||""}function J2(r){return r.split(/,/)[1]}function xt(r){return r.search(/^(data:)/)!==-1}function wo(r,n){return`data:${n};base64,${r}`}async function _o(r,n,i){const a=await fetch(r,n);if(a.status===404)throw new Error(`Resource "${a.url}" not found`);const c=await a.blob();return new Promise((p,d)=>{const g=new FileReader;g.onerror=d,g.onloadend=()=>{try{p(i({res:a,result:g.result}))}catch(v){d(v)}},g.readAsDataURL(c)})}const tt={};function Q2(r,n,i){let a=r.replace(/\?.*/,"");return i&&(a=r),/ttf|otf|eot|woff2?/i.test(a)&&(a=a.replace(/.*\//,"")),n?`[${n}]${a}`:a}async function St(r,n,i){const a=Q2(r,n,i.includeQueryParams);if(tt[a]!=null)return tt[a];i.cacheBust&&(r+=(/\?/.test(r)?"&":"?")+new Date().getTime());let c;try{const p=await _o(r,i.fetchRequestInit,({res:d,result:g})=>(n||(n=d.headers.get("Content-Type")||""),J2(g)));c=wo(p,n)}catch(p){c=i.imagePlaceholder||"";let d=`Failed to fetch resource: ${r}`;p&&(d=typeof p=="string"?p:p.message),d&&console.warn(d)}return tt[a]=c,c}async function ed(r){const n=r.toDataURL();return n==="data:,"?r.cloneNode(!1):mn(n)}async function rd(r,n){if(r.currentSrc){const p=document.createElement("canvas"),d=p.getContext("2d");p.width=r.clientWidth,p.height=r.clientHeight,d==null||d.drawImage(r,0,0,p.width,p.height);const g=p.toDataURL();return mn(g)}const i=r.poster,a=Et(i),c=await St(i,a,n);return mn(c)}async function nd(r){var n;try{if(!((n=r==null?void 0:r.contentDocument)===null||n===void 0)&&n.body)return await bn(r.contentDocument.body,{},!0)}catch{}return r.cloneNode(!1)}async function td(r,n){return we(r,HTMLCanvasElement)?ed(r):we(r,HTMLVideoElement)?rd(r,n):we(r,HTMLIFrameElement)?nd(r):r.cloneNode(!1)}const id=r=>r.tagName!=null&&r.tagName.toUpperCase()==="SLOT";async function ud(r,n,i){var a,c;let p=[];return id(r)&&r.assignedNodes?p=$e(r.assignedNodes()):we(r,HTMLIFrameElement)&&(!((a=r.contentDocument)===null||a===void 0)&&a.body)?p=$e(r.contentDocument.body.childNodes):p=$e(((c=r.shadowRoot)!==null&&c!==void 0?c:r).childNodes),p.length===0||we(r,HTMLVideoElement)||await p.reduce((d,g)=>d.then(()=>bn(g,i)).then(v=>{v&&n.appendChild(v)}),Promise.resolve()),n}function od(r,n){const i=n.style;if(!i)return;const a=window.getComputedStyle(r);a.cssText?(i.cssText=a.cssText,i.transformOrigin=a.transformOrigin):$e(a).forEach(c=>{let p=a.getPropertyValue(c);c==="font-size"&&p.endsWith("px")&&(p=`${Math.floor(parseFloat(p.substring(0,p.length-2)))-.1}px`),we(r,HTMLIFrameElement)&&c==="display"&&p==="inline"&&(p="block"),c==="d"&&n.getAttribute("d")&&(p=`path(${n.getAttribute("d")})`),i.setProperty(c,p,a.getPropertyPriority(c))})}function ld(r,n){we(r,HTMLTextAreaElement)&&(n.innerHTML=r.value),we(r,HTMLInputElement)&&n.setAttribute("value",r.value)}function ad(r,n){if(we(r,HTMLSelectElement)){const i=n,a=Array.from(i.children).find(c=>r.value===c.getAttribute("value"));a&&a.setAttribute("selected","")}}function sd(r,n){return we(n,Element)&&(od(r,n),K2(r,n),ld(r,n),ad(r,n)),n}async function cd(r,n){const i=r.querySelectorAll?r.querySelectorAll("use"):[];if(i.length===0)return r;const a={};for(let p=0;p<i.length;p++){const g=i[p].getAttribute("xlink:href");if(g){const v=r.querySelector(g),A=document.querySelector(g);!v&&A&&!a[g]&&(a[g]=await bn(A,n,!0))}}const c=Object.values(a);if(c.length){const p="http://www.w3.org/1999/xhtml",d=document.createElementNS(p,"svg");d.setAttribute("xmlns",p),d.style.position="absolute",d.style.width="0",d.style.height="0",d.style.overflow="hidden",d.style.display="none";const g=document.createElementNS(p,"defs");d.appendChild(g);for(let v=0;v<c.length;v++)g.appendChild(c[v]);r.appendChild(d)}return r}async function bn(r,n,i){return!i&&n.filter&&!n.filter(r)?null:Promise.resolve(r).then(a=>td(a,n)).then(a=>ud(r,a,n)).then(a=>sd(r,a)).then(a=>cd(a,n))}const Co=/url\((['"]?)([^'"]+?)\1\)/g,fd=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,hd=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function pd(r){const n=r.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function dd(r){const n=[];return r.replace(Co,(i,a,c)=>(n.push(c),i)),n.filter(i=>!xt(i))}async function gd(r,n,i,a,c){try{const p=i?O2(n,i):n,d=Et(n);let g;if(c){const v=await c(p);g=wo(v,d)}else g=await St(p,d,a);return r.replace(pd(n),`$1${g}$3`)}catch{}return r}function md(r,{preferredFontFormat:n}){return n?r.replace(hd,i=>{for(;;){const[a,,c]=fd.exec(i)||[];if(!c)return"";if(c===n)return`src: ${a};`}}):r}function ko(r){return r.search(Co)!==-1}async function Do(r,n,i){if(!ko(r))return r;const a=md(r,i);return dd(a).reduce((p,d)=>p.then(g=>gd(g,d,n,i)),Promise.resolve(a))}async function rn(r,n,i){var a;const c=(a=n.style)===null||a===void 0?void 0:a.getPropertyValue(r);if(c){const p=await Do(c,null,i);return n.style.setProperty(r,p,n.style.getPropertyPriority(r)),!0}return!1}async function vd(r,n){await rn("background",r,n)||await rn("background-image",r,n),await rn("mask",r,n)||await rn("mask-image",r,n)}async function xd(r,n){const i=we(r,HTMLImageElement);if(!(i&&!xt(r.src))&&!(we(r,SVGImageElement)&&!xt(r.href.baseVal)))return;const a=i?r.src:r.href.baseVal,c=await St(a,Et(a),n);await new Promise((p,d)=>{r.onload=p,r.onerror=d;const g=r;g.decode&&(g.decode=p),g.loading==="lazy"&&(g.loading="eager"),i?(r.srcset="",r.src=c):r.href.baseVal=c})}async function yd(r,n){const a=$e(r.childNodes).map(c=>Eo(c,n));await Promise.all(a).then(()=>r)}async function Eo(r,n){we(r,Element)&&(await vd(r,n),await xd(r,n),await yd(r,n))}function Ad(r,n){const{style:i}=r;n.backgroundColor&&(i.backgroundColor=n.backgroundColor),n.width&&(i.width=`${n.width}px`),n.height&&(i.height=`${n.height}px`);const a=n.style;return a!=null&&Object.keys(a).forEach(c=>{i[c]=a[c]}),r}const Bu={};async function Tu(r){let n=Bu[r];if(n!=null)return n;const a=await(await fetch(r)).text();return n={url:r,cssText:a},Bu[r]=n,n}async function Mu(r,n){let i=r.cssText;const a=/url\(["']?([^"')]+)["']?\)/g,p=(i.match(/url\([^)]+\)/g)||[]).map(async d=>{let g=d.replace(a,"$1");return g.startsWith("https://")||(g=new URL(g,r.url).href),_o(g,n.fetchRequestInit,({result:v})=>(i=i.replace(d,`url(${v})`),[d,v]))});return Promise.all(p).then(()=>i)}function Ru(r){if(r==null)return[];const n=[],i=/(\/\*[\s\S]*?\*\/)/gi;let a=r.replace(i,"");const c=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const v=c.exec(a);if(v===null)break;n.push(v[0])}a=a.replace(c,"");const p=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,d="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",g=new RegExp(d,"gi");for(;;){let v=p.exec(a);if(v===null){if(v=g.exec(a),v===null)break;p.lastIndex=g.lastIndex}else g.lastIndex=p.lastIndex;n.push(v[0])}return n}async function bd(r,n){const i=[],a=[];return r.forEach(c=>{if("cssRules"in c)try{$e(c.cssRules||[]).forEach((p,d)=>{if(p.type===CSSRule.IMPORT_RULE){let g=d+1;const v=p.href,A=Tu(v).then(x=>Mu(x,n)).then(x=>Ru(x).forEach(k=>{try{c.insertRule(k,k.startsWith("@import")?g+=1:c.cssRules.length)}catch(E){console.error("Error inserting rule from remote css",{rule:k,error:E})}})).catch(x=>{console.error("Error loading remote css",x.toString())});a.push(A)}})}catch(p){const d=r.find(g=>g.href==null)||document.styleSheets[0];c.href!=null&&a.push(Tu(c.href).then(g=>Mu(g,n)).then(g=>Ru(g).forEach(v=>{d.insertRule(v,c.cssRules.length)})).catch(g=>{console.error("Error loading remote stylesheet",g)})),console.error("Error inlining remote css file",p)}}),Promise.all(a).then(()=>(r.forEach(c=>{if("cssRules"in c)try{$e(c.cssRules||[]).forEach(p=>{i.push(p)})}catch(p){console.error(`Error while reading CSS rules from ${c.href}`,p)}}),i))}function wd(r){return r.filter(n=>n.type===CSSRule.FONT_FACE_RULE).filter(n=>ko(n.style.getPropertyValue("src")))}async function _d(r,n){if(r.ownerDocument==null)throw new Error("Provided element is not within a Document");const i=$e(r.ownerDocument.styleSheets),a=await bd(i,n);return wd(a)}async function Cd(r,n){const i=await _d(r,n);return(await Promise.all(i.map(c=>{const p=c.parentStyleSheet?c.parentStyleSheet.href:null;return Do(c.cssText,p,n)}))).join(`
`)}async function kd(r,n){const i=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await Cd(r,n);if(i){const a=document.createElement("style"),c=document.createTextNode(i);a.appendChild(c),r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a)}}async function Dd(r,n={}){const{width:i,height:a}=bo(r,n),c=await bn(r,n,!0);return await kd(c,n),await Eo(c,n),Ad(c,n),await V2(c,i,a)}async function Ed(r,n={}){const{width:i,height:a}=bo(r,n),c=await Dd(r,n),p=await mn(c),d=document.createElement("canvas"),g=d.getContext("2d"),v=n.pixelRatio||U2(),A=n.canvasWidth||i,x=n.canvasHeight||a;return d.width=A*v,d.height=x*v,n.skipAutoScale||H2(d),d.style.width=`${A}`,d.style.height=`${x}`,n.backgroundColor&&(g.fillStyle=n.backgroundColor,g.fillRect(0,0,d.width,d.height)),g.drawImage(p,0,0,d.width,d.height),d}async function Sd(r,n={}){return(await Ed(r,n)).toDataURL()}var So={exports:{}};(function(r){(function(n){var i=ie(),a=ae(),c=se(),p=fe(),d={imagePlaceholder:void 0,cacheBust:!1},g={toSvg:v,toPng:x,toJpeg:k,toBlob:E,toPixelData:A,impl:{fontFaces:c,images:p,util:i,inliner:a,options:{}}};r.exports=g;function v(I,R){return R=R||{},D(R),Promise.resolve(I).then(function(V){return z(V,R.filter,!0)}).then(Z).then(q).then($).then(function(V){return X(V,R.width||i.width(I),R.height||i.height(I))});function $(V){return R.bgcolor&&(V.style.backgroundColor=R.bgcolor),R.width&&(V.style.width=R.width+"px"),R.height&&(V.style.height=R.height+"px"),R.style&&Object.keys(R.style).forEach(function(ue){V.style[ue]=R.style[ue]}),V}}function A(I,R){return Y(I,R||{}).then(function($){return $.getContext("2d").getImageData(0,0,i.width(I),i.height(I)).data})}function x(I,R){return Y(I,R||{}).then(function($){return $.toDataURL()})}function k(I,R){return R=R||{},Y(I,R).then(function($){return $.toDataURL("image/jpeg",R.quality||1)})}function E(I,R){return Y(I,R||{}).then(i.canvasToBlob)}function D(I){typeof I.imagePlaceholder>"u"?g.impl.options.imagePlaceholder=d.imagePlaceholder:g.impl.options.imagePlaceholder=I.imagePlaceholder,typeof I.cacheBust>"u"?g.impl.options.cacheBust=d.cacheBust:g.impl.options.cacheBust=I.cacheBust}function Y(I,R){return v(I,R).then(i.makeImage).then(i.delay(100)).then(function(V){var ue=$(I);return ue.getContext("2d").drawImage(V,0,0),ue});function $(V){var ue=document.createElement("canvas");if(ue.width=R.width||i.width(V),ue.height=R.height||i.height(V),R.bgcolor){var J=ue.getContext("2d");J.fillStyle=R.bgcolor,J.fillRect(0,0,ue.width,ue.height)}return ue}}function z(I,R,$){if(!$&&R&&!R(I))return Promise.resolve();return Promise.resolve(I).then(V).then(function(C){return ue(I,C,R)}).then(function(C){return J(I,C)});function V(C){return C instanceof HTMLCanvasElement?i.makeImage(C.toDataURL()):C.cloneNode(!1)}function ue(C,b,M){var S=C.childNodes;if(S.length===0)return Promise.resolve(b);return L(b,i.asArray(S),M).then(function(){return b});function L(K,W,U){var re=Promise.resolve();return W.forEach(function(oe){re=re.then(function(){return z(oe,U)}).then(function(ce){ce&&K.appendChild(ce)})}),re}}function J(C,b){if(!(b instanceof Element))return b;return Promise.resolve().then(M).then(S).then(L).then(K).then(function(){return b});function M(){W(window.getComputedStyle(C),b.style);function W(U,re){U.cssText?re.cssText=U.cssText:oe(U,re);function oe(ce,le){i.asArray(ce).forEach(function(P){le.setProperty(P,ce.getPropertyValue(P),ce.getPropertyPriority(P))})}}}function S(){[":before",":after"].forEach(function(U){W(U)});function W(U){var re=window.getComputedStyle(C,U),oe=re.getPropertyValue("content");if(oe===""||oe==="none")return;var ce=i.uid();b.className=b.className+" "+ce;var le=document.createElement("style");le.appendChild(P(ce,U,re)),b.appendChild(le);function P(G,te,ne){var he="."+G+":"+te,Fe=ne.cssText?ge(ne):O(ne);return document.createTextNode(he+"{"+Fe+"}");function ge(Be){var me=Be.getPropertyValue("content");return Be.cssText+" content: "+me+";"}function O(Be){return i.asArray(Be).map(me).join("; ")+";";function me(Oe){return Oe+": "+Be.getPropertyValue(Oe)+(Be.getPropertyPriority(Oe)?" !important":"")}}}}}function L(){C instanceof HTMLTextAreaElement&&(b.innerHTML=C.value),C instanceof HTMLInputElement&&b.setAttribute("value",C.value)}function K(){b instanceof SVGElement&&(b.setAttribute("xmlns","http://www.w3.org/2000/svg"),b instanceof SVGRectElement&&["width","height"].forEach(function(W){var U=b.getAttribute(W);U&&b.style.setProperty(W,U)}))}}}function Z(I){return c.resolveAll().then(function(R){var $=document.createElement("style");return I.appendChild($),$.appendChild(document.createTextNode(R)),I})}function q(I){return p.inlineAll(I).then(function(){return I})}function X(I,R,$){return Promise.resolve(I).then(function(V){return V.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(V)}).then(i.escapeXhtml).then(function(V){return'<foreignObject x="0" y="0" width="100%" height="100%">'+V+"</foreignObject>"}).then(function(V){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+R+'" height="'+$+'">'+V+"</svg>"}).then(function(V){return"data:image/svg+xml;charset=utf-8,"+V})}function ie(){return{escape:K,parseExtension:R,mimeType:$,dataAsUrl:L,isDataUrl:V,canvasToBlob:J,resolveUrl:C,getAndEncode:S,uid:b(),delay:W,asArray:U,escapeXhtml:re,makeImage:M,width:oe,height:ce};function I(){var P="application/font-woff",G="image/jpeg";return{woff:P,woff2:P,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:G,jpeg:G,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function R(P){var G=/\.([^\.\/]*?)$/g.exec(P);return G?G[1]:""}function $(P){var G=R(P).toLowerCase();return I()[G]||""}function V(P){return P.search(/^(data:)/)!==-1}function ue(P){return new Promise(function(G){for(var te=window.atob(P.toDataURL().split(",")[1]),ne=te.length,he=new Uint8Array(ne),Fe=0;Fe<ne;Fe++)he[Fe]=te.charCodeAt(Fe);G(new Blob([he],{type:"image/png"}))})}function J(P){return P.toBlob?new Promise(function(G){P.toBlob(G)}):ue(P)}function C(P,G){var te=document.implementation.createHTMLDocument(),ne=te.createElement("base");te.head.appendChild(ne);var he=te.createElement("a");return te.body.appendChild(he),ne.href=G,he.href=P,he.href}function b(){var P=0;return function(){return"u"+G()+P++;function G(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function M(P){return new Promise(function(G,te){var ne=new Image;ne.onload=function(){G(ne)},ne.onerror=te,ne.src=P})}function S(P){var G=3e4;return g.impl.options.cacheBust&&(P+=(/\?/.test(P)?"&":"?")+new Date().getTime()),new Promise(function(te){var ne=new XMLHttpRequest;ne.onreadystatechange=ge,ne.ontimeout=O,ne.responseType="blob",ne.timeout=G,ne.open("GET",P,!0),ne.send();var he;if(g.impl.options.imagePlaceholder){var Fe=g.impl.options.imagePlaceholder.split(/,/);Fe&&Fe[1]&&(he=Fe[1])}function ge(){if(ne.readyState===4){if(ne.status!==200){he?te(he):Be("cannot fetch resource: "+P+", status: "+ne.status);return}var me=new FileReader;me.onloadend=function(){var Oe=me.result.split(/,/)[1];te(Oe)},me.readAsDataURL(ne.response)}}function O(){he?te(he):Be("timeout of "+G+"ms occured while fetching resource: "+P)}function Be(me){console.error(me),te("")}})}function L(P,G){return"data:"+G+";base64,"+P}function K(P){return P.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function W(P){return function(G){return new Promise(function(te){setTimeout(function(){te(G)},P)})}}function U(P){for(var G=[],te=P.length,ne=0;ne<te;ne++)G.push(P[ne]);return G}function re(P){return P.replace(/#/g,"%23").replace(/\n/g,"%0A")}function oe(P){var G=le(P,"border-left-width"),te=le(P,"border-right-width");return P.scrollWidth+G+te}function ce(P){var G=le(P,"border-top-width"),te=le(P,"border-bottom-width");return P.scrollHeight+G+te}function le(P,G){var te=window.getComputedStyle(P).getPropertyValue(G);return parseFloat(te.replace("px",""))}}function ae(){var I=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:ue,shouldProcess:R,impl:{readUrls:$,inline:V}};function R(J){return J.search(I)!==-1}function $(J){for(var C=[],b;(b=I.exec(J))!==null;)C.push(b[1]);return C.filter(function(M){return!i.isDataUrl(M)})}function V(J,C,b,M){return Promise.resolve(C).then(function(L){return b?i.resolveUrl(L,b):L}).then(M||i.getAndEncode).then(function(L){return i.dataAsUrl(L,i.mimeType(C))}).then(function(L){return J.replace(S(C),"$1"+L+"$3")});function S(L){return new RegExp(`(url\\(['"]?)(`+i.escape(L)+`)(['"]?\\))`,"g")}}function ue(J,C,b){if(M())return Promise.resolve(J);return Promise.resolve(J).then($).then(function(S){var L=Promise.resolve(J);return S.forEach(function(K){L=L.then(function(W){return V(W,K,C,b)})}),L});function M(){return!R(J)}}}function se(){return{resolveAll:I,impl:{readAll:R}};function I(){return R().then(function($){return Promise.all($.map(function(V){return V.resolve()}))}).then(function($){return $.join(`
`)})}function R(){return Promise.resolve(i.asArray(document.styleSheets)).then(V).then($).then(function(J){return J.map(ue)});function $(J){return J.filter(function(C){return C.type===CSSRule.FONT_FACE_RULE}).filter(function(C){return a.shouldProcess(C.style.getPropertyValue("src"))})}function V(J){var C=[];return J.forEach(function(b){try{i.asArray(b.cssRules||[]).forEach(C.push.bind(C))}catch(M){console.log("Error while reading CSS rules from "+b.href,M.toString())}}),C}function ue(J){return{resolve:function(){var b=(J.parentStyleSheet||{}).href;return a.inlineAll(J.cssText,b)},src:function(){return J.style.getPropertyValue("src")}}}}}function fe(){return{inlineAll:R,impl:{newImage:I}};function I($){return{inline:V};function V(ue){return i.isDataUrl($.src)?Promise.resolve():Promise.resolve($.src).then(ue||i.getAndEncode).then(function(J){return i.dataAsUrl(J,i.mimeType($.src))}).then(function(J){return new Promise(function(C,b){$.onload=C,$.onerror=b,$.src=J})})}}function R($){if(!($ instanceof Element))return Promise.resolve($);return V($).then(function(){return $ instanceof HTMLImageElement?I($).inline():Promise.all(i.asArray($.childNodes).map(function(ue){return R(ue)}))});function V(ue){var J=ue.style.getPropertyValue("background");return J?a.inlineAll(J).then(function(C){ue.style.setProperty("background",C,ue.style.getPropertyPriority("background"))}).then(function(){return ue}):Promise.resolve(ue)}}}})()})(So);var Fd=So.exports;const Bd=Ic(Fd),Td={class:"flex grow flex-col sm:flex-row h-full"},Md={class:"sm:pt-4 box-border bg-[#fafbfc] dark:bg-[#18181c] overflow-y-auto w-full sm:w-[20rem] shrink-0 border-r-2 border-[#ffffff17] flex flex-col"},Rd={class:"flex-1 px-4 pb-2"},Id={key:0,class:"flex items-center py-3"},Nd=Ee("h2",{class:"font-bold text-2xl"},"思维导图",-1),qd=[Nd],Ld=Ee("h4",{class:"mb-2"},"您的需求？",-1),Od={class:"flex my-4"},Pd={class:"flex justify-between mb-2"},zd=Ee("h4",{class:"font-bold"},"内容需求",-1),$d={class:"py-3 bottom-0 border-t-2 border-[#00000014] w-full flex flex-col justify-center items-center"},Ud=Ee("div",{class:"items-start mb-2"},"每次使用消耗基础积分： 1",-1),Hd={class:"h-full flex-1 overflow-y-auto overflow-hidden min-h-[80vh] flex flex-col"},jd={key:0,class:"flex items-center p-5"},Vd=Ee("h2",{class:"font-bold text-2xl"},"思维导图",-1),Gd=[Vd],Yd={class:"flex-1 w-full p-4"},Qd=Nc({__name:"index",setup(r){var fe;const n=qc(),i=Lc(),a=Oc(),c=(fe=n.globalConfig)==null?void 0:fe.mindDefaultData,p=wr(null),d=new jc.Transformer,g=wr(!1),{isMobile:v}=Pc(),A=`
# 会议流程

## 开场白
- 欢迎词
- 自我介绍

## 议程安排
- 介绍会议议程
- 确认议程是否被所有人接受

## 上一次会议的总结
- 回顾上次会议的议题及结果
- 确认上次会议的行动项是否已经完成

## 主题讨论
- 提出本次会议的主题
- 介绍主题相关背景信息
- 提出问题并进行讨论
- 形成共识或决策

## 行动项
- 确定行动项及责任人
- 确定完成时间和目标

## 公告和其他事项
- 公告即将到来的活动或项目
- 公告公司的其他事项

## 结束语
- 感谢所有人的参与
- 总结会议内容
- 确认下一次会议的时间和议题
`,x=wr(""),k=`# NineAi
## 基础功能
- 支持AI聊天
- 支持GPT4
- 支持DLLAE2
- 支持Midjourney
- 更多功能等你探索......

## 更多内容
-  在上面输入您想要生成的内容
- 点击生成即可

`,E=wr(),D=wr("");function Y(){D.value=c||k}Qi(()=>{setTimeout(()=>{Y()},1e3)});let z;function Z(){const I=new XMLSerializer().serializeToString(E.value),R=new Blob([I],{type:"image/svg+xml;charset=utf-8"});nt.saveAs(R,"nineai-mind.svg")}async function q(){const R=`
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Markmap Export</title>
</head>
<body>
  ${await Bd.toSvg(E.value)}
</body>
</html>`,$=new Blob([R],{type:"text/html;charset=utf-8"});nt.saveAs($,"nineai-mind.html")}async function X(){g.value=!0,D.value="";try{const I="";let R="";const $=()=>(D.value=R,g.value?!0:(D.value=R,!1)),V=setInterval(()=>{$()||clearInterval(V)},1e3);await(async()=>{await $c({prompt:x.value,onDownloadProgress:({event:J})=>{const C=J.target,{responseText:b}=C,M=b.lastIndexOf(`
`,b.length-2);let S=b;M!==-1&&(S=b.substring(M));try{const L=JSON.parse(S);R=I+(L.text??"")}catch{}}}),g.value=!1})()}catch(I){g.value=!1;const{code:R=500,message:$="好像出错了，请稍后再试！"}=I;if(R===429&&$.includes("balance has been exhausted"))return a.error("当前系统Key余额耗尽、请联系管理员补充！");if(R===500){let V=(I==null?void 0:I.message)??"好像出错了，请稍后再试！";V==="Request failed with status code 401"&&(V="非法操作、请先登录后再进行问答使用！"),a.error(V);return}if(I.code===402){a.error(I.message,{duration:5e3}),i.updateGoodsDialog(!0);return}a.error("出了点小错误、请稍后试试吧！")}finally{g.value=!1}}async function ie(){const I=await Sd(E.value);nt.saveAs(I,"markmap.png")}function ae(){D.value=A}const se=()=>{const{root:I}=d.transform(D.value);z.setData(I),z.fit()};return Qi(()=>{z=Ir.create(E.value),se()}),zc(se),(I,R)=>(Wr(),Kr("div",Td,[Ee("div",Md,[Ee("div",Rd,[ke(v)?(Wr(),Kr("header",Id,qd)):eu("",!0),Ld,Me(ke(ru),{ref_key:"inputRef",ref:p,value:x.value,"onUpdate:value":R[0]||(R[0]=$=>x.value=$),type:"textarea",disabled:g.value,autosize:{minRows:3},placeholder:"请输入您想要生成内容的简单描述、AI将为您输出一份完整的markdown内容及其思维导图!"},null,8,["value","disabled"]),Ee("div",Od,[Me(ke(Cr),{type:"primary",size:"small",style:{width:"100%"},loading:g.value,onClick:X},{default:sr(()=>[_r(" 智能生成生成思维导图 ")]),_:1},8,["loading"])]),Ee("div",Pd,[zd,Me(ke(Cr),{text:"",onClick:ae},{default:sr(()=>[_r(" 试试示例 ")]),_:1})]),Me(ke(ru),{value:D.value,"onUpdate:value":R[1]||(R[1]=$=>D.value=$),type:"textarea",disabled:g.value,autosize:{minRows:8,maxRows:24},placeholder:"请用markdown语法输入您想要生成思维导图的内容或在上方使用描述让AI帮您完善！"},null,8,["value","disabled"])]),Ee("div",$d,[Ud,Ee("div",null,[Me(ke(Uc),{size:"small"},{default:sr(()=>[Me(ke(Cr),{type:"primary",onClick:q},{default:sr(()=>[Me(ke(Kn),{icon:"ri:error-warning-line",class:"text-base"}),_r(" 导出HTML ")]),_:1}),Me(ke(Cr),{type:"primary",onClick:ie},{default:sr(()=>[Me(ke(Kn),{icon:"ri:error-warning-line",class:"text-base"}),_r(" 导出PNG ")]),_:1}),Me(ke(Cr),{type:"warning",onClick:Z},{default:sr(()=>[Me(ke(Kn),{icon:"ri:error-warning-line",class:"text-base"}),_r(" 导出SVG ")]),_:1})]),_:1})])])]),Ee("div",Hd,[ke(v)?eu("",!0):(Wr(),Kr("header",jd,Gd)),Ee("div",Yd,[(Wr(),Kr("svg",{ref_key:"svgRef",ref:E,class:"box-border w-full h-full border rounded-md"},null,512))])])]))}});export{Qd as default};
