yanki 1.2.10 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +58 -9
- package/dist/lib/index.d.ts +144 -1566
- package/dist/lib/index.js +50 -1
- package/package.json +33 -28
- package/readme.md +4 -4
- package/dist/abap-Dg923wIy.js +0 -1
- package/dist/actionscript-3-BBttMYlr.js +0 -1
- package/dist/ada-CTi7YQtL.js +0 -1
- package/dist/andromeeda-BK6gTiwT.js +0 -1
- package/dist/angular-html-rCdPnZ8w.js +0 -1
- package/dist/angular-ts-DYCYVCHu.js +0 -1
- package/dist/apache-PcO-DBxQ.js +0 -1
- package/dist/apex-CnCu5_gb.js +0 -1
- package/dist/apl-B743j01p.js +0 -1
- package/dist/applescript-BWh8DkcF.js +0 -1
- package/dist/ara-C1--7J61.js +0 -1
- package/dist/asciidoc-CkWYjVYI.js +0 -1
- package/dist/asm-CTFRnVOM.js +0 -1
- package/dist/astro-DHbdk5O0.js +0 -1
- package/dist/aurora-x-C0VKFdlO.js +0 -1
- package/dist/awk-CrWgQKhV.js +0 -1
- package/dist/ayu-dark-De7IQEfS.js +0 -1
- package/dist/ballerina-a0yOSyc5.js +0 -1
- package/dist/bat-B0cHNp6s.js +0 -1
- package/dist/beancount-dPJi_gci.js +0 -1
- package/dist/berry-CVKoklHx.js +0 -1
- package/dist/bibtex-DRcCXNgM.js +0 -1
- package/dist/bicep-jWz-hQ8I.js +0 -1
- package/dist/blade-h41ErOi-.js +0 -1
- package/dist/bsl-C7rNYC9b.js +0 -1
- package/dist/c-BG-tZi7o.js +0 -1
- package/dist/c3-2rTjmrCP.js +0 -1
- package/dist/cadence-BuaeHeSu.js +0 -1
- package/dist/cairo-BHkUC1B6.js +0 -1
- package/dist/catppuccin-frappe-D3lHSMns.js +0 -1
- package/dist/catppuccin-latte-DoBaWTGn.js +0 -1
- package/dist/catppuccin-macchiato-BkAuvdZC.js +0 -1
- package/dist/catppuccin-mocha-D9fcC0iT.js +0 -1
- package/dist/clarity-CC_0IFDj.js +0 -1
- package/dist/clojure-KnfDkB_V.js +0 -1
- package/dist/cmake-bh2MLnkv.js +0 -1
- package/dist/cobol-WHXSr_Wd.js +0 -1
- package/dist/codeowners-CtwIM3TN.js +0 -1
- package/dist/codeql-D164juXQ.js +0 -1
- package/dist/coffee-BWKAfs2s.js +0 -1
- package/dist/common-lisp-DXc9XcIM.js +0 -1
- package/dist/coq-BCSFDxg0.js +0 -1
- package/dist/cpp-CTmscSNZ.js +0 -1
- package/dist/crystal-BFJuErkW.js +0 -1
- package/dist/csharp-BztKY7sB.js +0 -1
- package/dist/css-PZBBrkI0.js +0 -1
- package/dist/csv-D5aBhKLr.js +0 -1
- package/dist/cue-WCin6O4e.js +0 -1
- package/dist/cypher-DYQk2G82.js +0 -1
- package/dist/d-DVc-yF-l.js +0 -1
- package/dist/dark-plus-DLU5INA3.js +0 -1
- package/dist/dart-YLd5yyRs.js +0 -1
- package/dist/dax-oldcCaJg.js +0 -1
- package/dist/desktop-DZfyBMgF.js +0 -1
- package/dist/diff-jW5kmiru.js +0 -1
- package/dist/docker-DG9neUKd.js +0 -1
- package/dist/dotenv-Bea-FkXq.js +0 -1
- package/dist/dracula-XcYHBZy6.js +0 -1
- package/dist/dracula-soft-BPeX9gxW.js +0 -1
- package/dist/dream-maker-DAHQwpwp.js +0 -1
- package/dist/edge-BvW7BRWT.js +0 -1
- package/dist/elixir-C40XQAD9.js +0 -1
- package/dist/elm-DzXNHNQT.js +0 -1
- package/dist/emacs-lisp-BdGsgvrR.js +0 -1
- package/dist/erb-Dis5VyyW.js +0 -1
- package/dist/erlang-Jhp2iHYS.js +0 -1
- package/dist/everforest-dark-WOub3wle.js +0 -1
- package/dist/everforest-light-DCUg8VH8.js +0 -1
- package/dist/fennel-BH6gVCng.js +0 -1
- package/dist/fish-BxskpYPN.js +0 -1
- package/dist/fluent-Bwo2XpEt.js +0 -1
- package/dist/fortran-fixed-form-DoFUIhSC.js +0 -1
- package/dist/fortran-free-form-DB5N_DgY.js +0 -1
- package/dist/fsharp-DHaf8n3s.js +0 -1
- package/dist/gdresource-D9Lk-biZ.js +0 -1
- package/dist/gdscript-AcTSlgpe.js +0 -1
- package/dist/gdshader-G7X6ysY3.js +0 -1
- package/dist/genie-DSsjfZMX.js +0 -1
- package/dist/gherkin-Cbsyuvab.js +0 -1
- package/dist/git-commit-CesLaiSz.js +0 -1
- package/dist/git-rebase-B9wKr8Mu.js +0 -1
- package/dist/github-dark-BQV5ugrc.js +0 -1
- package/dist/github-dark-default-DLWDM7FH.js +0 -1
- package/dist/github-dark-dimmed-D1FmiR_p.js +0 -1
- package/dist/github-dark-high-contrast-BilLoi0o.js +0 -1
- package/dist/github-light-Rcb2q3L5.js +0 -1
- package/dist/github-light-default-CQ75esMw.js +0 -1
- package/dist/github-light-high-contrast-CRF1wyLy.js +0 -1
- package/dist/gleam-BeBqoPwE.js +0 -1
- package/dist/glimmer-js-3dwOmeU7.js +0 -1
- package/dist/glimmer-ts-CGrdEN9y.js +0 -1
- package/dist/glsl-CJ5UNUz7.js +0 -1
- package/dist/gn-Dxr0sSUf.js +0 -1
- package/dist/gnuplot-CtW3R_Hz.js +0 -1
- package/dist/go-CPYJReqS.js +0 -1
- package/dist/graphql-BXLvmlOo.js +0 -1
- package/dist/groovy-DFxE31Qs.js +0 -1
- package/dist/gruvbox-dark-hard-C37G1gbc.js +0 -1
- package/dist/gruvbox-dark-medium-C3G9m3TV.js +0 -1
- package/dist/gruvbox-dark-soft-eZmcmZ9I.js +0 -1
- package/dist/gruvbox-light-hard-BYj-vz_3.js +0 -1
- package/dist/gruvbox-light-medium-BdQlDiiF.js +0 -1
- package/dist/gruvbox-light-soft-BGNwjiRh.js +0 -1
- package/dist/hack-BVNIISZD.js +0 -1
- package/dist/haml-CNL2qJ9f.js +0 -1
- package/dist/handlebars-X5srullM.js +0 -1
- package/dist/haskell-CeCR1-Hh.js +0 -1
- package/dist/haxe-DVIybFAS.js +0 -1
- package/dist/hcl-B6OePqme.js +0 -1
- package/dist/hjson-D2jn7IRw.js +0 -1
- package/dist/hlsl-MKeth5V9.js +0 -1
- package/dist/houston-RHIKkNfR.js +0 -1
- package/dist/html-B4bznzA2.js +0 -1
- package/dist/html-derivative-CD1Z7kSG.js +0 -1
- package/dist/http-Bb0P8zvE.js +0 -1
- package/dist/hurl-DdMgw5nt.js +0 -1
- package/dist/hxml-BdTS9Zj7.js +0 -1
- package/dist/hy-BZMqGtQj.js +0 -1
- package/dist/imba-D-Pk5S0X.js +0 -1
- package/dist/index-CQlZV-e4.js +0 -2
- package/dist/ini-Dix3pTmg.js +0 -1
- package/dist/java-BTDmaRNO.js +0 -1
- package/dist/javascript-WyGyM1wV.js +0 -1
- package/dist/jinja-Cibv3n81.js +0 -1
- package/dist/jison-CZOoZOej.js +0 -1
- package/dist/json-B8JryHcM.js +0 -1
- package/dist/json5-Cdatmj9n.js +0 -1
- package/dist/jsonc-CvUCa1o5.js +0 -1
- package/dist/jsonl-9I_GBd5L.js +0 -1
- package/dist/jsonnet-XoenQ2oc.js +0 -1
- package/dist/jssm-CWE2S0Z5.js +0 -1
- package/dist/jsx-8cLv2Six.js +0 -1
- package/dist/julia-DIzTBDVk.js +0 -1
- package/dist/kanagawa-dragon-BOvIHJVT.js +0 -1
- package/dist/kanagawa-lotus-Bwcd7Bvx.js +0 -1
- package/dist/kanagawa-wave-0SAlpf0s.js +0 -1
- package/dist/kdl-CMbyIXjQ.js +0 -1
- package/dist/kotlin-BQy537ds.js +0 -1
- package/dist/kusto-B_y0uMaZ.js +0 -1
- package/dist/laserwave-si7wuSrt.js +0 -1
- package/dist/latex-BXZuhSz0.js +0 -1
- package/dist/lean-7hWDN_w4.js +0 -1
- package/dist/less-CaoNcwlE.js +0 -1
- package/dist/light-plus-g_Fi9vkG.js +0 -1
- package/dist/liquid-e5bbsXXe.js +0 -1
- package/dist/llvm-CiYQeg8E.js +0 -1
- package/dist/log-CcaF_xNv.js +0 -1
- package/dist/logo-D9WQLoKQ.js +0 -1
- package/dist/lua-DRivoEBK.js +0 -1
- package/dist/luau-BTSFCcFb.js +0 -1
- package/dist/make-DXVx14cr.js +0 -1
- package/dist/markdown-DX-TNHnc.js +0 -1
- package/dist/marko-CFpKsLoh.js +0 -1
- package/dist/material-theme-CIJ3cGaW.js +0 -1
- package/dist/material-theme-darker-BWg3m1GB.js +0 -1
- package/dist/material-theme-lighter-DR8HWMN7.js +0 -1
- package/dist/material-theme-ocean-CZf9pk28.js +0 -1
- package/dist/material-theme-palenight-BF01YeZy.js +0 -1
- package/dist/matlab-DzreyMvm.js +0 -1
- package/dist/mdc-BX9nsEef.js +0 -1
- package/dist/mdx-C2fqO2XY.js +0 -1
- package/dist/mermaid-Cwy4Up_p.js +0 -1
- package/dist/min-dark-DhfaepVE.js +0 -1
- package/dist/min-light-6xx0uMgm.js +0 -1
- package/dist/mipsasm-yE_Aqo9y.js +0 -1
- package/dist/mojo-Bk-6ipf4.js +0 -1
- package/dist/monokai-BodnsaDQ.js +0 -1
- package/dist/moonbit-C7bLf9Bh.js +0 -1
- package/dist/move-BvvU7WAr.js +0 -1
- package/dist/narrat-DXUZ_ZkW.js +0 -1
- package/dist/nextflow-MPHPbw14.js +0 -1
- package/dist/nginx-DE9vInot.js +0 -1
- package/dist/night-owl-EdP2Hztp.js +0 -1
- package/dist/nim-CvfVE-Jm.js +0 -1
- package/dist/nix-Ckjrpg0r.js +0 -1
- package/dist/nord-BAu0wM6c.js +0 -1
- package/dist/nushell-8dnicoUR.js +0 -1
- package/dist/objective-c-BoaBTdtz.js +0 -1
- package/dist/objective-cpp-DstR8hNy.js +0 -1
- package/dist/ocaml-DTbn2Hv7.js +0 -1
- package/dist/one-dark-pro-utPxbBbJ.js +0 -1
- package/dist/one-light-s-s--efq.js +0 -1
- package/dist/openscad-CXHpNBsb.js +0 -1
- package/dist/pascal-Sr-XLSE6.js +0 -1
- package/dist/perl-Dl-vCdjY.js +0 -1
- package/dist/php-B5RY5YQV.js +0 -1
- package/dist/pkl-CRusufhw.js +0 -1
- package/dist/plastic-CXnNNlFZ.js +0 -1
- package/dist/plsql-Dbm3tV2N.js +0 -1
- package/dist/po-LG0lFwH4.js +0 -1
- package/dist/poimandres-BrOVMvuE.js +0 -1
- package/dist/polar-DjOs3GWb.js +0 -1
- package/dist/postcss-GRRkWn2F.js +0 -1
- package/dist/powerquery-DHf-dtTS.js +0 -1
- package/dist/powershell-CubgGmZX.js +0 -1
- package/dist/prisma-Dgf8IN_C.js +0 -1
- package/dist/prolog-9JcfiY6I.js +0 -1
- package/dist/proto-dqx_Sj2i.js +0 -1
- package/dist/pug-jKFt5v09.js +0 -1
- package/dist/puppet-B4ctDsrh.js +0 -1
- package/dist/purescript-B-mlhevv.js +0 -1
- package/dist/python-B6Ihcp-E.js +0 -1
- package/dist/qml-CXQr5hi3.js +0 -1
- package/dist/qmldir-DXd9s5XC.js +0 -1
- package/dist/qss-B7NnhfIi.js +0 -1
- package/dist/r-1ts4xG1r.js +0 -1
- package/dist/racket-CrxT4k8p.js +0 -1
- package/dist/raku-B9ngR1rt.js +0 -1
- package/dist/razor-xda6wMq7.js +0 -1
- package/dist/red-DR6ZwibK.js +0 -1
- package/dist/reg-Cvyu2Gnx.js +0 -1
- package/dist/regexp-DK-WlHNu.js +0 -1
- package/dist/rel-CYd0g8C5.js +0 -1
- package/dist/riscv-C5dpdlr7.js +0 -1
- package/dist/rose-pine-Cd1NG3HO.js +0 -1
- package/dist/rose-pine-dawn-eauBvPfk.js +0 -1
- package/dist/rose-pine-moon-B3tSb9zr.js +0 -1
- package/dist/rosmsg-ZkSIzPhc.js +0 -1
- package/dist/rst-DBtDFrr6.js +0 -1
- package/dist/ruby-B8qtJuKf.js +0 -1
- package/dist/rust-CxuBE0J8.js +0 -1
- package/dist/sas-9Dvcn_Se.js +0 -1
- package/dist/sass-bfEVHPJ8.js +0 -1
- package/dist/scala-Dtw19ca_.js +0 -1
- package/dist/scheme-OJppFQF3.js +0 -1
- package/dist/scss-CFlr0x0u.js +0 -1
- package/dist/sdbl-Bd9eE8IL.js +0 -1
- package/dist/shaderlab-CJHdEwFw.js +0 -1
- package/dist/shellscript-DgJyDXW6.js +0 -1
- package/dist/shellsession-BqFY_Jl7.js +0 -1
- package/dist/slack-dark-CWRQmTmo.js +0 -1
- package/dist/slack-ochin-DO_ok7XK.js +0 -1
- package/dist/smalltalk-B9IHbYt7.js +0 -1
- package/dist/snazzy-light-B5llO_gK.js +0 -1
- package/dist/solarized-dark-G9yBjKj_.js +0 -1
- package/dist/solarized-light-DeSzljQz.js +0 -1
- package/dist/solidity-B3CjIuAd.js +0 -1
- package/dist/soy-BnGnvCkT.js +0 -1
- package/dist/sparql-Ckj_9Rg5.js +0 -1
- package/dist/splunk-h-bNAnbk.js +0 -1
- package/dist/sql-BbONfI8K.js +0 -1
- package/dist/ssh-config-CywOjoXH.js +0 -1
- package/dist/stata-eYSq_k6x.js +0 -1
- package/dist/stylus-CIg617SB.js +0 -1
- package/dist/svelte-Bq7yX3Ip.js +0 -1
- package/dist/swift-D8uC5CNv.js +0 -1
- package/dist/sync-files-obgDr5HY.js +0 -962
- package/dist/synthwave-84-DRVv-_m_.js +0 -1
- package/dist/system-verilog-Qdm_1g2q.js +0 -1
- package/dist/systemd-DMp0udv_.js +0 -1
- package/dist/talonscript-eRuyeYHl.js +0 -1
- package/dist/tasl-B9CVvjfG.js +0 -1
- package/dist/tcl-Bq9dbVAF.js +0 -1
- package/dist/templ-BA8-YsSp.js +0 -1
- package/dist/terraform-CAp711iT.js +0 -1
- package/dist/tex-Dpq9weyt.js +0 -1
- package/dist/tokyo-night-BvwC8l2v.js +0 -1
- package/dist/toml-Ms459DBw.js +0 -1
- package/dist/ts-tags-D-LANnn2.js +0 -1
- package/dist/tsv-BFtm7NXx.js +0 -1
- package/dist/tsx-D6116Ycy.js +0 -1
- package/dist/turtle-DpRhbQZY.js +0 -1
- package/dist/twig-bKeTGJCh.js +0 -1
- package/dist/typescript-BqvgUolh.js +0 -1
- package/dist/typespec-DhK7u29_.js +0 -1
- package/dist/typst-Dfd71gQj.js +0 -1
- package/dist/v-BH76v7br.js +0 -1
- package/dist/vala-z59IxkFd.js +0 -1
- package/dist/vb-4AxSLKIU.js +0 -1
- package/dist/verilog-LfQUkHDc.js +0 -1
- package/dist/vesper--t9w6MWz.js +0 -1
- package/dist/vhdl-DJCsFYgn.js +0 -1
- package/dist/viml-pbKHW3Ia.js +0 -1
- package/dist/vitesse-black-B_BYPdvp.js +0 -1
- package/dist/vitesse-dark-DOSOf2Sz.js +0 -1
- package/dist/vitesse-light-gUX51GpB.js +0 -1
- package/dist/vue-FQ0hgXO-.js +0 -1
- package/dist/vue-html-DH1-x0xc.js +0 -1
- package/dist/vue-vine-DeUyrIQS.js +0 -1
- package/dist/vyper-DpazWNpx.js +0 -1
- package/dist/wasm-CFi-k9--.js +0 -1
- package/dist/wasm-CiQ5tcoN.js +0 -1
- package/dist/wenyan-DoPRjnAP.js +0 -1
- package/dist/wgsl-CxjTZs-b.js +0 -1
- package/dist/wikitext-Bx2qct8O.js +0 -1
- package/dist/wit-DDW3hD69.js +0 -1
- package/dist/wolfram-pu21K997.js +0 -1
- package/dist/xml-BhAxjPaW.js +0 -1
- package/dist/xsl-6n2rlM5j.js +0 -1
- package/dist/yaml-Bopit2L3.js +0 -1
- package/dist/zenscript-BIAKq-aR.js +0 -1
- package/dist/zig-bSFrHQ7n.js +0 -1
|
@@ -1,962 +0,0 @@
|
|
|
1
|
-
var Zd=Object.defineProperty;var s=(e,t)=>Zd(e,"name",{value:t,configurable:!0});import ep from"process";import tp from"rehype-parse";import"node:path";import{webcrypto as Ro}from"node:crypto";const Tt={defaultMerge:Symbol("deepmerge-ts: default merge"),skip:Symbol("deepmerge-ts: skip")};Tt.defaultMerge;function np(e,t){return t}s(np,"defaultMetaDataUpdater");function rp(e,t){return e.filter(n=>n!==void 0)}s(rp,"defaultFilterValues");var Po;(function(e){e[e.NOT=0]="NOT",e[e.RECORD=1]="RECORD",e[e.ARRAY=2]="ARRAY",e[e.SET=3]="SET",e[e.MAP=4]="MAP",e[e.OTHER=5]="OTHER"})(Po||(Po={}));function Mo(e){return typeof e!="object"||e===null?0:Array.isArray(e)?2:up(e)?1:e instanceof Set?3:e instanceof Map?4:5}s(Mo,"getObjectType");function ip(e){const t=new Set;for(const n of e)for(const r of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(r);return t}s(ip,"getKeys");function sp(e,t){return typeof e=="object"&&Object.prototype.propertyIsEnumerable.call(e,t)}s(sp,"objectHasProperty");function Uo(e){let t=0,n=e[0]?.[Symbol.iterator]();return{[Symbol.iterator](){return{next(){do{if(n===void 0)return{done:!0,value:void 0};const r=n.next();if(r.done===!0){t+=1,n=e[t]?.[Symbol.iterator]();continue}return{done:!1,value:r.value}}while(!0)}}}}}s(Uo,"getIterableOfIterables");const Ho=["[object Object]","[object Module]"];function up(e){if(!Ho.includes(Object.prototype.toString.call(e)))return!1;const{constructor:t}=e;if(t===void 0)return!0;const n=t.prototype;return!(n===null||typeof n!="object"||!Ho.includes(Object.prototype.toString.call(n))||!n.hasOwnProperty("isPrototypeOf"))}s(up,"isRecord");function ap(e,t,n){const r={};for(const i of ip(e)){const u=[];for(const l of e)sp(l,i)&&u.push(l[i]);if(u.length===0)continue;const a=t.metaDataUpdater(n,{key:i,parents:e}),o=$o(u,t,a);o!==Tt.skip&&(i==="__proto__"?Object.defineProperty(r,i,{value:o,configurable:!0,enumerable:!0,writable:!0}):r[i]=o)}return r}s(ap,"mergeRecords$1");function op(e){return e.flat()}s(op,"mergeArrays$1");function lp(e){return new Set(Uo(e))}s(lp,"mergeSets$1");function cp(e){return new Map(Uo(e))}s(cp,"mergeMaps$1");function hp(e){return e.at(-1)}s(hp,"mergeOthers$1");const Pr={mergeRecords:ap,mergeArrays:op,mergeSets:lp,mergeMaps:cp,mergeOthers:hp};function xe(...e){return fp({})(...e)}s(xe,"deepmerge");function fp(e,t){const n=mp(e,r);function r(...i){return $o(i,n,t)}return s(r,"customizedDeepmerge"),r}s(fp,"deepmergeCustom");function mp(e,t){return{defaultMergeFunctions:Pr,mergeFunctions:{...Pr,...Object.fromEntries(Object.entries(e).filter(([n,r])=>Object.hasOwn(Pr,n)).map(([n,r])=>r===!1?[n,Pr.mergeOthers]:[n,r]))},metaDataUpdater:e.metaDataUpdater??np,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,filterValues:e.filterValues===!1?void 0:e.filterValues??rp,actions:Tt}}s(mp,"getUtils");function $o(e,t,n){const r=t.filterValues?.(e,n)??e;if(r.length===0)return;if(r.length===1)return us(r,t,n);const i=Mo(r[0]);if(i!==0&&i!==5){for(let u=1;u<r.length;u++)if(Mo(r[u])!==i)return us(r,t,n)}switch(i){case 1:return dp(r,t,n);case 2:return pp(r,t,n);case 3:return gp(r,t,n);case 4:return Ep(r,t,n);default:return us(r,t,n)}}s($o,"mergeUnknowns");function dp(e,t,n){const r=t.mergeFunctions.mergeRecords(e,t,n);return r===Tt.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):r}s(dp,"mergeRecords");function pp(e,t,n){const r=t.mergeFunctions.mergeArrays(e,t,n);return r===Tt.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):r}s(pp,"mergeArrays");function gp(e,t,n){const r=t.mergeFunctions.mergeSets(e,t,n);return r===Tt.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):r}s(gp,"mergeSets");function Ep(e,t,n){const r=t.mergeFunctions.mergeMaps(e,t,n);return r===Tt.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):r}s(Ep,"mergeMaps");function us(e,t,n){const r=t.mergeFunctions.mergeOthers(e,t,n);return r===Tt.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}s(us,"mergeOthers");var Ap="abscissae",Dp="addenda",Cp="adulthood",Tp="advice",yp="afreets",bp="afrits",kp="agenda",_p="aid",Bp="aircraft",Sp="albinos",wp="alcohol",Fp="algae",Np="altos",xp="alumnae",Ip="alumni",vp="alveoli",Lp="amoebas",Op="ammo",Rp="analyses",Pp="analytics",Mp="anathemas",Up="anime",Hp="antennas",$p="antitheses",qp="aphelia",zp="apparatuses",jp="appendixes",Yp="aquariums",Gp="archipelagos",Vp="armadillos",Wp="asyndetons",Kp="athletics",Qp="audio",Xp="auroras",Jp="automatons",Zp="axes",e1="bacilli",t1="bacteria",n1="bacula",r1="barracks",i1="bases",s1="bassos",u1="beaus",a1="beefs",o1="blood",l1="bemas",c1="biceps",h1="bison",f1="bream",m1="breeches",d1="britches",p1="brothers",g1="buffalo",E1="bureaus",A1="businessmen",D1="butter",C1="cactuses",T1="calves",y1="cash",b1="candelabra",k1="cantos",_1="cantus",B1="carcinomas",S1="carp",w1="censuses",F1="chapeaus",N1="charismas",x1="chairmen",I1="chassis",v1="cherubs",L1="chess",O1="children",R1="clippers",P1="clitorises",M1="clothes",U1="clothing",H1="cloacae",$1="cod",q1="codices",z1="commerce",j1="coitus",Y1="commandos",G1="compendiums",V1="concertos",W1="consortia",K1="contraltos",Q1="contretemps",X1="cooperation",J1="corps",Z1="corpora",eg="cortices",tg="crania",ng="crescendos",rg="crises",ig="criteria",sg="curricula",ug="cyclopses",ag="cystomata",og="data",lg="data",cg="debris",hg="deer",fg="desiderata",mg="diabetes",dg="diagnoses",pg="dicta",gg="dice",Eg="digestion",Ag="dingoes",Dg="diplomas",Cg="dittos",Tg="djinn",yg="dogmata",bg="dramas",kg="dwarfs",_g="dynamos",Bg="economics",Sg="echoes",wg="edemas",Fg="efreets",Ng="eland",xg="elves",Ig="elk",vg="ellipses",Lg="embargoes",Og="embryos",Rg="emphases",Pg="emporia",Mg="encomia",Ug="enigmas",Hg="equipment",$g="ephemerides",qg="errata",zg="excretion",jg="expertise",Yg="extrema",Gg="fezzes",Vg="fiascos",Wg="fibulae",Kg="firmware",Qg="fish",Xg="flounder",Jg="focuses",Zg="feet",eE="fun",tE="foramina",nE="formulas",rE="forums",iE="fungi",sE="gallows",uE="garbage",aE="ganglia",oE="generalissimos",lE="genies",cE="gentlemen",hE="genera",fE="ghettos",mE="glomeruli",dE="geese",pE="goyim",gE="graffiti",EE="graffiti",AE="grouse",DE="guano",CE="gummata",TE="gymnasiums",yE="halves",bE="hamuli",kE="hardware",_E="health",BE="headquarters",SE="heroes",wE="herpes",FE="highjinks",NE="hijinks",xE="hiatuses",IE="hippopotamuses",vE="homework",LE="honoraria",OE="hooves",RE="housework",PE="hovercraft",ME="humeri",UE="hyperbata",HE="hyperbolae",$E="hypotheses",qE="ilia",zE="impetuses",jE="incubi",YE="indexes",GE="information",VE="infernos",WE="innings",KE="interregna",QE="interstitia",XE="jackanapes",JE="jeans",ZE="jumbos",e2="kakapo",t2="knives",n2="kudos",r2="labour",i2="lacunas",s2="larvae",u2="leaves",a2="lemmas",o2="librettos",l2="lives",c2="lingos",h2="literature",f2="loaves",m2="loculi",d2="loci",p2="looies",g2="lice",E2="lumbagos",A2="lumina",D2="lustra",C2="lymphomata",T2="machinery",y2="mackerel",b2="magmas",k2="mail",_2="magnetos",B2="men",S2="manga",w2="manifestos",F2="matrices",N2="maxima",x2="means",I2="measles",v2="medicos",L2="media",O2="melismas",R2="memoranda",P2="menisci",M2="mews",U2="miasmas",H2="millennia",$2="minima",q2="minutiae",z2="momenta",j2="mongooses",Y2="moose",G2="mud",V2="mice",W2="mumps",K2="music",Q2="murices",X2="mythoi",J2="nebulas",Z2="nemeses",eA="neuroses",tA="news",nA="nexuses",rA="nimbuses",iA="noumena",sA="novas",uA="nucleoli",aA="nuclei",oA="oases",lA="occipita",cA="octavos",hA="octopuses",fA="oedemas",mA="offspring",dA="omphaloi",pA="optima",gA="opuses",EA="organons",AA="ova",DA="oxen",CA="parabolas",TA="paralyses",yA="parentheses",bA="passersby",kA="pennies",_A="personnel",BA="perihelia",SA="people",wA="phalanges",FA="phenomena",NA="photos",xA="physics",IA="phyla",vA="pike",LA="pincers",OA="plankton",RA="plateaus",PA="platypuses",MA="plexuses",UA="pliers",HA="police",$A="policemen",qA="politics",zA="pollution",jA="polyhedra",YA="pontifices",GA="potatoes",VA="premises",WA="pros",KA="proceedings",QA="prognoses",XA="prolegomena",JA="prospectuses",ZA="quanta",eD="quartos",tD="quizzes",nD="rabies",rD="rain",iD="radii",sD="referendums",uD="reindeer",aD="research",oD="rhinos",lD="rice",cD="roofs",hD="rostrums",fD="salmon",mD="sarcomas",dD="sarcophagi",pD="savings",gD="scarves",ED="schemas",AD="scissors",DD="scrota",CD="sewage",TD="selves",yD="seminomas",bD="shambles",kD="seraphs",_D="series",BD="shears",SD="sheep",wD="shelves",FD="shrimp",ND="silices",xD="simplexes",ID="simulacra",vD="software",LD="sinuses",OD="soliloquies",RD="solos",PD="somas",MD="sopranos",UD="spacecraft",HD="spokesmen",$D="species",qD="spectra",zD="specula",jD="sphinxes",YD="squid",GD="stadiums",VD="staffs",WD="stairs",KD="stamens",QD="statuses",XD="stigmas",JD="stimuli",ZD="stomas",eC="strata",tC="styluses",nC="succubi",rC="swine",iC="syconia",sC="syllabuses",uC="symposiums",aC="synopses",oC="syntheses",lC="tennis",cC="tableaus",hC="tempos",fC="thanks",mC="testes",dC="those",pC="theses",gC="thieves",EC="thrombi",AC="tibias",DC="tomatoes",CC="teeth",TC="torpedoes",yC="tornadoes",bC="tori",kC="traffic",_C="transportation",BC="trapezia",SC="traumas",wC="triceps",FC="trilbies",NC="trout",xC="tuna",IC="ultimatums",vC="umbilici",LC="upstairs",OC="uteruses",RC="vacuums",PC="vela",MC="vertebrae",UC="vertices",HC="vetoes",$C="viscera",qC="wealth",zC="welfare",jC="vitae",YC="volcanoes",GC="vortices",VC="watercraft",WC="wharves",KC="whiting",QC="wives",XC="wildebeest",JC="wildlife",ZC="wolves",eT="women",tT={abscissa:Ap,addendum:Dp,adulthood:Cp,advice:Tp,afreet:yp,afrit:bp,agendum:kp,aid:_p,aircraft:Bp,albino:Sp,alcohol:wp,alga:Fp,alto:Np,alumna:xp,alumnus:Ip,alveolus:vp,amoeba:Lp,ammo:Op,analysis:Rp,analytics:Pp,anathema:Mp,anime:Up,antenna:Hp,antithesis:$p,aphelion:qp,apparatus:zp,appendix:jp,aquarium:Yp,archipelago:Gp,armadillo:Vp,asyndeton:Wp,athletics:Kp,audio:Qp,aurora:Xp,automaton:Jp,axis:Zp,bacillus:e1,bacterium:t1,baculum:n1,barracks:r1,basis:i1,basso:s1,beau:u1,beef:a1,blood:o1,bema:l1,biceps:c1,bison:h1,bream:f1,breeches:m1,britches:d1,brother:p1,buffalo:g1,bureau:E1,businessman:A1,butter:D1,cactus:C1,calf:T1,cash:y1,candelabrum:b1,canto:k1,cantus:_1,carcinoma:B1,carp:S1,census:w1,chapeau:F1,charisma:N1,chairman:x1,chassis:I1,cherub:v1,chess:L1,child:O1,ch\u00E2teau:"ch\xE2teaus",clippers:R1,clitoris:P1,clothes:M1,clothing:U1,cloaca:H1,cod:$1,codex:q1,commerce:z1,coitus:j1,commando:Y1,compendium:G1,concerto:V1,consortium:W1,contralto:K1,contretemps:Q1,cooperation:X1,corps:J1,corpus:Z1,cortex:eg,cranium:tg,crescendo:ng,crisis:rg,criterion:ig,curriculum:sg,cyclops:ug,cystoma:ag,data:og,datum:lg,debris:cg,deer:hg,desideratum:fg,diabetes:mg,diagnosis:dg,dictum:pg,die:gg,digestion:Eg,dingo:Ag,diploma:Dg,ditto:Cg,djinni:Tg,dogma:yg,drama:bg,dwarf:kg,dynamo:_g,economics:Bg,echo:Sg,edema:wg,efreet:Fg,eland:Ng,elf:xg,elk:Ig,ellipsis:vg,embargo:Lg,embryo:Og,emphasis:Rg,emporium:Pg,encomium:Mg,enigma:Ug,equipment:Hg,ephemeris:$g,erratum:qg,excretion:zg,expertise:jg,extremum:Yg,"faux pas":"faux pas",fez:Gg,fiasco:Vg,fibula:Wg,firmware:Kg,fish:Qg,flounder:Xg,focus:Jg,foot:Zg,fun:eE,foramen:tE,formula:nE,forum:rE,fungus:iE,gallows:sE,garbage:uE,ganglion:aE,generalissimo:oE,genie:lE,gentleman:cE,genus:hE,ghetto:fE,glomerulus:mE,goose:dE,goy:pE,graffiti:gE,graffito:EE,grouse:AE,guano:DE,gumma:CE,gymnasium:TE,half:yE,hamulus:bE,hardware:kE,health:_E,headquarters:BE,hero:SE,herpes:wE,highjinks:FE,hijinks:NE,hiatus:xE,hippopotamus:IE,homework:vE,honorarium:LE,hoof:OE,housework:RE,hovercraft:PE,humerus:ME,hyperbaton:UE,hyperbola:HE,hypothesis:$E,ilium:qE,impetus:zE,incubus:jE,index:YE,information:GE,inferno:VE,innings:WE,interregnum:KE,interstitium:QE,jackanapes:XE,jeans:JE,jumbo:ZE,kakapo:e2,knife:t2,kudos:n2,labour:r2,lacuna:i2,larva:s2,leaf:u2,lemma:a2,libretto:o2,life:l2,lingo:c2,literature:h2,loaf:f2,loculus:m2,locus:d2,looey:p2,louse:g2,lumbago:E2,lumen:A2,lustrum:D2,lymphoma:C2,machinery:T2,mackerel:y2,magma:b2,mail:k2,magneto:_2,man:B2,manga:S2,manifesto:w2,matrix:F2,maximum:N2,means:x2,measles:I2,medico:v2,medium:L2,melisma:O2,memorandum:R2,meniscus:P2,mews:M2,miasma:U2,millennium:H2,minimum:$2,minutia:q2,momentum:z2,mongoose:j2,moose:Y2,mud:G2,mouse:V2,mumps:W2,music:K2,murex:Q2,mythos:X2,nebula:J2,nemesis:Z2,neurosis:eA,news:tA,nexus:nA,nimbus:rA,noumenon:iA,nova:sA,nucleolus:uA,nucleus:aA,oasis:oA,occiput:lA,octavo:cA,octopus:hA,oedema:fA,offspring:mA,omphalos:dA,optimum:pA,opus:gA,organon:EA,ovum:AA,ox:DA,parabola:CA,paralysis:TA,parenthesis:yA,passerby:bA,penny:kA,personnel:_A,perihelion:BA,person:SA,phalanx:wA,phenomenon:FA,photo:NA,physics:xA,phylum:IA,pike:vA,pincers:LA,plankton:OA,plateau:RA,platypus:PA,plexus:MA,pliers:UA,police:HA,policeman:$A,politics:qA,pollution:zA,polyhedron:jA,pontifex:YA,potato:GA,premises:VA,pro:WA,proceedings:KA,prognosis:QA,prolegomenon:XA,prospectus:JA,quantum:ZA,quarto:eD,quiz:tD,rabies:nD,rain:rD,radius:iD,referendum:sD,reindeer:uD,research:aD,rhino:oD,rice:lD,roof:cD,rostrum:hD,salmon:fD,sarcoma:mD,sarcophagus:dD,savings:pD,scarf:gD,schema:ED,scissors:AD,scrotum:DD,"sea bass":"sea bass",sewage:CD,self:TD,seminoma:yD,shambles:bD,seraph:kD,series:_D,shears:BD,sheep:SD,shelf:wD,shrimp:FD,silex:ND,simplex:xD,simulacrum:ID,software:vD,sinus:LD,soliloquy:OD,solo:RD,soma:PD,soprano:MD,spacecraft:UD,spokesman:HD,species:$D,spectrum:qD,speculum:zD,sphinx:jD,squid:YD,stadium:GD,staff:VD,stairs:WD,stamen:KD,status:QD,stigma:XD,stimulus:JD,stoma:ZD,stratum:eC,stylus:tC,succubus:nC,swine:rC,syconium:iC,syllabus:sC,symposium:uC,synopsis:aC,synthesis:oC,tennis:lC,tableau:cC,tempo:hC,thanks:fC,testis:mC,that:dC,thesis:pC,thief:gC,this:"these",thrombus:EC,tibia:AC,tomato:DC,tooth:CC,torpedo:TC,tornado:yC,torus:bC,traffic:kC,transportation:_C,trapezium:BC,trauma:SC,triceps:wC,trilby:FC,trout:NC,tuna:xC,ultimatum:IC,umbilicus:vC,upstairs:LC,uterus:OC,vacuum:RC,velum:PC,vertebra:MC,vertex:UC,veto:HC,viscus:$C,wealth:qC,welfare:zC,vita:jC,volcano:YC,vortex:GC,watercraft:VC,wharf:WC,whiting:KC,wife:QC,wildebeest:XC,wildlife:JC,wolf:ZC,woman:eT};const qo=new Map(Object.entries(tT));function sn(e,t,n){if(typeof t=="number"&&(n=t),qo.has(e.toLowerCase())){t=qo.get(e.toLowerCase());const r=e.charAt(0);r===r.toUpperCase()&&(t=r+t.slice(1)),e===e.toUpperCase()&&(t=t.toUpperCase())}else typeof t!="string"&&(t=(e.replace(/(?:s|x|z|ch|sh)$/i,"$&e").replace(/([^aeiou])y$/i,"$1ie")+"s").replace(/i?e?s$/i,r=>e.slice(-1)===e.slice(-1).toLowerCase()?r.toLowerCase():r.toUpperCase()));return Math.abs(n)===1?e:t}s(sn,"plur");const zo=s(e=>Number.isFinite(e)?e:0,"toZeroIfInfinity");function nT(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(zo(e*1e3)%1e3),nanoseconds:Math.trunc(zo(e*1e6)%1e3)}}s(nT,"parseNumber");function rT(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}s(rT,"parseBigint");function iT(e){switch(typeof e){case"number":{if(Number.isFinite(e))return nT(e);break}case"bigint":return rT(e)}throw new TypeError("Expected a finite number or bigint")}s(iT,"parseMilliseconds");const sT=s(e=>e===0||e===0n,"isZero"),uT=s((e,t)=>t===1||t===1n?e:`${e}s`,"pluralize"),aT=1e-7,oT=24n*60n*60n*1000n;function as(e,t){const n=typeof e=="bigint";if(!n&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");t={...t};const r=e<0?"-":"";e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let i=[];const u=s((f,h)=>{const p=Math.floor(f*10**h+aT);return(Math.round(p)/10**h).toFixed(h)},"floorDecimals"),a=s((f,h,p,d)=>{if(!((i.length===0||!t.colonNotation)&&sT(f)&&!(t.colonNotation&&p==="m"))){if(d??=String(f),t.colonNotation){const E=d.includes(".")?d.split(".")[0].length:d.length,g=i.length>0?2:1;d="0".repeat(Math.max(0,g-E))+d}else d+=t.verbose?" "+uT(h,f):p;i.push(d)}},"add"),o=iT(e),l=BigInt(o.days);if(t.hideYearAndDays?a(BigInt(l)*24n+BigInt(o.hours),"hour","h"):(t.hideYear?a(l,"day","d"):(a(l/365n,"year","y"),a(l%365n,"day","d")),a(Number(o.hours),"hour","h")),a(Number(o.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3&&!t.subSecondsAsDecimals){const f=Number(o.seconds),h=Number(o.milliseconds),p=Number(o.microseconds),d=Number(o.nanoseconds);if(a(f,"second","s"),t.formatSubMilliseconds)a(h,"millisecond","ms"),a(p,"microsecond","\xB5s"),a(d,"nanosecond","ns");else{const E=h+p/1e3+d/1e6,g=typeof t.millisecondsDecimalDigits=="number"?t.millisecondsDecimalDigits:0,D=E>=1?Math.round(E):Math.ceil(E),A=g?E.toFixed(g):D;a(Number.parseFloat(A),"millisecond","ms",A)}}else{const f=(n?Number(e%oT):e)/1e3%60,h=typeof t.secondsDecimalDigits=="number"?t.secondsDecimalDigits:1,p=u(f,h),d=t.keepDecimalsOnWholeSeconds?p:p.replace(/\.0+$/,"");a(Number.parseFloat(d),"second","s",d)}if(i.length===0)return r+"0"+(t.verbose?" milliseconds":"ms");const c=t.colonNotation?":":" ";return typeof t.unitCount=="number"&&(i=i.slice(0,Math.max(t.unitCount,1))),r+i.join(c)}s(as,"prettyMilliseconds");const Mr=typeof window>"u"?typeof process>"u"?"other":"node":"browser",jo=Mr==="browser"?/windows/i.test(navigator.userAgent)?"windows":/mac/i.test(navigator.userAgent)?"mac":"other":Mr==="node"?process.platform==="win32"?"windows":process.platform==="darwin"?"mac":"other":"other";let os=0,Yo=0;async function Go(){if(jo==="mac"&&Mr==="node"){let{openApp:e}=await import("./index-CQlZV-e4.js");if(Yo>=100){console.warn("Too many Anki App launch attempts this session, ignoring");return}(os===0||Date.now()-os>5e3)&&(console.warn("Attempting to launch Anki app"),os=Date.now(),Yo++,await e("/Applications/Anki.app",{background:!0,newInstance:!1,wait:!1}))}else console.warn("Automatic Anki App launch is only supported on Mac OS in Node.js environment")}s(Go,"i");const yt={autoLaunch:!1,fetchAdapter:fetch.bind(globalThis),host:"http://127.0.0.1",key:void 0,port:8765,version:6};var $n=class{static{s(this,"o")}card={answerCards:this.build("answerCards"),areDue:this.build("areDue"),areSuspended:this.build("areSuspended"),cardsInfo:this.build("cardsInfo"),cardsModTime:this.build("cardsModTime"),cardsToNotes:this.build("cardsToNotes"),findCards:this.build("findCards"),forgetCards:this.build("forgetCards"),getEaseFactors:this.build("getEaseFactors"),getIntervals:this.build("getIntervals"),relearnCards:this.build("relearnCards"),setDueDate:this.build("setDueDate"),setEaseFactors:this.build("setEaseFactors"),setSpecificValueOfCard:this.build("setSpecificValueOfCard"),suspend:this.build("suspend"),suspended:this.build("suspended"),unsuspend:this.build("unsuspend")};deck={changeDeck:this.build("changeDeck"),cloneDeckConfigId:this.build("cloneDeckConfigId"),createDeck:this.build("createDeck"),deckNames:this.build("deckNames"),deckNamesAndIds:this.build("deckNamesAndIds"),deleteDecks:this.build("deleteDecks"),getDeckConfig:this.build("getDeckConfig"),getDecks:this.build("getDecks"),getDeckStats:this.build("getDeckStats"),removeDeckConfigId:this.build("removeDeckConfigId"),saveDeckConfig:this.build("saveDeckConfig"),setDeckConfigId:this.build("setDeckConfigId")};graphical={guiAddCards:this.build("guiAddCards"),guiAnswerCard:this.build("guiAnswerCard"),guiBrowse:this.build("guiBrowse"),guiCheckDatabase:this.build("guiCheckDatabase"),guiCurrentCard:this.build("guiCurrentCard"),guiDeckBrowser:this.build("guiDeckBrowser"),guiDeckOverview:this.build("guiDeckOverview"),guiDeckReview:this.build("guiDeckReview"),guiEditNote:this.build("guiEditNote"),guiExitAnki:this.build("guiExitAnki"),guiImportFile:this.build("guiImportFile"),guiPlayAudio:this.build("guiPlayAudio"),guiSelectCard:this.build("guiSelectCard"),guiSelectedNotes:this.build("guiSelectedNotes"),guiSelectNote:this.build("guiSelectNote"),guiShowAnswer:this.build("guiShowAnswer"),guiShowQuestion:this.build("guiShowQuestion"),guiStartCardTimer:this.build("guiStartCardTimer"),guiUndo:this.build("guiUndo")};media={deleteMediaFile:this.build("deleteMediaFile"),getMediaDirPath:this.build("getMediaDirPath"),getMediaFilesNames:this.build("getMediaFilesNames"),retrieveMediaFile:this.build("retrieveMediaFile"),storeMediaFile:this.build("storeMediaFile")};miscellaneous={apiReflect:this.build("apiReflect"),exportPackage:this.build("exportPackage"),getActiveProfile:this.build("getActiveProfile"),getProfiles:this.build("getProfiles"),importPackage:this.build("importPackage"),loadProfile:this.build("loadProfile"),multi:this.build("multi"),reloadCollection:this.build("reloadCollection"),requestPermission:this.build("requestPermission"),sync:this.build("sync"),version:this.build("version")};model={createModel:this.build("createModel"),findAndReplaceInModels:this.build("findAndReplaceInModels"),findModelsById:this.build("findModelsById"),findModelsByName:this.build("findModelsByName"),modelFieldAdd:this.build("modelFieldAdd"),modelFieldDescriptions:this.build("modelFieldDescriptions"),modelFieldFonts:this.build("modelFieldFonts"),modelFieldNames:this.build("modelFieldNames"),modelFieldRemove:this.build("modelFieldRemove"),modelFieldRename:this.build("modelFieldRename"),modelFieldReposition:this.build("modelFieldReposition"),modelFieldSetDescription:this.build("modelFieldSetDescription"),modelFieldSetFont:this.build("modelFieldSetFont"),modelFieldSetFontSize:this.build("modelFieldSetFontSize"),modelFieldsOnTemplates:this.build("modelFieldsOnTemplates"),modelNames:this.build("modelNames"),modelNamesAndIds:this.build("modelNamesAndIds"),modelStyling:this.build("modelStyling"),modelTemplateAdd:this.build("modelTemplateAdd"),modelTemplateRemove:this.build("modelTemplateRemove"),modelTemplateRename:this.build("modelTemplateRename"),modelTemplateReposition:this.build("modelTemplateReposition"),modelTemplates:this.build("modelTemplates"),updateModelStyling:this.build("updateModelStyling"),updateModelTemplates:this.build("updateModelTemplates")};note={addNote:this.build("addNote"),addNotes:this.build("addNotes"),addTags:this.build("addTags"),canAddNotes:this.build("canAddNotes"),canAddNotesWithErrorDetail:this.build("canAddNotesWithErrorDetail"),clearUnusedTags:this.build("clearUnusedTags"),deleteNotes:this.build("deleteNotes"),findNotes:this.build("findNotes"),getNoteTags:this.build("getNoteTags"),getTags:this.build("getTags"),notesInfo:this.build("notesInfo"),notesModTime:this.build("notesInfo"),removeEmptyNotes:this.build("removeEmptyNotes"),removeTags:this.build("removeTags"),replaceTags:this.build("replaceTags"),replaceTagsInAllNotes:this.build("replaceTagsInAllNotes"),updateNote:this.build("updateNote"),updateNoteFields:this.build("updateNoteFields"),updateNoteModel:this.build("updateNoteModel"),updateNoteTags:this.build("updateNoteTags")};statistic={cardReviews:this.build("cardReviews"),getCollectionStatsHTML:this.build("getCollectionStatsHTML"),getLatestReviewID:this.build("getLatestReviewID"),getNumCardsReviewedByDay:this.build("getNumCardsReviewedByDay"),getNumCardsReviewedToday:this.build("getNumCardsReviewedToday"),getReviewsOfCards:this.build("getReviewsOfCards"),insertReviews:this.build("insertReviews")};autoLaunch;fetchAdapter;host;key;port;version;constructor(e){if(this.host=e?.host??yt.host,this.port=e?.port??yt.port,this.version=e?.version??yt.version,this.key=e?.key??yt.key,this.autoLaunch=e?.autoLaunch??yt.autoLaunch,yt.fetchAdapter===void 0)throw Error("A fetch implementation is required");if(this.fetchAdapter=e?.fetchAdapter??yt.fetchAdapter,(jo!=="mac"||Mr!=="node")&&this.autoLaunch!==!1&&(console.warn("The autoLaunch option is only supported in a Node environment on macOS"),this.autoLaunch=!1),this.version!==6)throw Error("YankiConnect currently only supports Anki-Connect API version 6");this.autoLaunch==="immediately"&&Go()}async invoke(e,t){let n,r;try{if(n=await this.fetchAdapter(`${this.host}:${this.port}`,{body:JSON.stringify({action:e,...this.key===void 0?{}:{key:this.key},params:t,version:this.version}),headers:{"Access-Control-Allow-Origin":"*","Content-Type":"application/json"},method:"POST",mode:"cors"}),n===void 0)throw Error("Anki-Connect response is undefined");if(n.status!==200)throw Error(`Anki-Connect response status is ${n.status}`);if(r=await n.json(),this.autoLaunch!==!1&&r.error==="collection is not available")throw Error(r.error)}catch(i){if(this.autoLaunch!==!1)return console.warn("Can't connect to Anki app, retrying with auto-launch..."),await Go(),await new Promise(u=>{setTimeout(u,500)}),t===void 0?this.invoke(e):this.invoke(e,t);throw i}if(!("error"in r))throw Error("response is missing required error field");if(!("result"in r))throw Error("response is missing required result field");return r}build(e){return async t=>{let n=await this.invoke(e,t);if(n.error!==null)throw Error(n.error);return n.result}}};let de=class extends Error{static{s(this,"ShikiError")}constructor(t){super(t),this.name="ShikiError"}};function lT(e){return ls(e)}s(lT,"clone");function ls(e){return Array.isArray(e)?cT(e):e instanceof RegExp?e:typeof e=="object"?hT(e):e}s(ls,"doClone");function cT(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=ls(e[n]);return t}s(cT,"cloneArray");function hT(e){let t={};for(let n in e)t[n]=ls(e[n]);return t}s(hT,"cloneObj");function Vo(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}s(Vo,"mergeObjects");function Wo(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Wo(e.substring(0,e.length-1)):e.substr(~t+1)}s(Wo,"basename$1");var cs=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ur=class{static{s(this,"RegexSource")}static hasCaptures(e){return e===null?!1:(cs.lastIndex=0,cs.test(e))}static replaceCaptures(e,t,n){return e.replace(cs,(r,i,u,a)=>{let o=n[parseInt(i||u,10)];if(o){let l=t.substring(o.start,o.end);for(;l[0]===".";)l=l.substring(1);switch(a){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function Ko(e,t){return e<t?-1:e>t?1:0}s(Ko,"strcmp");function Qo(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let i=0;i<n;i++){let u=Ko(e[i],t[i]);if(u!==0)return u}return 0}return n-r}s(Qo,"strArrCmp");function Xo(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}s(Xo,"isValidHexColor");function Jo(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}s(Jo,"escapeRegExpCharacters");var Zo=class{static{s(this,"CachedFn")}constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Hr=class{static{s(this,"Theme")}constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(dT(e),t)}static createFromParsedTheme(e,t){return gT(e,t)}_cachedMatchRoot=new Zo(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(i=>fT(e.parent,i.parentScopes));return r?new el(r.fontStyle,r.foreground,r.background):null}},hs=class is{static{s(this,"_ScopeStack")}constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new is(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new is(n,t[r]);return n}push(t){return new is(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function fT(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!mT(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}s(fT,"_scopePathMatchesParentScopes");function mT(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}s(mT,"_matchesScope");var el=class{static{s(this,"StyleAttributes")}constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function dT(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let i=0,u=t.length;i<u;i++){let a=t[i];if(!a.settings)continue;let o;if(typeof a.scope=="string"){let h=a.scope;h=h.replace(/^[,]+/,""),h=h.replace(/[,]+$/,""),o=h.split(",")}else Array.isArray(a.scope)?o=a.scope:o=[""];let l=-1;if(typeof a.settings.fontStyle=="string"){l=0;let h=a.settings.fontStyle.split(" ");for(let p=0,d=h.length;p<d;p++)switch(h[p]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof a.settings.foreground=="string"&&Xo(a.settings.foreground)&&(c=a.settings.foreground);let f=null;typeof a.settings.background=="string"&&Xo(a.settings.background)&&(f=a.settings.background);for(let h=0,p=o.length;h<p;h++){let E=o[h].trim().split(" "),g=E[E.length-1],D=null;E.length>1&&(D=E.slice(0,E.length-1),D.reverse()),n[r++]=new pT(g,D,i,l,c,f)}}return n}s(dT,"parseTheme");var pT=class{static{s(this,"ParsedThemeRule")}constructor(e,t,n,r,i,u){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=u}},ke=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(ke||{});function gT(e,t){e.sort((l,c)=>{let f=Ko(l.scope,c.scope);return f!==0||(f=Qo(l.parentScopes,c.parentScopes),f!==0)?f:l.index-c.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(i=l.background)}let u=new ET(t),a=new el(n,u.getId(r),u.getId(i)),o=new DT(new fs(0,null,-1,0,0),[]);for(let l=0,c=e.length;l<c;l++){let f=e[l];o.insert(0,f.scope,f.parentScopes,f.fontStyle,u.getId(f.foreground),u.getId(f.background))}return new Hr(u,a,o)}s(gT,"resolveParsedThemeRules");var ET=class{static{s(this,"ColorMap")}_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},AT=Object.freeze([]),fs=class qd{static{s(this,"_ThemeTrieElementRule")}scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,i,u){this.scopeDepth=t,this.parentScopes=n||AT,this.fontStyle=r,this.foreground=i,this.background=u}clone(){return new qd(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,i){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),i!==0&&(this.background=i)}},DT=class So{static{s(this,"_ThemeTrieElement")}constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,i=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[i]===">"&&i++,!(r>=t.parentScopes.length||i>=n.parentScopes.length);){const u=n.parentScopes[i].length-t.parentScopes[r].length;if(u!==0)return u;r++,i++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),i,u;if(r===-1?(i=t,u=""):(i=t.substring(0,r),u=t.substring(r+1)),this._children.hasOwnProperty(i))return this._children[i].match(u)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(So._cmpBySpecificity),n}insert(t,n,r,i,u,a){if(n===""){this._doInsertHere(t,r,i,u,a);return}let o=n.indexOf("."),l,c;o===-1?(l=n,c=""):(l=n.substring(0,o),c=n.substring(o+1));let f;this._children.hasOwnProperty(l)?f=this._children[l]:(f=new So(this._mainRule.clone(),fs.cloneArr(this._rulesWithParentScopes)),this._children[l]=f),f.insert(t+1,c,r,i,u,a)}_doInsertHere(t,n,r,i,u){if(n===null){this._mainRule.acceptOverwrite(t,r,i,u);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let l=this._rulesWithParentScopes[a];if(Qo(l.parentScopes,n)===0){l.acceptOverwrite(t,r,i,u);return}}r===-1&&(r=this._mainRule.fontStyle),i===0&&(i=this._mainRule.foreground),u===0&&(u=this._mainRule.background),this._rulesWithParentScopes.push(new fs(t,n,r,i,u))}},un=class We{static{s(this,"_EncodedTokenMetadata")}static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=We.getLanguageId(t),r=We.getTokenType(t),i=We.getFontStyle(t),u=We.getForeground(t),a=We.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:u,background:a})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,i,u,a,o){let l=We.getLanguageId(t),c=We.getTokenType(t),f=We.containsBalancedBrackets(t)?1:0,h=We.getFontStyle(t),p=We.getForeground(t),d=We.getBackground(t);return n!==0&&(l=n),r!==8&&(c=r),i!==null&&(f=i?1:0),u!==-1&&(h=u),a!==0&&(p=a),o!==0&&(d=o),(l<<0|c<<8|f<<10|h<<11|p<<15|d<<24)>>>0}};function PL(e){return e}s(PL,"toOptionalTokenType");function ML(e){return e}s(ML,"fromOptionalTokenType");function $r(e,t){const n=[],r=CT(e);let i=r.next();for(;i!==null;){let l=0;if(i.length===2&&i.charAt(1)===":"){switch(i.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let c=a();if(n.push({matcher:c,priority:l}),i!==",")break;i=r.next()}return n;function u(){if(i==="-"){i=r.next();const l=u();return c=>!!l&&!l(c)}if(i==="("){i=r.next();const l=o();return i===")"&&(i=r.next()),l}if(tl(i)){const l=[];do l.push(i),i=r.next();while(tl(i));return c=>t(l,c)}return null}function a(){const l=[];let c=u();for(;c;)l.push(c),c=u();return f=>l.every(h=>h(f))}function o(){const l=[];let c=a();for(;c&&(l.push(c),i==="|"||i===",");){do i=r.next();while(i==="|"||i===",");c=a()}return f=>l.some(h=>h(f))}}s($r,"createMatchers");function tl(e){return!!e&&!!e.match(/[\w\.:]+/)}s(tl,"isIdentifier");function CT(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:s(()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r},"next")}}s(CT,"newTokenizer");function nl(e){typeof e.dispose=="function"&&e.dispose()}s(nl,"disposeOnigString");var qn=class{static{s(this,"TopLevelRuleReference")}constructor(e){this.scopeName=e}toKey(){return this.scopeName}},TT=class{static{s(this,"TopLevelRepositoryRuleReference")}constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},yT=class{static{s(this,"ExternalReferenceCollector")}_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},bT=class{static{s(this,"ScopeDependencyProcessor")}constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new qn(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new yT;for(const n of e)kT(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof qn){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function kT(e,t,n,r){const i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const u=n.lookup(t);e instanceof qn?qr({baseGrammar:u,selfGrammar:i},r):ms(e.ruleName,{baseGrammar:u,selfGrammar:i,repository:i.repository},r);const a=n.injections(e.scopeName);if(a)for(const o of a)r.add(new qn(o))}s(kT,"collectReferencesOfReference");function ms(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];zr([r],t,n)}}s(ms,"collectExternalReferencesInTopLevelRepositoryRule");function qr(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&zr(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&zr(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}s(qr,"collectExternalReferencesInTopLevelRule");function zr(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const i=r.repository?Vo({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&zr(r.patterns,{...t,repository:i},n);const u=r.include;if(!u)continue;const a=rl(u);switch(a.kind){case 0:qr({...t,selfGrammar:t.baseGrammar},n);break;case 1:qr(t,n);break;case 2:ms(a.ruleName,{...t,repository:i},n);break;case 3:case 4:const o=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(o){const l={baseGrammar:t.baseGrammar,selfGrammar:o,repository:i};a.kind===4?ms(a.ruleName,l,n):qr(l,n)}else a.kind===4?n.add(new TT(a.scopeName,a.ruleName)):n.add(new qn(a.scopeName));break}}}s(zr,"collectExternalReferencesInRules");var _T=class{static{s(this,"BaseReference")}kind=0},BT=class{static{s(this,"SelfReference")}kind=1},ST=class{static{s(this,"RelativeReference")}constructor(e){this.ruleName=e}kind=2},wT=class{static{s(this,"TopLevelReference")}constructor(e){this.scopeName=e}kind=3},FT=class{static{s(this,"TopLevelRepositoryReference")}constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function rl(e){if(e==="$base")return new _T;if(e==="$self")return new BT;const t=e.indexOf("#");if(t===-1)return new wT(e);if(t===0)return new ST(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new FT(n,r)}}s(rl,"parseInclude");var NT=/\\(\d+)/,il=/\\(\d+)/g,xT=-1,sl=-2;function UL(e){return e}s(UL,"ruleIdFromNumber");function HL(e){return e}s(HL,"ruleIdToNumber");var zn=class{static{s(this,"Rule")}$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Ur.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Ur.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Wo(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Ur.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ur.replaceCaptures(this._contentName,e,t)}},IT=class extends zn{static{s(this,"CaptureRule")}retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},vT=class extends zn{static{s(this,"MatchRule")}_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new jn(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Yn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ul=class extends zn{static{s(this,"IncludeOnlyRule")}hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Yn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ds=class extends zn{static{s(this,"BeginEndRule")}_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,u,a,o,l,c){super(e,t,n,r),this._begin=new jn(i,this.id),this.beginCaptures=u,this._end=new jn(a||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Yn;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},jr=class extends zn{static{s(this,"BeginWhileRule")}_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,u,a,o,l){super(e,t,n,r),this._begin=new jn(i,this.id),this.beginCaptures=u,this.whileCaptures=o,this._while=new jn(a,sl),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Yn;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Yn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},al=class Se{static{s(this,"_RuleFactory")}static createCaptureRule(t,n,r,i,u){return t.registerRule(a=>new IT(n,a,r,i,u))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new vT(t.$vscodeTextmateLocation,t.id,t.name,t.match,Se._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Vo({},r,t.repository));let u=t.patterns;return typeof u>"u"&&t.include&&(u=[{include:t.include}]),new ul(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Se._compilePatterns(u,n,r))}return t.while?new jr(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Se._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Se._compileCaptures(t.whileCaptures||t.captures,n,r),Se._compilePatterns(t.patterns,n,r)):new ds(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Se._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Se._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Se._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let u=0;for(const a in t){if(a==="$vscodeTextmateLocation")continue;const o=parseInt(a,10);o>u&&(u=o)}for(let a=0;a<=u;a++)i[a]=null;for(const a in t){if(a==="$vscodeTextmateLocation")continue;const o=parseInt(a,10);let l=0;t[a].patterns&&(l=Se.getCompiledRuleId(t[a],n,r)),i[o]=Se.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,l)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let u=0,a=t.length;u<a;u++){const o=t[u];let l=-1;if(o.include){const c=rl(o.include);switch(c.kind){case 0:case 1:l=Se.getCompiledRuleId(r[o.include],n,r);break;case 2:let f=r[c.ruleName];f&&(l=Se.getCompiledRuleId(f,n,r));break;case 3:case 4:const h=c.scopeName,p=c.kind===4?c.ruleName:null,d=n.getExternalGrammar(h,r);if(d)if(p){let E=d.repository[p];E&&(l=Se.getCompiledRuleId(E,n,d.repository))}else l=Se.getCompiledRuleId(d.repository.$self,n,d.repository);break}}else l=Se.getCompiledRuleId(o,n,r);if(l!==-1){const c=n.getRule(l);let f=!1;if((c instanceof ul||c instanceof ds||c instanceof jr)&&c.hasMissingPatterns&&c.patterns.length===0&&(f=!0),f)continue;i.push(l)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},jn=class zd{static{s(this,"_RegExpSource")}source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let i=0,u=[],a=!1;for(let o=0;o<r;o++)if(t.charAt(o)==="\\"&&o+1<r){const c=t.charAt(o+1);c==="z"?(u.push(t.substring(i,o)),u.push("$(?!\\n)(?<!\\n)"),i=o+2):(c==="A"||c==="G")&&(a=!0),o++}this.hasAnchor=a,i===0?this.source=t:(u.push(t.substring(i,r)),this.source=u.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=NT.test(this.source):this.hasBackReferences=!1}clone(){return new zd(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(i=>t.substring(i.start,i.end));return il.lastIndex=0,this.source.replace(il,(i,u)=>Jo(r[parseInt(u,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],i=[],u,a,o,l;for(u=0,a=this.source.length;u<a;u++)o=this.source.charAt(u),t[u]=o,n[u]=o,r[u]=o,i[u]=o,o==="\\"&&u+1<a&&(l=this.source.charAt(u+1),l==="A"?(t[u+1]="\uFFFF",n[u+1]="\uFFFF",r[u+1]="A",i[u+1]="A"):l==="G"?(t[u+1]="\uFFFF",n[u+1]="G",r[u+1]="\uFFFF",i[u+1]="G"):(t[u+1]=l,n[u+1]=l,r[u+1]=l,i[u+1]=l),u++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:i.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Yn=class{static{s(this,"RegExpSourceList")}_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new ol(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(i=>i.resolveAnchors(t,n));return new ol(e,r,this._items.map(i=>i.ruleId))}},ol=class{static{s(this,"CompiledRule")}constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
2
|
-
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ps=class{static{s(this,"BasicScopeAttributes")}constructor(e,t){this.languageId=e,this.tokenType=t}},LT=class wo{static{s(this,"_BasicScopeAttributesProvider")}_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new ps(t,8),this._embeddedLanguagesMatcher=new OT(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?wo._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ps(0,0);_getBasicScopeAttributes=new Zo(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new ps(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(wo.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},OT=class{static{s(this,"ScopeMatcher")}values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Jo(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var ll=class{static{s(this,"TokenizeStringResult")}constructor(e,t){this.stack=e,this.stoppedEarly=t}};function cl(e,t,n,r,i,u,a,o){const l=t.content.length;let c=!1,f=-1;if(a){const d=RT(e,t,n,r,i,u);i=d.stack,r=d.linePos,n=d.isFirstLine,f=d.anchorPosition}const h=Date.now();for(;!c;){if(o!==0&&Date.now()-h>o)return new ll(i,!0);p()}return new ll(i,!1);function p(){const d=PT(e,t,n,r,i,f);if(!d){u.produce(i,l),c=!0;return}const E=d.captureIndices,g=d.matchedRuleId,D=E&&E.length>0?E[0].end>r:!1;if(g===xT){const A=i.getRule(e);u.produce(i,E[0].start),i=i.withContentNameScopesList(i.nameScopesList),Gn(e,t,n,i,u,A.endCaptures,E),u.produce(i,E[0].end);const y=i;if(i=i.parent,f=y.getAnchorPos(),!D&&y.getEnterPos()===r){i=y,u.produce(i,l),c=!0;return}}else{const A=e.getRule(g);u.produce(i,E[0].start);const y=i,C=A.getName(t.content,E),F=i.contentNameScopesList.pushAttributed(C,e);if(i=i.push(g,r,f,E[0].end===l,null,F,F),A instanceof ds){const v=A;Gn(e,t,n,i,u,v.beginCaptures,E),u.produce(i,E[0].end),f=E[0].end;const B=v.getContentName(t.content,E),L=F.pushAttributed(B,e);if(i=i.withContentNameScopesList(L),v.endHasBackReferences&&(i=i.withEndRule(v.getEndWithResolvedBackReferences(t.content,E))),!D&&y.hasSameRuleAs(i)){i=i.pop(),u.produce(i,l),c=!0;return}}else if(A instanceof jr){const v=A;Gn(e,t,n,i,u,v.beginCaptures,E),u.produce(i,E[0].end),f=E[0].end;const B=v.getContentName(t.content,E),L=F.pushAttributed(B,e);if(i=i.withContentNameScopesList(L),v.whileHasBackReferences&&(i=i.withEndRule(v.getWhileWithResolvedBackReferences(t.content,E))),!D&&y.hasSameRuleAs(i)){i=i.pop(),u.produce(i,l),c=!0;return}}else if(Gn(e,t,n,i,u,A.captures,E),u.produce(i,E[0].end),i=i.pop(),!D){i=i.safePop(),u.produce(i,l),c=!0;return}}E[0].end>r&&(r=E[0].end,n=!1)}}s(cl,"_tokenizeString");function RT(e,t,n,r,i,u){let a=i.beginRuleCapturedEOL?0:-1;const o=[];for(let l=i;l;l=l.pop()){const c=l.getRule(e);c instanceof jr&&o.push({rule:c,stack:l})}for(let l=o.pop();l;l=o.pop()){const{ruleScanner:c,findOptions:f}=HT(l.rule,e,l.stack.endRule,n,r===a),h=c.findNextMatchSync(t,r,f);if(h){if(h.ruleId!==sl){i=l.stack.pop();break}h.captureIndices&&h.captureIndices.length&&(u.produce(l.stack,h.captureIndices[0].start),Gn(e,t,n,l.stack,u,l.rule.whileCaptures,h.captureIndices),u.produce(l.stack,h.captureIndices[0].end),a=h.captureIndices[0].end,h.captureIndices[0].end>r&&(r=h.captureIndices[0].end,n=!1))}else{i=l.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:a,isFirstLine:n}}s(RT,"_checkWhileConditions");function PT(e,t,n,r,i,u){const a=MT(e,t,n,r,i,u),o=e.getInjections();if(o.length===0)return a;const l=UT(o,e,t,n,r,i,u);if(!l)return a;if(!a)return l;const c=a.captureIndices[0].start,f=l.captureIndices[0].start;return f<c||l.priorityMatch&&f===c?l:a}s(PT,"matchRuleOrInjections");function MT(e,t,n,r,i,u){const a=i.getRule(e),{ruleScanner:o,findOptions:l}=hl(a,e,i.endRule,n,r===u),c=o.findNextMatchSync(t,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}s(MT,"matchRule");function UT(e,t,n,r,i,u,a){let o=Number.MAX_VALUE,l=null,c,f=0;const h=u.contentNameScopesList.getScopeNames();for(let p=0,d=e.length;p<d;p++){const E=e[p];if(!E.matcher(h))continue;const g=t.getRule(E.ruleId),{ruleScanner:D,findOptions:A}=hl(g,t,null,r,i===a),y=D.findNextMatchSync(n,i,A);if(!y)continue;const C=y.captureIndices[0].start;if(!(C>=o)&&(o=C,l=y.captureIndices,c=y.ruleId,f=E.priority,o===i))break}return l?{priorityMatch:f===-1,captureIndices:l,matchedRuleId:c}:null}s(UT,"matchInjections");function hl(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}s(hl,"prepareRuleSearch");function HT(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}s(HT,"prepareRuleWhileSearch");function Gn(e,t,n,r,i,u,a){if(u.length===0)return;const o=t.content,l=Math.min(u.length,a.length),c=[],f=a[0].end;for(let h=0;h<l;h++){const p=u[h];if(p===null)continue;const d=a[h];if(d.length===0)continue;if(d.start>f)break;for(;c.length>0&&c[c.length-1].endPos<=d.start;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,d.start):i.produce(r,d.start),p.retokenizeCapturedWithRuleId){const g=p.getName(o,a),D=r.contentNameScopesList.pushAttributed(g,e),A=p.getContentName(o,a),y=D.pushAttributed(A,e),C=r.push(p.retokenizeCapturedWithRuleId,d.start,-1,!1,null,D,y),F=e.createOnigString(o.substring(0,d.end));cl(e,F,n&&d.start===0,d.start,C,i,!1,0),nl(F);continue}const E=p.getName(o,a);if(E!==null){const D=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(E,e);c.push(new $T(D,d.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}s(Gn,"handleCaptures");var $T=class{static{s(this,"LocalStackElement")}scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function qT(e,t,n,r,i,u,a,o){return new jT(e,t,n,r,i,u,a,o)}s(qT,"createGrammar");function fl(e,t,n,r,i){const u=$r(t,Yr),a=al.getCompiledRuleId(n,r,i.repository);for(const o of u)e.push({debugSelector:t,matcher:o.matcher,ruleId:a,grammar:i,priority:o.priority})}s(fl,"collectInjections");function Yr(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let i=n;i<t.length;i++)if(zT(t[i],r))return n=i+1,!0;return!1})}s(Yr,"nameMatcher");function zT(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}s(zT,"scopesAreMatching");var jT=class{static{s(this,"Grammar")}constructor(e,t,n,r,i,u,a,o){if(this._rootScopeName=e,this.balancedBracketSelectors=u,this._onigLib=o,this._basicScopeAttributesProvider=new LT(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=ml(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(const l of Object.keys(i)){const c=$r(l,Yr);for(const f of c)this._tokenTypeMatchers.push({matcher:f.matcher,type:i[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s(i=>i===this._rootScopeName?this._grammar:this.getExternalGrammar(i),"lookup"),injections:s(i=>this._grammarRepository.injections(i),"injections")},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const i=r.injections;if(i)for(let a in i)fl(t,a,i[a],this,r);const u=this._grammarRepository.injections(n);u&&u.forEach(a=>{const o=this.getExternalGrammar(a);if(o){const l=o.injectionSelector;l&&fl(t,l,o,this,o)}})}return t.sort((i,u)=>i.priority-u.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ml(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=al.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===gs.NULL){i=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),f=this.themeProvider.getDefaults(),h=un.set(0,c.languageId,c.tokenType,null,f.fontStyle,f.foregroundId,f.backgroundId),p=this.getRule(this._rootId).getName(null,null);let d;p?d=Vn.createRootAndLookUpScopeName(p,h,this):d=Vn.createRoot("unknown",h),t=new gs(null,this._rootId,-1,-1,!1,null,d,d)}else i=!1,t.reset();e=e+`
|
|
3
|
-
`;const u=this.createOnigString(e),a=u.content.length,o=new GT(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=cl(this,u,i,0,t,o,!0,r);return nl(u),{lineLength:a,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function ml(e,t){return e=lT(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}s(ml,"initGrammar");var Vn=class lt{static{s(this,"_AttributedScopeStack")}constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(const u of n)i=hs.push(i,u.scopeNames),r=new lt(r,i,u.encodedTokenAttributes);return r}static createRoot(t,n){return new lt(null,new hs(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const i=r.getMetadataForScope(t),u=new hs(null,t),a=r.themeProvider.themeMatch(u),o=lt.mergeAttributes(n,i,a);return new lt(null,u,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return lt.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let i=-1,u=0,a=0;return r!==null&&(i=r.fontStyle,u=r.foregroundId,a=r.backgroundId),un.set(t,n.languageId,n.tokenType,null,i,u,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return lt._pushAttributed(this,t,n);const r=t.split(/ /g);let i=this;for(const u of r)i=lt._pushAttributed(i,u,n);return i}static _pushAttributed(t,n,r){const i=r.getMetadataForScope(n),u=t.scopePath.push(n),a=r.themeProvider.themeMatch(u),o=lt.mergeAttributes(t.tokenAttributes,i,a);return new lt(t,u,o)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},gs=class en{static{s(this,"_StateStackImpl")}constructor(t,n,r,i,u,a,o,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=u,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=i}_stackElementBrand=void 0;static NULL=new en(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:en._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Vn.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){en._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,u,a,o){return new en(this,t,n,r,i,u,a,o)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new en(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Vn.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new en(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Vn.fromExtension(r,n.contentNameScopesList))}},YT=class{static{s(this,"BalancedBracketSelectors")}balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):$r(n,Yr).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>$r(n,Yr).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},GT=class{static{s(this,"LineTokens")}constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,i=!1;if(this.balancedBracketSelectors?.matchesAlways&&(i=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const u=e?.getScopeNames()??[];for(const a of this._tokenTypeOverrides)a.matcher(u)&&(r=un.set(r,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(i=this.balancedBracketSelectors.match(u))}if(i&&(r=un.set(r,0,8,i,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,i=this._binaryTokens.length;r<i;r++)n[r]=this._binaryTokens[r];return n}},VT=class{static{s(this,"SyncRegistry")}constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let u=this._rawGrammars.get(e);if(!u)return null;this._grammars.set(e,qT(e,u,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},WT=class{static{s(this,"Registry")}_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new VT(Hr.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Hr.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new YT(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,i,u){const a=new bT(this._syncRegistry,t);for(;a.Q.length>0;)a.Q.map(o=>this._loadSingleGrammar(o.scopeName)),a.processQueue();return this._grammarForScopeName(t,n,r,i,u)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,i=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,i)}_grammarForScopeName(t,n=0,r=null,i=null,u=null){return this._syncRegistry.grammarForScopeName(t,n,r,i,u)}},Es=gs.NULL;const dl=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Wn=class{static{s(this,"Schema")}constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Wn.prototype.normal={},Wn.prototype.property={},Wn.prototype.space=void 0;function pl(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Wn(n,r,t)}s(pl,"merge$1");function Kn(e){return e.toLowerCase()}s(Kn,"normalize$2");class Ie{static{s(this,"Info")}constructor(t,n){this.attribute=n,this.property=t}}Ie.prototype.attribute="",Ie.prototype.booleanish=!1,Ie.prototype.boolean=!1,Ie.prototype.commaOrSpaceSeparated=!1,Ie.prototype.commaSeparated=!1,Ie.prototype.defined=!1,Ie.prototype.mustUseProperty=!1,Ie.prototype.number=!1,Ie.prototype.overloadedBoolean=!1,Ie.prototype.property="",Ie.prototype.spaceSeparated=!1,Ie.prototype.space=void 0;let KT=0;const K=vt(),pe=vt(),As=vt(),H=vt(),ae=vt(),an=vt(),He=vt();function vt(){return 2**++KT}s(vt,"increment");var Ds=Object.freeze({__proto__:null,boolean:K,booleanish:pe,commaOrSpaceSeparated:He,commaSeparated:an,number:H,overloadedBoolean:As,spaceSeparated:ae});const Cs=Object.keys(Ds);class Ts extends Ie{static{s(this,"DefinedInfo")}constructor(t,n,r,i){let u=-1;if(super(t,n),gl(this,"space",i),typeof r=="number")for(;++u<Cs.length;){const a=Cs[u];gl(this,Cs[u],(r&Ds[a])===Ds[a])}}}Ts.prototype.defined=!0;function gl(e,t,n){n&&(e[t]=n)}s(gl,"mark");function on(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const u=new Ts(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(u.mustUseProperty=!0),t[r]=u,n[Kn(r)]=r,n[Kn(u.attribute)]=r}return new Wn(t,n,e.space)}s(on,"create$2");const El=on({properties:{ariaActiveDescendant:null,ariaAtomic:pe,ariaAutoComplete:null,ariaBusy:pe,ariaChecked:pe,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:ae,ariaCurrent:null,ariaDescribedBy:ae,ariaDetails:null,ariaDisabled:pe,ariaDropEffect:ae,ariaErrorMessage:null,ariaExpanded:pe,ariaFlowTo:ae,ariaGrabbed:pe,ariaHasPopup:null,ariaHidden:pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ae,ariaLevel:H,ariaLive:null,ariaModal:pe,ariaMultiLine:pe,ariaMultiSelectable:pe,ariaOrientation:null,ariaOwns:ae,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:pe,ariaReadOnly:pe,ariaRelevant:null,ariaRequired:pe,ariaRoleDescription:ae,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:pe,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Al(e,t){return t in e?e[t]:t}s(Al,"caseSensitiveTransform");function Dl(e,t){return Al(e,t.toLowerCase())}s(Dl,"caseInsensitiveTransform");const QT=on({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:an,acceptCharset:ae,accessKey:ae,action:null,allow:null,allowFullScreen:K,allowPaymentRequest:K,allowUserMedia:K,alt:null,as:null,async:K,autoCapitalize:null,autoComplete:ae,autoFocus:K,autoPlay:K,blocking:ae,capture:null,charSet:null,checked:K,cite:null,className:ae,cols:H,colSpan:null,content:null,contentEditable:pe,controls:K,controlsList:ae,coords:H|an,crossOrigin:null,data:null,dateTime:null,decoding:null,default:K,defer:K,dir:null,dirName:null,disabled:K,download:As,draggable:pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:K,formTarget:null,headers:ae,height:H,hidden:As,high:H,href:null,hrefLang:null,htmlFor:ae,httpEquiv:ae,id:null,imageSizes:null,imageSrcSet:null,inert:K,inputMode:null,integrity:null,is:null,isMap:K,itemId:null,itemProp:ae,itemRef:ae,itemScope:K,itemType:ae,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:K,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:K,muted:K,name:null,nonce:null,noModule:K,noValidate:K,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:K,optimum:H,pattern:null,ping:ae,placeholder:null,playsInline:K,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:K,referrerPolicy:null,rel:ae,required:K,reversed:K,rows:H,rowSpan:H,sandbox:ae,scope:null,scoped:K,seamless:K,selected:K,shadowRootClonable:K,shadowRootDelegatesFocus:K,shadowRootMode:null,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:K,useMap:null,value:pe,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ae,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:K,declare:K,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:K,noHref:K,noShade:K,noWrap:K,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:pe,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:K,disableRemotePlayback:K,prefix:null,property:null,results:H,security:null,unselectable:null},space:"html",transform:Dl}),XT=on({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:He,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:ae,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:K,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:an,g2:an,glyphName:an,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:He,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:H,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ae,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:He,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:He,rev:He,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:He,requiredFeatures:He,requiredFonts:He,requiredFormats:He,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:He,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:He,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:He,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Al}),Cl=on({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Tl=on({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Dl}),yl=on({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),JT=/[A-Z]/g,bl=/-[a-z]/g,ZT=/^data[-\w.:]+$/i;function Gr(e,t){const n=Kn(t);let r=t,i=Ie;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ZT.test(t)){if(t.charAt(4)==="-"){const u=t.slice(5).replace(bl,ty);r="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=t.slice(4);if(!bl.test(u)){let a=u.replace(JT,ey);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Ts}return new i(r,t)}s(Gr,"find");function ey(e){return"-"+e.toLowerCase()}s(ey,"kebab");function ty(e){return e.charAt(1).toUpperCase()}s(ty,"camelcase");const Qn=pl([El,QT,Cl,Tl,yl],"html"),Lt=pl([El,XT,Cl,Tl,yl],"svg"),kl={}.hasOwnProperty;function ys(e,t){const n=t||{};function r(i,...u){let a=r.invalid;const o=r.handlers;if(i&&kl.call(i,e)){const l=String(i[e]);a=kl.call(o,l)?o[l]:r.unknown}if(a)return a.call(this,i,...u)}return s(r,"one"),r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}s(ys,"zwitch");const ny=/["&'<>`]/g,ry=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,iy=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,sy=/[|\\{}()[\]^$+*?.]/g,_l=new WeakMap;function uy(e,t){if(e=e.replace(t.subset?ay(t.subset):ny,r),t.subset||t.escapeOnly)return e;return e.replace(ry,n).replace(iy,r);function n(i,u,a){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,a.charCodeAt(u+2),t)}function r(i,u,a){return t.format(i.charCodeAt(0),a.charCodeAt(u+1),t)}}s(uy,"core");function ay(e){let t=_l.get(e);return t||(t=oy(e),_l.set(e,t)),t}s(ay,"charactersToExpressionCached");function oy(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(sy,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}s(oy,"charactersToExpression");const ly=/[\dA-Fa-f]/;function cy(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!ly.test(String.fromCharCode(t))?r:r+";"}s(cy,"toHexadecimal");const hy=/\d/;function fy(e,t,n){const r="&#"+String(e);return n&&t&&!hy.test(String.fromCharCode(t))?r:r+";"}s(fy,"toDecimal");const my=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],bs={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"},dy=["cent","copy","divide","gt","lt","not","para","times"],Bl={}.hasOwnProperty,ks={};let Vr;for(Vr in bs)Bl.call(bs,Vr)&&(ks[bs[Vr]]=Vr);const py=/[^\dA-Za-z]/;function gy(e,t,n,r){const i=String.fromCharCode(e);if(Bl.call(ks,i)){const u=ks[i],a="&"+u;return n&&my.includes(u)&&!dy.includes(u)&&(!r||t&&t!==61&&py.test(String.fromCharCode(t)))?a:a+";"}return""}s(gy,"toNamed");function Ey(e,t,n){let r=cy(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=gy(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const u=fy(e,t,n.omitOptionalSemicolons);u.length<r.length&&(r=u)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}s(Ey,"formatSmart");function ln(e,t){return uy(e,Object.assign({format:Ey},t))}s(ln,"stringifyEntities");const Ay=/^>|^->|<!--|-->|--!>|<!-$/g,Dy=[">"],Cy=["<",">"];function Ty(e,t,n,r){return r.settings.bogusComments?"<?"+ln(e.value,Object.assign({},r.settings.characterReferences,{subset:Dy}))+">":"<!--"+e.value.replace(Ay,i)+"-->";function i(u){return ln(u,Object.assign({},r.settings.characterReferences,{subset:Cy}))}}s(Ty,"comment$2");function yy(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}s(yy,"doctype$2");function Wr(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}s(Wr,"ccount");function Sl(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,u=!1;for(;!u;){r===-1&&(r=n.length,u=!0);const a=n.slice(i,r).trim();(a||!u)&&t.push(a),i=r+1,r=n.indexOf(",",i)}return t}s(Sl,"parse$3");function wl(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}s(wl,"stringify$4");function Fl(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}s(Fl,"parse$2");function Nl(e){return e.join(" ").trim()}s(Nl,"stringify$3");const by=/[ \t\n\f\r]/g;function Ot(e){return typeof e=="object"?e.type==="text"?xl(e.value):!1:xl(e)}s(Ot,"whitespace");function xl(e){return e.replace(by,"")===""}s(xl,"empty$1");const Ee=vl(1),Il=vl(-1),ky=[];function vl(e){return t;function t(n,r,i){const u=n?n.children:ky;let a=(r||0)+e,o=u[a];if(!i)for(;o&&Ot(o);)a+=e,o=u[a];return o}}s(vl,"siblings");const _y={}.hasOwnProperty;function Ll(e){return t;function t(n,r,i){return _y.call(e,n.tagName)&&e[n.tagName](n,r,i)}}s(Ll,"omission");const _s=Ll({body:Sy,caption:Bs,colgroup:Bs,dd:xy,dt:Ny,head:Bs,html:By,li:Fy,optgroup:Iy,option:vy,p:wy,rp:Ol,rt:Ol,tbody:Oy,td:Rl,tfoot:Ry,th:Rl,thead:Ly,tr:Py});function Bs(e,t,n){const r=Ee(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Ot(r.value.charAt(0)))}s(Bs,"headOrColgroupOrCaption");function By(e,t,n){const r=Ee(n,t);return!r||r.type!=="comment"}s(By,"html$3");function Sy(e,t,n){const r=Ee(n,t);return!r||r.type!=="comment"}s(Sy,"body$1");function wy(e,t,n){const r=Ee(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}s(wy,"p$1");function Fy(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&r.tagName==="li"}s(Fy,"li");function Ny(e,t,n){const r=Ee(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}s(Ny,"dt");function xy(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}s(xy,"dd");function Ol(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}s(Ol,"rubyElement");function Iy(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}s(Iy,"optgroup");function vy(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}s(vy,"option");function Ly(e,t,n){const r=Ee(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}s(Ly,"thead");function Oy(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}s(Oy,"tbody$1");function Ry(e,t,n){return!Ee(n,t)}s(Ry,"tfoot");function Py(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&r.tagName==="tr"}s(Py,"tr");function Rl(e,t,n){const r=Ee(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}s(Rl,"cells");const My=Ll({body:$y,colgroup:qy,head:Hy,html:Uy,tbody:zy});function Uy(e){const t=Ee(e,-1);return!t||t.type!=="comment"}s(Uy,"html$2");function Hy(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}s(Hy,"head");function $y(e){const t=Ee(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Ot(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}s($y,"body");function qy(e,t,n){const r=Il(n,t),i=Ee(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&_s(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}s(qy,"colgroup");function zy(e,t,n){const r=Il(n,t),i=Ee(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&_s(r,n.children.indexOf(r),n)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}s(zy,"tbody");const Kr={name:[[`
|
|
4
|
-
\f\r &/=>`.split(""),`
|
|
5
|
-
\f\r "&'/=>\``.split("")],[`\0
|
|
6
|
-
\f\r "&'/<=>`.split(""),`\0
|
|
7
|
-
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
8
|
-
\f\r &>`.split(""),`\0
|
|
9
|
-
\f\r "&'<=>\``.split("")],[`\0
|
|
10
|
-
\f\r "&'<=>\``.split(""),`\0
|
|
11
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function jy(e,t,n,r){const i=r.schema,u=i.space==="svg"?!1:r.settings.omitOptionalTags;let a=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const o=[];let l;i.space==="html"&&e.tagName==="svg"&&(r.schema=Lt);const c=Yy(r,e.properties),f=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,f&&(a=!1),(c||!u||!My(e,t,n))&&(o.push("<",e.tagName,c?" "+c:""),a&&(i.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(f),!a&&(!u||!_s(e,t,n))&&o.push("</"+e.tagName+">"),o.join("")}s(jy,"element$4");function Yy(e,t){const n=[];let r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const u=Gy(e,i,t[i]);u&&n.push(u)}}for(;++r<n.length;){const u=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&u!=='"'&&u!=="'"&&(n[r]+=" ")}return n.join("")}s(Yy,"serializeAttributes");function Gy(e,t,n){const r=Gr(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,u=e.settings.allowDangerousCharacters?0:1;let a=e.quote,o;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=ln(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Kr.name[i][u]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?wl:Nl)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(o=ln(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Kr.unquoted[i][u]}))),o!==n&&(e.settings.quoteSmart&&Wr(n,a)>Wr(n,e.alternative)&&(a=e.alternative),o=a+ln(n,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?Kr.single:Kr.double)[i][u],attribute:!0}))+a),l+(o&&"="+o))}s(Gy,"serializeAttribute");const Vy=["<","&"];function Pl(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:ln(e.value,Object.assign({},r.settings.characterReferences,{subset:Vy}))}s(Pl,"text$7");function Wy(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Pl(e,t,n,r)}s(Wy,"raw$1");function Ky(e,t,n,r){return r.all(e)}s(Ky,"root$4");const Qy=ys("type",{invalid:Xy,unknown:Jy,handlers:{comment:Ty,doctype:yy,element:jy,raw:Wy,root:Ky,text:Pl}});function Xy(e){throw new Error("Expected node, not `"+e+"`")}s(Xy,"invalid");function Jy(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}s(Jy,"unknown$1");const Zy={},eb={},tb=[];function Ml(e,t){const n=t||Zy,r=n.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:nb,all:rb,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||dl,characterReferences:n.characterReferences||eb,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Lt:Qn,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}s(Ml,"toHtml");function nb(e,t,n){return Qy(e,t,n,this)}s(nb,"one$4");function rb(e){const t=[],n=e&&e.children||tb;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}s(rb,"all$6");function Qr(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[i,u]of Object.entries(t?.colorReplacements||{}))typeof u=="string"?n[i]=u:i===r&&Object.assign(n,u);return n}s(Qr,"resolveColorReplacements");function bt(e,t){return e&&(t?.[e?.toLowerCase()]||e)}s(bt,"applyColorReplacements");function ib(e){return Array.isArray(e)?e:[e]}s(ib,"toArray");async function Ul(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}s(Ul,"normalizeGetter");function Ss(e){return!e||["plaintext","txt","text","plain"].includes(e)}s(Ss,"isPlainLang");function ws(e){return e==="ansi"||Ss(e)}s(ws,"isSpecialLang");function Fs(e){return e==="none"}s(Fs,"isNoneTheme");function Hl(e){return Fs(e)}s(Hl,"isSpecialTheme");function $l(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}s($l,"addClassToHast");function Xr(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let r=0;const i=[];for(let u=0;u<n.length;u+=2){const a=t?n[u]+(n[u+1]||""):n[u];i.push([a,r]),r+=n[u].length,r+=n[u+1]?.length||0}return i}s(Xr,"splitLines$1");function sb(e){const t=Xr(e,!0).map(([i])=>i);function n(i){if(i===e.length)return{line:t.length-1,character:t[t.length-1].length};let u=i,a=0;for(const o of t){if(u<o.length)break;u-=o.length,a++}return{line:a,character:u}}s(n,"indexToPos");function r(i,u){let a=0;for(let o=0;o<i;o++)a+=t[o].length;return a+=u,a}return s(r,"posToIndex"),{lines:t,indexToPos:n,posToIndex:r}}s(sb,"createPositionConverter");function ub(e,t,n){const r=new Set;for(const u of e.matchAll(/:?lang=["']([^"']+)["']/g)){const a=u[1].toLowerCase().trim();a&&r.add(a)}for(const u of e.matchAll(/(?:```|~~~)([\w-]+)/g)){const a=u[1].toLowerCase().trim();a&&r.add(a)}for(const u of e.matchAll(/\\begin\{([\w-]+)\}/g)){const a=u[1].toLowerCase().trim();a&&r.add(a)}for(const u of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const a=u[1].toLowerCase().trim(),o=a.includes("/")?a.split("/").pop():a;o&&r.add(o)}if(!n)return Array.from(r);const i=n.getBundledLanguages();return Array.from(r).filter(u=>u&&i[u])}s(ub,"guessEmbeddedLanguages");const Ns="light-dark()",ab=["color","background-color"];function ob(e,t){let n=0;const r=[];for(const i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}s(ob,"splitToken");function lb(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,i)=>r-i);return n.length?e.map(r=>r.flatMap(i=>{const u=n.filter(a=>i.offset<a&&a<i.offset+i.content.length).map(a=>a-i.offset).sort((a,o)=>a-o);return u.length?ob(i,u):i})):e}s(lb,"splitTokens");function cb(e,t,n,r,i="css-vars"){const u={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(f=>Jr(e.variants[f])),o=new Set(a.flatMap(f=>Object.keys(f))),l={},c=s((f,h)=>{const p=h==="color"?"":h==="background-color"?"-bg":`-${h}`;return n+t[f]+(h==="color"?"":p)},"varKey");return a.forEach((f,h)=>{for(const p of o){const d=f[p]||"inherit";if(h===0&&r&&ab.includes(p))if(r===Ns&&a.length>1){const E=t.findIndex(y=>y==="light"),g=t.findIndex(y=>y==="dark");if(E===-1||g===-1)throw new de('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const D=a[E][p]||"inherit",A=a[g][p]||"inherit";l[p]=`light-dark(${D}, ${A})`,i==="css-vars"&&(l[c(h,p)]=d)}else l[p]=d;else i==="css-vars"&&(l[c(h,p)]=d)}}),u.htmlStyle=l,u}s(cb,"flatTokenVariants");function Jr(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&ke.Italic&&(t["font-style"]="italic"),e.fontStyle&ke.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&ke.Underline&&n.push("underline"),e.fontStyle&ke.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}s(Jr,"getTokenStyleObject");function xs(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}s(xs,"stringifyTokenStyle");const ql=new WeakMap;function Zr(e,t){ql.set(e,t)}s(Zr,"setLastGrammarStateToMap");function Xn(e){return ql.get(e)}s(Xn,"getLastGrammarStateFromMap");class On{static{s(this,"GrammarState")}_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new On(Object.fromEntries(ib(n).map(r=>[r,Es])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,i]=t;this.lang=r,this._stacks={[i]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return hb(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function hb(e){const t=[],n=new Set;function r(i){if(n.has(i))return;n.add(i);const u=i?.nameScopesList?.scopeName;u&&t.push(u),i.parent&&r(i.parent)}return s(r,"pushScope"),r(e),t}s(hb,"getScopes");function fb(e,t){if(!(e instanceof On))throw new de("Invalid grammar state");return e.getInternalStack(t)}s(fb,"getGrammarStack");function mb(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=s(function(a){if(typeof a=="number"){if(a<0||a>n.source.length)throw new de(`Invalid decoration offset: ${a}. Code length: ${n.source.length}`);return{...i.indexToPos(a),offset:a}}else{const o=i.lines[a.line];if(o===void 0)throw new de(`Invalid decoration position ${JSON.stringify(a)}. Lines length: ${i.lines.length}`);let l=a.character;if(l<0&&(l=o.length+l),l<0||l>o.length)throw new de(`Invalid decoration position ${JSON.stringify(a)}. Line ${a.line} length: ${o.length}`);return{...a,character:l,offset:i.posToIndex(a.line,l)}}},"normalizePosition");const i=sb(n.source),u=(n.options.decorations||[]).map(a=>({...a,start:r(a.start),end:r(a.end)}));db(u),e.set(n.meta,{decorations:u,converter:i,source:n.source})}return e.get(n.meta)}return s(t,"getContext"),{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const i=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return lb(n,i)},code(n){if(!this.options.decorations?.length)return;const r=t(this),i=Array.from(n.children).filter(f=>f.type==="element"&&f.tagName==="span");if(i.length!==r.converter.lines.length)throw new de(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function u(f,h,p,d){const E=i[f];let g="",D=-1,A=-1;if(h===0&&(D=0),p===0&&(A=0),p===Number.POSITIVE_INFINITY&&(A=E.children.length),D===-1||A===-1)for(let C=0;C<E.children.length;C++)g+=zl(E.children[C]),D===-1&&g.length===h&&(D=C+1),A===-1&&g.length===p&&(A=C+1);if(D===-1)throw new de(`Failed to find start index for decoration ${JSON.stringify(d.start)}`);if(A===-1)throw new de(`Failed to find end index for decoration ${JSON.stringify(d.end)}`);const y=E.children.slice(D,A);if(!d.alwaysWrap&&y.length===E.children.length)o(E,d,"line");else if(!d.alwaysWrap&&y.length===1&&y[0].type==="element")o(y[0],d,"token");else{const C={type:"element",tagName:"span",properties:{},children:y};o(C,d,"wrapper"),E.children.splice(D,y.length,C)}}s(u,"applyLineSection");function a(f,h){i[f]=o(i[f],h,"line")}s(a,"applyLine");function o(f,h,p){const d=h.properties||{},E=h.transform||(g=>g);return f.tagName=h.tagName||"span",f.properties={...f.properties,...d,class:f.properties.class},h.properties?.class&&$l(f,h.properties.class),f=E(f,p)||f,f}s(o,"applyDecoration");const l=[],c=r.decorations.sort((f,h)=>h.start.offset-f.start.offset||f.end.offset-h.end.offset);for(const f of c){const{start:h,end:p}=f;if(h.line===p.line)u(h.line,h.character,p.character,f);else if(h.line<p.line){u(h.line,h.character,Number.POSITIVE_INFINITY,f);for(let d=h.line+1;d<p.line;d++)l.unshift(()=>a(d,f));u(p.line,0,p.character,f)}}l.forEach(f=>f())}}}s(mb,"transformerDecorations");function db(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new de(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const i=e[r],u=n.start.offset<=i.start.offset&&i.start.offset<n.end.offset,a=n.start.offset<i.end.offset&&i.end.offset<=n.end.offset,o=i.start.offset<=n.start.offset&&n.start.offset<i.end.offset,l=i.start.offset<n.end.offset&&n.end.offset<=i.end.offset;if(u||a||o||l){if(u&&a||o&&l||o&&n.start.offset===n.end.offset||a&&i.start.offset===i.end.offset)continue;throw new de(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(i.start)} intersect.`)}}}}s(db,"verifyIntersections");function zl(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(zl).join(""):""}s(zl,"stringify$2");const pb=[mb()];function ei(e){const t=gb(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...pb]}s(ei,"getTransformers");function gb(e){const t=[],n=[],r=[];for(const i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}s(gb,"sortTransformersByEnforcement");var Rt=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Is={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Eb(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}s(Eb,"findSequence");function jl(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}s(jl,"parseColor");function Ab(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)Is[r]&&t.push({type:"setDecoration",value:Is[r]});else if(r<=29){const i=Is[r-20];i&&(t.push({type:"resetDecoration",value:i}),i==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Rt[r-30]}});else if(r===38){const i=jl(e);i&&t.push({type:"setForegroundColor",value:i})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Rt[r-40]}});else if(r===48){const i=jl(e);i&&t.push({type:"setBackgroundColor",value:i})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Rt[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Rt[r-100+8]}})}return t}s(Ab,"parseSequence");function Db(){let e=null,t=null,n=new Set;return{parse(r){const i=[];let u=0;do{const a=Eb(r,u),o=a.sequence?r.substring(u,a.startPosition):r.substring(u);if(o.length>0&&i.push({value:o,foreground:e,background:t,decorations:new Set(n)}),a.sequence){const l=Ab(a.sequence);for(const c of l)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}u=a.position}while(u<r.length);return i}}}s(Db,"createAnsiSequenceParser");var Cb={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Tb(e=Cb){function t(o){return e[o]}s(t,"namedColor");function n(o){return`#${o.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}s(n,"rgbColor");let r;function i(){if(r)return r;r=[];for(let c=0;c<Rt.length;c++)r.push(t(Rt[c]));let o=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let f=0;f<6;f++)for(let h=0;h<6;h++)r.push(n([o[c],o[f],o[h]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}s(i,"getColorTable");function u(o){return i()[o]}s(u,"tableColor");function a(o){switch(o.type){case"named":return t(o.name);case"rgb":return n(o.rgb);case"table":return u(o.index)}}return s(a,"value"),{value:a}}s(Tb,"createColorPalette");const yb={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function bb(e,t,n){const r=Qr(e,n),i=Xr(t),u=Object.fromEntries(Rt.map(l=>{const c=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`,f=e.colors?.[c];return[l,f||yb[l]]})),a=Tb(u),o=Db();return i.map(l=>o.parse(l[0]).map(c=>{let f,h;c.decorations.has("reverse")?(f=c.background?a.value(c.background):e.bg,h=c.foreground?a.value(c.foreground):e.fg):(f=c.foreground?a.value(c.foreground):e.fg,h=c.background?a.value(c.background):void 0),f=bt(f,r),h=bt(h,r),c.decorations.has("dim")&&(f=kb(f));let p=ke.None;return c.decorations.has("bold")&&(p|=ke.Bold),c.decorations.has("italic")&&(p|=ke.Italic),c.decorations.has("underline")&&(p|=ke.Underline),c.decorations.has("strikethrough")&&(p|=ke.Strikethrough),{content:c.value,offset:l[1],color:f,bgColor:h,fontStyle:p}}))}s(bb,"tokenizeAnsiWithTheme");function kb(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const r=t[1];if(r.length===8){const i=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${i}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const i=r[0],u=r[1],a=r[2],o=r[3],l=Math.round(Number.parseInt(`${o}${o}`,16)/2).toString(16).padStart(2,"0");return`#${i}${i}${u}${u}${a}${a}${l}`}else if(r.length===3){const i=r[0],u=r[1],a=r[2];return`#${i}${i}${u}${u}${a}${a}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}s(kb,"dimColor");function vs(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,i=e.resolveLangAlias(n.lang||"text");if(Ss(i)||Fs(r))return Xr(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:u,colorMap:a}=e.setTheme(r);if(i==="ansi")return bb(u,t,n);const o=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==o.name)throw new de(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(u.name))throw new de(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${u.name}"`)}return Bb(t,o,u,a,n)}s(vs,"codeToTokensBase");function _b(...e){if(e.length===2)return Xn(e[1]);const[t,n,r={}]=e,{lang:i="text",theme:u=t.getLoadedThemes()[0]}=r;if(Ss(i)||Fs(u))throw new de("Plain language does not have grammar state");if(i==="ansi")throw new de("ANSI language does not have grammar state");const{theme:a,colorMap:o}=t.setTheme(u),l=t.getLanguage(i);return new On(Ls(n,l,a,o,r).stateStack,l.name,a.name)}s(_b,"getLastGrammarState");function Bb(e,t,n,r,i){const u=Ls(e,t,n,r,i),a=new On(u.stateStack,t.name,n.name);return Zr(u.tokens,a),u.tokens}s(Bb,"tokenizeWithTheme");function Ls(e,t,n,r,i){const u=Qr(n,i),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:o=500}=i,l=Xr(e);let c=i.grammarState?fb(i.grammarState,n.name)??Es:i.grammarContextCode!=null?Ls(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:Es,f=[];const h=[];for(let p=0,d=l.length;p<d;p++){const[E,g]=l[p];if(E===""){f=[],h.push([]);continue}if(a>0&&E.length>=a){f=[],h.push([{content:E,offset:g,color:"",fontStyle:0}]);continue}let D,A,y;i.includeExplanation&&(D=t.tokenizeLine(E,c,o),A=D.tokens,y=0);const C=t.tokenizeLine2(E,c,o),F=C.tokens.length/2;for(let v=0;v<F;v++){const B=C.tokens[2*v],L=v+1<F?C.tokens[2*v+2]:E.length;if(B===L)continue;const x=C.tokens[2*v+1],w=bt(r[un.getForeground(x)],u),N=un.getFontStyle(x),$={content:E.substring(B,L),offset:g+B,color:w,fontStyle:N};if(i.includeExplanation){const M=[];if(i.includeExplanation!=="scopeName")for(const Y of n.settings){let W;switch(typeof Y.scope){case"string":W=Y.scope.split(/,/).map(Z=>Z.trim());break;case"object":W=Y.scope;break;default:continue}M.push({settings:Y,selectors:W.map(Z=>Z.split(/ /))})}$.explanation=[];let j=0;for(;B+j<L;){const Y=A[y],W=E.substring(Y.startIndex,Y.endIndex);j+=W.length,$.explanation.push({content:W,scopes:i.includeExplanation==="scopeName"?Sb(Y.scopes):wb(M,Y.scopes)}),y+=1}}f.push($)}h.push(f),f=[],c=C.ruleStack}return{tokens:h,stateStack:c}}s(Ls,"_tokenizeWithTheme");function Sb(e){return e.map(t=>({scopeName:t}))}s(Sb,"explainThemeScopesNameOnly");function wb(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const u=t[r];n[r]={scopeName:u,themeMatches:Nb(e,u,t.slice(0,r))}}return n}s(wb,"explainThemeScopesFull");function Yl(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}s(Yl,"matchesOne");function Fb(e,t,n){if(!Yl(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Yl(e[r],n[i])&&(r-=1),i-=1;return r===-1}s(Fb,"matches");function Nb(e,t,n){const r=[];for(const{selectors:i,settings:u}of e)for(const a of i)if(Fb(a,t,n)){r.push(u);break}return r}s(Nb,"explainThemeScope");function Gl(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),i=r.map(l=>{const c=vs(e,t,{...n,theme:l.theme}),f=Xn(c),h=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:f,theme:h}}),u=xb(...i.map(l=>l.tokens)),a=u[0].map((l,c)=>l.map((f,h)=>{const p={content:f.content,variants:{},offset:f.offset};return"includeExplanation"in n&&n.includeExplanation&&(p.explanation=f.explanation),u.forEach((d,E)=>{const{content:g,explanation:D,offset:A,...y}=d[c][h];p.variants[r[E].color]=y}),p})),o=i[0].state?new On(Object.fromEntries(i.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),i[0].state.lang):void 0;return o&&Zr(a,o),a}s(Gl,"codeToTokensWithThemes");function xb(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const i=e.map(l=>l[r]),u=t.map(()=>[]);t.forEach((l,c)=>l.push(u[c]));const a=i.map(()=>0),o=i.map(l=>l[0]);for(;o.every(l=>l);){const l=Math.min(...o.map(c=>c.content.length));for(let c=0;c<n;c++){const f=o[c];f.content.length===l?(u[c].push(f),a[c]+=1,o[c]=i[c][a[c]]):(u[c].push({...f,content:f.content.slice(0,l)}),o[c]={...f,content:f.content.slice(l),offset:f.offset+l})}}}return t}s(xb,"syncThemesTokenization");function ti(e,t,n){let r,i,u,a,o,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:f="--shiki-",colorsRendering:h="css-vars"}=n,p=Object.entries(n.themes).filter(A=>A[1]).map(A=>({color:A[0],theme:A[1]})).sort((A,y)=>A.color===c?-1:y.color===c?1:0);if(p.length===0)throw new de("`themes` option must not be empty");const d=Gl(e,t,n);if(l=Xn(d),c&&Ns!==c&&!p.find(A=>A.color===c))throw new de(`\`themes\` option must contain the defaultColor key \`${c}\``);const E=p.map(A=>e.getTheme(A.theme)),g=p.map(A=>A.color);u=d.map(A=>A.map(y=>cb(y,g,f,c,h))),l&&Zr(u,l);const D=p.map(A=>Qr(A.theme,n));i=Vl(p,E,D,f,c,"fg",h),r=Vl(p,E,D,f,c,"bg",h),a=`shiki-themes ${E.map(A=>A.name).join(" ")}`,o=c?void 0:[i,r].join(";")}else if("theme"in n){const c=Qr(n.theme,n);u=vs(e,t,n);const f=e.getTheme(n.theme);r=bt(f.bg,c),i=bt(f.fg,c),a=f.name,l=Xn(u)}else throw new de("Invalid options, either `theme` or `themes` must be provided");return{tokens:u,fg:i,bg:r,themeName:a,rootStyle:o,grammarState:l}}s(ti,"codeToTokens");function Vl(e,t,n,r,i,u,a){return e.map((o,l)=>{const c=bt(t[l][u],n[l])||"inherit",f=`${r+o.color}${u==="bg"?"-bg":""}:${c}`;if(l===0&&i){if(i===Ns&&e.length>1){const h=e.findIndex(g=>g.color==="light"),p=e.findIndex(g=>g.color==="dark");if(h===-1||p===-1)throw new de('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const d=bt(t[h][u],n[h])||"inherit",E=bt(t[p][u],n[p])||"inherit";return`light-dark(${d}, ${E});${f}`}return c}return a==="css-vars"?f:null}).filter(o=>!!o).join(";")}s(Vl,"mapThemeColors");function ni(e,t,n,r={meta:{},options:n,codeToHast:s((i,u)=>ni(e,i,u),"codeToHast"),codeToTokens:s((i,u)=>ti(e,i,u),"codeToTokens")}){let i=t;for(const E of ei(n))i=E.preprocess?.call(r,i,n)||i;let{tokens:u,fg:a,bg:o,themeName:l,rootStyle:c,grammarState:f}=ti(e,i,n);const{mergeWhitespaces:h=!0,mergeSameStyleTokens:p=!1}=n;h===!0?u=vb(u):h==="never"&&(u=Lb(u)),p&&(u=Ob(u));const d={...r,get source(){return i}};for(const E of ei(n))u=E.tokens?.call(d,u)||u;return Ib(u,{...n,fg:a,bg:o,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},d,f)}s(ni,"codeToHast");function Ib(e,t,n,r=Xn(e)){const i=ei(t),u=[],a={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(const[g,D]of Object.entries(t.meta||{}))g.startsWith("_")||(c[g]=D);let f={type:"element",tagName:"pre",properties:c,children:[],data:t.data},h={type:"element",tagName:"code",properties:{},children:u};const p=[],d={...n,structure:o,addClassToHast:$l,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return f},get code(){return h},get lines(){return p}};if(e.forEach((g,D)=>{D&&(o==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):o==="classic"&&u.push({type:"text",value:`
|
|
12
|
-
`}));let A={type:"element",tagName:"span",properties:{class:"line"},children:[]},y=0;for(const C of g){let F={type:"element",tagName:"span",properties:{...C.htmlAttrs},children:[{type:"text",value:C.content}]};const v=xs(C.htmlStyle||Jr(C));v&&(F.properties.style=v);for(const B of i)F=B?.span?.call(d,F,D+1,y,A,C)||F;o==="inline"?a.children.push(F):o==="classic"&&A.children.push(F),y+=C.content.length}if(o==="classic"){for(const C of i)A=C?.line?.call(d,A,D+1)||A;p.push(A),u.push(A)}else o==="inline"&&p.push(A)}),o==="classic"){for(const g of i)h=g?.code?.call(d,h)||h;f.children.push(h);for(const g of i)f=g?.pre?.call(d,f)||f;a.children.push(f)}else if(o==="inline"){const g=[];let D={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const C of a.children)C.type==="element"&&C.tagName==="br"?(g.push(D),D={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(C.type==="element"||C.type==="text")&&D.children.push(C);g.push(D);let y={type:"element",tagName:"code",properties:{},children:g};for(const C of i)y=C?.code?.call(d,y)||y;a.children=[];for(let C=0;C<y.children.length;C++){C>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});const F=y.children[C];F.type==="element"&&a.children.push(...F.children)}}let E=a;for(const g of i)E=g?.root?.call(d,E)||E;return r&&Zr(E,r),E}s(Ib,"tokensToHast");function vb(e){return e.map(t=>{const n=[];let r="",i;return t.forEach((u,a)=>{const l=!(u.fontStyle&&(u.fontStyle&ke.Underline||u.fontStyle&ke.Strikethrough));l&&u.content.match(/^\s+$/)&&t[a+1]?(i===void 0&&(i=u.offset),r+=u.content):r?(l?n.push({...u,offset:i,content:r+u.content}):n.push({content:r,offset:i},u),i=void 0,r=""):n.push(u)}),n})}s(vb,"mergeWhitespaceTokens");function Lb(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,i,u,a]=r;if(!i&&!a)return n;const o=[{...n,offset:n.offset+i.length,content:u}];return i&&o.unshift({content:i,offset:n.offset}),a&&o.push({content:a,offset:n.offset+i.length+u.length}),o}))}s(Lb,"splitWhitespaceTokens");function Ob(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const i=n[n.length-1],u=xs(i.htmlStyle||Jr(i)),a=xs(r.htmlStyle||Jr(r)),o=i.fontStyle&&(i.fontStyle&ke.Underline||i.fontStyle&ke.Strikethrough),l=r.fontStyle&&(r.fontStyle&ke.Underline||r.fontStyle&ke.Strikethrough);!o&&!l&&u===a?i.content+=r.content:n.push({...r})}return n})}s(Ob,"mergeAdjacentStyledTokens");const Rb=Ml;function Pb(e,t,n){const r={meta:{},options:n,codeToHast:s((u,a)=>ni(e,u,a),"codeToHast"),codeToTokens:s((u,a)=>ti(e,u,a),"codeToTokens")};let i=Rb(ni(e,t,n,r));for(const u of ei(n))i=u.postprocess?.call(r,i,n)||i;return i}s(Pb,"codeToHtml");const Wl={light:"#333333",dark:"#bbbbbb"},Kl={light:"#fffffe",dark:"#1e1e1e"},Ql="__shiki_resolved";function Os(e){if(e?.[Ql])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const o=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;o?.settings?.foreground&&(r=o.settings.foreground),o?.settings?.background&&(n=o.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?Wl.light:Wl.dark),n||(n=t.type==="light"?Kl.light:Kl.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0;const u=new Map;function a(o){if(u.has(o))return u.get(o);i+=1;const l=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?a(o):(u.set(o,l),l)}s(a,"getReplacementColor"),t.settings=t.settings.map(o=>{const l=o.settings?.foreground&&!o.settings.foreground.startsWith("#"),c=o.settings?.background&&!o.settings.background.startsWith("#");if(!l&&!c)return o;const f={...o,settings:{...o.settings}};if(l){const h=a(o.settings.foreground);t.colorReplacements[h]=o.settings.foreground,f.settings.foreground=h}if(c){const h=a(o.settings.background);t.colorReplacements[h]=o.settings.background,f.settings.background=h}return f});for(const o of Object.keys(t.colors||{}))if((o==="editor.foreground"||o==="editor.background"||o.startsWith("terminal.ansi"))&&!t.colors[o]?.startsWith("#")){const l=a(t.colors[o]);t.colorReplacements[l]=t.colors[o],t.colors[o]=l}return Object.defineProperty(t,Ql,{enumerable:!1,writable:!1,value:!0}),t}s(Os,"normalizeTheme");async function Xl(e){return Array.from(new Set((await Promise.all(e.filter(t=>!ws(t)).map(async t=>await Ul(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}s(Xl,"resolveLangs");async function Jl(e){return(await Promise.all(e.map(async n=>Hl(n)?null:Os(await Ul(n))))).filter(n=>!!n)}s(Jl,"resolveThemes");let Mb=3;function Ub(e,t=3){t>Mb||console.trace(`[SHIKI DEPRECATE]: ${e}`)}s(Ub,"warnDeprecated");let cn=class extends Error{static{s(this,"ShikiError")}constructor(t){super(t),this.name="ShikiError"}};function Zl(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new cn(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}s(Zl,"resolveLangAlias");class Hb extends WT{static{s(this,"Registry")}constructor(t,n,r,i={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=i,this._themes.map(u=>this.loadTheme(u)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=Os(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Hr.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=Zl(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(u=>u.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const i=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(i.name=t.name,this._resolvedGrammars.set(t.name,i),t.aliases&&t.aliases.forEach(u=>{this._alias[u]=t.name}),this._loadedLanguagesCache=null,n.size)for(const u of n)this._resolvedGrammars.delete(u.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(u.scopeName),this._syncRegistry?._grammars?.delete(u.scopeName),this.loadLanguage(this._langMap.get(u.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const i of t)this.resolveEmbeddedLanguages(i);const n=Array.from(this._langGraph.entries()),r=n.filter(([i,u])=>!u);if(r.length){const i=n.filter(([u,a])=>a?(a.embeddedLanguages||a.embeddedLangs)?.some(l=>r.map(([c])=>c).includes(l)):!1).filter(u=>!r.includes(u));throw new cn(`Missing languages ${r.map(([u])=>`\`${u}\``).join(", ")}, required by ${i.map(([u])=>`\`${u}\``).join(", ")}`)}for(const[i,u]of n)this._resolver.addLanguage(u);for(const[i,u]of n)this.loadLanguage(u)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}}class $b{static{s(this,"Resolver")}_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:s(r=>t.createScanner(r),"createOnigScanner"),createOnigString:s(r=>t.createString(r),"createOnigString")},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let i=1;i<=n.length;i++){const u=n.slice(0,i).join(".");r=[...r,...this._injections.get(u)||[]]}return r}}let Jn=0;function qb(e){Jn+=1,e.warnings!==!1&&Jn>=10&&Jn%10===0&&console.warn(`[Shiki] ${Jn} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new cn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Os),i=new $b(e.engine,n),u=new Hb(i,r,n,e.langAlias);let a;function o(C){return Zl(C,e.langAlias)}s(o,"resolveLangAlias$1");function l(C){A();const F=u.getGrammar(typeof C=="string"?C:C.name);if(!F)throw new cn(`Language \`${C}\` not found, you may need to load it first`);return F}s(l,"getLanguage");function c(C){if(C==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};A();const F=u.getTheme(C);if(!F)throw new cn(`Theme \`${C}\` not found, you may need to load it first`);return F}s(c,"getTheme");function f(C){A();const F=c(C);a!==C&&(u.setTheme(F),a=C);const v=u.getColorMap();return{theme:F,colorMap:v}}s(f,"setTheme");function h(){return A(),u.getLoadedThemes()}s(h,"getLoadedThemes");function p(){return A(),u.getLoadedLanguages()}s(p,"getLoadedLanguages");function d(...C){A(),u.loadLanguages(C.flat(1))}s(d,"loadLanguageSync");async function E(...C){return d(await Xl(C))}s(E,"loadLanguage");function g(...C){A();for(const F of C.flat(1))u.loadTheme(F)}s(g,"loadThemeSync");async function D(...C){return A(),g(await Jl(C))}s(D,"loadTheme");function A(){if(t)throw new cn("Shiki instance has been disposed")}s(A,"ensureNotDisposed");function y(){t||(t=!0,u.dispose(),Jn-=1)}return s(y,"dispose"),{setTheme:f,getTheme:c,getLanguage:l,getLoadedThemes:h,getLoadedLanguages:p,resolveLangAlias:o,loadLanguage:E,loadLanguageSync:d,loadTheme:D,loadThemeSync:g,dispose:y,[Symbol.dispose]:y}}s(qb,"createShikiInternalSync");async function zb(e){e.engine||Ub("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Jl(e.themes||[]),Xl(e.langs||[]),e.engine]);return qb({...e,themes:t,langs:n,engine:r})}s(zb,"createShikiInternal");async function jb(e){const t=await zb(e);return{getLastGrammarState:s((...n)=>_b(t,...n),"getLastGrammarState"),codeToTokensBase:s((n,r)=>vs(t,n,r),"codeToTokensBase"),codeToTokensWithThemes:s((n,r)=>Gl(t,n,r),"codeToTokensWithThemes"),codeToTokens:s((n,r)=>ti(t,n,r),"codeToTokens"),codeToHast:s((n,r)=>ni(t,n,r),"codeToHast"),codeToHtml:s((n,r)=>Pb(t,n,r),"codeToHtml"),getBundledLanguages:s(()=>({}),"getBundledLanguages"),getBundledThemes:s(()=>({}),"getBundledThemes"),...t,getInternalContext:s(()=>t,"getInternalContext")}}s(jb,"createHighlighterCore");function Yb(e){const t=e.langs,n=e.themes,r=e.engine;async function i(u){function a(h){if(typeof h=="string"){if(h=u.langAlias?.[h]||h,ws(h))return[];const p=t[h];if(!p)throw new de(`Language \`${h}\` is not included in this bundle. You may want to load it from external source.`);return p}return h}s(a,"resolveLang");function o(h){if(Hl(h))return"none";if(typeof h=="string"){const p=n[h];if(!p)throw new de(`Theme \`${h}\` is not included in this bundle. You may want to load it from external source.`);return p}return h}s(o,"resolveTheme");const l=(u.themes??[]).map(h=>o(h)),c=(u.langs??[]).map(h=>a(h)),f=await jb({engine:u.engine??r(),...u,themes:l,langs:c});return{...f,loadLanguage(...h){return f.loadLanguage(...h.map(a))},loadTheme(...h){return f.loadTheme(...h.map(o))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return s(i,"createHighlighter"),i}s(Yb,"createBundledHighlighter");function Gb(e){let t;async function n(r={}){if(t){const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}else{t=e({...r,themes:[],langs:[]});const i=await t;return await Promise.all([i.loadTheme(...r.themes||[]),i.loadLanguage(...r.langs||[])]),i}}return s(n,"getSingletonHighlighter"),n}s(Gb,"makeSingletonHighlighter");function Vb(e,t){const n=Gb(e);async function r(i,u){const a=await n({langs:[u.lang],themes:"theme"in u?[u.theme]:Object.values(u.themes)}),o=await t?.guessEmbeddedLanguages?.(i,u.lang,a);return o&&await a.loadLanguage(...o),a}return s(r,"get"),{getSingletonHighlighter(i){return n(i)},async codeToHtml(i,u){return(await r(i,u)).codeToHtml(i,u)},async codeToHast(i,u){return(await r(i,u)).codeToHast(i,u)},async codeToTokens(i,u){return(await r(i,u)).codeToTokens(i,u)},async codeToTokensBase(i,u){return(await r(i,u)).codeToTokensBase(i,u)},async codeToTokensWithThemes(i,u){return(await r(i,u)).codeToTokensWithThemes(i,u)},async getLastGrammarState(i,u){return(await n({langs:[u.lang],themes:[u.theme]})).getLastGrammarState(i,u)}}}s(Vb,"createSingletonShorthands");const ec=[{id:"abap",name:"ABAP",import:s((()=>import("./abap-Dg923wIy.js")),"import")},{id:"actionscript-3",name:"ActionScript",import:s((()=>import("./actionscript-3-BBttMYlr.js")),"import")},{id:"ada",name:"Ada",import:s((()=>import("./ada-CTi7YQtL.js")),"import")},{id:"angular-html",name:"Angular HTML",import:s((()=>import("./angular-html-rCdPnZ8w.js").then(function(e){return e.f})),"import")},{id:"angular-ts",name:"Angular TypeScript",import:s((()=>import("./angular-ts-DYCYVCHu.js")),"import")},{id:"apache",name:"Apache Conf",import:s((()=>import("./apache-PcO-DBxQ.js")),"import")},{id:"apex",name:"Apex",import:s((()=>import("./apex-CnCu5_gb.js")),"import")},{id:"apl",name:"APL",import:s((()=>import("./apl-B743j01p.js")),"import")},{id:"applescript",name:"AppleScript",import:s((()=>import("./applescript-BWh8DkcF.js")),"import")},{id:"ara",name:"Ara",import:s((()=>import("./ara-C1--7J61.js")),"import")},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:s((()=>import("./asciidoc-CkWYjVYI.js")),"import")},{id:"asm",name:"Assembly",import:s((()=>import("./asm-CTFRnVOM.js")),"import")},{id:"astro",name:"Astro",import:s((()=>import("./astro-DHbdk5O0.js")),"import")},{id:"awk",name:"AWK",import:s((()=>import("./awk-CrWgQKhV.js")),"import")},{id:"ballerina",name:"Ballerina",import:s((()=>import("./ballerina-a0yOSyc5.js")),"import")},{id:"bat",name:"Batch File",aliases:["batch"],import:s((()=>import("./bat-B0cHNp6s.js")),"import")},{id:"beancount",name:"Beancount",import:s((()=>import("./beancount-dPJi_gci.js")),"import")},{id:"berry",name:"Berry",aliases:["be"],import:s((()=>import("./berry-CVKoklHx.js")),"import")},{id:"bibtex",name:"BibTeX",import:s((()=>import("./bibtex-DRcCXNgM.js")),"import")},{id:"bicep",name:"Bicep",import:s((()=>import("./bicep-jWz-hQ8I.js")),"import")},{id:"blade",name:"Blade",import:s((()=>import("./blade-h41ErOi-.js")),"import")},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:s((()=>import("./bsl-C7rNYC9b.js")),"import")},{id:"c",name:"C",import:s((()=>import("./c-BG-tZi7o.js")),"import")},{id:"c3",name:"C3",import:s((()=>import("./c3-2rTjmrCP.js")),"import")},{id:"cadence",name:"Cadence",aliases:["cdc"],import:s((()=>import("./cadence-BuaeHeSu.js")),"import")},{id:"cairo",name:"Cairo",import:s((()=>import("./cairo-BHkUC1B6.js")),"import")},{id:"clarity",name:"Clarity",import:s((()=>import("./clarity-CC_0IFDj.js")),"import")},{id:"clojure",name:"Clojure",aliases:["clj"],import:s((()=>import("./clojure-KnfDkB_V.js")),"import")},{id:"cmake",name:"CMake",import:s((()=>import("./cmake-bh2MLnkv.js")),"import")},{id:"cobol",name:"COBOL",import:s((()=>import("./cobol-WHXSr_Wd.js")),"import")},{id:"codeowners",name:"CODEOWNERS",import:s((()=>import("./codeowners-CtwIM3TN.js")),"import")},{id:"codeql",name:"CodeQL",aliases:["ql"],import:s((()=>import("./codeql-D164juXQ.js")),"import")},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:s((()=>import("./coffee-BWKAfs2s.js")),"import")},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:s((()=>import("./common-lisp-DXc9XcIM.js")),"import")},{id:"coq",name:"Coq",import:s((()=>import("./coq-BCSFDxg0.js")),"import")},{id:"cpp",name:"C++",aliases:["c++"],import:s((()=>import("./cpp-CTmscSNZ.js")),"import")},{id:"crystal",name:"Crystal",import:s((()=>import("./crystal-BFJuErkW.js")),"import")},{id:"csharp",name:"C#",aliases:["c#","cs"],import:s((()=>import("./csharp-BztKY7sB.js")),"import")},{id:"css",name:"CSS",import:s((()=>import("./css-PZBBrkI0.js")),"import")},{id:"csv",name:"CSV",import:s((()=>import("./csv-D5aBhKLr.js")),"import")},{id:"cue",name:"CUE",import:s((()=>import("./cue-WCin6O4e.js")),"import")},{id:"cypher",name:"Cypher",aliases:["cql"],import:s((()=>import("./cypher-DYQk2G82.js")),"import")},{id:"d",name:"D",import:s((()=>import("./d-DVc-yF-l.js")),"import")},{id:"dart",name:"Dart",import:s((()=>import("./dart-YLd5yyRs.js")),"import")},{id:"dax",name:"DAX",import:s((()=>import("./dax-oldcCaJg.js")),"import")},{id:"desktop",name:"Desktop",import:s((()=>import("./desktop-DZfyBMgF.js")),"import")},{id:"diff",name:"Diff",import:s((()=>import("./diff-jW5kmiru.js")),"import")},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:s((()=>import("./docker-DG9neUKd.js")),"import")},{id:"dotenv",name:"dotEnv",import:s((()=>import("./dotenv-Bea-FkXq.js")),"import")},{id:"dream-maker",name:"Dream Maker",import:s((()=>import("./dream-maker-DAHQwpwp.js")),"import")},{id:"edge",name:"Edge",import:s((()=>import("./edge-BvW7BRWT.js")),"import")},{id:"elixir",name:"Elixir",import:s((()=>import("./elixir-C40XQAD9.js")),"import")},{id:"elm",name:"Elm",import:s((()=>import("./elm-DzXNHNQT.js")),"import")},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:s((()=>import("./emacs-lisp-BdGsgvrR.js")),"import")},{id:"erb",name:"ERB",import:s((()=>import("./erb-Dis5VyyW.js")),"import")},{id:"erlang",name:"Erlang",aliases:["erl"],import:s((()=>import("./erlang-Jhp2iHYS.js")),"import")},{id:"fennel",name:"Fennel",import:s((()=>import("./fennel-BH6gVCng.js")),"import")},{id:"fish",name:"Fish",import:s((()=>import("./fish-BxskpYPN.js")),"import")},{id:"fluent",name:"Fluent",aliases:["ftl"],import:s((()=>import("./fluent-Bwo2XpEt.js")),"import")},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:s((()=>import("./fortran-fixed-form-DoFUIhSC.js")),"import")},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:s((()=>import("./fortran-free-form-DB5N_DgY.js")),"import")},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:s((()=>import("./fsharp-DHaf8n3s.js")),"import")},{id:"gdresource",name:"GDResource",import:s((()=>import("./gdresource-D9Lk-biZ.js")),"import")},{id:"gdscript",name:"GDScript",import:s((()=>import("./gdscript-AcTSlgpe.js")),"import")},{id:"gdshader",name:"GDShader",import:s((()=>import("./gdshader-G7X6ysY3.js")),"import")},{id:"genie",name:"Genie",import:s((()=>import("./genie-DSsjfZMX.js")),"import")},{id:"gherkin",name:"Gherkin",import:s((()=>import("./gherkin-Cbsyuvab.js")),"import")},{id:"git-commit",name:"Git Commit Message",import:s((()=>import("./git-commit-CesLaiSz.js")),"import")},{id:"git-rebase",name:"Git Rebase Message",import:s((()=>import("./git-rebase-B9wKr8Mu.js")),"import")},{id:"gleam",name:"Gleam",import:s((()=>import("./gleam-BeBqoPwE.js")),"import")},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:s((()=>import("./glimmer-js-3dwOmeU7.js")),"import")},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:s((()=>import("./glimmer-ts-CGrdEN9y.js")),"import")},{id:"glsl",name:"GLSL",import:s((()=>import("./glsl-CJ5UNUz7.js")),"import")},{id:"gn",name:"GN",import:s((()=>import("./gn-Dxr0sSUf.js")),"import")},{id:"gnuplot",name:"Gnuplot",import:s((()=>import("./gnuplot-CtW3R_Hz.js")),"import")},{id:"go",name:"Go",import:s((()=>import("./go-CPYJReqS.js")),"import")},{id:"graphql",name:"GraphQL",aliases:["gql"],import:s((()=>import("./graphql-BXLvmlOo.js")),"import")},{id:"groovy",name:"Groovy",import:s((()=>import("./groovy-DFxE31Qs.js")),"import")},{id:"hack",name:"Hack",import:s((()=>import("./hack-BVNIISZD.js")),"import")},{id:"haml",name:"Ruby Haml",import:s((()=>import("./haml-CNL2qJ9f.js")),"import")},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:s((()=>import("./handlebars-X5srullM.js")),"import")},{id:"haskell",name:"Haskell",aliases:["hs"],import:s((()=>import("./haskell-CeCR1-Hh.js")),"import")},{id:"haxe",name:"Haxe",import:s((()=>import("./haxe-DVIybFAS.js")),"import")},{id:"hcl",name:"HashiCorp HCL",import:s((()=>import("./hcl-B6OePqme.js")),"import")},{id:"hjson",name:"Hjson",import:s((()=>import("./hjson-D2jn7IRw.js")),"import")},{id:"hlsl",name:"HLSL",import:s((()=>import("./hlsl-MKeth5V9.js")),"import")},{id:"html",name:"HTML",import:s((()=>import("./html-B4bznzA2.js")),"import")},{id:"html-derivative",name:"HTML (Derivative)",import:s((()=>import("./html-derivative-CD1Z7kSG.js")),"import")},{id:"http",name:"HTTP",import:s((()=>import("./http-Bb0P8zvE.js")),"import")},{id:"hurl",name:"Hurl",import:s((()=>import("./hurl-DdMgw5nt.js")),"import")},{id:"hxml",name:"HXML",import:s((()=>import("./hxml-BdTS9Zj7.js")),"import")},{id:"hy",name:"Hy",import:s((()=>import("./hy-BZMqGtQj.js")),"import")},{id:"imba",name:"Imba",import:s((()=>import("./imba-D-Pk5S0X.js")),"import")},{id:"ini",name:"INI",aliases:["properties"],import:s((()=>import("./ini-Dix3pTmg.js")),"import")},{id:"java",name:"Java",import:s((()=>import("./java-BTDmaRNO.js")),"import")},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:s((()=>import("./javascript-WyGyM1wV.js")),"import")},{id:"jinja",name:"Jinja",import:s((()=>import("./jinja-Cibv3n81.js")),"import")},{id:"jison",name:"Jison",import:s((()=>import("./jison-CZOoZOej.js")),"import")},{id:"json",name:"JSON",import:s((()=>import("./json-B8JryHcM.js")),"import")},{id:"json5",name:"JSON5",import:s((()=>import("./json5-Cdatmj9n.js")),"import")},{id:"jsonc",name:"JSON with Comments",import:s((()=>import("./jsonc-CvUCa1o5.js")),"import")},{id:"jsonl",name:"JSON Lines",import:s((()=>import("./jsonl-9I_GBd5L.js")),"import")},{id:"jsonnet",name:"Jsonnet",import:s((()=>import("./jsonnet-XoenQ2oc.js")),"import")},{id:"jssm",name:"JSSM",aliases:["fsl"],import:s((()=>import("./jssm-CWE2S0Z5.js")),"import")},{id:"jsx",name:"JSX",import:s((()=>import("./jsx-8cLv2Six.js")),"import")},{id:"julia",name:"Julia",aliases:["jl"],import:s((()=>import("./julia-DIzTBDVk.js")),"import")},{id:"kdl",name:"KDL",import:s((()=>import("./kdl-CMbyIXjQ.js")),"import")},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:s((()=>import("./kotlin-BQy537ds.js")),"import")},{id:"kusto",name:"Kusto",aliases:["kql"],import:s((()=>import("./kusto-B_y0uMaZ.js")),"import")},{id:"latex",name:"LaTeX",import:s((()=>import("./latex-BXZuhSz0.js")),"import")},{id:"lean",name:"Lean 4",aliases:["lean4"],import:s((()=>import("./lean-7hWDN_w4.js")),"import")},{id:"less",name:"Less",import:s((()=>import("./less-CaoNcwlE.js")),"import")},{id:"liquid",name:"Liquid",import:s((()=>import("./liquid-e5bbsXXe.js")),"import")},{id:"llvm",name:"LLVM IR",import:s((()=>import("./llvm-CiYQeg8E.js")),"import")},{id:"log",name:"Log file",import:s((()=>import("./log-CcaF_xNv.js")),"import")},{id:"logo",name:"Logo",import:s((()=>import("./logo-D9WQLoKQ.js")),"import")},{id:"lua",name:"Lua",import:s((()=>import("./lua-DRivoEBK.js")),"import")},{id:"luau",name:"Luau",import:s((()=>import("./luau-BTSFCcFb.js")),"import")},{id:"make",name:"Makefile",aliases:["makefile"],import:s((()=>import("./make-DXVx14cr.js")),"import")},{id:"markdown",name:"Markdown",aliases:["md"],import:s((()=>import("./markdown-DX-TNHnc.js")),"import")},{id:"marko",name:"Marko",import:s((()=>import("./marko-CFpKsLoh.js")),"import")},{id:"matlab",name:"MATLAB",import:s((()=>import("./matlab-DzreyMvm.js")),"import")},{id:"mdc",name:"MDC",import:s((()=>import("./mdc-BX9nsEef.js")),"import")},{id:"mdx",name:"MDX",import:s((()=>import("./mdx-C2fqO2XY.js")),"import")},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:s((()=>import("./mermaid-Cwy4Up_p.js")),"import")},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:s((()=>import("./mipsasm-yE_Aqo9y.js")),"import")},{id:"mojo",name:"Mojo",import:s((()=>import("./mojo-Bk-6ipf4.js")),"import")},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:s((()=>import("./moonbit-C7bLf9Bh.js")),"import")},{id:"move",name:"Move",import:s((()=>import("./move-BvvU7WAr.js")),"import")},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:s((()=>import("./narrat-DXUZ_ZkW.js")),"import")},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:s((()=>import("./nextflow-MPHPbw14.js")),"import")},{id:"nginx",name:"Nginx",import:s((()=>import("./nginx-DE9vInot.js")),"import")},{id:"nim",name:"Nim",import:s((()=>import("./nim-CvfVE-Jm.js")),"import")},{id:"nix",name:"Nix",import:s((()=>import("./nix-Ckjrpg0r.js")),"import")},{id:"nushell",name:"nushell",aliases:["nu"],import:s((()=>import("./nushell-8dnicoUR.js")),"import")},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:s((()=>import("./objective-c-BoaBTdtz.js")),"import")},{id:"objective-cpp",name:"Objective-C++",import:s((()=>import("./objective-cpp-DstR8hNy.js")),"import")},{id:"ocaml",name:"OCaml",import:s((()=>import("./ocaml-DTbn2Hv7.js")),"import")},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:s((()=>import("./openscad-CXHpNBsb.js")),"import")},{id:"pascal",name:"Pascal",import:s((()=>import("./pascal-Sr-XLSE6.js")),"import")},{id:"perl",name:"Perl",import:s((()=>import("./perl-Dl-vCdjY.js")),"import")},{id:"php",name:"PHP",import:s((()=>import("./php-B5RY5YQV.js")),"import")},{id:"pkl",name:"Pkl",import:s((()=>import("./pkl-CRusufhw.js")),"import")},{id:"plsql",name:"PL/SQL",import:s((()=>import("./plsql-Dbm3tV2N.js")),"import")},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:s((()=>import("./po-LG0lFwH4.js")),"import")},{id:"polar",name:"Polar",import:s((()=>import("./polar-DjOs3GWb.js")),"import")},{id:"postcss",name:"PostCSS",import:s((()=>import("./postcss-GRRkWn2F.js")),"import")},{id:"powerquery",name:"PowerQuery",import:s((()=>import("./powerquery-DHf-dtTS.js")),"import")},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:s((()=>import("./powershell-CubgGmZX.js")),"import")},{id:"prisma",name:"Prisma",import:s((()=>import("./prisma-Dgf8IN_C.js")),"import")},{id:"prolog",name:"Prolog",import:s((()=>import("./prolog-9JcfiY6I.js")),"import")},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:s((()=>import("./proto-dqx_Sj2i.js")),"import")},{id:"pug",name:"Pug",aliases:["jade"],import:s((()=>import("./pug-jKFt5v09.js")),"import")},{id:"puppet",name:"Puppet",import:s((()=>import("./puppet-B4ctDsrh.js")),"import")},{id:"purescript",name:"PureScript",import:s((()=>import("./purescript-B-mlhevv.js")),"import")},{id:"python",name:"Python",aliases:["py"],import:s((()=>import("./python-B6Ihcp-E.js")),"import")},{id:"qml",name:"QML",import:s((()=>import("./qml-CXQr5hi3.js")),"import")},{id:"qmldir",name:"QML Directory",import:s((()=>import("./qmldir-DXd9s5XC.js")),"import")},{id:"qss",name:"Qt Style Sheets",import:s((()=>import("./qss-B7NnhfIi.js")),"import")},{id:"r",name:"R",import:s((()=>import("./r-1ts4xG1r.js")),"import")},{id:"racket",name:"Racket",import:s((()=>import("./racket-CrxT4k8p.js")),"import")},{id:"raku",name:"Raku",aliases:["perl6"],import:s((()=>import("./raku-B9ngR1rt.js")),"import")},{id:"razor",name:"ASP.NET Razor",import:s((()=>import("./razor-xda6wMq7.js")),"import")},{id:"reg",name:"Windows Registry Script",import:s((()=>import("./reg-Cvyu2Gnx.js")),"import")},{id:"regexp",name:"RegExp",aliases:["regex"],import:s((()=>import("./regexp-DK-WlHNu.js")),"import")},{id:"rel",name:"Rel",import:s((()=>import("./rel-CYd0g8C5.js")),"import")},{id:"riscv",name:"RISC-V",import:s((()=>import("./riscv-C5dpdlr7.js")),"import")},{id:"rosmsg",name:"ROS Interface",import:s((()=>import("./rosmsg-ZkSIzPhc.js")),"import")},{id:"rst",name:"reStructuredText",import:s((()=>import("./rst-DBtDFrr6.js")),"import")},{id:"ruby",name:"Ruby",aliases:["rb"],import:s((()=>import("./ruby-B8qtJuKf.js")),"import")},{id:"rust",name:"Rust",aliases:["rs"],import:s((()=>import("./rust-CxuBE0J8.js")),"import")},{id:"sas",name:"SAS",import:s((()=>import("./sas-9Dvcn_Se.js")),"import")},{id:"sass",name:"Sass",import:s((()=>import("./sass-bfEVHPJ8.js")),"import")},{id:"scala",name:"Scala",import:s((()=>import("./scala-Dtw19ca_.js")),"import")},{id:"scheme",name:"Scheme",import:s((()=>import("./scheme-OJppFQF3.js")),"import")},{id:"scss",name:"SCSS",import:s((()=>import("./scss-CFlr0x0u.js")),"import")},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:s((()=>import("./sdbl-Bd9eE8IL.js")),"import")},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:s((()=>import("./shaderlab-CJHdEwFw.js")),"import")},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:s((()=>import("./shellscript-DgJyDXW6.js")),"import")},{id:"shellsession",name:"Shell Session",aliases:["console"],import:s((()=>import("./shellsession-BqFY_Jl7.js")),"import")},{id:"smalltalk",name:"Smalltalk",import:s((()=>import("./smalltalk-B9IHbYt7.js")),"import")},{id:"solidity",name:"Solidity",import:s((()=>import("./solidity-B3CjIuAd.js")),"import")},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:s((()=>import("./soy-BnGnvCkT.js")),"import")},{id:"sparql",name:"SPARQL",import:s((()=>import("./sparql-Ckj_9Rg5.js")),"import")},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:s((()=>import("./splunk-h-bNAnbk.js")),"import")},{id:"sql",name:"SQL",import:s((()=>import("./sql-BbONfI8K.js")),"import")},{id:"ssh-config",name:"SSH Config",import:s((()=>import("./ssh-config-CywOjoXH.js")),"import")},{id:"stata",name:"Stata",import:s((()=>import("./stata-eYSq_k6x.js")),"import")},{id:"stylus",name:"Stylus",aliases:["styl"],import:s((()=>import("./stylus-CIg617SB.js")),"import")},{id:"svelte",name:"Svelte",import:s((()=>import("./svelte-Bq7yX3Ip.js")),"import")},{id:"swift",name:"Swift",import:s((()=>import("./swift-D8uC5CNv.js")),"import")},{id:"system-verilog",name:"SystemVerilog",import:s((()=>import("./system-verilog-Qdm_1g2q.js")),"import")},{id:"systemd",name:"Systemd Units",import:s((()=>import("./systemd-DMp0udv_.js")),"import")},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:s((()=>import("./talonscript-eRuyeYHl.js")),"import")},{id:"tasl",name:"Tasl",import:s((()=>import("./tasl-B9CVvjfG.js")),"import")},{id:"tcl",name:"Tcl",import:s((()=>import("./tcl-Bq9dbVAF.js")),"import")},{id:"templ",name:"Templ",import:s((()=>import("./templ-BA8-YsSp.js")),"import")},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:s((()=>import("./terraform-CAp711iT.js")),"import")},{id:"tex",name:"TeX",import:s((()=>import("./tex-Dpq9weyt.js")),"import")},{id:"toml",name:"TOML",import:s((()=>import("./toml-Ms459DBw.js")),"import")},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:s((()=>import("./ts-tags-D-LANnn2.js")),"import")},{id:"tsv",name:"TSV",import:s((()=>import("./tsv-BFtm7NXx.js")),"import")},{id:"tsx",name:"TSX",import:s((()=>import("./tsx-D6116Ycy.js")),"import")},{id:"turtle",name:"Turtle",import:s((()=>import("./turtle-DpRhbQZY.js")),"import")},{id:"twig",name:"Twig",import:s((()=>import("./twig-bKeTGJCh.js")),"import")},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:s((()=>import("./typescript-BqvgUolh.js")),"import")},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:s((()=>import("./typespec-DhK7u29_.js")),"import")},{id:"typst",name:"Typst",aliases:["typ"],import:s((()=>import("./typst-Dfd71gQj.js")),"import")},{id:"v",name:"V",import:s((()=>import("./v-BH76v7br.js")),"import")},{id:"vala",name:"Vala",import:s((()=>import("./vala-z59IxkFd.js")),"import")},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:s((()=>import("./vb-4AxSLKIU.js")),"import")},{id:"verilog",name:"Verilog",import:s((()=>import("./verilog-LfQUkHDc.js")),"import")},{id:"vhdl",name:"VHDL",import:s((()=>import("./vhdl-DJCsFYgn.js")),"import")},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:s((()=>import("./viml-pbKHW3Ia.js")),"import")},{id:"vue",name:"Vue",import:s((()=>import("./vue-FQ0hgXO-.js")),"import")},{id:"vue-html",name:"Vue HTML",import:s((()=>import("./vue-html-DH1-x0xc.js")),"import")},{id:"vue-vine",name:"Vue Vine",import:s((()=>import("./vue-vine-DeUyrIQS.js")),"import")},{id:"vyper",name:"Vyper",aliases:["vy"],import:s((()=>import("./vyper-DpazWNpx.js")),"import")},{id:"wasm",name:"WebAssembly",import:s((()=>import("./wasm-CFi-k9--.js")),"import")},{id:"wenyan",name:"Wenyan",aliases:["\u6587\u8A00"],import:s((()=>import("./wenyan-DoPRjnAP.js")),"import")},{id:"wgsl",name:"WGSL",import:s((()=>import("./wgsl-CxjTZs-b.js")),"import")},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:s((()=>import("./wikitext-Bx2qct8O.js")),"import")},{id:"wit",name:"WebAssembly Interface Types",import:s((()=>import("./wit-DDW3hD69.js")),"import")},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:s((()=>import("./wolfram-pu21K997.js")),"import")},{id:"xml",name:"XML",import:s((()=>import("./xml-BhAxjPaW.js")),"import")},{id:"xsl",name:"XSL",import:s((()=>import("./xsl-6n2rlM5j.js")),"import")},{id:"yaml",name:"YAML",aliases:["yml"],import:s((()=>import("./yaml-Bopit2L3.js")),"import")},{id:"zenscript",name:"ZenScript",import:s((()=>import("./zenscript-BIAKq-aR.js")),"import")},{id:"zig",name:"Zig",import:s((()=>import("./zig-bSFrHQ7n.js")),"import")}],Wb=Object.fromEntries(ec.map(e=>[e.id,e.import])),Kb=Object.fromEntries(ec.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),tc={...Wb,...Kb},Qb=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:s((()=>import("./andromeeda-BK6gTiwT.js")),"import")},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:s((()=>import("./aurora-x-C0VKFdlO.js")),"import")},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:s((()=>import("./ayu-dark-De7IQEfS.js")),"import")},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xE9",type:"dark",import:s((()=>import("./catppuccin-frappe-D3lHSMns.js")),"import")},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:s((()=>import("./catppuccin-latte-DoBaWTGn.js")),"import")},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:s((()=>import("./catppuccin-macchiato-BkAuvdZC.js")),"import")},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:s((()=>import("./catppuccin-mocha-D9fcC0iT.js")),"import")},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:s((()=>import("./dark-plus-DLU5INA3.js")),"import")},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:s((()=>import("./dracula-XcYHBZy6.js")),"import")},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:s((()=>import("./dracula-soft-BPeX9gxW.js")),"import")},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:s((()=>import("./everforest-dark-WOub3wle.js")),"import")},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:s((()=>import("./everforest-light-DCUg8VH8.js")),"import")},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:s((()=>import("./github-dark-BQV5ugrc.js")),"import")},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:s((()=>import("./github-dark-default-DLWDM7FH.js")),"import")},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:s((()=>import("./github-dark-dimmed-D1FmiR_p.js")),"import")},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:s((()=>import("./github-dark-high-contrast-BilLoi0o.js")),"import")},{id:"github-light",displayName:"GitHub Light",type:"light",import:s((()=>import("./github-light-Rcb2q3L5.js")),"import")},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:s((()=>import("./github-light-default-CQ75esMw.js")),"import")},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:s((()=>import("./github-light-high-contrast-CRF1wyLy.js")),"import")},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:s((()=>import("./gruvbox-dark-hard-C37G1gbc.js")),"import")},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:s((()=>import("./gruvbox-dark-medium-C3G9m3TV.js")),"import")},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:s((()=>import("./gruvbox-dark-soft-eZmcmZ9I.js")),"import")},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:s((()=>import("./gruvbox-light-hard-BYj-vz_3.js")),"import")},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:s((()=>import("./gruvbox-light-medium-BdQlDiiF.js")),"import")},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:s((()=>import("./gruvbox-light-soft-BGNwjiRh.js")),"import")},{id:"houston",displayName:"Houston",type:"dark",import:s((()=>import("./houston-RHIKkNfR.js")),"import")},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:s((()=>import("./kanagawa-dragon-BOvIHJVT.js")),"import")},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:s((()=>import("./kanagawa-lotus-Bwcd7Bvx.js")),"import")},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:s((()=>import("./kanagawa-wave-0SAlpf0s.js")),"import")},{id:"laserwave",displayName:"LaserWave",type:"dark",import:s((()=>import("./laserwave-si7wuSrt.js")),"import")},{id:"light-plus",displayName:"Light Plus",type:"light",import:s((()=>import("./light-plus-g_Fi9vkG.js")),"import")},{id:"material-theme",displayName:"Material Theme",type:"dark",import:s((()=>import("./material-theme-CIJ3cGaW.js")),"import")},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:s((()=>import("./material-theme-darker-BWg3m1GB.js")),"import")},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:s((()=>import("./material-theme-lighter-DR8HWMN7.js")),"import")},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:s((()=>import("./material-theme-ocean-CZf9pk28.js")),"import")},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:s((()=>import("./material-theme-palenight-BF01YeZy.js")),"import")},{id:"min-dark",displayName:"Min Dark",type:"dark",import:s((()=>import("./min-dark-DhfaepVE.js")),"import")},{id:"min-light",displayName:"Min Light",type:"light",import:s((()=>import("./min-light-6xx0uMgm.js")),"import")},{id:"monokai",displayName:"Monokai",type:"dark",import:s((()=>import("./monokai-BodnsaDQ.js")),"import")},{id:"night-owl",displayName:"Night Owl",type:"dark",import:s((()=>import("./night-owl-EdP2Hztp.js")),"import")},{id:"nord",displayName:"Nord",type:"dark",import:s((()=>import("./nord-BAu0wM6c.js")),"import")},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:s((()=>import("./one-dark-pro-utPxbBbJ.js")),"import")},{id:"one-light",displayName:"One Light",type:"light",import:s((()=>import("./one-light-s-s--efq.js")),"import")},{id:"plastic",displayName:"Plastic",type:"dark",import:s((()=>import("./plastic-CXnNNlFZ.js")),"import")},{id:"poimandres",displayName:"Poimandres",type:"dark",import:s((()=>import("./poimandres-BrOVMvuE.js")),"import")},{id:"red",displayName:"Red",type:"dark",import:s((()=>import("./red-DR6ZwibK.js")),"import")},{id:"rose-pine",displayName:"Ros\xE9 Pine",type:"dark",import:s((()=>import("./rose-pine-Cd1NG3HO.js")),"import")},{id:"rose-pine-dawn",displayName:"Ros\xE9 Pine Dawn",type:"light",import:s((()=>import("./rose-pine-dawn-eauBvPfk.js")),"import")},{id:"rose-pine-moon",displayName:"Ros\xE9 Pine Moon",type:"dark",import:s((()=>import("./rose-pine-moon-B3tSb9zr.js")),"import")},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:s((()=>import("./slack-dark-CWRQmTmo.js")),"import")},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:s((()=>import("./slack-ochin-DO_ok7XK.js")),"import")},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:s((()=>import("./snazzy-light-B5llO_gK.js")),"import")},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:s((()=>import("./solarized-dark-G9yBjKj_.js")),"import")},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:s((()=>import("./solarized-light-DeSzljQz.js")),"import")},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:s((()=>import("./synthwave-84-DRVv-_m_.js")),"import")},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:s((()=>import("./tokyo-night-BvwC8l2v.js")),"import")},{id:"vesper",displayName:"Vesper",type:"dark",import:s((()=>import("./vesper--t9w6MWz.js")),"import")},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:s((()=>import("./vitesse-black-B_BYPdvp.js")),"import")},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:s((()=>import("./vitesse-dark-DOSOf2Sz.js")),"import")},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:s((()=>import("./vitesse-light-gUX51GpB.js")),"import")}],Xb=Object.fromEntries(Qb.map(e=>[e.id,e.import]));class Rs extends Error{static{s(this,"ShikiError")}constructor(t){super(t),this.name="ShikiError"}}function Jb(){return 2147483648}s(Jb,"getHeapMax");function Zb(){return typeof performance<"u"?performance.now():Date.now()}s(Zb,"_emscripten_get_now");const ek=s((e,t)=>e+(t-e%t)%t,"alignUp");async function tk(e){let t,n;const r={};function i(d){n=d,r.HEAPU8=new Uint8Array(d),r.HEAPU32=new Uint32Array(d)}s(i,"updateGlobalBufferAndViews");function u(d,E,g){r.HEAPU8.copyWithin(d,E,E+g)}s(u,"_emscripten_memcpy_big");function a(d){try{return t.grow(d-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}s(a,"emscripten_realloc_buffer");function o(d){const E=r.HEAPU8.length;d=d>>>0;const g=Jb();if(d>g)return!1;for(let D=1;D<=4;D*=2){let A=E*(1+.2/D);A=Math.min(A,d+100663296);const y=Math.min(g,ek(Math.max(d,A),65536));if(a(y))return!0}return!1}s(o,"_emscripten_resize_heap");const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function c(d,E,g=1024){const D=E+g;let A=E;for(;d[A]&&!(A>=D);)++A;if(A-E>16&&d.buffer&&l)return l.decode(d.subarray(E,A));let y="";for(;E<A;){let C=d[E++];if(!(C&128)){y+=String.fromCharCode(C);continue}const F=d[E++]&63;if((C&224)===192){y+=String.fromCharCode((C&31)<<6|F);continue}const v=d[E++]&63;if((C&240)===224?C=(C&15)<<12|F<<6|v:C=(C&7)<<18|F<<12|v<<6|d[E++]&63,C<65536)y+=String.fromCharCode(C);else{const B=C-65536;y+=String.fromCharCode(55296|B>>10,56320|B&1023)}}return y}s(c,"UTF8ArrayToString");function f(d,E){return d?c(r.HEAPU8,d,E):""}s(f,"UTF8ToString");const h={emscripten_get_now:Zb,emscripten_memcpy_big:u,emscripten_resize_heap:o,fd_write:s(()=>0,"fd_write")};async function p(){const E=await e({env:h,wasi_snapshot_preview1:h});t=E.memory,i(t.buffer),Object.assign(r,E),r.UTF8ToString=f}return s(p,"createWasm"),await p(),r}s(tk,"main$b");var nk=Object.defineProperty,rk=s((e,t,n)=>t in e?nk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,"__defNormalProp"),Ae=s((e,t,n)=>rk(e,typeof t!="symbol"?t+"":t,n),"__publicField");let De=null;function ik(e){throw new Rs(e.UTF8ToString(e.getLastOnigError()))}s(ik,"throwLastOnigError");class ss{static{s(this,"UtfString")}constructor(t){Ae(this,"utf16Length"),Ae(this,"utf8Length"),Ae(this,"utf16Value"),Ae(this,"utf8Value"),Ae(this,"utf16OffsetToUtf8"),Ae(this,"utf8OffsetToUtf16");const n=t.length,r=ss._utf8ByteLength(t),i=r!==n,u=i?new Uint32Array(n+1):null;i&&(u[n]=r);const a=i?new Uint32Array(r+1):null;i&&(a[r]=n);const o=new Uint8Array(r);let l=0;for(let c=0;c<n;c++){const f=t.charCodeAt(c);let h=f,p=!1;if(f>=55296&&f<=56319&&c+1<n){const d=t.charCodeAt(c+1);d>=56320&&d<=57343&&(h=(f-55296<<10)+65536|d-56320,p=!0)}i&&(u[c]=l,p&&(u[c+1]=l),h<=127?a[l+0]=c:h<=2047?(a[l+0]=c,a[l+1]=c):h<=65535?(a[l+0]=c,a[l+1]=c,a[l+2]=c):(a[l+0]=c,a[l+1]=c,a[l+2]=c,a[l+3]=c)),h<=127?o[l++]=h:h<=2047?(o[l++]=192|(h&1984)>>>6,o[l++]=128|(h&63)>>>0):h<=65535?(o[l++]=224|(h&61440)>>>12,o[l++]=128|(h&4032)>>>6,o[l++]=128|(h&63)>>>0):(o[l++]=240|(h&1835008)>>>18,o[l++]=128|(h&258048)>>>12,o[l++]=128|(h&4032)>>>6,o[l++]=128|(h&63)>>>0),p&&c++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=o,this.utf16OffsetToUtf8=u,this.utf8OffsetToUtf16=a}static _utf8ByteLength(t){let n=0;for(let r=0,i=t.length;r<i;r++){const u=t.charCodeAt(r);let a=u,o=!1;if(u>=55296&&u<=56319&&r+1<i){const l=t.charCodeAt(r+1);l>=56320&&l<=57343&&(a=(u-55296<<10)+65536|l-56320,o=!0)}a<=127?n+=1:a<=2047?n+=2:a<=65535?n+=3:n+=4,o&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const ri=class ct{static{s(this,"_OnigString2")}constructor(t){if(Ae(this,"id",++ct.LAST_ID),Ae(this,"_onigBinding"),Ae(this,"content"),Ae(this,"utf16Length"),Ae(this,"utf8Length"),Ae(this,"utf16OffsetToUtf8"),Ae(this,"utf8OffsetToUtf16"),Ae(this,"ptr"),!De)throw new Rs("Must invoke loadWasm first.");this._onigBinding=De,this.content=t;const n=new ss(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!ct._sharedPtrInUse?(ct._sharedPtr||(ct._sharedPtr=De.omalloc(1e4)),ct._sharedPtrInUse=!0,De.HEAPU8.set(n.utf8Value,ct._sharedPtr),this.ptr=ct._sharedPtr):this.ptr=n.createString(De)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===ct._sharedPtr?ct._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Ae(ri,"LAST_ID",0),Ae(ri,"_sharedPtr",0),Ae(ri,"_sharedPtrInUse",!1);let nc=ri;class sk{static{s(this,"OnigScanner")}constructor(t){if(Ae(this,"_onigBinding"),Ae(this,"_ptr"),!De)throw new Rs("Must invoke loadWasm first.");const n=[],r=[];for(let o=0,l=t.length;o<l;o++){const c=new ss(t[o]);n[o]=c.createString(De),r[o]=c.utf8Length}const i=De.omalloc(4*t.length);De.HEAPU32.set(n,i/4);const u=De.omalloc(4*t.length);De.HEAPU32.set(r,u/4);const a=De.createOnigScanner(i,u,t.length);for(let o=0,l=t.length;o<l;o++)De.ofree(n[o]);De.ofree(u),De.ofree(i),a===0&&ik(De),this._onigBinding=De,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let i=0;if(typeof r=="number"&&(i=r),typeof t=="string"){t=new nc(t);const u=this._findNextMatchSync(t,n,!1,i);return t.dispose(),u}return this._findNextMatchSync(t,n,!1,i)}_findNextMatchSync(t,n,r,i){const u=this._onigBinding,a=u.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),i);if(a===0)return null;const o=u.HEAPU32;let l=a/4;const c=o[l++],f=o[l++],h=[];for(let p=0;p<f;p++){const d=t.convertUtf8OffsetToUtf16(o[l++]),E=t.convertUtf8OffsetToUtf16(o[l++]);h[p]={start:d,end:E,length:E-d}}return{index:c,captureIndices:h}}}function uk(e){return typeof e.instantiator=="function"}s(uk,"isInstantiatorOptionsObject");function ak(e){return typeof e.default=="function"}s(ak,"isInstantiatorModule");function ok(e){return typeof e.data<"u"}s(ok,"isDataOptionsObject");function lk(e){return typeof Response<"u"&&e instanceof Response}s(lk,"isResponse");function ck(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}s(ck,"isArrayBuffer");let ii;function hk(e){if(ii)return ii;async function t(){De=await tk(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),uk(r)?r=await r.instantiator(n):ak(r)?r=await r.default(n):(ok(r)&&(r=r.data),lk(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await fk(r)(n):r=await mk(r)(n):ck(r)?r=await Ps(r)(n):r instanceof WebAssembly.Module?r=await Ps(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Ps(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return s(t,"_load"),ii=t(),ii}s(hk,"loadWasm");function Ps(e){return t=>WebAssembly.instantiate(e,t)}s(Ps,"_makeArrayBufferLoader");function fk(e){return t=>WebAssembly.instantiateStreaming(e,t)}s(fk,"_makeResponseStreamingLoader");function mk(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}s(mk,"_makeResponseNonStreamingLoader");async function dk(e){return e&&await hk(e),{createScanner(t){return new sk(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new nc(t)}}}s(dk,"createOnigurumaEngine");const pk=Yb({langs:tc,themes:Xb,engine:s(()=>dk(import("./wasm-CiQ5tcoN.js")),"engine")}),{getSingletonHighlighter:gk}=Vb(pk,{guessEmbeddedLanguages:ub}),mt=s((function(e){if(e==null)return Ck;if(typeof e=="function")return si(e);if(typeof e=="object")return Array.isArray(e)?Ek(e):Ak(e);if(typeof e=="string")return Dk(e);throw new Error("Expected function, string, or object as test")}),"convert");function Ek(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=mt(e[n]);return si(r);function r(...i){let u=-1;for(;++u<t.length;)if(t[u].apply(this,i))return!0;return!1}}s(Ek,"anyFactory$1");function Ak(e){const t=e;return si(n);function n(r){const i=r;let u;for(u in e)if(i[u]!==t[u])return!1;return!0}}s(Ak,"propertiesFactory");function Dk(e){return si(t);function t(n){return n&&n.type===e}}s(Dk,"typeFactory");function si(e){return t;function t(n,r,i){return!!(Tk(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}s(si,"castFactory$1");function Ck(){return!0}s(Ck,"ok$1");function Tk(e){return e!==null&&typeof e=="object"&&"type"in e}s(Tk,"looksLikeANode");function jL(e){return e}s(jL,"color");const rc=[],qe=!0,ve=!1,ui="skip";function Ms(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const u=mt(i),a=r?-1:1;o(e,void 0,[])();function o(l,c,f){const h=l&&typeof l=="object"?l:{};if(typeof h.type=="string"){const d=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=rc,E,g,D;if((!t||u(l,c,f[f.length-1]||void 0))&&(d=yk(n(l,f)),d[0]===ve))return d;if("children"in l&&l.children){const A=l;if(A.children&&d[0]!==ui)for(g=(r?A.children.length:-1)+a,D=f.concat(A);g>-1&&g<A.children.length;){const y=A.children[g];if(E=o(y,g,D)(),E[0]===ve)return E;g=typeof E[1]=="number"?E[1]:g+a}}return d}}s(o,"factory")}s(Ms,"visitParents");function yk(e){return Array.isArray(e)?e:typeof e=="number"?[qe,e]:e==null?rc:[e]}s(yk,"toResult");function se(e,t,n,r){let i,u,a;typeof t=="function"&&typeof n!="function"?(u=void 0,a=t,i=n):(u=t,a=n,i=r),Ms(e,u,o,i);function o(l,c){const f=c[c.length-1],h=f?f.children.indexOf(l):void 0;return a(l,h,f)}s(o,"overload")}s(se,"visit$1");function ic(e){return"children"in e?sc(e):"value"in e?e.value:""}s(ic,"toString$2");function bk(e){return e.type==="text"?e.value:"children"in e?sc(e):""}s(bk,"one$3");function sc(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=bk(e.children[t]);return n.join("")}s(sc,"all$5");const kk={"tailing-curly-colon":s((e,t)=>{const n=ic(t),r=n.match(/(.+)\{:([\w-]+)\}$/);if(r)return{type:"inline",code:r[1]??n,lang:r.at(2)}},"tailing-curly-colon")},uc="language-",_k=s((e,t)=>{const n=t.children[0];if(!n||n.type!=="element"||n.tagName!=="code"||!n.properties)return;const r=n.properties.className,i=Array.isArray(r)?r.find(u=>typeof u=="string"&&u.startsWith(uc)):void 0;return{type:"pre",lang:typeof i=="string"?i.slice(uc.length):void 0,code:ic(n),meta:n.data?.meta??n.properties.metastring?.toString()??""}},"PreHandler"),Bk="language-";function Sk(e,t){const{addLanguageClass:n=!1,parseMetaString:r,cache:i,defaultLanguage:u,fallbackLanguage:a,onError:o,stripEndNewline:l=!0,inline:c=!1,lazy:f=!1,...h}=t;function p(d,E,g="",D={}){const A=`${d}:${g}:${E}`,y=i?.get(A);if(y)return y;const C={...h,lang:d,meta:{...h.meta,...D,__raw:g}};n&&(C.transformers=[...C.transformers??[],{name:"rehype-shiki:code-language-class",code(F){return this.addClassToHast(F,`${Bk}${d}`),F}}]),l&&E.endsWith(`
|
|
13
|
-
`)&&(E=E.slice(0,-1));try{const F=e.codeToHast(E,C);return i?.set(A,F),F}catch(F){if(o)o(F);else throw F}}return s(p,"highlight"),d=>{const E=[];if(se(d,"element",(g,D,A)=>{let y;if(!A||D==null)return;if(g.tagName==="pre")y=_k;else if(g.tagName==="code"&&c)y=kk[c];else return;const C=y(d,g);if(!C)return;let F,v=!1;if(C.lang?e.getLoadedLanguages().includes(C.lang)||ws(C.lang)?F=C.lang:f?(v=!0,F=C.lang):a&&(F=a):F=u,!F)return;const B=C.meta?r?.(C.meta,g,d):void 0,L=s(x=>{const w=p(x,C.code,C.meta,B??{});if(w){if(C.type==="inline"){const N=w.children[0];N.type==="element"&&N.tagName==="pre"&&(N.tagName="span")}A.children[D]=w}},"processNode");if(v)try{E.push(e.loadLanguage(F).then(()=>L(F)).catch(x=>{if(a)L(a);else if(o)o(x);else throw x}))}catch(x){if(a)return L(a);if(o)o(x);else throw x}else L(F);return"skip"}),E.length>0){async function g(){await Promise.all(E)}return s(g,"run"),g()}}}s(Sk,"rehypeShikiFromHighlighter");const wk=s(function(e={}){const t=("themes"in e?Object.values(e.themes):[e.theme]).filter(Boolean),n=e.langs||Object.keys(tc),r=e.langAlias||{};let i;return async u=>(i||(i=gk({themes:t,langs:n,langAlias:r}).then(o=>Sk.call(this,o,e))),(await i)(u))},"rehypeShiki"),Us=s((function(e,t,n){const r=mt(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(r(e.children[t],t,e))return e.children[t]}),"findAfter"),Hs=s((function(e,t,n,r,i){const u=Je(t);return ac(e)?u.call(i,e,n,r):!1}),"isElement"),Je=s((function(e){if(e==null)return xk;if(typeof e=="string")return Nk(e);if(typeof e=="object")return Fk(e);if(typeof e=="function")return $s(e);throw new Error("Expected function, string, or array as `test`")}),"convertElement");function Fk(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Je(e[n]);return $s(r);function r(...i){let u=-1;for(;++u<t.length;)if(t[u].apply(this,i))return!0;return!1}}s(Fk,"anyFactory");function Nk(e){return $s(t);function t(n){return n.tagName===e}}s(Nk,"tagNameFactory");function $s(e){return t;function t(n,r,i){return!!(ac(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}s($s,"castFactory");function xk(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}s(xk,"element$3");function ac(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}s(ac,"looksLikeAnElement");const oc=/\n/g,lc=/[\t ]+/g,qs=Je("br"),cc=Je(Mk),Ik=Je("p"),hc=Je("tr"),vk=Je(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Pk,Uk]),fc=Je(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function mc(e,t){const n={},r="children"in e?e.children:[],i=fc(e),u=gc(e,{whitespace:n.whitespace||"normal"}),a=[];(e.type==="text"||e.type==="comment")&&a.push(...pc(e,{breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)a.push(...dc(r[o],e,{whitespace:u,breakBefore:o?void 0:i,breakAfter:o<r.length-1?qs(r[o+1]):i}));const l=[];let c;for(o=-1;++o<a.length;){const f=a[o];typeof f=="number"?c!==void 0&&f>c&&(c=f):f&&(c!==void 0&&c>-1&&l.push(`
|
|
14
|
-
`.repeat(c)||" "),c=-1,l.push(f))}return l.join("")}s(mc,"toText");function dc(e,t,n){return e.type==="element"?Lk(e,t,n):e.type==="text"?n.whitespace==="normal"?pc(e,n):Ok(e):[]}s(dc,"renderedTextCollection");function Lk(e,t,n){const r=gc(e,n),i=e.children||[];let u=-1,a=[];if(vk(e))return a;let o,l;for(qs(e)||hc(e)&&Us(t,e,hc)?l=`
|
|
15
|
-
`:Ik(e)?(o=2,l=2):fc(e)&&(o=1,l=1);++u<i.length;)a=a.concat(dc(i[u],e,{whitespace:r,breakBefore:u?void 0:o,breakAfter:u<i.length-1?qs(i[u+1]):l}));return cc(e)&&Us(t,e,cc)&&a.push(" "),o&&a.unshift(o),l&&a.push(l),a}s(Lk,"collectElement");function pc(e,t){const n=String(e.value),r=[],i=[];let u=0;for(;u<=n.length;){oc.lastIndex=u;const l=oc.exec(n),c=l&&"index"in l?l.index:n.length;r.push(Rk(n.slice(u,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),u===0?t.breakBefore:!0,c===n.length?t.breakAfter:!0)),u=c+1}let a=-1,o;for(;++a<r.length;)r[a].charCodeAt(r[a].length-1)===8203||a<r.length-1&&r[a+1].charCodeAt(0)===8203?(i.push(r[a]),o=void 0):r[a]?(typeof o=="number"&&i.push(o),i.push(r[a]),o=0):(a===0||a===r.length-1)&&i.push(0);return i}s(pc,"collectText");function Ok(e){return[String(e.value)]}s(Ok,"collectPreText");function Rk(e,t,n){const r=[];let i=0,u;for(;i<e.length;){lc.lastIndex=i;const a=lc.exec(e);u=a?a.index:e.length,!i&&!u&&a&&!t&&r.push(""),i!==u&&r.push(e.slice(i,u)),i=a?u+a[0].length:u}return i!==u&&!n&&r.push(""),r.join(" ")}s(Rk,"trimAndCollapseSpacesAndTabs");function gc(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}s(gc,"inferWhitespace");function Pk(e){return!!(e.properties||{}).hidden}s(Pk,"hidden");function Mk(e){return e.tagName==="td"||e.tagName==="th"}s(Mk,"isCell");function Uk(e){return e.tagName==="dialog"&&!(e.properties||{}).open}s(Uk,"closedDialog");const zs=Je(function(e){return e.tagName==="audio"||e.tagName==="canvas"||e.tagName==="embed"||e.tagName==="iframe"||e.tagName==="img"||e.tagName==="math"||e.tagName==="object"||e.tagName==="picture"||e.tagName==="svg"||e.tagName==="video"}),Hk=["address","article","aside","blockquote","body","br","caption","center","col","colgroup","dd","dialog","dir","div","dl","dt","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","legend","li","li","listing","main","menu","nav","ol","optgroup","option","p","plaintext","pre","section","summary","table","tbody","td","td","tfoot","th","th","thead","tr","ul","wbr","xmp"],$k=["button","input","select","textarea"],qk=["area","base","basefont","dialog","datalist","head","link","meta","noembed","noframes","param","rp","script","source","style","template","track","title"],zk={},js=mt(["comment","doctype"]);function jk(e,t){Ec(e,{collapse:Xk((t||zk).newlines?Kk:Qk),whitespace:"normal"})}s(jk,"minifyWhitespace");function Ec(e,t){if("children"in e){const n={...t};return(e.type==="root"||Cc(e))&&(n.before=!0,n.after=!0),n.whitespace=Jk(e,t),Gk(e,n)}if(e.type==="text"){if(t.whitespace==="normal")return Yk(e,t);t.whitespace==="nowrap"&&(e.value=t.collapse(e.value))}return{ignore:js(e),stripAtStart:!1,remove:!1}}s(Ec,"minify");function Yk(e,t){const n=t.collapse(e.value),r={ignore:!1,stripAtStart:!1,remove:!1};let i=0,u=n.length;return t.before&&Tc(n.charAt(0))&&i++,i!==u&&Tc(n.charAt(u-1))&&(t.after?u--:r.stripAtStart=!0),i===u?r.remove=!0:e.value=n.slice(i,u),r}s(Yk,"minifyText");function Gk(e,t){let n=t.before;const r=t.after,i=e.children;let u=i.length,a=-1;for(;++a<u;){const o=Ec(i[a],{...t,after:Ac(i,a,r),before:n});o.remove?(i.splice(a,1),a--,u--):o.ignore||(n=o.stripAtStart),Dc(i[a])&&(n=!1)}return{ignore:!1,stripAtStart:!!(n||r),remove:!1}}s(Gk,"all$4");function Ac(e,t,n){for(;++t<e.length;){const r=e[t];let i=Vk(r);if(i===void 0&&"children"in r&&!Wk(r)&&(i=Ac(r.children,-1)),typeof i=="boolean")return i}return n}s(Ac,"collapsableAfter");function Vk(e){if(e.type==="element"){if(Dc(e))return!1;if(Cc(e))return!0}else if(e.type==="text"){if(!Ot(e))return!1}else if(!js(e))return!1}s(Vk,"inferBoundary");function Dc(e){return zs(e)||Hs(e,$k)}s(Dc,"content$2");function Cc(e){return Hs(e,Hk)}s(Cc,"blocklike");function Wk(e){return!!(e.type==="element"&&e.properties.hidden)||js(e)||Hs(e,qk)}s(Wk,"skippable");function Tc(e){return e===" "||e===`
|
|
16
|
-
`}s(Tc,"removable");function Kk(e){const t=/\r?\n|\r/.exec(e);return t?t[0]:" "}s(Kk,"replaceNewlines");function Qk(){return" "}s(Qk,"replaceWhitespace");function Xk(e){return t;function t(n){return String(n).replace(/[\t\n\v\f\r ]+/g,e)}}s(Xk,"collapseFactory");function Jk(e,t){if("tagName"in e&&e.properties)switch(e.tagName){case"listing":case"plaintext":case"script":case"style":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return e.properties.wrap?"pre-wrap":"pre";case"td":case"th":return e.properties.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}return t.whitespace}s(Jk,"inferWhiteSpace");const Zk={}.hasOwnProperty;function e3(e,t){const n=e.type==="element"&&Zk.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}s(e3,"hasProperty");const t3=new Set(["pingback","prefetch","stylesheet"]);function n3(e){if(e.type!=="element"||e.tagName!=="link")return!1;if(e.properties.itemProp)return!0;const t=e.properties.rel;let n=-1;if(!Array.isArray(t)||t.length===0)return!1;for(;++n<t.length;)if(!t3.has(String(t[n])))return!1;return!0}s(n3,"isBodyOkLink");const r3=Je(["a","abbr","area","b","bdi","bdo","br","button","cite","code","data","datalist","del","dfn","em","i","input","ins","kbd","keygen","label","map","mark","meter","noscript","output","progress","q","ruby","s","samp","script","select","small","span","strong","sub","sup","template","textarea","time","u","var","wbr"]),i3=Je("meta");function s3(e){return!!(e.type==="text"||r3(e)||zs(e)||n3(e)||i3(e)&&e3(e,"itemProp"))}s(s3,"phrasing$1");const u3=["pre","script","style","textarea"],a3={};function o3(e,t){const n=t||a3,r={blanks:n.blanks||[],head:!1,indentInitial:n.indentInitial!==!1,indent:typeof n.indent=="number"?" ".repeat(n.indent):typeof n.indent=="string"?n.indent:" "};jk(e,{newlines:!0}),Ms(e,i);function i(a,o){if(!("children"in a))return;if(a.type==="element"&&a.tagName==="head"&&(r.head=!0),r.head&&a.type==="element"&&a.tagName==="body"&&(r.head=!1),a.type==="element"&&u3.includes(a.tagName))return ui;if(a.children.length===0||!Ys(r,a))return;let l=o.length;r.indentInitial||l--;let c=!1;for(const p of a.children)(p.type==="comment"||p.type==="text")&&(p.value.includes(`
|
|
17
|
-
`)&&(c=!0),p.value=p.value.replace(/ *\n/g,"$&"+r.indent.repeat(l)));const f=[];let h;for(const p of a.children)(Ys(r,p)||c&&!h)&&(u(f,l,p),c=!0),h=p,f.push(p);h&&(c||Ys(r,h))&&(Ot(h)&&(f.pop(),h=f[f.length-1]),u(f,l-1)),a.children=f}s(i,"visitor");function u(a,o,l){const c=a[a.length-1],f=c&&Ot(c)?a[a.length-2]:c,h=(yc(r,f)&&yc(r,l)?`
|
|
18
|
-
|
|
19
|
-
`:`
|
|
20
|
-
`)+r.indent.repeat(Math.max(o,0));c&&c.type==="text"?c.value=Ot(c)?h:c.value+h:a.push({type:"text",value:h})}s(u,"addBreak")}s(o3,"format$1");function yc(e,t){return!!(t&&t.type==="element"&&e.blanks.length>0&&e.blanks.includes(t.tagName))}s(yc,"blank");function Ys(e,t){return t.type==="root"||(t.type==="element"?e.head||t.tagName==="script"||zs(t)||!s3(t):!1)}s(Ys,"padding");function l3(e){return function(t){o3(t,e)}}s(l3,"rehypeFormat");const bc=-1,ai=0,Zn=1,oi=2,Gs=3,Vs=4,Ws=5,Ks=6,kc=7,_c=8,Bc=typeof self=="object"?self:globalThis,c3=s((e,t)=>{const n=s((i,u)=>(e.set(u,i),i),"as"),r=s(i=>{if(e.has(i))return e.get(i);const[u,a]=t[i];switch(u){case ai:case bc:return n(a,i);case Zn:{const o=n([],i);for(const l of a)o.push(r(l));return o}case oi:{const o=n({},i);for(const[l,c]of a)o[r(l)]=r(c);return o}case Gs:return n(new Date(a),i);case Vs:{const{source:o,flags:l}=a;return n(new RegExp(o,l),i)}case Ws:{const o=n(new Map,i);for(const[l,c]of a)o.set(r(l),r(c));return o}case Ks:{const o=n(new Set,i);for(const l of a)o.add(r(l));return o}case kc:{const{name:o,message:l}=a;return n(new Bc[o](l),i)}case _c:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:o}=new Uint8Array(a);return n(new DataView(o),a)}}return n(new Bc[u](a),i)},"unpair");return r},"deserializer"),Sc=s(e=>c3(new Map,e)(0),"deserialize"),hn="",{toString:h3}={},{keys:f3}=Object,er=s(e=>{const t=typeof e;if(t!=="object"||!e)return[ai,t];const n=h3.call(e).slice(8,-1);switch(n){case"Array":return[Zn,hn];case"Object":return[oi,hn];case"Date":return[Gs,hn];case"RegExp":return[Vs,hn];case"Map":return[Ws,hn];case"Set":return[Ks,hn];case"DataView":return[Zn,n]}return n.includes("Array")?[Zn,n]:n.includes("Error")?[kc,n]:[oi,n]},"typeOf"),li=s(([e,t])=>e===ai&&(t==="function"||t==="symbol"),"shouldSkip"),m3=s((e,t,n,r)=>{const i=s((a,o)=>{const l=r.push(a)-1;return n.set(o,l),l},"as"),u=s(a=>{if(n.has(a))return n.get(a);let[o,l]=er(a);switch(o){case ai:{let f=a;switch(l){case"bigint":o=_c,f=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return i([bc],a)}return i([o,f],a)}case Zn:{if(l){let p=a;return l==="DataView"?p=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(a)),i([l,[...p]],a)}const f=[],h=i([o,f],a);for(const p of a)f.push(u(p));return h}case oi:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return u(a.toJSON());const f=[],h=i([o,f],a);for(const p of f3(a))(e||!li(er(a[p])))&&f.push([u(p),u(a[p])]);return h}case Gs:return i([o,a.toISOString()],a);case Vs:{const{source:f,flags:h}=a;return i([o,{source:f,flags:h}],a)}case Ws:{const f=[],h=i([o,f],a);for(const[p,d]of a)(e||!(li(er(p))||li(er(d))))&&f.push([u(p),u(d)]);return h}case Ks:{const f=[],h=i([o,f],a);for(const p of a)(e||!li(er(p)))&&f.push(u(p));return h}}const{message:c}=a;return i([o,{name:l,message:c}],a)},"pair");return u},"serializer"),wc=s((e,{json:t,lossy:n}={})=>{const r=[];return m3(!(t||n),!!t,new Map,r)(e),r},"serialize$1");var fn=typeof structuredClone=="function"?((e,t)=>t&&("json"in t||"lossy"in t)?Sc(wc(e,t)):structuredClone(e)):(e,t)=>Sc(wc(e,t));function YL(){}s(YL,"ok");const Fc=/[#.]/g;function d3(e,t){const n=e||"",r={};let i=0,u,a;for(;i<n.length;){Fc.lastIndex=i;const o=Fc.exec(n),l=n.slice(i,o?o.index:n.length);l&&(u?u==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:a=l,i+=l.length),o&&(u=o[0],i++)}return{type:"element",tagName:a||t||"div",properties:r,children:[]}}s(d3,"parseSelector");function Nc(e,t,n){const r=n?A3(n):void 0;function i(u,a,...o){let l;if(u==null){l={type:"root",children:[]};const c=a;o.unshift(c)}else{l=d3(u,t);const c=l.tagName.toLowerCase(),f=r?r.get(c):void 0;if(l.tagName=f||c,p3(a))o.unshift(a);else for(const[h,p]of Object.entries(a))g3(e,l.properties,h,p)}for(const c of o)Qs(l.children,c);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return s(i,"h"),i}s(Nc,"createH");function p3(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const u=i;for(const a of u)if(typeof a!="number"&&typeof a!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}s(p3,"isChild");function g3(e,t,n,r){const i=Gr(e,n);let u;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;u=r}else typeof r=="boolean"?u=r:typeof r=="string"?i.spaceSeparated?u=Fl(r):i.commaSeparated?u=Sl(r):i.commaOrSpaceSeparated?u=Fl(Sl(r).join(" ")):u=xc(i,i.property,r):Array.isArray(r)?u=[...r]:u=i.property==="style"?E3(r):String(r);if(Array.isArray(u)){const a=[];for(const o of u)a.push(xc(i,i.property,o));u=a}i.property==="className"&&Array.isArray(t.className)&&(u=t.className.concat(u)),t[i.property]=u}}s(g3,"addProperty");function Qs(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Qs(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Qs(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}s(Qs,"addChild");function xc(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Kn(n)===Kn(t)))return!0}return n}s(xc,"parsePrimitive");function E3(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}s(E3,"style");function A3(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}s(A3,"createAdjustMap");const D3=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],C3=Nc(Qn,"div"),T3=Nc(Lt,"g",D3);function y3(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(u){if(typeof u=="number"&&u>-1&&u<=t.length){let a=0;for(;;){let o=n[a];if(o===void 0){const l=Ic(t,n[a-1]);o=l===-1?t.length+1:l+1,n[a]=o}if(o>u)return{line:a+1,column:u-(a>0?n[a-1]:0)+1,offset:u};a++}}}function i(u){if(u&&typeof u.line=="number"&&typeof u.column=="number"&&!Number.isNaN(u.line)&&!Number.isNaN(u.column)){for(;n.length<u.line;){const o=n[n.length-1],l=Ic(t,o),c=l===-1?t.length+1:l+1;if(o===c)break;n.push(c)}const a=(u.line>1?n[u.line-2]:0)+u.column-1;if(a<n[u.line-1])return a}}}s(y3,"location");function Ic(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
21
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}s(Ic,"next");const Pt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},vc={}.hasOwnProperty,b3=Object.prototype;function k3(e,t){const n=t||{};return Xs({file:n.file||void 0,location:!1,schema:n.space==="svg"?Lt:Qn,verbose:n.verbose||!1},e)}s(k3,"fromParse5");function Xs(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},ci(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Lc(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const u=String(e.file),a=y3(u),o=a.toPoint(0),l=a.toPoint(u.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},ci(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},ci(e,r,n),n}default:return n=_3(e,t),n}}s(Xs,"one$2");function Lc(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Xs(e,t[n]);r.push(i)}return r}s(Lc,"all$3");function _3(e,t){const n=e.schema;e.schema=t.namespaceURI===Pt.svg?Lt:Qn;let r=-1;const i={};for(;++r<t.attrs.length;){const o=t.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;vc.call(b3,l)||(i[l]=o.value)}const a=(e.schema.space==="svg"?T3:C3)(t.tagName,i,Lc(e,t.childNodes));if(ci(e,t,a),a.tagName==="template"){const o=t,l=o.sourceCodeLocation,c=l&&l.startTag&&mn(l.startTag),f=l&&l.endTag&&mn(l.endTag),h=Xs(e,o.content);c&&f&&e.file&&(h.position={start:c.end,end:f.start}),a.content=h}return e.schema=n,a}s(_3,"element$2");function ci(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=B3(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}s(ci,"patch$2");function B3(e,t,n){const r=mn(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const u={};let a;if(n.attrs)for(a in n.attrs)vc.call(n.attrs,a)&&(u[Gr(e.schema,a).property]=mn(n.attrs[a]));n.startTag;const o=mn(n.startTag),l=n.endTag?mn(n.endTag):void 0,c={opening:o};l&&(c.closing=l),c.properties=u,t.data={position:c}}}return r}s(B3,"createLocation");function mn(e){const t=Oc({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Oc({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}s(mn,"position$2");function Oc(e){return e.line&&e.column?e:void 0}s(Oc,"point$3");const S3={},w3={}.hasOwnProperty,Rc=ys("type",{handlers:{root:N3,element:O3,text:v3,comment:L3,doctype:I3}});function F3(e,t){const r=(t||S3).space;return Rc(e,r==="svg"?Lt:Qn)}s(F3,"toParse5");function N3(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Js(e.children,n,t),dn(e,n),n}s(N3,"root$3");function x3(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Js(e.children,n,t),dn(e,n),n}s(x3,"fragment");function I3(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return dn(e,t),t}s(I3,"doctype$1");function v3(e){const t={nodeName:"#text",value:e.value,parentNode:null};return dn(e,t),t}s(v3,"text$6");function L3(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return dn(e,t),t}s(L3,"comment$1");function O3(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Lt);const i=[];let u;if(e.properties){for(u in e.properties)if(u!=="children"&&w3.call(e.properties,u)){const l=R3(r,u,e.properties[u]);l&&i.push(l)}}const a=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Pt[a],childNodes:[],parentNode:null};return o.childNodes=Js(e.children,o,r),dn(e,o),e.tagName==="template"&&e.content&&(o.content=x3(e.content,r)),o}s(O3,"element$1");function R3(e,t,n){const r=Gr(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?wl(n):Nl(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const u=i.name.indexOf(":");u<0?i.prefix="":(i.name=i.name.slice(u+1),i.prefix=r.attribute.slice(0,u)),i.namespace=Pt[r.space]}return i}s(R3,"createProperty");function Js(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const u=Rc(e[r],n);u.parentNode=t,i.push(u)}return i}s(Js,"all$2");function dn(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}s(dn,"patch$1");const P3=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),le="\uFFFD";var T;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(T||(T={}));const Le={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Pc(e){return e>=55296&&e<=57343}s(Pc,"isSurrogate");function M3(e){return e>=56320&&e<=57343}s(M3,"isSurrogatePair");function U3(e,t){return(e-55296)*1024+9216+t}s(U3,"getSurrogatePairCodePoint");function Mc(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}s(Mc,"isControlCodePoint");function Uc(e){return e>=64976&&e<=65007||P3.has(e)}s(Uc,"isUndefinedCodePoint");var O;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(O||(O={}));const H3=65536;class $3{static{s(this,"Preprocessor")}constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=H3,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:u}=this,a=i+n,o=u+n;return{code:t,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(M3(n))return this.pos++,this._addGap(),U3(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,T.EOF;return this._err(O.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;const r=this.html.charCodeAt(n);return r===T.CARRIAGE_RETURN?T.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,T.EOF;let t=this.html.charCodeAt(this.pos);return t===T.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,T.LINE_FEED):t===T.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Pc(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===T.LINE_FEED||t===T.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Mc(t)?this._err(O.controlCharacterInInputStream):Uc(t)&&this._err(O.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var X;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(X||(X={}));function Hc(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}s(Hc,"getTokenAttr");const q3=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0))),z3=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function j3(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=z3.get(e))!==null&&t!==void 0?t:e}s(j3,"replaceCodePoint");var Ce;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ce||(Ce={}));const Y3=32;var kt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(kt||(kt={}));function Zs(e){return e>=Ce.ZERO&&e<=Ce.NINE}s(Zs,"isNumber");function G3(e){return e>=Ce.UPPER_A&&e<=Ce.UPPER_F||e>=Ce.LOWER_A&&e<=Ce.LOWER_F}s(G3,"isHexadecimalCharacter");function V3(e){return e>=Ce.UPPER_A&&e<=Ce.UPPER_Z||e>=Ce.LOWER_A&&e<=Ce.LOWER_Z||Zs(e)}s(V3,"isAsciiAlphaNumeric$1");function W3(e){return e===Ce.EQUALS||V3(e)}s(W3,"isEntityInAttributeInvalidEnd");var Te;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Te||(Te={}));var dt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(dt||(dt={}));class K3{static{s(this,"EntityDecoder")}constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Te.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=dt.Strict}startEntity(t){this.decodeMode=t,this.state=Te.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Te.EntityStart:return t.charCodeAt(n)===Ce.NUM?(this.state=Te.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Te.NamedEntity,this.stateNamedEntity(t,n));case Te.NumericStart:return this.stateNumericStart(t,n);case Te.NumericDecimal:return this.stateNumericDecimal(t,n);case Te.NumericHex:return this.stateNumericHex(t,n);case Te.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Y3)===Ce.LOWER_X?(this.state=Te.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Te.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const u=r-n;this.result=this.result*Math.pow(i,u)+Number.parseInt(t.substr(n,u),i),this.consumed+=u}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Zs(i)||G3(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Zs(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ce.SEMI)this.consumed+=1;else if(this.decodeMode===dt.Strict)return 0;return this.emitCodePoint(j3(this.result),this.consumed),this.errors&&(t!==Ce.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],u=(i&kt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=Q3(r,i,this.treeIndex+Math.max(1,u),a),this.treeIndex<0)return this.result===0||this.decodeMode===dt.Attribute&&(u===0||W3(a))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],u=(i&kt.VALUE_LENGTH)>>14,u!==0){if(a===Ce.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==dt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&kt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~kt.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Te.NamedEntity:return this.result!==0&&(this.decodeMode!==dt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Te.NumericDecimal:return this.emitNumericEntity(0,2);case Te.NumericHex:return this.emitNumericEntity(0,3);case Te.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Te.EntityStart:return 0}}}function Q3(e,t,n,r){const i=(t&kt.BRANCH_LENGTH)>>7,u=t&kt.JUMP_TABLE;if(i===0)return u!==0&&r===u?n:-1;if(u){const l=r-u;return l<0||l>=i?-1:e[n+l]-1}let a=n,o=a+i-1;for(;a<=o;){const l=a+o>>>1,c=e[l];if(c<r)a=l+1;else if(c>r)o=l-1;else return e[l+i]}return-1}s(Q3,"determineBranch");var P;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(P||(P={}));var Mt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Mt||(Mt={}));var ze;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ze||(ze={}));var I;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(I||(I={}));var m;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(m||(m={}));const X3=new Map([[I.A,m.A],[I.ADDRESS,m.ADDRESS],[I.ANNOTATION_XML,m.ANNOTATION_XML],[I.APPLET,m.APPLET],[I.AREA,m.AREA],[I.ARTICLE,m.ARTICLE],[I.ASIDE,m.ASIDE],[I.B,m.B],[I.BASE,m.BASE],[I.BASEFONT,m.BASEFONT],[I.BGSOUND,m.BGSOUND],[I.BIG,m.BIG],[I.BLOCKQUOTE,m.BLOCKQUOTE],[I.BODY,m.BODY],[I.BR,m.BR],[I.BUTTON,m.BUTTON],[I.CAPTION,m.CAPTION],[I.CENTER,m.CENTER],[I.CODE,m.CODE],[I.COL,m.COL],[I.COLGROUP,m.COLGROUP],[I.DD,m.DD],[I.DESC,m.DESC],[I.DETAILS,m.DETAILS],[I.DIALOG,m.DIALOG],[I.DIR,m.DIR],[I.DIV,m.DIV],[I.DL,m.DL],[I.DT,m.DT],[I.EM,m.EM],[I.EMBED,m.EMBED],[I.FIELDSET,m.FIELDSET],[I.FIGCAPTION,m.FIGCAPTION],[I.FIGURE,m.FIGURE],[I.FONT,m.FONT],[I.FOOTER,m.FOOTER],[I.FOREIGN_OBJECT,m.FOREIGN_OBJECT],[I.FORM,m.FORM],[I.FRAME,m.FRAME],[I.FRAMESET,m.FRAMESET],[I.H1,m.H1],[I.H2,m.H2],[I.H3,m.H3],[I.H4,m.H4],[I.H5,m.H5],[I.H6,m.H6],[I.HEAD,m.HEAD],[I.HEADER,m.HEADER],[I.HGROUP,m.HGROUP],[I.HR,m.HR],[I.HTML,m.HTML],[I.I,m.I],[I.IMG,m.IMG],[I.IMAGE,m.IMAGE],[I.INPUT,m.INPUT],[I.IFRAME,m.IFRAME],[I.KEYGEN,m.KEYGEN],[I.LABEL,m.LABEL],[I.LI,m.LI],[I.LINK,m.LINK],[I.LISTING,m.LISTING],[I.MAIN,m.MAIN],[I.MALIGNMARK,m.MALIGNMARK],[I.MARQUEE,m.MARQUEE],[I.MATH,m.MATH],[I.MENU,m.MENU],[I.META,m.META],[I.MGLYPH,m.MGLYPH],[I.MI,m.MI],[I.MO,m.MO],[I.MN,m.MN],[I.MS,m.MS],[I.MTEXT,m.MTEXT],[I.NAV,m.NAV],[I.NOBR,m.NOBR],[I.NOFRAMES,m.NOFRAMES],[I.NOEMBED,m.NOEMBED],[I.NOSCRIPT,m.NOSCRIPT],[I.OBJECT,m.OBJECT],[I.OL,m.OL],[I.OPTGROUP,m.OPTGROUP],[I.OPTION,m.OPTION],[I.P,m.P],[I.PARAM,m.PARAM],[I.PLAINTEXT,m.PLAINTEXT],[I.PRE,m.PRE],[I.RB,m.RB],[I.RP,m.RP],[I.RT,m.RT],[I.RTC,m.RTC],[I.RUBY,m.RUBY],[I.S,m.S],[I.SCRIPT,m.SCRIPT],[I.SEARCH,m.SEARCH],[I.SECTION,m.SECTION],[I.SELECT,m.SELECT],[I.SOURCE,m.SOURCE],[I.SMALL,m.SMALL],[I.SPAN,m.SPAN],[I.STRIKE,m.STRIKE],[I.STRONG,m.STRONG],[I.STYLE,m.STYLE],[I.SUB,m.SUB],[I.SUMMARY,m.SUMMARY],[I.SUP,m.SUP],[I.TABLE,m.TABLE],[I.TBODY,m.TBODY],[I.TEMPLATE,m.TEMPLATE],[I.TEXTAREA,m.TEXTAREA],[I.TFOOT,m.TFOOT],[I.TD,m.TD],[I.TH,m.TH],[I.THEAD,m.THEAD],[I.TITLE,m.TITLE],[I.TR,m.TR],[I.TRACK,m.TRACK],[I.TT,m.TT],[I.U,m.U],[I.UL,m.UL],[I.SVG,m.SVG],[I.VAR,m.VAR],[I.WBR,m.WBR],[I.XMP,m.XMP]]);function pn(e){var t;return(t=X3.get(e))!==null&&t!==void 0?t:m.UNKNOWN}s(pn,"getTagID");const U=m,J3={[P.HTML]:new Set([U.ADDRESS,U.APPLET,U.AREA,U.ARTICLE,U.ASIDE,U.BASE,U.BASEFONT,U.BGSOUND,U.BLOCKQUOTE,U.BODY,U.BR,U.BUTTON,U.CAPTION,U.CENTER,U.COL,U.COLGROUP,U.DD,U.DETAILS,U.DIR,U.DIV,U.DL,U.DT,U.EMBED,U.FIELDSET,U.FIGCAPTION,U.FIGURE,U.FOOTER,U.FORM,U.FRAME,U.FRAMESET,U.H1,U.H2,U.H3,U.H4,U.H5,U.H6,U.HEAD,U.HEADER,U.HGROUP,U.HR,U.HTML,U.IFRAME,U.IMG,U.INPUT,U.LI,U.LINK,U.LISTING,U.MAIN,U.MARQUEE,U.MENU,U.META,U.NAV,U.NOEMBED,U.NOFRAMES,U.NOSCRIPT,U.OBJECT,U.OL,U.P,U.PARAM,U.PLAINTEXT,U.PRE,U.SCRIPT,U.SECTION,U.SELECT,U.SOURCE,U.STYLE,U.SUMMARY,U.TABLE,U.TBODY,U.TD,U.TEMPLATE,U.TEXTAREA,U.TFOOT,U.TH,U.THEAD,U.TITLE,U.TR,U.TRACK,U.UL,U.WBR,U.XMP]),[P.MATHML]:new Set([U.MI,U.MO,U.MN,U.MS,U.MTEXT,U.ANNOTATION_XML]),[P.SVG]:new Set([U.TITLE,U.FOREIGN_OBJECT,U.DESC]),[P.XLINK]:new Set,[P.XML]:new Set,[P.XMLNS]:new Set},eu=new Set([U.H1,U.H2,U.H3,U.H4,U.H5,U.H6]);I.STYLE,I.SCRIPT,I.XMP,I.IFRAME,I.NOEMBED,I.NOFRAMES,I.PLAINTEXT;var b;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(b||(b={}));const ce={DATA:b.DATA,RCDATA:b.RCDATA,RAWTEXT:b.RAWTEXT,SCRIPT_DATA:b.SCRIPT_DATA,PLAINTEXT:b.PLAINTEXT,CDATA_SECTION:b.CDATA_SECTION};function Z3(e){return e>=T.DIGIT_0&&e<=T.DIGIT_9}s(Z3,"isAsciiDigit");function tr(e){return e>=T.LATIN_CAPITAL_A&&e<=T.LATIN_CAPITAL_Z}s(tr,"isAsciiUpper");function e_(e){return e>=T.LATIN_SMALL_A&&e<=T.LATIN_SMALL_Z}s(e_,"isAsciiLower");function _t(e){return e_(e)||tr(e)}s(_t,"isAsciiLetter");function $c(e){return _t(e)||Z3(e)}s($c,"isAsciiAlphaNumeric");function hi(e){return e+32}s(hi,"toAsciiLower");function qc(e){return e===T.SPACE||e===T.LINE_FEED||e===T.TABULATION||e===T.FORM_FEED}s(qc,"isWhitespace");function zc(e){return qc(e)||e===T.SOLIDUS||e===T.GREATER_THAN_SIGN}s(zc,"isScriptDataDoubleEscapeSequenceEnd");function t_(e){return e===T.NULL?O.nullCharacterReference:e>1114111?O.characterReferenceOutsideUnicodeRange:Pc(e)?O.surrogateCharacterReference:Uc(e)?O.noncharacterCharacterReference:Mc(e)||e===T.CARRIAGE_RETURN?O.controlCharacterReference:null}s(t_,"getErrorForNumericCharacterReference");class n_{static{s(this,"Tokenizer")}constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=b.DATA,this.returnState=b.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new $3(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new K3(q3,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:s(()=>{this._err(O.missingSemicolonAfterCharacterReference,1)},"missingSemicolonAfterCharacterReference"),absenceOfDigitsInNumericCharacterReference:s(r=>{this._err(O.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},"absenceOfDigitsInNumericCharacterReference"),validateNumericCharacterReference:s(r=>{const i=t_(r);i&&this._err(i,1)},"validateNumericCharacterReference")}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:X.START_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:X.END_TAG,tagName:"",tagID:m.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:X.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:X.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Hc(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(O.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=pn(t.tagName),t.type===X.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(O.endTagWithAttributes),t.selfClosing&&this._err(O.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case X.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case X.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case X.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:X.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=qc(t)?X.WHITESPACE_CHARACTER:t===T.NULL?X.NULL_CHARACTER:X.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(X.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=b.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?dt.Attribute:dt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===b.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case b.DATA:{this._stateData(t);break}case b.RCDATA:{this._stateRcdata(t);break}case b.RAWTEXT:{this._stateRawtext(t);break}case b.SCRIPT_DATA:{this._stateScriptData(t);break}case b.PLAINTEXT:{this._statePlaintext(t);break}case b.TAG_OPEN:{this._stateTagOpen(t);break}case b.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case b.TAG_NAME:{this._stateTagName(t);break}case b.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case b.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case b.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case b.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case b.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case b.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case b.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case b.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case b.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case b.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case b.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case b.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case b.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case b.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case b.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case b.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case b.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case b.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case b.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case b.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case b.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case b.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case b.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case b.BOGUS_COMMENT:{this._stateBogusComment(t);break}case b.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case b.COMMENT_START:{this._stateCommentStart(t);break}case b.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case b.COMMENT:{this._stateComment(t);break}case b.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case b.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case b.COMMENT_END:{this._stateCommentEnd(t);break}case b.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case b.DOCTYPE:{this._stateDoctype(t);break}case b.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case b.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case b.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case b.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case b.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case b.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case b.CDATA_SECTION:{this._stateCdataSection(t);break}case b.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case b.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case b.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case b.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=b.TAG_OPEN;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(O.unexpectedNullCharacter),this._emitCodePoint(t);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case T.AMPERSAND:{this._startCharacterReference();break}case T.LESS_THAN_SIGN:{this.state=b.RCDATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(O.unexpectedNullCharacter),this._emitChars(le);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case T.LESS_THAN_SIGN:{this.state=b.RAWTEXT_LESS_THAN_SIGN;break}case T.NULL:{this._err(O.unexpectedNullCharacter),this._emitChars(le);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case T.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_LESS_THAN_SIGN;break}case T.NULL:{this._err(O.unexpectedNullCharacter),this._emitChars(le);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case T.NULL:{this._err(O.unexpectedNullCharacter),this._emitChars(le);break}case T.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(_t(t))this._createStartTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case T.EXCLAMATION_MARK:{this.state=b.MARKUP_DECLARATION_OPEN;break}case T.SOLIDUS:{this.state=b.END_TAG_OPEN;break}case T.QUESTION_MARK:{this._err(O.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t);break}case T.EOF:{this._err(O.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(O.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=b.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(_t(t))this._createEndTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case T.GREATER_THAN_SIGN:{this._err(O.missingEndTagName),this.state=b.DATA;break}case T.EOF:{this._err(O.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(O.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=b.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(O.unexpectedNullCharacter),n.tagName+=le;break}case T.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(tr(t)?hi(t):t)}}_stateRcdataLessThanSign(t){t===T.SOLIDUS?this.state=b.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){_t(t)?(this.state=b.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=b.BEFORE_ATTRIBUTE_NAME,!1;case T.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=b.SELF_CLOSING_START_TAG,!1;case T.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=b.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===T.SOLIDUS?this.state=b.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){_t(t)?(this.state=b.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case T.SOLIDUS:{this.state=b.SCRIPT_DATA_END_TAG_OPEN;break}case T.EXCLAMATION_MARK:{this.state=b.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=b.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){_t(t)?(this.state=b.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===T.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===T.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(O.unexpectedNullCharacter),this._emitChars(le);break}case T.EOF:{this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.NULL:{this._err(O.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(le);break}case T.EOF:{this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case T.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(O.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(le);break}case T.EOF:{this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===T.SOLIDUS?this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:_t(t)?(this._emitChars("<"),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){_t(t)?(this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Le.SCRIPT,!1)&&zc(this.preprocessor.peek(Le.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Le.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case T.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(O.unexpectedNullCharacter),this._emitChars(le);break}case T.EOF:{this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case T.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.NULL:{this._err(O.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(le);break}case T.EOF:{this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case T.HYPHEN_MINUS:{this._emitChars("-");break}case T.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case T.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case T.NULL:{this._err(O.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(le);break}case T.EOF:{this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===T.SOLIDUS?(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Le.SCRIPT,!1)&&zc(this.preprocessor.peek(Le.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Le.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._err(O.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=b.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:case T.SOLIDUS:case T.GREATER_THAN_SIGN:case T.EOF:{this._leaveAttrName(),this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case T.EQUALS_SIGN:{this._leaveAttrName(),this.state=b.BEFORE_ATTRIBUTE_VALUE;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:{this._err(O.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case T.NULL:{this._err(O.unexpectedNullCharacter),this.currentAttr.name+=le;break}default:this.currentAttr.name+=String.fromCodePoint(tr(t)?hi(t):t)}}_stateAfterAttributeName(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case T.EQUALS_SIGN:{this.state=b.BEFORE_ATTRIBUTE_VALUE;break}case T.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{this.state=b.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this.state=b.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(O.missingAttributeValue),this.state=b.DATA,this.emitCurrentTagToken();break}default:this.state=b.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case T.QUOTATION_MARK:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(O.unexpectedNullCharacter),this.currentAttr.value+=le;break}case T.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case T.APOSTROPHE:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.NULL:{this._err(O.unexpectedNullCharacter),this.currentAttr.value+=le;break}case T.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case T.AMPERSAND:{this._startCharacterReference();break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case T.NULL:{this._err(O.unexpectedNullCharacter),this.currentAttr.value+=le;break}case T.QUOTATION_MARK:case T.APOSTROPHE:case T.LESS_THAN_SIGN:case T.EQUALS_SIGN:case T.GRAVE_ACCENT:{this._err(O.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case T.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case T.SOLIDUS:{this._leaveAttrValue(),this.state=b.SELF_CLOSING_START_TAG;break}case T.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:this._err(O.missingWhitespaceBetweenAttributes),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case T.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=b.DATA,this.emitCurrentTagToken();break}case T.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:this._err(O.unexpectedSolidusInTag),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case T.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case T.NULL:{this._err(O.unexpectedNullCharacter),n.data+=le;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Le.DASH_DASH,!0)?(this._createCommentToken(Le.DASH_DASH.length+1),this.state=b.COMMENT_START):this._consumeSequenceIfMatch(Le.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Le.DOCTYPE.length+1),this.state=b.DOCTYPE):this._consumeSequenceIfMatch(Le.CDATA_START,!0)?this.inForeignNode?this.state=b.CDATA_SECTION:(this._err(O.cdataInHtmlContent),this._createCommentToken(Le.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=b.BOGUS_COMMENT):this._ensureHibernation()||(this._err(O.incorrectlyOpenedComment),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case T.HYPHEN_MINUS:{this.state=b.COMMENT_START_DASH;break}case T.GREATER_THAN_SIGN:{this._err(O.abruptClosingOfEmptyComment),this.state=b.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case T.GREATER_THAN_SIGN:{this._err(O.abruptClosingOfEmptyComment),this.state=b.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(O.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=b.COMMENT_END_DASH;break}case T.LESS_THAN_SIGN:{n.data+="<",this.state=b.COMMENT_LESS_THAN_SIGN;break}case T.NULL:{this._err(O.unexpectedNullCharacter),n.data+=le;break}case T.EOF:{this._err(O.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case T.EXCLAMATION_MARK:{n.data+="!",this.state=b.COMMENT_LESS_THAN_SIGN_BANG;break}case T.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===T.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=b.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===T.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=b.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==T.GREATER_THAN_SIGN&&t!==T.EOF&&this._err(O.nestedComment),this.state=b.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case T.EOF:{this._err(O.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case T.EXCLAMATION_MARK:{this.state=b.COMMENT_END_BANG;break}case T.HYPHEN_MINUS:{n.data+="-";break}case T.EOF:{this._err(O.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case T.HYPHEN_MINUS:{n.data+="--!",this.state=b.COMMENT_END_DASH;break}case T.GREATER_THAN_SIGN:{this._err(O.incorrectlyClosedComment),this.state=b.DATA,this.emitCurrentComment(n);break}case T.EOF:{this._err(O.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=b.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case T.EOF:{this._err(O.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingWhitespaceBeforeDoctypeName),this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(tr(t))this._createDoctypeToken(String.fromCharCode(hi(t))),this.state=b.DOCTYPE_NAME;else switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.NULL:{this._err(O.unexpectedNullCharacter),this._createDoctypeToken(le),this.state=b.DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this._err(O.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case T.EOF:{this._err(O.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=b.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=b.AFTER_DOCTYPE_NAME;break}case T.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case T.NULL:{this._err(O.unexpectedNullCharacter),n.name+=le;break}case T.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(tr(t)?hi(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Le.PUBLIC,!1)?this.state=b.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Le.SYSTEM,!1)?this.state=b.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(O.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(O.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(O.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(O.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(O.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(O.unexpectedNullCharacter),n.publicId+=le;break}case T.GREATER_THAN_SIGN:{this._err(O.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case T.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case T.NULL:{this._err(O.unexpectedNullCharacter),n.publicId+=le;break}case T.GREATER_THAN_SIGN:{this._err(O.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case T.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case T.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case T.QUOTATION_MARK:{this._err(O.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(O.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case T.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.QUOTATION_MARK:{this._err(O.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{this._err(O.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(O.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case T.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case T.GREATER_THAN_SIGN:{this._err(O.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case T.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case T.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(O.unexpectedNullCharacter),n.systemId+=le;break}case T.GREATER_THAN_SIGN:{this._err(O.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case T.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case T.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case T.NULL:{this._err(O.unexpectedNullCharacter),n.systemId+=le;break}case T.GREATER_THAN_SIGN:{this._err(O.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case T.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case T.SPACE:case T.LINE_FEED:case T.TABULATION:case T.FORM_FEED:break;case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case T.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case T.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case T.NULL:{this._err(O.unexpectedNullCharacter);break}case T.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case T.RIGHT_SQUARE_BRACKET:{this.state=b.CDATA_SECTION_BRACKET;break}case T.EOF:{this._err(O.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===T.RIGHT_SQUARE_BRACKET?this.state=b.CDATA_SECTION_END:(this._emitChars("]"),this.state=b.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case T.GREATER_THAN_SIGN:{this.state=b.DATA;break}case T.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=b.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(T.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&$c(this.preprocessor.peek(1))?b.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){$c(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===T.SEMICOLON&&this._err(O.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const jc=new Set([m.DD,m.DT,m.LI,m.OPTGROUP,m.OPTION,m.P,m.RB,m.RP,m.RT,m.RTC]),Yc=new Set([...jc,m.CAPTION,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]),fi=new Set([m.APPLET,m.CAPTION,m.HTML,m.MARQUEE,m.OBJECT,m.TABLE,m.TD,m.TEMPLATE,m.TH]),r_=new Set([...fi,m.OL,m.UL]),i_=new Set([...fi,m.BUTTON]),Gc=new Set([m.ANNOTATION_XML,m.MI,m.MN,m.MO,m.MS,m.MTEXT]),Vc=new Set([m.DESC,m.FOREIGN_OBJECT,m.TITLE]),s_=new Set([m.TR,m.TEMPLATE,m.HTML]),u_=new Set([m.TBODY,m.TFOOT,m.THEAD,m.TEMPLATE,m.HTML]),a_=new Set([m.TABLE,m.TEMPLATE,m.HTML]),o_=new Set([m.TD,m.TH]);class l_{static{s(this,"OpenElementStack")}get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=m.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===m.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===P.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==P.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(eu,P.HTML)}popUntilTableCellPopped(){this.popUntilPopped(o_,P.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(a_,P.HTML)}clearBackToTableBodyContext(){this.clearBackTo(u_,P.HTML)}clearBackToTableRowContext(){this.clearBackTo(s_,P.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===m.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===m.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case P.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case P.SVG:{if(Vc.has(i))return!1;break}case P.MATHML:{if(Gc.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,fi)}hasInListItemScope(t){return this.hasInDynamicScope(t,r_)}hasInButtonScope(t){return this.hasInDynamicScope(t,i_)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case P.HTML:{if(eu.has(n))return!0;if(fi.has(n))return!1;break}case P.SVG:{if(Vc.has(n))return!1;break}case P.MATHML:{if(Gc.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===P.HTML)switch(this.tagIDs[n]){case t:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===P.HTML)switch(this.tagIDs[t]){case m.TBODY:case m.THEAD:case m.TFOOT:return!0;case m.TABLE:case m.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===P.HTML)switch(this.tagIDs[n]){case t:return!0;case m.OPTION:case m.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&jc.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Yc.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Yc.has(this.currentTagId);)this.pop()}}const tu=3;var it;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(it||(it={}));const Wc={type:it.Marker};class c_{static{s(this,"FormattingElementList")}constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,u=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===it.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===u&&this.treeAdapter.getNamespaceURI(c)===a){const f=this.treeAdapter.getAttrList(c);f.length===i&&r.push({idx:o,attrs:f})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<tu)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<tu)return;const i=new Map(n.map(a=>[a.name,a.value]));let u=0;for(let a=0;a<r.length;a++){const o=r[a];o.attrs.every(l=>i.get(l.name)===l.value)&&(u+=1,u>=tu&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Wc)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:it.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:it.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Wc);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===it.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===it.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===it.Element&&n.element===t)}}const Bt={createDocument(){return{nodeName:"#document",mode:ze.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(u=>u.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const u={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Bt.appendChild(e,u)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Bt.isTextNode(n)){n.value+=t;return}}Bt.appendChild(e,Bt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Bt.isTextNode(r)?r.value+=t:Bt.insertBefore(e,Bt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Kc="html",h_="about:legacy-compat",f_="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Qc=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],m_=[...Qc,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],d_=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Xc=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],p_=[...Xc,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Jc(e,t){return t.some(n=>e.startsWith(n))}s(Jc,"hasPrefix");function g_(e){return e.name===Kc&&e.publicId===null&&(e.systemId===null||e.systemId===h_)}s(g_,"isConforming");function E_(e){if(e.name!==Kc)return ze.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===f_)return ze.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),d_.has(n))return ze.QUIRKS;let r=t===null?m_:Qc;if(Jc(n,r))return ze.QUIRKS;if(r=t===null?Xc:p_,Jc(n,r))return ze.LIMITED_QUIRKS}return ze.NO_QUIRKS}s(E_,"getDocumentMode");const Zc={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},A_="definitionurl",D_="definitionURL",C_=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),T_=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:P.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:P.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:P.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:P.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:P.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:P.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:P.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:P.XML}],["xml:space",{prefix:"xml",name:"space",namespace:P.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:P.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:P.XMLNS}]]),y_=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),b_=new Set([m.B,m.BIG,m.BLOCKQUOTE,m.BODY,m.BR,m.CENTER,m.CODE,m.DD,m.DIV,m.DL,m.DT,m.EM,m.EMBED,m.H1,m.H2,m.H3,m.H4,m.H5,m.H6,m.HEAD,m.HR,m.I,m.IMG,m.LI,m.LISTING,m.MENU,m.META,m.NOBR,m.OL,m.P,m.PRE,m.RUBY,m.S,m.SMALL,m.SPAN,m.STRONG,m.STRIKE,m.SUB,m.SUP,m.TABLE,m.TT,m.U,m.UL,m.VAR]);function k_(e){const t=e.tagID;return t===m.FONT&&e.attrs.some(({name:r})=>r===Mt.COLOR||r===Mt.SIZE||r===Mt.FACE)||b_.has(t)}s(k_,"causesExit");function eh(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===A_){e.attrs[t].name=D_;break}}s(eh,"adjustTokenMathMLAttrs");function th(e){for(let t=0;t<e.attrs.length;t++){const n=C_.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}s(th,"adjustTokenSVGAttrs");function nu(e){for(let t=0;t<e.attrs.length;t++){const n=T_.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}s(nu,"adjustTokenXMLAttrs");function __(e){const t=y_.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=pn(e.tagName))}s(__,"adjustTokenSVGTagName");function B_(e,t){return t===P.MATHML&&(e===m.MI||e===m.MO||e===m.MN||e===m.MS||e===m.MTEXT)}s(B_,"isMathMLTextIntegrationPoint");function S_(e,t,n){if(t===P.MATHML&&e===m.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Mt.ENCODING){const i=n[r].value.toLowerCase();return i===Zc.TEXT_HTML||i===Zc.APPLICATION_XML}}return t===P.SVG&&(e===m.FOREIGN_OBJECT||e===m.DESC||e===m.TITLE)}s(S_,"isHtmlIntegrationPoint");function w_(e,t,n,r){return(!r||r===P.HTML)&&S_(e,t,n)||(!r||r===P.MATHML)&&B_(e,t)}s(w_,"isIntegrationPoint");const F_="hidden",N_=8,x_=3;var k;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(k||(k={}));const I_={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},nh=new Set([m.TABLE,m.TBODY,m.TFOOT,m.THEAD,m.TR]),rh={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Bt,onParseError:null};let ih=class{static{s(this,"Parser")}constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=k.INITIAL,this.originalInsertionMode=k.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...rh,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new n_(this.options,this),this.activeFormattingElements=new c_(this.treeAdapter),this.fragmentContextID=r?pn(this.treeAdapter.getTagName(r)):m.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new l_(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...rh,...n};t??(t=r.treeAdapter.createElement(I.TEMPLATE,P.HTML,[]));const i=r.treeAdapter.createElement("documentmock",P.HTML,[]),u=new this(r,i,t);return u.fragmentContextID===m.TEMPLATE&&u.tmplInsertionModeStack.unshift(k.IN_TEMPLATE),u._initTokenizerForFragmentParsing(),u._insertFakeRootElement(),u._resetInsertionMode(),u._findFormInFragmentContext(),u}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const u=(i=t.location)!==null&&i!==void 0?i:I_,a={code:n,startLine:u.startLine,startCol:u.startCol,startOffset:u.startOffset,endLine:r?u.startLine:u.endLine,endCol:r?u.startCol:u.endCol,endOffset:r?u.startOffset:u.endOffset};this.onParseError(a)}onItemPush(t,n,r){var i,u;(u=(i=this.treeAdapter).onItemPush)===null||u===void 0||u.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let u,a;this.openElements.stackTop===0&&this.fragmentContext?(u=this.fragmentContext,a=this.fragmentContextID):{current:u,currentTagId:a}=this.openElements,this._setContextModes(u,a)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===P.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,P.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=k.TEXT}switchToPlaintextParsing(){this.insertionMode=k.TEXT,this.originalInsertionMode=k.IN_BODY,this.tokenizer.state=ce.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===I.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==P.HTML))switch(this.fragmentContextID){case m.TITLE:case m.TEXTAREA:{this.tokenizer.state=ce.RCDATA;break}case m.STYLE:case m.XMP:case m.IFRAME:case m.NOEMBED:case m.NOFRAMES:case m.NOSCRIPT:{this.tokenizer.state=ce.RAWTEXT;break}case m.SCRIPT:{this.tokenizer.state=ce.SCRIPT_DATA;break}case m.PLAINTEXT:{this.tokenizer.state=ce.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,P.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,P.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(I.HTML,P.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,m.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),u=r?i.lastIndexOf(r):i.length,a=i[u-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:l,endCol:c,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:l,endCol:c,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),u=n.type===X.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,u)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===m.SVG&&this.treeAdapter.getTagName(n)===I.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===P.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===m.MGLYPH||t.tagID===m.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,P.HTML)}_processToken(t){switch(t.type){case X.CHARACTER:{this.onCharacter(t);break}case X.NULL_CHARACTER:{this.onNullCharacter(t);break}case X.COMMENT:{this.onComment(t);break}case X.DOCTYPE:{this.onDoctype(t);break}case X.START_TAG:{this._processStartTag(t);break}case X.END_TAG:{this.onEndTag(t);break}case X.EOF:{this.onEof(t);break}case X.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),u=this.treeAdapter.getAttrList(n);return w_(t,i,u,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===it.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const u=this.activeFormattingElements.entries[i];this._insertElement(u.token,this.treeAdapter.getNamespaceURI(u.element)),u.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=k.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(m.P),this.openElements.popUntilTagNamePopped(m.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case m.TR:{this.insertionMode=k.IN_ROW;return}case m.TBODY:case m.THEAD:case m.TFOOT:{this.insertionMode=k.IN_TABLE_BODY;return}case m.CAPTION:{this.insertionMode=k.IN_CAPTION;return}case m.COLGROUP:{this.insertionMode=k.IN_COLUMN_GROUP;return}case m.TABLE:{this.insertionMode=k.IN_TABLE;return}case m.BODY:{this.insertionMode=k.IN_BODY;return}case m.FRAMESET:{this.insertionMode=k.IN_FRAMESET;return}case m.SELECT:{this._resetInsertionModeForSelect(t);return}case m.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case m.HTML:{this.insertionMode=this.headElement?k.AFTER_HEAD:k.BEFORE_HEAD;return}case m.TD:case m.TH:{if(t>0){this.insertionMode=k.IN_CELL;return}break}case m.HEAD:{if(t>0){this.insertionMode=k.IN_HEAD;return}break}}this.insertionMode=k.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===m.TEMPLATE)break;if(r===m.TABLE){this.insertionMode=k.IN_SELECT_IN_TABLE;return}}this.insertionMode=k.IN_SELECT}_isElementCausesFosterParenting(t){return nh.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case m.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===P.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case m.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return J3[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){oS(this,t);return}switch(this.insertionMode){case k.INITIAL:{nr(this,t);break}case k.BEFORE_HTML:{rr(this,t);break}case k.BEFORE_HEAD:{ir(this,t);break}case k.IN_HEAD:{sr(this,t);break}case k.IN_HEAD_NO_SCRIPT:{ur(this,t);break}case k.AFTER_HEAD:{ar(this,t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:{uh(this,t);break}case k.TEXT:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{uu(this,t);break}case k.IN_TABLE_TEXT:{dh(this,t);break}case k.IN_COLUMN_GROUP:{pi(this,t);break}case k.AFTER_BODY:{Ai(this,t);break}case k.AFTER_AFTER_BODY:{Di(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){aS(this,t);return}switch(this.insertionMode){case k.INITIAL:{nr(this,t);break}case k.BEFORE_HTML:{rr(this,t);break}case k.BEFORE_HEAD:{ir(this,t);break}case k.IN_HEAD:{sr(this,t);break}case k.IN_HEAD_NO_SCRIPT:{ur(this,t);break}case k.AFTER_HEAD:{ar(this,t);break}case k.TEXT:{this._insertCharacters(t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{uu(this,t);break}case k.IN_COLUMN_GROUP:{pi(this,t);break}case k.AFTER_BODY:{Ai(this,t);break}case k.AFTER_AFTER_BODY:{Di(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){iu(this,t);return}switch(this.insertionMode){case k.INITIAL:case k.BEFORE_HTML:case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_TEMPLATE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{iu(this,t);break}case k.IN_TABLE_TEXT:{cr(this,t);break}case k.AFTER_BODY:{U_(this,t);break}case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{H_(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case k.INITIAL:{$_(this,t);break}case k.BEFORE_HEAD:case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:{this._err(t,O.misplacedDoctype);break}case k.IN_TABLE_TEXT:{cr(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,O.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?lS(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{nr(this,t);break}case k.BEFORE_HTML:{q_(this,t);break}case k.BEFORE_HEAD:{j_(this,t);break}case k.IN_HEAD:{Ze(this,t);break}case k.IN_HEAD_NO_SCRIPT:{V_(this,t);break}case k.AFTER_HEAD:{K_(this,t);break}case k.IN_BODY:{_e(this,t);break}case k.IN_TABLE:{gn(this,t);break}case k.IN_TABLE_TEXT:{cr(this,t);break}case k.IN_CAPTION:{YB(this,t);break}case k.IN_COLUMN_GROUP:{au(this,t);break}case k.IN_TABLE_BODY:{gi(this,t);break}case k.IN_ROW:{Ei(this,t);break}case k.IN_CELL:{WB(this,t);break}case k.IN_SELECT:{Eh(this,t);break}case k.IN_SELECT_IN_TABLE:{QB(this,t);break}case k.IN_TEMPLATE:{JB(this,t);break}case k.AFTER_BODY:{eS(this,t);break}case k.IN_FRAMESET:{tS(this,t);break}case k.AFTER_FRAMESET:{rS(this,t);break}case k.AFTER_AFTER_BODY:{sS(this,t);break}case k.AFTER_AFTER_FRAMESET:{uS(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?cS(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case k.INITIAL:{nr(this,t);break}case k.BEFORE_HTML:{z_(this,t);break}case k.BEFORE_HEAD:{Y_(this,t);break}case k.IN_HEAD:{G_(this,t);break}case k.IN_HEAD_NO_SCRIPT:{W_(this,t);break}case k.AFTER_HEAD:{Q_(this,t);break}case k.IN_BODY:{di(this,t);break}case k.TEXT:{OB(this,t);break}case k.IN_TABLE:{or(this,t);break}case k.IN_TABLE_TEXT:{cr(this,t);break}case k.IN_CAPTION:{GB(this,t);break}case k.IN_COLUMN_GROUP:{VB(this,t);break}case k.IN_TABLE_BODY:{ou(this,t);break}case k.IN_ROW:{gh(this,t);break}case k.IN_CELL:{KB(this,t);break}case k.IN_SELECT:{Ah(this,t);break}case k.IN_SELECT_IN_TABLE:{XB(this,t);break}case k.IN_TEMPLATE:{ZB(this,t);break}case k.AFTER_BODY:{Ch(this,t);break}case k.IN_FRAMESET:{nS(this,t);break}case k.AFTER_FRAMESET:{iS(this,t);break}case k.AFTER_AFTER_BODY:{Di(this,t);break}}}onEof(t){switch(this.insertionMode){case k.INITIAL:{nr(this,t);break}case k.BEFORE_HTML:{rr(this,t);break}case k.BEFORE_HEAD:{ir(this,t);break}case k.IN_HEAD:{sr(this,t);break}case k.IN_HEAD_NO_SCRIPT:{ur(this,t);break}case k.AFTER_HEAD:{ar(this,t);break}case k.IN_BODY:case k.IN_TABLE:case k.IN_CAPTION:case k.IN_COLUMN_GROUP:case k.IN_TABLE_BODY:case k.IN_ROW:case k.IN_CELL:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:{fh(this,t);break}case k.TEXT:{RB(this,t);break}case k.IN_TABLE_TEXT:{cr(this,t);break}case k.IN_TEMPLATE:{Dh(this,t);break}case k.AFTER_BODY:case k.IN_FRAMESET:case k.AFTER_FRAMESET:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{su(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===T.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case k.IN_HEAD:case k.IN_HEAD_NO_SCRIPT:case k.AFTER_HEAD:case k.TEXT:case k.IN_COLUMN_GROUP:case k.IN_SELECT:case k.IN_SELECT_IN_TABLE:case k.IN_FRAMESET:case k.AFTER_FRAMESET:{this._insertCharacters(t);break}case k.IN_BODY:case k.IN_CAPTION:case k.IN_CELL:case k.IN_TEMPLATE:case k.AFTER_BODY:case k.AFTER_AFTER_BODY:case k.AFTER_AFTER_FRAMESET:{sh(this,t);break}case k.IN_TABLE:case k.IN_TABLE_BODY:case k.IN_ROW:{uu(this,t);break}case k.IN_TABLE_TEXT:{mh(this,t);break}}}};function v_(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):hh(e,t),n}s(v_,"aaObtainFormattingElementEntry");function L_(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}s(L_,"aaObtainFurthestBlock");function O_(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let u=0,a=i;a!==n;u++,a=i){i=e.openElements.getCommonAncestor(a);const o=e.activeFormattingElements.getElementEntry(a),l=o&&u>=x_;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(a)):(a=R_(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}s(O_,"aaInnerLoop");function R_(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}s(R_,"aaRecreateElementFromEntry");function P_(e,t,n){const r=e.treeAdapter.getTagName(t),i=pn(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const u=e.treeAdapter.getNamespaceURI(t);i===m.TEMPLATE&&u===P.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}s(P_,"aaInsertLastNodeInCommonAncestor");function M_(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,u=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,u),e.treeAdapter.appendChild(t,u),e.activeFormattingElements.insertElementAfterBookmark(u,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,u,i.tagID)}s(M_,"aaReplaceFormattingElement");function ru(e,t){for(let n=0;n<N_;n++){const r=v_(e,t);if(!r)break;const i=L_(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const u=O_(e,i,r.element),a=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(u),a&&P_(e,a,u),M_(e,i,r)}}s(ru,"callAdoptionAgency");function iu(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}s(iu,"appendComment");function U_(e,t){e._appendCommentNode(t,e.openElements.items[0])}s(U_,"appendCommentToRootHtmlElement");function H_(e,t){e._appendCommentNode(t,e.document)}s(H_,"appendCommentToDocument");function su(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const u=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(u);a&&!a.endTag&&e._setEndLocation(u,t)}}}}s(su,"stopParsing");function $_(e,t){e._setDocumentType(t);const n=t.forceQuirks?ze.QUIRKS:E_(t);g_(t)||e._err(t,O.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=k.BEFORE_HTML}s($_,"doctypeInInitialMode");function nr(e,t){e._err(t,O.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ze.QUIRKS),e.insertionMode=k.BEFORE_HTML,e._processToken(t)}s(nr,"tokenInInitialMode");function q_(e,t){t.tagID===m.HTML?(e._insertElement(t,P.HTML),e.insertionMode=k.BEFORE_HEAD):rr(e,t)}s(q_,"startTagBeforeHtml");function z_(e,t){const n=t.tagID;(n===m.HTML||n===m.HEAD||n===m.BODY||n===m.BR)&&rr(e,t)}s(z_,"endTagBeforeHtml");function rr(e,t){e._insertFakeRootElement(),e.insertionMode=k.BEFORE_HEAD,e._processToken(t)}s(rr,"tokenBeforeHtml");function j_(e,t){switch(t.tagID){case m.HTML:{_e(e,t);break}case m.HEAD:{e._insertElement(t,P.HTML),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD;break}default:ir(e,t)}}s(j_,"startTagBeforeHead");function Y_(e,t){const n=t.tagID;n===m.HEAD||n===m.BODY||n===m.HTML||n===m.BR?ir(e,t):e._err(t,O.endTagWithoutMatchingOpenElement)}s(Y_,"endTagBeforeHead");function ir(e,t){e._insertFakeElement(I.HEAD,m.HEAD),e.headElement=e.openElements.current,e.insertionMode=k.IN_HEAD,e._processToken(t)}s(ir,"tokenBeforeHead");function Ze(e,t){switch(t.tagID){case m.HTML:{_e(e,t);break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:{e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case m.TITLE:{e._switchToTextParsing(t,ce.RCDATA);break}case m.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,ce.RAWTEXT):(e._insertElement(t,P.HTML),e.insertionMode=k.IN_HEAD_NO_SCRIPT);break}case m.NOFRAMES:case m.STYLE:{e._switchToTextParsing(t,ce.RAWTEXT);break}case m.SCRIPT:{e._switchToTextParsing(t,ce.SCRIPT_DATA);break}case m.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=k.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(k.IN_TEMPLATE);break}case m.HEAD:{e._err(t,O.misplacedStartTagForHeadElement);break}default:sr(e,t)}}s(Ze,"startTagInHead");function G_(e,t){switch(t.tagID){case m.HEAD:{e.openElements.pop(),e.insertionMode=k.AFTER_HEAD;break}case m.BODY:case m.BR:case m.HTML:{sr(e,t);break}case m.TEMPLATE:{Ut(e,t);break}default:e._err(t,O.endTagWithoutMatchingOpenElement)}}s(G_,"endTagInHead");function Ut(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==m.TEMPLATE&&e._err(t,O.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,O.endTagWithoutMatchingOpenElement)}s(Ut,"templateEndTagInHead");function sr(e,t){e.openElements.pop(),e.insertionMode=k.AFTER_HEAD,e._processToken(t)}s(sr,"tokenInHead");function V_(e,t){switch(t.tagID){case m.HTML:{_e(e,t);break}case m.BASEFONT:case m.BGSOUND:case m.HEAD:case m.LINK:case m.META:case m.NOFRAMES:case m.STYLE:{Ze(e,t);break}case m.NOSCRIPT:{e._err(t,O.nestedNoscriptInHead);break}default:ur(e,t)}}s(V_,"startTagInHeadNoScript");function W_(e,t){switch(t.tagID){case m.NOSCRIPT:{e.openElements.pop(),e.insertionMode=k.IN_HEAD;break}case m.BR:{ur(e,t);break}default:e._err(t,O.endTagWithoutMatchingOpenElement)}}s(W_,"endTagInHeadNoScript");function ur(e,t){const n=t.type===X.EOF?O.openElementsLeftAfterEof:O.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=k.IN_HEAD,e._processToken(t)}s(ur,"tokenInHeadNoScript");function K_(e,t){switch(t.tagID){case m.HTML:{_e(e,t);break}case m.BODY:{e._insertElement(t,P.HTML),e.framesetOk=!1,e.insertionMode=k.IN_BODY;break}case m.FRAMESET:{e._insertElement(t,P.HTML),e.insertionMode=k.IN_FRAMESET;break}case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{e._err(t,O.abandonedHeadElementChild),e.openElements.push(e.headElement,m.HEAD),Ze(e,t),e.openElements.remove(e.headElement);break}case m.HEAD:{e._err(t,O.misplacedStartTagForHeadElement);break}default:ar(e,t)}}s(K_,"startTagAfterHead");function Q_(e,t){switch(t.tagID){case m.BODY:case m.HTML:case m.BR:{ar(e,t);break}case m.TEMPLATE:{Ut(e,t);break}default:e._err(t,O.endTagWithoutMatchingOpenElement)}}s(Q_,"endTagAfterHead");function ar(e,t){e._insertFakeElement(I.BODY,m.BODY),e.insertionMode=k.IN_BODY,mi(e,t)}s(ar,"tokenAfterHead");function mi(e,t){switch(t.type){case X.CHARACTER:{uh(e,t);break}case X.WHITESPACE_CHARACTER:{sh(e,t);break}case X.COMMENT:{iu(e,t);break}case X.START_TAG:{_e(e,t);break}case X.END_TAG:{di(e,t);break}case X.EOF:{fh(e,t);break}}}s(mi,"modeInBody");function sh(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}s(sh,"whitespaceCharacterInBody");function uh(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}s(uh,"characterInBody");function X_(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}s(X_,"htmlStartTagInBody");function J_(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}s(J_,"bodyStartTagInBody");function Z_(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,P.HTML),e.insertionMode=k.IN_FRAMESET)}s(Z_,"framesetStartTagInBody");function eB(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,P.HTML)}s(eB,"addressStartTagInBody");function tB(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&eu.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,P.HTML)}s(tB,"numberedHeaderStartTagInBody");function nB(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,P.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}s(nB,"preStartTagInBody");function rB(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,P.HTML),n||(e.formElement=e.openElements.current))}s(rB,"formStartTagInBody");function iB(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===m.LI&&i===m.LI||(n===m.DD||n===m.DT)&&(i===m.DD||i===m.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==m.ADDRESS&&i!==m.DIV&&i!==m.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,P.HTML)}s(iB,"listItemStartTagInBody");function sB(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,P.HTML),e.tokenizer.state=ce.PLAINTEXT}s(sB,"plaintextStartTagInBody");function uB(e,t){e.openElements.hasInScope(m.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.framesetOk=!1}s(uB,"buttonStartTagInBody");function aB(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(I.A);n&&(ru(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}s(aB,"aStartTagInBody");function oB(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}s(oB,"bStartTagInBody");function lB(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(m.NOBR)&&(ru(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,P.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}s(lB,"nobrStartTagInBody");function cB(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}s(cB,"appletStartTagInBody");function hB(e,t){e.treeAdapter.getDocumentMode(e.document)!==ze.QUIRKS&&e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._insertElement(t,P.HTML),e.framesetOk=!1,e.insertionMode=k.IN_TABLE}s(hB,"tableStartTagInBody");function ah(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,P.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}s(ah,"areaStartTagInBody");function oh(e){const t=Hc(e,Mt.TYPE);return t!=null&&t.toLowerCase()===F_}s(oh,"isHiddenInput");function fB(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,P.HTML),oh(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}s(fB,"inputStartTagInBody");function mB(e,t){e._appendElement(t,P.HTML),t.ackSelfClosing=!0}s(mB,"paramStartTagInBody");function dB(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._appendElement(t,P.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}s(dB,"hrStartTagInBody");function pB(e,t){t.tagName=I.IMG,t.tagID=m.IMG,ah(e,t)}s(pB,"imageStartTagInBody");function gB(e,t){e._insertElement(t,P.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ce.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=k.TEXT}s(gB,"textareaStartTagInBody");function EB(e,t){e.openElements.hasInButtonScope(m.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ce.RAWTEXT)}s(EB,"xmpStartTagInBody");function AB(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ce.RAWTEXT)}s(AB,"iframeStartTagInBody");function lh(e,t){e._switchToTextParsing(t,ce.RAWTEXT)}s(lh,"rawTextStartTagInBody");function DB(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===k.IN_TABLE||e.insertionMode===k.IN_CAPTION||e.insertionMode===k.IN_TABLE_BODY||e.insertionMode===k.IN_ROW||e.insertionMode===k.IN_CELL?k.IN_SELECT_IN_TABLE:k.IN_SELECT}s(DB,"selectStartTagInBody");function CB(e,t){e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML)}s(CB,"optgroupStartTagInBody");function TB(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,P.HTML)}s(TB,"rbStartTagInBody");function yB(e,t){e.openElements.hasInScope(m.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(m.RTC),e._insertElement(t,P.HTML)}s(yB,"rtStartTagInBody");function bB(e,t){e._reconstructActiveFormattingElements(),eh(t),nu(t),t.selfClosing?e._appendElement(t,P.MATHML):e._insertElement(t,P.MATHML),t.ackSelfClosing=!0}s(bB,"mathStartTagInBody");function kB(e,t){e._reconstructActiveFormattingElements(),th(t),nu(t),t.selfClosing?e._appendElement(t,P.SVG):e._insertElement(t,P.SVG),t.ackSelfClosing=!0}s(kB,"svgStartTagInBody");function ch(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,P.HTML)}s(ch,"genericStartTagInBody");function _e(e,t){switch(t.tagID){case m.I:case m.S:case m.B:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.SMALL:case m.STRIKE:case m.STRONG:{oB(e,t);break}case m.A:{aB(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{tB(e,t);break}case m.P:case m.DL:case m.OL:case m.UL:case m.DIV:case m.DIR:case m.NAV:case m.MAIN:case m.MENU:case m.ASIDE:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.DETAILS:case m.ADDRESS:case m.ARTICLE:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{eB(e,t);break}case m.LI:case m.DD:case m.DT:{iB(e,t);break}case m.BR:case m.IMG:case m.WBR:case m.AREA:case m.EMBED:case m.KEYGEN:{ah(e,t);break}case m.HR:{dB(e,t);break}case m.RB:case m.RTC:{TB(e,t);break}case m.RT:case m.RP:{yB(e,t);break}case m.PRE:case m.LISTING:{nB(e,t);break}case m.XMP:{EB(e,t);break}case m.SVG:{kB(e,t);break}case m.HTML:{X_(e,t);break}case m.BASE:case m.LINK:case m.META:case m.STYLE:case m.TITLE:case m.SCRIPT:case m.BGSOUND:case m.BASEFONT:case m.TEMPLATE:{Ze(e,t);break}case m.BODY:{J_(e,t);break}case m.FORM:{rB(e,t);break}case m.NOBR:{lB(e,t);break}case m.MATH:{bB(e,t);break}case m.TABLE:{hB(e,t);break}case m.INPUT:{fB(e,t);break}case m.PARAM:case m.TRACK:case m.SOURCE:{mB(e,t);break}case m.IMAGE:{pB(e,t);break}case m.BUTTON:{uB(e,t);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{cB(e,t);break}case m.IFRAME:{AB(e,t);break}case m.SELECT:{DB(e,t);break}case m.OPTION:case m.OPTGROUP:{CB(e,t);break}case m.NOEMBED:case m.NOFRAMES:{lh(e,t);break}case m.FRAMESET:{Z_(e,t);break}case m.TEXTAREA:{gB(e,t);break}case m.NOSCRIPT:{e.options.scriptingEnabled?lh(e,t):ch(e,t);break}case m.PLAINTEXT:{sB(e,t);break}case m.COL:case m.TH:case m.TD:case m.TR:case m.HEAD:case m.FRAME:case m.TBODY:case m.TFOOT:case m.THEAD:case m.CAPTION:case m.COLGROUP:break;default:ch(e,t)}}s(_e,"startTagInBody");function _B(e,t){if(e.openElements.hasInScope(m.BODY)&&(e.insertionMode=k.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}s(_B,"bodyEndTagInBody");function BB(e,t){e.openElements.hasInScope(m.BODY)&&(e.insertionMode=k.AFTER_BODY,Ch(e,t))}s(BB,"htmlEndTagInBody");function SB(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}s(SB,"addressEndTagInBody");function wB(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(m.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(m.FORM):n&&e.openElements.remove(n))}s(wB,"formEndTagInBody");function FB(e){e.openElements.hasInButtonScope(m.P)||e._insertFakeElement(I.P,m.P),e._closePElement()}s(FB,"pEndTagInBody");function NB(e){e.openElements.hasInListItemScope(m.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(m.LI),e.openElements.popUntilTagNamePopped(m.LI))}s(NB,"liEndTagInBody");function xB(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}s(xB,"ddEndTagInBody");function IB(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}s(IB,"numberedHeaderEndTagInBody");function vB(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}s(vB,"appletEndTagInBody");function LB(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(I.BR,m.BR),e.openElements.pop(),e.framesetOk=!1}s(LB,"brEndTagInBody");function hh(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const u=e.openElements.items[i],a=e.openElements.tagIDs[i];if(r===a&&(r!==m.UNKNOWN||e.treeAdapter.getTagName(u)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(u,a))break}}s(hh,"genericEndTagInBody");function di(e,t){switch(t.tagID){case m.A:case m.B:case m.I:case m.S:case m.U:case m.EM:case m.TT:case m.BIG:case m.CODE:case m.FONT:case m.NOBR:case m.SMALL:case m.STRIKE:case m.STRONG:{ru(e,t);break}case m.P:{FB(e);break}case m.DL:case m.UL:case m.OL:case m.DIR:case m.DIV:case m.NAV:case m.PRE:case m.MAIN:case m.MENU:case m.ASIDE:case m.BUTTON:case m.CENTER:case m.FIGURE:case m.FOOTER:case m.HEADER:case m.HGROUP:case m.DIALOG:case m.ADDRESS:case m.ARTICLE:case m.DETAILS:case m.SEARCH:case m.SECTION:case m.SUMMARY:case m.LISTING:case m.FIELDSET:case m.BLOCKQUOTE:case m.FIGCAPTION:{SB(e,t);break}case m.LI:{NB(e);break}case m.DD:case m.DT:{xB(e,t);break}case m.H1:case m.H2:case m.H3:case m.H4:case m.H5:case m.H6:{IB(e);break}case m.BR:{LB(e);break}case m.BODY:{_B(e,t);break}case m.HTML:{BB(e,t);break}case m.FORM:{wB(e);break}case m.APPLET:case m.OBJECT:case m.MARQUEE:{vB(e,t);break}case m.TEMPLATE:{Ut(e,t);break}default:hh(e,t)}}s(di,"endTagInBody");function fh(e,t){e.tmplInsertionModeStack.length>0?Dh(e,t):su(e,t)}s(fh,"eofInBody");function OB(e,t){var n;t.tagID===m.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}s(OB,"endTagInText");function RB(e,t){e._err(t,O.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}s(RB,"eofInText");function uu(e,t){if(e.openElements.currentTagId!==void 0&&nh.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=k.IN_TABLE_TEXT,t.type){case X.CHARACTER:{dh(e,t);break}case X.WHITESPACE_CHARACTER:{mh(e,t);break}}else lr(e,t)}s(uu,"characterInTable");function PB(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,P.HTML),e.insertionMode=k.IN_CAPTION}s(PB,"captionStartTagInTable");function MB(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,P.HTML),e.insertionMode=k.IN_COLUMN_GROUP}s(MB,"colgroupStartTagInTable");function UB(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(I.COLGROUP,m.COLGROUP),e.insertionMode=k.IN_COLUMN_GROUP,au(e,t)}s(UB,"colStartTagInTable");function HB(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,P.HTML),e.insertionMode=k.IN_TABLE_BODY}s(HB,"tbodyStartTagInTable");function $B(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(I.TBODY,m.TBODY),e.insertionMode=k.IN_TABLE_BODY,gi(e,t)}s($B,"tdStartTagInTable");function qB(e,t){e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode(),e._processStartTag(t))}s(qB,"tableStartTagInTable");function zB(e,t){oh(t)?e._appendElement(t,P.HTML):lr(e,t),t.ackSelfClosing=!0}s(zB,"inputStartTagInTable");function jB(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,P.HTML),e.formElement=e.openElements.current,e.openElements.pop())}s(jB,"formStartTagInTable");function gn(e,t){switch(t.tagID){case m.TD:case m.TH:case m.TR:{$B(e,t);break}case m.STYLE:case m.SCRIPT:case m.TEMPLATE:{Ze(e,t);break}case m.COL:{UB(e,t);break}case m.FORM:{jB(e,t);break}case m.TABLE:{qB(e,t);break}case m.TBODY:case m.TFOOT:case m.THEAD:{HB(e,t);break}case m.INPUT:{zB(e,t);break}case m.CAPTION:{PB(e,t);break}case m.COLGROUP:{MB(e,t);break}default:lr(e,t)}}s(gn,"startTagInTable");function or(e,t){switch(t.tagID){case m.TABLE:{e.openElements.hasInTableScope(m.TABLE)&&(e.openElements.popUntilTagNamePopped(m.TABLE),e._resetInsertionMode());break}case m.TEMPLATE:{Ut(e,t);break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:lr(e,t)}}s(or,"endTagInTable");function lr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,mi(e,t),e.fosterParentingEnabled=n}s(lr,"tokenInTable");function mh(e,t){e.pendingCharacterTokens.push(t)}s(mh,"whitespaceCharacterInTableText");function dh(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}s(dh,"characterInTableText");function cr(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)lr(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}s(cr,"tokenInTableText");const ph=new Set([m.CAPTION,m.COL,m.COLGROUP,m.TBODY,m.TD,m.TFOOT,m.TH,m.THEAD,m.TR]);function YB(e,t){const n=t.tagID;ph.has(n)?e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,gn(e,t)):_e(e,t)}s(YB,"startTagInCaption");function GB(e,t){const n=t.tagID;switch(n){case m.CAPTION:case m.TABLE:{e.openElements.hasInTableScope(m.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(m.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_TABLE,n===m.TABLE&&or(e,t));break}case m.BODY:case m.COL:case m.COLGROUP:case m.HTML:case m.TBODY:case m.TD:case m.TFOOT:case m.TH:case m.THEAD:case m.TR:break;default:di(e,t)}}s(GB,"endTagInCaption");function au(e,t){switch(t.tagID){case m.HTML:{_e(e,t);break}case m.COL:{e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case m.TEMPLATE:{Ze(e,t);break}default:pi(e,t)}}s(au,"startTagInColumnGroup");function VB(e,t){switch(t.tagID){case m.COLGROUP:{e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=k.IN_TABLE);break}case m.TEMPLATE:{Ut(e,t);break}case m.COL:break;default:pi(e,t)}}s(VB,"endTagInColumnGroup");function pi(e,t){e.openElements.currentTagId===m.COLGROUP&&(e.openElements.pop(),e.insertionMode=k.IN_TABLE,e._processToken(t))}s(pi,"tokenInColumnGroup");function gi(e,t){switch(t.tagID){case m.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,P.HTML),e.insertionMode=k.IN_ROW;break}case m.TH:case m.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(I.TR,m.TR),e.insertionMode=k.IN_ROW,Ei(e,t);break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE,gn(e,t));break}default:gn(e,t)}}s(gi,"startTagInTableBody");function ou(e,t){const n=t.tagID;switch(t.tagID){case m.TBODY:case m.TFOOT:case m.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE);break}case m.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE,or(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:case m.TR:break;default:or(e,t)}}s(ou,"endTagInTableBody");function Ei(e,t){switch(t.tagID){case m.TH:case m.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,P.HTML),e.insertionMode=k.IN_CELL,e.activeFormattingElements.insertMarker();break}case m.CAPTION:case m.COL:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,gi(e,t));break}default:gn(e,t)}}s(Ei,"startTagInRow");function gh(e,t){switch(t.tagID){case m.TR:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY);break}case m.TABLE:{e.openElements.hasInTableScope(m.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,ou(e,t));break}case m.TBODY:case m.TFOOT:case m.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(m.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=k.IN_TABLE_BODY,ou(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:case m.TD:case m.TH:break;default:or(e,t)}}s(gh,"endTagInRow");function WB(e,t){const n=t.tagID;ph.has(n)?(e.openElements.hasInTableScope(m.TD)||e.openElements.hasInTableScope(m.TH))&&(e._closeTableCell(),Ei(e,t)):_e(e,t)}s(WB,"startTagInCell");function KB(e,t){const n=t.tagID;switch(n){case m.TD:case m.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=k.IN_ROW);break}case m.TABLE:case m.TBODY:case m.TFOOT:case m.THEAD:case m.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),gh(e,t));break}case m.BODY:case m.CAPTION:case m.COL:case m.COLGROUP:case m.HTML:break;default:di(e,t)}}s(KB,"endTagInCell");function Eh(e,t){switch(t.tagID){case m.HTML:{_e(e,t);break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e._insertElement(t,P.HTML);break}case m.OPTGROUP:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._insertElement(t,P.HTML);break}case m.HR:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop(),e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case m.INPUT:case m.KEYGEN:case m.TEXTAREA:case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),t.tagID!==m.SELECT&&e._processStartTag(t));break}case m.SCRIPT:case m.TEMPLATE:{Ze(e,t);break}}}s(Eh,"startTagInSelect");function Ah(e,t){switch(t.tagID){case m.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===m.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===m.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===m.OPTGROUP&&e.openElements.pop();break}case m.OPTION:{e.openElements.currentTagId===m.OPTION&&e.openElements.pop();break}case m.SELECT:{e.openElements.hasInSelectScope(m.SELECT)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode());break}case m.TEMPLATE:{Ut(e,t);break}}}s(Ah,"endTagInSelect");function QB(e,t){const n=t.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Eh(e,t)}s(QB,"startTagInSelectInTable");function XB(e,t){const n=t.tagID;n===m.CAPTION||n===m.TABLE||n===m.TBODY||n===m.TFOOT||n===m.THEAD||n===m.TR||n===m.TD||n===m.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(m.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ah(e,t)}s(XB,"endTagInSelectInTable");function JB(e,t){switch(t.tagID){case m.BASE:case m.BASEFONT:case m.BGSOUND:case m.LINK:case m.META:case m.NOFRAMES:case m.SCRIPT:case m.STYLE:case m.TEMPLATE:case m.TITLE:{Ze(e,t);break}case m.CAPTION:case m.COLGROUP:case m.TBODY:case m.TFOOT:case m.THEAD:{e.tmplInsertionModeStack[0]=k.IN_TABLE,e.insertionMode=k.IN_TABLE,gn(e,t);break}case m.COL:{e.tmplInsertionModeStack[0]=k.IN_COLUMN_GROUP,e.insertionMode=k.IN_COLUMN_GROUP,au(e,t);break}case m.TR:{e.tmplInsertionModeStack[0]=k.IN_TABLE_BODY,e.insertionMode=k.IN_TABLE_BODY,gi(e,t);break}case m.TD:case m.TH:{e.tmplInsertionModeStack[0]=k.IN_ROW,e.insertionMode=k.IN_ROW,Ei(e,t);break}default:e.tmplInsertionModeStack[0]=k.IN_BODY,e.insertionMode=k.IN_BODY,_e(e,t)}}s(JB,"startTagInTemplate");function ZB(e,t){t.tagID===m.TEMPLATE&&Ut(e,t)}s(ZB,"endTagInTemplate");function Dh(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(m.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):su(e,t)}s(Dh,"eofInTemplate");function eS(e,t){t.tagID===m.HTML?_e(e,t):Ai(e,t)}s(eS,"startTagAfterBody");function Ch(e,t){var n;if(t.tagID===m.HTML){if(e.fragmentContext||(e.insertionMode=k.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===m.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Ai(e,t)}s(Ch,"endTagAfterBody");function Ai(e,t){e.insertionMode=k.IN_BODY,mi(e,t)}s(Ai,"tokenAfterBody");function tS(e,t){switch(t.tagID){case m.HTML:{_e(e,t);break}case m.FRAMESET:{e._insertElement(t,P.HTML);break}case m.FRAME:{e._appendElement(t,P.HTML),t.ackSelfClosing=!0;break}case m.NOFRAMES:{Ze(e,t);break}}}s(tS,"startTagInFrameset");function nS(e,t){t.tagID===m.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==m.FRAMESET&&(e.insertionMode=k.AFTER_FRAMESET))}s(nS,"endTagInFrameset");function rS(e,t){switch(t.tagID){case m.HTML:{_e(e,t);break}case m.NOFRAMES:{Ze(e,t);break}}}s(rS,"startTagAfterFrameset");function iS(e,t){t.tagID===m.HTML&&(e.insertionMode=k.AFTER_AFTER_FRAMESET)}s(iS,"endTagAfterFrameset");function sS(e,t){t.tagID===m.HTML?_e(e,t):Di(e,t)}s(sS,"startTagAfterAfterBody");function Di(e,t){e.insertionMode=k.IN_BODY,mi(e,t)}s(Di,"tokenAfterAfterBody");function uS(e,t){switch(t.tagID){case m.HTML:{_e(e,t);break}case m.NOFRAMES:{Ze(e,t);break}}}s(uS,"startTagAfterAfterFrameset");function aS(e,t){t.chars=le,e._insertCharacters(t)}s(aS,"nullCharacterInForeignContent");function oS(e,t){e._insertCharacters(t),e.framesetOk=!1}s(oS,"characterInForeignContent");function Th(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==P.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}s(Th,"popUntilHtmlOrIntegrationPoint");function lS(e,t){if(k_(t))Th(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===P.MATHML?eh(t):r===P.SVG&&(__(t),th(t)),nu(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}s(lS,"startTagInForeignContent");function cS(e,t){if(t.tagID===m.P||t.tagID===m.BR){Th(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===P.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}s(cS,"endTagInForeignContent"),I.AREA,I.BASE,I.BASEFONT,I.BGSOUND,I.BR,I.COL,I.EMBED,I.FRAME,I.HR,I.IMG,I.INPUT,I.KEYGEN,I.LINK,I.META,I.PARAM,I.SOURCE,I.TRACK,I.WBR;const Ci=yh("end"),pt=yh("start");function yh(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}s(yh,"point$2");function hS(e){const t=pt(e),n=Ci(e);if(t&&n)return{start:t,end:n}}s(hS,"position$1");const fS=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,mS=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),bh={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function kh(e,t){const n=bS(e),r=ys("type",{handlers:{root:dS,element:pS,text:gS,comment:Bh,doctype:ES,raw:DS},unknown:CS}),i={parser:n?new ih(bh):ih.getFragmentParser(void 0,bh),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),En(i,pt());const u=n?i.parser.document:i.parser.getFragment(),a=k3(u,{file:i.options.file});return i.stitches&&se(a,"comment",function(o,l,c){const f=o;if(f.value.stitch&&c&&l!==void 0){const h=c.children;return h[l]=f.value.stitch,l}}),a.type==="root"&&a.children.length===1&&a.children[0].type===e.type?a.children[0]:a}s(kh,"raw");function _h(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}s(_h,"all$1");function dS(e,t){_h(e.children,t)}s(dS,"root$2");function pS(e,t){TS(e,t),_h(e.children,t),yS(e,t)}s(pS,"element");function gS(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:X.CHARACTER,chars:e.value,location:hr(e)};En(t,pt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}s(gS,"text$5");function ES(e,t){const n={type:X.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:hr(e)};En(t,pt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}s(ES,"doctype");function AS(e,t){t.stitches=!0;const n=kS(e);if("children"in e&&"children"in n){const r=kh({type:"root",children:e.children},t.options);n.children=r.children}Bh({type:"comment",value:{stitch:n}},t)}s(AS,"stitch");function Bh(e,t){const n=e.value,r={type:X.COMMENT,data:n,location:hr(e)};En(t,pt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}s(Bh,"comment");function DS(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Sh(t,pt(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(fS,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}s(DS,"handleRaw");function CS(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))AS(n,t);else{let r="";throw mS.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}s(CS,"unknown");function En(e,t){Sh(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=ce.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}s(En,"resetTokenizer");function Sh(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}s(Sh,"setPoint");function TS(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ce.PLAINTEXT)return;En(t,pt(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Pt.html;i===Pt.html&&n==="svg"&&(i=Pt.svg);const u=F3({...e,children:[]},{space:i===Pt.svg?"svg":"html"}),a={type:X.START_TAG,tagName:n,tagID:pn(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in u?u.attrs:[],location:hr(e)};t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}s(TS,"startTag");function yS(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&dl.includes(n)||t.parser.tokenizer.state===ce.PLAINTEXT)return;En(t,Ci(e));const r={type:X.END_TAG,tagName:n,tagID:pn(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:hr(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ce.RCDATA||t.parser.tokenizer.state===ce.RAWTEXT||t.parser.tokenizer.state===ce.SCRIPT_DATA)&&(t.parser.tokenizer.state=ce.DATA)}s(yS,"endTag");function bS(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}s(bS,"documentMode");function hr(e){const t=pt(e)||{line:void 0,column:void 0,offset:void 0},n=Ci(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}s(hr,"createParse5Location");function kS(e){return"children"in e?fn({...e,children:[]}):fn(e)}s(kS,"cloneWithoutChildren");function _S(e){return function(t,n){return kh(t,{...e,file:n})}}s(_S,"rehypeRaw");function BS(e){const t=this,n={...t.data("settings"),...e};t.compiler=r;function r(i){return Ml(i,n)}s(r,"compiler")}s(BS,"rehypeStringify");function SS(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}s(SS,"blockquote$1");function wS(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
22
|
-
`}]}s(wS,"hardBreak$1");function FS(e,t){const n=t.value?t.value+`
|
|
23
|
-
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let u={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(u.data={meta:t.meta}),e.patch(t,u),u=e.applyData(t,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(t,u),u}s(FS,"code$2");function NS(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}s(NS,"strikethrough");function xS(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}s(xS,"emphasis$1");const we=St(/[A-Za-z]/),Be=St(/[\dA-Za-z]/),IS=St(/[#-'*+\--9=?A-Z^-~]/);function Ti(e){return e!==null&&(e<32||e===127)}s(Ti,"asciiControl");const lu=St(/\d/),vS=St(/[\dA-Fa-f]/),LS=St(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}s(z,"markdownLineEnding");function ue(e){return e!==null&&(e<0||e===32)}s(ue,"markdownLineEndingOrSpace");function Q(e){return e===-2||e===-1||e===32}s(Q,"markdownSpace");const yi=St(new RegExp("\\p{P}|\\p{S}","u")),Ht=St(/\s/);function St(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}s(St,"regexCheck");const OS={'"':"quot","&":"amp","<":"lt",">":"gt"};function RS(e){return e.replace(/["&<>]/g,t);function t(n){return"&"+OS[n]+";"}}s(RS,"encode");function wh(e,t){return RS($t(e||""))}s(wh,"sanitizeUri");function $t(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const u=e.charCodeAt(n);let a="";if(u===37&&Be(e.charCodeAt(n+1))&&Be(e.charCodeAt(n+2)))i=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(a=String.fromCharCode(u));else if(u>55295&&u<57344){const o=e.charCodeAt(n+1);u<56320&&o>56319&&o<57344?(a=String.fromCharCode(u,o),i=1):a="\uFFFD"}else a=String.fromCharCode(u);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}s($t,"normalizeUri");function PS(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=$t(r.toLowerCase()),u=e.footnoteOrder.indexOf(r);let a,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=u+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}s(PS,"footnoteReference$1");function MS(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}s(MS,"heading$1");function US(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}s(US,"html$1");function Fh(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),u=i[0];u&&u.type==="text"?u.value="["+u.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}s(Fh,"revert");function HS(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Fh(e,t);const i={src:$t(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const u={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,u),e.applyData(t,u)}s(HS,"imageReference$1");function $S(e,t){const n={src:$t(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}s($S,"image$1");function qS(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}s(qS,"inlineCode$1");function zS(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Fh(e,t);const i={href:$t(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const u={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,u),e.applyData(t,u)}s(zS,"linkReference$1");function jS(e,t){const n={href:$t(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}s(jS,"link$1");function YS(e,t,n){const r=e.all(t),i=n?GS(n):Nh(t),u={},a=[];if(typeof t.checked=="boolean"){const f=r[0];let h;f&&f.type==="element"&&f.tagName==="p"?h=f:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const f=r[o];(i||o!==0||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:`
|
|
24
|
-
`}),f.type==="element"&&f.tagName==="p"&&!i?a.push(...f.children):a.push(f)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
|
|
25
|
-
`});const c={type:"element",tagName:"li",properties:u,children:a};return e.patch(t,c),e.applyData(t,c)}s(YS,"listItem$1");function GS(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Nh(n[r])}return t}s(GS,"listLoose");function Nh(e){const t=e.spread;return t??e.children.length>1}s(Nh,"listItemLoose");function VS(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const u={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,u),e.applyData(t,u)}s(VS,"list$2");function WS(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}s(WS,"paragraph$1");function KS(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}s(KS,"root$1");function QS(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}s(QS,"strong$1");function XS(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=pt(t.children[1]),l=Ci(t.children[t.children.length-1]);o&&l&&(a.position={start:o,end:l}),i.push(a)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,u),e.applyData(t,u)}s(XS,"table");function JS(e,t,n){const r=n?n.children:void 0,u=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,o=a?a.length:t.children.length;let l=-1;const c=[];for(;++l<o;){const h=t.children[l],p={},d=a?a[l]:void 0;d&&(p.align=d);let E={type:"element",tagName:u,properties:p,children:[]};h&&(E.children=e.all(h),e.patch(h,E),E=e.applyData(h,E)),c.push(E)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}s(JS,"tableRow");function ZS(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}s(ZS,"tableCell");const xh=9,Ih=32;function e4(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const u=[];for(;r;)u.push(vh(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return u.push(vh(t.slice(i),i>0,!1)),u.join("")}s(e4,"trimLines");function vh(e,t,n){let r=0,i=e.length;if(t){let u=e.codePointAt(r);for(;u===xh||u===Ih;)r++,u=e.codePointAt(r)}if(n){let u=e.codePointAt(i-1);for(;u===xh||u===Ih;)i--,u=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}s(vh,"trimLine");function t4(e,t){const n={type:"text",value:e4(String(t.value))};return e.patch(t,n),e.applyData(t,n)}s(t4,"text$4");function n4(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}s(n4,"thematicBreak$2");const r4={blockquote:SS,break:wS,code:FS,delete:NS,emphasis:xS,footnoteReference:PS,heading:MS,html:US,imageReference:HS,image:$S,inlineCode:qS,linkReference:zS,link:jS,listItem:YS,list:VS,paragraph:WS,root:KS,strong:QS,table:XS,tableCell:ZS,tableRow:JS,text:t4,thematicBreak:n4,toml:bi,yaml:bi,definition:bi,footnoteDefinition:bi};function bi(){}s(bi,"ignore");function i4(e,t){const n=[{type:"text",value:"\u21A9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}s(i4,"defaultFootnoteBackContent");function s4(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}s(s4,"defaultFootnoteBackLabel");function u4(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||i4,r=e.options.footnoteBackLabel||s4,i=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const f=e.all(c),h=String(c.identifier).toUpperCase(),p=$t(h.toLowerCase());let d=0;const E=[],g=e.footnoteCounts.get(h);for(;g!==void 0&&++d<=g;){E.length>0&&E.push({type:"text",value:" "});let y=typeof n=="string"?n:n(l,d);typeof y=="string"&&(y={type:"text",value:y}),E.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,d),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const D=f[f.length-1];if(D&&D.type==="element"&&D.tagName==="p"){const y=D.children[D.children.length-1];y&&y.type==="text"?y.value+=" ":D.children.push({type:"text",value:" "}),D.children.push(...E)}else f.push(...E);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(c,A),o.push(A)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...fn(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
26
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
27
|
-
`}]}}s(u4,"footer");const cu={}.hasOwnProperty,a4={};function o4(e,t){const n=t||a4,r=new Map,i=new Map,u=new Map,a={...r4,...n.handlers},o={all:c,applyData:c4,definitionById:r,footnoteById:i,footnoteCounts:u,footnoteOrder:[],handlers:a,one:l,options:n,patch:l4,wrap:f4};return se(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const h=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();h.has(p)||h.set(p,f)}}),o;function l(f,h){const p=f.type,d=o.handlers[p];if(cu.call(o.handlers,p)&&d)return d(o,f,h);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in f){const{children:g,...D}=f,A=fn(D);return A.children=o.all(f),A}return fn(f)}return(o.options.unknownHandler||h4)(o,f,h)}s(l,"one");function c(f){const h=[];if("children"in f){const p=f.children;let d=-1;for(;++d<p.length;){const E=o.one(p[d],f);if(E){if(d&&p[d-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Lh(E.value)),!Array.isArray(E)&&E.type==="element")){const g=E.children[0];g&&g.type==="text"&&(g.value=Lh(g.value))}Array.isArray(E)?h.push(...E):h.push(E)}}}return h}s(c,"all")}s(o4,"createState");function l4(e,t){e.position&&(t.position=hS(e))}s(l4,"patch");function c4(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,u=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&u&&Object.assign(n.properties,fn(u)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}s(c4,"applyData");function h4(e,t){const n=t.data||{},r="value"in t&&!(cu.call(n,"hProperties")||cu.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}s(h4,"defaultUnknownHandler");function f4(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
28
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
29
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
30
|
-
`}),n}s(f4,"wrap$1");function Lh(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}s(Lh,"trimMarkdownSpaceStart");function Oh(e,t){const n=o4(e,t),r=n.one(e,void 0),i=u4(n),u=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&u.children.push({type:"text",value:`
|
|
31
|
-
`},i),u}s(Oh,"toHast");function m4(e,t){return e&&"run"in e?async function(n,r){const i=Oh(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Oh(n,{file:r,...e||t})}}s(m4,"remarkRehype");function Rh(e){if(e)throw e}s(Rh,"bail");function ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}s(ki,"getDefaultExportFromCjs");var hu,Ph;function d4(){if(Ph)return hu;Ph=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=s(function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},"isArray2"),u=s(function(c){if(!c||t.call(c)!=="[object Object]")return!1;var f=e.call(c,"constructor"),h=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!f&&!h)return!1;var p;for(p in c);return typeof p>"u"||e.call(c,p)},"isPlainObject2"),a=s(function(c,f){n&&f.name==="__proto__"?n(c,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):c[f.name]=f.newValue},"setProperty2"),o=s(function(c,f){if(f==="__proto__")if(e.call(c,f)){if(r)return r(c,f).value}else return;return c[f]},"getProperty2");return hu=s(function l(){var c,f,h,p,d,E,g=arguments[0],D=1,A=arguments.length,y=!1;for(typeof g=="boolean"&&(y=g,g=arguments[1]||{},D=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});D<A;++D)if(c=arguments[D],c!=null)for(f in c)h=o(g,f),p=o(c,f),g!==p&&(y&&p&&(u(p)||(d=i(p)))?(d?(d=!1,E=h&&i(h)?h:[]):E=h&&u(h)?h:{},a(g,{name:f,newValue:l(y,E,p)})):typeof p<"u"&&a(g,{name:f,newValue:p}));return g},"extend"),hu}s(d4,"requireExtend");var p4=d4(),fu=ki(p4);function mu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}s(mu,"isPlainObject");function g4(){const e=[],t={run:n,use:r};return t;function n(...i){let u=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(l,...c){const f=e[++u];let h=-1;if(l){a(l);return}for(;++h<i.length;)(c[h]===null||c[h]===void 0)&&(c[h]=i[h]);i=c,f?E4(f,o)(...c):a(null,...c)}s(o,"next")}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}s(g4,"trough");function E4(e,t){let n;return r;function r(...a){const o=e.length>a.length;let l;o&&a.push(i);try{l=e.apply(this,a)}catch(c){const f=c;if(o&&n)throw f;return i(f)}o||(l&&l.then&&typeof l.then=="function"?l.then(u,i):l instanceof Error?i(l):u(l))}function i(a,...o){n||(n=!0,t(a,...o))}function u(a){i(null,a)}}s(E4,"wrap");function fr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Mh(e.position):"start"in e||"end"in e?Mh(e):"line"in e||"column"in e?du(e):""}s(fr,"stringifyPosition");function du(e){return Uh(e&&e.line)+":"+Uh(e&&e.column)}s(du,"point$1");function Mh(e){return du(e&&e.start)+"-"+du(e&&e.end)}s(Mh,"position");function Uh(e){return e&&typeof e=="number"?e:1}s(Uh,"index");class Oe extends Error{static{s(this,"VFileMessage")}constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",u={},a=!1;if(n&&("line"in n&&"column"in n?u={place:n}:"start"in n&&"end"in n?u={place:n}:"type"in n?u={ancestors:[n],place:n.position}:u={...n}),typeof t=="string"?i=t:!u.cause&&t&&(a=!0,i=t.message,u.cause=t),!u.ruleId&&!u.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?u.ruleId=r:(u.source=r.slice(0,l),u.ruleId=r.slice(l+1))}if(!u.place&&u.ancestors&&u.ancestors){const l=u.ancestors[u.ancestors.length-1];l&&(u.place=l.position)}const o=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=fr(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=a&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Oe.prototype.file="",Oe.prototype.name="",Oe.prototype.reason="",Oe.prototype.message="",Oe.prototype.stack="",Oe.prototype.column=void 0,Oe.prototype.line=void 0,Oe.prototype.ancestors=void 0,Oe.prototype.cause=void 0,Oe.prototype.fatal=void 0,Oe.prototype.place=void 0,Oe.prototype.ruleId=void 0,Oe.prototype.source=void 0;const st={basename:A4,dirname:D4,extname:C4,join:T4,sep:"/"};function A4(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');mr(e);let n=0,r=-1,i=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(u){n=i+1;break}}else r<0&&(u=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(u){n=i+1;break}}else a<0&&(u=!0,a=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}s(A4,"basename");function D4(e){if(mr(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}s(D4,"dirname");function C4(e){mr(e);let t=e.length,n=-1,r=0,i=-1,u=0,a;for(;t--;){const o=e.codePointAt(t);if(o===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),o===46?i<0?i=t:u!==1&&(u=1):i>-1&&(u=-1)}return i<0||n<0||u===0||u===1&&i===n-1&&i===r+1?"":e.slice(i,n)}s(C4,"extname");function T4(...e){let t=-1,n;for(;++t<e.length;)mr(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":y4(n)}s(T4,"join");function y4(e){mr(e);const t=e.codePointAt(0)===47;let n=b4(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}s(y4,"normalize$1");function b4(e,t){let n="",r=0,i=-1,u=0,a=-1,o,l;for(;++a<=e.length;){if(a<e.length)o=e.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||u===1))if(i!==a-1&&u===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,u=0;continue}}else if(n.length>0){n="",r=0,i=a,u=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,u=0}else o===46&&u>-1?u++:u=-1}return n}s(b4,"normalizeString");function mr(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}s(mr,"assertPath$2");const k4={cwd:_4};function _4(){return"/"}s(_4,"cwd");function pu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}s(pu,"isUrl$1");function B4(e){if(typeof e=="string")e=new URL(e);else if(!pu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return S4(e)}s(B4,"urlToPath");function S4(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}s(S4,"getPathFromURLPosix");const gu=["history","path","basename","stem","extname","dirname"];class w4{static{s(this,"VFile")}constructor(t){let n;t?pu(t)?n={path:t}:typeof t=="string"||F4(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":k4.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<gu.length;){const u=gu[r];u in n&&n[u]!==void 0&&n[u]!==null&&(this[u]=u==="history"?[...n[u]]:n[u])}let i;for(i in n)gu.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?st.basename(this.path):void 0}set basename(t){Au(t,"basename"),Eu(t,"basename"),this.path=st.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?st.dirname(this.path):void 0}set dirname(t){Hh(this.basename,"dirname"),this.path=st.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?st.extname(this.path):void 0}set extname(t){if(Eu(t,"extname"),Hh(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=st.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){pu(t)&&(t=B4(t)),Au(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?st.basename(this.path,this.extname):void 0}set stem(t){Au(t,"stem"),Eu(t,"stem"),this.path=st.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Oe(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Eu(e,t){if(e&&e.includes(st.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+st.sep+"`")}s(Eu,"assertPart");function Au(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}s(Au,"assertNonEmpty");function Hh(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}s(Hh,"assertPath$1");function F4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}s(F4,"isUint8Array$1");const N4=s((function(e){const r=this.constructor.prototype,i=r[e],u=s(function(){return i.apply(u,arguments)},"apply");return Object.setPrototypeOf(u,r),u}),"CallableInstance"),x4={}.hasOwnProperty;class Fo extends N4{static{s(this,"Processor")}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=g4()}copy(){const t=new Fo;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(fu(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(yu("data",this.frozen),this.namespace[t]=n,this):x4.call(this.namespace,t)&&this.namespace[t]||void 0:t?(yu("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=_i(t),r=this.parser||this.Parser;return Cu("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Cu("process",this.parser||this.Parser),Tu("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(u,a){const o=_i(t),l=r.parse(o);r.run(l,o,function(f,h,p){if(f||!h||!p)return c(f);const d=h,E=r.stringify(d,p);v4(E)?p.value=E:p.result=E,c(f,p)});function c(f,h){f||!h?a(f):u?u(h):n(void 0,h)}s(c,"realDone")}s(i,"executor")}processSync(t){let n=!1,r;return this.freeze(),Cu("processSync",this.parser||this.Parser),Tu("processSync",this.compiler||this.Compiler),this.process(t,i),qh("processSync","process",n),r;function i(u,a){n=!0,Rh(u),r=a}s(i,"realDone")}run(t,n,r){$h(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?u(void 0,r):new Promise(u);function u(a,o){const l=_i(n);i.run(t,l,c);function c(f,h,p){const d=h||t;f?o(f):a?a(d):r(void 0,d,p)}s(c,"realDone")}s(u,"executor")}runSync(t,n){let r=!1,i;return this.run(t,n,u),qh("runSync","run",r),i;function u(a,o){Rh(a),i=o,r=!0}s(u,"realDone")}stringify(t,n){this.freeze();const r=_i(n),i=this.compiler||this.Compiler;return Tu("stringify",i),$h(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(yu("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...h]=c;l(f,h)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(c.plugins),c.settings&&(i.settings=fu(!0,i.settings,c.settings))}function o(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const h=c[f];u(h)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,f){let h=-1,p=-1;for(;++h<r.length;)if(r[h][0]===c){p=h;break}if(p===-1)r.push([c,...f]);else if(f.length>0){let[d,...E]=f;const g=r[p][1];mu(g)&&mu(d)&&(d=fu(!0,g,d)),r[p]=[c,d,...E]}}}}const Du=new Fo().freeze();function Cu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}s(Cu,"assertParser");function Tu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}s(Tu,"assertCompiler");function yu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}s(yu,"assertUnfrozen");function $h(e){if(!mu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}s($h,"assertNode");function qh(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}s(qh,"assertDone");function _i(e){return I4(e)?e:new w4(e)}s(_i,"vfile");function I4(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}s(I4,"looksLikeAVFile");function v4(e){return typeof e=="string"||L4(e)}s(v4,"looksLikeAValue");function L4(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}s(L4,"isUint8Array");function ne(e,t,n){const r={type:String(e)};return n==null&&(typeof t=="string"||Array.isArray(t))?n=t:Object.assign(r,t),Array.isArray(n)?r.children=n:n!=null&&(r.value=String(n)),r}s(ne,"u");const bu={32:16777619n,64:1099511628211n,128:309485009821345068724781371n,256:374144419156711147060143317175368453031918731002211n,512:35835915874844867368919076489095108449946327955754392558399825615420669938882575126094039892345713852759n,1024:5016456510113118655434598811035278955030765345404790744303017523831112055108147451509157692220295382716162651878526895249385292291816524375083746691371804094271873160484737966720260389217684476157468082573n},zh={32:2166136261n,64:14695981039346656037n,128:144066263297769815596495629667062367629n,256:100029257958052580907070968620625704837092796014241193945225284501741471925557n,512:9659303129496669498009435400716310466090418745672637896108374329434462657994582932197716438449813051892206539805784495328239340083876191928701583869517785n,1024:14197795064947621068722070641403218320880622795441933960878474914617582723252296732303717722150864096521202355549365628174669108571814760471015076148029755969804077320157692458563003215304957150157403644460363550505412711285966361610267868082893823963790439336411086884584107735010676915n},jh=new globalThis.TextEncoder;function O4(e,t){const n=bu[t];let r=zh[t];for(let i=0;i<e.length;i++)r^=BigInt(e[i]),r=BigInt.asUintN(t,r*n);return r}s(O4,"fnv1aUint8Array");function R4(e,t,n){if(n.length===0)throw new Error("The `utf8Buffer` option must have a length greater than zero");const r=bu[t];let i=zh[t],u=e;for(;u.length>0;){const a=jh.encodeInto(u,n);u=u.slice(a.read);for(let o=0;o<a.written;o++)i^=BigInt(n[o]),i=BigInt.asUintN(t,i*r)}return i}s(R4,"fnv1aEncodeInto");function P4(e,{size:t=32,utf8Buffer:n}={}){if(!bu[t])throw new Error("The `size` option must be one of 32, 64, 128, 256, 512, or 1024");if(typeof e=="string"){if(n)return R4(e,t,n);e=jh.encode(e)}return O4(e,t)}s(P4,"fnv1a");function Bi(e,t){return P4(e,{size:64}).toString(16).padStart(t,"0")}s(Bi,"getHash");function ku(e){return e.charAt(0).toUpperCase()+e.slice(1)}s(ku,"capitalize");function _u(e,t,n="...",r=" "){if(e.length<=t)return e;const i=t-n.length,u=e.split(r);for(;u.length>1&&u.join(r).length>i;)u.pop();return`${u.join(r).slice(0,i)}${n}`}s(_u,"truncateOnWordBoundary");function M4(e){return e.toLowerCase().replaceAll(/[^\da-z]/gi," ").trim().replaceAll(/ +/g,"-")}s(M4,"cleanClassName");function gt(e){if(e!==void 0)return e.trim()===""?void 0:e}s(gt,"emptyIsUndefined");function U4(e,...t){return H4(e,...t)}s(U4,"css");function H4(e,...t){const n=e.reduce((u,a,o)=>`${u}${a}${String(t[o]??"")}`,"").split(/\r?\n/).filter(u=>u.trim()!==""),r=/^(\s+)/.exec(n[0])?.[0]??"",i=new RegExp(`^${r}`);return n.map(u=>u.replace(i,"").trimEnd()).join(`
|
|
32
|
-
`)}s(H4,"trimLeadingIndentation");function $4(e,t){const n=e.match(t);if(n?.index===void 0)return[e,void 0];const{index:r}=n,i=e.slice(0,r),u=e.slice(r);return[i,u]}s($4,"splitAtFirstMatch");const q4=U4`
|
|
33
|
-
.card {
|
|
34
|
-
font-family: arial;
|
|
35
|
-
font-size: 20px;
|
|
36
|
-
text-align: center;
|
|
37
|
-
color: black;
|
|
38
|
-
background-color: white;
|
|
39
|
-
}
|
|
40
|
-
`,qt="yanki",Bu=!0,Yh=60,z4="Yanki",Su="(Empty)",j4=ne("element",{properties:{},tagName:"p"},[ne("element",{properties:{},tagName:"em"},[ne("text",Su)])]),Y4="metadata",G4="metadata",V4="metadata",Gh=120,wu="Untitled",Vh=["avif","gif","ico","jpeg","jpg","png","svg","tif","tiff","webp"],Wh=["3gp","aac","avi","flac","flv","m4a","mkv","mov","mp3","mp4","mpeg","mpg","oga","ogg","ogv","ogx","opus","spx","swf","wav","webm"],Kh=["md","pdf"],Qh=[...Wh,...Vh,...Kh];function ut(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}s(ut,"assertPath");function Xh(e,t){for(var n="",r=0,i=-1,u=0,a,o=0;o<=e.length;++o){if(o<e.length)a=e.charCodeAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||u===1))if(i!==o-1&&u===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){l===-1?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=o,u=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=o,u=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,u=0}else a===46&&u!==-1?++u:u=-1}return n}s(Xh,"normalizeStringPosix");function W4(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}s(W4,"_format");var ee={process_cwd:"",setCWD:s(function(t){ee.process_cwd=t},"setCWD"),resolve:s(function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var u;i>=0?u=arguments[i]:(r===void 0&&(r=ee.process_cwd),u=r),ut(u),u.length!==0&&u+"/"!==t&&(t=u+"/"+t,n=u.charCodeAt(0)===47)}return t=Xh(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},"resolve"),normalize:s(function(t){if(ut(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Xh(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},"normalize"),isAbsolute:s(function(t){return ut(t),t.length>0&&t.charCodeAt(0)===47},"isAbsolute"),join:s(function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];ut(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":ee.normalize(t)},"join"),relative:s(function(t,n){if(ut(t),ut(n),t===n)return"";const r=t.replaceAll("\\","/"),i=n.replaceAll("\\","/");if(r!=t&&i!=n)return ee.relative(r,i).replaceAll("/","\\");if(r!=t)return ee.relative(r,n).replaceAll("/","\\");if(i!=n)return ee.relative(t,i);if(t=ee.resolve(t),n=ee.resolve(n),t===n)return"";for(var u=1;u<t.length&&t.charCodeAt(u)===47;++u);for(var a=t.length,o=a-u,l=1;l<n.length&&n.charCodeAt(l)===47;++l);for(var c=n.length,f=c-l,h=o<f?o:f,p=-1,d=0;d<=h;++d){if(d===h){if(f>h){if(n.charCodeAt(l+d)===47)return n.slice(l+d+1);if(d===0)return n.slice(l+d)}else o>h&&(t.charCodeAt(u+d)===47?p=d:d===0&&(p=0));break}var E=t.charCodeAt(u+d),g=n.charCodeAt(l+d);if(E!==g)break;E===47&&(p=d)}var D="";for(d=u+p+1;d<=a;++d)(d===a||t.charCodeAt(d)===47)&&(D.length===0?D+="..":D+="/..");return D.length>0?D+n.slice(l+p):(l+=p,n.charCodeAt(l)===47&&++l,n.slice(l))},"relative"),_makeLong:s(function(t){return t},"_makeLong"),dirname:s(function(t){if(ut(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,u=!0,a=t.length-1;a>=1;--a)if(n=t.charCodeAt(a),n===47){if(!u){i=a;break}}else u=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},"dirname"),basename:s(function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ut(t);var r=0,i=-1,u=!0,a;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var o=n.length-1,l=-1;for(a=t.length-1;a>=0;--a){var c=t.charCodeAt(a);if(c===47){if(!u){r=a+1;break}}else l===-1&&(u=!1,l=a+1),o>=0&&(c===n.charCodeAt(o)?--o===-1&&(i=a):(o=-1,i=l))}return r===i?i=l:i===-1&&(i=t.length),t.slice(r,i)}else{for(a=t.length-1;a>=0;--a)if(t.charCodeAt(a)===47){if(!u){r=a+1;break}}else i===-1&&(u=!1,i=a+1);return i===-1?"":t.slice(r,i)}},"basename"),extname:s(function(t){ut(t);for(var n=-1,r=0,i=-1,u=!0,a=0,o=t.length-1;o>=0;--o){var l=t.charCodeAt(o);if(l===47){if(!u){r=o+1;break}continue}i===-1&&(u=!1,i=o+1),l===46?n===-1?n=o:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":t.slice(n,i)},"extname"),format:s(function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return W4("/",t)},"format"),parse:s(function(t){ut(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,u;i?(n.root="/",u=1):u=0;for(var a=-1,o=0,l=-1,c=!0,f=t.length-1,h=0;f>=u;--f){if(r=t.charCodeAt(f),r===47){if(!c){o=f+1;break}continue}l===-1&&(c=!1,l=f+1),r===46?a===-1?a=f:h!==1&&(h=1):a!==-1&&(h=-1)}return a===-1||l===-1||h===0||h===1&&a===l-1&&a===o+1?l!==-1&&(o===0&&i?n.base=n.name=t.slice(1,l):n.base=n.name=t.slice(o,l)):(o===0&&i?(n.name=t.slice(1,a),n.base=t.slice(1,l)):(n.name=t.slice(o,a),n.base=t.slice(o,l)),n.ext=t.slice(a,l)),o>0?n.dir=t.slice(0,o-1):i&&(n.dir="/"),n},"parse"),sep:"/",delimiter:":",win32:null,posix:null};ee.posix=ee;const Fu=typeof window>"u"?typeof process>"u"?"other":"node":"browser";Fu==="browser"?/windows/i.test(navigator.userAgent)||/mac/i.test(navigator.userAgent)||/linux/i.test(navigator.userAgent)||/ubuntu/i.test(navigator.userAgent):Fu==="node"&&(process.platform==="win32"||process.platform==="darwin"||process.platform);const Re={allFilePaths:[],ankiConnectOptions:yt,ankiWeb:!1,basePath:void 0,checkDatabase:!0,cwd:ee.process_cwd,dryRun:!1,fetchAdapter:void 0,fileAdapter:void 0,manageFilenames:"off",maxFilenameLength:60,namespace:"Yanki",obsidianVault:void 0,resolveUrls:!0,strictLineBreaks:!0,strictMatching:!1,syncMediaAssets:"local"};async function An(){if(Fu==="node"){const e=await import("node:fs/promises");if(e===void 0)throw new Error("Error loading file functions in Node environment");return{async readFile(t){return e.readFile(t,"utf8")},async readFileBuffer(t){return e.readFile(t)},async rename(t,n){await e.rename(t,n)},async stat(t){return e.stat(t)},async writeFile(t,n){await e.writeFile(t,n,"utf8")}}}throw new Error('The "readFile", "readFileBuffer", "rename" , "stat", and "writeFile" function implementations must be provided to the function when running in the browser')}s(An,"getDefaultFileAdapter");function dr(){return fetch.bind(globalThis)}s(dr,"getDefaultFetchAdapter");function Si(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}s(Si,"escapeStringRegexp");const K4=[["\xDF","ss"],["\u1E9E","Ss"],["\xE4","ae"],["\xC4","Ae"],["\xF6","oe"],["\xD6","Oe"],["\xFC","ue"],["\xDC","Ue"],["\xC0","A"],["\xC1","A"],["\xC2","A"],["\xC3","A"],["\xC4","Ae"],["\xC5","A"],["\xC6","AE"],["\xC7","C"],["\xC8","E"],["\xC9","E"],["\xCA","E"],["\xCB","E"],["\u018F","A"],["\xCC","I"],["\xCD","I"],["\xCE","I"],["\xCF","I"],["\xD0","D"],["\xD1","N"],["\xD2","O"],["\xD3","O"],["\xD4","O"],["\xD5","O"],["\xD6","Oe"],["\u014C","O"],["\u0150","O"],["\xD8","O"],["\u0152","OE"],["\xD9","U"],["\xDA","U"],["\xDB","U"],["\xDC","Ue"],["\u0170","U"],["\xDD","Y"],["\xDE","TH"],["\xDF","ss"],["\xE0","a"],["\xE1","a"],["\xE2","a"],["\xE3","a"],["\xE4","ae"],["\xE5","a"],["\xE6","ae"],["\xE7","c"],["\xE8","e"],["\xE9","e"],["\xEA","e"],["\xEB","e"],["\u0259","a"],["\xEC","i"],["\xED","i"],["\xEE","i"],["\xEF","i"],["\xF0","d"],["\xF1","n"],["\xF2","o"],["\xF3","o"],["\xF4","o"],["\xF5","o"],["\xF6","oe"],["\u014D","o"],["\u0151","o"],["\xF8","o"],["\u0153","oe"],["\xF9","u"],["\xFA","u"],["\xFB","u"],["\xFC","ue"],["\u0171","u"],["\xFD","y"],["\xFE","th"],["\xFF","y"],["\xE0","a"],["\xC0","A"],["\xE1","a"],["\xC1","A"],["\xE2","a"],["\xC2","A"],["\xE3","a"],["\xC3","A"],["\xE8","e"],["\xC8","E"],["\xE9","e"],["\xC9","E"],["\xEA","e"],["\xCA","E"],["\xEC","i"],["\xCC","I"],["\xED","i"],["\xCD","I"],["\xF2","o"],["\xD2","O"],["\xF3","o"],["\xD3","O"],["\xF4","o"],["\xD4","O"],["\xF5","o"],["\xD5","O"],["\xF9","u"],["\xD9","U"],["\xFA","u"],["\xDA","U"],["\xFD","y"],["\xDD","Y"],["\u0103","a"],["\u0102","A"],["\u0110","D"],["\u0111","d"],["\u0129","i"],["\u0128","I"],["\u0169","u"],["\u0168","U"],["\u01A1","o"],["\u01A0","O"],["\u01B0","u"],["\u01AF","U"],["\u1EA1","a"],["\u1EA0","A"],["\u1EA3","a"],["\u1EA2","A"],["\u1EA5","a"],["\u1EA4","A"],["\u1EA7","a"],["\u1EA6","A"],["\u1EA9","a"],["\u1EA8","A"],["\u1EAB","a"],["\u1EAA","A"],["\u1EAD","a"],["\u1EAC","A"],["\u1EAF","a"],["\u1EAE","A"],["\u1EB1","a"],["\u1EB0","A"],["\u1EB3","a"],["\u1EB2","A"],["\u1EB5","a"],["\u1EB4","A"],["\u1EB7","a"],["\u1EB6","A"],["\u1EB9","e"],["\u1EB8","E"],["\u1EBB","e"],["\u1EBA","E"],["\u1EBD","e"],["\u1EBC","E"],["\u1EBF","e"],["\u1EBE","E"],["\u1EC1","e"],["\u1EC0","E"],["\u1EC3","e"],["\u1EC2","E"],["\u1EC5","e"],["\u1EC4","E"],["\u1EC7","e"],["\u1EC6","E"],["\u1EC9","i"],["\u1EC8","I"],["\u1ECB","i"],["\u1ECA","I"],["\u1ECD","o"],["\u1ECC","O"],["\u1ECF","o"],["\u1ECE","O"],["\u1ED1","o"],["\u1ED0","O"],["\u1ED3","o"],["\u1ED2","O"],["\u1ED5","o"],["\u1ED4","O"],["\u1ED7","o"],["\u1ED6","O"],["\u1ED9","o"],["\u1ED8","O"],["\u1EDB","o"],["\u1EDA","O"],["\u1EDD","o"],["\u1EDC","O"],["\u1EDF","o"],["\u1EDE","O"],["\u1EE1","o"],["\u1EE0","O"],["\u1EE3","o"],["\u1EE2","O"],["\u1EE5","u"],["\u1EE4","U"],["\u1EE7","u"],["\u1EE6","U"],["\u1EE9","u"],["\u1EE8","U"],["\u1EEB","u"],["\u1EEA","U"],["\u1EED","u"],["\u1EEC","U"],["\u1EEF","u"],["\u1EEE","U"],["\u1EF1","u"],["\u1EF0","U"],["\u1EF3","y"],["\u1EF2","Y"],["\u1EF5","y"],["\u1EF4","Y"],["\u1EF7","y"],["\u1EF6","Y"],["\u1EF9","y"],["\u1EF8","Y"],["\u0621","e"],["\u0622","a"],["\u0623","a"],["\u0624","w"],["\u0625","a"],["\u0626","y"],["\u0627","a"],["\u0628","b"],["\u0629","t"],["\u062A","t"],["\u062B","th"],["\u062C","j"],["\u062D","h"],["\u062E","kh"],["\u062F","d"],["\u0630","dh"],["\u0631","r"],["\u0632","z"],["\u0633","s"],["\u0634","sh"],["\u0635","s"],["\u0636","d"],["\u0637","t"],["\u0638","z"],["\u0639","e"],["\u063A","gh"],["\u0640","_"],["\u0641","f"],["\u0642","q"],["\u0643","k"],["\u0644","l"],["\u0645","m"],["\u0646","n"],["\u0647","h"],["\u0648","w"],["\u0649","a"],["\u064A","y"],["\u064E\u200E","a"],["\u064F","u"],["\u0650\u200E","i"],["\u0660","0"],["\u0661","1"],["\u0662","2"],["\u0663","3"],["\u0664","4"],["\u0665","5"],["\u0666","6"],["\u0667","7"],["\u0668","8"],["\u0669","9"],["\u0686","ch"],["\u06A9","k"],["\u06AF","g"],["\u067E","p"],["\u0698","zh"],["\u06CC","y"],["\u06F0","0"],["\u06F1","1"],["\u06F2","2"],["\u06F3","3"],["\u06F4","4"],["\u06F5","5"],["\u06F6","6"],["\u06F7","7"],["\u06F8","8"],["\u06F9","9"],["\u067C","p"],["\u0681","z"],["\u0685","c"],["\u0689","d"],["\uFEAB","d"],["\uFEAD","r"],["\u0693","r"],["\uFEAF","z"],["\u0696","g"],["\u069A","x"],["\u06AB","g"],["\u06BC","n"],["\u06C0","e"],["\u06D0","e"],["\u06CD","ai"],["\u0679","t"],["\u0688","d"],["\u0691","r"],["\u06BA","n"],["\u06C1","h"],["\u06BE","h"],["\u06D2","e"],["\u0410","A"],["\u0430","a"],["\u0411","B"],["\u0431","b"],["\u0412","V"],["\u0432","v"],["\u0413","G"],["\u0433","g"],["\u0414","D"],["\u0434","d"],["\u044A\u0435","ye"],["\u042A\u0435","Ye"],["\u044A\u0415","yE"],["\u042A\u0415","YE"],["\u0415","E"],["\u0435","e"],["\u0401","Yo"],["\u0451","yo"],["\u0416","Zh"],["\u0436","zh"],["\u0417","Z"],["\u0437","z"],["\u0418","I"],["\u0438","i"],["\u044B\u0439","iy"],["\u042B\u0439","Iy"],["\u042B\u0419","IY"],["\u044B\u0419","iY"],["\u0419","Y"],["\u0439","y"],["\u041A","K"],["\u043A","k"],["\u041B","L"],["\u043B","l"],["\u041C","M"],["\u043C","m"],["\u041D","N"],["\u043D","n"],["\u041E","O"],["\u043E","o"],["\u041F","P"],["\u043F","p"],["\u0420","R"],["\u0440","r"],["\u0421","S"],["\u0441","s"],["\u0422","T"],["\u0442","t"],["\u0423","U"],["\u0443","u"],["\u0424","F"],["\u0444","f"],["\u0425","Kh"],["\u0445","kh"],["\u0426","Ts"],["\u0446","ts"],["\u0427","Ch"],["\u0447","ch"],["\u0428","Sh"],["\u0448","sh"],["\u0429","Sch"],["\u0449","sch"],["\u042A",""],["\u044A",""],["\u042B","Y"],["\u044B","y"],["\u042C",""],["\u044C",""],["\u042D","E"],["\u044D","e"],["\u042E","Yu"],["\u044E","yu"],["\u042F","Ya"],["\u044F","ya"],["\u0103","a"],["\u0102","A"],["\u0219","s"],["\u0218","S"],["\u021B","t"],["\u021A","T"],["\u0163","t"],["\u0162","T"],["\u015F","s"],["\u015E","S"],["\xE7","c"],["\xC7","C"],["\u011F","g"],["\u011E","G"],["\u0131","i"],["\u0130","I"],["\u0561","a"],["\u0531","A"],["\u0562","b"],["\u0532","B"],["\u0563","g"],["\u0533","G"],["\u0564","d"],["\u0534","D"],["\u0565","ye"],["\u0535","Ye"],["\u0566","z"],["\u0536","Z"],["\u0567","e"],["\u0537","E"],["\u0568","y"],["\u0538","Y"],["\u0569","t"],["\u0539","T"],["\u056A","zh"],["\u053A","Zh"],["\u056B","i"],["\u053B","I"],["\u056C","l"],["\u053C","L"],["\u056D","kh"],["\u053D","Kh"],["\u056E","ts"],["\u053E","Ts"],["\u056F","k"],["\u053F","K"],["\u0570","h"],["\u0540","H"],["\u0571","dz"],["\u0541","Dz"],["\u0572","gh"],["\u0542","Gh"],["\u0573","tch"],["\u0543","Tch"],["\u0574","m"],["\u0544","M"],["\u0575","y"],["\u0545","Y"],["\u0576","n"],["\u0546","N"],["\u0577","sh"],["\u0547","Sh"],["\u0578\u0582","u"],["\u0548\u0552","U"],["\u0548\u0582","U"],["\u0578","vo"],["\u0548","Vo"],["\u0579","ch"],["\u0549","Ch"],["\u057A","p"],["\u054A","P"],["\u057B","j"],["\u054B","J"],["\u057C","r"],["\u054C","R"],["\u057D","s"],["\u054D","S"],["\u057E","v"],["\u054E","V"],["\u057F","t"],["\u054F","T"],["\u0580","r"],["\u0550","R"],["\u0581","c"],["\u0551","C"],["\u0583","p"],["\u0553","P"],["\u0584","q"],["\u0554","Q"],["\u0585","o"],["\u0555","O"],["\u0586","f"],["\u0556","F"],["\u0587","yev"],["\u10D0","a"],["\u10D1","b"],["\u10D2","g"],["\u10D3","d"],["\u10D4","e"],["\u10D5","v"],["\u10D6","z"],["\u10D7","t"],["\u10D8","i"],["\u10D9","k"],["\u10DA","l"],["\u10DB","m"],["\u10DC","n"],["\u10DD","o"],["\u10DE","p"],["\u10DF","zh"],["\u10E0","r"],["\u10E1","s"],["\u10E2","t"],["\u10E3","u"],["\u10E4","ph"],["\u10E5","q"],["\u10E6","gh"],["\u10E7","k"],["\u10E8","sh"],["\u10E9","ch"],["\u10EA","ts"],["\u10EB","dz"],["\u10EC","ts"],["\u10ED","tch"],["\u10EE","kh"],["\u10EF","j"],["\u10F0","h"],["\u010D","c"],["\u010F","d"],["\u011B","e"],["\u0148","n"],["\u0159","r"],["\u0161","s"],["\u0165","t"],["\u016F","u"],["\u017E","z"],["\u010C","C"],["\u010E","D"],["\u011A","E"],["\u0147","N"],["\u0158","R"],["\u0160","S"],["\u0164","T"],["\u016E","U"],["\u017D","Z"],["\u0780","h"],["\u0781","sh"],["\u0782","n"],["\u0783","r"],["\u0784","b"],["\u0785","lh"],["\u0786","k"],["\u0787","a"],["\u0788","v"],["\u0789","m"],["\u078A","f"],["\u078B","dh"],["\u078C","th"],["\u078D","l"],["\u078E","g"],["\u078F","gn"],["\u0790","s"],["\u0791","d"],["\u0792","z"],["\u0793","t"],["\u0794","y"],["\u0795","p"],["\u0796","j"],["\u0797","ch"],["\u0798","tt"],["\u0799","hh"],["\u079A","kh"],["\u079B","th"],["\u079C","z"],["\u079D","sh"],["\u079E","s"],["\u079F","d"],["\u07A0","t"],["\u07A1","z"],["\u07A2","a"],["\u07A3","gh"],["\u07A4","q"],["\u07A5","w"],["\u07A6","a"],["\u07A7","aa"],["\u07A8","i"],["\u07A9","ee"],["\u07AA","u"],["\u07AB","oo"],["\u07AC","e"],["\u07AD","ey"],["\u07AE","o"],["\u07AF","oa"],["\u07B0",""],["\u03B1","a"],["\u03B2","v"],["\u03B3","g"],["\u03B4","d"],["\u03B5","e"],["\u03B6","z"],["\u03B7","i"],["\u03B8","th"],["\u03B9","i"],["\u03BA","k"],["\u03BB","l"],["\u03BC","m"],["\u03BD","n"],["\u03BE","ks"],["\u03BF","o"],["\u03C0","p"],["\u03C1","r"],["\u03C3","s"],["\u03C4","t"],["\u03C5","y"],["\u03C6","f"],["\u03C7","x"],["\u03C8","ps"],["\u03C9","o"],["\u03AC","a"],["\u03AD","e"],["\u03AF","i"],["\u03CC","o"],["\u03CD","y"],["\u03AE","i"],["\u03CE","o"],["\u03C2","s"],["\u03CA","i"],["\u03B0","y"],["\u03CB","y"],["\u0390","i"],["\u0391","A"],["\u0392","B"],["\u0393","G"],["\u0394","D"],["\u0395","E"],["\u0396","Z"],["\u0397","I"],["\u0398","TH"],["\u0399","I"],["\u039A","K"],["\u039B","L"],["\u039C","M"],["\u039D","N"],["\u039E","KS"],["\u039F","O"],["\u03A0","P"],["\u03A1","R"],["\u03A3","S"],["\u03A4","T"],["\u03A5","Y"],["\u03A6","F"],["\u03A7","X"],["\u03A8","PS"],["\u03A9","O"],["\u0386","A"],["\u0388","E"],["\u038A","I"],["\u038C","O"],["\u038E","Y"],["\u0389","I"],["\u038F","O"],["\u03AA","I"],["\u03AB","Y"],["\u0101","a"],["\u0113","e"],["\u0123","g"],["\u012B","i"],["\u0137","k"],["\u013C","l"],["\u0146","n"],["\u016B","u"],["\u0100","A"],["\u0112","E"],["\u0122","G"],["\u012A","I"],["\u0136","K"],["\u013B","L"],["\u0145","N"],["\u016A","U"],["\u010D","c"],["\u0161","s"],["\u017E","z"],["\u010C","C"],["\u0160","S"],["\u017D","Z"],["\u0105","a"],["\u010D","c"],["\u0119","e"],["\u0117","e"],["\u012F","i"],["\u0161","s"],["\u0173","u"],["\u016B","u"],["\u017E","z"],["\u0104","A"],["\u010C","C"],["\u0118","E"],["\u0116","E"],["\u012E","I"],["\u0160","S"],["\u0172","U"],["\u016A","U"],["\u040C","Kj"],["\u045C","kj"],["\u0409","Lj"],["\u0459","lj"],["\u040A","Nj"],["\u045A","nj"],["\u0422\u0441","Ts"],["\u0442\u0441","ts"],["\u0105","a"],["\u0107","c"],["\u0119","e"],["\u0142","l"],["\u0144","n"],["\u015B","s"],["\u017A","z"],["\u017C","z"],["\u0104","A"],["\u0106","C"],["\u0118","E"],["\u0141","L"],["\u0143","N"],["\u015A","S"],["\u0179","Z"],["\u017B","Z"],["\u0404","Ye"],["\u0406","I"],["\u0407","Yi"],["\u0490","G"],["\u0454","ye"],["\u0456","i"],["\u0457","yi"],["\u0491","g"],["\u0132","IJ"],["\u0133","ij"],["\xA2","c"],["\xA5","Y"],["\u07FF","b"],["\u09F3","t"],["\u0AF1","Bo"],["\u0E3F","B"],["\u20A0","CE"],["\u20A1","C"],["\u20A2","Cr"],["\u20A3","F"],["\u20A5","m"],["\u20A6","N"],["\u20A7","Pt"],["\u20A8","Rs"],["\u20A9","W"],["\u20AB","s"],["\u20AC","E"],["\u20AD","K"],["\u20AE","T"],["\u20AF","Dp"],["\u20B0","S"],["\u20B1","P"],["\u20B2","G"],["\u20B3","A"],["\u20B4","S"],["\u20B5","C"],["\u20B6","tt"],["\u20B7","S"],["\u20B8","T"],["\u20B9","R"],["\u20BA","L"],["\u20BD","P"],["\u20BF","B"],["\uFE69","$"],["\uFFE0","c"],["\uFFE5","Y"],["\uFFE6","W"],["\u{1D400}","A"],["\u{1D401}","B"],["\u{1D402}","C"],["\u{1D403}","D"],["\u{1D404}","E"],["\u{1D405}","F"],["\u{1D406}","G"],["\u{1D407}","H"],["\u{1D408}","I"],["\u{1D409}","J"],["\u{1D40A}","K"],["\u{1D40B}","L"],["\u{1D40C}","M"],["\u{1D40D}","N"],["\u{1D40E}","O"],["\u{1D40F}","P"],["\u{1D410}","Q"],["\u{1D411}","R"],["\u{1D412}","S"],["\u{1D413}","T"],["\u{1D414}","U"],["\u{1D415}","V"],["\u{1D416}","W"],["\u{1D417}","X"],["\u{1D418}","Y"],["\u{1D419}","Z"],["\u{1D41A}","a"],["\u{1D41B}","b"],["\u{1D41C}","c"],["\u{1D41D}","d"],["\u{1D41E}","e"],["\u{1D41F}","f"],["\u{1D420}","g"],["\u{1D421}","h"],["\u{1D422}","i"],["\u{1D423}","j"],["\u{1D424}","k"],["\u{1D425}","l"],["\u{1D426}","m"],["\u{1D427}","n"],["\u{1D428}","o"],["\u{1D429}","p"],["\u{1D42A}","q"],["\u{1D42B}","r"],["\u{1D42C}","s"],["\u{1D42D}","t"],["\u{1D42E}","u"],["\u{1D42F}","v"],["\u{1D430}","w"],["\u{1D431}","x"],["\u{1D432}","y"],["\u{1D433}","z"],["\u{1D434}","A"],["\u{1D435}","B"],["\u{1D436}","C"],["\u{1D437}","D"],["\u{1D438}","E"],["\u{1D439}","F"],["\u{1D43A}","G"],["\u{1D43B}","H"],["\u{1D43C}","I"],["\u{1D43D}","J"],["\u{1D43E}","K"],["\u{1D43F}","L"],["\u{1D440}","M"],["\u{1D441}","N"],["\u{1D442}","O"],["\u{1D443}","P"],["\u{1D444}","Q"],["\u{1D445}","R"],["\u{1D446}","S"],["\u{1D447}","T"],["\u{1D448}","U"],["\u{1D449}","V"],["\u{1D44A}","W"],["\u{1D44B}","X"],["\u{1D44C}","Y"],["\u{1D44D}","Z"],["\u{1D44E}","a"],["\u{1D44F}","b"],["\u{1D450}","c"],["\u{1D451}","d"],["\u{1D452}","e"],["\u{1D453}","f"],["\u{1D454}","g"],["\u{1D456}","i"],["\u{1D457}","j"],["\u{1D458}","k"],["\u{1D459}","l"],["\u{1D45A}","m"],["\u{1D45B}","n"],["\u{1D45C}","o"],["\u{1D45D}","p"],["\u{1D45E}","q"],["\u{1D45F}","r"],["\u{1D460}","s"],["\u{1D461}","t"],["\u{1D462}","u"],["\u{1D463}","v"],["\u{1D464}","w"],["\u{1D465}","x"],["\u{1D466}","y"],["\u{1D467}","z"],["\u{1D468}","A"],["\u{1D469}","B"],["\u{1D46A}","C"],["\u{1D46B}","D"],["\u{1D46C}","E"],["\u{1D46D}","F"],["\u{1D46E}","G"],["\u{1D46F}","H"],["\u{1D470}","I"],["\u{1D471}","J"],["\u{1D472}","K"],["\u{1D473}","L"],["\u{1D474}","M"],["\u{1D475}","N"],["\u{1D476}","O"],["\u{1D477}","P"],["\u{1D478}","Q"],["\u{1D479}","R"],["\u{1D47A}","S"],["\u{1D47B}","T"],["\u{1D47C}","U"],["\u{1D47D}","V"],["\u{1D47E}","W"],["\u{1D47F}","X"],["\u{1D480}","Y"],["\u{1D481}","Z"],["\u{1D482}","a"],["\u{1D483}","b"],["\u{1D484}","c"],["\u{1D485}","d"],["\u{1D486}","e"],["\u{1D487}","f"],["\u{1D488}","g"],["\u{1D489}","h"],["\u{1D48A}","i"],["\u{1D48B}","j"],["\u{1D48C}","k"],["\u{1D48D}","l"],["\u{1D48E}","m"],["\u{1D48F}","n"],["\u{1D490}","o"],["\u{1D491}","p"],["\u{1D492}","q"],["\u{1D493}","r"],["\u{1D494}","s"],["\u{1D495}","t"],["\u{1D496}","u"],["\u{1D497}","v"],["\u{1D498}","w"],["\u{1D499}","x"],["\u{1D49A}","y"],["\u{1D49B}","z"],["\u{1D49C}","A"],["\u{1D49E}","C"],["\u{1D49F}","D"],["\u{1D4A2}","g"],["\u{1D4A5}","J"],["\u{1D4A6}","K"],["\u{1D4A9}","N"],["\u{1D4AA}","O"],["\u{1D4AB}","P"],["\u{1D4AC}","Q"],["\u{1D4AE}","S"],["\u{1D4AF}","T"],["\u{1D4B0}","U"],["\u{1D4B1}","V"],["\u{1D4B2}","W"],["\u{1D4B3}","X"],["\u{1D4B4}","Y"],["\u{1D4B5}","Z"],["\u{1D4B6}","a"],["\u{1D4B7}","b"],["\u{1D4B8}","c"],["\u{1D4B9}","d"],["\u{1D4BB}","f"],["\u{1D4BD}","h"],["\u{1D4BE}","i"],["\u{1D4BF}","j"],["\u{1D4C0}","k"],["\u{1D4C1}","l"],["\u{1D4C2}","m"],["\u{1D4C3}","n"],["\u{1D4C5}","p"],["\u{1D4C6}","q"],["\u{1D4C7}","r"],["\u{1D4C8}","s"],["\u{1D4C9}","t"],["\u{1D4CA}","u"],["\u{1D4CB}","v"],["\u{1D4CC}","w"],["\u{1D4CD}","x"],["\u{1D4CE}","y"],["\u{1D4CF}","z"],["\u{1D4D0}","A"],["\u{1D4D1}","B"],["\u{1D4D2}","C"],["\u{1D4D3}","D"],["\u{1D4D4}","E"],["\u{1D4D5}","F"],["\u{1D4D6}","G"],["\u{1D4D7}","H"],["\u{1D4D8}","I"],["\u{1D4D9}","J"],["\u{1D4DA}","K"],["\u{1D4DB}","L"],["\u{1D4DC}","M"],["\u{1D4DD}","N"],["\u{1D4DE}","O"],["\u{1D4DF}","P"],["\u{1D4E0}","Q"],["\u{1D4E1}","R"],["\u{1D4E2}","S"],["\u{1D4E3}","T"],["\u{1D4E4}","U"],["\u{1D4E5}","V"],["\u{1D4E6}","W"],["\u{1D4E7}","X"],["\u{1D4E8}","Y"],["\u{1D4E9}","Z"],["\u{1D4EA}","a"],["\u{1D4EB}","b"],["\u{1D4EC}","c"],["\u{1D4ED}","d"],["\u{1D4EE}","e"],["\u{1D4EF}","f"],["\u{1D4F0}","g"],["\u{1D4F1}","h"],["\u{1D4F2}","i"],["\u{1D4F3}","j"],["\u{1D4F4}","k"],["\u{1D4F5}","l"],["\u{1D4F6}","m"],["\u{1D4F7}","n"],["\u{1D4F8}","o"],["\u{1D4F9}","p"],["\u{1D4FA}","q"],["\u{1D4FB}","r"],["\u{1D4FC}","s"],["\u{1D4FD}","t"],["\u{1D4FE}","u"],["\u{1D4FF}","v"],["\u{1D500}","w"],["\u{1D501}","x"],["\u{1D502}","y"],["\u{1D503}","z"],["\u{1D504}","A"],["\u{1D505}","B"],["\u{1D507}","D"],["\u{1D508}","E"],["\u{1D509}","F"],["\u{1D50A}","G"],["\u{1D50D}","J"],["\u{1D50E}","K"],["\u{1D50F}","L"],["\u{1D510}","M"],["\u{1D511}","N"],["\u{1D512}","O"],["\u{1D513}","P"],["\u{1D514}","Q"],["\u{1D516}","S"],["\u{1D517}","T"],["\u{1D518}","U"],["\u{1D519}","V"],["\u{1D51A}","W"],["\u{1D51B}","X"],["\u{1D51C}","Y"],["\u{1D51E}","a"],["\u{1D51F}","b"],["\u{1D520}","c"],["\u{1D521}","d"],["\u{1D522}","e"],["\u{1D523}","f"],["\u{1D524}","g"],["\u{1D525}","h"],["\u{1D526}","i"],["\u{1D527}","j"],["\u{1D528}","k"],["\u{1D529}","l"],["\u{1D52A}","m"],["\u{1D52B}","n"],["\u{1D52C}","o"],["\u{1D52D}","p"],["\u{1D52E}","q"],["\u{1D52F}","r"],["\u{1D530}","s"],["\u{1D531}","t"],["\u{1D532}","u"],["\u{1D533}","v"],["\u{1D534}","w"],["\u{1D535}","x"],["\u{1D536}","y"],["\u{1D537}","z"],["\u{1D538}","A"],["\u{1D539}","B"],["\u{1D53B}","D"],["\u{1D53C}","E"],["\u{1D53D}","F"],["\u{1D53E}","G"],["\u{1D540}","I"],["\u{1D541}","J"],["\u{1D542}","K"],["\u{1D543}","L"],["\u{1D544}","M"],["\u{1D546}","O"],["\u{1D54A}","S"],["\u{1D54B}","T"],["\u{1D54C}","U"],["\u{1D54D}","V"],["\u{1D54E}","W"],["\u{1D54F}","X"],["\u{1D550}","Y"],["\u{1D552}","a"],["\u{1D553}","b"],["\u{1D554}","c"],["\u{1D555}","d"],["\u{1D556}","e"],["\u{1D557}","f"],["\u{1D558}","g"],["\u{1D559}","h"],["\u{1D55A}","i"],["\u{1D55B}","j"],["\u{1D55C}","k"],["\u{1D55D}","l"],["\u{1D55E}","m"],["\u{1D55F}","n"],["\u{1D560}","o"],["\u{1D561}","p"],["\u{1D562}","q"],["\u{1D563}","r"],["\u{1D564}","s"],["\u{1D565}","t"],["\u{1D566}","u"],["\u{1D567}","v"],["\u{1D568}","w"],["\u{1D569}","x"],["\u{1D56A}","y"],["\u{1D56B}","z"],["\u{1D56C}","A"],["\u{1D56D}","B"],["\u{1D56E}","C"],["\u{1D56F}","D"],["\u{1D570}","E"],["\u{1D571}","F"],["\u{1D572}","G"],["\u{1D573}","H"],["\u{1D574}","I"],["\u{1D575}","J"],["\u{1D576}","K"],["\u{1D577}","L"],["\u{1D578}","M"],["\u{1D579}","N"],["\u{1D57A}","O"],["\u{1D57B}","P"],["\u{1D57C}","Q"],["\u{1D57D}","R"],["\u{1D57E}","S"],["\u{1D57F}","T"],["\u{1D580}","U"],["\u{1D581}","V"],["\u{1D582}","W"],["\u{1D583}","X"],["\u{1D584}","Y"],["\u{1D585}","Z"],["\u{1D586}","a"],["\u{1D587}","b"],["\u{1D588}","c"],["\u{1D589}","d"],["\u{1D58A}","e"],["\u{1D58B}","f"],["\u{1D58C}","g"],["\u{1D58D}","h"],["\u{1D58E}","i"],["\u{1D58F}","j"],["\u{1D590}","k"],["\u{1D591}","l"],["\u{1D592}","m"],["\u{1D593}","n"],["\u{1D594}","o"],["\u{1D595}","p"],["\u{1D596}","q"],["\u{1D597}","r"],["\u{1D598}","s"],["\u{1D599}","t"],["\u{1D59A}","u"],["\u{1D59B}","v"],["\u{1D59C}","w"],["\u{1D59D}","x"],["\u{1D59E}","y"],["\u{1D59F}","z"],["\u{1D5A0}","A"],["\u{1D5A1}","B"],["\u{1D5A2}","C"],["\u{1D5A3}","D"],["\u{1D5A4}","E"],["\u{1D5A5}","F"],["\u{1D5A6}","G"],["\u{1D5A7}","H"],["\u{1D5A8}","I"],["\u{1D5A9}","J"],["\u{1D5AA}","K"],["\u{1D5AB}","L"],["\u{1D5AC}","M"],["\u{1D5AD}","N"],["\u{1D5AE}","O"],["\u{1D5AF}","P"],["\u{1D5B0}","Q"],["\u{1D5B1}","R"],["\u{1D5B2}","S"],["\u{1D5B3}","T"],["\u{1D5B4}","U"],["\u{1D5B5}","V"],["\u{1D5B6}","W"],["\u{1D5B7}","X"],["\u{1D5B8}","Y"],["\u{1D5B9}","Z"],["\u{1D5BA}","a"],["\u{1D5BB}","b"],["\u{1D5BC}","c"],["\u{1D5BD}","d"],["\u{1D5BE}","e"],["\u{1D5BF}","f"],["\u{1D5C0}","g"],["\u{1D5C1}","h"],["\u{1D5C2}","i"],["\u{1D5C3}","j"],["\u{1D5C4}","k"],["\u{1D5C5}","l"],["\u{1D5C6}","m"],["\u{1D5C7}","n"],["\u{1D5C8}","o"],["\u{1D5C9}","p"],["\u{1D5CA}","q"],["\u{1D5CB}","r"],["\u{1D5CC}","s"],["\u{1D5CD}","t"],["\u{1D5CE}","u"],["\u{1D5CF}","v"],["\u{1D5D0}","w"],["\u{1D5D1}","x"],["\u{1D5D2}","y"],["\u{1D5D3}","z"],["\u{1D5D4}","A"],["\u{1D5D5}","B"],["\u{1D5D6}","C"],["\u{1D5D7}","D"],["\u{1D5D8}","E"],["\u{1D5D9}","F"],["\u{1D5DA}","G"],["\u{1D5DB}","H"],["\u{1D5DC}","I"],["\u{1D5DD}","J"],["\u{1D5DE}","K"],["\u{1D5DF}","L"],["\u{1D5E0}","M"],["\u{1D5E1}","N"],["\u{1D5E2}","O"],["\u{1D5E3}","P"],["\u{1D5E4}","Q"],["\u{1D5E5}","R"],["\u{1D5E6}","S"],["\u{1D5E7}","T"],["\u{1D5E8}","U"],["\u{1D5E9}","V"],["\u{1D5EA}","W"],["\u{1D5EB}","X"],["\u{1D5EC}","Y"],["\u{1D5ED}","Z"],["\u{1D5EE}","a"],["\u{1D5EF}","b"],["\u{1D5F0}","c"],["\u{1D5F1}","d"],["\u{1D5F2}","e"],["\u{1D5F3}","f"],["\u{1D5F4}","g"],["\u{1D5F5}","h"],["\u{1D5F6}","i"],["\u{1D5F7}","j"],["\u{1D5F8}","k"],["\u{1D5F9}","l"],["\u{1D5FA}","m"],["\u{1D5FB}","n"],["\u{1D5FC}","o"],["\u{1D5FD}","p"],["\u{1D5FE}","q"],["\u{1D5FF}","r"],["\u{1D600}","s"],["\u{1D601}","t"],["\u{1D602}","u"],["\u{1D603}","v"],["\u{1D604}","w"],["\u{1D605}","x"],["\u{1D606}","y"],["\u{1D607}","z"],["\u{1D608}","A"],["\u{1D609}","B"],["\u{1D60A}","C"],["\u{1D60B}","D"],["\u{1D60C}","E"],["\u{1D60D}","F"],["\u{1D60E}","G"],["\u{1D60F}","H"],["\u{1D610}","I"],["\u{1D611}","J"],["\u{1D612}","K"],["\u{1D613}","L"],["\u{1D614}","M"],["\u{1D615}","N"],["\u{1D616}","O"],["\u{1D617}","P"],["\u{1D618}","Q"],["\u{1D619}","R"],["\u{1D61A}","S"],["\u{1D61B}","T"],["\u{1D61C}","U"],["\u{1D61D}","V"],["\u{1D61E}","W"],["\u{1D61F}","X"],["\u{1D620}","Y"],["\u{1D621}","Z"],["\u{1D622}","a"],["\u{1D623}","b"],["\u{1D624}","c"],["\u{1D625}","d"],["\u{1D626}","e"],["\u{1D627}","f"],["\u{1D628}","g"],["\u{1D629}","h"],["\u{1D62A}","i"],["\u{1D62B}","j"],["\u{1D62C}","k"],["\u{1D62D}","l"],["\u{1D62E}","m"],["\u{1D62F}","n"],["\u{1D630}","o"],["\u{1D631}","p"],["\u{1D632}","q"],["\u{1D633}","r"],["\u{1D634}","s"],["\u{1D635}","t"],["\u{1D636}","u"],["\u{1D637}","v"],["\u{1D638}","w"],["\u{1D639}","x"],["\u{1D63A}","y"],["\u{1D63B}","z"],["\u{1D63C}","A"],["\u{1D63D}","B"],["\u{1D63E}","C"],["\u{1D63F}","D"],["\u{1D640}","E"],["\u{1D641}","F"],["\u{1D642}","G"],["\u{1D643}","H"],["\u{1D644}","I"],["\u{1D645}","J"],["\u{1D646}","K"],["\u{1D647}","L"],["\u{1D648}","M"],["\u{1D649}","N"],["\u{1D64A}","O"],["\u{1D64B}","P"],["\u{1D64C}","Q"],["\u{1D64D}","R"],["\u{1D64E}","S"],["\u{1D64F}","T"],["\u{1D650}","U"],["\u{1D651}","V"],["\u{1D652}","W"],["\u{1D653}","X"],["\u{1D654}","Y"],["\u{1D655}","Z"],["\u{1D656}","a"],["\u{1D657}","b"],["\u{1D658}","c"],["\u{1D659}","d"],["\u{1D65A}","e"],["\u{1D65B}","f"],["\u{1D65C}","g"],["\u{1D65D}","h"],["\u{1D65E}","i"],["\u{1D65F}","j"],["\u{1D660}","k"],["\u{1D661}","l"],["\u{1D662}","m"],["\u{1D663}","n"],["\u{1D664}","o"],["\u{1D665}","p"],["\u{1D666}","q"],["\u{1D667}","r"],["\u{1D668}","s"],["\u{1D669}","t"],["\u{1D66A}","u"],["\u{1D66B}","v"],["\u{1D66C}","w"],["\u{1D66D}","x"],["\u{1D66E}","y"],["\u{1D66F}","z"],["\u{1D670}","A"],["\u{1D671}","B"],["\u{1D672}","C"],["\u{1D673}","D"],["\u{1D674}","E"],["\u{1D675}","F"],["\u{1D676}","G"],["\u{1D677}","H"],["\u{1D678}","I"],["\u{1D679}","J"],["\u{1D67A}","K"],["\u{1D67B}","L"],["\u{1D67C}","M"],["\u{1D67D}","N"],["\u{1D67E}","O"],["\u{1D67F}","P"],["\u{1D680}","Q"],["\u{1D681}","R"],["\u{1D682}","S"],["\u{1D683}","T"],["\u{1D684}","U"],["\u{1D685}","V"],["\u{1D686}","W"],["\u{1D687}","X"],["\u{1D688}","Y"],["\u{1D689}","Z"],["\u{1D68A}","a"],["\u{1D68B}","b"],["\u{1D68C}","c"],["\u{1D68D}","d"],["\u{1D68E}","e"],["\u{1D68F}","f"],["\u{1D690}","g"],["\u{1D691}","h"],["\u{1D692}","i"],["\u{1D693}","j"],["\u{1D694}","k"],["\u{1D695}","l"],["\u{1D696}","m"],["\u{1D697}","n"],["\u{1D698}","o"],["\u{1D699}","p"],["\u{1D69A}","q"],["\u{1D69B}","r"],["\u{1D69C}","s"],["\u{1D69D}","t"],["\u{1D69E}","u"],["\u{1D69F}","v"],["\u{1D6A0}","w"],["\u{1D6A1}","x"],["\u{1D6A2}","y"],["\u{1D6A3}","z"],["\u{1D6A4}","l"],["\u{1D6A5}","j"],["\u{1D6E2}","A"],["\u{1D6E3}","B"],["\u{1D6E4}","G"],["\u{1D6E5}","D"],["\u{1D6E6}","E"],["\u{1D6E7}","Z"],["\u{1D6E8}","I"],["\u{1D6E9}","TH"],["\u{1D6EA}","I"],["\u{1D6EB}","K"],["\u{1D6EC}","L"],["\u{1D6ED}","M"],["\u{1D6EE}","N"],["\u{1D6EF}","KS"],["\u{1D6F0}","O"],["\u{1D6F1}","P"],["\u{1D6F2}","R"],["\u{1D6F3}","TH"],["\u{1D6F4}","S"],["\u{1D6F5}","T"],["\u{1D6F6}","Y"],["\u{1D6F7}","F"],["\u{1D6F8}","x"],["\u{1D6F9}","PS"],["\u{1D6FA}","O"],["\u{1D6FB}","D"],["\u{1D6FC}","a"],["\u{1D6FD}","b"],["\u{1D6FE}","g"],["\u{1D6FF}","d"],["\u{1D700}","e"],["\u{1D701}","z"],["\u{1D702}","i"],["\u{1D703}","th"],["\u{1D704}","i"],["\u{1D705}","k"],["\u{1D706}","l"],["\u{1D707}","m"],["\u{1D708}","n"],["\u{1D709}","ks"],["\u{1D70A}","o"],["\u{1D70B}","p"],["\u{1D70C}","r"],["\u{1D70D}","s"],["\u{1D70E}","s"],["\u{1D70F}","t"],["\u{1D710}","y"],["\u{1D711}","f"],["\u{1D712}","x"],["\u{1D713}","ps"],["\u{1D714}","o"],["\u{1D715}","d"],["\u{1D716}","E"],["\u{1D717}","TH"],["\u{1D718}","K"],["\u{1D719}","f"],["\u{1D71A}","r"],["\u{1D71B}","p"],["\u{1D71C}","A"],["\u{1D71D}","V"],["\u{1D71E}","G"],["\u{1D71F}","D"],["\u{1D720}","E"],["\u{1D721}","Z"],["\u{1D722}","I"],["\u{1D723}","TH"],["\u{1D724}","I"],["\u{1D725}","K"],["\u{1D726}","L"],["\u{1D727}","M"],["\u{1D728}","N"],["\u{1D729}","KS"],["\u{1D72A}","O"],["\u{1D72B}","P"],["\u{1D72C}","S"],["\u{1D72D}","TH"],["\u{1D72E}","S"],["\u{1D72F}","T"],["\u{1D730}","Y"],["\u{1D731}","F"],["\u{1D732}","X"],["\u{1D733}","PS"],["\u{1D734}","O"],["\u{1D735}","D"],["\u{1D736}","a"],["\u{1D737}","v"],["\u{1D738}","g"],["\u{1D739}","d"],["\u{1D73A}","e"],["\u{1D73B}","z"],["\u{1D73C}","i"],["\u{1D73D}","th"],["\u{1D73E}","i"],["\u{1D73F}","k"],["\u{1D740}","l"],["\u{1D741}","m"],["\u{1D742}","n"],["\u{1D743}","ks"],["\u{1D744}","o"],["\u{1D745}","p"],["\u{1D746}","r"],["\u{1D747}","s"],["\u{1D748}","s"],["\u{1D749}","t"],["\u{1D74A}","y"],["\u{1D74B}","f"],["\u{1D74C}","x"],["\u{1D74D}","ps"],["\u{1D74E}","o"],["\u{1D74F}","a"],["\u{1D750}","e"],["\u{1D751}","i"],["\u{1D752}","k"],["\u{1D753}","f"],["\u{1D754}","r"],["\u{1D755}","p"],["\u{1D756}","A"],["\u{1D757}","B"],["\u{1D758}","G"],["\u{1D759}","D"],["\u{1D75A}","E"],["\u{1D75B}","Z"],["\u{1D75C}","I"],["\u{1D75D}","TH"],["\u{1D75E}","I"],["\u{1D75F}","K"],["\u{1D760}","L"],["\u{1D761}","M"],["\u{1D762}","N"],["\u{1D763}","KS"],["\u{1D764}","O"],["\u{1D765}","P"],["\u{1D766}","R"],["\u{1D767}","TH"],["\u{1D768}","S"],["\u{1D769}","T"],["\u{1D76A}","Y"],["\u{1D76B}","F"],["\u{1D76C}","X"],["\u{1D76D}","PS"],["\u{1D76E}","O"],["\u{1D76F}","D"],["\u{1D770}","a"],["\u{1D771}","v"],["\u{1D772}","g"],["\u{1D773}","d"],["\u{1D774}","e"],["\u{1D775}","z"],["\u{1D776}","i"],["\u{1D777}","th"],["\u{1D778}","i"],["\u{1D779}","k"],["\u{1D77A}","l"],["\u{1D77B}","m"],["\u{1D77C}","n"],["\u{1D77D}","ks"],["\u{1D77E}","o"],["\u{1D77F}","p"],["\u{1D780}","r"],["\u{1D781}","s"],["\u{1D782}","s"],["\u{1D783}","t"],["\u{1D784}","y"],["\u{1D785}","f"],["\u{1D786}","x"],["\u{1D787}","ps"],["\u{1D788}","o"],["\u{1D789}","a"],["\u{1D78A}","e"],["\u{1D78B}","i"],["\u{1D78C}","k"],["\u{1D78D}","f"],["\u{1D78E}","r"],["\u{1D78F}","p"],["\u{1D790}","A"],["\u{1D791}","V"],["\u{1D792}","G"],["\u{1D793}","D"],["\u{1D794}","E"],["\u{1D795}","Z"],["\u{1D796}","I"],["\u{1D797}","TH"],["\u{1D798}","I"],["\u{1D799}","K"],["\u{1D79A}","L"],["\u{1D79B}","M"],["\u{1D79C}","N"],["\u{1D79D}","KS"],["\u{1D79E}","O"],["\u{1D79F}","P"],["\u{1D7A0}","S"],["\u{1D7A1}","TH"],["\u{1D7A2}","S"],["\u{1D7A3}","T"],["\u{1D7A4}","Y"],["\u{1D7A5}","F"],["\u{1D7A6}","X"],["\u{1D7A7}","PS"],["\u{1D7A8}","O"],["\u{1D7A9}","D"],["\u{1D7AA}","av"],["\u{1D7AB}","g"],["\u{1D7AC}","d"],["\u{1D7AD}","e"],["\u{1D7AE}","z"],["\u{1D7AF}","i"],["\u{1D7B0}","i"],["\u{1D7B1}","th"],["\u{1D7B2}","i"],["\u{1D7B3}","k"],["\u{1D7B4}","l"],["\u{1D7B5}","m"],["\u{1D7B6}","n"],["\u{1D7B7}","ks"],["\u{1D7B8}","o"],["\u{1D7B9}","p"],["\u{1D7BA}","r"],["\u{1D7BB}","s"],["\u{1D7BC}","s"],["\u{1D7BD}","t"],["\u{1D7BE}","y"],["\u{1D7BF}","f"],["\u{1D7C0}","x"],["\u{1D7C1}","ps"],["\u{1D7C2}","o"],["\u{1D7C3}","a"],["\u{1D7C4}","e"],["\u{1D7C5}","i"],["\u{1D7C6}","k"],["\u{1D7C7}","f"],["\u{1D7C8}","r"],["\u{1D7C9}","p"],["\u{1D7CA}","F"],["\u{1D7CB}","f"],["\u249C","(a)"],["\u249D","(b)"],["\u249E","(c)"],["\u249F","(d)"],["\u24A0","(e)"],["\u24A1","(f)"],["\u24A2","(g)"],["\u24A3","(h)"],["\u24A4","(i)"],["\u24A5","(j)"],["\u24A6","(k)"],["\u24A7","(l)"],["\u24A8","(m)"],["\u24A9","(n)"],["\u24AA","(o)"],["\u24AB","(p)"],["\u24AC","(q)"],["\u24AD","(r)"],["\u24AE","(s)"],["\u24AF","(t)"],["\u24B0","(u)"],["\u24B1","(v)"],["\u24B2","(w)"],["\u24B3","(x)"],["\u24B4","(y)"],["\u24B5","(z)"],["\u24B6","(A)"],["\u24B7","(B)"],["\u24B8","(C)"],["\u24B9","(D)"],["\u24BA","(E)"],["\u24BB","(F)"],["\u24BC","(G)"],["\u24BD","(H)"],["\u24BE","(I)"],["\u24BF","(J)"],["\u24C0","(K)"],["\u24C1","(L)"],["\u24C3","(N)"],["\u24C4","(O)"],["\u24C5","(P)"],["\u24C6","(Q)"],["\u24C7","(R)"],["\u24C8","(S)"],["\u24C9","(T)"],["\u24CA","(U)"],["\u24CB","(V)"],["\u24CC","(W)"],["\u24CD","(X)"],["\u24CE","(Y)"],["\u24CF","(Z)"],["\u24D0","(a)"],["\u24D1","(b)"],["\u24D2","(c)"],["\u24D3","(d)"],["\u24D4","(e)"],["\u24D5","(f)"],["\u24D6","(g)"],["\u24D7","(h)"],["\u24D8","(i)"],["\u24D9","(j)"],["\u24DA","(k)"],["\u24DB","(l)"],["\u24DC","(m)"],["\u24DD","(n)"],["\u24DE","(o)"],["\u24DF","(p)"],["\u24E0","(q)"],["\u24E1","(r)"],["\u24E2","(s)"],["\u24E3","(t)"],["\u24E4","(u)"],["\u24E5","(v)"],["\u24E6","(w)"],["\u24E7","(x)"],["\u24E8","(y)"],["\u24E9","(z)"],["\u010A","C"],["\u010B","c"],["\u0120","G"],["\u0121","g"],["\u0126","H"],["\u0127","h"],["\u017B","Z"],["\u017C","z"],["\u{1D7CE}","0"],["\u{1D7CF}","1"],["\u{1D7D0}","2"],["\u{1D7D1}","3"],["\u{1D7D2}","4"],["\u{1D7D3}","5"],["\u{1D7D4}","6"],["\u{1D7D5}","7"],["\u{1D7D6}","8"],["\u{1D7D7}","9"],["\u{1D7D8}","0"],["\u{1D7D9}","1"],["\u{1D7DA}","2"],["\u{1D7DB}","3"],["\u{1D7DC}","4"],["\u{1D7DD}","5"],["\u{1D7DE}","6"],["\u{1D7DF}","7"],["\u{1D7E0}","8"],["\u{1D7E1}","9"],["\u{1D7E2}","0"],["\u{1D7E3}","1"],["\u{1D7E4}","2"],["\u{1D7E5}","3"],["\u{1D7E6}","4"],["\u{1D7E7}","5"],["\u{1D7E8}","6"],["\u{1D7E9}","7"],["\u{1D7EA}","8"],["\u{1D7EB}","9"],["\u{1D7EC}","0"],["\u{1D7ED}","1"],["\u{1D7EE}","2"],["\u{1D7EF}","3"],["\u{1D7F0}","4"],["\u{1D7F1}","5"],["\u{1D7F2}","6"],["\u{1D7F3}","7"],["\u{1D7F4}","8"],["\u{1D7F5}","9"],["\u{1D7F6}","0"],["\u{1D7F7}","1"],["\u{1D7F8}","2"],["\u{1D7F9}","3"],["\u{1D7FA}","4"],["\u{1D7FB}","5"],["\u{1D7FC}","6"],["\u{1D7FD}","7"],["\u{1D7FE}","8"],["\u{1D7FF}","9"],["\u2460","1"],["\u2461","2"],["\u2462","3"],["\u2463","4"],["\u2464","5"],["\u2465","6"],["\u2466","7"],["\u2467","8"],["\u2468","9"],["\u2469","10"],["\u246A","11"],["\u246B","12"],["\u246C","13"],["\u246D","14"],["\u246E","15"],["\u246F","16"],["\u2470","17"],["\u2471","18"],["\u2472","19"],["\u2473","20"],["\u2474","1"],["\u2475","2"],["\u2476","3"],["\u2477","4"],["\u2478","5"],["\u2479","6"],["\u247A","7"],["\u247B","8"],["\u247C","9"],["\u247D","10"],["\u247E","11"],["\u247F","12"],["\u2480","13"],["\u2481","14"],["\u2482","15"],["\u2483","16"],["\u2484","17"],["\u2485","18"],["\u2486","19"],["\u2487","20"],["\u2488","1."],["\u2489","2."],["\u248A","3."],["\u248B","4."],["\u248C","5."],["\u248D","6."],["\u248E","7."],["\u248F","8."],["\u2490","9."],["\u2491","10."],["\u2492","11."],["\u2493","12."],["\u2494","13."],["\u2495","14."],["\u2496","15."],["\u2497","16."],["\u2498","17."],["\u2499","18."],["\u249A","19."],["\u249B","20."],["\u24EA","0"],["\u24EB","11"],["\u24EC","12"],["\u24ED","13"],["\u24EE","14"],["\u24EF","15"],["\u24F0","16"],["\u24F1","17"],["\u24F2","18"],["\u24F3","19"],["\u24F4","20"],["\u24F5","1"],["\u24F6","2"],["\u24F7","3"],["\u24F8","4"],["\u24F9","5"],["\u24FA","6"],["\u24FB","7"],["\u24FC","8"],["\u24FD","9"],["\u24FE","10"],["\u24FF","0"],["\u{1F670}","&"],["\u{1F671}","&"],["\u{1F672}","&"],["\u{1F673}","&"],["\u{1F674}","&"],["\u{1F675}","&"],["\u{1F676}",'"'],["\u{1F677}",'"'],["\u{1F678}",'"'],["\u203D","?!"],["\u{1F679}","?!"],["\u{1F67A}","?!"],["\u{1F67B}","?!"],["\u{1F67C}","/"],["\u{1F67D}","\\"],["\u{1F707}","AR"],["\u{1F708}","V"],["\u{1F709}","V"],["\u{1F706}","VR"],["\u{1F705}","VF"],["\u{1F729}","2"],["\u{1F72A}","5"],["\u{1F761}","f"],["\u{1F762}","W"],["\u{1F763}","U"],["\u{1F767}","V"],["\u{1F768}","T"],["\u{1F76A}","V"],["\u{1F76B}","MB"],["\u{1F76C}","VB"],["\u{1F772}","3B"],["\u{1F773}","3B"],["\u{1F4AF}","100"],["\u{1F519}","BACK"],["\u{1F51A}","END"],["\u{1F51B}","ON!"],["\u{1F51C}","SOON"],["\u{1F51D}","TOP"],["\u{1F51E}","18"],["\u{1F524}","abc"],["\u{1F520}","ABCD"],["\u{1F521}","abcd"],["\u{1F522}","1234"],["\u{1F523}","T&@%"],["#\uFE0F\u20E3","#"],["*\uFE0F\u20E3","*"],["0\uFE0F\u20E3","0"],["1\uFE0F\u20E3","1"],["2\uFE0F\u20E3","2"],["3\uFE0F\u20E3","3"],["4\uFE0F\u20E3","4"],["5\uFE0F\u20E3","5"],["6\uFE0F\u20E3","6"],["7\uFE0F\u20E3","7"],["8\uFE0F\u20E3","8"],["9\uFE0F\u20E3","9"],["\u{1F51F}","10"],["\u{1F170}\uFE0F","A"],["\u{1F171}\uFE0F","B"],["\u{1F18E}","AB"],["\u{1F191}","CL"],["\u{1F17E}\uFE0F","O"],["\u{1F17F}","P"],["\u{1F198}","SOS"],["\u{1F172}","C"],["\u{1F173}","D"],["\u{1F174}","E"],["\u{1F175}","F"],["\u{1F176}","G"],["\u{1F177}","H"],["\u{1F178}","I"],["\u{1F179}","J"],["\u{1F17A}","K"],["\u{1F17B}","L"],["\u{1F17C}","M"],["\u{1F17D}","N"],["\u{1F180}","Q"],["\u{1F181}","R"],["\u{1F182}","S"],["\u{1F183}","T"],["\u{1F184}","U"],["\u{1F185}","V"],["\u{1F186}","W"],["\u{1F187}","X"],["\u{1F188}","Y"],["\u{1F189}","Z"],["\u2212","-"],["\u2053","-"]],Nu=new Map(K4),Jh=[["\xE6","ae"],["\xC6","Ae"],["\xF8","oe"],["\xD8","Oe"],["\xE5","aa"],["\xC5","Aa"]],Dn={sv:[["\xE4","a"],["\xC4","A"],["\xF6","o"],["\xD6","O"],["\xE5","a"],["\xC5","A"]],da:Jh,nb:Jh,de:[["\xE4","ae"],["\xC4","Ae"],["\xF6","oe"],["\xD6","Oe"],["\xFC","ue"],["\xDC","Ue"],["\xDF","ss"],["\u1E9E","Ss"]],tr:[["\xE2","a"],["\xC2","A"],["\xF6","o"],["\xD6","O"],["\xFC","u"],["\xDC","U"]],hu:[["\u0171","u"],["\u0170","U"],["\xF6","o"],["\xD6","O"],["\xFC","u"],["\xDC","U"],["\xE1","a"],["\xC1","A"],["\xE9","e"],["\xC9","E"],["\xED","i"],["\xCD","I"],["\xF3","o"],["\xD3","O"],["\xFA","u"],["\xDA","U"]],sr:[["\u0452","dj"],["\u0402","Dj"],["\u045F","dz"],["\u040F","Dz"],["\u0459","lj"],["\u0409","Lj"],["\u045A","nj"],["\u040A","Nj"],["\u045B","c"],["\u040B","C"],["\u0447","ch"],["\u0427","Ch"],["\u0448","sh"],["\u0428","Sh"],["\u0436","zh"],["\u0416","Zh"]]};for(const e of Object.keys(Dn))Dn[e]=new Map(Dn[e]);const Q4=s(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeRegex"),Zh=s(e=>{const t=[...e.keys()].sort((n,r)=>r.length-n.length);return new RegExp(t.map(n=>Q4(n)).join("|"),"gu")},"buildReplacementPattern"),X4=Zh(Nu),ef=new Map;for(const[e,t]of Object.entries(Dn)){const n=new Map(Nu);for(const[r,i]of t)n.set(r,i);ef.set(e,{replacements:n,pattern:Zh(n)})}const J4=s(e=>{if(!e)return;const t=e.toLowerCase().replace(/^no(-|$)/,"nb$1");if(Object.hasOwn(Dn,t))return t;const n=t.split("-")[0];if(Object.hasOwn(Dn,n))return n},"normalizeLocale");function Z4(e,t){if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};const n=J4(t.locale),r=[...t.customReplacements];let i=Nu,u=X4;if(n&&({replacements:i,pattern:u}=ef.get(n)),e=e.normalize(),r.length>0){r.sort((a,o)=>o[0].length-a[0].length);for(const[a,o]of r)e=e.replaceAll(a,o)}return e=e.replace(u,a=>i.get(a)??a),e=e.normalize("NFD").replaceAll(new RegExp("\\p{Diacritic}","gu"),"").normalize(),e=e.replaceAll(new RegExp("\\p{Dash_Punctuation}","gu"),"-"),e}s(Z4,"transliterate");const e6=[["&"," and "],["\u{1F984}"," unicorn "],["\u2665"," love "]],t6=s(e=>e.replaceAll(/([A-Z]{2,})(\d+)/g,"$1 $2").replaceAll(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replaceAll(/([a-z\d])([A-Z])/g,"$1 $2").replaceAll(/([A-Z]+)([A-Z][a-rt-z\d]+)/g,"$1 $2"),"decamelize"),n6=s((e,t)=>{const n=Si(t);return e.replaceAll(new RegExp(`(?:${n}){2,}`,"g"),t).replaceAll(new RegExp(`^(?:${n})|(?:${n})$`,"g"),"")},"removeMootSeparators"),r6=s(e=>{let t=String.raw`a-z\d`;if(t+=e.lowercase?"":"A-Z",e.transliterate===!1&&(t+=String.raw`\p{L}\p{N}`),e.preserveCharacters.length>0)for(const r of e.preserveCharacters){if(r===e.separator)throw new Error(`The separator character \`${e.separator}\` cannot be included in preserved characters: ${e.preserveCharacters}`);t+=Si(r)}const n=e.transliterate?"g":"gu";return new RegExp(`[^${t}]+`,n)},"buildPatternSlug");function i6(e,t){if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);t={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,preserveTrailingDash:!1,preserveCharacters:[],transliterate:!0,...t};const n=t.preserveLeadingUnderscore&&e.startsWith("_"),r=t.preserveTrailingDash&&e.endsWith("-");if(t.transliterate){const u=new Map([...e6,...t.customReplacements]);e=Z4(e,{customReplacements:u,locale:t.locale})}else if(t.customReplacements.length>0)for(const[u,a]of t.customReplacements)e=e.replaceAll(u,a);t.decamelize&&(e=t6(e));const i=r6(t);return t.lowercase&&(e=t.locale?e.toLocaleLowerCase(t.locale):e.toLowerCase()),e=e.replaceAll(/([a-zA-Z\d]+)['\u2019]([ts])(\s|$)/g,"$1$2$3"),e=e.replace(i,t.separator),e=e.replaceAll("\\",""),t.separator&&(e=n6(e,t.separator)),n&&(e=`_${e}`),r&&(e=`${e}-`),e}s(i6,"slugify");const s6=s(e=>{if(typeof e=="string")return new globalThis.TextEncoder().encode(e).buffer;if(e instanceof ArrayBuffer)return e.slice();const n=typeof Buffer<"u"&&Buffer.isBuffer?.(e)?new Uint8Array(e):e;if(n instanceof DataView){const r=new ArrayBuffer(n.byteLength),i=new Uint8Array(r);for(let u=0;u<n.byteLength;u++)i[u]=n.getUint8(u);return r}return n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength)},"toArrayBuffer"),tf="0123456789abcdef",nf=[];for(let e=0;e<256;e++)nf[e]=tf[e>>>4&15]+tf[e&15];const u6=s(e=>{if(typeof Buffer<"u"&&typeof Buffer.from=="function")return Buffer.from(e).toString("hex");const t=new Uint8Array(e);let n="";for(let r=0;r<t.length;r++)n+=nf[t[r]];return n},"bufferToHex"),a6=s(e=>async(t,{outputFormat:n="hex"}={})=>{const r=s6(t),i=await globalThis.crypto.subtle.digest(e,r);return n==="hex"?u6(i):i},"create$1"),o6=a6("SHA-256");async function l6(e,t){try{return await t.stat(e),!0}catch{return!1}}s(l6,"fileExists");async function rf(e,t,n=Y4){switch(n){case"content":{const r=await t.readFileBuffer(e);return(await o6(r)).slice(0,16)}case"metadata":{const{mtimeMs:r,size:i}=await t.stat(e),u=`${r??""}${i??""}`;return u===""?rf(e,t,"name"):Bi(u,16)}case"name":return Bi(e,16)}}s(rf,"getFileContentHash");function zt(e,t=!1){return c6(e,t),sf(e)}s(zt,"validateAndSanitizeNamespace");function sf(e){return e.normalize("NFC").trim()}s(sf,"sanitizeNamespace");function c6(e,t=!1){const n=[];e.trim().length===0&&n.push("Cannot be empty"),e.trim().length>Yh&&n.push(`Cannot be longer than ${Yh} characters`);const r=[[/:/,"Colon"],[/\u0000/,"Null"],[/\u0001/,"Start of Heading"],[/\u0002/,"Start of Text"],[/\u0003/,"End of Text"],[/\u0004/,"End of Transmission"],[/\u0005/,"Enquiry"],[/\u0006/,"Acknowledge"],[/\u0007/,"Bell"],[/\u0008/,"Backspace"],[/\u0009/,"Horizontal Tab"],[/\u000A/,"Line Feed"],[/\u000B/,"Vertical Tab"],[/\u000C/,"Form Feed"],[/\u000D/,"Carriage Return"],[/\u000E/,"Shift Out"],[/\u000F/,"Shift In"],[/\u0010/,"Data Link Escape"],[/\u0011/,"Device Control 1"],[/\u0012/,"Device Control 2"],[/\u0013/,"Device Control 3"],[/\u0014/,"Device Control 4"],[/\u0015/,"Negative Acknowledge"],[/\u0016/,"Synchronous Idle"],[/\u0017/,"End of Transmission Block"],[/\u0018/,"Cancel"],[/\u0019/,"End of Medium"],[/\u001A/,"Substitute"],[/\u001B/,"Escape"],[/\u001C/,"File Separator"],[/\u001D/,"Group Separator"],[/\u001E/,"Record Separator"],[/\u001F/,"Unit Separator"],[/\u007F/,"Delete"],[/\u0080/,"Padding Character"],[/\u0081/,"High Octet Preset"],[/\u0082/,"Break Permitted Here"],[/\u0083/,"No Break Here"],[/\u0084/,"Index"],[/\u0085/,"Next Line"],[/\u0086/,"Start of Selected Area"],[/\u0087/,"End of Selected Area"],[/\u0088/,"Character Tabulation Set"],[/\u0089/,"Character Tabulation with Justification"],[/\u008A/,"Line Tabulation Set"],[/\u008B/,"Partial Line Forward"],[/\u008C/,"Partial Line Backward"],[/\u008D/,"Reverse Line Feed"],[/\u008E/,"Single Shift Two"],[/\u008F/,"Single Shift Three"],[/\u0090/,"Device Control String"],[/\u0091/,"Private Use One"],[/\u0092/,"Private Use Two"],[/\u0093/,"Set Transmit State"],[/\u0094/,"Cancel Character"],[/\u0095/,"Message Waiting"],[/\u0096/,"Start of Protected Area"],[/\u0097/,"End of Protected Area"],[/\u0098/,"Start of String"],[/\u0099/,"Single Graphic Character Introducer"],[/\u009A/,"Single Character Introducer"],[/\u009B/,"Control Sequence Introducer"],[/\u009C/,"String Terminator"],[/\u009D/,"Operating System Command"],[/\u009E/,"Privacy Message"],[/\u009F/,"Application Program Command"],[/\u00A0/,"Non-breaking Space"],[/\u00AD/,"Soft Hyphen"],[/\u200B/,"Zero-width Space"],[/\u200C/,"Zero-width Non-joiner"],[/\u200D/,"Zero-width Joiner"],[/\u200E/,"Left-to-right Mark"],[/\u200F/,"Right-to-left Mark"],[/\u202A/,"Left-to-right Embedding"],[/\u202B/,"Right-to-left Embedding"],[/\u202C/,"Pop Directional Formatting"],[/\u202D/,"Left-to-right Override"],[/\u202E/,"Right-to-left Override"],[/\uFEFF/,"Byte Order Mark (BOM)"]];t||r.push([/\*/,"Asterisk"]);for(const[i,u]of r){const a=e.match(i);if(a){const o=JSON.stringify(a[0]).slice(1,-1);n.push(`Forbidden character: ${u}: "${o}"`)}}if(n.length>0)throw new Error(`Invalid namespace "${e}":
|
|
41
|
-
- ${n.join(`
|
|
42
|
-
- `)}`)}s(c6,"validateNamespace");function uf(e){return`yanki-media-${i6(sf(e)).replaceAll(/-+/g,"-")}`}s(uf,"getSlugifiedNamespace");function h6(e){const n={"application/octet-stream":"mp4","application/ogg":"ogx","application/pdf":"pdf","application/x-shockwave-flash":"swf","audio/aac":"aac","audio/flac":"flac","audio/mp4":"m4a","audio/mpeg":"mp3","audio/ogg":"ogg","audio/opus":"opus","audio/wav":"wav","audio/webm":"webm","audio/x-speex":"spx","image/avif":"avif","image/gif":"gif","image/jpeg":"jpg","image/png":"png","image/svg+xml":"svg","image/tiff":"tif","image/vnd.microsoft.icon":"ico","image/webp":"webp","image/x-icon":"ico","text/markdown":"md","video/3gpp":"3gp","video/flv":"flv","video/matroska":"mkv","video/mp4":"mp4","video/mpeg":"mpg","video/msvideo":"avi","video/ogg":"ogv","video/quicktime":"mov","video/webm":"webm","video/x-flv":"flv","video/x-matroska":"mkv","video/x-msvideo":"avi"}[e];if(n!==void 0)return n}s(h6,"getFileExtensionForMimeType");var xu,af;function f6(){if(af)return xu;af=1;/**
|
|
43
|
-
* @license Apache-2.0
|
|
44
|
-
*
|
|
45
|
-
* Copyright (c) 2021 The Stdlib Authors.
|
|
46
|
-
*
|
|
47
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
48
|
-
* you may not use this file except in compliance with the License.
|
|
49
|
-
* You may obtain a copy of the License at
|
|
50
|
-
*
|
|
51
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
52
|
-
*
|
|
53
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
54
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
55
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
56
|
-
* See the License for the specific language governing permissions and
|
|
57
|
-
* limitations under the License.
|
|
58
|
-
*/var e=typeof Object.defineProperty=="function"?Object.defineProperty:null;return xu=e,xu}s(f6,"requireDefine_property");var Iu,of;function m6(){if(of)return Iu;of=1;/**
|
|
59
|
-
* @license Apache-2.0
|
|
60
|
-
*
|
|
61
|
-
* Copyright (c) 2021 The Stdlib Authors.
|
|
62
|
-
*
|
|
63
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
64
|
-
* you may not use this file except in compliance with the License.
|
|
65
|
-
* You may obtain a copy of the License at
|
|
66
|
-
*
|
|
67
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
68
|
-
*
|
|
69
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
70
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
71
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
72
|
-
* See the License for the specific language governing permissions and
|
|
73
|
-
* limitations under the License.
|
|
74
|
-
*/var e=f6();function t(){try{return e({},"x",{}),!0}catch{return!1}}return s(t,"hasDefinePropertySupport"),Iu=t,Iu}s(m6,"requireHas_define_property_support");var vu,lf;function d6(){if(lf)return vu;lf=1;/**
|
|
75
|
-
* @license Apache-2.0
|
|
76
|
-
*
|
|
77
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
78
|
-
*
|
|
79
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
80
|
-
* you may not use this file except in compliance with the License.
|
|
81
|
-
* You may obtain a copy of the License at
|
|
82
|
-
*
|
|
83
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
84
|
-
*
|
|
85
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
86
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
87
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
88
|
-
* See the License for the specific language governing permissions and
|
|
89
|
-
* limitations under the License.
|
|
90
|
-
*/var e=Object.defineProperty;return vu=e,vu}s(d6,"requireBuiltin");var Lu,cf;function hf(){if(cf)return Lu;cf=1;/**
|
|
91
|
-
* @license Apache-2.0
|
|
92
|
-
*
|
|
93
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
94
|
-
*
|
|
95
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
96
|
-
* you may not use this file except in compliance with the License.
|
|
97
|
-
* You may obtain a copy of the License at
|
|
98
|
-
*
|
|
99
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
100
|
-
*
|
|
101
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
102
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
103
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
104
|
-
* See the License for the specific language governing permissions and
|
|
105
|
-
* limitations under the License.
|
|
106
|
-
*/function e(t){return typeof t=="number"}return s(e,"isNumber"),Lu=e,Lu}s(hf,"requireIs_number");var Ou,ff;function mf(){if(ff)return Ou;ff=1;/**
|
|
107
|
-
* @license Apache-2.0
|
|
108
|
-
*
|
|
109
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
110
|
-
*
|
|
111
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
112
|
-
* you may not use this file except in compliance with the License.
|
|
113
|
-
* You may obtain a copy of the License at
|
|
114
|
-
*
|
|
115
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
116
|
-
*
|
|
117
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
118
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
119
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
120
|
-
* See the License for the specific language governing permissions and
|
|
121
|
-
* limitations under the License.
|
|
122
|
-
*/function e(r){return r[0]==="-"}s(e,"startsWithMinus");function t(r){var i="",u;for(u=0;u<r;u++)i+="0";return i}s(t,"zeros");function n(r,i,u){var a=!1,o=i-r.length;return o<0||(e(r)&&(a=!0,r=r.substr(1)),r=u?r+t(o):t(o)+r,a&&(r="-"+r)),r}return s(n,"zeroPad"),Ou=n,Ou}s(mf,"requireZero_pad");var Ru,df;function p6(){if(df)return Ru;df=1;/**
|
|
123
|
-
* @license Apache-2.0
|
|
124
|
-
*
|
|
125
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
126
|
-
*
|
|
127
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
128
|
-
* you may not use this file except in compliance with the License.
|
|
129
|
-
* You may obtain a copy of the License at
|
|
130
|
-
*
|
|
131
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
132
|
-
*
|
|
133
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
134
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
135
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
136
|
-
* See the License for the specific language governing permissions and
|
|
137
|
-
* limitations under the License.
|
|
138
|
-
*/var e=hf(),t=mf(),n=String.prototype.toLowerCase,r=String.prototype.toUpperCase;function i(u){var a,o,l;switch(u.specifier){case"b":a=2;break;case"o":a=8;break;case"x":case"X":a=16;break;case"d":case"i":case"u":default:a=10;break}if(o=u.arg,l=parseInt(o,10),!isFinite(l)){if(!e(o))throw new Error("invalid integer. Value: "+o);l=0}return l<0&&(u.specifier==="u"||a!==10)&&(l=4294967295+l+1),l<0?(o=(-l).toString(a),u.precision&&(o=t(o,u.precision,u.padRight)),o="-"+o):(o=l.toString(a),!l&&!u.precision?o="":u.precision&&(o=t(o,u.precision,u.padRight)),u.sign&&(o=u.sign+o)),a===16&&(u.alternate&&(o="0x"+o),o=u.specifier===r.call(u.specifier)?r.call(o):n.call(o)),a===8&&u.alternate&&o.charAt(0)!=="0"&&(o="0"+o),o}return s(i,"formatInteger"),Ru=i,Ru}s(p6,"requireFormat_integer");var Pu,pf;function g6(){if(pf)return Pu;pf=1;/**
|
|
139
|
-
* @license Apache-2.0
|
|
140
|
-
*
|
|
141
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
142
|
-
*
|
|
143
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
144
|
-
* you may not use this file except in compliance with the License.
|
|
145
|
-
* You may obtain a copy of the License at
|
|
146
|
-
*
|
|
147
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
148
|
-
*
|
|
149
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
150
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
151
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
152
|
-
* See the License for the specific language governing permissions and
|
|
153
|
-
* limitations under the License.
|
|
154
|
-
*/function e(t){return typeof t=="string"}return s(e,"isString"),Pu=e,Pu}s(g6,"requireIs_string$1");var Mu,gf;function E6(){if(gf)return Mu;gf=1;/**
|
|
155
|
-
* @license Apache-2.0
|
|
156
|
-
*
|
|
157
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
158
|
-
*
|
|
159
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
160
|
-
* you may not use this file except in compliance with the License.
|
|
161
|
-
* You may obtain a copy of the License at
|
|
162
|
-
*
|
|
163
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
164
|
-
*
|
|
165
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
166
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
167
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
168
|
-
* See the License for the specific language governing permissions and
|
|
169
|
-
* limitations under the License.
|
|
170
|
-
*/var e=hf(),t=Math.abs,n=String.prototype.toLowerCase,r=String.prototype.toUpperCase,i=String.prototype.replace,u=/e\+(\d)$/,a=/e-(\d)$/,o=/^(\d+)$/,l=/^(\d+)e/,c=/\.0$/,f=/\.0*e/,h=/(\..*[^0])0*e/;function p(d){var E,g,D=parseFloat(d.arg);if(!isFinite(D)){if(!e(d.arg))throw new Error("invalid floating-point number. Value: "+g);D=d.arg}switch(d.specifier){case"e":case"E":g=D.toExponential(d.precision);break;case"f":case"F":g=D.toFixed(d.precision);break;case"g":case"G":t(D)<1e-4?(E=d.precision,E>0&&(E-=1),g=D.toExponential(E)):g=D.toPrecision(d.precision),d.alternate||(g=i.call(g,h,"$1e"),g=i.call(g,f,"e"),g=i.call(g,c,""));break;default:throw new Error("invalid double notation. Value: "+d.specifier)}return g=i.call(g,u,"e+0$1"),g=i.call(g,a,"e-0$1"),d.alternate&&(g=i.call(g,o,"$1."),g=i.call(g,l,"$1.e")),D>=0&&d.sign&&(g=d.sign+g),g=d.specifier===r.call(d.specifier)?r.call(g):n.call(g),g}return s(p,"formatDouble"),Mu=p,Mu}s(E6,"requireFormat_double");var Uu,Ef;function A6(){if(Ef)return Uu;Ef=1;/**
|
|
171
|
-
* @license Apache-2.0
|
|
172
|
-
*
|
|
173
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
174
|
-
*
|
|
175
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
176
|
-
* you may not use this file except in compliance with the License.
|
|
177
|
-
* You may obtain a copy of the License at
|
|
178
|
-
*
|
|
179
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
180
|
-
*
|
|
181
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
182
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
183
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
184
|
-
* See the License for the specific language governing permissions and
|
|
185
|
-
* limitations under the License.
|
|
186
|
-
*/function e(n){var r="",i;for(i=0;i<n;i++)r+=" ";return r}s(e,"spaces");function t(n,r,i){var u=r-n.length;return u<0||(n=i?n+e(u):e(u)+n),n}return s(t,"spacePad"),Uu=t,Uu}s(A6,"requireSpace_pad");var Hu,Af;function D6(){if(Af)return Hu;Af=1;/**
|
|
187
|
-
* @license Apache-2.0
|
|
188
|
-
*
|
|
189
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
190
|
-
*
|
|
191
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
* you may not use this file except in compliance with the License.
|
|
193
|
-
* You may obtain a copy of the License at
|
|
194
|
-
*
|
|
195
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
*
|
|
197
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
* See the License for the specific language governing permissions and
|
|
201
|
-
* limitations under the License.
|
|
202
|
-
*/var e=p6(),t=g6(),n=E6(),r=A6(),i=mf(),u=String.fromCharCode,a=Array.isArray;function o(f){return f!==f}s(o,"isnan");function l(f){var h={};return h.specifier=f.specifier,h.precision=f.precision===void 0?1:f.precision,h.width=f.width,h.flags=f.flags||"",h.mapping=f.mapping,h}s(l,"initialize");function c(f){var h,p,d,E,g,D,A,y,C;if(!a(f))throw new TypeError("invalid argument. First argument must be an array. Value: `"+f+"`.");for(D="",A=1,y=0;y<f.length;y++)if(d=f[y],t(d))D+=d;else{if(h=d.precision!==void 0,d=l(d),!d.specifier)throw new TypeError("invalid argument. Token is missing `specifier` property. Index: `"+y+"`. Value: `"+d+"`.");for(d.mapping&&(A=d.mapping),p=d.flags,C=0;C<p.length;C++)switch(E=p.charAt(C),E){case" ":d.sign=" ";break;case"+":d.sign="+";break;case"-":d.padRight=!0,d.padZeros=!1;break;case"0":d.padZeros=p.indexOf("-")<0;break;case"#":d.alternate=!0;break;default:throw new Error("invalid flag: "+E)}if(d.width==="*"){if(d.width=parseInt(arguments[A],10),A+=1,o(d.width))throw new TypeError("the argument for * width at position "+A+" is not a number. Value: `"+d.width+"`.");d.width<0&&(d.padRight=!0,d.width=-d.width)}if(h&&d.precision==="*"){if(d.precision=parseInt(arguments[A],10),A+=1,o(d.precision))throw new TypeError("the argument for * precision at position "+A+" is not a number. Value: `"+d.precision+"`.");d.precision<0&&(d.precision=1,h=!1)}switch(d.arg=arguments[A],d.specifier){case"b":case"o":case"x":case"X":case"d":case"i":case"u":h&&(d.padZeros=!1),d.arg=e(d);break;case"s":d.maxWidth=h?d.precision:-1,d.arg=String(d.arg);break;case"c":if(!o(d.arg)){if(g=parseInt(d.arg,10),g<0||g>127)throw new Error("invalid character code. Value: "+d.arg);d.arg=o(g)?String(d.arg):u(g)}break;case"e":case"E":case"f":case"F":case"g":case"G":h||(d.precision=6),d.arg=n(d);break;default:throw new Error("invalid specifier: "+d.specifier)}d.maxWidth>=0&&d.arg.length>d.maxWidth&&(d.arg=d.arg.substring(0,d.maxWidth)),d.padZeros?d.arg=i(d.arg,d.width||d.precision,d.padRight):d.width&&(d.arg=r(d.arg,d.width,d.padRight)),D+=d.arg||"",A+=1}return D}return s(c,"formatInterpolate"),Hu=c,Hu}s(D6,"requireMain$a");var $u,Df;function C6(){if(Df)return $u;Df=1;/**
|
|
203
|
-
* @license Apache-2.0
|
|
204
|
-
*
|
|
205
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
206
|
-
*
|
|
207
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
208
|
-
* you may not use this file except in compliance with the License.
|
|
209
|
-
* You may obtain a copy of the License at
|
|
210
|
-
*
|
|
211
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
212
|
-
*
|
|
213
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
214
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
215
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
216
|
-
* See the License for the specific language governing permissions and
|
|
217
|
-
* limitations under the License.
|
|
218
|
-
*/var e=D6();return $u=e,$u}s(C6,"requireLib$d");var qu,Cf;function T6(){if(Cf)return qu;Cf=1;/**
|
|
219
|
-
* @license Apache-2.0
|
|
220
|
-
*
|
|
221
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
222
|
-
*
|
|
223
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
224
|
-
* you may not use this file except in compliance with the License.
|
|
225
|
-
* You may obtain a copy of the License at
|
|
226
|
-
*
|
|
227
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
228
|
-
*
|
|
229
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
230
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
231
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
232
|
-
* See the License for the specific language governing permissions and
|
|
233
|
-
* limitations under the License.
|
|
234
|
-
*/var e=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;function t(r){var i={mapping:r[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]};return r[4]==="."&&r[5]===void 0&&(i.precision="1"),i}s(t,"parse");function n(r){var i,u,a,o;for(u=[],o=0,a=e.exec(r);a;)i=r.slice(o,e.lastIndex-a[0].length),i.length&&u.push(i),u.push(t(a)),o=e.lastIndex,a=e.exec(r);return i=r.slice(o),i.length&&u.push(i),u}return s(n,"formatTokenize"),qu=n,qu}s(T6,"requireMain$9");var zu,Tf;function y6(){if(Tf)return zu;Tf=1;/**
|
|
235
|
-
* @license Apache-2.0
|
|
236
|
-
*
|
|
237
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
238
|
-
*
|
|
239
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
240
|
-
* you may not use this file except in compliance with the License.
|
|
241
|
-
* You may obtain a copy of the License at
|
|
242
|
-
*
|
|
243
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
244
|
-
*
|
|
245
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
246
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
247
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
248
|
-
* See the License for the specific language governing permissions and
|
|
249
|
-
* limitations under the License.
|
|
250
|
-
*/var e=T6();return zu=e,zu}s(y6,"requireLib$c");var ju,yf;function b6(){if(yf)return ju;yf=1;/**
|
|
251
|
-
* @license Apache-2.0
|
|
252
|
-
*
|
|
253
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
254
|
-
*
|
|
255
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
256
|
-
* you may not use this file except in compliance with the License.
|
|
257
|
-
* You may obtain a copy of the License at
|
|
258
|
-
*
|
|
259
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
260
|
-
*
|
|
261
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
262
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
263
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
264
|
-
* See the License for the specific language governing permissions and
|
|
265
|
-
* limitations under the License.
|
|
266
|
-
*/function e(t){return typeof t=="string"}return s(e,"isString"),ju=e,ju}s(b6,"requireIs_string");var Yu,bf;function k6(){if(bf)return Yu;bf=1;/**
|
|
267
|
-
* @license Apache-2.0
|
|
268
|
-
*
|
|
269
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
270
|
-
*
|
|
271
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
272
|
-
* you may not use this file except in compliance with the License.
|
|
273
|
-
* You may obtain a copy of the License at
|
|
274
|
-
*
|
|
275
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
276
|
-
*
|
|
277
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
278
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
279
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
280
|
-
* See the License for the specific language governing permissions and
|
|
281
|
-
* limitations under the License.
|
|
282
|
-
*/var e=C6(),t=y6(),n=b6();function r(i){var u,a;if(!n(i))throw new TypeError(r("invalid argument. First argument must be a string. Value: `%s`.",i));for(u=[t(i)],a=1;a<arguments.length;a++)u.push(arguments[a]);return e.apply(null,u)}return s(r,"format"),Yu=r,Yu}s(k6,"requireMain$8");var Gu,kf;function _6(){if(kf)return Gu;kf=1;/**
|
|
283
|
-
* @license Apache-2.0
|
|
284
|
-
*
|
|
285
|
-
* Copyright (c) 2022 The Stdlib Authors.
|
|
286
|
-
*
|
|
287
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
288
|
-
* you may not use this file except in compliance with the License.
|
|
289
|
-
* You may obtain a copy of the License at
|
|
290
|
-
*
|
|
291
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
292
|
-
*
|
|
293
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
294
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
295
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
296
|
-
* See the License for the specific language governing permissions and
|
|
297
|
-
* limitations under the License.
|
|
298
|
-
*/var e=k6();return Gu=e,Gu}s(_6,"requireLib$b");var Vu,_f;function B6(){if(_f)return Vu;_f=1;/**
|
|
299
|
-
* @license Apache-2.0
|
|
300
|
-
*
|
|
301
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
302
|
-
*
|
|
303
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
304
|
-
* you may not use this file except in compliance with the License.
|
|
305
|
-
* You may obtain a copy of the License at
|
|
306
|
-
*
|
|
307
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
308
|
-
*
|
|
309
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
310
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
311
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
312
|
-
* See the License for the specific language governing permissions and
|
|
313
|
-
* limitations under the License.
|
|
314
|
-
*/var e=_6(),t=Object.prototype,n=t.toString,r=t.__defineGetter__,i=t.__defineSetter__,u=t.__lookupGetter__,a=t.__lookupSetter__;function o(l,c,f){var h,p,d,E;if(typeof l!="object"||l===null||n.call(l)==="[object Array]")throw new TypeError(e("invalid argument. First argument must be an object. Value: `%s`.",l));if(typeof f!="object"||f===null||n.call(f)==="[object Array]")throw new TypeError(e("invalid argument. Property descriptor must be an object. Value: `%s`.",f));if(p="value"in f,p&&(u.call(l,c)||a.call(l,c)?(h=l.__proto__,l.__proto__=t,delete l[c],l[c]=f.value,l.__proto__=h):l[c]=f.value),d="get"in f,E="set"in f,p&&(d||E))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return d&&r&&r.call(l,c,f.get),E&&i&&i.call(l,c,f.set),l}return s(o,"defineProperty"),Vu=o,Vu}s(B6,"requirePolyfill$1");var Wu,Bf;function S6(){if(Bf)return Wu;Bf=1;/**
|
|
315
|
-
* @license Apache-2.0
|
|
316
|
-
*
|
|
317
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
318
|
-
*
|
|
319
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
320
|
-
* you may not use this file except in compliance with the License.
|
|
321
|
-
* You may obtain a copy of the License at
|
|
322
|
-
*
|
|
323
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
324
|
-
*
|
|
325
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
326
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
327
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
328
|
-
* See the License for the specific language governing permissions and
|
|
329
|
-
* limitations under the License.
|
|
330
|
-
*/var e=m6(),t=d6(),n=B6(),r;return e()?r=t:r=n,Wu=r,Wu}s(S6,"requireLib$a");var Ku,Sf;function w6(){if(Sf)return Ku;Sf=1;/**
|
|
331
|
-
* @license Apache-2.0
|
|
332
|
-
*
|
|
333
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
334
|
-
*
|
|
335
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
336
|
-
* you may not use this file except in compliance with the License.
|
|
337
|
-
* You may obtain a copy of the License at
|
|
338
|
-
*
|
|
339
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
340
|
-
*
|
|
341
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
342
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
343
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
344
|
-
* See the License for the specific language governing permissions and
|
|
345
|
-
* limitations under the License.
|
|
346
|
-
*/var e=S6();function t(n,r,i){e(n,r,{configurable:!1,enumerable:!1,writable:!1,value:i})}return s(t,"setNonEnumerableReadOnly"),Ku=t,Ku}s(w6,"requireMain$7");var Qu,wf;function Ff(){if(wf)return Qu;wf=1;/**
|
|
347
|
-
* @license Apache-2.0
|
|
348
|
-
*
|
|
349
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
350
|
-
*
|
|
351
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
352
|
-
* you may not use this file except in compliance with the License.
|
|
353
|
-
* You may obtain a copy of the License at
|
|
354
|
-
*
|
|
355
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
356
|
-
*
|
|
357
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
358
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
359
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
360
|
-
* See the License for the specific language governing permissions and
|
|
361
|
-
* limitations under the License.
|
|
362
|
-
*/var e=w6();return Qu=e,Qu}s(Ff,"requireLib$9");var Xu,Nf;function F6(){if(Nf)return Xu;Nf=1;/**
|
|
363
|
-
* @license Apache-2.0
|
|
364
|
-
*
|
|
365
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
366
|
-
*
|
|
367
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
368
|
-
* you may not use this file except in compliance with the License.
|
|
369
|
-
* You may obtain a copy of the License at
|
|
370
|
-
*
|
|
371
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
372
|
-
*
|
|
373
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
374
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
375
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
376
|
-
* See the License for the specific language governing permissions and
|
|
377
|
-
* limitations under the License.
|
|
378
|
-
*/var e=ep,t=e.platform;return Xu=t,Xu}s(F6,"requireMain$6");var Ju,xf;function N6(){if(xf)return Ju;xf=1;/**
|
|
379
|
-
* @license Apache-2.0
|
|
380
|
-
*
|
|
381
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
382
|
-
*
|
|
383
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
384
|
-
* you may not use this file except in compliance with the License.
|
|
385
|
-
* You may obtain a copy of the License at
|
|
386
|
-
*
|
|
387
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
388
|
-
*
|
|
389
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
390
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
391
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
392
|
-
* See the License for the specific language governing permissions and
|
|
393
|
-
* limitations under the License.
|
|
394
|
-
*/var e=F6();return Ju=e,Ju}s(N6,"requireLib$8");var Zu,If;function x6(){if(If)return Zu;If=1;/**
|
|
395
|
-
* @license Apache-2.0
|
|
396
|
-
*
|
|
397
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
398
|
-
*
|
|
399
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
400
|
-
* you may not use this file except in compliance with the License.
|
|
401
|
-
* You may obtain a copy of the License at
|
|
402
|
-
*
|
|
403
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
404
|
-
*
|
|
405
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
406
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
407
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
408
|
-
* See the License for the specific language governing permissions and
|
|
409
|
-
* limitations under the License.
|
|
410
|
-
*/var e=N6(),t=e==="win32";return Zu=t,Zu}s(x6,"requireLib$7");var ea,vf;function Lf(){if(vf)return ea;vf=1;/**
|
|
411
|
-
* @license Apache-2.0
|
|
412
|
-
*
|
|
413
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
414
|
-
*
|
|
415
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
416
|
-
* you may not use this file except in compliance with the License.
|
|
417
|
-
* You may obtain a copy of the License at
|
|
418
|
-
*
|
|
419
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
420
|
-
*
|
|
421
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
422
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
423
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
424
|
-
* See the License for the specific language governing permissions and
|
|
425
|
-
* limitations under the License.
|
|
426
|
-
*/function e(t){return typeof t=="string"}return s(e,"isString"),ea=e,ea}s(Lf,"requirePrimitive");var ta,Of;function I6(){if(Of)return ta;Of=1;/**
|
|
427
|
-
* @license Apache-2.0
|
|
428
|
-
*
|
|
429
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
430
|
-
*
|
|
431
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
432
|
-
* you may not use this file except in compliance with the License.
|
|
433
|
-
* You may obtain a copy of the License at
|
|
434
|
-
*
|
|
435
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
436
|
-
*
|
|
437
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
438
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
439
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
440
|
-
* See the License for the specific language governing permissions and
|
|
441
|
-
* limitations under the License.
|
|
442
|
-
*/function e(){return typeof Symbol=="function"&&typeof Symbol("foo")=="symbol"}return s(e,"hasSymbolSupport"),ta=e,ta}s(I6,"requireMain$5");var na,Rf;function v6(){if(Rf)return na;Rf=1;/**
|
|
443
|
-
* @license Apache-2.0
|
|
444
|
-
*
|
|
445
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
446
|
-
*
|
|
447
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
448
|
-
* you may not use this file except in compliance with the License.
|
|
449
|
-
* You may obtain a copy of the License at
|
|
450
|
-
*
|
|
451
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
452
|
-
*
|
|
453
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
454
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
455
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
456
|
-
* See the License for the specific language governing permissions and
|
|
457
|
-
* limitations under the License.
|
|
458
|
-
*/var e=I6();return na=e,na}s(v6,"requireLib$6");var ra,Pf;function L6(){if(Pf)return ra;Pf=1;/**
|
|
459
|
-
* @license Apache-2.0
|
|
460
|
-
*
|
|
461
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
462
|
-
*
|
|
463
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
464
|
-
* you may not use this file except in compliance with the License.
|
|
465
|
-
* You may obtain a copy of the License at
|
|
466
|
-
*
|
|
467
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
468
|
-
*
|
|
469
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
470
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
471
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
472
|
-
* See the License for the specific language governing permissions and
|
|
473
|
-
* limitations under the License.
|
|
474
|
-
*/var e=v6(),t=e();function n(){return t&&typeof Symbol.toStringTag=="symbol"}return s(n,"hasToStringTagSupport"),ra=n,ra}s(L6,"requireMain$4");var ia,Mf;function Uf(){if(Mf)return ia;Mf=1;/**
|
|
475
|
-
* @license Apache-2.0
|
|
476
|
-
*
|
|
477
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
478
|
-
*
|
|
479
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
480
|
-
* you may not use this file except in compliance with the License.
|
|
481
|
-
* You may obtain a copy of the License at
|
|
482
|
-
*
|
|
483
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
484
|
-
*
|
|
485
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
486
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
487
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
488
|
-
* See the License for the specific language governing permissions and
|
|
489
|
-
* limitations under the License.
|
|
490
|
-
*/var e=L6();return ia=e,ia}s(Uf,"requireLib$5");var sa,Hf;function $f(){if(Hf)return sa;Hf=1;/**
|
|
491
|
-
* @license Apache-2.0
|
|
492
|
-
*
|
|
493
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
494
|
-
*
|
|
495
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
496
|
-
* you may not use this file except in compliance with the License.
|
|
497
|
-
* You may obtain a copy of the License at
|
|
498
|
-
*
|
|
499
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
500
|
-
*
|
|
501
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
502
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
503
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
504
|
-
* See the License for the specific language governing permissions and
|
|
505
|
-
* limitations under the License.
|
|
506
|
-
*/var e=Object.prototype.toString;return sa=e,sa}s($f,"requireTostring");var ua,qf;function O6(){if(qf)return ua;qf=1;/**
|
|
507
|
-
* @license Apache-2.0
|
|
508
|
-
*
|
|
509
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
510
|
-
*
|
|
511
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
512
|
-
* you may not use this file except in compliance with the License.
|
|
513
|
-
* You may obtain a copy of the License at
|
|
514
|
-
*
|
|
515
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
516
|
-
*
|
|
517
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
518
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
519
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
520
|
-
* See the License for the specific language governing permissions and
|
|
521
|
-
* limitations under the License.
|
|
522
|
-
*/var e=$f();function t(n){return e.call(n)}return s(t,"nativeClass"),ua=t,ua}s(O6,"requireMain$3");var aa,zf;function R6(){if(zf)return aa;zf=1;/**
|
|
523
|
-
* @license Apache-2.0
|
|
524
|
-
*
|
|
525
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
526
|
-
*
|
|
527
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
528
|
-
* you may not use this file except in compliance with the License.
|
|
529
|
-
* You may obtain a copy of the License at
|
|
530
|
-
*
|
|
531
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
532
|
-
*
|
|
533
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
534
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
535
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
536
|
-
* See the License for the specific language governing permissions and
|
|
537
|
-
* limitations under the License.
|
|
538
|
-
*/var e=Object.prototype.hasOwnProperty;function t(n,r){return n==null?!1:e.call(n,r)}return s(t,"hasOwnProp"),aa=t,aa}s(R6,"requireMain$2");var oa,jf;function P6(){if(jf)return oa;jf=1;/**
|
|
539
|
-
* @license Apache-2.0
|
|
540
|
-
*
|
|
541
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
542
|
-
*
|
|
543
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
544
|
-
* you may not use this file except in compliance with the License.
|
|
545
|
-
* You may obtain a copy of the License at
|
|
546
|
-
*
|
|
547
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
548
|
-
*
|
|
549
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
550
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
551
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
552
|
-
* See the License for the specific language governing permissions and
|
|
553
|
-
* limitations under the License.
|
|
554
|
-
*/var e=R6();return oa=e,oa}s(P6,"requireLib$4");var la,Yf;function M6(){if(Yf)return la;Yf=1;/**
|
|
555
|
-
* @license Apache-2.0
|
|
556
|
-
*
|
|
557
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
558
|
-
*
|
|
559
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
560
|
-
* you may not use this file except in compliance with the License.
|
|
561
|
-
* You may obtain a copy of the License at
|
|
562
|
-
*
|
|
563
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
564
|
-
*
|
|
565
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
566
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
567
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
568
|
-
* See the License for the specific language governing permissions and
|
|
569
|
-
* limitations under the License.
|
|
570
|
-
*/var e=typeof Symbol=="function"?Symbol:void 0;return la=e,la}s(M6,"requireMain$1");var ca,Gf;function U6(){if(Gf)return ca;Gf=1;/**
|
|
571
|
-
* @license Apache-2.0
|
|
572
|
-
*
|
|
573
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
574
|
-
*
|
|
575
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
576
|
-
* you may not use this file except in compliance with the License.
|
|
577
|
-
* You may obtain a copy of the License at
|
|
578
|
-
*
|
|
579
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
580
|
-
*
|
|
581
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
582
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
583
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
584
|
-
* See the License for the specific language governing permissions and
|
|
585
|
-
* limitations under the License.
|
|
586
|
-
*/var e=M6();return ca=e,ca}s(U6,"requireLib$3");var ha,Vf;function H6(){if(Vf)return ha;Vf=1;/**
|
|
587
|
-
* @license Apache-2.0
|
|
588
|
-
*
|
|
589
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
590
|
-
*
|
|
591
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
592
|
-
* you may not use this file except in compliance with the License.
|
|
593
|
-
* You may obtain a copy of the License at
|
|
594
|
-
*
|
|
595
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
596
|
-
*
|
|
597
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
598
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
599
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
600
|
-
* See the License for the specific language governing permissions and
|
|
601
|
-
* limitations under the License.
|
|
602
|
-
*/var e=U6(),t=typeof e=="function"?e.toStringTag:"";return ha=t,ha}s(H6,"requireTostringtag");var fa,Wf;function $6(){if(Wf)return fa;Wf=1;/**
|
|
603
|
-
* @license Apache-2.0
|
|
604
|
-
*
|
|
605
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
606
|
-
*
|
|
607
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
608
|
-
* you may not use this file except in compliance with the License.
|
|
609
|
-
* You may obtain a copy of the License at
|
|
610
|
-
*
|
|
611
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
612
|
-
*
|
|
613
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
614
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
615
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
616
|
-
* See the License for the specific language governing permissions and
|
|
617
|
-
* limitations under the License.
|
|
618
|
-
*/var e=P6(),t=H6(),n=$f();function r(i){var u,a,o;if(i==null)return n.call(i);a=i[t],u=e(i,t);try{i[t]=void 0}catch{return n.call(i)}return o=n.call(i),u?i[t]=a:delete i[t],o}return s(r,"nativeClass"),fa=r,fa}s($6,"requirePolyfill");var ma,Kf;function q6(){if(Kf)return ma;Kf=1;/**
|
|
619
|
-
* @license Apache-2.0
|
|
620
|
-
*
|
|
621
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
622
|
-
*
|
|
623
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
624
|
-
* you may not use this file except in compliance with the License.
|
|
625
|
-
* You may obtain a copy of the License at
|
|
626
|
-
*
|
|
627
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
628
|
-
*
|
|
629
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
630
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
631
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
632
|
-
* See the License for the specific language governing permissions and
|
|
633
|
-
* limitations under the License.
|
|
634
|
-
*/var e=Uf(),t=O6(),n=$6(),r;return e()?r=n:r=t,ma=r,ma}s(q6,"requireLib$2");var da,Qf;function z6(){if(Qf)return da;Qf=1;/**
|
|
635
|
-
* @license Apache-2.0
|
|
636
|
-
*
|
|
637
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
638
|
-
*
|
|
639
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
640
|
-
* you may not use this file except in compliance with the License.
|
|
641
|
-
* You may obtain a copy of the License at
|
|
642
|
-
*
|
|
643
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
644
|
-
*
|
|
645
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
646
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
647
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
648
|
-
* See the License for the specific language governing permissions and
|
|
649
|
-
* limitations under the License.
|
|
650
|
-
*/var e=String.prototype.valueOf;return da=e,da}s(z6,"requireValueof");var pa,Xf;function j6(){if(Xf)return pa;Xf=1;/**
|
|
651
|
-
* @license Apache-2.0
|
|
652
|
-
*
|
|
653
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
654
|
-
*
|
|
655
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
656
|
-
* you may not use this file except in compliance with the License.
|
|
657
|
-
* You may obtain a copy of the License at
|
|
658
|
-
*
|
|
659
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
660
|
-
*
|
|
661
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
662
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
663
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
664
|
-
* See the License for the specific language governing permissions and
|
|
665
|
-
* limitations under the License.
|
|
666
|
-
*/var e=z6();function t(n){try{return e.call(n),!0}catch{return!1}}return s(t,"test"),pa=t,pa}s(j6,"requireTry2valueof");var ga,Jf;function Zf(){if(Jf)return ga;Jf=1;/**
|
|
667
|
-
* @license Apache-2.0
|
|
668
|
-
*
|
|
669
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
670
|
-
*
|
|
671
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
672
|
-
* you may not use this file except in compliance with the License.
|
|
673
|
-
* You may obtain a copy of the License at
|
|
674
|
-
*
|
|
675
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
676
|
-
*
|
|
677
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
678
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
679
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
680
|
-
* See the License for the specific language governing permissions and
|
|
681
|
-
* limitations under the License.
|
|
682
|
-
*/var e=Uf(),t=q6(),n=j6(),r=e();function i(u){return typeof u=="object"?u instanceof String?!0:r?n(u):t(u)==="[object String]":!1}return s(i,"isString"),ga=i,ga}s(Zf,"requireObject");var Ea,em;function Y6(){if(em)return Ea;em=1;/**
|
|
683
|
-
* @license Apache-2.0
|
|
684
|
-
*
|
|
685
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
686
|
-
*
|
|
687
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
688
|
-
* you may not use this file except in compliance with the License.
|
|
689
|
-
* You may obtain a copy of the License at
|
|
690
|
-
*
|
|
691
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
692
|
-
*
|
|
693
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
694
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
695
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
696
|
-
* See the License for the specific language governing permissions and
|
|
697
|
-
* limitations under the License.
|
|
698
|
-
*/var e=Lf(),t=Zf();function n(r){return e(r)||t(r)}return s(n,"isString"),Ea=n,Ea}s(Y6,"requireMain");var Aa,tm;function nm(){if(tm)return Aa;tm=1;/**
|
|
699
|
-
* @license Apache-2.0
|
|
700
|
-
*
|
|
701
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
702
|
-
*
|
|
703
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
704
|
-
* you may not use this file except in compliance with the License.
|
|
705
|
-
* You may obtain a copy of the License at
|
|
706
|
-
*
|
|
707
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
708
|
-
*
|
|
709
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
710
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
711
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
712
|
-
* See the License for the specific language governing permissions and
|
|
713
|
-
* limitations under the License.
|
|
714
|
-
*/var e=Ff(),t=Y6(),n=Lf(),r=Zf();return e(t,"isPrimitive",n),e(t,"isObject",r),Aa=t,Aa}s(nm,"requireLib$1");var Da,rm;function G6(){if(rm)return Da;rm=1;/**
|
|
715
|
-
* @license Apache-2.0
|
|
716
|
-
*
|
|
717
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
718
|
-
*
|
|
719
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
720
|
-
* you may not use this file except in compliance with the License.
|
|
721
|
-
* You may obtain a copy of the License at
|
|
722
|
-
*
|
|
723
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
724
|
-
*
|
|
725
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
726
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
727
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
728
|
-
* See the License for the specific language governing permissions and
|
|
729
|
-
* limitations under the License.
|
|
730
|
-
*/var e=nm().isPrimitive;function t(n){return e(n)&&n.length>0&&n.charCodeAt(0)===47}return s(t,"isAbsolutePath"),Da=t,Da}s(G6,"requirePosix");var Ca,im;function V6(){if(im)return Ca;im=1;/**
|
|
731
|
-
* @license Apache-2.0
|
|
732
|
-
*
|
|
733
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
734
|
-
*
|
|
735
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
736
|
-
* you may not use this file except in compliance with the License.
|
|
737
|
-
* You may obtain a copy of the License at
|
|
738
|
-
*
|
|
739
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
740
|
-
*
|
|
741
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
742
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
743
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
744
|
-
* See the License for the specific language governing permissions and
|
|
745
|
-
* limitations under the License.
|
|
746
|
-
*/var e=nm().isPrimitive;function t(n){var r,i;return!e(n)||(i=n.length,i===0)?!1:(r=n.charCodeAt(0),r===47||r===92||(r>=65&&r<=90||r>=97&&r<=122)&&i>2&&n.charCodeAt(1)===58&&(r=n.charCodeAt(2),r===47||r===92))}return s(t,"isAbsolutePath"),Ca=t,Ca}s(V6,"requireWin32");var Ta,sm;function W6(){if(sm)return Ta;sm=1;/**
|
|
747
|
-
* @license Apache-2.0
|
|
748
|
-
*
|
|
749
|
-
* Copyright (c) 2018 The Stdlib Authors.
|
|
750
|
-
*
|
|
751
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
752
|
-
* you may not use this file except in compliance with the License.
|
|
753
|
-
* You may obtain a copy of the License at
|
|
754
|
-
*
|
|
755
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
756
|
-
*
|
|
757
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
758
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
759
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
760
|
-
* See the License for the specific language governing permissions and
|
|
761
|
-
* limitations under the License.
|
|
762
|
-
*/var e=Ff(),t=x6(),n=G6(),r=V6(),i;return t?i=r:i=n,e(i,"posix",n),e(i,"win32",r),Ta=i,Ta}s(W6,"requireLib");var K6=W6(),um=ki(K6);function Q6(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}s(Q6,"slash");function wi(e){return um.posix(e)||um.win32(e)}s(wi,"isAbsolute");const X6=/^\\\\\?\\.+/;function et(e){if(X6.test(e))return console.warn(`Unsupported extended length path detected: ${e}`),e;const t=Q6(e),n=ee.normalize(t);return t.startsWith("./")?`./${n}`:n}s(et,"normalize");function am(e,t){const{basePath:n,compoundBase:r=!1,cwd:i}=t;return n!==void 0&&(wi(n)||console.warn(`Base path "${n}" is not absolute`),i.startsWith(n)||console.warn(`CWD "${i}" does not start with base path "${n}"`)),wi(i)||console.warn(`CWD "${i}" is not absolute`),wi(e)?n===void 0||/^[A-Z]:/i.test(e)||!r&&e.startsWith(n)?e:ee.join(n,e):ee.join(i,e)}s(am,"resolveWithBasePath");function J6(e,t){const n=new RegExp(`^${t}`,"i");return e.replace(n,"")}s(J6,"stripBasePath");function Fi(e){const t=ee.dirname(e),n=ee.basename(e),[r,i]=$4(n,/[#?^]/);return[ee.join(t,r),i]}s(Fi,"getBaseAndQueryParts");function pr(e){return Fi(e)[0]}s(pr,"getBase");function Z6(e){return Fi(e).at(1)??""}s(Z6,"getQuery");function ew(e){return om(e)!==""}s(ew,"hasExtension");function om(e){return ee.extname(pr(e))}s(om,"getExtension");function lm(e,t){return ew(e)?e:cm(e,t)}s(lm,"addExtensionIfMissing");function cm(e,t){const[n,r]=Fi(e);return`${n}.${t}${r??""}`}s(cm,"addExtension");function hm(e){try{return decodeURI(e)}catch(t){console.warn(`Error decoding URI text: "${e}"`,t);return}}s(hm,"safeDecodeURI");function gr(e){try{const t=new URL(e),n=/^[a-z]:/i,r=/^file:/i;return(r.test(t.protocol)||n.test(t.protocol))&&!r.test(e)?void 0:t}catch{return}}s(gr,"safeParseUrl");function jt(e){return gr(e)!==void 0}s(jt,"isUrl");function tw(e){const t=gr(e);return t?.protocol==="file:"?t.pathname:e}s(tw,"fileUrlToPath");function Ni(e){const t=gr(e);if(t===void 0){const n=et(e);return wi(n)||n.startsWith("./")||n.startsWith("../")?"localFilePath":"localFileName"}return t.protocol==="file:"?"localFileUrl":t.protocol==="obsidian:"?"obsidianVaultUrl":t.protocol==="http:"||t.protocol==="https:"?"remoteHttpUrl":"unsupportedProtocolUrl"}s(Ni,"getSrcType");function fm(e,t){if(e===void 0)return;e instanceof Headers||(e=nw(e));const n=(e instanceof Headers?t.map(r=>e.get(r)):t.map(r=>e[r])).filter(r=>r!=null).join("");if(n!=="")return n}s(fm,"getHeadersString");function nw(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}s(nw,"convertKeysToLowercase");async function rw(e,t){try{return(await t(e,{method:"HEAD"}))?.status===200}catch{return!1}}s(rw,"urlExists");async function ya(e,t,n=V4){switch(n){case"metadata":{if(t===void 0)return ya(e,t,"name");try{const r=await t(e,{method:"HEAD"}),i=fm(r?.headers,["content-type"]);if(i===void 0)throw new Error("No content-type header found");return h6(i)}catch{return ya(e,t,"name")}}case"name":{let r;const i=gr(e);if(i===void 0){console.warn(`Could not parse URL: ${e}`);return}const u=i.pathname.split(".");return u.length>1?r=u.at(-1):r=i.search.split(".").at(-1),Qh.includes(r??"")?r:void 0}}}s(ya,"getFileExtensionFromUrl");async function ba(e,t,n=G4){switch(n){case"content":return console.warn("`content` hash mode is not yet implemented for URLs"),ba(e,t,"metadata");case"metadata":try{const r=await t(e,{method:"HEAD"}),i=fm(r?.headers,["etag","last-modified","content-length"]);if(i===void 0)throw new Error("No headers found");return Bi(i,16)}catch{return ba(e,t,"name")}case"name":return Bi(e,16)}}s(ba,"getUrlContentHash");function iw(e){const t=gr(e);return t===void 0?void 0:{host:`${t.protocol}//${t.hostname}`,port:Number.parseInt(t.port,10)}}s(iw,"urlToHostAndPort");function sw(e,t){return`${e}:${t}`}s(sw,"hostAndPortToUrl");async function uw(e,t){const n=jt(e)?await ya(e,t):ee.extname(e).slice(1);if(!(n===void 0||!Qh.includes(n)))return n}s(uw,"getAnkiMediaFilenameExtension");async function aw(e,t,n){return jt(e)?rw(e,n):l6(e,t)}s(aw,"mediaAssetExists");async function ow(e,t,n,r,i){if(!await aw(e,r,i))return;const a=uf(t),o=await lw(e,r,i),l=n===void 0?"":`.${n}`;let c;if(c=`${a}-${o}${l}`,c.length>Gh)throw new Error(`Filename too long: ${c}`);return c}s(ow,"getSafeAnkiMediaFilename");async function lw(e,t,n){return jt(e)?ba(e,n):rf(e,t)}s(lw,"getContentHash");const cw=s(function(){return function(e){let t=!1;se(e,(n,r,i)=>{if(i===void 0||r===void 0||n.type!=="element")return qe;if(n.tagName==="pre"&&n.children.length===1&&n.children[0].type==="element"&&n.children[0].tagName==="code"&&Array.isArray(n.children[0].properties.className)&&n.children[0].properties.className.includes("language-math")&&(t=!0,i.children.splice(r,1,n.children[0])),n.tagName==="code"&&Array.isArray(n.properties.className)&&n.properties.className.includes("language-math")){const u=n.properties.className.includes("math-display")||t;t=!1,n.tagName=u?"div":"span",n.children=[{type:"text",value:u?String.raw`\[`:String.raw`\(`},...n.children,{type:"text",value:u?String.raw`\]`:String.raw`\)`}]}})}},"plugin$6");function mm(e,t,n){const i=mt((n||{}).ignore||[]),u=hw(t);let a=-1;for(;++a<u.length;)Ms(e,"text",o);function o(c,f){let h=-1,p;for(;++h<f.length;){const d=f[h],E=p?p.children:void 0;if(i(d,E?E.indexOf(d):void 0,p))return;p=d}if(p)return l(c,f)}s(o,"visitor");function l(c,f){const h=f[f.length-1],p=u[a][0],d=u[a][1];let E=0;const D=h.children.indexOf(c);let A=!1,y=[];p.lastIndex=0;let C=p.exec(c.value);for(;C;){const F=C.index,v={index:C.index,input:C.input,stack:[...f,c]};let B=d(...C,v);if(typeof B=="string"&&(B=B.length>0?{type:"text",value:B}:void 0),B===!1?p.lastIndex=F+1:(E!==F&&y.push({type:"text",value:c.value.slice(E,F)}),Array.isArray(B)?y.push(...B):B&&y.push(B),E=F+C[0].length,A=!0),!p.global)break;C=p.exec(c.value)}return A?(E<c.value.length&&y.push({type:"text",value:c.value.slice(E)}),h.children.splice(D,1,...y)):y=[c],D+y.length}s(l,"handler")}s(mm,"findAndReplace");function hw(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([fw(i[0]),mw(i[1])])}return t}s(hw,"toPairs");function fw(e){return typeof e=="string"?new RegExp(Si(e),"g"):e}s(fw,"toExpression");function mw(e){return typeof e=="function"?e:function(){return e}}s(mw,"toFunction");function dw(e){mm(e,[/\r?\n|\r/g,pw])}s(dw,"newlineToBreak");function pw(){return{type:"break"}}s(pw,"replace$1");function gw(){return function(e){dw(e)}}s(gw,"remarkBreaks");const Ew=s(function(){return function(e,t){if(t.data.strictLineBreaks===!1){gw()(e);return}return e}},"plugin$5"),dm=Du().use(Ew).use(m4,{allowDangerousHtml:!0}).use(_S).use(cw).use(wk,{defaultLanguage:"plaintext",fallbackLanguage:"plaintext",themes:{dark:"github-dark",light:"github-light"}}).use(l3).use(BS),Aw={...Re};async function Yt(e,t){if(e===void 0)return"";const{cssClassNames:n,fetchAdapter:r=dr(),fileAdapter:i=await An(),namespace:u,strictLineBreaks:a,syncMediaAssets:o,useEmptyPlaceholder:l}=xe(Aw,t??{}),c=await dm.run(e,{data:{strictLineBreaks:a}}),f=ne("root",[ne("element",{properties:{className:n?.map(g=>M4(g))},tagName:"div"},c.children)]),h=[];se(f,"element",(g,D,A)=>{if(A===void 0||D===void 0||g.tagName!=="img")return qe;if(typeof g.properties.src!="string"||g.properties?.src?.trim().length===0)return console.warn("Image has no src"),qe;let y;const C=Ni(g.properties.src);switch(C){case"localFilePath":{if(y=hm(g.properties.src),y===void 0)return qe;y=pr(y);break}case"unsupportedProtocolUrl":case"localFileName":{console.warn(`Unsupported URL for media asset, treating as link: "${g.properties.src}"`),y=g.properties.src;break}case"obsidianVaultUrl":case"localFileUrl":{y=g.properties.src;break}case"remoteHttpUrl":{y=g.properties.src;break}}h.push(async()=>{const F=await uw(y,C==="obsidianVaultUrl"?void 0:r),v=F!==void 0&&C!=="unsupportedProtocolUrl"&&C!=="localFileName"&&C!=="obsidianVaultUrl"&&C!=="localFileUrl",B=(C==="localFilePath"&&o==="local"||C==="remoteHttpUrl"&&o==="remote"||o==="all")&&v,L=B?await ow(y,u,F,i,r):void 0,x=L??y,w=B&&L!==void 0?"true":"false";if(!v||Kh.includes(F)){const N=jt(x)?x:`${x}${Z6(String(g.properties.dataYankiSrcOriginal))}`;A.children.splice(D,1,ne("element",{properties:{className:["yanki-media",`yanki-media-${v?"file":"unsupported"}`],"data-yanki-alt-text":g.properties.alt,"data-yanki-media-src":y,"data-yanki-media-sync":w,"data-yanki-src":x,"data-yanki-src-original":g.properties.dataYankiSrcOriginal},tagName:"span"},[ne("element",{properties:{href:N},tagName:"a"},[ne("text",decodeURI(String(g.properties.dataYankiSrcOriginal)))])]))}else Vh.includes(F)?(g.properties.src=x,g.properties.className=["yanki-media","yanki-media-image"],g.properties.dataYankiMediaSrc=y,g.properties.dataYankiMediaSync=w):Wh.includes(F)&&A.children.splice(D,1,ne("element",{properties:{className:["yanki-media","yanki-media-audio-video"],"data-yanki-alt-text":g.properties.alt,"data-yanki-media-src":y,"data-yanki-media-sync":w,"data-yanki-src":x,"data-yanki-src-original":g.properties.dataYankiSrcOriginal},tagName:"span"},[ne("text",`[sound:${x}]`)]))})});for(const g of h)await g();se(f,"element",(g,D,A)=>{if(A===void 0||D===void 0||g.tagName!=="img"||gt(String(g.properties.alt))===void 0)return qe;const y=String(g.properties.alt??""),{alt:C,height:F,width:v}=yw(y);C===void 0?delete g.properties.alt:g.properties.alt=C,F!==void 0&&(g.properties.height=F),v!==void 0&&(g.properties.width=v)});const p=kw(f);if(p&&!l)return"";const d=p?_w(f,j4):f,E=dm.stringify(d);return Dw(E).trim()}s(Yt,"mdastToHtml");const pm=Du().use(tp,{fragment:!0});function Dw(e){return`<!-- This HTML was generated by Yanki, a Markdown to Anki converter. Do not edit directly. -->
|
|
763
|
-
${e}`}s(Dw,"addBoilerplateComment");function Cw(e){return mc(e)}s(Cw,"hastToPlainText");function gm(e){const t=pm.parse(e);return Cw(t)}s(gm,"htmlToPlainText");function Tw(e){return gm(e).split(`
|
|
764
|
-
`).map(n=>n.trim()).filter(n=>n.length>0).join(" ")}s(Tw,"getAllLinesOfHtmlAsPlainText");function ka(e){return gm(e).split(`
|
|
765
|
-
`).map(n=>n.trim()).find(n=>n.length>0)??""}s(ka,"getFirstLineOfHtmlAsPlainText");function Em(e){const t=pm.parse(e),n=[];return se(t,"element",r=>{if((r.tagName==="img"||r.tagName==="span")&&r.properties?.dataYankiMediaSync==="true"){const i=r.properties?.src??r.properties?.dataYankiSrc,u=r.properties?.dataYankiMediaSrc;i!==void 0&&u!==void 0&&typeof i=="string"&&typeof u=="string"&&n.push({filename:i,originalSrc:u})}}),n}s(Em,"extractMediaFromHtml");function yw(e){const t=e.split("|"),n=gt(t.pop()),r=gt(t.join("|"));if(n!==void 0){const{width:i,height:u}=bw(n);if(i!==void 0||u!==void 0)return{alt:r,height:u,width:i}}return{alt:e,height:void 0,width:void 0}}s(yw,"parseDimensionsFromAltText");function bw(e){if(!/^[\dx]+$/.test(e))return{width:void 0,height:void 0};if(!e.includes("x")){const u=Number.parseInt(e,10);if(!Number.isNaN(u))return{width:u,height:void 0}}const[t,n]=e.split("x").map(u=>Number.parseInt(u,10)),r=Number.isNaN(t),i=Number.isNaN(n);return{width:r||t===void 0?void 0:t,height:i||n===void 0?void 0:n}}s(bw,"parseDimensions");function kw(e){let t=!1;return se(e,n=>{if(!t){if(n.type==="element"){const r=n,{tagName:i}=r;if(["img","video","audio","iframe","object","embed","canvas","svg","picture"].includes(i)||mc(r).trim())return t=!0,ve}if(n.type==="text"&&n.value!==void 0&&n.value.trim()!=="")return t=!0,ve}}),!t}s(kw,"isVisuallyEmpty");function _w(e,t){return se(e,"element",n=>{if(n.tagName==="div")return n.children.unshift(t),ve}),e}s(_w,"addFirstChildToFirstDiv");const xi=[{cardTemplates:[{Back:`{{FrontSide}}
|
|
766
|
-
|
|
767
|
-
<hr id=answer>
|
|
768
|
-
|
|
769
|
-
{{Back}}`,Front:"{{Front}}",YankiNamespace:"{{YankiNamespace}}"}],inOrderFields:["Front","Back","YankiNamespace"],modelName:"Yanki - Basic"},{cardTemplates:[{Back:`{{cloze:Front}}<br>
|
|
770
|
-
{{Back}}`,Front:"{{cloze:Front}}",YankiNamespace:"{{YankiNamespace}}"}],inOrderFields:["Front","Back","YankiNamespace"],isCloze:!0,modelName:"Yanki - Cloze"},{cardTemplates:[{Back:`{{Front}}
|
|
771
|
-
|
|
772
|
-
<hr id=answer>
|
|
773
|
-
|
|
774
|
-
{{type:Back}}`,Front:`{{Front}}
|
|
775
|
-
|
|
776
|
-
{{type:Back}}`,YankiNamespace:"{{YankiNamespace}}"}],inOrderFields:["Front","Back","YankiNamespace"],modelName:"Yanki - Basic (type in the answer)"},{cardTemplates:[{Back:`{{FrontSide}}
|
|
777
|
-
|
|
778
|
-
<hr id=answer>
|
|
779
|
-
|
|
780
|
-
{{Back}}{{#Extra}}
|
|
781
|
-
|
|
782
|
-
<hr>
|
|
783
|
-
|
|
784
|
-
{{Extra}}{{/Extra}}`,Front:"{{Front}}",YankiNamespace:"{{YankiNamespace}}"},{Back:`{{FrontSide}}
|
|
785
|
-
|
|
786
|
-
<hr id=answer>
|
|
787
|
-
|
|
788
|
-
{{Front}}{{#Extra}}
|
|
789
|
-
|
|
790
|
-
<hr>
|
|
791
|
-
|
|
792
|
-
{{Extra}}{{/Extra}}`,Front:"{{Back}}",YankiNamespace:"{{YankiNamespace}}"}],inOrderFields:["Front","Back","Extra","YankiNamespace"],modelName:"Yanki - Basic (and reversed card with extra)"}],Ii=xi.map(e=>e.modelName),Bw=["Yanki - Basic (and reversed card)"];async function Am(e,t,n=!1){if(n)return;const r=t.map(i=>i.noteId).filter(i=>i!==void 0);await e.note.deleteNotes({notes:r})}s(Am,"deleteNotes");async function _a(e,t,n){if(t.noteId!==void 0)throw new Error("Note already has an ID");if(n)return 0;const r=await e.note.addNote({note:{...t,options:{allowDuplicate:!0}}}).catch(async i=>{if(i instanceof Error){if(i.message===`model was not found: ${t.modelName}`){const u=xi.find(a=>a.modelName===t.modelName);if(u===void 0)throw new Error(`Model not found: ${t.modelName}`);return await e.model.createModel(u),_a(e,t,n)}if(i.message===`deck was not found: ${t.deckName}`){if(t.deckName==="")throw new Error("Deck name is empty");return await e.deck.createDeck({deck:t.deckName}),_a(e,t,n)}throw i}else throw new TypeError("Unknown error")});if(r===null)throw new Error("Note creation failed");return await km(e,t,n),r}s(_a,"addNote");async function Dm(e,t,n,r){if(t.noteId===void 0)throw new Error("Local note ID is undefined");if(n.cards===void 0)throw new Error("Remote note cards are undefined");let i=!1;if(t.deckName!==n.deckName){if(t.deckName==="")throw new Error("Local deck name is empty");r||await e.deck.changeDeck({cards:n.cards,deck:t.deckName}),i=!0}return(!Tm(t.tags??[],n.tags??[])||!Cm(t.fields,n.fields)||t.modelName!==n.modelName)&&(r||(await e.note.updateNoteModel({note:{...t,id:t.noteId,tags:t.tags??[]}}).catch(async u=>{if(u instanceof Error){if(u.message===`Model '${t.modelName}' not found`){const a=xi.find(o=>o.modelName===t.modelName);if(a===void 0)throw new Error(`Model not found: ${t.modelName}`);return await e.model.createModel(a),Dm(e,t,n,r)}throw u}else throw new TypeError("Unknown error")}),await km(e,t,r)),i=!0),i}s(Dm,"updateNote");function Cm(e,t){const n=["Front","Back","Extra"];for(const r of n)if(r in e&&r in t){if(e[r].normalize("NFC")!==t[r].normalize("NFC"))return!1}else if(r in e||r in t)return!1;return!0}s(Cm,"areFieldsEqual");function Sw(e,t,n=!0){return!(n&&e.noteId!==t.noteId||e.deckName!==t.deckName||e.modelName!==t.modelName||!Cm(e.fields,t.fields)||!Tm(e.tags??[],t.tags??[]))}s(Sw,"areNotesEqual");function Tm(e,t){const n=new Set(e.map(u=>u.normalize("NFC").toLowerCase())),r=new Set(t.map(u=>u.normalize("NFC").toLowerCase()));return new Set([...n,...r]).size===r.size}s(Tm,"areTagsEqual");async function Ba(e,t=Re.namespace){const n=await e.note.findNotes({query:`"YankiNamespace:${t}"`});return await ww(e,n)}s(Ba,"getRemoteNotes");async function ww(e,t){const n=await e.note.notesInfo({notes:t}),r=[];if(n.every(c=>c.noteId===void 0))return Array.from({length:n.length}).fill(void 0);const i=n.flatMap(c=>c.cards??[]),u=await e.deck.getDecks({cards:i}),a=new Map;for(const[c,f]of Object.entries(u))for(const h of f)a.set(h,c);const o=new Map,l=new Map;for(const c of n){if(c.noteId===void 0){r.push(void 0);continue}if(![...Bw,...Ii].includes(c.modelName))throw new Error(`Unknown model name ${c.modelName} for note ${c.noteId}`);let h=[...new Set(c.cards.map(p=>a.get(p)))].at(0);if(h===void 0)throw new Error(`No deck found for cards in note ${c.noteId}`);if(!o.has(h)){const d=!!(await e.deck.getDeckConfig({deck:h})).dyn;if(o.set(h,d),d){const E=await e.deck.deckNames();for(const D of E)if(!o.has(D)){const A=await e.deck.getDeckConfig({deck:D});o.set(D,!!A.dyn)}const g=[...o.entries()].filter(([D,A])=>!A&&D!=="Default").map(([D])=>D).sort((D,A)=>A.split("::").length-D.split("::").length);g.push("Default");for(const D of g)l.set(D,void 0)}}if(o.get(h)){const p=l.keys();let d=!1;for(const E of p)if(l.get(E)===void 0&&l.set(E,await e.note.findNotes({query:`"deck:${E}"`})),l.get(E)?.includes(c.noteId)){h=E,d=!0;break}if(!d)throw new Error(`No matching non-filtered deck found for note ${c.noteId}`)}r.push({cards:c.cards,deckName:h,fields:{Back:c.fields.Back.value??"",...c.fields.Extra!==void 0&&{Extra:c.fields.Extra.value??""},Front:c.fields.Front.value??"",YankiNamespace:c.fields.YankiNamespace.value??""},modelName:c.modelName,noteId:c.noteId,tags:c.tags})}return r}s(ww,"getRemoteNotesById");async function ym(e,t,n,r){const i=[...new Set(t.map(f=>f.deckName))].filter(Boolean),a=[...new Set(n.map(f=>f.deckName))].filter(Boolean).filter(f=>!i.includes(f)),o=[];for(const f of a){const h=f.split("::");if(h.length!==1)for(;h.length>1;){h.pop();const p=h.join("::");if(i.some(d=>p.includes(d)))break;o.push(p)}}const l=[...new Set([...a,...o])].sort(),c=[];for(const f of l){const h=await e.deck.getDeckStats({decks:[f]}),p=Object.values(h);if(p.length>1){console.warn(`Multiple decks found for deck name: ${f}`);continue}const d=p.at(0);if(d===void 0){console.warn(`Deck not found for deck name: ${f}`);continue}const E=Math.max(d.total_in_deck,d.new_count+d.learn_count+d.review_count);if(r){const g=n.filter(A=>A.deckName===f).length,D=t.filter(A=>A.deckName===f).length;E===g&&D===0&&!c.includes(f)&&c.push(f)}else E===0&&!c.includes(f)&&c.push(f)}return r||await e.deck.deleteDecks({cardsToo:!0,decks:c}),c}s(ym,"deleteOrphanedDecks");async function bm(e,t,n,r){let i;try{const{css:u}=await e.model.modelStyling({modelName:t});i=u}catch(u){if(u instanceof Error){if(u.message===`model was not found: ${t}`){const a=xi.find(o=>o.modelName===t);if(a===void 0)throw new Error(`Model not found: ${t}`);return r?!1:(await e.model.createModel(a),bm(e,a.modelName,n,r))}throw u}else throw new TypeError("Unknown error")}return i!==void 0&&i===n?!1:(r||await e.model.updateModelStyling({model:{css:n,name:t}}),!0)}s(bm,"updateModelStyle");async function Fw(e,t=Ii[0]){const{css:n}=await e.model.modelStyling({modelName:t});return n}s(Fw,"getModelStyle");async function km(e,t,n){const r=Em(`${t.fields.Front}
|
|
793
|
-
${t.fields.Back}
|
|
794
|
-
${t.fields.Extra}`),i=[];for(const{filename:u,originalSrc:a}of r)if((await e.media.getMediaFilesNames({pattern:u})).length===0){if(!n)try{const l=await e.media.storeMediaFile(jt(a)?{deleteExisting:!0,filename:u,url:a}:{deleteExisting:!0,filename:u,path:a});u!==l&&console.warn(`Anki media filename mismatch: Expected: "${u}" -> Received: "${l}"`)}catch(l){console.warn(`Anki could not store media file: "${u}"
|
|
795
|
-
${String(l)}`)}i.push({filename:u,originalSrc:a})}return i}s(km,"uploadMediaForNote");async function _m(e,t,n,r){if(r)return[];const i=uf(n),u=[];for(const l of t){const c=Em(`${l.fields.Front}
|
|
796
|
-
${l.fields.Back}
|
|
797
|
-
${l.fields.Extra}`);for(const{filename:f}of c)u.push(f)}const a=await e.media.getMediaFilesNames({pattern:`${i}-*`}),o=[];for(const l of a)u.includes(l)||(await e.media.deleteMediaFile({filename:l}),o.push(l));return o}s(_m,"deleteUnusedMedia");async function Er(e){try{const{permission:t}=await e.miscellaneous.requestPermission();if(t==="denied")throw new Error('Permission denied, please add this source to the "webCorsOriginList" in the Anki-Connect add-on configuration options.');return"granted"}catch(t){if(t instanceof Error&&(t.message==="fetch failed"||t.message==="net::ERR_CONNECTION_REFUSED"))return"ankiUnreachable";throw t}}s(Er,"requestPermission");async function Sa(e){try{await e.miscellaneous.sync()}catch{console.warn("Could not sync to AnkiWeb.")}}s(Sa,"syncToAnkiWeb");const Bm={...Re};async function Nw(e){const t=performance.now(),{ankiConnectOptions:n,ankiWeb:r,dryRun:i,namespace:u}=xe(Bm,e??{}),a=zt(u,!0),o=new $n(n);if(await Er(o)==="ankiUnreachable")throw new Error("Anki is unreachable. Is Anki running?");const c=await Ba(o,a);await Am(o,c,i);const f=await ym(o,[],c,i),h=await _m(o,[],a,i),p=c.length>0||f.length>0;return!i&&r&&(p||Bu)&&await Sa(o),{ankiWeb:r,deletedDecks:f,deletedMedia:h,deletedNotes:c,dryRun:i,duration:performance.now()-t,namespace:a}}s(Nw,"cleanNotes");function xw(e,t=!1){const n=e.deletedDecks.length,r=e.deletedNotes.length,i=e.deletedMedia.length;if(n===0&&r===0&&i===0)return"Nothing to delete";const u=[`${e.dryRun?"Will":"Successfully"} deleted ${r} ${sn("note",r)}, ${n} ${sn("deck",n)}, and ${i} media ${sn("asset",i)} from Anki${e.dryRun?"":` in ${as(e.duration)}`}.`];if(t){if(r>0){u.push("",e.dryRun?"Notes to delete:":"Deleted notes:");for(const a of e.deletedNotes){const o=_u(ka(a.fields.Front),50);u.push(` Note ID ${a.noteId} ${o}`)}}if(n>0){u.push("",e.dryRun?"Decks to delete:":"Deleted decks:");for(const a of e.deletedDecks)u.push(` ${a}`)}if(i>0){u.push("",e.dryRun?"Media assets to delete:":"Deleted media assets:");for(const a of e.deletedMedia)u.push(` ${a}`)}}return u.join(`
|
|
798
|
-
`)}s(xw,"formatCleanResult");const Sm={...Re};async function Iw(e){const t=performance.now(),{ankiConnectOptions:n,namespace:r}=xe(Sm,e??{}),i=zt(r,!0),u=new $n(n);if(await Er(u)==="ankiUnreachable")throw new Error("Anki is unreachable. Is Anki running?");const o=await Ba(u,i);return{duration:performance.now()-t,namespace:i,notes:o}}s(Iw,"listNotes");function vw(e){if(e.notes.length===0)return"No notes found.";const t=[];for(const n of e.notes){const r=_u(ka(n.fields.Front),50);t.push(`Note ID ${n.noteId} ${r}`)}return t.join(`
|
|
799
|
-
`)}s(vw,"formatListResult");function wm(){return/[<>:"/\\|?*\u0000-\u001F]/g}s(wm,"filenameReservedRegex");function Lw(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}s(Lw,"windowsReservedNameRegex");const Ow=100,Rw=/^\.+(\\|\/)|^\.+$/,Pw=/\.+$/;function Mw(e,t={}){const n=/[\u0000-\u001F\u0080-\u009F]/g,r=/([<>:"/\\|?*\u0000-\u001F]){2,}/g;if(typeof e!="string")throw new TypeError("Expected a string");const i=t.replacement===void 0?"!":t.replacement;if(wm().test(i)&&n.test(i))throw new Error("Replacement string cannot contain reserved filename characters");i.length>0&&(e=e.replace(r,"$1")),e=e.normalize("NFD"),e=e.replace(Rw,i),e=e.replace(wm(),i),e=e.replace(n,i),e=e.replace(Pw,""),i.length>0&&(!(e[0]===".")&&e[0]==="."&&(e=i+e),e[e.length-1]==="."&&(e+=i)),e=Lw().test(e)?e+i:e;const u=typeof t.maxLength=="number"?t.maxLength:Ow;if(e.length>u){const a=e.lastIndexOf(".");if(a===-1)e=e.slice(0,u);else{const o=e.slice(0,a),l=e.slice(a);e=o.slice(0,Math.max(1,u-l.length))+l}}return e}s(Mw,"filenamify");const Uw="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Hw=128;let Gt,Cn;function $w(e){!Gt||Gt.length<e?(Gt=Buffer.allocUnsafe(e*Hw),Ro.getRandomValues(Gt),Cn=0):Cn+e>Gt.length&&(Ro.getRandomValues(Gt),Cn=0),Cn+=e}s($w,"fillPool");function qw(e=21){$w(e|=0);let t="";for(let n=Cn-e;n<Cn;n++)t+=Uw[Gt[n]&63];return t}s(qw,"nanoid");function zw(e,t,n){if(t==="off")throw new Error("manageFilenames must not be off");switch(e.modelName){case"Yanki - Basic":case"Yanki - Basic (and reversed card with extra)":case"Yanki - Basic (type in the answer)":{const r=gt(Tn(e.fields.Front).replace(Su,"").replace(wu,"")),i=gt(Tn(e.fields.Back).replace(Su,"").replace(wu,""));switch(t){case"prompt":return Tn(r??i??"",n);case"response":return Tn(i??r??"",n)}}case"Yanki - Cloze":{const r=Tw(e.fields.Front),i=gt(r.split("{{").at(0)??""),u=gt(/\{\{\w\d*\s?:{0,2}([^:}]+)/.exec(r)?.at(1)),a=gt(r.split("}}").at(1)?.split("{{").at(0)??"");switch(t){case"prompt":return Tn(i??a??u??"",n);case"response":return Tn(u??i??a??"",n)}}}}s(zw,"getSafeTitleForNote");function Tn(e,t){let n=Mw(ka(e).trim(),{maxLength:Number.MAX_SAFE_INTEGER,replacement:" "}).replaceAll(/\s+/g," ").trim();if(n.length===0&&(n=wu),n=n.normalize("NFC"),t===void 0)return n;const r=Math.min(t,Gh-12);return _u(n,r)}s(Tn,"getSafeFilename");function jw(e,t){let n=wa(e,1),r=2;for(;t.includes(n.toLowerCase());)n=wa(e,r),r++;return n}s(jw,"getUniqueFilePath");function Yw(e,t){const n=wa(e,2);return t.includes(n.toLowerCase())?e:Fm(e)}s(Yw,"auditUniqueFilePath");function Fm(e){const t=e.endsWith(".")||e.endsWith(")")?void 0:ee.extname(e),n=ee.basename(e,t).replace(/\s\(\d+\)$/,"");return ee.join(ee.dirname(e),`${n}${t??""}`)}s(Fm,"stripFilenameIncrement");function wa(e,t){const n=ee.extname(e),r=ee.basename(e,n),i=`${Fm(r)} (${t})`;return ee.join(ee.dirname(e),`${i}${n}`)}s(wa,"appendFilenameIncrement");function Gw(e){return`${e}-${qw(8)}`}s(Gw,"getTemporarilyUniqueFilePath");function Vw(e){let t,n=0;const r=/\{([^\|\}]+\|[^\|\}]+(?:\|[^\{\|\}]+)*)\}/g,i=[];for(;(t=r.exec(e))!==null;)i.push(e.substring(n,t.index)),i.push(t[1].split("|")),n=t.index+t[0].length;return i.push(e.substring(n,e.length)),i.filter(u=>u!=="")}s(Vw,"scanRuby");function Nm(e,t){return[ne("text",{value:e}),ne("rp",{data:{hName:"rp"}},[ne("text",{value:"("})]),ne("rt",{data:{hName:"rt"}},[ne("text",{value:t})]),ne("rp",{data:{hName:"rp"}},[ne("text",{value:")"})])]}s(Nm,"buildRubyToken");function Ww(e){const t=Array.from(e[0]);if(t.length+1===e.length){const n=[];for(let r=0;r<t.length;r++)n.push(...Nm(t[r],e[r+1]));return ne("ruby",{data:{hName:"ruby"}},n)}else{const n=e[0],r=e.slice(1).join("");return ne("ruby",{data:{hName:"ruby"}},Nm(n,r))}}s(Ww,"buildRubyAst");function Kw(){function e(t){se(t,"text",(n,r,i)=>{const u=Vw(n.value).map(a=>typeof a=="string"?{type:"text",value:a}:Ww(a));return i.children.splice(r,1,...u),r+u.length})}return s(e,"transformer"),e}s(Kw,"plugin$4");const Qw=s((function(e,t,n,r,i){const u=mt(r),a=[];if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index for start")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index for start");if(typeof n=="number"){if(n<0||n===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index for end")}else if(n=e.children.indexOf(n),n<0)throw new Error("Expected child node or index for end");for(;++t<n;)u(e.children[t],t,e)&&a.push(e.children[t]);return a}),"findAllBetween"),Xw=s((function(e,t,n){const r=mt(n),i=[];let u=-1;if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(t>e.children.length&&(t=e.children.length);++u<t;)r(e.children[u],u,e)&&i.push(e.children[u]);return i}),"findAllBefore"),Jw=s((function(e,t,n){const r=mt(n),i=[];if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)r(e.children[t],t,e)&&i.push(e.children[t]);return i}),"findAllAfter"),xm={a:"amber",b:"blue",c:"cyan",d:"brown",e:"espresso",f:"fuchsia",g:"green",h:"hotpink",i:"indigo",j:"jade",k:"kiwi",l:"lime",m:"magenta",n:"navyblue",o:"orange",p:"purple",q:"pink",r:"red",s:"silver",t:"teal",u:"umber",v:"violet",w:"white",x:"gray",y:"yellow",z:"black"},Zw={dictionary:xm,markerTagName:"mark",markerClassName:"flexible-marker",actionForEmptyContent:"mark"},eF=/=([a-z]?)=(?![\s=])([\s\S]*?)(?<![\s=])==/,tF=/=([a-z]?)=(?![\s=])([\s\S]*?)(?<![\s=])==/g,nF=/=([a-z]?)=(?![\s]|=+\s)/,rF=/=([a-z]?)=(?![\s]|=+\s)/g,iF=/(?<!\s|\s=|\s==|\s===|\s====)==/,sF=/(?<!\s|\s=|\s==|\s===|\s====)==/g,uF=/=([a-z]?)=\s*==/,Im=/=([a-z]?)=\s*==/g;function aF(e){return e.filter(t=>!!t)}s(aF,"clsx");const oF=s(e=>{const t=Object.assign({},Zw,e);e?.dictionary&&Object.keys(e.dictionary).length&&(t.dictionary=Object.assign({},xm,e.dictionary));const n=s((o,l)=>{const c=o?t.dictionary[o]:void 0,f=typeof t.markerTagName=="string"?t.markerTagName:t.markerTagName(c),h=typeof t.markerClassName=="function"?t.markerClassName(c):aF([t.markerClassName,!o&&`${t.markerClassName}-default`,c&&`${t.markerClassName}-${c}`,!l.length&&`${t.markerClassName}-empty`]),p=t.markerProperties?.(c)??{};return Object.entries(p).forEach(([d,E])=>{(typeof E=="string"&&E===""||Array.isArray(E)&&E.length===0)&&(p[d]=void 0),d==="className"&&delete p?.className}),{type:"mark",children:l,data:{hName:f,hProperties:{className:h,...p&&{...p}}}}},"constructMarkNode"),r=s(function(o,l,c){/* v8 ignore next -- @preserve */if(!c||typeof l>"u"||!eF.test(o.value))return;const f=[],h=o.value;let p="",d=0,E=0;const g=Array.from(h.matchAll(tF));for(let D=0;D<g.length;D++){const A=g[D],[y,C,F]=A,v=A.index,B=y.length,L=d+E;if(d=v,E=B,v>L){const w=h.substring(L,v),N=ne("text",w);f.push(N)}const x=n(C,[{type:"text",value:F.trim()}]);f.push(x),p=h.slice(v+B)}if(p){const D=ne("text",p);f.push(D)}/* v8 ignore next -- @preserve */f.length&&c.children.splice(l,1,...f)},"visitorFirst"),i=s(function(o,l,c){/* v8 ignore next -- @preserve */if(!c||typeof l>"u"||!nF.test(o.value))return;const f=o,h=Us(c,f,function($){return $.type==="text"&&iF.test($.value)});if(!h)return;const p=Xw(c,f),d=Qw(c,f,h),E=Jw(c,h),g=f.value,D=Array.from(g.matchAll(rF))[0],[A,y]=D,C=A.length,F=D.index;if(F>0){const $=g.substring(0,F),M=ne("text",$);p.push(M)}if(g.length>F+C){const $=g.slice(F+C),M=ne("text",$);d.unshift(M)}const v=h.value,B=Array.from(v.matchAll(sF))[0],[L]=B,x=L.length,w=B.index;if(w>0){const $=v.substring(0,w),M=ne("text",$);d.push(M)}if(v.length>w+x){const $=v.slice(w+x),M=ne("text",$);E.unshift(M)}const N=n(y,d);return c.children=[...p,N,...E],l},"visitorSecond"),u=s(function(o,l,c){/* v8 ignore next -- @preserve */if(!c||typeof l>"u"||!uF.test(o.value))return;if(t.actionForEmptyContent==="remove")return o.value=o.value.replaceAll(Im,""),o.value.trim()===""?[ui,l]:qe;const f=[],h=o.value;let p="",d=0,E=0;const g=Array.from(h.matchAll(Im));for(let D=0;D<g.length;D++){const A=g[D],[y,C]=A,F=A.index,v=y.length,B=d+E;if(d=F,E=v,F>B){const x=h.substring(B,F),w=ne("text",x);f.push(w)}const L=n(C,[]);f.push(L),p=h.slice(F+v)}if(p){const D=ne("text",p);f.push(D)}/* v8 ignore next -- @preserve */f.length&&c.children.splice(l,1,...f)},"visitorThird");return s(o=>{if(se(o,"text",r),se(o,"text",i),t.actionForEmptyContent!=="keep"&&se(o,"text",u),t.equalityOperator){const l=new RegExp(t.equalityOperator,"gi");se(o,"text",c=>{c.value=c.value.replaceAll(l,"==")})}},"transformer")},"plugin$3");var Fa={exports:{}},vm;function lF(){return vm||(vm=1,(function(e){(function(){var t;t=e.exports=i,t.format=i,t.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(t.printf=n);function n(){console.log(i.apply(null,arguments))}s(n,"printf");function r(u,a){return i.apply(null,[u].concat(a))}s(r,"vsprintf");function i(u){for(var a=1,o=[].slice.call(arguments),l=0,c=u.length,f="",h,p=!1,d,E,g=!1,D,A=s(function(){return o[a++]},"nextArg"),y=s(function(){for(var C="";/\d/.test(u[l]);)C+=u[l++],h=u[l];return C.length>0?parseInt(C):null},"slurpNumber");l<c;++l)if(h=u[l],p)switch(p=!1,h=="."?(g=!1,h=u[++l]):h=="0"&&u[l+1]=="."?(g=!0,l+=2,h=u[l]):g=!0,D=y(),h){case"b":f+=parseInt(A(),10).toString(2);break;case"c":d=A(),typeof d=="string"||d instanceof String?f+=d:f+=String.fromCharCode(parseInt(d,10));break;case"d":f+=parseInt(A(),10);break;case"f":E=String(parseFloat(A()).toFixed(D||6)),f+=g?E:E.replace(/^0/,"");break;case"j":f+=JSON.stringify(A());break;case"o":f+="0"+parseInt(A(),10).toString(8);break;case"s":f+=A();break;case"x":f+="0x"+parseInt(A(),10).toString(16);break;case"X":f+="0x"+parseInt(A(),10).toString(16).toUpperCase();break;default:f+=h;break}else h==="%"?p=!0:f+=h;return f}s(i,"format")})()})(Fa)),Fa.exports}s(lF,"requireFormat");var cF=lF(),hF=ki(cF);const vi=Object.assign(Vt(Error),{eval:Vt(EvalError),range:Vt(RangeError),reference:Vt(ReferenceError),syntax:Vt(SyntaxError),type:Vt(TypeError),uri:Vt(URIError)});function Vt(e){return t.displayName=e.displayName||e.name,t;function t(n,...r){const i=n&&hF(n,...r);return new e(i)}s(t,"FormattedError")}s(Vt,"create");const Li={}.hasOwnProperty,Lm={yaml:"-",toml:"+"};function Na(e){const t=[];let n=-1;const r=Array.isArray(e)?e:e?[e]:["yaml"];for(;++n<r.length;)t[n]=fF(r[n]);return t}s(Na,"toMatters");function fF(e){let t=e;if(typeof t=="string"){if(!Li.call(Lm,t))throw vi("Missing matter definition for `%s`",t);t={type:t,marker:Lm[t]}}else if(typeof t!="object")throw vi("Expected matter to be an object, not `%j`",t);if(!Li.call(t,"type"))throw vi("Missing `type` in matter `%j`",t);if(!Li.call(t,"fence")&&!Li.call(t,"marker"))throw vi("Missing `marker` or `fence` in matter `%j`",t);return t}s(fF,"matter");function mF(e){const t=Na(e),n={};let r=-1;for(;++r<t.length;){const i=t[r],u=xa(i,"open").charCodeAt(0),a=dF(i),o=n[u];Array.isArray(o)?o.push(a):n[u]=[a]}return{flow:n}}s(mF,"frontmatter");function dF(e){const t=e.anywhere,n=e.type,r=n+"Fence",i=r+"Sequence",u=n+"Value",a={tokenize:f,partial:!0};let o,l=0;return{tokenize:c,concrete:!0};function c(h,p,d){const E=this;return g;function g(L){const x=E.now();return x.column===1&&(x.line===1||t)&&(o=xa(e,"open"),l=0,L===o.charCodeAt(l))?(h.enter(n),h.enter(r),h.enter(i),D(L)):d(L)}function D(L){return l===o.length?(h.exit(i),Q(L)?(h.enter("whitespace"),A(L)):y(L)):L===o.charCodeAt(l++)?(h.consume(L),D):d(L)}function A(L){return Q(L)?(h.consume(L),A):(h.exit("whitespace"),y(L))}function y(L){return z(L)?(h.exit(r),h.enter("lineEnding"),h.consume(L),h.exit("lineEnding"),o=xa(e,"close"),l=0,h.attempt(a,B,C)):d(L)}function C(L){return L===null||z(L)?v(L):(h.enter(u),F(L))}function F(L){return L===null||z(L)?(h.exit(u),v(L)):(h.consume(L),F)}function v(L){return L===null?d(L):(h.enter("lineEnding"),h.consume(L),h.exit("lineEnding"),h.attempt(a,B,C))}function B(L){return h.exit(n),p(L)}}function f(h,p,d){let E=0;return g;function g(C){return C===o.charCodeAt(E)?(h.enter(r),h.enter(i),D(C)):d(C)}function D(C){return E===o.length?(h.exit(i),Q(C)?(h.enter("whitespace"),A(C)):y(C)):C===o.charCodeAt(E++)?(h.consume(C),D):d(C)}function A(C){return Q(C)?(h.consume(C),A):(h.exit("whitespace"),y(C))}function y(C){return C===null||z(C)?(h.exit(r),p(C)):d(C)}}}s(dF,"createConstruct");function xa(e,t){return e.marker?Om(e.marker,t).repeat(3):Om(e.fence,t)}s(xa,"fence$1");function Om(e,t){return typeof e=="string"?e:e[t]}s(Om,"pick$1");function pF(e){const t=Na(e),n={},r={};let i=-1;for(;++i<t.length;){const u=t[i];n[u.type]=gF(u),r[u.type]=EF,r[u.type+"Value"]=AF}return{enter:n,exit:r}}s(pF,"frontmatterFromMarkdown");function gF(e){return t;function t(n){this.enter({type:e.type,value:""},n),this.buffer()}}s(gF,"opener");function EF(e){const t=this.resume(),n=this.stack[this.stack.length-1];this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,"")}s(EF,"close");function AF(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}s(AF,"value");function DF(e){const t=[],n={},r=Na(e);let i=-1;for(;++i<r.length;){const u=r[i];n[u.type]=CF(u);const a=Ia(u,"open");t.push({atBreak:!0,character:a.charAt(0),after:Si(a.charAt(1))})}return{unsafe:t,handlers:n}}s(DF,"frontmatterToMarkdown");function CF(e){const t=Ia(e,"open"),n=Ia(e,"close");return r;function r(i){return t+(i.value?`
|
|
800
|
-
`+i.value:"")+`
|
|
801
|
-
`+n}}s(CF,"handler");function Ia(e,t){return e.marker?Rm(e.marker,t).repeat(3):Rm(e.fence,t)}s(Ia,"fence");function Rm(e,t){return typeof e=="string"?e:e[t]}s(Rm,"pick");const TF="yaml";function yF(e){const t=this,n=e||TF,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(mF(n)),u.push(pF(n)),a.push(DF(n))}s(yF,"remarkFrontmatter");const va="phrasing",La=["autolink","link","image","label"];function bF(){return{transforms:[NF],enter:{literalAutolink:_F,literalAutolinkEmail:Oa,literalAutolinkHttp:Oa,literalAutolinkWww:Oa},exit:{literalAutolink:FF,literalAutolinkEmail:wF,literalAutolinkHttp:BF,literalAutolinkWww:SF}}}s(bF,"gfmAutolinkLiteralFromMarkdown");function kF(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:va,notInConstruct:La},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:va,notInConstruct:La},{character:":",before:"[ps]",after:"\\/",inConstruct:va,notInConstruct:La}]}}s(kF,"gfmAutolinkLiteralToMarkdown");function _F(e){this.enter({type:"link",title:null,url:"",children:[]},e)}s(_F,"enterLiteralAutolink");function Oa(e){this.config.enter.autolinkProtocol.call(this,e)}s(Oa,"enterLiteralAutolinkValue");function BF(e){this.config.exit.autolinkProtocol.call(this,e)}s(BF,"exitLiteralAutolinkHttp");function SF(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}s(SF,"exitLiteralAutolinkWww");function wF(e){this.config.exit.autolinkEmail.call(this,e)}s(wF,"exitLiteralAutolinkEmail");function FF(e){this.exit(e)}s(FF,"exitLiteralAutolink");function NF(e){mm(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,xF],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),IF]],{ignore:["link","linkReference"]})}s(NF,"transformGfmAutolinkLiterals");function xF(e,t,n,r,i){let u="";if(!Pm(i)||(/^w/i.test(t)&&(n=t+n,t="",u="http://"),!vF(n)))return!1;const a=LF(n+r);if(!a[0])return!1;const o={type:"link",title:null,url:u+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}s(xF,"findUrl");function IF(e,t,n,r){return!Pm(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}s(IF,"findEmail");function vF(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}s(vF,"isCorrectDomain");function LF(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Wr(e,"(");let u=Wr(e,")");for(;r!==-1&&i>u;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),u++;return[e,n]}s(LF,"splitUrl");function Pm(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ht(n)||yi(n))&&(!t||n!==47)}s(Pm,"previous$2");function tt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}s(tt,"normalizeIdentifier"),Mm.peek=zF;function OF(){this.buffer()}s(OF,"enterFootnoteCallString");function RF(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}s(RF,"enterFootnoteCall");function PF(){this.buffer()}s(PF,"enterFootnoteDefinitionLabelString");function MF(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}s(MF,"enterFootnoteDefinition");function UF(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tt(this.sliceSerialize(e)).toLowerCase(),n.label=t}s(UF,"exitFootnoteCallString");function HF(e){this.exit(e)}s(HF,"exitFootnoteCall");function $F(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tt(this.sliceSerialize(e)).toLowerCase(),n.label=t}s($F,"exitFootnoteDefinitionLabelString");function qF(e){this.exit(e)}s(qF,"exitFootnoteDefinition");function zF(){return"["}s(zF,"footnoteReferencePeek");function Mm(e,t,n,r){const i=n.createTracker(r);let u=i.move("[^");const a=n.enter("footnoteReference"),o=n.enter("reference");return u+=i.move(n.safe(n.associationId(e),{after:"]",before:u})),o(),a(),u+=i.move("]"),u}s(Mm,"footnoteReference");function jF(){return{enter:{gfmFootnoteCallString:OF,gfmFootnoteCall:RF,gfmFootnoteDefinitionLabelString:PF,gfmFootnoteDefinition:MF},exit:{gfmFootnoteCallString:UF,gfmFootnoteCall:HF,gfmFootnoteDefinitionLabelString:$F,gfmFootnoteDefinition:qF}}}s(jF,"gfmFootnoteFromMarkdown");function YF(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Mm},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,u,a){const o=u.createTracker(a);let l=o.move("[^");const c=u.enter("footnoteDefinition"),f=u.enter("label");return l+=o.move(u.safe(u.associationId(r),{before:l,after:"]"})),f(),l+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),l+=o.move((t?`
|
|
802
|
-
`:" ")+u.indentLines(u.containerFlow(r,o.current()),t?Um:GF))),c(),l}s(n,"footnoteDefinition")}s(YF,"gfmFootnoteToMarkdown");function GF(e,t,n){return t===0?e:Um(e,t,n)}s(GF,"mapExceptFirst");function Um(e,t,n){return(n?"":" ")+e}s(Um,"mapAll");const VF=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Hm.peek=JF;function WF(){return{canContainEols:["delete"],enter:{strikethrough:QF},exit:{strikethrough:XF}}}s(WF,"gfmStrikethroughFromMarkdown");function KF(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:VF}],handlers:{delete:Hm}}}s(KF,"gfmStrikethroughToMarkdown");function QF(e){this.enter({type:"delete",children:[]},e)}s(QF,"enterStrikethrough");function XF(e){this.exit(e)}s(XF,"exitStrikethrough");function Hm(e,t,n,r){const i=n.createTracker(r),u=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),u(),a}s(Hm,"handleDelete");function JF(){return"~"}s(JF,"peekDelete");function ZF(e){return e.length}s(ZF,"defaultStringLength");function eN(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||ZF,u=[],a=[],o=[],l=[];let c=0,f=-1;for(;++f<e.length;){const g=[],D=[];let A=-1;for(e[f].length>c&&(c=e[f].length);++A<e[f].length;){const y=tN(e[f][A]);if(n.alignDelimiters!==!1){const C=i(y);D[A]=C,(l[A]===void 0||C>l[A])&&(l[A]=C)}g.push(y)}a[f]=g,o[f]=D}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<c;)u[h]=$m(r[h]);else{const g=$m(r);for(;++h<c;)u[h]=g}h=-1;const p=[],d=[];for(;++h<c;){const g=u[h];let D="",A="";g===99?(D=":",A=":"):g===108?D=":":g===114&&(A=":");let y=n.alignDelimiters===!1?1:Math.max(1,l[h]-D.length-A.length);const C=D+"-".repeat(y)+A;n.alignDelimiters!==!1&&(y=D.length+y+A.length,y>l[h]&&(l[h]=y),d[h]=y),p[h]=C}a.splice(1,0,p),o.splice(1,0,d),f=-1;const E=[];for(;++f<a.length;){const g=a[f],D=o[f];h=-1;const A=[];for(;++h<c;){const y=g[h]||"";let C="",F="";if(n.alignDelimiters!==!1){const v=l[h]-(D[h]||0),B=u[h];B===114?C=" ".repeat(v):B===99?v%2?(C=" ".repeat(v/2+.5),F=" ".repeat(v/2-.5)):(C=" ".repeat(v/2),F=C):F=" ".repeat(v)}n.delimiterStart!==!1&&!h&&A.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||h)&&A.push(" "),n.alignDelimiters!==!1&&A.push(C),A.push(y),n.alignDelimiters!==!1&&A.push(F),n.padding!==!1&&A.push(" "),(n.delimiterEnd!==!1||h!==c-1)&&A.push("|")}E.push(n.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return E.join(`
|
|
803
|
-
`)}s(eN,"markdownTable");function tN(e){return e==null?"":String(e)}s(tN,"serialize");function $m(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}s($m,"toAlignment");function nN(e,t,n,r){const i=n.enter("blockquote"),u=n.createTracker(r);u.move("> "),u.shift(2);const a=n.indentLines(n.containerFlow(e,u.current()),rN);return i(),a}s(nN,"blockquote");function rN(e,t,n){return">"+(n?"":" ")+e}s(rN,"map$2");function iN(e,t){return qm(e,t.inConstruct,!0)&&!qm(e,t.notInConstruct,!1)}s(iN,"patternInScope");function qm(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}s(qm,"listInScope");function zm(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
804
|
-
`&&iN(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
805
|
-
`}s(zm,"hardBreak");function jm(e,t){const n=String(e);let r=n.indexOf(t),i=r,u=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++u>a&&(a=u):u=1,i=r+t.length,r=n.indexOf(t,i);return a}s(jm,"longestStreak");function sN(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}s(sN,"formatCodeAsIndented");function uN(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}s(uN,"checkFence");function aN(e,t,n,r){const i=uN(n),u=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(sN(e,n)){const h=n.enter("codeIndented"),p=n.indentLines(u,oN);return h(),p}const o=n.createTracker(r),l=i.repeat(Math.max(jm(u,i)+1,3)),c=n.enter("codeFenced");let f=o.move(l);if(e.lang){const h=n.enter(`codeFencedLang${a}`);f+=o.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...o.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${a}`);f+=o.move(" "),f+=o.move(n.safe(e.meta,{before:f,after:`
|
|
806
|
-
`,encode:["`"],...o.current()})),h()}return f+=o.move(`
|
|
807
|
-
`),u&&(f+=o.move(u+`
|
|
808
|
-
`)),f+=o.move(l),c(),f}s(aN,"code$1");function oN(e,t,n){return(n?"":" ")+e}s(oN,"map$1");function Ra(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}s(Ra,"checkQuote");function lN(e,t,n,r){const i=Ra(n),u=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":`
|
|
809
|
-
`,...l.current()}))),o(),e.title&&(o=n.enter(`title${u}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),o()),a(),c}s(lN,"definition$1");function cN(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}s(cN,"checkEmphasis");function Ar(e){return"&#x"+e.toString(16).toUpperCase()+";"}s(Ar,"encodeCharacterReference");function yn(e){if(e===null||ue(e)||Ht(e))return 1;if(yi(e))return 2}s(yn,"classifyCharacter");function Oi(e,t,n){const r=yn(e),i=yn(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}s(Oi,"encodeInfo"),Ym.peek=hN;function Ym(e,t,n,r){const i=cN(n),u=n.enter("emphasis"),a=n.createTracker(r),o=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:o,...a.current()}));const c=l.charCodeAt(0),f=Oi(r.before.charCodeAt(r.before.length-1),c,i);f.inside&&(l=Ar(c)+l.slice(1));const h=l.charCodeAt(l.length-1),p=Oi(r.after.charCodeAt(0),h,i);p.inside&&(l=l.slice(0,-1)+Ar(h));const d=a.move(i);return u(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},o+l+d}s(Ym,"emphasis");function hN(e,t,n){return n.options.emphasis||"*"}s(hN,"emphasisPeek");const fN={};function Pa(e,t){const n=fN,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Gm(e,r,i)}s(Pa,"toString");function Gm(e,t,n){if(mN(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Vm(e.children,t,n)}return Array.isArray(e)?Vm(e,t,n):""}s(Gm,"one");function Vm(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Gm(e[i],t,n);return r.join("")}s(Vm,"all");function mN(e){return!!(e&&typeof e=="object")}s(mN,"node");function dN(e,t){let n=!1;return se(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ve}),!!((!e.depth||e.depth<3)&&Pa(e)&&(t.options.setext||n))}s(dN,"formatHeadingAsSetext");function pN(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),u=n.createTracker(r);if(dN(e,n)){const f=n.enter("headingSetext"),h=n.enter("phrasing"),p=n.containerPhrasing(e,{...u.current(),before:`
|
|
810
|
-
`,after:`
|
|
811
|
-
`});return h(),f(),p+`
|
|
812
|
-
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
813
|
-
`))+1))}const a="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");u.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
|
|
814
|
-
`,...u.current()});return/^[\t ]/.test(c)&&(c=Ar(c.charCodeAt(0))+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),o(),c}s(pN,"heading"),Wm.peek=gN;function Wm(e){return e.value||""}s(Wm,"html");function gN(){return"<"}s(gN,"htmlPeek"),Km.peek=EN;function Km(e,t,n,r){const i=Ra(n),u=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${u}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),o()),c+=l.move(")"),a(),c}s(Km,"image");function EN(){return"!"}s(EN,"imagePeek"),Qm.peek=AN;function Qm(e,t,n,r){const i=e.referenceType,u=n.enter("imageReference");let a=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const c=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=f,u(),i==="full"||!c||c!==h?l+=o.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}s(Qm,"imageReference");function AN(){return"!"}s(AN,"imageReferencePeek"),Xm.peek=DN;function Xm(e,t,n){let r=e.value||"",i="`",u=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++u<n.unsafe.length;){const a=n.unsafe[u],o=n.compilePattern(a);let l;if(a.atBreak)for(;l=o.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return i+r+i}s(Xm,"inlineCode");function DN(){return"`"}s(DN,"inlineCodePeek");function Jm(e,t){const n=Pa(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}s(Jm,"formatLinkAsAutolink"),Zm.peek=CN;function Zm(e,t,n,r){const i=Ra(n),u=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let o,l;if(Jm(e,n)){const f=n.stack;n.stack=[],o=n.enter("autolink");let h=a.move("<");return h+=a.move(n.containerPhrasing(e,{before:h,after:">",...a.current()})),h+=a.move(">"),o(),n.stack=f,h}o=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${u}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),o(),c}s(Zm,"link");function CN(e,t,n){return Jm(e,n)?"<":"["}s(CN,"linkPeek"),e0.peek=TN;function e0(e,t,n,r){const i=e.referenceType,u=n.enter("linkReference");let a=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=f,u(),i==="full"||!c||c!==h?l+=o.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}s(e0,"linkReference");function TN(){return"["}s(TN,"linkReferencePeek");function Ma(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}s(Ma,"checkBullet");function yN(e){const t=Ma(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}s(yN,"checkBulletOther");function bN(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}s(bN,"checkBulletOrdered");function t0(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}s(t0,"checkRule");function kN(e,t,n,r){const i=n.enter("list"),u=n.bulletCurrent;let a=e.ordered?bN(n):Ma(n);const o=e.ordered?a==="."?")":".":yN(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),t0(n)===a&&f){let h=-1;for(;++h<e.children.length;){const p=e.children[h];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=o),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=u,i(),c}s(kN,"list$1");function _N(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}s(_N,"checkListItemIndent");function BN(e,t,n,r){const i=_N(n);let u=n.bulletCurrent||Ma(n);t&&t.type==="list"&&t.ordered&&(u=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+u);let a=u.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const o=n.createTracker(r);o.move(u+" ".repeat(a-u.length)),o.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),f);return l(),c;function f(h,p,d){return p?(d?"":" ".repeat(a))+h:(d?u:u+" ".repeat(a-u.length))+h}s(f,"map")}s(BN,"listItem");function SN(e,t,n,r){const i=n.enter("paragraph"),u=n.enter("phrasing"),a=n.containerPhrasing(e,r);return u(),i(),a}s(SN,"paragraph");const wN=mt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function FN(e,t,n,r){return(e.children.some(function(a){return wN(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}s(FN,"root");function NN(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}s(NN,"checkStrong"),n0.peek=xN;function n0(e,t,n,r){const i=NN(n),u=n.enter("strong"),a=n.createTracker(r),o=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:o,...a.current()}));const c=l.charCodeAt(0),f=Oi(r.before.charCodeAt(r.before.length-1),c,i);f.inside&&(l=Ar(c)+l.slice(1));const h=l.charCodeAt(l.length-1),p=Oi(r.after.charCodeAt(0),h,i);p.inside&&(l=l.slice(0,-1)+Ar(h));const d=a.move(i+i);return u(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},o+l+d}s(n0,"strong");function xN(e,t,n){return n.options.strong||"*"}s(xN,"strongPeek");function IN(e,t,n,r){return n.safe(e.value,r)}s(IN,"text$3");function vN(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}s(vN,"checkRuleRepetition");function LN(e,t,n){const r=(t0(n)+(n.options.ruleSpaces?" ":"")).repeat(vN(n));return n.options.ruleSpaces?r.slice(0,-1):r}s(LN,"thematicBreak$1");const r0={blockquote:nN,break:zm,code:aN,definition:lN,emphasis:Ym,hardBreak:zm,heading:pN,html:Wm,image:Km,imageReference:Qm,inlineCode:Xm,link:Zm,linkReference:e0,list:kN,listItem:BN,paragraph:SN,root:FN,strong:n0,text:IN,thematicBreak:LN},i0={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",CenterDot:"\xB7",Cfr:"\u212D",Chi:"\u03A7",CircleDot:"\u2299",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",Colon:"\u2237",Colone:"\u2A74",Congruent:"\u2261",Conint:"\u222F",ContourIntegral:"\u222E",Copf:"\u2102",Coproduct:"\u2210",CounterClockwiseContourIntegral:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",DD:"\u2145",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",Diamond:"\u22C4",DifferentialD:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",Downarrow:"\u21D3",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",Equilibrium:"\u21CC",Escr:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",ExponentialE:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",HilbertSpace:"\u210B",Hopf:"\u210D",HorizontalLine:"\u2500",Hscr:"\u210B",Hstrok:"\u0126",HumpDownHump:"\u224E",HumpEqual:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Igrave:"\xCC",Im:"\u2111",Imacr:"\u012A",ImaginaryI:"\u2148",Implies:"\u21D2",Int:"\u222C",Integral:"\u222B",Intersection:"\u22C2",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Larr:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",LeftRightArrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",Leftarrow:"\u21D0",Leftrightarrow:"\u21D4",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",LongLeftRightArrow:"\u27F7",LongRightArrow:"\u27F6",Longleftarrow:"\u27F8",Longleftrightarrow:"\u27FA",Longrightarrow:"\u27F9",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",Lscr:"\u2112",Lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",Mopf:"\u{1D544}",Mscr:"\u2133",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
815
|
-
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",ZeroWidthSpace:"\u200B",Zeta:"\u0396",Zfr:"\u2128",Zopf:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acute:"\xB4",acy:"\u0430",aelig:"\xE6",af:"\u2061",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",amp:"&",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",ap:"\u2248",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",apid:"\u224B",apos:"'",approx:"\u2248",approxeq:"\u224A",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",asymp:"\u2248",asympeq:"\u224D",atilde:"\xE3",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",beta:"\u03B2",beth:"\u2136",between:"\u226C",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxh:"\u2500",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",bprime:"\u2035",breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",bumpeq:"\u224F",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cedil:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledR:"\xAE",circledS:"\u24C8",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",conint:"\u222E",copf:"\u{1D554}",coprod:"\u2210",copy:"\xA9",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dArr:"\u21D3",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",darr:"\u2193",dash:"\u2010",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",dcaron:"\u010F",dcy:"\u0434",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",ddotseq:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",dharl:"\u21C3",dharr:"\u21C2",diam:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",dot:"\u02D9",doteq:"\u2250",doteqdot:"\u2251",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",downarrow:"\u2193",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eDDot:"\u2A77",eDot:"\u2251",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",ecirc:"\xEA",ecolon:"\u2255",ecy:"\u044D",edot:"\u0117",ee:"\u2147",efDot:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",equals:"=",equest:"\u225F",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",erarr:"\u2971",escr:"\u212F",esdot:"\u2250",esim:"\u2242",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",expectation:"\u2130",exponentiale:"\u2147",fallingdotseq:"\u2252",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",gE:"\u2267",gEl:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gammad:"\u03DD",gap:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",ge:"\u2265",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",gjcy:"\u0453",gl:"\u2277",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",gopf:"\u{1D558}",grave:"`",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hArr:"\u21D4",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",hardcy:"\u044A",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",hbar:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hslash:"\u210F",hstrok:"\u0127",hybull:"\u2043",hyphen:"\u2010",iacute:"\xED",ic:"\u2063",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",image:"\u2111",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",int:"\u222B",intcal:"\u22BA",integers:"\u2124",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",isin:"\u2208",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAarr:"\u21DA",lArr:"\u21D0",lAtail:"\u291B",lBarr:"\u290E",lE:"\u2266",lEg:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",lambda:"\u03BB",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",laquo:"\xAB",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lceil:"\u2308",lcub:"{",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leftarrow:"\u2190",leftarrowtail:"\u21A2",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",leftthreetimes:"\u22CB",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",lessgtr:"\u2276",lesssim:"\u2272",lfisht:"\u297C",lfloor:"\u230A",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",lstrok:"\u0142",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",measuredangle:"\u2221",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",mstpos:"\u223E",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nGtv:"\u226B\u0338",nLeftarrow:"\u21CD",nLeftrightarrow:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nLtv:"\u226A\u0338",nRightarrow:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nabla:"\u2207",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",neArr:"\u21D7",nearhk:"\u2924",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",ngsim:"\u2275",ngt:"\u226F",ngtr:"\u226F",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",nlArr:"\u21CD",nlE:"\u2266\u0338",nlarr:"\u219A",nldr:"\u2025",nle:"\u2270",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nlsim:"\u2274",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nmid:"\u2224",nopf:"\u{1D55F}",not:"\xAC",notin:"\u2209",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",oS:"\u24C8",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",ocy:"\u043E",odash:"\u229D",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",oplus:"\u2295",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oscr:"\u2134",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimes:"\u2297",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",pr:"\u227A",prE:"\u2AB3",prap:"\u2AB7",prcue:"\u227C",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",prime:"\u2032",primes:"\u2119",prnE:"\u2AB5",prnap:"\u2AB9",prnsim:"\u22E8",prod:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',rAarr:"\u21DB",rArr:"\u21D2",rAtail:"\u291C",rBarr:"\u290F",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rceil:"\u2309",rcub:"}",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",reg:"\xAE",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",rightarrow:"\u2192",rightarrowtail:"\u21A3",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",rightthreetimes:"\u22CC",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",rsaquo:"\u203A",rscr:"\u{1D4C7}",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",sbquo:"\u201A",sc:"\u227B",scE:"\u2AB4",scap:"\u2AB8",scaron:"\u0161",sccue:"\u227D",sce:"\u2AB0",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",scnap:"\u2ABA",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",seArr:"\u21D8",searhk:"\u2925",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shortmid:"\u2223",shortparallel:"\u2225",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",square:"\u25A1",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",subE:"\u2AC5",subdot:"\u2ABD",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",supE:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supe:"\u2287",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swarhk:"\u2926",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tbrk:"\u23B4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",thorn:"\xFE",tilde:"\u02DC",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",uArr:"\u21D1",uHar:"\u2963",uacute:"\xFA",uarr:"\u2191",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udarr:"\u21C5",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uml:"\xA8",uogon:"\u0173",uopf:"\u{1D566}",uparrow:"\u2191",updownarrow:"\u2195",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",upsi:"\u03C5",upsih:"\u03D2",upsilon:"\u03C5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",uuml:"\xFC",uwangle:"\u29A7",vArr:"\u21D5",vBar:"\u2AE8",vBarv:"\u2AE9",vDash:"\u22A8",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vcy:"\u0432",vdash:"\u22A2",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",vert:"|",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeetrf:"\u2128",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},ON={}.hasOwnProperty;function Ua(e){return ON.call(i0,e)?i0[e]:!1}s(Ua,"decodeNamedCharacterReference");function s0(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}s(s0,"decodeNumericCharacterReference");const RN=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function PN(e){return e.replace(RN,MN)}s(PN,"decodeString");function MN(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),u=i===120||i===88;return s0(n.slice(u?2:1),u?16:10)}return Ua(n)||e}s(MN,"decode");function UN(){return{enter:{table:HN,tableData:u0,tableHeader:u0,tableRow:qN},exit:{codeText:zN,table:$N,tableData:Ha,tableHeader:Ha,tableRow:Ha}}}s(UN,"gfmTableFromMarkdown");function HN(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}s(HN,"enterTable");function $N(e){this.exit(e),this.data.inTable=void 0}s($N,"exitTable");function qN(e){this.enter({type:"tableRow",children:[]},e)}s(qN,"enterRow");function Ha(e){this.exit(e)}s(Ha,"exit$1");function u0(e){this.enter({type:"tableCell",children:[]},e)}s(u0,"enterCell");function zN(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,jN));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}s(zN,"exitCodeText");function jN(e,t){return t==="|"?t:e}s(jN,"replace");function YN(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,u=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
816
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:a,tableCell:l,tableRow:o}};function a(d,E,g,D){return c(f(d,g,D),d.align)}function o(d,E,g,D){const A=h(d,g,D),y=c([A]);return y.slice(0,y.indexOf(`
|
|
817
|
-
`))}function l(d,E,g,D){const A=g.enter("tableCell"),y=g.enter("phrasing"),C=g.containerPhrasing(d,{...D,before:u,after:u});return y(),A(),C}function c(d,E){return eN(d,{align:E,alignDelimiters:r,padding:n,stringLength:i})}function f(d,E,g){const D=d.children;let A=-1;const y=[],C=E.enter("table");for(;++A<D.length;)y[A]=h(D[A],E,g);return C(),y}function h(d,E,g){const D=d.children;let A=-1;const y=[],C=E.enter("tableRow");for(;++A<D.length;)y[A]=l(D[A],d,E,g);return C(),y}function p(d,E,g){let D=r0.inlineCode(d,E,g);return g.stack.includes("tableCell")&&(D=D.replace(/\|/g,"\\$&")),D}}s(YN,"gfmTableToMarkdown");function GN(){return{exit:{taskListCheckValueChecked:a0,taskListCheckValueUnchecked:a0,paragraph:WN}}}s(GN,"gfmTaskListItemFromMarkdown");function VN(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:KN}}}s(VN,"gfmTaskListItemToMarkdown");function a0(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}s(a0,"exitCheck");function WN(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let u=-1,a;for(;++u<i.length;){const o=i[u];if(o.type==="paragraph"){a=o;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}s(WN,"exitParagraphWithTaskListItem");function KN(e,t,n,r){const i=e.children[0],u=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);u&&o.move(a);let l=r0.listItem(e,t,n,{...r,...o.current()});return u&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(f){return f+a}s(c,"check")}s(KN,"listItemWithTaskListItem");function QN(){return[bF(),jF(),WF(),UN(),GN()]}s(QN,"gfmFromMarkdown");function XN(e){return{extensions:[kF(),YF(e),KF(),YN(e),VN()]}}s(XN,"gfmToMarkdown");function $e(e,t,n,r){const i=e.length;let u=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);u<r.length;)a=r.slice(u,u+1e4),a.unshift(t,0),e.splice(...a),u+=1e4,t+=1e4}s($e,"splice");function je(e,t){return e.length>0?($e(e,e.length,0,t),e):t}s(je,"push");const o0={}.hasOwnProperty;function l0(e){const t={};let n=-1;for(;++n<e.length;)JN(t,e[n]);return t}s(l0,"combineExtensions");function JN(e,t){let n;for(n in t){const i=(o0.call(e,n)?e[n]:void 0)||(e[n]={}),u=t[n];let a;if(u)for(a in u){o0.call(i,a)||(i[a]=[]);const o=u[a];ZN(i[a],Array.isArray(o)?o:o?[o]:[])}}}s(JN,"syntaxExtension");function ZN(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);$e(e,0,0,r)}s(ZN,"constructs");const ex={tokenize:ux,partial:!0},c0={tokenize:ax,partial:!0},h0={tokenize:ox,partial:!0},f0={tokenize:lx,partial:!0},tx={tokenize:cx,partial:!0},m0={name:"wwwAutolink",tokenize:ix,previous:p0},d0={name:"protocolAutolink",tokenize:sx,previous:g0},Et={name:"emailAutolink",tokenize:rx,previous:E0},at={};function nx(){return{text:at}}s(nx,"gfmAutolinkLiteral");let Wt=48;for(;Wt<123;)at[Wt]=Et,Wt++,Wt===58?Wt=65:Wt===91&&(Wt=97);at[43]=Et,at[45]=Et,at[46]=Et,at[95]=Et,at[72]=[Et,d0],at[104]=[Et,d0],at[87]=[Et,m0],at[119]=[Et,m0];function rx(e,t,n){const r=this;let i,u;return a;function a(h){return!$a(h)||!E0.call(r,r.previous)||qa(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(h))}function o(h){return $a(h)?(e.consume(h),o):h===64?(e.consume(h),l):n(h)}function l(h){return h===46?e.check(tx,f,c)(h):h===45||h===95||Be(h)?(u=!0,e.consume(h),l):f(h)}function c(h){return e.consume(h),i=!0,l}function f(h){return u&&i&&we(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}s(rx,"tokenizeEmailAutolink");function ix(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!p0.call(r,r.previous)||qa(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(ex,e.attempt(c0,e.attempt(h0,u),n),n)(a))}function u(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}s(ix,"tokenizeWwwAutolink");function sx(e,t,n){const r=this;let i="",u=!1;return a;function a(h){return(h===72||h===104)&&g0.call(r,r.previous)&&!qa(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),e.consume(h),o):n(h)}function o(h){if(we(h)&&i.length<5)return i+=String.fromCodePoint(h),e.consume(h),o;if(h===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(h),l}return n(h)}function l(h){return h===47?(e.consume(h),u?c:(u=!0,l)):n(h)}function c(h){return h===null||Ti(h)||ue(h)||Ht(h)||yi(h)?n(h):e.attempt(c0,e.attempt(h0,f),n)(h)}function f(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}s(sx,"tokenizeProtocolAutolink");function ux(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),u):n(a)}function u(a){return a===null?n(a):t(a)}}s(ux,"tokenizeWwwPrefix");function ax(e,t,n){let r,i,u;return a;function a(c){return c===46||c===95?e.check(f0,l,o)(c):c===null||ue(c)||Ht(c)||c!==45&&yi(c)?l(c):(u=!0,e.consume(c),a)}function o(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),a}function l(c){return i||r||!u?n(c):t(c)}}s(ax,"tokenizeDomain");function ox(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?u(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(f0,t,u)(a):a===null||ue(a)||Ht(a)?t(a):(e.consume(a),i)}function u(a){return a===41&&r++,e.consume(a),i}}s(ox,"tokenizePath");function lx(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),u):o===93?(e.consume(o),i):o===60||o===null||ue(o)||Ht(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||ue(o)||Ht(o)?t(o):r(o)}function u(o){return we(o)?a(o):n(o)}function a(o){return o===59?(e.consume(o),r):we(o)?(e.consume(o),a):n(o)}}s(lx,"tokenizeTrail");function cx(e,t,n){return r;function r(u){return e.consume(u),i}function i(u){return Be(u)?n(u):t(u)}}s(cx,"tokenizeEmailDomainDotTrail");function p0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ue(e)}s(p0,"previousWww");function g0(e){return!we(e)}s(g0,"previousProtocol");function E0(e){return!(e===47||$a(e))}s(E0,"previousEmail");function $a(e){return e===43||e===45||e===46||e===95||Be(e)}s($a,"gfmAtext");function qa(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}s(qa,"previousUnbalanced");function Ri(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const u=e[i].resolveAll;u&&!r.includes(u)&&(t=u(t,n),r.push(u))}return t}s(Ri,"resolveAll");const za={name:"attention",resolveAll:hx,tokenize:fx};function hx(e,t){let n=-1,r,i,u,a,o,l,c,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},p={...e[n][1].start};A0(h,-l),A0(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},u={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[r][1].end={...a.start},e[n][1].start={...o.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=je(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=je(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",u,t]]),c=je(c,Ri(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=je(c,[["exit",u,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=je(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,$e(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}s(hx,"resolveAllAttention");function fx(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=yn(r);let u;return a;function a(l){return u=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===u)return e.consume(l),o;const c=e.exit("attentionSequence"),f=yn(l),h=!f||f===2&&i||n.includes(l),p=!i||i===2&&f||n.includes(r);return c._open=!!(u===42?h:h&&(i||!p)),c._close=!!(u===42?p:p&&(f||!h)),t(l)}}s(fx,"tokenizeAttention");function A0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}s(A0,"movePoint");const mx={name:"autolink",tokenize:dx};function dx(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(d){return we(d)?(e.consume(d),a):d===64?n(d):c(d)}function a(d){return d===43||d===45||d===46||Be(d)?(r=1,o(d)):c(d)}function o(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||Be(d))&&r++<32?(e.consume(d),o):(r=0,c(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Ti(d)?n(d):(e.consume(d),l)}function c(d){return d===64?(e.consume(d),f):IS(d)?(e.consume(d),c):n(d)}function f(d){return Be(d)?h(d):n(d)}function h(d){return d===46?(e.consume(d),r=0,f):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||Be(d))&&r++<63){const E=d===45?p:h;return e.consume(d),E}return n(d)}}s(dx,"tokenizeAutolink");function J(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let u=0;return a;function a(l){return Q(l)?(e.enter(n),o(l)):t(l)}function o(l){return Q(l)&&u++<i?(e.consume(l),o):(e.exit(n),t(l))}}s(J,"factorySpace");const Dr={partial:!0,tokenize:px};function px(e,t,n){return r;function r(u){return Q(u)?J(e,i,"linePrefix")(u):i(u)}function i(u){return u===null||z(u)?t(u):n(u)}}s(px,"tokenizeBlankLine");const D0={continuation:{tokenize:Ex},exit:Ax,name:"blockQuote",tokenize:gx};function gx(e,t,n){const r=this;return i;function i(a){if(a===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),u}return n(a)}function u(a){return Q(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}s(gx,"tokenizeBlockQuoteStart");function Ex(e,t,n){const r=this;return i;function i(a){return Q(a)?J(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):u(a)}function u(a){return e.attempt(D0,t,n)(a)}}s(Ex,"tokenizeBlockQuoteContinuation");function Ax(e){e.exit("blockQuote")}s(Ax,"exit");const C0={name:"characterEscape",tokenize:Dx};function Dx(e,t,n){return r;function r(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),i}function i(u){return LS(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(u)}}s(Dx,"tokenizeCharacterEscape");const T0={name:"characterReference",tokenize:Cx};function Cx(e,t,n){const r=this;let i=0,u,a;return o;function o(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),l}function l(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),u=31,a=Be,f(h))}function c(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,a=vS,f):(e.enter("characterReferenceValue"),u=7,a=lu,f(h))}function f(h){if(h===59&&i){const p=e.exit("characterReferenceValue");return a===Be&&!Ua(r.sliceSerialize(p))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(h)&&i++<u?(e.consume(h),f):n(h)}}s(Cx,"tokenizeCharacterReference");const y0={partial:!0,tokenize:yx},b0={concrete:!0,name:"codeFenced",tokenize:Tx};function Tx(e,t,n){const r=this,i={partial:!0,tokenize:v};let u=0,a=0,o;return l;function l(B){return c(B)}function c(B){const L=r.events[r.events.length-1];return u=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,o=B,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(B)}function f(B){return B===o?(a++,e.consume(B),f):a<3?n(B):(e.exit("codeFencedFenceSequence"),Q(B)?J(e,h,"whitespace")(B):h(B))}function h(B){return B===null||z(B)?(e.exit("codeFencedFence"),r.interrupt?t(B):e.check(y0,g,F)(B)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(B))}function p(B){return B===null||z(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(B)):Q(B)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),J(e,d,"whitespace")(B)):B===96&&B===o?n(B):(e.consume(B),p)}function d(B){return B===null||z(B)?h(B):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(B))}function E(B){return B===null||z(B)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(B)):B===96&&B===o?n(B):(e.consume(B),E)}function g(B){return e.attempt(i,F,D)(B)}function D(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),A}function A(B){return u>0&&Q(B)?J(e,y,"linePrefix",u+1)(B):y(B)}function y(B){return B===null||z(B)?e.check(y0,g,F)(B):(e.enter("codeFlowValue"),C(B))}function C(B){return B===null||z(B)?(e.exit("codeFlowValue"),y(B)):(e.consume(B),C)}function F(B){return e.exit("codeFenced"),t(B)}function v(B,L,x){let w=0;return N;function N(W){return B.enter("lineEnding"),B.consume(W),B.exit("lineEnding"),$}function $(W){return B.enter("codeFencedFence"),Q(W)?J(B,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):M(W)}function M(W){return W===o?(B.enter("codeFencedFenceSequence"),j(W)):x(W)}function j(W){return W===o?(w++,B.consume(W),j):w>=a?(B.exit("codeFencedFenceSequence"),Q(W)?J(B,Y,"whitespace")(W):Y(W)):x(W)}function Y(W){return W===null||z(W)?(B.exit("codeFencedFence"),L(W)):x(W)}}}s(Tx,"tokenizeCodeFenced");function yx(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u)}function u(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}s(yx,"tokenizeNonLazyContinuation$1");const ja={name:"codeIndented",tokenize:kx},bx={partial:!0,tokenize:_x};function kx(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),J(e,u,"linePrefix",5)(c)}function u(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(c):n(c)}function a(c){return c===null?l(c):z(c)?e.attempt(bx,a,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||z(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}s(kx,"tokenizeCodeIndented");function _x(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):J(e,u,"linePrefix",5)(a)}function u(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):z(a)?i(a):n(a)}}s(_x,"tokenizeFurtherStart");const Bx={name:"codeText",previous:wx,resolve:Sx,tokenize:Fx};function Sx(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}s(Sx,"resolveCodeText");function wx(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}s(wx,"previous$1");function Fx(e,t,n){let r=0,i,u;return a;function a(h){return e.enter("codeText"),e.enter("codeTextSequence"),o(h)}function o(h){return h===96?(e.consume(h),r++,o):(e.exit("codeTextSequence"),l(h))}function l(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),l):h===96?(u=e.enter("codeTextSequence"),i=0,f(h)):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||z(h)?(e.exit("codeTextData"),l(h)):(e.consume(h),c)}function f(h){return h===96?(e.consume(h),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(u.type="codeTextData",c(h))}}s(Fx,"tokenizeCodeText");class Nx{static{s(this,"SpliceBuffer")}constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const u=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Cr(this.left,r),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Cr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Cr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Cr(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Cr(this.left,n.reverse())}}}function Cr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}s(Cr,"chunkedPush");function k0(e){const t={};let n=-1,r,i,u,a,o,l,c;const f=new Nx(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,u=0,u<l.length&&l[u][1].type==="lineEndingBlank"&&(u+=2),u<l.length&&l[u][1].type==="content"))for(;++u<l.length&&l[u][1].type!=="content";)l[u][1].type==="chunkText"&&(l[u][1]._isInFirstContentOfListItem=!0,u++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,xx(f,n)),n=t[n],c=!0);else if(r[1]._container){for(u=n,i=void 0;u--;)if(a=f.get(u),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=u);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},o=f.slice(i,n),o.unshift(r),f.splice(i,n-i+1,o))}}return $e(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}s(k0,"subtokenize");function xx(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const u=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,l=[],c={};let f,h,p=-1,d=n,E=0,g=0;const D=[g];for(;d;){for(;e.get(++i)[1]!==d;);u.push(i),d._tokenizer||(f=r.sliceStream(d),d.next||f.push(null),h&&a.defineSkip(d.start),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),h=d,d=d.next}for(d=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(g=p+1,D.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(a.events=[],d?(d._tokenizer=void 0,d.previous=void 0):D.pop(),p=D.length;p--;){const A=o.slice(D[p],D[p+1]),y=u.pop();l.push([y,y+A.length-1]),e.splice(y,2,A)}for(l.reverse(),p=-1;++p<l.length;)c[E+l[p][0]]=E+l[p][1],E+=l[p][1]-l[p][0]-1;return c}s(xx,"subcontent");const Ix={resolve:Lx,tokenize:Ox},vx={partial:!0,tokenize:Rx};function Lx(e){return k0(e),e}s(Lx,"resolveContent");function Ox(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?u(o):z(o)?e.check(vx,a,u)(o):(e.consume(o),i)}function u(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function a(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}s(Ox,"tokenizeContent");function Rx(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),J(e,u,"linePrefix")}function u(a){if(a===null||z(a))return n(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}s(Rx,"tokenizeContinuation");function _0(e,t,n,r,i,u,a,o,l){const c=l||Number.POSITIVE_INFINITY;let f=0;return h;function h(A){return A===60?(e.enter(r),e.enter(i),e.enter(u),e.consume(A),e.exit(u),p):A===null||A===32||A===41||Ti(A)?n(A):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),g(A))}function p(A){return A===62?(e.enter(u),e.consume(A),e.exit(u),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(A))}function d(A){return A===62?(e.exit("chunkString"),e.exit(o),p(A)):A===null||A===60||z(A)?n(A):(e.consume(A),A===92?E:d)}function E(A){return A===60||A===62||A===92?(e.consume(A),d):d(A)}function g(A){return!f&&(A===null||A===41||ue(A))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),t(A)):f<c&&A===40?(e.consume(A),f++,g):A===41?(e.consume(A),f--,g):A===null||A===32||A===40||Ti(A)?n(A):(e.consume(A),A===92?D:g)}function D(A){return A===40||A===41||A===92?(e.consume(A),g):g(A)}}s(_0,"factoryDestination");function B0(e,t,n,r,i,u){const a=this;let o=0,l;return c;function c(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(u),f}function f(d){return o>999||d===null||d===91||d===93&&!l||d===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):d===93?(e.exit(u),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):z(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),h(d))}function h(d){return d===null||d===91||d===93||z(d)||o++>999?(e.exit("chunkString"),f(d)):(e.consume(d),l||(l=!Q(d)),d===92?p:h)}function p(d){return d===91||d===92||d===93?(e.consume(d),o++,h):h(d)}}s(B0,"factoryLabel");function S0(e,t,n,r,i,u){let a;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(u),c(p))}function c(p){return p===a?(e.exit(u),l(a)):p===null?n(p):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),J(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===a||p===null||z(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?h:f)}function h(p){return p===a||p===92?(e.consume(p),f):f(p)}}s(S0,"factoryTitle");function Tr(e,t){let n;return r;function r(i){return z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Q(i)?J(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}s(Tr,"factoryWhitespace");const Px={name:"definition",tokenize:Ux},Mx={partial:!0,tokenize:Hx};function Ux(e,t,n){const r=this;let i;return u;function u(d){return e.enter("definition"),a(d)}function a(d){return B0.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return i=tt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):n(d)}function l(d){return ue(d)?Tr(e,c)(d):c(d)}function c(d){return _0(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function f(d){return e.attempt(Mx,h,h)(d)}function h(d){return Q(d)?J(e,p,"whitespace")(d):p(d)}function p(d){return d===null||z(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}s(Ux,"tokenizeDefinition");function Hx(e,t,n){return r;function r(o){return ue(o)?Tr(e,i)(o):n(o)}function i(o){return S0(e,u,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function u(o){return Q(o)?J(e,a,"whitespace")(o):a(o)}function a(o){return o===null||z(o)?t(o):n(o)}}s(Hx,"tokenizeTitleBefore");const $x={name:"hardBreakEscape",tokenize:qx};function qx(e,t,n){return r;function r(u){return e.enter("hardBreakEscape"),e.consume(u),i}function i(u){return z(u)?(e.exit("hardBreakEscape"),t(u)):n(u)}}s(qx,"tokenizeHardBreakEscape");const zx={name:"headingAtx",resolve:jx,tokenize:Yx};function jx(e,t){let n=e.length-2,r=3,i,u;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},u={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},$e(e,r,n-r+1,[["enter",i,t],["enter",u,t],["exit",u,t],["exit",i,t]])),e}s(jx,"resolveHeadingAtx");function Yx(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),u(f)}function u(f){return e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&r++<6?(e.consume(f),a):f===null||ue(f)?(e.exit("atxHeadingSequence"),o(f)):n(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||z(f)?(e.exit("atxHeading"),t(f)):Q(f)?J(e,o,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),o(f))}function c(f){return f===null||f===35||ue(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),c)}}s(Yx,"tokenizeHeadingAtx");const Gx=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],w0=["pre","script","style","textarea"],Vx={concrete:!0,name:"htmlFlow",resolveTo:Qx,tokenize:Xx},Wx={partial:!0,tokenize:Zx},Kx={partial:!0,tokenize:Jx};function Qx(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}s(Qx,"resolveToHtmlFlow");function Xx(e,t,n){const r=this;let i,u,a,o,l;return c;function c(S){return f(S)}function f(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),h}function h(S){return S===33?(e.consume(S),p):S===47?(e.consume(S),u=!0,g):S===63?(e.consume(S),i=3,r.interrupt?t:_):we(S)?(e.consume(S),a=String.fromCharCode(S),D):n(S)}function p(S){return S===45?(e.consume(S),i=2,d):S===91?(e.consume(S),i=5,o=0,E):we(S)?(e.consume(S),i=4,r.interrupt?t:_):n(S)}function d(S){return S===45?(e.consume(S),r.interrupt?t:_):n(S)}function E(S){const Qe="CDATA[";return S===Qe.charCodeAt(o++)?(e.consume(S),o===Qe.length?r.interrupt?t:M:E):n(S)}function g(S){return we(S)?(e.consume(S),a=String.fromCharCode(S),D):n(S)}function D(S){if(S===null||S===47||S===62||ue(S)){const Qe=S===47,xt=a.toLowerCase();return!Qe&&!u&&w0.includes(xt)?(i=1,r.interrupt?t(S):M(S)):Gx.includes(a.toLowerCase())?(i=6,Qe?(e.consume(S),A):r.interrupt?t(S):M(S)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):u?y(S):C(S))}return S===45||Be(S)?(e.consume(S),a+=String.fromCharCode(S),D):n(S)}function A(S){return S===62?(e.consume(S),r.interrupt?t:M):n(S)}function y(S){return Q(S)?(e.consume(S),y):N(S)}function C(S){return S===47?(e.consume(S),N):S===58||S===95||we(S)?(e.consume(S),F):Q(S)?(e.consume(S),C):N(S)}function F(S){return S===45||S===46||S===58||S===95||Be(S)?(e.consume(S),F):v(S)}function v(S){return S===61?(e.consume(S),B):Q(S)?(e.consume(S),v):C(S)}function B(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),l=S,L):Q(S)?(e.consume(S),B):x(S)}function L(S){return S===l?(e.consume(S),l=null,w):S===null||z(S)?n(S):(e.consume(S),L)}function x(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||ue(S)?v(S):(e.consume(S),x)}function w(S){return S===47||S===62||Q(S)?C(S):n(S)}function N(S){return S===62?(e.consume(S),$):n(S)}function $(S){return S===null||z(S)?M(S):Q(S)?(e.consume(S),$):n(S)}function M(S){return S===45&&i===2?(e.consume(S),Z):S===60&&i===1?(e.consume(S),re):S===62&&i===4?(e.consume(S),be):S===63&&i===3?(e.consume(S),_):S===93&&i===5?(e.consume(S),Me):z(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Wx,Ke,j)(S)):S===null||z(S)?(e.exit("htmlFlowData"),j(S)):(e.consume(S),M)}function j(S){return e.check(Kx,Y,Ke)(S)}function Y(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),W}function W(S){return S===null||z(S)?j(S):(e.enter("htmlFlowData"),M(S))}function Z(S){return S===45?(e.consume(S),_):M(S)}function re(S){return S===47?(e.consume(S),a="",ge):M(S)}function ge(S){if(S===62){const Qe=a.toLowerCase();return w0.includes(Qe)?(e.consume(S),be):M(S)}return we(S)&&a.length<8?(e.consume(S),a+=String.fromCharCode(S),ge):M(S)}function Me(S){return S===93?(e.consume(S),_):M(S)}function _(S){return S===62?(e.consume(S),be):S===45&&i===2?(e.consume(S),_):M(S)}function be(S){return S===null||z(S)?(e.exit("htmlFlowData"),Ke(S)):(e.consume(S),be)}function Ke(S){return e.exit("htmlFlow"),t(S)}}s(Xx,"tokenizeHtmlFlow");function Jx(e,t,n){const r=this;return i;function i(a){return z(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u):n(a)}function u(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}s(Jx,"tokenizeNonLazyContinuationStart");function Zx(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Dr,t,n)}}s(Zx,"tokenizeBlankLineBefore");const eI={name:"htmlText",tokenize:tI};function tI(e,t,n){const r=this;let i,u,a;return o;function o(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),l}function l(_){return _===33?(e.consume(_),c):_===47?(e.consume(_),v):_===63?(e.consume(_),C):we(_)?(e.consume(_),x):n(_)}function c(_){return _===45?(e.consume(_),f):_===91?(e.consume(_),u=0,E):we(_)?(e.consume(_),y):n(_)}function f(_){return _===45?(e.consume(_),d):n(_)}function h(_){return _===null?n(_):_===45?(e.consume(_),p):z(_)?(a=h,re(_)):(e.consume(_),h)}function p(_){return _===45?(e.consume(_),d):h(_)}function d(_){return _===62?Z(_):_===45?p(_):h(_)}function E(_){const be="CDATA[";return _===be.charCodeAt(u++)?(e.consume(_),u===be.length?g:E):n(_)}function g(_){return _===null?n(_):_===93?(e.consume(_),D):z(_)?(a=g,re(_)):(e.consume(_),g)}function D(_){return _===93?(e.consume(_),A):g(_)}function A(_){return _===62?Z(_):_===93?(e.consume(_),A):g(_)}function y(_){return _===null||_===62?Z(_):z(_)?(a=y,re(_)):(e.consume(_),y)}function C(_){return _===null?n(_):_===63?(e.consume(_),F):z(_)?(a=C,re(_)):(e.consume(_),C)}function F(_){return _===62?Z(_):C(_)}function v(_){return we(_)?(e.consume(_),B):n(_)}function B(_){return _===45||Be(_)?(e.consume(_),B):L(_)}function L(_){return z(_)?(a=L,re(_)):Q(_)?(e.consume(_),L):Z(_)}function x(_){return _===45||Be(_)?(e.consume(_),x):_===47||_===62||ue(_)?w(_):n(_)}function w(_){return _===47?(e.consume(_),Z):_===58||_===95||we(_)?(e.consume(_),N):z(_)?(a=w,re(_)):Q(_)?(e.consume(_),w):Z(_)}function N(_){return _===45||_===46||_===58||_===95||Be(_)?(e.consume(_),N):$(_)}function $(_){return _===61?(e.consume(_),M):z(_)?(a=$,re(_)):Q(_)?(e.consume(_),$):w(_)}function M(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),i=_,j):z(_)?(a=M,re(_)):Q(_)?(e.consume(_),M):(e.consume(_),Y)}function j(_){return _===i?(e.consume(_),i=void 0,W):_===null?n(_):z(_)?(a=j,re(_)):(e.consume(_),j)}function Y(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||ue(_)?w(_):(e.consume(_),Y)}function W(_){return _===47||_===62||ue(_)?w(_):n(_)}function Z(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function re(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),ge}function ge(_){return Q(_)?J(e,Me,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):Me(_)}function Me(_){return e.enter("htmlTextData"),a(_)}}s(tI,"tokenizeHtmlText");const Ya={name:"labelEnd",resolveAll:sI,resolveTo:uI,tokenize:aI},nI={tokenize:oI},rI={tokenize:lI},iI={tokenize:cI};function sI(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&$e(e,0,e.length,n),e}s(sI,"resolveAllLabelEnd");function uI(e,t){let n=e.length,r=0,i,u,a,o;for(;n--;)if(i=e[n][1],u){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(u=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[u][1].start},end:{...e[a][1].end}},f={type:"labelText",start:{...e[u+r+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",l,t],["enter",c,t]],o=je(o,e.slice(u+1,u+r+3)),o=je(o,[["enter",f,t]]),o=je(o,Ri(t.parser.constructs.insideSpan.null,e.slice(u+r+4,a-3),t)),o=je(o,[["exit",f,t],e[a-2],e[a-1],["exit",c,t]]),o=je(o,e.slice(a+1)),o=je(o,[["exit",l,t]]),$e(e,u,e.length,o),e}s(uI,"resolveToLabelEnd");function aI(e,t,n){const r=this;let i=r.events.length,u,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){u=r.events[i][1];break}return o;function o(p){return u?u._inactive?h(p):(a=r.parser.defined.includes(tt(r.sliceSerialize({start:u.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(nI,f,a?f:h)(p):p===91?e.attempt(rI,f,a?c:h)(p):a?f(p):h(p)}function c(p){return e.attempt(iI,f,h)(p)}function f(p){return t(p)}function h(p){return u._balanced=!0,n(p)}}s(aI,"tokenizeLabelEnd");function oI(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return ue(h)?Tr(e,u)(h):u(h)}function u(h){return h===41?f(h):_0(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function a(h){return ue(h)?Tr(e,l)(h):f(h)}function o(h){return n(h)}function l(h){return h===34||h===39||h===40?S0(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):f(h)}function c(h){return ue(h)?Tr(e,f)(h):f(h)}function f(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}s(oI,"tokenizeResource");function lI(e,t,n){const r=this;return i;function i(o){return B0.call(r,e,u,a,"reference","referenceMarker","referenceString")(o)}function u(o){return r.parser.defined.includes(tt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function a(o){return n(o)}}s(lI,"tokenizeReferenceFull");function cI(e,t,n){return r;function r(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),i}function i(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),t):n(u)}}s(cI,"tokenizeReferenceCollapsed");const hI={name:"labelStartImage",resolveAll:Ya.resolveAll,tokenize:fI};function fI(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),u}function u(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):n(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}s(fI,"tokenizeLabelStartImage");const mI={name:"labelStartLink",resolveAll:Ya.resolveAll,tokenize:dI};function dI(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),u}function u(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}s(dI,"tokenizeLabelStartLink");const Ga={name:"lineEnding",tokenize:pI};function pI(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),J(e,t,"linePrefix")}}s(pI,"tokenizeLineEnding");const Pi={name:"thematicBreak",tokenize:gI};function gI(e,t,n){let r=0,i;return u;function u(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,o(c)}function o(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||z(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===i?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Q(c)?J(e,o,"whitespace")(c):o(c))}}s(gI,"tokenizeThematicBreak");const Pe={continuation:{tokenize:CI},exit:yI,name:"list",tokenize:DI},EI={partial:!0,tokenize:bI},AI={partial:!0,tokenize:TI};function DI(e,t,n){const r=this,i=r.events[r.events.length-1];let u=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(d){const E=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:lu(d)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Pi,n,c)(d):c(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return n(d)}function l(d){return lu(d)&&++a<10?(e.consume(d),l):(!r.interrupt||a<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),c(d)):n(d)}function c(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Dr,r.interrupt?n:f,e.attempt(EI,p,h))}function f(d){return r.containerState.initialBlankLine=!0,u++,p(d)}function h(d){return Q(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=u+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}s(DI,"tokenizeListStart");function CI(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Dr,i,u);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,J(e,t,"listItemIndent",r.containerState.size+1)(o)}s(i,"onBlank");function u(o){return r.containerState.furtherBlankLines||!Q(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(AI,t,a)(o))}s(u,"notBlank");function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,J(e,e.attempt(Pe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}s(a,"notInCurrentItem")}s(CI,"tokenizeListContinuation");function TI(e,t,n){const r=this;return J(e,i,"listItemIndent",r.containerState.size+1);function i(u){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(u):n(u)}}s(TI,"tokenizeIndent$1");function yI(e){e.exit(this.containerState.type)}s(yI,"tokenizeListEnd");function bI(e,t,n){const r=this;return J(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(u){const a=r.events[r.events.length-1];return!Q(u)&&a&&a[1].type==="listItemPrefixWhitespace"?t(u):n(u)}}s(bI,"tokenizeListItemPrefixWhitespace");const F0={name:"setextUnderline",resolveTo:kI,tokenize:_I};function kI(e,t){let n=e.length,r,i,u;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!u&&e[n][1].type==="definition"&&(u=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",u?(e.splice(i,0,["enter",a,t]),e.splice(u+1,0,["exit",e[r][1],t]),e[r][1].end={...e[u][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}s(kI,"resolveToSetextUnderline");function _I(e,t,n){const r=this;let i;return u;function u(c){let f=r.events.length,h;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){h=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=c,a(c)):n(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),Q(c)?J(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||z(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}s(_I,"tokenizeSetextUnderline");const BI={tokenize:LI,partial:!0};function SI(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:xI,continuation:{tokenize:II},exit:vI}},text:{91:{name:"gfmFootnoteCall",tokenize:NI},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:wI,resolveTo:FI}}}}s(SI,"gfmFootnote");function wI(e,t,n){const r=this;let i=r.events.length;const u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!a||!a._balanced)return n(l);const c=tt(r.sliceSerialize({start:a.end,end:r.now()}));return c.codePointAt(0)!==94||!u.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}s(wI,"tokenizePotentialGfmFootnoteCall");function FI(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",u,t],["enter",a,t],["exit",a,t],["exit",u,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}s(FI,"resolveToPotentialGfmFootnoteCall");function NI(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u=0,a;return o;function o(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(h){if(u>999||h===93&&!a||h===null||h===91||ue(h))return n(h);if(h===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(tt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return ue(h)||(a=!0),u++,e.consume(h),h===92?f:c}function f(h){return h===91||h===92||h===93?(e.consume(h),u++,c):c(h)}}s(NI,"tokenizeGfmFootnoteCall");function xI(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u,a=0,o;return l;function l(E){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(E){return E===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(E)}function f(E){if(a>999||E===93&&!o||E===null||E===91||ue(E))return n(E);if(E===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return u=tt(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(E),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return ue(E)||(o=!0),a++,e.consume(E),E===92?h:f}function h(E){return E===91||E===92||E===93?(e.consume(E),a++,f):f(E)}function p(E){return E===58?(e.enter("definitionMarker"),e.consume(E),e.exit("definitionMarker"),i.includes(u)||i.push(u),J(e,d,"gfmFootnoteDefinitionWhitespace")):n(E)}function d(E){return t(E)}}s(xI,"tokenizeDefinitionStart");function II(e,t,n){return e.check(Dr,t,e.attempt(BI,t,n))}s(II,"tokenizeDefinitionContinuation");function vI(e){e.exit("gfmFootnoteDefinition")}s(vI,"gfmFootnoteDefinitionEnd");function LI(e,t,n){const r=this;return J(e,i,"gfmFootnoteDefinitionIndent",5);function i(u){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(u):n(u)}}s(LI,"tokenizeIndent");function OI(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:u,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,o){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let c=l;for(;c--;)if(a[c][0]==="exit"&&a[c][1].type==="strikethroughSequenceTemporary"&&a[c][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[c][1].end.offset-a[c][1].start.offset){a[l][1].type="strikethroughSequence",a[c][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},a[c][1].start),end:Object.assign({},a[l][1].end)},h={type:"strikethroughText",start:Object.assign({},a[c][1].end),end:Object.assign({},a[l][1].start)},p=[["enter",f,o],["enter",a[c][1],o],["exit",a[c][1],o],["enter",h,o]],d=o.parser.constructs.insideSpan.null;d&&$e(p,p.length,0,Ri(d,a.slice(c+1,l),o)),$e(p,p.length,0,[["exit",h,o],["enter",a[l][1],o],["exit",a[l][1],o],["exit",f,o]]),$e(a,c-1,l-c+3,p),l=c+p.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}s(i,"resolveAllStrikethrough");function u(a,o,l){const c=this.previous,f=this.events;let h=0;return p;function p(E){return c===126&&f[f.length-1][1].type!=="characterEscape"?l(E):(a.enter("strikethroughSequenceTemporary"),d(E))}function d(E){const g=yn(c);if(E===126)return h>1?l(E):(a.consume(E),h++,d);if(h<2&&!n)return l(E);const D=a.exit("strikethroughSequenceTemporary"),A=yn(E);return D._open=!A||A===2&&!!g,D._close=!g||g===2&&!!A,o(E)}}s(u,"tokenizeStrikethrough")}s(OI,"gfmStrikethrough");class RI{static{s(this,"EditMap")}constructor(){this.map=[]}add(t,n,r){PI(this,t,n,r)}consume(t){if(this.map.sort(function(u,a){return u[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const u of i)t.push(u);i=r.pop()}this.map.length=0}}function PI(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}s(PI,"addImplementation");function MI(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const u=r.length-1;r[u]=r[u]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}s(MI,"gfmTableAlign");function UI(){return{flow:{null:{name:"table",tokenize:HI,resolveAll:$I}}}}s(UI,"gfmTable");function HI(e,t,n){const r=this;let i=0,u=0,a;return o;function o(N){let $=r.events.length-1;for(;$>-1;){const Y=r.events[$][1].type;if(Y==="lineEnding"||Y==="linePrefix")$--;else break}const M=$>-1?r.events[$][1].type:null,j=M==="tableHead"||M==="tableRow"?B:l;return j===B&&r.parser.lazy[r.now().line]?n(N):j(N)}function l(N){return e.enter("tableHead"),e.enter("tableRow"),c(N)}function c(N){return N===124||(a=!0,u+=1),f(N)}function f(N){return N===null?n(N):z(N)?u>1?(u=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),d):n(N):Q(N)?J(e,f,"whitespace")(N):(u+=1,a&&(a=!1,i+=1),N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),a=!0,f):(e.enter("data"),h(N)))}function h(N){return N===null||N===124||ue(N)?(e.exit("data"),f(N)):(e.consume(N),N===92?p:h)}function p(N){return N===92||N===124?(e.consume(N),h):h(N)}function d(N){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(N):(e.enter("tableDelimiterRow"),a=!1,Q(N)?J(e,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):E(N))}function E(N){return N===45||N===58?D(N):N===124?(a=!0,e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),g):v(N)}function g(N){return Q(N)?J(e,D,"whitespace")(N):D(N)}function D(N){return N===58?(u+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),A):N===45?(u+=1,A(N)):N===null||z(N)?F(N):v(N)}function A(N){return N===45?(e.enter("tableDelimiterFiller"),y(N)):v(N)}function y(N){return N===45?(e.consume(N),y):N===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(N))}function C(N){return Q(N)?J(e,F,"whitespace")(N):F(N)}function F(N){return N===124?E(N):N===null||z(N)?!a||i!==u?v(N):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(N)):v(N)}function v(N){return n(N)}function B(N){return e.enter("tableRow"),L(N)}function L(N){return N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),L):N===null||z(N)?(e.exit("tableRow"),t(N)):Q(N)?J(e,L,"whitespace")(N):(e.enter("data"),x(N))}function x(N){return N===null||N===124||ue(N)?(e.exit("data"),L(N)):(e.consume(N),N===92?w:x)}function w(N){return N===92||N===124?(e.consume(N),x):x(N)}}s(HI,"tokenizeTable");function $I(e,t){let n=-1,r=!0,i=0,u=[0,0,0,0],a=[0,0,0,0],o=!1,l=0,c,f,h;const p=new RI;for(;++n<e.length;){const d=e[n],E=d[1];d[0]==="enter"?E.type==="tableHead"?(o=!1,l!==0&&(N0(p,t,l,c,f),f=void 0,l=0),c={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},p.add(n,0,[["enter",c,t]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(r=!0,h=void 0,u=[0,0,0,0],a=[0,n+1,0,0],o&&(o=!1,f={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},p.add(n,0,[["enter",f,t]])),i=E.type==="tableDelimiterRow"?2:f?3:1):i&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(u[1]!==0&&(a[0]=a[1],h=Mi(p,t,u,i,void 0,h),u=[0,0,0,0]),a[2]=n)):E.type==="tableCellDivider"&&(r?r=!1:(u[1]!==0&&(a[0]=a[1],h=Mi(p,t,u,i,void 0,h)),u=a,a=[u[1],n,0,0])):E.type==="tableHead"?(o=!0,l=n):E.type==="tableRow"||E.type==="tableDelimiterRow"?(l=n,u[1]!==0?(a[0]=a[1],h=Mi(p,t,u,i,n,h)):a[1]!==0&&(h=Mi(p,t,a,i,n,h)),i=0):i&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&N0(p,t,l,c,f),p.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=MI(t.events,n))}return e}s($I,"resolveTable");function Mi(e,t,n,r,i,u){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(u.end=Object.assign({},bn(t.events,n[0])),e.add(n[0],0,[["exit",u,t]]));const l=bn(t.events,n[1]);if(u={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",u,t]]),n[2]!==0){const c=bn(t.events,n[2]),f=bn(t.events,n[3]),h={type:o,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const p=t.events[n[2]],d=t.events[n[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const E=n[2]+1,g=n[3]-n[2]-1;e.add(E,g,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return i!==void 0&&(u.end=Object.assign({},bn(t.events,i)),e.add(i,0,[["exit",u,t]]),u=void 0),u}s(Mi,"flushCell");function N0(e,t,n,r,i){const u=[],a=bn(t.events,n);i&&(i.end=Object.assign({},a),u.push(["exit",i,t])),r.end=Object.assign({},a),u.push(["exit",r,t]),e.add(n+1,0,u)}s(N0,"flushTableEnd");function bn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}s(bn,"getPoint");const qI={name:"tasklistCheck",tokenize:jI};function zI(){return{text:{91:qI}}}s(zI,"gfmTaskListItem");function jI(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),u)}function u(l){return ue(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return z(l)?t(l):Q(l)?e.check({tokenize:YI},t,n)(l):n(l)}}s(jI,"tokenizeTasklistCheck");function YI(e,t,n){return J(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}s(YI,"spaceThenNonSpace");function GI(e){return l0([nx(),SI(),OI(e),UI(),zI()])}s(GI,"gfm");const VI={};function WI(e){const t=this,n=e||VI,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(GI(n)),u.push(QN()),a.push(XN(n))}s(WI,"remarkGfm");const Va={classNameMaps:{block:"admonition",title:"admonition-title"},titleFilter:["[!NOTE]","[!IMPORTANT]","[!WARNING]","[!TIP]","[!CAUTION]"],titleTextMap:s(e=>({displayTitle:e.substring(2,e.length-1),checkedTitle:e.substring(2,e.length-1)}),"titleTextMap"),dataMaps:{block:s(e=>e,"block"),title:s(e=>e,"title")},titleKeepTrailingWhitespaces:!1,legacyTitle:!1},KI={...Va,titleFilter:["Note","Warning"],titleTextMap:s(e=>({displayTitle:e,checkedTitle:e}),"titleTextMap"),legacyTitle:!1,titleLift:!1,titleLiftWhitespaces:s(()=>"","titleLiftWhitespaces"),titleUnwrap:!1};function yr(e){return t=>{const n=typeof e=="function"?e(t):e;return typeof n=="object"?n.join(" "):n}}s(yr,"classNameMap");function Wa(e){return t=>typeof e=="function"?e(t):e.map(n=>n.toLowerCase()).includes(t.toLowerCase())}s(Wa,"nameFilter");const QI=s(e=>t=>{if(t.type!="blockquote")return;const n=t;if(n.children.length<=0||n.children[0].type!="paragraph")return;const r=n.children[0];if(r.children.length<=0||r.children[0].type!="strong")return;const i=r.children[0];if(i.children.length!=1||i.children[0].type!="text")return;const u=i.children[0],a=u.value;if(!Wa(e.titleFilter)(a))return;const{displayTitle:o,checkedTitle:l}=e.titleTextMap(a);if(u.value=o,n.data=e.dataMaps.block({...n.data,hProperties:{className:yr(e.classNameMaps.block)(l)}}),i.data=e.dataMaps.title({...i.data,hProperties:{className:yr(e.classNameMaps.title)(l)}}),e.titleLift){const c=r.children.splice(0,1)[0];let f;e.titleUnwrap?f={type:"paragraph",children:[{type:"text",value:o}],data:e.dataMaps.title({hProperties:{className:yr(e.classNameMaps.title)(l)}})}:f={type:"paragraph",children:[c]},n.children.unshift(f);const h=r;if(h.children.length>0&&h.children[0].type=="text"){const p=h.children[0],E=/^[ \t\n\v\f\r]*/.exec(p.value),g=E?E[0]:"";p.value=e.titleLiftWhitespaces(g)+p.value.slice(g.length)}}},"handleNode$1"),XI=s(function(...e){const t=e.reduce((r,i)=>({...r,...i}),{}),n=t?.legacyTitle??Va.legacyTitle;return r=>{se(r,n?QI({...KI,...t}):JI({...Va,...t}))}},"plugin$2"),JI=s(e=>t=>{if(t.type!="blockquote")return;const n=t;if(n.children[0]?.type!="paragraph")return;const r=n.children[0];if(r.children[0]?.type!="text")return;const i=r.children[0];let u;const a=i.value.indexOf(`
|
|
818
|
-
`);if(a<0){if(r.children.length>1)if(r.children.at(1)?.type=="break")r.children.splice(1,1);else return;if(u=i.value,!Wa(e.titleFilter)(u))return;r.children.shift()}else{const h=i.value.substring(a+1);u=i.value.substring(0,a);const p=/[ \t\v\f\r]+$/.exec(u);if(p&&!e.titleKeepTrailingWhitespaces&&(u=u.substring(0,u.length-p[0].length)),!Wa(e.titleFilter)(u))return;i.value=h}const{displayTitle:o,checkedTitle:l}=e.titleTextMap(u),f={type:"paragraph",children:[{type:"text",value:o}],data:e.dataMaps.title({hProperties:{className:yr(e.classNameMaps.title)(l)}})};n.children.unshift(f),n.data=e.dataMaps.block({...n.data,hProperties:{className:yr(e.classNameMaps.block)(l)},hName:"div"})},"handleNode");function ZI(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:u},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:a,mathTextData:o}};function e(l){const c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},l)}function t(){this.buffer()}function n(){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,c.meta=l}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(l){const c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),f=this.stack[this.stack.length-1];f.type,this.exit(l),f.value=c;const h=f.data.hChildren[0];h.type,h.tagName,h.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function u(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function a(l){const c=this.resume(),f=this.stack[this.stack.length-1];f.type,this.exit(l),f.value=c,f.data.hChildren.push({type:"text",value:c})}function o(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}s(ZI,"mathFromMarkdown");function ev(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
819
|
-
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(u,a,o,l){const c=u.value||"",f=o.createTracker(l),h="$".repeat(Math.max(jm(c,"$")+1,2)),p=o.enter("mathFlow");let d=f.move(h);if(u.meta){const E=o.enter("mathFlowMeta");d+=f.move(o.safe(u.meta,{after:`
|
|
820
|
-
`,before:d,encode:["$"],...f.current()})),E()}return d+=f.move(`
|
|
821
|
-
`),c&&(d+=f.move(c+`
|
|
822
|
-
`)),d+=f.move(h),p(),d}s(n,"math");function r(u,a,o){let l=u.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(l);)c++;const f="$".repeat(c);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let h=-1;for(;++h<o.unsafe.length;){const p=o.unsafe[h];if(!p.atBreak)continue;const d=o.compilePattern(p);let E;for(;E=d.exec(l);){let g=E.index;l.codePointAt(g)===10&&l.codePointAt(g-1)===13&&g--,l=l.slice(0,g)+" "+l.slice(E.index+1)}}return f+l+f}s(r,"inlineMath");function i(){return"$"}s(i,"inlineMathPeek")}s(ev,"mathToMarkdown");const tv={tokenize:nv,concrete:!0,name:"mathFlow"},x0={tokenize:rv,partial:!0};function nv(e,t,n){const r=this,i=r.events[r.events.length-1],u=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let a=0;return o;function o(y){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(y)}function l(y){return y===36?(e.consume(y),a++,l):a<2?n(y):(e.exit("mathFlowFenceSequence"),J(e,c,"whitespace")(y))}function c(y){return y===null||z(y)?h(y):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===null||z(y)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),h(y)):y===36?n(y):(e.consume(y),f)}function h(y){return e.exit("mathFlowFence"),r.interrupt?t(y):e.attempt(x0,p,D)(y)}function p(y){return e.attempt({tokenize:A,partial:!0},D,d)(y)}function d(y){return(u?J(e,E,"linePrefix",u+1):E)(y)}function E(y){return y===null?D(y):z(y)?e.attempt(x0,p,D)(y):(e.enter("mathFlowValue"),g(y))}function g(y){return y===null||z(y)?(e.exit("mathFlowValue"),E(y)):(e.consume(y),g)}function D(y){return e.exit("mathFlow"),t(y)}function A(y,C,F){let v=0;return J(y,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function B(w){return y.enter("mathFlowFence"),y.enter("mathFlowFenceSequence"),L(w)}function L(w){return w===36?(v++,y.consume(w),L):v<a?F(w):(y.exit("mathFlowFenceSequence"),J(y,x,"whitespace")(w))}function x(w){return w===null||z(w)?(y.exit("mathFlowFence"),C(w)):F(w)}}}s(nv,"tokenizeMathFenced");function rv(e,t,n){const r=this;return i;function i(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),u)}function u(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}s(rv,"tokenizeNonLazyContinuation");function iv(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:sv,previous:uv,name:"mathText"};function r(i,u,a){let o=0,l,c;return f;function f(g){return i.enter("mathText"),i.enter("mathTextSequence"),h(g)}function h(g){return g===36?(i.consume(g),o++,h):o<2&&!n?a(g):(i.exit("mathTextSequence"),p(g))}function p(g){return g===null?a(g):g===36?(c=i.enter("mathTextSequence"),l=0,E(g)):g===32?(i.enter("space"),i.consume(g),i.exit("space"),p):z(g)?(i.enter("lineEnding"),i.consume(g),i.exit("lineEnding"),p):(i.enter("mathTextData"),d(g))}function d(g){return g===null||g===32||g===36||z(g)?(i.exit("mathTextData"),p(g)):(i.consume(g),d)}function E(g){return g===36?(i.consume(g),l++,E):l===o?(i.exit("mathTextSequence"),i.exit("mathText"),u(g)):(c.type="mathTextData",d(g))}}s(r,"tokenizeMathText")}s(iv,"mathText");function sv(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="mathTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}s(sv,"resolveMathText");function uv(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}s(uv,"previous");function av(e){return{flow:{36:tv},text:{36:iv(e)}}}s(av,"math");const ov={};function lv(e){const t=this,n=e||ov,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),u=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(av(n)),u.push(ZI()),a.push(ev(n))}s(lv,"remarkMath");const cv={tokenize:hv};function hv(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),J(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),u(o)}function u(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return z(o)?(e.consume(o),e.exit("chunkText"),u):(e.consume(o),a)}}s(hv,"initializeContent");const fv={tokenize:mv},I0={tokenize:dv};function mv(e){const t=this,n=[];let r=0,i,u,a;return o;function o(C){if(r<n.length){const F=n[r];return t.containerState=F[1],e.attempt(F[0].continuation,l,c)(C)}return c(C)}function l(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&y();const F=t.events.length;let v=F,B;for(;v--;)if(t.events[v][0]==="exit"&&t.events[v][1].type==="chunkFlow"){B=t.events[v][1].end;break}A(r);let L=F;for(;L<t.events.length;)t.events[L][1].end={...B},L++;return $e(t.events,v+1,0,t.events.slice(F)),t.events.length=L,c(C)}return o(C)}function c(C){if(r===n.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return E(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(I0,f,h)(C)}function f(C){return i&&y(),A(r),p(C)}function h(C){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,E(C)}function p(C){return t.containerState={},e.attempt(I0,d,E)(C)}function d(C){return r++,n.push([t.currentConstruct,t.containerState]),p(C)}function E(C){if(C===null){i&&y(),A(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:u}),g(C)}function g(C){if(C===null){D(e.exit("chunkFlow"),!0),A(0),e.consume(C);return}return z(C)?(e.consume(C),D(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(C),g)}function D(C,F){const v=t.sliceStream(C);if(F&&v.push(null),C.previous=u,u&&(u.next=C),u=C,i.defineSkip(C.start),i.write(v),t.parser.lazy[C.start.line]){let B=i.events.length;for(;B--;)if(i.events[B][1].start.offset<a&&(!i.events[B][1].end||i.events[B][1].end.offset>a))return;const L=t.events.length;let x=L,w,N;for(;x--;)if(t.events[x][0]==="exit"&&t.events[x][1].type==="chunkFlow"){if(w){N=t.events[x][1].end;break}w=!0}for(A(r),B=L;B<t.events.length;)t.events[B][1].end={...N},B++;$e(t.events,x+1,0,t.events.slice(L)),t.events.length=B}}function A(C){let F=n.length;for(;F-- >C;){const v=n[F];t.containerState=v[1],v[0].exit.call(t,e)}n.length=C}function y(){i.write([null]),u=void 0,i=void 0,t.containerState._closeFlow=void 0}}s(mv,"initializeDocument");function dv(e,t,n){return J(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}s(dv,"tokenizeContainer");const pv={tokenize:gv};function gv(e){const t=this,n=e.attempt(Dr,r,e.attempt(this.parser.constructs.flowInitial,i,J(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ix,i)),"linePrefix")));return n;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),t.currentConstruct=void 0,n}}s(gv,"initializeFlow");const Ev={resolveAll:L0()},Av=v0("string"),Dv=v0("text");function v0(e){return{resolveAll:L0(e==="text"?Cv:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],u=n.attempt(i,a,o);return a;function a(f){return c(f)?u(f):o(f)}function o(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return c(f)?(n.exit("data"),u(f)):(n.consume(f),l)}function c(f){if(f===null)return!0;const h=i[f];let p=-1;if(h)for(;++p<h.length;){const d=h[p];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}s(v0,"initializeFactory");function L0(e){return t;function t(n,r){let i=-1,u;for(;++i<=n.length;)u===void 0?n[i]&&n[i][1].type==="data"&&(u=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==u+2&&(n[u][1].end=n[i-1][1].end,n.splice(u+2,i-u-2),i=u+2),u=void 0);return e?e(n,r):n}}s(L0,"createResolver");function Cv(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let u=i.length,a=-1,o=0,l;for(;u--;){const c=i[u];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(c===-2)l=!0,o++;else if(c!==-1){u++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const c={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?a:r.start._bufferIndex+a,_index:r.start._index+u,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}s(Cv,"resolveAllLineSuffixes");const Tv={42:Pe,43:Pe,45:Pe,48:Pe,49:Pe,50:Pe,51:Pe,52:Pe,53:Pe,54:Pe,55:Pe,56:Pe,57:Pe,62:D0},yv={91:Px},bv={[-2]:ja,[-1]:ja,32:ja},kv={35:zx,42:Pi,45:[F0,Pi],60:Vx,61:F0,95:Pi,96:b0,126:b0},_v={38:T0,92:C0},Bv={[-5]:Ga,[-4]:Ga,[-3]:Ga,33:hI,38:T0,42:za,60:[mx,eI],91:mI,92:[$x,C0],93:Ya,95:za,96:Bx},Sv={null:[za,Ev]},wv={null:[42,95]},Fv={null:[]};var Nv=Object.freeze({__proto__:null,attentionMarkers:wv,contentInitial:yv,disable:Fv,document:Tv,flow:kv,flowInitial:bv,insideSpan:Sv,string:_v,text:Bv});function xv(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},u=[];let a=[],o=[];const l={attempt:L(v),check:L(B),consume:y,enter:C,exit:F,interrupt:L(B,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:E,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:h};let f=t.tokenize.call(c,l);return t.resolveAll&&u.push(t),c;function h($){return a=je(a,$),D(),a[a.length-1]!==null?[]:(x(t,0),c.events=Ri(u,c.events,c),c.events)}s(h,"write");function p($,M){return vv(d($),M)}s(p,"sliceSerialize");function d($){return Iv(a,$)}s(d,"sliceStream");function E(){const{_bufferIndex:$,_index:M,line:j,column:Y,offset:W}=r;return{_bufferIndex:$,_index:M,line:j,column:Y,offset:W}}s(E,"now");function g($){i[$.line]=$.column,N()}s(g,"defineSkip");function D(){let $;for(;r._index<a.length;){const M=a[r._index];if(typeof M=="string")for($=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===$&&r._bufferIndex<M.length;)A(M.charCodeAt(r._bufferIndex));else A(M)}}s(D,"main");function A($){f=f($)}s(A,"go");function y($){z($)?(r.line++,r.column=1,r.offset+=$===-3?2:1,N()):$!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=$}s(y,"consume");function C($,M){const j=M||{};return j.type=$,j.start=E(),c.events.push(["enter",j,c]),o.push(j),j}s(C,"enter");function F($){const M=o.pop();return M.end=E(),c.events.push(["exit",M,c]),M}s(F,"exit");function v($,M){x($,M.from)}s(v,"onsuccessfulconstruct");function B($,M){M.restore()}s(B,"onsuccessfulcheck");function L($,M){return j;function j(Y,W,Z){let re,ge,Me,_;return Array.isArray(Y)?Ke(Y):"tokenize"in Y?Ke([Y]):be(Y);function be(ye){return Mn;function Mn(Ct){const tn=Ct!==null&&ye[Ct],nn=Ct!==null&&ye.null,Rr=[...Array.isArray(tn)?tn:tn?[tn]:[],...Array.isArray(nn)?nn:nn?[nn]:[]];return Ke(Rr)(Ct)}}function Ke(ye){return re=ye,ge=0,ye.length===0?Z:S(ye[ge])}function S(ye){return Mn;function Mn(Ct){return _=w(),Me=ye,ye.partial||(c.currentConstruct=ye),ye.name&&c.parser.constructs.disable.null.includes(ye.name)?xt():ye.tokenize.call(M?Object.assign(Object.create(c),M):c,l,Qe,xt)(Ct)}}function Qe(ye){return $(Me,_),W}function xt(ye){return _.restore(),++ge<re.length?S(re[ge]):Z}}}s(L,"constructFactory");function x($,M){$.resolveAll&&!u.includes($)&&u.push($),$.resolve&&$e(c.events,M,c.events.length-M,$.resolve(c.events.slice(M),c)),$.resolveTo&&(c.events=$.resolveTo(c.events,c))}s(x,"addResult");function w(){const $=E(),M=c.previous,j=c.currentConstruct,Y=c.events.length,W=Array.from(o);return{from:Y,restore:Z};function Z(){r=$,c.previous=M,c.currentConstruct=j,c.events.length=Y,o=W,N()}}s(w,"store");function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}s(N,"accountForPotentialSkip")}s(xv,"createTokenizer");function Iv(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,u=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,u)];else{if(a=e.slice(n,i),r>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}u>0&&a.push(e[i].slice(0,u))}return a}s(Iv,"sliceChunks");function vv(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const u=e[n];let a;if(typeof u=="string")a=u;else switch(u){case-5:{a="\r";break}case-4:{a=`
|
|
823
|
-
`;break}case-3:{a=`\r
|
|
824
|
-
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(u)}i=u===-2,r.push(a)}return r.join("")}s(vv,"serializeChunks");function Lv(e){const r={constructs:l0([Nv,...(e||{}).extensions||[]]),content:i(cv),defined:[],document:i(fv),flow:i(pv),lazy:{},string:i(Av),text:i(Dv)};return r;function i(u){return a;function a(o){return xv(r,u,o)}}}s(Lv,"parse$1");function Ov(e){for(;!k0(e););return e}s(Ov,"postprocess");const O0=/[\0\t\n\r]/g;function Rv(){let e=1,t="",n=!0,r;return i;function i(u,a,o){const l=[];let c,f,h,p,d;for(u=t+(typeof u=="string"?u.toString():new TextDecoder(a||void 0).decode(u)),h=0,t="",n&&(u.charCodeAt(0)===65279&&h++,n=void 0);h<u.length;){if(O0.lastIndex=h,c=O0.exec(u),p=c&&c.index!==void 0?c.index:u.length,d=u.charCodeAt(p),!c){t=u.slice(h);break}if(d===10&&h===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),h<p&&(l.push(u.slice(h,p)),e+=p-h),d){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}h=p+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}s(Rv,"preprocess");const R0={}.hasOwnProperty;function Pv(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Mv(n)(Ov(Lv(n).document().write(Rv()(e,t,!0))))}s(Pv,"fromMarkdown");function Mv(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Lo),autolinkProtocol:w,autolinkEmail:w,atxHeading:u(xo),blockQuote:u(nn),characterEscape:w,characterReference:w,codeFenced:u(Rr),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:u(Rr,a),codeText:u(jd,a),codeTextData:w,data:w,codeFlowValue:w,definition:u(Yd),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:u(Gd),hardBreakEscape:u(Io),hardBreakTrailing:u(Io),htmlFlow:u(vo,a),htmlFlowData:w,htmlText:u(vo,a),htmlTextData:w,image:u(Vd),label:a,link:u(Lo),listItem:u(Wd),listItemValue:p,listOrdered:u(Oo,h),listUnordered:u(Oo),paragraph:u(Kd),reference:S,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:u(xo),strong:u(Qd),thematicBreak:u(Jd)},exit:{atxHeading:l(),atxHeadingSequence:v,autolink:l(),autolinkEmail:tn,autolinkProtocol:Ct,blockQuote:l(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:xt,characterReferenceMarkerNumeric:xt,characterReferenceValue:ye,characterReference:Mn,codeFenced:l(D),codeFencedFence:g,codeFencedFenceInfo:d,codeFencedFenceMeta:E,codeFlowValue:N,codeIndented:l(A),codeText:l(W),codeTextData:N,data:N,definition:l(),definitionDestinationString:F,definitionLabelString:y,definitionTitleString:C,emphasis:l(),hardBreakEscape:l(M),hardBreakTrailing:l(M),htmlFlow:l(j),htmlFlowData:N,htmlText:l(Y),htmlTextData:N,image:l(re),label:Me,labelText:ge,lineEnding:$,link:l(Z),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Qe,resourceDestinationString:_,resourceTitleString:be,resource:Ke,setextHeading:l(x),setextHeadingLineSequence:L,setextHeadingText:B,strong:l(),thematicBreak:l()}};P0(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(R){let q={type:"root",children:[]};const G={stack:[q],tokenStack:[],config:t,enter:o,exit:c,buffer:a,resume:f,data:n},te=[];let ie=-1;for(;++ie<R.length;)if(R[ie][1].type==="listOrdered"||R[ie][1].type==="listUnordered")if(R[ie][0]==="enter")te.push(ie);else{const Xe=te.pop();ie=i(R,Xe,ie)}for(ie=-1;++ie<R.length;){const Xe=t[R[ie][0]];R0.call(Xe,R[ie][1].type)&&Xe[R[ie][1].type].call(Object.assign({sliceSerialize:R[ie][2].sliceSerialize},G),R[ie][1])}if(G.tokenStack.length>0){const Xe=G.tokenStack[G.tokenStack.length-1];(Xe[1]||M0).call(G,void 0,Xe[0])}for(q.position={start:wt(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:wt(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},ie=-1;++ie<t.transforms.length;)q=t.transforms[ie](q)||q;return q}function i(R,q,G){let te=q-1,ie=-1,Xe=!1,It,ht,Un,Hn;for(;++te<=G;){const Ue=R[te];switch(Ue[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ue[0]==="enter"?ie++:ie--,Hn=void 0;break}case"lineEndingBlank":{Ue[0]==="enter"&&(It&&!Hn&&!ie&&!Un&&(Un=te),Hn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Hn=void 0}if(!ie&&Ue[0]==="enter"&&Ue[1].type==="listItemPrefix"||ie===-1&&Ue[0]==="exit"&&(Ue[1].type==="listUnordered"||Ue[1].type==="listOrdered")){if(It){let rn=te;for(ht=void 0;rn--;){const ft=R[rn];if(ft[1].type==="lineEnding"||ft[1].type==="lineEndingBlank"){if(ft[0]==="exit")continue;ht&&(R[ht][1].type="lineEndingBlank",Xe=!0),ft[1].type="lineEnding",ht=rn}else if(!(ft[1].type==="linePrefix"||ft[1].type==="blockQuotePrefix"||ft[1].type==="blockQuotePrefixWhitespace"||ft[1].type==="blockQuoteMarker"||ft[1].type==="listItemIndent"))break}Un&&(!ht||Un<ht)&&(It._spread=!0),It.end=Object.assign({},ht?R[ht][1].start:Ue[1].end),R.splice(ht||te,0,["exit",It,Ue[2]]),te++,G++}if(Ue[1].type==="listItemPrefix"){const rn={type:"listItem",_spread:!1,start:Object.assign({},Ue[1].start),end:void 0};It=rn,R.splice(te,0,["enter",rn,Ue[2]]),te++,G++,Un=void 0,Hn=!0}}}return R[q][1]._spread=Xe,G}function u(R,q){return G;function G(te){o.call(this,R(te),te),q&&q.call(this,te)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(R,q,G){this.stack[this.stack.length-1].children.push(R),this.stack.push(R),this.tokenStack.push([q,G||void 0]),R.position={start:wt(q.start),end:void 0}}function l(R){return q;function q(G){R&&R.call(this,G),c.call(this,G)}}function c(R,q){const G=this.stack.pop(),te=this.tokenStack.pop();if(te)te[0].type!==R.type&&(q?q.call(this,R,te[0]):(te[1]||M0).call(this,R,te[0]));else throw new Error("Cannot close `"+R.type+"` ("+fr({start:R.start,end:R.end})+"): it\u2019s not open");G.position.end=wt(R.end)}function f(){return Pa(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function p(R){if(this.data.expectingFirstListItemValue){const q=this.stack[this.stack.length-2];q.start=Number.parseInt(this.sliceSerialize(R),10),this.data.expectingFirstListItemValue=void 0}}function d(){const R=this.resume(),q=this.stack[this.stack.length-1];q.lang=R}function E(){const R=this.resume(),q=this.stack[this.stack.length-1];q.meta=R}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function D(){const R=this.resume(),q=this.stack[this.stack.length-1];q.value=R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const R=this.resume(),q=this.stack[this.stack.length-1];q.value=R.replace(/(\r?\n|\r)$/g,"")}function y(R){const q=this.resume(),G=this.stack[this.stack.length-1];G.label=q,G.identifier=tt(this.sliceSerialize(R)).toLowerCase()}function C(){const R=this.resume(),q=this.stack[this.stack.length-1];q.title=R}function F(){const R=this.resume(),q=this.stack[this.stack.length-1];q.url=R}function v(R){const q=this.stack[this.stack.length-1];if(!q.depth){const G=this.sliceSerialize(R).length;q.depth=G}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function L(R){const q=this.stack[this.stack.length-1];q.depth=this.sliceSerialize(R).codePointAt(0)===61?1:2}function x(){this.data.setextHeadingSlurpLineEnding=void 0}function w(R){const G=this.stack[this.stack.length-1].children;let te=G[G.length-1];(!te||te.type!=="text")&&(te=Xd(),te.position={start:wt(R.start),end:void 0},G.push(te)),this.stack.push(te)}function N(R){const q=this.stack.pop();q.value+=this.sliceSerialize(R),q.position.end=wt(R.end)}function $(R){const q=this.stack[this.stack.length-1];if(this.data.atHardBreak){const G=q.children[q.children.length-1];G.position.end=wt(R.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(q.type)&&(w.call(this,R),N.call(this,R))}function M(){this.data.atHardBreak=!0}function j(){const R=this.resume(),q=this.stack[this.stack.length-1];q.value=R}function Y(){const R=this.resume(),q=this.stack[this.stack.length-1];q.value=R}function W(){const R=this.resume(),q=this.stack[this.stack.length-1];q.value=R}function Z(){const R=this.stack[this.stack.length-1];if(this.data.inReference){const q=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=q,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function re(){const R=this.stack[this.stack.length-1];if(this.data.inReference){const q=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=q,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function ge(R){const q=this.sliceSerialize(R),G=this.stack[this.stack.length-2];G.label=PN(q),G.identifier=tt(q).toLowerCase()}function Me(){const R=this.stack[this.stack.length-1],q=this.resume(),G=this.stack[this.stack.length-1];if(this.data.inReference=!0,G.type==="link"){const te=R.children;G.children=te}else G.alt=q}function _(){const R=this.resume(),q=this.stack[this.stack.length-1];q.url=R}function be(){const R=this.resume(),q=this.stack[this.stack.length-1];q.title=R}function Ke(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function Qe(R){const q=this.resume(),G=this.stack[this.stack.length-1];G.label=q,G.identifier=tt(this.sliceSerialize(R)).toLowerCase(),this.data.referenceType="full"}function xt(R){this.data.characterReferenceType=R.type}function ye(R){const q=this.sliceSerialize(R),G=this.data.characterReferenceType;let te;G?(te=s0(q,G==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):te=Ua(q);const ie=this.stack[this.stack.length-1];ie.value+=te}function Mn(R){const q=this.stack.pop();q.position.end=wt(R.end)}function Ct(R){N.call(this,R);const q=this.stack[this.stack.length-1];q.url=this.sliceSerialize(R)}function tn(R){N.call(this,R);const q=this.stack[this.stack.length-1];q.url="mailto:"+this.sliceSerialize(R)}function nn(){return{type:"blockquote",children:[]}}function Rr(){return{type:"code",lang:null,meta:null,value:""}}function jd(){return{type:"inlineCode",value:""}}function Yd(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Gd(){return{type:"emphasis",children:[]}}function xo(){return{type:"heading",depth:0,children:[]}}function Io(){return{type:"break"}}function vo(){return{type:"html",value:""}}function Vd(){return{type:"image",title:null,url:"",alt:null}}function Lo(){return{type:"link",title:null,url:"",children:[]}}function Oo(R){return{type:"list",ordered:R.type==="listOrdered",start:null,spread:R._spread,children:[]}}function Wd(R){return{type:"listItem",spread:R._spread,checked:null,children:[]}}function Kd(){return{type:"paragraph",children:[]}}function Qd(){return{type:"strong",children:[]}}function Xd(){return{type:"text",value:""}}function Jd(){return{type:"thematicBreak"}}}s(Mv,"compiler");function wt(e){return{line:e.line,column:e.column,offset:e.offset}}s(wt,"point");function P0(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?P0(e,r):Uv(e,r)}}s(P0,"configure");function Uv(e,t){let n;for(n in t)if(R0.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}s(Uv,"extension");function M0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+fr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+fr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+fr({start:t.start,end:t.end})+") is still open")}s(M0,"defaultOnError");function Hv(e){const t=this;t.parser=n;function n(r){return Pv(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}s(n,"parser")}s(Hv,"remarkParse");const Ka=Symbol.for("yaml.alias"),Qa=Symbol.for("yaml.document"),Ft=Symbol.for("yaml.map"),U0=Symbol.for("yaml.pair"),ot=Symbol.for("yaml.scalar"),kn=Symbol.for("yaml.seq"),Ye=Symbol.for("yaml.node.type"),Kt=s(e=>!!e&&typeof e=="object"&&e[Ye]===Ka,"isAlias"),br=s(e=>!!e&&typeof e=="object"&&e[Ye]===Qa,"isDocument"),kr=s(e=>!!e&&typeof e=="object"&&e[Ye]===Ft,"isMap"),he=s(e=>!!e&&typeof e=="object"&&e[Ye]===U0,"isPair"),oe=s(e=>!!e&&typeof e=="object"&&e[Ye]===ot,"isScalar"),_r=s(e=>!!e&&typeof e=="object"&&e[Ye]===kn,"isSeq");function fe(e){if(e&&typeof e=="object")switch(e[Ye]){case Ft:case kn:return!0}return!1}s(fe,"isCollection");function me(e){if(e&&typeof e=="object")switch(e[Ye]){case Ka:case Ft:case ot:case kn:return!0}return!1}s(me,"isNode");const H0=s(e=>(oe(e)||fe(e))&&!!e.anchor,"hasAnchor"),Qt=Symbol("break visit"),$v=Symbol("skip children"),Br=Symbol("remove node");function _n(e,t){const n=qv(t);br(e)?Bn(null,e.contents,n,Object.freeze([e]))===Br&&(e.contents=null):Bn(null,e,n,Object.freeze([]))}s(_n,"visit"),_n.BREAK=Qt,_n.SKIP=$v,_n.REMOVE=Br;function Bn(e,t,n,r){const i=zv(e,t,n,r);if(me(i)||he(i))return jv(e,r,i),Bn(e,i,n,r);if(typeof i!="symbol"){if(fe(t)){r=Object.freeze(r.concat(t));for(let u=0;u<t.items.length;++u){const a=Bn(u,t.items[u],n,r);if(typeof a=="number")u=a-1;else{if(a===Qt)return Qt;a===Br&&(t.items.splice(u,1),u-=1)}}}else if(he(t)){r=Object.freeze(r.concat(t));const u=Bn("key",t.key,n,r);if(u===Qt)return Qt;u===Br&&(t.key=null);const a=Bn("value",t.value,n,r);if(a===Qt)return Qt;a===Br&&(t.value=null)}}return i}s(Bn,"visit_");function qv(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}s(qv,"initVisitor");function zv(e,t,n,r){if(typeof n=="function")return n(e,t,r);if(kr(t))return n.Map?.(e,t,r);if(_r(t))return n.Seq?.(e,t,r);if(he(t))return n.Pair?.(e,t,r);if(oe(t))return n.Scalar?.(e,t,r);if(Kt(t))return n.Alias?.(e,t,r)}s(zv,"callVisitor");function jv(e,t,n){const r=t[t.length-1];if(fe(r))r.items[e]=n;else if(he(r))e==="key"?r.key=n:r.value=n;else if(br(r))r.contents=n;else{const i=Kt(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}s(jv,"replaceNode");const Yv={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Gv=s(e=>e.replace(/[!,[\]{}]/g,t=>Yv[t]),"escapeTagName");class Ne{static{s(this,"Directives")}constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Ne.defaultYaml,t),this.tags=Object.assign({},Ne.defaultTags,n)}clone(){const t=new Ne(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new Ne(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Ne.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Ne.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:Ne.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Ne.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[u,a]=r;return this.tags[u]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[u]=r;if(u==="1.1"||u==="1.2")return this.yaml.version=u,!0;{const a=/^\d+\.\d+$/.test(u);return n(6,`Unsupported YAML version ${u}`,a),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const a=t.slice(2,-1);return a==="!"||a==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),a)}const[,r,i]=t.match(/^(.*!)([^!]*)$/s);i||n(`The ${t} tag has no suffix`);const u=this.tags[r];if(u)try{return u+decodeURIComponent(i)}catch(a){return n(String(a)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+Gv(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let i;if(t&&r.length>0&&me(t.contents)){const u={};_n(t.contents,(a,o)=>{me(o)&&o.tag&&(u[o.tag]=!0)}),i=Object.keys(u)}else i=[];for(const[u,a]of r)u==="!!"&&a==="tag:yaml.org,2002:"||(!t||i.some(o=>o.startsWith(a)))&&n.push(`%TAG ${u} ${a}`);return n.join(`
|
|
825
|
-
`)}}Ne.defaultYaml={explicit:!1,version:"1.2"},Ne.defaultTags={"!!":"tag:yaml.org,2002:"};function $0(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}s($0,"anchorIsValid");function q0(e){const t=new Set;return _n(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}s(q0,"anchorNames");function z0(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}s(z0,"findNewAnchor");function Vv(e,t){const n=[],r=new Map;let i=null;return{onAnchor:s(u=>{n.push(u),i??(i=q0(e));const a=z0(t,i);return i.add(a),a},"onAnchor"),setAnchors:s(()=>{for(const u of n){const a=r.get(u);if(typeof a=="object"&&a.anchor&&(oe(a.node)||fe(a.node)))a.node.anchor=a.anchor;else{const o=new Error("Failed to resolve repeated object (this should not happen)");throw o.source=u,o}}},"setAnchors"),sourceObjects:r}}s(Vv,"createNodeAnchors");function Sn(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,u=r.length;i<u;++i){const a=r[i],o=Sn(e,r,String(i),a);o===void 0?delete r[i]:o!==a&&(r[i]=o)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const u=r.get(i),a=Sn(e,r,i,u);a===void 0?r.delete(i):a!==u&&r.set(i,a)}else if(r instanceof Set)for(const i of Array.from(r)){const u=Sn(e,r,i,i);u===void 0?r.delete(i):u!==i&&(r.delete(i),r.add(u))}else for(const[i,u]of Object.entries(r)){const a=Sn(e,r,i,u);a===void 0?delete r[i]:a!==u&&(r[i]=a)}return e.call(t,n,r)}s(Sn,"applyReviver");function Ge(e,t,n){if(Array.isArray(e))return e.map((r,i)=>Ge(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!H0(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=u=>{r.res=u,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!n?.keep?Number(e):e}s(Ge,"toJS");class Xa{static{s(this,"NodeBase")}constructor(t){Object.defineProperty(this,Ye,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:u}={}){if(!br(t))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},o=Ge(this,"",a);if(typeof i=="function")for(const{count:l,res:c}of a.anchors.values())i(c,l);return typeof u=="function"?Sn(u,{"":o},"",o):o}}class Ja extends Xa{static{s(this,"Alias")}constructor(t){super(Ka),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t,n){let r;n?.aliasResolveCache?r=n.aliasResolveCache:(r=[],_n(t,{Node:s((u,a)=>{(Kt(a)||H0(a))&&r.push(a)},"Node")}),n&&(n.aliasResolveCache=r));let i;for(const u of r){if(u===this)break;u.anchor===this.source&&(i=u)}return i}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:u}=n,a=this.resolve(i,n);if(!a){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let o=r.get(a);if(o||(Ge(a,null,n),o=r.get(a)),o?.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(u>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=Ui(i,a,r)),o.count*o.aliasCount>u)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return o.res}toString(t,n,r){const i=`*${this.source}`;if(t){if($0(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(u)}if(t.implicitKey)return`${i} `}return i}}function Ui(e,t,n){if(Kt(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(fe(t)){let r=0;for(const i of t.items){const u=Ui(e,i,n);u>r&&(r=u)}return r}else if(he(t)){const r=Ui(e,t.key,n),i=Ui(e,t.value,n);return Math.max(r,i)}return 1}s(Ui,"getAliasCount");const j0=s(e=>!e||typeof e!="function"&&typeof e!="object","isScalarValue");class V extends Xa{static{s(this,"Scalar")}constructor(t){super(ot),this.value=t}toJSON(t,n){return n?.keep?this.value:Ge(this.value,t,n)}toString(){return String(this.value)}}V.BLOCK_FOLDED="BLOCK_FOLDED",V.BLOCK_LITERAL="BLOCK_LITERAL",V.PLAIN="PLAIN",V.QUOTE_DOUBLE="QUOTE_DOUBLE",V.QUOTE_SINGLE="QUOTE_SINGLE";const Wv="tag:yaml.org,2002:";function Kv(e,t,n){if(t){const r=n.filter(u=>u.tag===t),i=r.find(u=>!u.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>r.identify?.(e)&&!r.format)}s(Kv,"findTagObject");function Sr(e,t,n){if(br(e)&&(e=e.contents),me(e))return e;if(he(e)){const h=n.schema[Ft].createNode?.(n.schema,null,n);return h.items.push(e),h}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:u,schema:a,sourceObjects:o}=n;let l;if(r&&e&&typeof e=="object"){if(l=o.get(e),l)return l.anchor??(l.anchor=i(e)),new Ja(l.anchor);l={anchor:null,node:null},o.set(e,l)}t?.startsWith("!!")&&(t=Wv+t.slice(2));let c=Kv(e,t,a.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const h=new V(e);return l&&(l.node=h),h}c=e instanceof Map?a[Ft]:Symbol.iterator in Object(e)?a[kn]:a[Ft]}u&&(u(c),delete n.onTagObj);const f=c?.createNode?c.createNode(n.schema,e,n):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(n.schema,e,n):new V(e);return t?f.tag=t:c.default||(f.tag=c.tag),l&&(l.node=f),f}s(Sr,"createNode");function Hi(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const u=t[i];if(typeof u=="number"&&Number.isInteger(u)&&u>=0){const a=[];a[u]=r,r=a}else r=new Map([[u,r]])}return Sr(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:s(()=>{throw new Error("This should not happen, please report a bug.")},"onAnchor"),schema:e,sourceObjects:new Map})}s(Hi,"collectionFromPath");const wr=s(e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done,"isEmptyPath");class Y0 extends Xa{static{s(this,"Collection")}constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>me(r)||he(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(wr(t))this.add(n);else{const[r,...i]=t,u=this.get(r,!0);if(fe(u))u.addIn(i,n);else if(u===void 0&&this.schema)this.set(r,Hi(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(fe(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,u=this.get(r,!0);return i.length===0?!n&&oe(u)?u.value:u:fe(u)?u.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!he(n))return!1;const r=n.value;return r==null||t&&oe(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return fe(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const u=this.get(r,!0);if(fe(u))u.setIn(i,n);else if(u===void 0&&this.schema)this.set(r,Hi(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}const Qv=s(e=>e.replace(/^(?!$)(?: $)?/gm,"#"),"stringifyComment");function At(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}s(At,"indentComment");const Xt=s((e,t,n)=>e.endsWith(`
|
|
826
|
-
`)?At(n,t):n.includes(`
|
|
827
|
-
`)?`
|
|
828
|
-
`+At(n,t):(e.endsWith(" ")?"":" ")+n,"lineComment"),G0="flow",Za="block",$i="quoted";function qi(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:u=20,onFold:a,onOverflow:o}={}){if(!i||i<0)return e;i<u&&(u=0);const l=Math.max(1+u,1+i-t.length);if(e.length<=l)return e;const c=[],f={};let h=i-t.length;typeof r=="number"&&(r>i-Math.max(2,u)?c.push(0):h=i-r);let p,d,E=!1,g=-1,D=-1,A=-1;n===Za&&(g=V0(e,g,t.length),g!==-1&&(h=g+l));for(let C;C=e[g+=1];){if(n===$i&&C==="\\"){switch(D=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}A=g}if(C===`
|
|
829
|
-
`)n===Za&&(g=V0(e,g,t.length)),h=g+t.length+l,p=void 0;else{if(C===" "&&d&&d!==" "&&d!==`
|
|
830
|
-
`&&d!==" "){const F=e[g+1];F&&F!==" "&&F!==`
|
|
831
|
-
`&&F!==" "&&(p=g)}if(g>=h)if(p)c.push(p),h=p+l,p=void 0;else if(n===$i){for(;d===" "||d===" ";)d=C,C=e[g+=1],E=!0;const F=g>A+1?g-2:D-1;if(f[F])return e;c.push(F),f[F]=!0,h=F+l,p=void 0}else E=!0}d=C}if(E&&o&&o(),c.length===0)return e;a&&a();let y=e.slice(0,c[0]);for(let C=0;C<c.length;++C){const F=c[C],v=c[C+1]||e.length;F===0?y=`
|
|
832
|
-
${t}${e.slice(0,v)}`:(n===$i&&f[F]&&(y+=`${e[F]}\\`),y+=`
|
|
833
|
-
${t}${e.slice(F+1,v)}`)}return y}s(qi,"foldFlowLines");function V0(e,t,n){let r=t,i=t+1,u=e[i];for(;u===" "||u===" ";)if(t<i+n)u=e[++t];else{do u=e[++t];while(u&&u!==`
|
|
834
|
-
`);r=t,i=t+1,u=e[i]}return r}s(V0,"consumeMoreIndentedLines");const zi=s((e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),"getFoldOptions"),ji=s(e=>/^(%|---|\.\.\.)/m.test(e),"containsDocumentMarker");function Xv(e,t,n){if(!t||t<0)return!1;const r=t-n,i=e.length;if(i<=r)return!1;for(let u=0,a=0;u<i;++u)if(e[u]===`
|
|
835
|
-
`){if(u-a>r)return!0;if(a=u+1,i-a<=r)return!1}return!0}s(Xv,"lineLengthOverLimit");function Fr(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,u=t.indent||(ji(e)?" ":"");let a="",o=0;for(let l=0,c=n[l];c;c=n[++l])if(c===" "&&n[l+1]==="\\"&&n[l+2]==="n"&&(a+=n.slice(o,l)+"\\ ",l+=1,o=l,c="\\"),c==="\\")switch(n[l+1]){case"u":{a+=n.slice(o,l);const f=n.substr(l+2,4);switch(f){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:f.substr(0,2)==="00"?a+="\\x"+f.substr(2):a+=n.substr(l,6)}l+=5,o=l+1}break;case"n":if(r||n[l+2]==='"'||n.length<i)l+=1;else{for(a+=n.slice(o,l)+`
|
|
836
|
-
|
|
837
|
-
`;n[l+2]==="\\"&&n[l+3]==="n"&&n[l+4]!=='"';)a+=`
|
|
838
|
-
`,l+=2;a+=u,n[l+2]===" "&&(a+="\\"),l+=1,o=l+1}break;default:l+=1}return a=o?a+n.slice(o):n,r?a:qi(a,u,$i,zi(t,!1))}s(Fr,"doubleQuotedString");function eo(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
|
|
839
|
-
`)||/[ \t]\n|\n[ \t]/.test(e))return Fr(e,t);const n=t.indent||(ji(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
840
|
-
${n}`)+"'";return t.implicitKey?r:qi(r,n,G0,zi(t,!1))}s(eo,"singleQuotedString");function wn(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Fr;else{const i=e.includes('"'),u=e.includes("'");i&&!u?r=eo:u&&!i?r=Fr:r=n?eo:Fr}return r(e,t)}s(wn,"quotedString");let to;try{to=new RegExp(`(^|(?<!
|
|
841
|
-
))
|
|
842
|
-
+(?!
|
|
843
|
-
|$)`,"g")}catch{to=/\n+(?!\n|$)/g}function Yi({comment:e,type:t,value:n},r,i,u){const{blockQuote:a,commentString:o,lineWidth:l}=r.options;if(!a||/\n[\t ]+$/.test(n))return wn(n,r);const c=r.indent||(r.forceBlockIndent||ji(n)?" ":""),f=a==="literal"?!0:a==="folded"||t===V.BLOCK_FOLDED?!1:t===V.BLOCK_LITERAL?!0:!Xv(n,l,c.length);if(!n)return f?`|
|
|
844
|
-
`:`>
|
|
845
|
-
`;let h,p;for(p=n.length;p>0;--p){const v=n[p-1];if(v!==`
|
|
846
|
-
`&&v!==" "&&v!==" ")break}let d=n.substring(p);const E=d.indexOf(`
|
|
847
|
-
`);E===-1?h="-":n===d||E!==d.length-1?(h="+",u&&u()):h="",d&&(n=n.slice(0,-d.length),d[d.length-1]===`
|
|
848
|
-
`&&(d=d.slice(0,-1)),d=d.replace(to,`$&${c}`));let g=!1,D,A=-1;for(D=0;D<n.length;++D){const v=n[D];if(v===" ")g=!0;else if(v===`
|
|
849
|
-
`)A=D;else break}let y=n.substring(0,A<D?A+1:D);y&&(n=n.substring(y.length),y=y.replace(/\n+/g,`$&${c}`));let F=(g?c?"2":"1":"")+h;if(e&&(F+=" "+o(e.replace(/ ?[\r\n]+/g," ")),i&&i()),!f){const v=n.replace(/\n+/g,`
|
|
850
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let B=!1;const L=zi(r,!0);a!=="folded"&&t!==V.BLOCK_FOLDED&&(L.onOverflow=()=>{B=!0});const x=qi(`${y}${v}${d}`,c,Za,L);if(!B)return`>${F}
|
|
851
|
-
${c}${x}`}return n=n.replace(/\n+/g,`$&${c}`),`|${F}
|
|
852
|
-
${c}${y}${n}${d}`}s(Yi,"blockString");function Jv(e,t,n,r){const{type:i,value:u}=e,{actualString:a,implicitKey:o,indent:l,indentStep:c,inFlow:f}=t;if(o&&u.includes(`
|
|
853
|
-
`)||f&&/[[\]{},]/.test(u))return wn(u,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(u))return o||f||!u.includes(`
|
|
854
|
-
`)?wn(u,t):Yi(e,t,n,r);if(!o&&!f&&i!==V.PLAIN&&u.includes(`
|
|
855
|
-
`))return Yi(e,t,n,r);if(ji(u)){if(l==="")return t.forceBlockIndent=!0,Yi(e,t,n,r);if(o&&l===c)return wn(u,t)}const h=u.replace(/\n+/g,`$&
|
|
856
|
-
${l}`);if(a){const p=s(g=>g.default&&g.tag!=="tag:yaml.org,2002:str"&&g.test?.test(h),"test"),{compat:d,tags:E}=t.doc.schema;if(E.some(p)||d?.some(p))return wn(u,t)}return o?h:qi(h,l,G0,zi(t,!1))}s(Jv,"plainString");function no(e,t,n,r){const{implicitKey:i,inFlow:u}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:o}=e;o!==V.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(o=V.QUOTE_DOUBLE);const l=s(f=>{switch(f){case V.BLOCK_FOLDED:case V.BLOCK_LITERAL:return i||u?wn(a.value,t):Yi(a,t,n,r);case V.QUOTE_DOUBLE:return Fr(a.value,t);case V.QUOTE_SINGLE:return eo(a.value,t);case V.PLAIN:return Jv(a,t,n,r);default:return null}},"_stringify");let c=l(o);if(c===null){const{defaultKeyType:f,defaultStringType:h}=t.options,p=i&&f||h;if(c=l(p),c===null)throw new Error(`Unsupported default string type ${p}`)}return c}s(no,"stringifyString");function W0(e,t){const n=Object.assign({blockQuote:!0,commentString:Qv,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}s(W0,"createStringifyContext");function Zv(e,t){if(t.tag){const i=e.filter(u=>u.tag===t.tag);if(i.length>0)return i.find(u=>u.format===t.format)??i[0]}let n,r;if(oe(t)){r=t.value;let i=e.filter(u=>u.identify?.(r));if(i.length>1){const u=i.filter(a=>a.test);u.length>0&&(i=u)}n=i.find(u=>u.format===t.format)??i.find(u=>!u.format)}else r=t,n=e.find(i=>i.nodeClass&&r instanceof i.nodeClass);if(!n){const i=r?.constructor?.name??(r===null?"null":typeof r);throw new Error(`Tag not resolved for ${i} value`)}return n}s(Zv,"getTagObject");function e5(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],u=(oe(e)||fe(e))&&e.anchor;u&&$0(u)&&(n.add(u),i.push(`&${u}`));const a=e.tag??(t.default?null:t.tag);return a&&i.push(r.directives.tagString(a)),i.join(" ")}s(e5,"stringifyProps");function Fn(e,t,n,r){if(he(e))return e.toString(t,n,r);if(Kt(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i;const u=me(e)?e:t.doc.createNode(e,{onTagObj:s(l=>i=l,"onTagObj")});i??(i=Zv(t.doc.schema.tags,u));const a=e5(u,i,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);const o=typeof i.stringify=="function"?i.stringify(u,t,n,r):oe(u)?no(u,t,n,r):u.toString(t,n,r);return a?oe(u)||o[0]==="{"||o[0]==="["?`${a} ${o}`:`${a}
|
|
857
|
-
${t.indent}${o}`:o}s(Fn,"stringify$1");function t5({key:e,value:t},n,r,i){const{allNullValues:u,doc:a,indent:o,indentStep:l,options:{commentString:c,indentSeq:f,simpleKeys:h}}=n;let p=me(e)&&e.comment||null;if(h){if(p)throw new Error("With simple keys, key nodes cannot have comments");if(fe(e)||!me(e)&&typeof e=="object"){const L="With simple keys, collection cannot be used as a key value";throw new Error(L)}}let d=!h&&(!e||p&&t==null&&!n.inFlow||fe(e)||(oe(e)?e.type===V.BLOCK_FOLDED||e.type===V.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!d&&(h||!u),indent:o+l});let E=!1,g=!1,D=Fn(e,n,()=>E=!0,()=>g=!0);if(!d&&!n.inFlow&&D.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");d=!0}if(n.inFlow){if(u||t==null)return E&&r&&r(),D===""?"?":d?`? ${D}`:D}else if(u&&!h||t==null&&d)return D=`? ${D}`,p&&!E?D+=Xt(D,n.indent,c(p)):g&&i&&i(),D;E&&(p=null),d?(p&&(D+=Xt(D,n.indent,c(p))),D=`? ${D}
|
|
858
|
-
${o}:`):(D=`${D}:`,p&&(D+=Xt(D,n.indent,c(p))));let A,y,C;me(t)?(A=!!t.spaceBefore,y=t.commentBefore,C=t.comment):(A=!1,y=null,C=null,t&&typeof t=="object"&&(t=a.createNode(t))),n.implicitKey=!1,!d&&!p&&oe(t)&&(n.indentAtStart=D.length+1),g=!1,!f&&l.length>=2&&!n.inFlow&&!d&&_r(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let F=!1;const v=Fn(t,n,()=>F=!0,()=>g=!0);let B=" ";if(p||A||y){if(B=A?`
|
|
859
|
-
`:"",y){const L=c(y);B+=`
|
|
860
|
-
${At(L,n.indent)}`}v===""&&!n.inFlow?B===`
|
|
861
|
-
`&&C&&(B=`
|
|
862
|
-
|
|
863
|
-
`):B+=`
|
|
864
|
-
${n.indent}`}else if(!d&&fe(t)){const L=v[0],x=v.indexOf(`
|
|
865
|
-
`),w=x!==-1,N=n.inFlow??t.flow??t.items.length===0;if(w||!N){let $=!1;if(w&&(L==="&"||L==="!")){let M=v.indexOf(" ");L==="&"&&M!==-1&&M<x&&v[M+1]==="!"&&(M=v.indexOf(" ",M+1)),(M===-1||x<M)&&($=!0)}$||(B=`
|
|
866
|
-
${n.indent}`)}}else(v===""||v[0]===`
|
|
867
|
-
`)&&(B="");return D+=B+v,n.inFlow?F&&r&&r():C&&!F?D+=Xt(D,n.indent,c(C)):g&&i&&i(),D}s(t5,"stringifyPair");function K0(e,t){(e==="debug"||e==="warn")&&console.warn(t)}s(K0,"warn");const Gi="<<",Dt={identify:s(e=>e===Gi||typeof e=="symbol"&&e.description===Gi,"identify"),default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:s(()=>Object.assign(new V(Symbol(Gi)),{addToJSMap:Q0}),"resolve"),stringify:s(()=>Gi,"stringify")},n5=s((e,t)=>(Dt.identify(t)||oe(t)&&(!t.type||t.type===V.PLAIN)&&Dt.identify(t.value))&&e?.doc.schema.tags.some(n=>n.tag===Dt.tag&&n.default),"isMergeKey");function Q0(e,t,n){if(n=e&&Kt(n)?n.resolve(e.doc):n,_r(n))for(const r of n.items)ro(e,t,r);else if(Array.isArray(n))for(const r of n)ro(e,t,r);else ro(e,t,n)}s(Q0,"addMergeToJSMap");function ro(e,t,n){const r=e&&Kt(n)?n.resolve(e.doc):n;if(!kr(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[u,a]of i)t instanceof Map?t.has(u)||t.set(u,a):t instanceof Set?t.add(u):Object.prototype.hasOwnProperty.call(t,u)||Object.defineProperty(t,u,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}s(ro,"mergeValue");function X0(e,t,{key:n,value:r}){if(me(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(n5(e,n))Q0(e,t,r);else{const i=Ge(n,"",e);if(t instanceof Map)t.set(i,Ge(r,i,e));else if(t instanceof Set)t.add(i);else{const u=r5(n,i,e),a=Ge(r,u,e);u in t?Object.defineProperty(t,u,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[u]=a}}return t}s(X0,"addPairToJSMap");function r5(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(me(e)&&n?.doc){const r=W0(n.doc,{});r.anchors=new Set;for(const u of n.anchors.keys())r.anchors.add(u.anchor);r.inFlow=!0,r.inStringifyKey=!0;const i=e.toString(r);if(!n.mapKeyWarned){let u=JSON.stringify(i);u.length>40&&(u=u.substring(0,36)+'..."'),K0(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${u}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}s(r5,"stringifyKey");function io(e,t,n){const r=Sr(e,void 0,n),i=Sr(t,void 0,n);return new Fe(r,i)}s(io,"createPair");class Fe{static{s(this,"Pair")}constructor(t,n=null){Object.defineProperty(this,Ye,{value:U0}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return me(n)&&(n=n.clone(t)),me(r)&&(r=r.clone(t)),new Fe(n,r)}toJSON(t,n){const r=n?.mapAsMap?new Map:{};return X0(n,r,this)}toString(t,n,r){return t?.doc?t5(this,t,n,r):JSON.stringify(this)}}function J0(e,t,n){return(t.inFlow??e.flow?s5:i5)(e,t,n)}s(J0,"stringifyCollection");function i5({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:u,onChompKeep:a,onComment:o}){const{indent:l,options:{commentString:c}}=n,f=Object.assign({},n,{indent:u,type:null});let h=!1;const p=[];for(let E=0;E<t.length;++E){const g=t[E];let D=null;if(me(g))!h&&g.spaceBefore&&p.push(""),Vi(n,p,g.commentBefore,h),g.comment&&(D=g.comment);else if(he(g)){const y=me(g.key)?g.key:null;y&&(!h&&y.spaceBefore&&p.push(""),Vi(n,p,y.commentBefore,h))}h=!1;let A=Fn(g,f,()=>D=null,()=>h=!0);D&&(A+=Xt(A,u,c(D))),h&&D&&(h=!1),p.push(r+A)}let d;if(p.length===0)d=i.start+i.end;else{d=p[0];for(let E=1;E<p.length;++E){const g=p[E];d+=g?`
|
|
868
|
-
${l}${g}`:`
|
|
869
|
-
`}}return e?(d+=`
|
|
870
|
-
`+At(c(e),l),o&&o()):h&&a&&a(),d}s(i5,"stringifyBlockCollection");function s5({items:e},t,{flowChars:n,itemIndent:r}){const{indent:i,indentStep:u,flowCollectionPadding:a,options:{commentString:o}}=t;r+=u;const l=Object.assign({},t,{indent:r,inFlow:!0,type:null});let c=!1,f=0;const h=[];for(let E=0;E<e.length;++E){const g=e[E];let D=null;if(me(g))g.spaceBefore&&h.push(""),Vi(t,h,g.commentBefore,!1),g.comment&&(D=g.comment);else if(he(g)){const y=me(g.key)?g.key:null;y&&(y.spaceBefore&&h.push(""),Vi(t,h,y.commentBefore,!1),y.comment&&(c=!0));const C=me(g.value)?g.value:null;C?(C.comment&&(D=C.comment),C.commentBefore&&(c=!0)):g.value==null&&y?.comment&&(D=y.comment)}D&&(c=!0);let A=Fn(g,l,()=>D=null);E<e.length-1&&(A+=","),D&&(A+=Xt(A,r,o(D))),!c&&(h.length>f||A.includes(`
|
|
871
|
-
`))&&(c=!0),h.push(A),f=h.length}const{start:p,end:d}=n;if(h.length===0)return p+d;if(!c){const E=h.reduce((g,D)=>g+D.length+2,2);c=t.options.lineWidth>0&&E>t.options.lineWidth}if(c){let E=p;for(const g of h)E+=g?`
|
|
872
|
-
${u}${i}${g}`:`
|
|
873
|
-
`;return`${E}
|
|
874
|
-
${i}${d}`}else return`${p}${a}${h.join(" ")}${a}${d}`}s(s5,"stringifyFlowCollection");function Vi({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const u=At(t(r),e);n.push(u.trimStart())}}s(Vi,"addCommentBefore");function Jt(e,t){const n=oe(t)?t.value:t;for(const r of e)if(he(r)&&(r.key===t||r.key===n||oe(r.key)&&r.key.value===n))return r}s(Jt,"findPair");class Ve extends Y0{static{s(this,"YAMLMap")}static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ft,t),this.items=[]}static from(t,n,r){const{keepUndefined:i,replacer:u}=r,a=new this(t),o=s((l,c)=>{if(typeof u=="function")c=u.call(n,l,c);else if(Array.isArray(u)&&!u.includes(l))return;(c!==void 0||i)&&a.items.push(io(l,c,r))},"add");if(n instanceof Map)for(const[l,c]of n)o(l,c);else if(n&&typeof n=="object")for(const l of Object.keys(n))o(l,n[l]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,n){let r;he(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new Fe(t,t?.value):r=new Fe(t.key,t.value);const i=Jt(this.items,r.key),u=this.schema?.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);oe(i.value)&&j0(r.value)?i.value.value=r.value:i.value=r.value}else if(u){const a=this.items.findIndex(o=>u(r,o)<0);a===-1?this.items.push(r):this.items.splice(a,0,r)}else this.items.push(r)}delete(t){const n=Jt(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const i=Jt(this.items,t)?.value;return(!n&&oe(i)?i.value:i)??void 0}has(t){return!!Jt(this.items,t)}set(t,n){this.add(new Fe(t,n),!0)}toJSON(t,n,r){const i=r?new r:n?.mapAsMap?new Map:{};n?.onCreate&&n.onCreate(i);for(const u of this.items)X0(n,i,u);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(const i of this.items)if(!he(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),J0(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const Nn={collection:"map",default:!0,nodeClass:Ve,tag:"tag:yaml.org,2002:map",resolve(e,t){return kr(e)||t("Expected a mapping for this tag"),e},createNode:s((e,t,n)=>Ve.from(e,t,n),"createNode")};class Zt extends Y0{static{s(this,"YAMLSeq")}static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(kn,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=Wi(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=Wi(t);if(typeof r!="number")return;const i=this.items[r];return!n&&oe(i)?i.value:i}has(t){const n=Wi(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=Wi(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];oe(i)&&j0(n)?i.value=n:this.items[r]=n}toJSON(t,n){const r=[];n?.onCreate&&n.onCreate(r);let i=0;for(const u of this.items)r.push(Ge(u,String(i++),n));return r}toString(t,n,r){return t?J0(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:i}=r,u=new this(t);if(n&&Symbol.iterator in Object(n)){let a=0;for(let o of n){if(typeof i=="function"){const l=n instanceof Set?o:String(a++);o=i.call(n,l,o)}u.items.push(Sr(o,void 0,r))}}return u}}function Wi(e){let t=oe(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}s(Wi,"asItemIndex");const xn={collection:"seq",default:!0,nodeClass:Zt,tag:"tag:yaml.org,2002:seq",resolve(e,t){return _r(e)||t("Expected a sequence for this tag"),e},createNode:s((e,t,n)=>Zt.from(e,t,n),"createNode")},Ki={identify:s(e=>typeof e=="string","identify"),default:!0,tag:"tag:yaml.org,2002:str",resolve:s(e=>e,"resolve"),stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),no(e,t,n,r)}},Qi={identify:s(e=>e==null,"identify"),createNode:s(()=>new V(null),"createNode"),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:s(()=>new V(null),"resolve"),stringify:s(({source:e},t)=>typeof e=="string"&&Qi.test.test(e)?e:t.options.nullStr,"stringify")},so={identify:s(e=>typeof e=="boolean","identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:s(e=>new V(e[0]==="t"||e[0]==="T"),"resolve"),stringify({source:e,value:t},n){if(e&&so.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function nt({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let u=Object.is(r,-0)?"-0":JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(u)){let a=u.indexOf(".");a<0&&(a=u.length,u+=".");let o=t-(u.length-a-1);for(;o-- >0;)u+="0"}return u}s(nt,"stringifyNumber");const Z0={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s(e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,"resolve"),stringify:nt},ed={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:s(e=>parseFloat(e),"resolve"),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():nt(e)}},td={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new V(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:nt},Xi=s(e=>typeof e=="bigint"||Number.isInteger(e),"intIdentify$2"),uo=s((e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n),"intResolve$1");function nd(e,t,n){const{value:r}=e;return Xi(r)&&r>=0?n+r.toString(t):nt(e)}s(nd,"intStringify$1");const rd={identify:s(e=>Xi(e)&&e>=0,"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:s((e,t,n)=>uo(e,2,8,n),"resolve"),stringify:s(e=>nd(e,8,"0o"),"stringify")},id={identify:Xi,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:s((e,t,n)=>uo(e,0,10,n),"resolve"),stringify:nt},sd={identify:s(e=>Xi(e)&&e>=0,"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:s((e,t,n)=>uo(e,2,16,n),"resolve"),stringify:s(e=>nd(e,16,"0x"),"stringify")},u5=[Nn,xn,Ki,Qi,so,rd,id,sd,Z0,ed,td];function ud(e){return typeof e=="bigint"||Number.isInteger(e)}s(ud,"intIdentify$1");const Ji=s(({value:e})=>JSON.stringify(e),"stringifyJSON"),a5=[{identify:s(e=>typeof e=="string","identify"),default:!0,tag:"tag:yaml.org,2002:str",resolve:s(e=>e,"resolve"),stringify:Ji},{identify:s(e=>e==null,"identify"),createNode:s(()=>new V(null),"createNode"),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:s(()=>null,"resolve"),stringify:Ji},{identify:s(e=>typeof e=="boolean","identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:s(e=>e==="true","resolve"),stringify:Ji},{identify:ud,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:s((e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),"resolve"),stringify:s(({value:e})=>ud(e)?e.toString():JSON.stringify(e),"stringify")},{identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:s(e=>parseFloat(e),"resolve"),stringify:Ji}],o5={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},l5=[Nn,xn].concat(a5,o5),ao={identify:s(e=>e instanceof Uint8Array,"identify"),default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,i,u){if(!n)return"";const a=n;let o;if(typeof btoa=="function"){let l="";for(let c=0;c<a.length;++c)l+=String.fromCharCode(a[c]);o=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t??(t=V.BLOCK_LITERAL),t!==V.QUOTE_DOUBLE){const l=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(o.length/l),f=new Array(c);for(let h=0,p=0;h<c;++h,p+=l)f[h]=o.substr(p,l);o=f.join(t===V.BLOCK_LITERAL?`
|
|
875
|
-
`:" ")}return no({comment:e,type:t,value:o},r,i,u)}};function ad(e,t){if(_r(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!he(r)){if(kr(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const i=r.items[0]||new Fe(new V(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
|
|
876
|
-
${i.key.commentBefore}`:r.commentBefore),r.comment){const u=i.value??i.key;u.comment=u.comment?`${r.comment}
|
|
877
|
-
${u.comment}`:r.comment}r=i}e.items[n]=he(r)?r:new Fe(r)}}else t("Expected a sequence for this tag");return e}s(ad,"resolvePairs");function od(e,t,n){const{replacer:r}=n,i=new Zt(e);i.tag="tag:yaml.org,2002:pairs";let u=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof r=="function"&&(a=r.call(t,String(u++),a));let o,l;if(Array.isArray(a))if(a.length===2)o=a[0],l=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){const c=Object.keys(a);if(c.length===1)o=c[0],l=a[o];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else o=a;i.items.push(io(o,l,n))}return i}s(od,"createPairs");const oo={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:ad,createNode:od};class Rn extends Zt{static{s(this,"YAMLOMap")}constructor(){super(),this.add=Ve.prototype.add.bind(this),this.delete=Ve.prototype.delete.bind(this),this.get=Ve.prototype.get.bind(this),this.has=Ve.prototype.has.bind(this),this.set=Ve.prototype.set.bind(this),this.tag=Rn.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n?.onCreate&&n.onCreate(r);for(const i of this.items){let u,a;if(he(i)?(u=Ge(i.key,"",n),a=Ge(i.value,u,n)):u=Ge(i,"",n),r.has(u))throw new Error("Ordered maps must not include duplicate keys");r.set(u,a)}return r}static from(t,n,r){const i=od(t,n,r),u=new this;return u.items=i.items,u}}Rn.tag="tag:yaml.org,2002:omap";const lo={collection:"seq",identify:s(e=>e instanceof Map,"identify"),nodeClass:Rn,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=ad(e,t),r=[];for(const{key:i}of n.items)oe(i)&&(r.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new Rn,n)},createNode:s((e,t,n)=>Rn.from(e,t,n),"createNode")};function ld({value:e,source:t},n){return t&&(e?cd:hd).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}s(ld,"boolStringify");const cd={identify:s(e=>e===!0,"identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:s(()=>new V(!0),"resolve"),stringify:ld},hd={identify:s(e=>e===!1,"identify"),default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:s(()=>new V(!1),"resolve"),stringify:ld},c5={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s(e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,"resolve"),stringify:nt},h5={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:s(e=>parseFloat(e.replace(/_/g,"")),"resolve"),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():nt(e)}},f5={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new V(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:nt},Nr=s(e=>typeof e=="bigint"||Number.isInteger(e),"intIdentify");function Zi(e,t,n,{intAsBigInt:r}){const i=e[0];if((i==="-"||i==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const a=BigInt(e);return i==="-"?BigInt(-1)*a:a}const u=parseInt(e,n);return i==="-"?-1*u:u}s(Zi,"intResolve");function co(e,t,n){const{value:r}=e;if(Nr(r)){const i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return nt(e)}s(co,"intStringify");const m5={identify:Nr,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:s((e,t,n)=>Zi(e,2,2,n),"resolve"),stringify:s(e=>co(e,2,"0b"),"stringify")},d5={identify:Nr,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:s((e,t,n)=>Zi(e,1,8,n),"resolve"),stringify:s(e=>co(e,8,"0"),"stringify")},p5={identify:Nr,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:s((e,t,n)=>Zi(e,0,10,n),"resolve"),stringify:nt},g5={identify:Nr,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:s((e,t,n)=>Zi(e,2,16,n),"resolve"),stringify:s(e=>co(e,16,"0x"),"stringify")};class Pn extends Ve{static{s(this,"YAMLSet")}constructor(t){super(t),this.tag=Pn.tag}add(t){let n;he(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new Fe(t.key,null):n=new Fe(t,null),Jt(this.items,n.key)||this.items.push(n)}get(t,n){const r=Jt(this.items,t);return!n&&he(r)?oe(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=Jt(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new Fe(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:i}=r,u=new this(t);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof i=="function"&&(a=i.call(n,a,a)),u.items.push(io(a,null,r));return u}}Pn.tag="tag:yaml.org,2002:set";const ho={collection:"map",identify:s(e=>e instanceof Set,"identify"),nodeClass:Pn,default:!1,tag:"tag:yaml.org,2002:set",createNode:s((e,t,n)=>Pn.from(e,t,n),"createNode"),resolve(e,t){if(kr(e)){if(e.hasAllNullValues(!0))return Object.assign(new Pn,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function fo(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,i=s(a=>t?BigInt(a):Number(a),"num"),u=r.replace(/_/g,"").split(":").reduce((a,o)=>a*i(60)+i(o),i(0));return n==="-"?i(-1)*u:u}s(fo,"parseSexagesimal");function fd(e){let{value:t}=e,n=s(a=>a,"num");if(typeof t=="bigint")n=s(a=>BigInt(a),"num");else if(isNaN(t)||!isFinite(t))return nt(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),u=[t%i];return t<60?u.unshift(0):(t=(t-u[0])/i,u.unshift(t%i),t>=60&&(t=(t-u[0])/i,u.unshift(t))),r+u.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}s(fd,"stringifySexagesimal");const md={identify:s(e=>typeof e=="bigint"||Number.isInteger(e),"identify"),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:s((e,t,{intAsBigInt:n})=>fo(e,n),"resolve"),stringify:fd},dd={identify:s(e=>typeof e=="number","identify"),default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:s(e=>fo(e,!1),"resolve"),stringify:fd},es={identify:s(e=>e instanceof Date,"identify"),default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(es.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,u,a,o]=t.map(Number),l=t[7]?Number((t[7]+"00").substr(1,3)):0;let c=Date.UTC(n,r-1,i,u||0,a||0,o||0,l);const f=t[8];if(f&&f!=="Z"){let h=fo(f,!1);Math.abs(h)<30&&(h*=60),c-=6e4*h}return new Date(c)},stringify:s(({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??"","stringify")},pd=[Nn,xn,Ki,Qi,cd,hd,m5,d5,p5,g5,c5,h5,f5,ao,Dt,lo,oo,ho,md,dd,es],gd=new Map([["core",u5],["failsafe",[Nn,xn,Ki]],["json",l5],["yaml11",pd],["yaml-1.1",pd]]),Ed={binary:ao,bool:so,float:td,floatExp:ed,floatNaN:Z0,floatTime:dd,int:id,intHex:sd,intOct:rd,intTime:md,map:Nn,merge:Dt,null:Qi,omap:lo,pairs:oo,seq:xn,set:ho,timestamp:es},E5={"tag:yaml.org,2002:binary":ao,"tag:yaml.org,2002:merge":Dt,"tag:yaml.org,2002:omap":lo,"tag:yaml.org,2002:pairs":oo,"tag:yaml.org,2002:set":ho,"tag:yaml.org,2002:timestamp":es};function mo(e,t,n){const r=gd.get(t);if(r&&!e)return n&&!r.includes(Dt)?r.concat(Dt):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{const u=Array.from(gd.keys()).filter(a=>a!=="yaml11").map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${u} or define customTags array`)}if(Array.isArray(e))for(const u of e)i=i.concat(u);else typeof e=="function"&&(i=e(i.slice()));return n&&(i=i.concat(Dt)),i.reduce((u,a)=>{const o=typeof a=="string"?Ed[a]:a;if(!o){const l=JSON.stringify(a),c=Object.keys(Ed).map(f=>JSON.stringify(f)).join(", ");throw new Error(`Unknown custom tag ${l}; use one of ${c}`)}return u.includes(o)||u.push(o),u},[])}s(mo,"getTags");const A5=s((e,t)=>e.key<t.key?-1:e.key>t.key?1:0,"sortMapEntriesByKey");class No{static{s(this,"Schema")}constructor({compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:u,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(t)?mo(t,"compat"):t?mo(null,t):null,this.name=typeof u=="string"&&u||"core",this.knownTags=i?E5:{},this.tags=mo(n,this.name,r),this.toStringOptions=o??null,Object.defineProperty(this,Ft,{value:Nn}),Object.defineProperty(this,ot,{value:Ki}),Object.defineProperty(this,kn,{value:xn}),this.sortMapEntries=typeof a=="function"?a:a===!0?A5:null}clone(){const t=Object.create(No.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function D5(e,t){const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const l=e.directives.toString(e);l?(n.push(l),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const i=W0(e,t),{commentString:u}=i.options;if(e.commentBefore){n.length!==1&&n.unshift("");const l=u(e.commentBefore);n.unshift(At(l,""))}let a=!1,o=null;if(e.contents){if(me(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const f=u(e.contents.commentBefore);n.push(At(f,""))}i.forceBlockIndent=!!e.comment,o=e.contents.comment}const l=o?void 0:()=>a=!0;let c=Fn(e.contents,i,()=>o=null,l);o&&(c+=Xt(c,"",u(o))),(c[0]==="|"||c[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${c}`:n.push(c)}else n.push(Fn(e.contents,i));if(e.directives?.docEnd)if(e.comment){const l=u(e.comment);l.includes(`
|
|
878
|
-
`)?(n.push("..."),n.push(At(l,""))):n.push(`... ${l}`)}else n.push("...");else{let l=e.comment;l&&a&&(l=l.replace(/^\n+/,"")),l&&((!a||o)&&n[n.length-1]!==""&&n.push(""),n.push(At(u(l),"")))}return n.join(`
|
|
879
|
-
`)+`
|
|
880
|
-
`}s(D5,"stringifyDocument");class Or{static{s(this,"Document")}constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Ye,{value:Qa});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const u=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},r);this.options=u;let{version:a}=u;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new Ne({version:a}),this.setSchema(a,r),this.contents=t===void 0?null:this.createNode(t,i,r)}clone(){const t=Object.create(Or.prototype,{[Ye]:{value:Qa}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=me(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){In(this.contents)&&this.contents.add(t)}addIn(t,n){In(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=q0(this);t.anchor=!n||r.has(n)?z0(n||"a",r):n}return new Ja(t.anchor)}createNode(t,n,r){let i;if(typeof n=="function")t=n.call({"":t},"",t),i=n;else if(Array.isArray(n)){const D=s(y=>typeof y=="number"||y instanceof String||y instanceof Number,"keyToStr"),A=n.filter(D).map(String);A.length>0&&(n=n.concat(A)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:u,anchorPrefix:a,flow:o,keepUndefined:l,onTagObj:c,tag:f}=r??{},{onAnchor:h,setAnchors:p,sourceObjects:d}=Vv(this,a||"a"),E={aliasDuplicateObjects:u??!0,keepUndefined:l??!1,onAnchor:h,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:d},g=Sr(t,f,E);return o&&fe(g)&&(g.flow=!0),p(),g}createPair(t,n,r={}){const i=this.createNode(t,null,r),u=this.createNode(n,null,r);return new Fe(i,u)}delete(t){return In(this.contents)?this.contents.delete(t):!1}deleteIn(t){return wr(t)?this.contents==null?!1:(this.contents=null,!0):In(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return fe(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return wr(t)?!n&&oe(this.contents)?this.contents.value:this.contents:fe(this.contents)?this.contents.getIn(t,n):void 0}has(t){return fe(this.contents)?this.contents.has(t):!1}hasIn(t){return wr(t)?this.contents!==void 0:fe(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=Hi(this.schema,[t],n):In(this.contents)&&this.contents.set(t,n)}setIn(t,n){wr(t)?this.contents=n:this.contents==null?this.contents=Hi(this.schema,Array.from(t),n):In(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Ne({version:"1.1"}),r={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new Ne({version:t}),r={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new No(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:u,reviver:a}={}){const o={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=Ge(this.contents,n??"",o);if(typeof u=="function")for(const{count:c,res:f}of o.anchors.values())u(f,c);return typeof a=="function"?Sn(a,{"":l},"",l):l}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return D5(this,t)}}function In(e){if(fe(e))return!0;throw new Error("Expected a YAML collection as document contents")}s(In,"assertCollection");class Ad extends Error{static{s(this,"YAMLError")}constructor(t,n,r,i){super(),this.name=t,this.code=r,this.message=i,this.pos=n}}class xr extends Ad{static{s(this,"YAMLParseError")}constructor(t,n,r){super("YAMLParseError",t,n,r)}}class C5 extends Ad{static{s(this,"YAMLWarning")}constructor(t,n,r){super("YAMLWarning",t,n,r)}}const Dd=s((e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(o=>t.linePos(o));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let u=i-1,a=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(u>=60&&a.length>80){const o=Math.min(u-39,a.length-79);a="\u2026"+a.substring(o),u-=o-1}if(a.length>80&&(a=a.substring(0,79)+"\u2026"),r>1&&/^ *$/.test(a.substring(0,u))){let o=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);o.length>80&&(o=o.substring(0,79)+`\u2026
|
|
881
|
-
`),a=o+a}if(/[^ ]/.test(a)){let o=1;const l=n.linePos[1];l?.line===r&&l.col>i&&(o=Math.max(1,Math.min(l.col-i,80-u)));const c=" ".repeat(u)+"^".repeat(o);n.message+=`:
|
|
882
|
-
|
|
883
|
-
${a}
|
|
884
|
-
${c}
|
|
885
|
-
`}},"prettifyError");function vn(e,{flow:t,indicator:n,next:r,offset:i,onError:u,parentIndent:a,startOnNewline:o}){let l=!1,c=o,f=o,h="",p="",d=!1,E=!1,g=null,D=null,A=null,y=null,C=null,F=null,v=null;for(const x of e)switch(E&&(x.type!=="space"&&x.type!=="newline"&&x.type!=="comma"&&u(x.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),E=!1),g&&(c&&x.type!=="comment"&&x.type!=="newline"&&u(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),g=null),x.type){case"space":!t&&(n!=="doc-start"||r?.type!=="flow-collection")&&x.source.includes(" ")&&(g=x),f=!0;break;case"comment":{f||u(x,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const w=x.source.substring(1)||" ";h?h+=p+w:h=w,p="",c=!1;break}case"newline":c?h?h+=x.source:(!F||n!=="seq-item-ind")&&(l=!0):p+=x.source,c=!0,d=!0,(D||A)&&(y=x),f=!0;break;case"anchor":D&&u(x,"MULTIPLE_ANCHORS","A node can have at most one anchor"),x.source.endsWith(":")&&u(x.offset+x.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),D=x,v??(v=x.offset),c=!1,f=!1,E=!0;break;case"tag":{A&&u(x,"MULTIPLE_TAGS","A node can have at most one tag"),A=x,v??(v=x.offset),c=!1,f=!1,E=!0;break}case n:(D||A)&&u(x,"BAD_PROP_ORDER",`Anchors and tags must be after the ${x.source} indicator`),F&&u(x,"UNEXPECTED_TOKEN",`Unexpected ${x.source} in ${t??"collection"}`),F=x,c=n==="seq-item-ind"||n==="explicit-key-ind",f=!1;break;case"comma":if(t){C&&u(x,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),C=x,c=!1,f=!1;break}default:u(x,"UNEXPECTED_TOKEN",`Unexpected ${x.type} token`),c=!1,f=!1}const B=e[e.length-1],L=B?B.offset+B.source.length:i;return E&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&u(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g&&(c&&g.indent<=a||r?.type==="block-map"||r?.type==="block-seq")&&u(g,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:C,found:F,spaceBefore:l,comment:h,hasNewline:d,anchor:D,tag:A,newlineAfterProp:y,end:L,start:v??L}}s(vn,"resolveProps");function Ir(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
|
|
886
|
-
`))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(Ir(t.key)||Ir(t.value))return!0}return!1;default:return!0}}s(Ir,"containsNewline");function po(e,t,n){if(t?.type==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Ir(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}s(po,"flowIndentCheck");function Cd(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const i=typeof r=="function"?r:(u,a)=>u===a||oe(u)&&oe(a)&&u.value===a.value;return t.some(u=>i(u.key,n))}s(Cd,"mapIncludes");const Td="All mapping items must start at the same column";function T5({composeNode:e,composeEmptyNode:t},n,r,i,u){const a=u?.nodeClass??Ve,o=new a(n.schema);n.atRoot&&(n.atRoot=!1);let l=r.offset,c=null;for(const f of r.items){const{start:h,key:p,sep:d,value:E}=f,g=vn(h,{indicator:"explicit-key-ind",next:p??d?.[0],offset:l,onError:i,parentIndent:r.indent,startOnNewline:!0}),D=!g.found;if(D){if(p&&(p.type==="block-seq"?i(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==r.indent&&i(l,"BAD_INDENT",Td)),!g.anchor&&!g.tag&&!d){c=g.end,g.comment&&(o.comment?o.comment+=`
|
|
887
|
-
`+g.comment:o.comment=g.comment);continue}(g.newlineAfterProp||Ir(p))&&i(p??h[h.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else g.found?.indent!==r.indent&&i(l,"BAD_INDENT",Td);n.atKey=!0;const A=g.end,y=p?e(n,p,g,i):t(n,A,h,null,g,i);n.schema.compat&&po(r.indent,p,i),n.atKey=!1,Cd(n,o.items,y)&&i(A,"DUPLICATE_KEY","Map keys must be unique");const C=vn(d??[],{indicator:"map-value-ind",next:E,offset:y.range[2],onError:i,parentIndent:r.indent,startOnNewline:!p||p.type==="block-scalar"});if(l=C.end,C.found){D&&(E?.type==="block-map"&&!C.hasNewline&&i(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&g.start<C.found.offset-1024&&i(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const F=E?e(n,E,C,i):t(n,l,d,null,C,i);n.schema.compat&&po(r.indent,E,i),l=F.range[2];const v=new Fe(y,F);n.options.keepSourceTokens&&(v.srcToken=f),o.items.push(v)}else{D&&i(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),C.comment&&(y.comment?y.comment+=`
|
|
888
|
-
`+C.comment:y.comment=C.comment);const F=new Fe(y);n.options.keepSourceTokens&&(F.srcToken=f),o.items.push(F)}}return c&&c<l&&i(c,"IMPOSSIBLE","Map comment with trailing content"),o.range=[r.offset,l,c??l],o}s(T5,"resolveBlockMap");function y5({composeNode:e,composeEmptyNode:t},n,r,i,u){const a=u?.nodeClass??Zt,o=new a(n.schema);n.atRoot&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let l=r.offset,c=null;for(const{start:f,value:h}of r.items){const p=vn(f,{indicator:"seq-item-ind",next:h,offset:l,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!p.found)if(p.anchor||p.tag||h)h?.type==="block-seq"?i(p.end,"BAD_INDENT","All sequence items must start at the same column"):i(l,"MISSING_CHAR","Sequence item without - indicator");else{c=p.end,p.comment&&(o.comment=p.comment);continue}const d=h?e(n,h,p,i):t(n,p.end,f,null,p,i);n.schema.compat&&po(r.indent,h,i),l=d.range[2],o.items.push(d)}return o.range=[r.offset,l,c??l],o}s(y5,"resolveBlockSeq");function vr(e,t,n,r){let i="";if(e){let u=!1,a="";for(const o of e){const{source:l,type:c}=o;switch(c){case"space":u=!0;break;case"comment":{n&&!u&&r(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const f=l.substring(1)||" ";i?i+=a+f:i=f,a="";break}case"newline":i&&(a+=l),u=!0;break;default:r(o,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}t+=l.length}}return{comment:i,offset:t}}s(vr,"resolveEnd");const go="Block collections are not allowed within flow collections",Eo=s(e=>e&&(e.type==="block-map"||e.type==="block-seq"),"isBlock");function b5({composeNode:e,composeEmptyNode:t},n,r,i,u){const a=r.start.source==="{",o=a?"flow map":"flow sequence",l=u?.nodeClass??(a?Ve:Zt),c=new l(n.schema);c.flow=!0;const f=n.atRoot;f&&(n.atRoot=!1),n.atKey&&(n.atKey=!1);let h=r.offset+r.start.source.length;for(let D=0;D<r.items.length;++D){const A=r.items[D],{start:y,key:C,sep:F,value:v}=A,B=vn(y,{flow:o,indicator:"explicit-key-ind",next:C??F?.[0],offset:h,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!B.found){if(!B.anchor&&!B.tag&&!F&&!v){D===0&&B.comma?i(B.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):D<r.items.length-1&&i(B.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),B.comment&&(c.comment?c.comment+=`
|
|
889
|
-
`+B.comment:c.comment=B.comment),h=B.end;continue}!a&&n.options.strict&&Ir(C)&&i(C,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(D===0)B.comma&&i(B.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(B.comma||i(B.start,"MISSING_CHAR",`Missing , between ${o} items`),B.comment){let L="";e:for(const x of y)switch(x.type){case"comma":case"space":break;case"comment":L=x.source.substring(1);break e;default:break e}if(L){let x=c.items[c.items.length-1];he(x)&&(x=x.value??x.key),x.comment?x.comment+=`
|
|
890
|
-
`+L:x.comment=L,B.comment=B.comment.substring(L.length+1)}}if(!a&&!F&&!B.found){const L=v?e(n,v,B,i):t(n,B.end,F,null,B,i);c.items.push(L),h=L.range[2],Eo(v)&&i(L.range,"BLOCK_IN_FLOW",go)}else{n.atKey=!0;const L=B.end,x=C?e(n,C,B,i):t(n,L,y,null,B,i);Eo(C)&&i(x.range,"BLOCK_IN_FLOW",go),n.atKey=!1;const w=vn(F??[],{flow:o,indicator:"map-value-ind",next:v,offset:x.range[2],onError:i,parentIndent:r.indent,startOnNewline:!1});if(w.found){if(!a&&!B.found&&n.options.strict){if(F)for(const M of F){if(M===w.found)break;if(M.type==="newline"){i(M,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}B.start<w.found.offset-1024&&i(w.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else v&&("source"in v&&v.source?.[0]===":"?i(v,"MISSING_CHAR",`Missing space after : in ${o}`):i(w.start,"MISSING_CHAR",`Missing , or : between ${o} items`));const N=v?e(n,v,w,i):w.found?t(n,w.end,F,null,w,i):null;N?Eo(v)&&i(N.range,"BLOCK_IN_FLOW",go):w.comment&&(x.comment?x.comment+=`
|
|
891
|
-
`+w.comment:x.comment=w.comment);const $=new Fe(x,N);if(n.options.keepSourceTokens&&($.srcToken=A),a){const M=c;Cd(n,M.items,x)&&i(L,"DUPLICATE_KEY","Map keys must be unique"),M.items.push($)}else{const M=new Ve(n.schema);M.flow=!0,M.items.push($);const j=(N??x).range;M.range=[x.range[0],j[1],j[2]],c.items.push(M)}h=N?N.range[2]:w.end}}const p=a?"}":"]",[d,...E]=r.end;let g=h;if(d?.source===p)g=d.offset+d.source.length;else{const D=o[0].toUpperCase()+o.substring(1),A=f?`${D} must end with a ${p}`:`${D} in block collection must be sufficiently indented and end with a ${p}`;i(h,f?"MISSING_CHAR":"BAD_INDENT",A),d&&d.source.length!==1&&E.unshift(d)}if(E.length>0){const D=vr(E,g,n.options.strict,i);D.comment&&(c.comment?c.comment+=`
|
|
892
|
-
`+D.comment:c.comment=D.comment),c.range=[r.offset,g,D.offset]}else c.range=[r.offset,g,g];return c}s(b5,"resolveFlowCollection");function Ao(e,t,n,r,i,u){const a=n.type==="block-map"?T5(e,t,n,r,u):n.type==="block-seq"?y5(e,t,n,r,u):b5(e,t,n,r,u),o=a.constructor;return i==="!"||i===o.tagName?(a.tag=o.tagName,a):(i&&(a.tag=i),a)}s(Ao,"resolveCollection");function k5(e,t,n,r,i){const u=r.tag,a=u?t.directives.tagName(u.source,p=>i(u,"TAG_RESOLVE_FAILED",p)):null;if(n.type==="block-seq"){const{anchor:p,newlineAfterProp:d}=r,E=p&&u?p.offset>u.offset?p:u:p??u;E&&(!d||d.offset<E.offset)&&i(E,"MISSING_CHAR","Missing newline after block sequence props")}const o=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!u||!a||a==="!"||a===Ve.tagName&&o==="map"||a===Zt.tagName&&o==="seq")return Ao(e,t,n,i,a);let l=t.schema.tags.find(p=>p.tag===a&&p.collection===o);if(!l){const p=t.schema.knownTags[a];if(p?.collection===o)t.schema.tags.push(Object.assign({},p,{default:!1})),l=p;else return p?i(u,"BAD_COLLECTION_TYPE",`${p.tag} used for ${o} collection, but expects ${p.collection??"scalar"}`,!0):i(u,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,!0),Ao(e,t,n,i,a)}const c=Ao(e,t,n,i,a,l),f=l.resolve?.(c,p=>i(u,"TAG_RESOLVE_FAILED",p),t.options)??c,h=me(f)?f:new V(f);return h.range=c.range,h.tag=a,l?.format&&(h.format=l.format),h}s(k5,"composeCollection");function _5(e,t,n){const r=t.offset,i=B5(t,e.options.strict,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const u=i.mode===">"?V.BLOCK_FOLDED:V.BLOCK_LITERAL,a=t.source?S5(t.source):[];let o=a.length;for(let g=a.length-1;g>=0;--g){const D=a[g][1];if(D===""||D==="\r")o=g;else break}if(o===0){const g=i.chomp==="+"&&a.length>0?`
|
|
893
|
-
`.repeat(Math.max(1,a.length-1)):"";let D=r+i.length;return t.source&&(D+=t.source.length),{value:g,type:u,comment:i.comment,range:[r,D,D]}}let l=t.indent+i.indent,c=t.offset+i.length,f=0;for(let g=0;g<o;++g){const[D,A]=a[g];if(A===""||A==="\r")i.indent===0&&D.length>l&&(l=D.length);else{D.length<l&&n(c+D.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(l=D.length),f=g,l===0&&!e.atRoot&&n(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=D.length+A.length+1}for(let g=a.length-1;g>=o;--g)a[g][0].length>l&&(o=g+1);let h="",p="",d=!1;for(let g=0;g<f;++g)h+=a[g][0].slice(l)+`
|
|
894
|
-
`;for(let g=f;g<o;++g){let[D,A]=a[g];c+=D.length+A.length+1;const y=A[A.length-1]==="\r";if(y&&(A=A.slice(0,-1)),A&&D.length<l){const F=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(c-A.length-(y?2:1),"BAD_INDENT",F),D=""}u===V.BLOCK_LITERAL?(h+=p+D.slice(l)+A,p=`
|
|
895
|
-
`):D.length>l||A[0]===" "?(p===" "?p=`
|
|
896
|
-
`:!d&&p===`
|
|
897
|
-
`&&(p=`
|
|
898
|
-
|
|
899
|
-
`),h+=p+D.slice(l)+A,p=`
|
|
900
|
-
`,d=!0):A===""?p===`
|
|
901
|
-
`?h+=`
|
|
902
|
-
`:p=`
|
|
903
|
-
`:(h+=p+A,p=" ",d=!1)}switch(i.chomp){case"-":break;case"+":for(let g=o;g<a.length;++g)h+=`
|
|
904
|
-
`+a[g][0].slice(l);h[h.length-1]!==`
|
|
905
|
-
`&&(h+=`
|
|
906
|
-
`);break;default:h+=`
|
|
907
|
-
`}const E=r+i.length+t.source.length;return{value:h,type:u,comment:i.comment,range:[r,E,E]}}s(_5,"resolveBlockScalar");function B5({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],u=i[0];let a=0,o="",l=-1;for(let p=1;p<i.length;++p){const d=i[p];if(!o&&(d==="-"||d==="+"))o=d;else{const E=Number(d);!a&&E?a=E:l===-1&&(l=e+p)}}l!==-1&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,f="",h=i.length;for(let p=1;p<t.length;++p){const d=t[p];switch(d.type){case"space":c=!0;case"newline":h+=d.source.length;break;case"comment":n&&!c&&r(d,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=d.source.length,f=d.source.substring(1);break;case"error":r(d,"UNEXPECTED_TOKEN",d.message),h+=d.source.length;break;default:{const E=`Unexpected token in block scalar header: ${d.type}`;r(d,"UNEXPECTED_TOKEN",E);const g=d.source;g&&typeof g=="string"&&(h+=g.length)}}}return{mode:u,indent:a,chomp:o,comment:f,length:h}}s(B5,"parseBlockScalarHeader");function S5(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),u=[r?.[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let a=1;a<t.length;a+=2)u.push([t[a],t[a+1]]);return u}s(S5,"splitLines");function w5(e,t,n){const{offset:r,type:i,source:u,end:a}=e;let o,l;const c=s((p,d,E)=>n(r+p,d,E),"_onError");switch(i){case"scalar":o=V.PLAIN,l=F5(u,c);break;case"single-quoted-scalar":o=V.QUOTE_SINGLE,l=N5(u,c);break;case"double-quoted-scalar":o=V.QUOTE_DOUBLE,l=x5(u,c);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+u.length,r+u.length]}}const f=r+u.length,h=vr(a,f,t,n);return{value:l,type:o,comment:h.comment,range:[r,f,h.offset]}}s(w5,"resolveFlowScalar");function F5(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),yd(e)}s(F5,"plainValue");function N5(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),yd(e.slice(1,-1)).replace(/''/g,"'")}s(N5,"singleQuotedValue");function yd(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
908
|
-
`,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
909
|
-
`,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],u=" ",a=t.lastIndex;for(n.lastIndex=a;r=n.exec(e);)r[1]===""?u===`
|
|
910
|
-
`?i+=u:u=`
|
|
911
|
-
`:(i+=u+r[1],u=" "),a=n.lastIndex;const o=/[ \t]*(.*)/sy;return o.lastIndex=a,r=o.exec(e),i+u+(r?.[1]??"")}s(yd,"foldLines");function x5(e,t){let n="";for(let r=1;r<e.length-1;++r){const i=e[r];if(!(i==="\r"&&e[r+1]===`
|
|
912
|
-
`))if(i===`
|
|
913
|
-
`){const{fold:u,offset:a}=I5(e,r);n+=u,r=a}else if(i==="\\"){let u=e[++r];const a=v5[u];if(a)n+=a;else if(u===`
|
|
914
|
-
`)for(u=e[r+1];u===" "||u===" ";)u=e[++r+1];else if(u==="\r"&&e[r+1]===`
|
|
915
|
-
`)for(u=e[++r+1];u===" "||u===" ";)u=e[++r+1];else if(u==="x"||u==="u"||u==="U"){const o={x:2,u:4,U:8}[u];n+=L5(e,r+1,o,t),r+=o}else{const o=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),n+=o}}else if(i===" "||i===" "){const u=r;let a=e[r+1];for(;a===" "||a===" ";)a=e[++r+1];a!==`
|
|
916
|
-
`&&!(a==="\r"&&e[r+2]===`
|
|
917
|
-
`)&&(n+=r>u?e.slice(u,r+1):i)}else n+=i}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}s(x5,"doubleQuotedValue");function I5(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
|
|
918
|
-
`||r==="\r")&&!(r==="\r"&&e[t+2]!==`
|
|
919
|
-
`);)r===`
|
|
920
|
-
`&&(n+=`
|
|
921
|
-
`),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}s(I5,"foldNewline");const v5={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
922
|
-
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function L5(e,t,n,r){const i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(a)){const o=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(a)}s(L5,"parseCharCode");function bd(e,t,n,r){const{value:i,type:u,comment:a,range:o}=t.type==="block-scalar"?_5(e,t,r):w5(t,e.options.strict,r),l=n?e.directives.tagName(n.source,h=>r(n,"TAG_RESOLVE_FAILED",h)):null;let c;e.options.stringKeys&&e.atKey?c=e.schema[ot]:l?c=O5(e.schema,i,l,n,r):t.type==="scalar"?c=R5(e,i,t,r):c=e.schema[ot];let f;try{const h=c.resolve(i,p=>r(n??t,"TAG_RESOLVE_FAILED",p),e.options);f=oe(h)?h:new V(h)}catch(h){const p=h instanceof Error?h.message:String(h);r(n??t,"TAG_RESOLVE_FAILED",p),f=new V(i)}return f.range=o,f.source=i,u&&(f.type=u),l&&(f.tag=l),c.format&&(f.format=c.format),a&&(f.comment=a),f}s(bd,"composeScalar");function O5(e,t,n,r,i){if(n==="!")return e[ot];const u=[];for(const o of e.tags)if(!o.collection&&o.tag===n)if(o.default&&o.test)u.push(o);else return o;for(const o of u)if(o.test?.test(t))return o;const a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[ot])}s(O5,"findScalarTagByName");function R5({atKey:e,directives:t,schema:n},r,i,u){const a=n.tags.find(o=>(o.default===!0||e&&o.default==="key")&&o.test?.test(r))||n[ot];if(n.compat){const o=n.compat.find(l=>l.default&&l.test?.test(r))??n[ot];if(a.tag!==o.tag){const l=t.tagString(a.tag),c=t.tagString(o.tag),f=`Value may be parsed as either ${l} or ${c}`;u(i,"TAG_RESOLVE_FAILED",f,!0)}}return a}s(R5,"findScalarTagByTest");function P5(e,t,n){if(t){n??(n=t.length);for(let r=n-1;r>=0;--r){let i=t[r];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}for(i=t[++r];i?.type==="space";)e+=i.source.length,i=t[++r];break}}return e}s(P5,"emptyScalarPosition");const M5={composeNode:kd,composeEmptyNode:Do};function kd(e,t,n,r){const i=e.atKey,{spaceBefore:u,comment:a,anchor:o,tag:l}=n;let c,f=!0;switch(t.type){case"alias":c=U5(e,t,r),(o||l)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=bd(e,t,l,r),o&&(c.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=k5(M5,e,t,n,r),o&&(c.anchor=o.source.substring(1));break;default:{const h=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",h),c=Do(e,t.offset,void 0,null,n,r),f=!1}}return o&&c.anchor===""&&r(o,"BAD_ALIAS","Anchor cannot be an empty string"),i&&e.options.stringKeys&&(!oe(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&r(l??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),u&&(c.spaceBefore=!0),a&&(t.type==="scalar"&&t.source===""?c.comment=a:c.commentBefore=a),e.options.keepSourceTokens&&f&&(c.srcToken=t),c}s(kd,"composeNode");function Do(e,t,n,r,{spaceBefore:i,comment:u,anchor:a,tag:o,end:l},c){const f={type:"scalar",offset:P5(t,n,r),indent:-1,source:""},h=bd(e,f,o,c);return a&&(h.anchor=a.source.substring(1),h.anchor===""&&c(a,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(h.spaceBefore=!0),u&&(h.comment=u,h.range[2]=l),h}s(Do,"composeEmptyNode");function U5({options:e},{offset:t,source:n,end:r},i){const u=new Ja(n.substring(1));u.source===""&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),u.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const a=t+n.length,o=vr(r,a,e.strict,i);return u.range=[t,a,o.offset],o.comment&&(u.comment=o.comment),u}s(U5,"composeAlias");function H5(e,t,{offset:n,start:r,value:i,end:u},a){const o=Object.assign({_directives:t},e),l=new Or(void 0,o),c={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},f=vn(r,{indicator:"doc-start",next:i??u?.[0],offset:n,onError:a,parentIndent:0,startOnNewline:!0});f.found&&(l.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!f.hasNewline&&a(f.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?kd(c,i,f,a):Do(c,f.end,r,null,f,a);const h=l.contents.range[2],p=vr(u,h,!1,a);return p.comment&&(l.comment=p.comment),l.range=[n,h,p.offset],l}s(H5,"composeDoc");function Lr(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}s(Lr,"getErrorPos");function _d(e){let t="",n=!1,r=!1;for(let i=0;i<e.length;++i){const u=e[i];switch(u[0]){case"#":t+=(t===""?"":r?`
|
|
923
|
-
|
|
924
|
-
`:`
|
|
925
|
-
`)+(u.substring(1)||" "),n=!0,r=!1;break;case"%":e[i+1]?.[0]!=="#"&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}s(_d,"parsePrelude");class $5{static{s(this,"Composer")}constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,u)=>{const a=Lr(n);u?this.warnings.push(new C5(a,r,i)):this.errors.push(new xr(a,r,i))},this.directives=new Ne({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:i}=_d(this.prelude);if(r){const u=t.contents;if(n)t.comment=t.comment?`${t.comment}
|
|
926
|
-
${r}`:r;else if(i||t.directives.docStart||!u)t.commentBefore=r;else if(fe(u)&&!u.flow&&u.items.length>0){let a=u.items[0];he(a)&&(a=a.key);const o=a.commentBefore;a.commentBefore=o?`${r}
|
|
927
|
-
${o}`:r}else{const a=u.commentBefore;u.commentBefore=a?`${r}
|
|
928
|
-
${a}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:_d(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const i of t)yield*this.next(i);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,i)=>{const u=Lr(t);u[0]+=n,this.onError(u,"BAD_DIRECTIVE",r,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=H5(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new xr(Lr(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new xr(Lr(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=vr(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
|
|
929
|
-
${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new xr(Lr(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),i=new Or(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}const Bd="\uFEFF",Sd="",wd="",Co="";function q5(e){switch(e){case Bd:return"byte-order-mark";case Sd:return"doc-mode";case wd:return"flow-error-end";case Co:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
930
|
-
`:case`\r
|
|
931
|
-
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}s(q5,"tokenType");function rt(e){switch(e){case void 0:case" ":case`
|
|
932
|
-
`:case"\r":case" ":return!0;default:return!1}}s(rt,"isEmpty");const Fd=new Set("0123456789ABCDEFabcdef"),z5=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),ts=new Set(",[]{}"),j5=new Set(` ,[]{}
|
|
933
|
-
\r `),To=s(e=>!e||j5.has(e),"isNotAnchorChar");class Y5{static{s(this,"Lexer")}constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){if(t){if(typeof t!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null}this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
|
|
934
|
-
`?!0:n==="\r"?this.buffer[t+1]===`
|
|
935
|
-
`:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const i=this.buffer[r+t+1];if(i===`
|
|
936
|
-
`||!i&&!this.atEnd)return t+r+1}return n===`
|
|
937
|
-
`||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&rt(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
|
|
938
|
-
`,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===Bd&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length,r=t.indexOf("#");for(;r!==-1;){const u=t[r-1];if(u===" "||u===" "){n=r-1;break}else r=t.indexOf("#",r+1)}for(;;){const u=t[n-1];if(u===" "||u===" ")n-=1;else break}const i=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield Sd,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if((n==="---"||n==="...")&&rt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,n==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!rt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&rt(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(To),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const i=this.getLine();if(i===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&i[0]!=="#"||r===0&&(i.startsWith("---")||i.startsWith("..."))&&rt(i[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield wd,yield*this.parseLineStart();let u=0;for(;i[u]===",";)u+=yield*this.pushCount(1),u+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(u+=yield*this.pushIndicators(),i[u]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-u),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(To),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const a=this.charAt(1);if(this.flowKey||rt(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let u=0;for(;this.buffer[n-1-u]==="\\";)u+=1;if(u%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let i=r.indexOf(`
|
|
939
|
-
`,this.pos);if(i!==-1){for(;i!==-1;){const u=this.continueScalar(i+1);if(u===-1)break;i=r.indexOf(`
|
|
940
|
-
`,u)}i!==-1&&(n=i-(r[i-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>rt(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let u=this.pos;r=this.buffer[u];++u)switch(r){case" ":n+=1;break;case`
|
|
941
|
-
`:t=u,n=0;break;case"\r":{const a=this.buffer[u+1];if(!a&&!this.atEnd)return this.setNext("block-scalar");if(a===`
|
|
942
|
-
`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const u=this.continueScalar(t+1);if(u===-1)break;t=this.buffer.indexOf(`
|
|
943
|
-
`,u)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let i=t+1;for(r=this.buffer[i];r===" ";)r=this.buffer[++i];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
|
|
944
|
-
`;)r=this.buffer[++i];t=i-1}else if(!this.blockScalarKeep)do{let u=t-1,a=this.buffer[u];a==="\r"&&(a=this.buffer[--u]);const o=u;for(;a===" ";)a=this.buffer[--u];if(a===`
|
|
945
|
-
`&&u>=this.pos&&u+1+n>o)t=u;else break}while(!0);return yield Co,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,i;for(;i=this.buffer[++r];)if(i===":"){const u=this.buffer[r+1];if(rt(u)||t&&ts.has(u))break;n=r}else if(rt(i)){let u=this.buffer[r+1];if(i==="\r"&&(u===`
|
|
946
|
-
`?(r+=1,i=`
|
|
947
|
-
`,u=this.buffer[r+1]):n=r),u==="#"||t&&ts.has(u))break;if(i===`
|
|
948
|
-
`){const a=this.continueScalar(r+1);if(a===-1)break;r=Math.max(r,a-2)}}else{if(t&&ts.has(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield Co,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(To))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(rt(n)||t&&ts.has(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!rt(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(z5.has(n))n=this.buffer[++t];else if(n==="%"&&Fd.has(this.buffer[t+1])&&Fd.has(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
|
|
949
|
-
`?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
|
|
950
|
-
`?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class G5{static{s(this,"LineCounter")}constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const u=n+r>>1;this.lineStarts[u]<t?n=u+1:r=u}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const i=this.lineStarts[n-1];return{line:n,col:t-i+1}}}}function Nt(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}s(Nt,"includesToken");function Nd(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}s(Nd,"findNonEmptyIndex");function xd(e){switch(e?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}s(xd,"isFlowToken");function ns(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}s(ns,"getPrevProps");function Ln(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}s(Ln,"getFirstKeyStartProps");function Id(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Nt(t.start,"explicit-key-ind")&&!Nt(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,xd(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}s(Id,"fixFlowSeqItems");class V5{static{s(this,"Parser")}constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Y5,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=q5(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&t?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(!n)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&Id(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const i=r.items[r.items.length-1];if(i.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=n;else{Object.assign(i,{key:n,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{const i=r.items[r.items.length-1];i.value?r.items.push({start:[],value:n}):i.value=n;break}case"flow-collection":{const i=r.items[r.items.length-1];!i||i.value?r.items.push({start:[],key:n,sep:[]}):i.sep?i.value=n:Object.assign(i,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const i=n.items[n.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&Nd(i.start)===-1&&(n.indent===0||i.start.every(u=>u.type!=="comment"||u.indent<n.indent))&&(r.type==="document"?r.end=i.start:r.items.push({start:i.start}),n.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{Nd(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=ns(this.peek(2)),r=Ln(n);let i;t.end?(i=t.end,i.push(this.sourceToken),delete t.end):i=[this.sourceToken];const u={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=u}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
|
|
951
|
-
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
952
|
-
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const r=!this.onKeyLine&&this.indent===t.indent,i=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let u=[];if(i&&n.sep&&!n.value){const a=[];for(let o=0;o<n.sep.length;++o){const l=n.sep[o];switch(l.type){case"newline":a.push(o);break;case"space":break;case"comment":l.indent>t.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(u=n.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(u.push(this.sourceToken),t.items.push({start:u}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):i||n.value?(u.push(this.sourceToken),t.items.push({start:u,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(n.explicitKey)if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Nt(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]});else if(xd(n.key)&&!Nt(n.sep,"newline")){const a=Ln(n.start),o=n.key,l=n.sep;l.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:o,sep:l}]})}else u.length>0?n.sep=n.sep.concat(u,this.sourceToken):n.sep.push(this.sourceToken);else if(Nt(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const a=Ln(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?t.items.push({start:u,key:null,sep:[this.sourceToken]}):Nt(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);i||n.value?(t.items.push({start:u,key:a,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(a):(Object.assign(n,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{const a=this.startBlockValue(t);if(a){if(a.type==="block-seq"){if(!n.explicitKey&&n.sep&&!Nt(n.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else r&&t.items.push({start:u});this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||Nt(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const r=this.startBlockValue(t);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r?.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=ns(r),u=Ln(i);Id(t);const a=t.end.splice(1,t.end.length);a.push(this.sourceToken);const o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:u,key:t,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
|
|
953
|
-
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
954
|
-
`,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=ns(t),r=Ln(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=ns(t),r=Ln(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function W5(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new G5||null,prettyErrors:t}}s(W5,"parseOptions");function K5(e,t={}){const{lineCounter:n,prettyErrors:r}=W5(t),i=new V5(n?.addNewLine),u=new $5(t);let a=null;for(const o of u.compose(i.parse(e),!0,e.length))if(!a)a=o;else if(a.options.logLevel!=="silent"){a.errors.push(new xr(o.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(a.errors.forEach(Dd(e,n)),a.warnings.forEach(Dd(e,n))),a}s(K5,"parseDocument");function vd(e,t,n){let r;const i=K5(e,n);if(!i)return null;if(i.warnings.forEach(u=>K0(i.options.logLevel,u)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}s(vd,"parse");function Ld(e,t,n){let r=null;if(typeof t=="function"||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(e===void 0){const{keepUndefined:i}=n??t??{};if(!i)return}return br(e)&&!r?e.toString(n):new Or(e,r,n).toString(n)}s(Ld,"stringify");const Q5={allFilePaths:[],basePath:void 0,convertFilePathsToProtocol:"none",obsidianVaultName:void 0};function rs(e,t){const{allFilePaths:n,basePath:r,convertFilePathsToProtocol:i,cwd:u,obsidianVaultName:a,type:o}=xe(Q5,t??{});i==="obsidian"&&a===void 0&&console.warn("convertFilePathsToProtocol is 'obsidian', but no obsidianVaultName provided");const l=hm(e)??e;switch(Ni(l)){case"localFileName":{let f=lm(et(l),"md");return f=X5(f,u,n??[])??am(l,{basePath:r,cwd:u}),Ni(f)==="localFilePath"?rs(f,{allFilePaths:n,basePath:r,convertFilePathsToProtocol:i,cwd:u,obsidianVaultName:a,type:o}):(console.warn(`Failed to convert local file wiki-style name to path: ${e} --> ${f}`),f)}case"localFilePath":{const f=am(et(l),{basePath:r,cwd:u}),h=Od(lm(f,"md"),n??[])??Od(cm(f,"md"),n??[])??void 0;if(h!==void 0){if(i!=="none"&&(o==="link"||o==="embed"&&[".md",".pdf"].includes(om(h)))){if(i==="obsidian"&&a!==void 0)return Z5(h,r??"",a);if(i==="file")return J5(h)}return pr(h)}return pr(f)}case"localFileUrl":{const f=et(tw(e));return Ni(f)==="localFilePath"?rs(f,{allFilePaths:n,basePath:r,convertFilePathsToProtocol:i,cwd:u,obsidianVaultName:a,type:o}):(console.warn(`Failed to convert file URL to path: ${e} --> ${f}`),f)}case"obsidianVaultUrl":return e;case"remoteHttpUrl":return e;case"unsupportedProtocolUrl":return console.warn(`Unsupported URL protocol: ${e}`),e}}s(rs,"resolveLink");function X5(e,t,n){if(n.length===0)return;const[r,i]=Fi(e),u=r.replace(/\.md$/,"").toLowerCase(),a=n.filter(l=>l.replace(/\.md$/,"").toLowerCase().endsWith(u));return a.length===0?void 0:a.length===1?`${a[0]}${i??""}`:`${[...a].sort((l,c)=>{if(!r.endsWith(".md")||r.includes(ee.sep)){const p=l.startsWith(t),d=c.startsWith(t);if(p!==d)return p?-1:1}const f=l.split(ee.sep).length,h=c.split(ee.sep).length;return f!==h?f-h:l.localeCompare(c)})[0]}${i??""}`}s(X5,"resolveNameLink");function Od(e,t){const n=pr(e);if(t.some(r=>r.toLowerCase().endsWith(n.toLowerCase())))return e}s(Od,"pathExistsInAllFiles");function J5(e){return`file://${e}`}s(J5,"createFileLink");function Z5(e,t,n){const r=J6(e,t);return`obsidian://open?vault=${encodeURIComponent(n)}&file=${encodeURIComponent(r)}`}s(Z5,"createObsidianVaultLink");const eL=s(function(e){const{allFilePaths:t=[],basePath:n,cwd:r,enabled:i=!0,obsidianVault:u}=e;return function(a){i&&(se(a,"link",o=>{o.data??={},o.data.hProperties={...o.data?.hProperties,"data-yanki-src-original":o.url};const l=rs(o.url,{allFilePaths:t,basePath:n,convertFilePathsToProtocol:u===void 0?"none":"obsidian",cwd:r,obsidianVaultName:u,type:"link"});o.url=jt(l)?l:encodeURI(l)}),se(a,"image",o=>{o.data??={},o.data.hProperties={...o.data?.hProperties,"data-yanki-src-original":o.url};const l=rs(o.url,{allFilePaths:t,basePath:n,convertFilePathsToProtocol:u===void 0?"none":"obsidian",cwd:r,obsidianVaultName:u,type:"embed"});o.url=jt(l)?l:encodeURI(l)}))}},"plugin$1");function tL(){let e="",t;return{enter:{wikiEmbed:r,wikiLabel:a,wikiLink:n,wikiUrl:i},exit:{wikiEmbed:c,wikiLabel:o,wikiLink:l,wikiUrl:u}};function n(f){e="",t=void 0,this.enter({children:[],title:void 0,type:"link",url:""},f)}function r(f){e="",t=void 0,this.enter({type:"image",url:""},f)}function i(){this.buffer()}function u(){e=this.resume()}function a(){this.buffer()}function o(){t=this.resume()}function l(f){const h=this.stack.at(-1);h.url=wh(e),h.children=[{type:"text",value:gt((t??"").replaceAll("|",""))??e.split("#").pop()??e.split("/").pop()??e}],this.exit(f)}function c(f){const h=this.stack.at(-1);h.url=wh(e),t!==void 0&&(h.alt=t),this.exit(f)}}s(tL,"wikiBasicFromMarkdown");function nL(){return{text:{33:{name:"wikiEmbed",tokenize:e},91:{name:"wikiLink",tokenize:e}}};function e(t,n,r){let i=!1,u=!1,a=0,o=0;return l;function l(w){return w===33?(i=!0,t.enter("wikiEmbed"),t.enter("wikiMarker"),t.consume(w),c):(t.enter("wikiLink"),t.enter("wikiMarker"),c(w))}function c(w){return w===91?(t.consume(w),f):r(w)}function f(w){return w===91?(t.consume(w),t.exit("wikiMarker"),h):r(w)}function h(w){return w===-5||w===-4||w===-3||w===null||w===124||w===93?r(w):(t.enter("wikiUrl"),t.enter("chunkString",{contentType:"string"}),t.consume(w),a++,p)}function p(w){return w===-5||w===-4||w===-3||w===null?r(w):w===124?a===1?r(w):B(w):w===92?t.check({partial:!0,tokenize:v},B,d)(w):w===93?D(w):d(w)}function d(w){return t.consume(w),a++,p}function E(w){return w===-5||w===-4||w===-3||w===null?r(w):w===93?D(w):(t.enter("wikiLabel"),t.enter("chunkString",{contentType:"string"}),t.consume(w),o++,g)}function g(w){return w===-5||w===-4||w===-3||w===null?r(w):w===93?D(w):(t.consume(w),o++,g)}function D(w){return w!==93?r(w):t.check({partial:!0,tokenize:F},A,C)(w)}function A(w){return w!==93?r(w):(u?o>0&&(t.exit("chunkString"),t.exit("wikiLabel")):a>0&&(t.exit("chunkString"),t.exit("wikiUrl")),t.enter("wikiMarker"),t.consume(w),y)}function y(w){return w!==93||a===0?r(w):(t.consume(w),t.exit("wikiMarker"),i?t.exit("wikiEmbed"):t.exit("wikiLink"),n)}function C(w){return w!==93?r(w):(t.consume(w),u?(o++,g):(a++,p))}function F(w,N,$){return M;function M(j){return j!==93?$(j):(w.enter("wikiMarkerTemp"),w.consume(j),w.exit("wikiMarkerTemp"),N(j))}}function v(w,N,$){return M;function M(Y){return Y!==92?$(Y):(w.enter("wikiMarkerTemp"),w.consume(Y),j)}function j(Y){return Y===124?(w.consume(Y),w.exit("wikiMarkerTemp"),N(Y)):(w.exit("wikiMarkerTemp"),$(Y))}}function B(w){return t.exit("chunkString"),t.exit("wikiUrl"),t.enter("wikiMarker"),t.consume(w),w===92?x:(t.exit("wikiMarker"),u=!0,t.check({partial:!0,tokenize:L},D,E)(w))}function L(w,N,$){return M;function M(j){return j===93?(w.enter("wikiMarkerTemp"),w.consume(j),w.exit("wikiMarkerTemp"),N(j)):$(j)}}function x(w){return w!==124?r(w):(t.consume(w),t.exit("wikiMarker"),u=!0,E)}}}s(nL,"wikiBasic");const rL=s(function(){const e=this.data();e.micromarkExtensions=[...e.micromarkExtensions??[],nL()],e.fromMarkdownExtensions=[...e.fromMarkdownExtensions??[],tL()]},"plugin"),iL={...Re};async function sL(e,t){const{allFilePaths:n,basePath:r,cwd:i,obsidianVault:u,resolveUrls:a}=xe(iL,t??{}),o=Du().use(Hv).use(yF,[{anywhere:!1,marker:"-",type:"yaml"}]).use(rL).use(WI,{singleTilde:!1}).use(eL,{allFilePaths:n,basePath:r,cwd:i,enabled:a,obsidianVault:u}).use(lv).use(XI).use(oF).use(Kw);return o.run(o.parse(e))}s(sL,"getAstFromMarkdown");function uL(e){return e.type==="text"}s(uL,"isText");function aL(e,t){return se(e,t,(n,r,i)=>{if(i&&r!==void 0)return i.children.splice(r,1),ve}),e}s(aL,"deleteFirstNodeOfType");function yo(e){const t=e.at(0);t?.type==="text"&&(t.value=t.value.trimStart(),t.value===""&&e.shift());const n=e.at(-1);return n?.type==="text"&&(n.value=n.value.trimEnd(),n.value===""&&e.pop()),e}s(yo,"trimLeadingAndTrailingSpaces");function oL(e){let t=1;return se(e,"delete",(n,r,i)=>{if(i===void 0||r===void 0||!("children"in n)||n.children.length===0)return qe;if(n.children.length>0&&uL(n.children[0])){const o=/^[(|]?(\d{1,2})(?:[\s).|]|$)(.*)$/.exec(n.children[0].value);if(o!==null&&(n.children.length>1||(o.at(2)??"").length>0)){const l=Number.parseInt(o.at(1)??"",10);Number.isNaN(l)||(t=l,n.children[0].value=(o.at(2)?.trim().length??0)>0?o.at(2)??"":"")}}const u=n.children.at(-1),a=n.children.length>1&&u?.type==="emphasis"?[ne("text",`{{c${t}::`),...yo(n.children.slice(0,-1)),ne("text","::"),...yo(n.children.slice(-1)),ne("text","}}")]:[ne("text",`{{c${t}::`),...yo(n.children),ne("text","}}")];i.children.splice(r,1,...a),t+=1}),e}s(oL,"replaceDeleteNodesWithClozeMarkup");function bo(e){let t,n=!1;if(se(e,"thematicBreak",(u,a,o)=>a===void 0||o===void 0?qe:(t=a,o.children[a+1]?.type==="thematicBreak"&&(n=!0),ve)),t===void 0)return[e,void 0];const r={children:e.children.slice(0,t),type:"root"},i={children:e.children.slice(t+(n?2:1)),type:"root"};return[r,i]}s(bo,"splitTreeAtThematicBreak");function lL(e){let t;if(se(e,r=>{if(r.type==="thematicBreak")return t=void 0,ve;if(r.type==="delete")return t="Yanki - Cloze",ve}),t!==void 0)return t;if(!hL(e)&&fL(e))return"Yanki - Basic (type in the answer)";let n;return se(e,(r,i,u)=>{if(u===null||i===null)return qe;if(r.type==="thematicBreak"){if(t===void 0)t="Yanki - Basic";else if(t==="Yanki - Basic"&&n?.type==="thematicBreak")return t="Yanki - Basic (and reversed card with extra)",ve}n=r}),t??"Yanki - Basic"}s(lL,"getYankiModelNameFromTree");function cL(e){let t;if(se(e,"yaml",r=>"value"in r?(t=r.value,ve):qe),!t)return{};const n=vd(t);if(!n)throw new Error("Could not parse frontmatter");return n}s(cL,"getFrontmatterFromTree");function hL(e){let t=!1;return se(e,"thematicBreak",()=>(t=!0,ve)),t}s(hL,"hasThematicBreak");function fL(e){let t,n=0;return se(e,r=>{if(r.type==="text"&&r.value.trim()!=="")t=r,n++;else if(r.type==="emphasis"&&r.children.some(i=>i.type==="text"&&i.value.trim()!==""))return t=r,n++,ui}),t?.type==="emphasis"&&n>1}s(fL,"isLastVisibleNodeEmphasisWithOthers");function mL(e){let t,n,r;if(se(e,"emphasis",(i,u,a)=>{if(a===void 0||u===void 0||i.type!=="emphasis")return qe;t=i,n=a,r=u}),n&&t&&typeof r=="number")return n.children.splice(r,1),t}s(mL,"removeLastEmphasis");const Rd={namespaceValidationAndSanitization:!0,...Re};async function Pd(e,t){const{allFilePaths:n,basePath:r,cwd:i,fetchAdapter:u=dr(),fileAdapter:a=await An(),namespace:o,namespaceValidationAndSanitization:l,obsidianVault:c,resolveUrls:f,strictLineBreaks:h,syncMediaAssets:p}=xe(Rd,t??{}),d=l?zt(o):o;let E=await sL(e,{allFilePaths:n,basePath:r,cwd:i,obsidianVault:c,resolveUrls:f});const g=lL(E),D=cL(E);E=aL(E,"yaml");let A="",y="",C;switch(g){case"Yanki - Basic":case"Yanki - Basic (and reversed card with extra)":{let[v,B]=bo(E),L;if(B!==void 0&&g==="Yanki - Basic (and reversed card with extra)"){C="";const[x,w]=bo(B);B=x,L=w}A=await Yt(v,{cssClassNames:[qt,`namespace-${d}`,"front",`model-${g}`],fetchAdapter:u,fileAdapter:a,namespace:d,strictLineBreaks:h,syncMediaAssets:p,useEmptyPlaceholder:!0}),y=await Yt(B,{cssClassNames:[qt,`namespace-${d}`,"back",`model-${g}`],fetchAdapter:u,fileAdapter:a,namespace:d,strictLineBreaks:h,syncMediaAssets:p,useEmptyPlaceholder:!0}),L!==void 0&&(C=await Yt(L,{cssClassNames:[qt,`namespace-${d}`,"extra",`model-${g}`],fetchAdapter:u,fileAdapter:a,namespace:d,strictLineBreaks:h,syncMediaAssets:p,useEmptyPlaceholder:!1}));break}case"Yanki - Basic (type in the answer)":{const v=mL(E);if(v===void 0)throw new Error("Could not find emphasis in Basic (type in the answer) note AST.");const B=E,L=ne("root",ne("paragraph",v.children));A=await Yt(B,{cssClassNames:[qt,`namespace-${d}`,"front",`model-${g}`],fetchAdapter:u,fileAdapter:a,namespace:d,strictLineBreaks:h,syncMediaAssets:p,useEmptyPlaceholder:!0}),y=await Yt(L,{cssClassNames:[qt,`namespace-${d}`,"back",`model-${g}`],fetchAdapter:u,fileAdapter:a,namespace:d,strictLineBreaks:h,syncMediaAssets:p,useEmptyPlaceholder:!1});break}case"Yanki - Cloze":{const[v,B]=bo(E);A=await Yt(oL(v),{cssClassNames:[qt,`namespace-${d}`,"front",`model-${g}`],fetchAdapter:u,fileAdapter:a,namespace:d,strictLineBreaks:h,syncMediaAssets:p,useEmptyPlaceholder:!0}),y=await Yt(B,{cssClassNames:[qt,`namespace-${d}`,"back",`model-${g}`],fetchAdapter:u,fileAdapter:a,namespace:d,strictLineBreaks:h,syncMediaAssets:p,useEmptyPlaceholder:!1});break}}return{deckName:"",fields:{Back:y,...C!==void 0&&{Extra:C},Front:A,YankiNamespace:d},modelName:g,noteId:D.noteId??void 0,tags:dL(D.tags)}}s(Pd,"getNoteFromMarkdown");function dL(e){return(typeof e=="string"?[e]:e??[]).map(t=>t.replaceAll("/","::"))}s(dL,"obsidianTagsToAnkiTags");const pL={...Re};async function ko(e,t){const{allFilePaths:n,basePath:r,fetchAdapter:i=dr(),fileAdapter:u=await An(),namespace:a,obsidianVault:o,strictLineBreaks:l,syncMediaAssets:c}=xe(pL,t??{}),f=zt(a);e.sort((d,E)=>d.localeCompare(E));const h=EL(e);return await Promise.all(e.map(async(d,E)=>{const g=await u.readFile(d),D=await Pd(g,{allFilePaths:n,basePath:r,cwd:ee.dirname(d),fetchAdapter:i,fileAdapter:u,namespace:f,namespaceValidationAndSanitization:!1,obsidianVault:o,strictLineBreaks:l,syncMediaAssets:c});return D.deckName===""&&(D.deckName=h[E]),{filePath:d,filePathOriginal:d,markdown:g,note:D}}))}s(ko,"loadLocalNotes");const gL={mode:"common-root"};function EL(e,t){const{mode:n}=xe(gL,{});if(e.length===0)return[];const r=e.map(l=>ee.dirname(l).split(ee.sep)),i=r.reduce((l,c)=>l.filter((h,p)=>h===c[p])),u=r.some(l=>l.at(-1)===i.at(-1)),a=n==="common-parent"||u?1:0;return r.map(l=>l.slice(i.length-a).join("::"))}s(EL,"getDeckNamesFromFilePaths");const AL={...Re};async function Md(e,t){const{dryRun:n,fileAdapter:r=await An(),manageFilenames:i,maxFilenameLength:u}=xe(AL,t??{});if(i!=="off"){const a=[];for(const l of e){const{filePath:c,note:f}=l;if(c===void 0)throw new Error("File path is undefined");const h=zw(f,i,u),p=ee.join(ee.dirname(c),`${h}${ee.extname(c)}`),d=jw(p,a);l.filePath=d,a.push(d.toLowerCase())}for(const l of e){const{filePath:c}=l;if(c===void 0)throw new Error("File path is undefined");l.filePath=Yw(c,a)}const o=new Map;for(const l of e){const{filePath:c,filePathOriginal:f}=l;if(f===void 0)throw new Error("Original file path is undefined.");if(c===void 0)throw new Error("File path is undefined.");if(c===f)continue;let h=c;e.some(({filePath:p,filePathOriginal:d})=>p!==c&&d?.toLowerCase()===c.toLowerCase())&&(h=Gw(c),o.set(h,c)),n||await r.rename(f,h)}for(const[l,c]of o)n||await r.rename(l,c)}return e.sort((a,o)=>a.filePath.localeCompare(o.filePath)),e}s(Md,"renameNotes");const Ud={...Re};async function DL(e,t){const{allFilePaths:n,basePath:r,dryRun:i,fetchAdapter:u=dr(),fileAdapter:a=await An(),manageFilenames:o,maxFilenameLength:l,namespace:c,obsidianVault:f,strictLineBreaks:h,syncMediaAssets:p}=xe(Ud,t??{}),d=e.map(C=>et(C)),E=r===void 0?void 0:et(r),g=n.map(C=>et(C)),D=zt(c),A=await ko(d,{allFilePaths:g,basePath:E,fetchAdapter:u,fileAdapter:a,namespace:D,obsidianVault:f,strictLineBreaks:h,syncMediaAssets:p}),y=await Md(A,{dryRun:i,fileAdapter:a,manageFilenames:o,maxFilenameLength:l});return{dryRun:i,notes:y}}s(DL,"renameFiles");const _o={css:q4,...Re},CL={...Re};async function TL(e){const{ankiConnectOptions:t}=xe(_o,e??{}),n=new $n(t);if(await Er(n)==="ankiUnreachable")throw new Error("Anki is unreachable. Is Anki running?");const i=new Set;for(const u of Ii){const a=await Fw(n,u);i.add(a)}if(i.size===0)throw new Error("No CSS found in any Yanki model.");if(i.size>1)throw new Error("Expected all Yanki models to have identical CSS.");return[...i][0]}s(TL,"getStyle");async function yL(e){const t=performance.now(),{ankiConnectOptions:n,ankiWeb:r,css:i,dryRun:u}=xe(_o,e??{}),a=new $n(n);if(await Er(a)==="ankiUnreachable")throw new Error("Anki is unreachable. Is Anki running?");const l=[];for(const f of Ii){const h=await bm(a,f,i,u);l.push({action:h?"updated":"unchanged",name:f})}const c=l.some(f=>f.action!=="unchanged");return!u&&r&&(c||Bu)&&await Sa(a),{ankiWeb:r,dryRun:u,duration:performance.now()-t,models:l}}s(yL,"setStyle");function bL(e,t=!1){const n=[],r=e.models.filter(u=>u.action==="unchanged"),i=e.models.filter(u=>u.action==="updated");if(n.push(`${e.dryRun?"Will":"Successfully"} update ${i.length} ${sn("model",i.length)} and left ${r.length} ${sn("model",r.length)} unchanged${e.dryRun?"":` in ${as(e.duration)}`}.`),t){if(i.length>0){n.push("",e.dryRun?"Models to update:":"Updated models:");for(const u of i)n.push(` ${u.name}`)}if(r.length>0){n.push("",e.dryRun?"Models unchanged:":"Unchanged models:");for(const u of r)n.push(` ${u.name}`)}}return n.join(`
|
|
955
|
-
`)}s(bL,"formatSetStyleResult");async function kL(e,t){const[n,r]=_L(e),i=e.split(/\r?\n/);if(n===void 0||r===void 0)return t===void 0?e:["---",Ld({noteId:t}).trim(),`---
|
|
956
|
-
`,...i].join(`
|
|
957
|
-
`);const u=i.slice(n+1,r).join(`
|
|
958
|
-
`),a=await vd(u)??{};if(t===void 0){if(delete a.noteId,Object.keys(a).length===0){const l=i.slice(r+1);return l[0].trim()===""?l.slice(1).join(`
|
|
959
|
-
`):l.join(`
|
|
960
|
-
`)}}else a.noteId=t;const o=Ld(a,{lineWidth:0}).trim();return[...i.slice(0,n+1),o,...i.slice(r)].join(`
|
|
961
|
-
`)}s(kL,"setNoteIdInFrontmatter");function _L(e){const t=e.split(/\r?\n/);if(!t.join("").trim().startsWith("---"))return[void 0,void 0];const n=t.findIndex(i=>i.startsWith("---")),r=t.findIndex((i,u)=>u>n&&i.startsWith("---"));return n===-1||r===-1?[void 0,void 0]:[n,r]}s(_L,"getFrontmatterRange");const Bo={...Re};async function Hd(e,t){const n=performance.now(),r=structuredClone(e),{ankiConnectOptions:i,ankiWeb:u,checkDatabase:a,dryRun:o,namespace:l,strictMatching:c}=xe(Bo,t??{}),f=zt(l),h=[],p=new $n(i);if(await Er(p)==="ankiUnreachable")return{ankiWeb:u,deletedDecks:[],deletedMedia:[],dryRun:o,duration:performance.now()-n,fixedDatabase:!1,namespace:f,synced:r.map(x=>({action:"ankiUnreachable",note:x}))};for(const x of r)x.deckName===""&&(x.deckName=z4);const E=await Ba(p,"*"),g=E.filter(x=>x.fields.YankiNamespace===f);for(const x of r){if(x.noteId===void 0)continue;const w=BL(r,x.noteId);if(w.length<=1)continue;const N=g.find(M=>M.noteId===x.noteId),$=SL(w,N);for(const M of w)M!==$&&(M.noteId=void 0)}const D=new Set(r.filter(x=>x.noteId!==void 0&&g.some(w=>x.noteId===w.noteId)).map(x=>x.noteId));for(const x of r){let w=E.find(N=>N.noteId===x.noteId);if(w?.fields.YankiNamespace!==f&&(x.noteId=void 0,w=void 0),w===void 0)x.noteId=c?void 0:wL(x,g,D),x.noteId===void 0?(x.noteId=await _a(p,{...x,noteId:void 0},o),h.push({action:"created",note:x})):h.push({action:"matched",note:x});else{if(w.noteId===void 0)throw new Error("Remote note ID is undefined");const N=await Dm(p,x,w,o);h.push({action:N?"updated":"unchanged",note:x})}if(x.noteId===void 0)throw new Error("Note ID is undefined");D.add(x.noteId)}const A=g.filter(x=>!r.some(w=>w.noteId===x.noteId));await Am(p,A,o);for(const x of A)h.push({action:"deleted",note:x});const y=[],C=[];for(const x of h)x.action==="deleted"?C.push(x.note):y.push(x.note);const F=await ym(p,y,g,o);let v=!1;if(a){const x=g.filter(w=>h.some(N=>N.action==="updated"&&N.note.noteId===w.noteId&&N.note.modelName!==w.modelName));if(x.length>0){const w=x.flatMap(({cards:N})=>N??[]);try{await p.card.cardsInfo({cards:w})}catch{v=!0,await p.graphical.guiCheckDatabase()}}}const B=await _m(p,y,f,o),L=F.length>0||h.some(x=>x.action!=="unchanged");return!o&&u&&(L||Bu)&&await Sa(p),{ankiWeb:u,deletedDecks:F,deletedMedia:B,dryRun:o,duration:performance.now()-n,fixedDatabase:v,namespace:f,synced:h}}s(Hd,"syncNotes");function BL(e,t){return e.filter(n=>n.noteId===void 0?!1:n.noteId===t)}s(BL,"findNotesWithDuplicateIds");function SL(e,t){return e.find(n=>n.fields.Front===t?.fields.Front&&n.fields.Back===t.fields.Back&&n.fields.Extra===t.fields.Extra)??e[0]}s(SL,"selectNoteToKeep");function wL(e,t,n){return t.find(i=>i.noteId!==void 0&&!n.has(i.noteId)&&Sw(e,i,!1))?.noteId??void 0}s(wL,"findRemoteContentMatchId");const $d={...Re,...Bo};async function FL(e,t){const n=performance.now(),{allFilePaths:r,ankiConnectOptions:i,ankiWeb:u,basePath:a,checkDatabase:o,dryRun:l,fetchAdapter:c=dr(),fileAdapter:f=await An(),manageFilenames:h,maxFilenameLength:p,namespace:d,obsidianVault:E,strictLineBreaks:g,strictMatching:D,syncMediaAssets:A}=xe($d,t??{}),y=e.map(Z=>et(Z)),C=a===void 0?void 0:et(a),F=r.map(Z=>et(Z)),v=zt(d),B=await ko(y,{allFilePaths:F,basePath:C,fetchAdapter:c,fileAdapter:f,namespace:v,obsidianVault:E,strictLineBreaks:g,syncMediaAssets:A}),L=await Md(B,{dryRun:l,fileAdapter:f,manageFilenames:h,maxFilenameLength:p});if(E!==void 0&&L.some(re=>re.filePath!==re.filePathOriginal)){const re=L.map(_=>_.filePath),ge=F.map(_=>{const be=L.find(Ke=>Ke.filePathOriginal===_);return be?be.filePath:_}),Me=await ko(re,{allFilePaths:ge,basePath:C,fetchAdapter:c,fileAdapter:f,namespace:v,obsidianVault:E,strictLineBreaks:g,syncMediaAssets:A});for(const[_,be]of L.entries())be.note=Me[_].note}const x=L.map(Z=>Z.note),{deletedDecks:w,deletedMedia:N,fixedDatabase:$,synced:M}=await Hd(x,{ankiConnectOptions:i,ankiWeb:u,checkDatabase:o,dryRun:l,namespace:v,strictMatching:D}),j=M.filter(Z=>Z.action!=="deleted");for(const[Z,re]of L.entries()){const ge=j[Z];if((re.note.noteId===void 0||re.note.noteId!==ge.note.noteId)&&ge.action!=="ankiUnreachable"){const Me=await kL(re.markdown,ge.note.noteId);l||await f.writeFile(re.filePath,Me)}ge.filePath=re.filePath,ge.filePathOriginal=re.filePathOriginal}const W=[...M.filter(Z=>Z.action==="deleted").map(Z=>({action:"deleted",filePath:void 0,filePathOriginal:void 0,note:Z.note})),...j].sort((Z,re)=>(Z.filePath??"").localeCompare(re.filePath??""));return{ankiWeb:u,deletedDecks:w,deletedMedia:N,dryRun:l,duration:performance.now()-n,fixedDatabase:$,namespace:v,synced:W}}s(FL,"syncFiles");function NL(e,t=!1){const n=[],{synced:r}=e,i=r.reduce((l,c)=>(l[c.action]=(l[c.action]||0)+1,l),{}),u=r.filter(l=>l.action!=="deleted").length,a=r.filter(l=>l.filePath!==l.filePathOriginal).length,o=i.ankiUnreachable>0;if(n.push(`${e.dryRun?"Will sync":o?"Failed to sync":"Successfully synced"} ${u} ${sn("note",u)} to Anki${e.dryRun?"":` in ${as(e.duration)}`}.`),t){n.push("",e.dryRun?"Sync Plan Summary:":"Sync Summary:");for(const[l,c]of Object.entries(i))n.push(` ${ku(l)}: ${c}`);a>0&&n.push("",`Local notes renamed: ${a}`),e.deletedDecks.length>0&&n.push("",`Decks pruned: ${e.deletedDecks.length}`),e.deletedMedia.length>0&&n.push("",`Media assets deleted: ${e.deletedMedia.length}`),e.dryRun||n.push("",`Database automatically fixed: ${e.fixedDatabase?"Yes":"No"}`),n.push("",e.dryRun?"Sync Plan Details:":"Sync Details:");for(const{action:l,filePath:c,note:f}of r)c===void 0?n.push(` Note ID ${f.noteId} ${ku(l)} (From Anki)`):n.push(` Note ID ${f.noteId} ${ku(l)} ${c}`)}return n.join(`
|
|
962
|
-
`)}s(NL,"formatSyncFilesResult");export{Sm as a,vw as b,Nw as c,Bm as d,Ud as e,xw as f,CL as g,_o as h,bL as i,TL as j,$d as k,Iw as l,NL as m,FL as n,Bo as o,Hd as p,Rd as q,DL as r,yL as s,Pd as t,sw as u,iw as v,ki as w,Re as x,et as y};
|