import { f as fallback, w as writable, g as get } from './async-Djx13DAD.js';
import { s as store_get, u as unsubscribe_stores, c as bind_props, d as attr_class, e as ensure_array_like, a as attr, g as attr_style, j as stringify, i as slot, f as html, k as clsx } from './index-B7gr0Dsc.js';
import './2-CeYbpaU1.js';
import { g } from './utils.svelte-D8Xdzglu.js';
import { u as u$1 } from './index6-vb2nI4_V.js';
import { c as createEventDispatcher, o as onDestroy, t as tick } from './index-server-lqjMX237.js';
import { u } from './index9-7JZOG94_.js';
import { e as ee } from './Upload2-BHtWS_cp.js';
import './MarkdownCode.svelte_svelte_type_style_lang-DJRtJayx.js';
import { P } from './MarkdownCode-zMHESTz4.js';
import { x } from './Checkbox-psqJRT1S.js';
import { e } from './Check-THd8EJll.js';
import { h } from './Copy-DNPvPwdp.js';
import { w } from './IconButton-7VBZdgpA.js';
import { v } from './FullscreenButton-DPSRpBkM.js';
import q from './Example14-BDZafG2b.js';
import { s as setContext } from './context-BZS6UlnY.js';
import { e as escape_html } from './escaping-CBnpiEl5.js';
import './uneval-DjLoL4oF.js';
import './clone-BLo8hHdj.js';
import './index5-BoOEKc6P.js';
import './dev-fallback-Bc5Ork7Y.js';
import './prism-python-BaDPvmdn.js';
import './index35-D6cyUa2I.js';
import 'path';
import 'url';
import 'fs';
import './Maximize-DxOGYNPn.js';

var Yo=Object.defineProperty,ia=n=>{throw TypeError(n)},Xo=(n,e,t)=>e in n?Yo(n,e,{enumerable:true,configurable:true,writable:true,value:t}):n[e]=t,Me=(n,e,t)=>Xo(n,typeof e!="symbol"?e+"":e,t),ci=(n,e,t)=>e.has(n)||ia("Cannot "+t),Tn=(n,e,t)=>(ci(n,e,"read from private field"),e.get(n)),sa=(n,e,t)=>e.has(n)?ia("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),Jo=(n,e,t,l)=>(ci(n,e,"write to private field"),e.set(n,t),t),ei=(n,e,t)=>(ci(n,e,"access private method"),t),Rn,ti,ra,jt;const di=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;class Wn{constructor(e){Me(this,"_listeners","WeakMap"in di?new WeakMap:void 0),Me(this,"_observer"),Me(this,"options"),this.options=e;}observe(e,t){return this._listeners.set(e,t),this._getObserver().observe(e,this.options),()=>{this._listeners.delete(e),this._observer.unobserve(e);}}_getObserver(){return this._observer??(this._observer=new ResizeObserver(e=>{var t;for(const l of e)Wn.entries.set(l.target,l),(t=this._listeners.get(l.target))==null||t(l);}))}}Wn.entries="WeakMap"in di?new WeakMap:void 0;new Wn({box:"content-box"});Promise.resolve();const pu="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(pu);function mi(){return {async:false,breaks:false,extensions:null,gfm:true,hooks:null,pedantic:false,renderer:null,silent:false,tokenizer:null,walkTokens:null}}let ln=mi();function wa(n){ln=n;}const ka=/[&<>"']/,vu=new RegExp(ka.source,"g"),va=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,yu=new RegExp(va.source,"g"),Du={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wi=n=>Du[n];function ht(n,e){if(e){if(ka.test(n))return n.replace(vu,Wi)}else if(va.test(n))return n.replace(yu,Wi);return n}const Eu=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Fu(n){return n.replace(Eu,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const Au=/(^|[^\[])\^/g;function qe(n,e){let t=typeof n=="string"?n:n.source;e=e||"";const l={replace:(i,r)=>{let s=typeof r=="string"?r:r.source;return s=s.replace(Au,"$1"),t=t.replace(i,s),l},getRegex:()=>new RegExp(t,e)};return l}function Vi(n){try{n=encodeURI(n).replace(/%25/g,"%");}catch{return null}return n}const On={exec:()=>null};function Zi(n,e){const t=n.replace(/\|/g,(r,s,a)=>{let o=false,c=s;for(;--c>=0&&a[c]==="\\";)o=!o;return o?"|":" |"}),l=t.split(/ \|/);let i=0;if(l[0].trim()||l.shift(),l.length>0&&!l[l.length-1].trim()&&l.pop(),e)if(l.length>e)l.splice(e);else for(;l.length<e;)l.push("");for(;i<l.length;i++)l[i]=l[i].trim().replace(/\\\|/g,"|");return l}function ul(n,e,t){const l=n.length;if(l===0)return "";let i=0;for(;i<l&&n.charAt(l-i-1)===e;)i++;return n.slice(0,l-i)}function Cu(n,e){if(n.indexOf(e[1])===-1)return  -1;let t=0;for(let l=0;l<n.length;l++)if(n[l]==="\\")l++;else if(n[l]===e[0])t++;else if(n[l]===e[1]&&(t--,t<0))return l;return  -1}function Ki(n,e,t,l){const i=e.href,r=e.title?ht(e.title):null,s=n[1].replace(/\\([\[\]])/g,"$1");if(n[0].charAt(0)!=="!"){l.state.inLink=true;const a={type:"link",raw:t,href:i,title:r,text:s,tokens:l.inlineTokens(s)};return l.state.inLink=false,a}return {type:"image",raw:t,href:i,title:r,text:ht(s)}}function Su(n,e){const t=n.match(/^(\s+)(?:```)/);if(t===null)return e;const l=t[1];return e.split(`
`).map(i=>{const r=i.match(/^\s+/);if(r===null)return i;const[s]=r;return s.length>=l.length?i.slice(l.length):i}).join(`
`)}class Sl{constructor(e){Me(this,"options"),Me(this,"rules"),Me(this,"lexer"),this.options=e||ln;}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return {type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const l=t[0].replace(/^ {1,4}/gm,"");return {type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?l:ul(l,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const l=t[0],i=Su(l,t[3]||"");return {type:"code",raw:l,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let l=t[2].trim();if(/#$/.test(l)){const i=ul(l,"#");(this.options.pedantic||!i||/ $/.test(i))&&(l=i.trim());}return {type:"heading",raw:t[0],depth:t[1].length,text:l,tokens:this.lexer.inline(l)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return {type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let l=t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
    $1`);l=ul(l.replace(/^ *>[ \t]?/gm,""),`
`);const i=this.lexer.state.top;this.lexer.state.top=true;const r=this.lexer.blockTokens(l);return this.lexer.state.top=i,{type:"blockquote",raw:t[0],tokens:r,text:l}}}list(e){let t=this.rules.block.list.exec(e);if(t){let l=t[1].trim();const i=l.length>1,r={type:"list",raw:"",ordered:i,start:i?+l.slice(0,-1):"",loose:false,items:[]};l=i?`\\d{1,9}\\${l.slice(-1)}`:`\\${l}`,this.options.pedantic&&(l=i?l:"[*+-]");const s=new RegExp(`^( {0,3}${l})((?:[	 ][^\\n]*)?(?:\\n|$))`);let a="",o="",c=false;for(;e;){let u=false;if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;a=t[0],e=e.substring(a.length);let f=t[2].split(`
`,1)[0].replace(/^\t+/,w=>" ".repeat(3*w.length)),_=e.split(`
`,1)[0],h=0;this.options.pedantic?(h=2,o=f.trimStart()):(h=t[2].search(/[^ ]/),h=h>4?1:h,o=f.slice(h),h+=t[1].length);let v=false;if(!f&&/^ *$/.test(_)&&(a+=_+`
`,e=e.substring(_.length+1),u=true),!u){const w=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),m=new RegExp(`^ {0,${Math.min(3,h-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),g=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:\`\`\`|~~~)`),D=new RegExp(`^ {0,${Math.min(3,h-1)}}#`);for(;e;){const k=e.split(`
`,1)[0];if(_=k,this.options.pedantic&&(_=_.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),g.test(_)||D.test(_)||w.test(_)||m.test(e))break;if(_.search(/[^ ]/)>=h||!_.trim())o+=`
`+_.slice(h);else {if(v||f.search(/[^ ]/)>=4||g.test(f)||D.test(f)||m.test(f))break;o+=`
`+_;}!v&&!_.trim()&&(v=true),a+=k+`
`,e=e.substring(k.length+1),f=_.slice(h);}}r.loose||(c?r.loose=true:/\n *\n *$/.test(a)&&(c=true));let p=null,E;this.options.gfm&&(p=/^\[[ xX]\] /.exec(o),p&&(E=p[0]!=="[ ] ",o=o.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:a,task:!!p,checked:E,loose:false,text:o,tokens:[]}),r.raw+=a;}r.items[r.items.length-1].raw=a.trimEnd(),r.items[r.items.length-1].text=o.trimEnd(),r.raw=r.raw.trimEnd();for(let u=0;u<r.items.length;u++)if(this.lexer.state.top=false,r.items[u].tokens=this.lexer.blockTokens(r.items[u].text,[]),!r.loose){const f=r.items[u].tokens.filter(h=>h.type==="space"),_=f.length>0&&f.some(h=>/\n.*\n/.test(h.raw));r.loose=_;}if(r.loose)for(let u=0;u<r.items.length;u++)r.items[u].loose=true;return r}}html(e){const t=this.rules.block.html.exec(e);if(t)return {type:"html",block:true,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const l=t[1].toLowerCase().replace(/\s+/g," "),i=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return {type:"def",tag:l,raw:t[0],href:i,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const l=Zi(t[1]),i=t[2].replace(/^\||\| *$/g,"").split("|"),r=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
`):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(l.length===i.length){for(const a of i)/^ *-+: *$/.test(a)?s.align.push("right"):/^ *:-+: *$/.test(a)?s.align.push("center"):/^ *:-+ *$/.test(a)?s.align.push("left"):s.align.push(null);for(const a of l)s.header.push({text:a,tokens:this.lexer.inline(a)});for(const a of r)s.rows.push(Zi(a,s.header.length).map(o=>({text:o,tokens:this.lexer.inline(o)})));return s}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return {type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const l=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return {type:"paragraph",raw:t[0],text:l,tokens:this.lexer.inline(l)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return {type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return {type:"escape",raw:t[0],text:ht(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return !this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=true:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=false),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=true:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=false),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:false,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const l=t[2].trim();if(!this.options.pedantic&&/^</.test(l)){if(!/>$/.test(l))return;const s=ul(l.slice(0,-1),"\\");if((l.length-s.length)%2===0)return}else {const s=Cu(t[2],"()");if(s>-1){const o=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,o).trim(),t[3]="";}}let i=t[2],r="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);s&&(i=s[1],r=s[3]);}else r=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(l)?i=i.slice(1):i=i.slice(1,-1)),Ki(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let l;if((l=this.rules.inline.reflink.exec(e))||(l=this.rules.inline.nolink.exec(e))){const i=(l[2]||l[1]).replace(/\s+/g," "),r=t[i.toLowerCase()];if(!r){const s=l[0].charAt(0);return {type:"text",raw:s,text:s}}return Ki(l,r,l[0],this.lexer)}}emStrong(e,t,l=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||i[3]&&l.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!l||this.rules.inline.punctuation.exec(l)){const s=[...i[0]].length-1;let a,o,c=s,u=0;const f=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,t=t.slice(-1*e.length+s);(i=f.exec(t))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(o=[...a].length,i[3]||i[4]){c+=o;continue}else if((i[5]||i[6])&&s%3&&!((s+o)%3)){u+=o;continue}if(c-=o,c>0)continue;o=Math.min(o,o+c+u);const _=[...i[0]][0].length,h=e.slice(0,s+i.index+_+o);if(Math.min(s,o)%2){const p=h.slice(1,-1);return {type:"em",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}const v=h.slice(2,-2);return {type:"strong",raw:h,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let l=t[2].replace(/\n/g," ");const i=/[^ ]/.test(l),r=/^ /.test(l)&&/ $/.test(l);return i&&r&&(l=l.substring(1,l.length-1)),l=ht(l,true),{type:"codespan",raw:t[0],text:l}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return {type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return {type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let l,i;return t[2]==="@"?(l=ht(t[1]),i="mailto:"+l):(l=ht(t[1]),i=l),{type:"link",raw:t[0],text:l,href:i,tokens:[{type:"text",raw:l,text:l}]}}}url(e){var t;let l;if(l=this.rules.inline.url.exec(e)){let i,r;if(l[2]==="@")i=ht(l[0]),r="mailto:"+i;else {let s;do s=l[0],l[0]=((t=this.rules.inline._backpedal.exec(l[0]))==null?void 0:t[0])??"";while(s!==l[0]);i=ht(l[0]),l[1]==="www."?r="http://"+l[0]:r=l[0];}return {type:"link",raw:l[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let l;return this.lexer.state.inRawBlock?l=t[0]:l=ht(t[0]),{type:"text",raw:t[0],text:l}}}}const Tu=/^(?: *(?:\n|$))+/,Nu=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Lu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Zn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Bu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ya=/(?:[*+-]|\d{1,9}[.)])/,Da=qe(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,ya).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),pi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Iu=/^[^\n]+/,bi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ru=qe(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",bi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Mu=qe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ya).getRegex(),zl="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",wi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ou=qe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",wi).replace("tag",zl).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ea=qe(pi).replace("hr",Zn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zl).getRegex(),zu=qe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ea).getRegex(),ki={blockquote:zu,code:Nu,def:Ru,fences:Lu,heading:Bu,hr:Zn,html:Ou,lheading:Da,list:Mu,newline:Tu,paragraph:Ea,table:On,text:Iu},Yi=qe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Zn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zl).getRegex(),Pu={...ki,table:Yi,paragraph:qe(pi).replace("hr",Zn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Yi).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",zl).getRegex()},ju={...ki,html:qe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",wi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:On,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:qe(pi).replace("hr",Zn).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Da).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Fa=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Hu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Aa=/^( {2,}|\\)\n(?!\s*$)/,qu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Kn="\\p{P}\\p{S}",Uu=qe(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Kn).getRegex(),Gu=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Wu=qe(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Kn).getRegex(),Vu=qe("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Kn).getRegex(),Zu=qe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Kn).getRegex(),Ku=qe(/\\([punct])/,"gu").replace(/punct/g,Kn).getRegex(),Yu=qe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Xu=qe(wi).replace("(?:-->|$)","-->").getRegex(),Ju=qe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Xu).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Tl=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Qu=qe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Tl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ca=qe(/^!?\[(label)\]\[(ref)\]/).replace("label",Tl).replace("ref",bi).getRegex(),Sa=qe(/^!?\[(ref)\](?:\[\])?/).replace("ref",bi).getRegex(),xu=qe("reflink|nolink(?!\\()","g").replace("reflink",Ca).replace("nolink",Sa).getRegex(),vi={_backpedal:On,anyPunctuation:Ku,autolink:Yu,blockSkip:Gu,br:Aa,code:Hu,del:On,emStrongLDelim:Wu,emStrongRDelimAst:Vu,emStrongRDelimUnd:Zu,escape:Fa,link:Qu,nolink:Sa,punctuation:Uu,reflink:Ca,reflinkSearch:xu,tag:Ju,text:qu,url:On},$u={...vi,link:qe(/^!?\[(label)\]\((.*?)\)/).replace("label",Tl).getRegex(),reflink:qe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Tl).getRegex()},ai={...vi,escape:qe(Fa).replace("])","~|])").getRegex(),url:qe(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ec={...ai,br:qe(Aa).replace("{2,}","*").getRegex(),text:qe(ai.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},cl={normal:ki,gfm:Pu,pedantic:ju},Ln={normal:vi,gfm:ai,breaks:ec,pedantic:$u};class Bt{constructor(e){Me(this,"tokens"),Me(this,"options"),Me(this,"state"),Me(this,"tokenizer"),Me(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ln,this.options.tokenizer=this.options.tokenizer||new Sl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:false,inRawBlock:false,top:true};const t={block:cl.normal,inline:Ln.normal};this.options.pedantic?(t.block=cl.pedantic,t.inline=Ln.pedantic):this.options.gfm&&(t.block=cl.gfm,this.options.breaks?t.inline=Ln.breaks:t.inline=Ln.gfm),this.tokenizer.rules=t;}static get rules(){return {block:cl,inline:Ln}}static lex(e,t){return new Bt(t).lex(e)}static lexInline(e,t){return new Bt(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const l=this.inlineQueue[t];this.inlineTokens(l.src,l.tokens);}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(a,o,c)=>o+"    ".repeat(c.length));let l,i,r,s;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(l=a.call({lexer:this},e,t))?(e=e.substring(l.raw.length),t.push(l),true):false))){if(l=this.tokenizer.space(e)){e=e.substring(l.raw.length),l.raw.length===1&&t.length>0?t[t.length-1].raw+=`
`:t.push(l);continue}if(l=this.tokenizer.code(e)){e=e.substring(l.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+l.raw,i.text+=`
`+l.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(l);continue}if(l=this.tokenizer.fences(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.heading(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.hr(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.blockquote(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.list(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.html(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.def(e)){e=e.substring(l.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+l.raw,i.text+=`
`+l.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title});continue}if(l=this.tokenizer.table(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.lheading(e)){e=e.substring(l.raw.length),t.push(l);continue}if(r=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const o=e.slice(1);let c;this.options.extensions.startBlock.forEach(u=>{c=u.call({lexer:this},o),typeof c=="number"&&c>=0&&(a=Math.min(a,c));}),a<1/0&&a>=0&&(r=e.substring(0,a+1));}if(this.state.top&&(l=this.tokenizer.paragraph(r))){i=t[t.length-1],s&&i.type==="paragraph"?(i.raw+=`
`+l.raw,i.text+=`
`+l.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(l),s=r.length!==e.length,e=e.substring(l.raw.length);continue}if(l=this.tokenizer.text(e)){e=e.substring(l.raw.length),i=t[t.length-1],i&&i.type==="text"?(i.raw+=`
`+l.raw,i.text+=`
`+l.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(l);continue}if(e){const a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=true,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let l,i,r,s=e,a,o,c;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex));}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(o||(c=""),o=false,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(l=u.call({lexer:this},e,t))?(e=e.substring(l.raw.length),t.push(l),true):false))){if(l=this.tokenizer.escape(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.tag(e)){e=e.substring(l.raw.length),i=t[t.length-1],i&&l.type==="text"&&i.type==="text"?(i.raw+=l.raw,i.text+=l.text):t.push(l);continue}if(l=this.tokenizer.link(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(l.raw.length),i=t[t.length-1],i&&l.type==="text"&&i.type==="text"?(i.raw+=l.raw,i.text+=l.text):t.push(l);continue}if(l=this.tokenizer.emStrong(e,s,c)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.codespan(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.br(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.del(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.autolink(e)){e=e.substring(l.raw.length),t.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(e))){e=e.substring(l.raw.length),t.push(l);continue}if(r=e,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const f=e.slice(1);let _;this.options.extensions.startInline.forEach(h=>{_=h.call({lexer:this},f),typeof _=="number"&&_>=0&&(u=Math.min(u,_));}),u<1/0&&u>=0&&(r=e.substring(0,u+1));}if(l=this.tokenizer.inlineText(r)){e=e.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(c=l.raw.slice(-1)),o=true,i=t[t.length-1],i&&i.type==="text"?(i.raw+=l.raw,i.text+=l.text):t.push(l);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return t}}class Nl{constructor(e){Me(this,"options"),this.options=e||ln;}code(e,t,l){var i;const r=(i=(t||"").match(/^\S*/))==null?void 0:i[0];return e=e.replace(/\n$/,"")+`
`,r?'<pre><code class="language-'+ht(r)+'">'+(l?e:ht(e,true))+`</code></pre>
`:"<pre><code>"+(l?e:ht(e,true))+`</code></pre>
`}blockquote(e){return `<blockquote>
${e}</blockquote>
`}html(e,t){return e}heading(e,t,l){return `<h${t}>${e}</h${t}>
`}hr(){return `<hr>
`}list(e,t,l){const i=t?"ol":"ul",r=t&&l!==1?' start="'+l+'"':"";return "<"+i+r+`>
`+e+"</"+i+`>
`}listitem(e,t,l){return `<li>${e}</li>
`}checkbox(e){return "<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return `<p>${e}</p>
`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),`<table>
<thead>
`+e+`</thead>
`+t+`</table>
`}tablerow(e){return `<tr>
${e}</tr>
`}tablecell(e,t){const l=t.header?"th":"td";return (t.align?`<${l} align="${t.align}">`:`<${l}>`)+e+`</${l}>
`}strong(e){return `<strong>${e}</strong>`}em(e){return `<em>${e}</em>`}codespan(e){return `<code>${e}</code>`}br(){return "<br>"}del(e){return `<del>${e}</del>`}link(e,t,l){const i=Vi(e);if(i===null)return l;e=i;let r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+l+"</a>",r}image(e,t,l){const i=Vi(e);if(i===null)return l;e=i;let r=`<img src="${e}" alt="${l}"`;return t&&(r+=` title="${t}"`),r+=">",r}text(e){return e}}class yi{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,l){return ""+l}image(e,t,l){return ""+l}br(){return ""}}class It{constructor(e){Me(this,"options"),Me(this,"renderer"),Me(this,"textRenderer"),this.options=e||ln,this.options.renderer=this.options.renderer||new Nl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new yi;}static parse(e,t){return new It(t).parse(e)}static parseInline(e,t){return new It(t).parseInline(e)}parse(e,t=true){let l="";for(let i=0;i<e.length;i++){const r=e[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const s=r,a=this.options.extensions.renderers[s.type].call({parser:this},s);if(a!==false||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){l+=a||"";continue}}switch(r.type){case "space":continue;case "hr":{l+=this.renderer.hr();continue}case "heading":{const s=r;l+=this.renderer.heading(this.parseInline(s.tokens),s.depth,Fu(this.parseInline(s.tokens,this.textRenderer)));continue}case "code":{const s=r;l+=this.renderer.code(s.text,s.lang,!!s.escaped);continue}case "table":{const s=r;let a="",o="";for(let u=0;u<s.header.length;u++)o+=this.renderer.tablecell(this.parseInline(s.header[u].tokens),{header:true,align:s.align[u]});a+=this.renderer.tablerow(o);let c="";for(let u=0;u<s.rows.length;u++){const f=s.rows[u];o="";for(let _=0;_<f.length;_++)o+=this.renderer.tablecell(this.parseInline(f[_].tokens),{header:false,align:s.align[_]});c+=this.renderer.tablerow(o);}l+=this.renderer.table(a,c);continue}case "blockquote":{const s=r,a=this.parse(s.tokens);l+=this.renderer.blockquote(a);continue}case "list":{const s=r,a=s.ordered,o=s.start,c=s.loose;let u="";for(let f=0;f<s.items.length;f++){const _=s.items[f],h=_.checked,v=_.task;let p="";if(_.task){const E=this.renderer.checkbox(!!h);c?_.tokens.length>0&&_.tokens[0].type==="paragraph"?(_.tokens[0].text=E+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&_.tokens[0].tokens[0].type==="text"&&(_.tokens[0].tokens[0].text=E+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:E+" "}):p+=E+" ";}p+=this.parse(_.tokens,c),u+=this.renderer.listitem(p,v,!!h);}l+=this.renderer.list(u,a,o);continue}case "html":{const s=r;l+=this.renderer.html(s.text,s.block);continue}case "paragraph":{const s=r;l+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case "text":{let s=r,a=s.tokens?this.parseInline(s.tokens):s.text;for(;i+1<e.length&&e[i+1].type==="text";)s=e[++i],a+=`
`+(s.tokens?this.parseInline(s.tokens):s.text);l+=t?this.renderer.paragraph(a):a;continue}default:{const s='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return l}parseInline(e,t){t=t||this.renderer;let l="";for(let i=0;i<e.length;i++){const r=e[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const s=this.options.extensions.renderers[r.type].call({parser:this},r);if(s!==false||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){l+=s||"";continue}}switch(r.type){case "escape":{const s=r;l+=t.text(s.text);break}case "html":{const s=r;l+=t.html(s.text);break}case "link":{const s=r;l+=t.link(s.href,s.title,this.parseInline(s.tokens,t));break}case "image":{const s=r;l+=t.image(s.href,s.title,s.text);break}case "strong":{const s=r;l+=t.strong(this.parseInline(s.tokens,t));break}case "em":{const s=r;l+=t.em(this.parseInline(s.tokens,t));break}case "codespan":{const s=r;l+=t.codespan(s.text);break}case "br":{l+=t.br();break}case "del":{const s=r;l+=t.del(this.parseInline(s.tokens,t));break}case "text":{const s=r;l+=t.text(s.text);break}default:{const s='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return l}}class zn{constructor(e){Me(this,"options"),this.options=e||ln;}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}Me(zn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Ta{constructor(...e){sa(this,Rn),Me(this,"defaults",mi()),Me(this,"options",this.setOptions),Me(this,"parse",ei(this,Rn,ti).call(this,Bt.lex,It.parse)),Me(this,"parseInline",ei(this,Rn,ti).call(this,Bt.lexInline,It.parseInline)),Me(this,"Parser",It),Me(this,"Renderer",Nl),Me(this,"TextRenderer",yi),Me(this,"Lexer",Bt),Me(this,"Tokenizer",Sl),Me(this,"Hooks",zn),this.use(...e);}walkTokens(e,t){var l,i;let r=[];for(const s of e)switch(r=r.concat(t.call(this,s)),s.type){case "table":{const a=s;for(const o of a.header)r=r.concat(this.walkTokens(o.tokens,t));for(const o of a.rows)for(const c of o)r=r.concat(this.walkTokens(c.tokens,t));break}case "list":{const a=s;r=r.concat(this.walkTokens(a.items,t));break}default:{const a=s;(i=(l=this.defaults.extensions)==null?void 0:l.childTokens)!=null&&i[a.type]?this.defaults.extensions.childTokens[a.type].forEach(o=>{const c=a[o].flat(1/0);r=r.concat(this.walkTokens(c,t));}):a.tokens&&(r=r.concat(this.walkTokens(a.tokens,t)));}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(l=>{const i={...l};if(i.async=this.defaults.async||i.async||false,l.extensions&&(l.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const s=t.renderers[r.name];s?t.renderers[r.name]=function(...a){let o=r.renderer.apply(this,a);return o===false&&(o=s.apply(this,a)),o}:t.renderers[r.name]=r.renderer;}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=t[r.level];s?s.unshift(r.tokenizer):t[r.level]=[r.tokenizer],r.start&&(r.level==="block"?t.startBlock?t.startBlock.push(r.start):t.startBlock=[r.start]:r.level==="inline"&&(t.startInline?t.startInline.push(r.start):t.startInline=[r.start]));}"childTokens"in r&&r.childTokens&&(t.childTokens[r.name]=r.childTokens);}),i.extensions=t),l.renderer){const r=this.defaults.renderer||new Nl(this.defaults);for(const s in l.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(s==="options")continue;const a=s,o=l.renderer[a],c=r[a];r[a]=(...u)=>{let f=o.apply(r,u);return f===false&&(f=c.apply(r,u)),f||""};}i.renderer=r;}if(l.tokenizer){const r=this.defaults.tokenizer||new Sl(this.defaults);for(const s in l.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const a=s,o=l.tokenizer[a],c=r[a];r[a]=(...u)=>{let f=o.apply(r,u);return f===false&&(f=c.apply(r,u)),f};}i.tokenizer=r;}if(l.hooks){const r=this.defaults.hooks||new zn;for(const s in l.hooks){if(!(s in r))throw new Error(`hook '${s}' does not exist`);if(s==="options")continue;const a=s,o=l.hooks[a],c=r[a];zn.passThroughHooks.has(s)?r[a]=u=>{if(this.defaults.async)return Promise.resolve(o.call(r,u)).then(_=>c.call(r,_));const f=o.call(r,u);return c.call(r,f)}:r[a]=(...u)=>{let f=o.apply(r,u);return f===false&&(f=c.apply(r,u)),f};}i.hooks=r;}if(l.walkTokens){const r=this.defaults.walkTokens,s=l.walkTokens;i.walkTokens=function(a){let o=[];return o.push(s.call(this,a)),r&&(o=o.concat(r.call(this,a))),o};}this.defaults={...this.defaults,...i};}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Bt.lex(e,t??this.defaults)}parser(e,t){return It.parse(e,t??this.defaults)}}Rn=new WeakSet;ti=function(n,e){return (t,l)=>{const i={...l},r={...this.defaults,...i};this.defaults.async===true&&i.async===false&&(r.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),r.async=true);const s=ei(this,Rn,ra).call(this,!!r.silent,!!r.async);if(typeof t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(r.hooks&&(r.hooks.options=r),r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(t):t).then(a=>n(a,r)).then(a=>r.hooks?r.hooks.processAllTokens(a):a).then(a=>r.walkTokens?Promise.all(this.walkTokens(a,r.walkTokens)).then(()=>a):a).then(a=>e(a,r)).then(a=>r.hooks?r.hooks.postprocess(a):a).catch(s);try{r.hooks&&(t=r.hooks.preprocess(t));let a=n(t,r);r.hooks&&(a=r.hooks.processAllTokens(a)),r.walkTokens&&this.walkTokens(a,r.walkTokens);let o=e(a,r);return r.hooks&&(o=r.hooks.postprocess(o)),o}catch(a){return s(a)}}};ra=function(n,e){return t=>{if(t.message+=`
Please report this to https://github.com/markedjs/marked.`,n){const l="<p>An error occurred:</p><pre>"+ht(t.message+"",true)+"</pre>";return e?Promise.resolve(l):l}if(e)return Promise.reject(t);throw t}};const tn=new Ta;function He(n,e){return tn.parse(n,e)}He.options=He.setOptions=function(n){return tn.setOptions(n),He.defaults=tn.defaults,wa(He.defaults),He};He.getDefaults=mi;He.defaults=ln;He.use=function(...n){return tn.use(...n),He.defaults=tn.defaults,wa(He.defaults),He};He.walkTokens=function(n,e){return tn.walkTokens(n,e)};He.parseInline=tn.parseInline;He.Parser=It;He.parser=It.parse;He.Renderer=Nl;He.TextRenderer=yi;He.Lexer=Bt;He.lexer=Bt.lex;He.Tokenizer=Sl;He.Hooks=zn;He.parse=He;He.options;He.setOptions;He.use;He.walkTokens;He.parseInline;It.parse;Bt.lex;const sc=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,rc=Object.hasOwnProperty;class Di{constructor(){this.occurrences,this.reset();}slug(e,t){const l=this;let i=ac(e,t===true);const r=i;for(;rc.call(l.occurrences,i);)l.occurrences[r]++,i=r+"-"+l.occurrences[r];return l.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null);}}function ac(n,e){return typeof n!="string"?"":(e||(n=n.toLowerCase()),n.replace(sc,"").replace(/ /g,"-"))}new Di;var $i=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};var Ra={exports:{}};(function(n){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var t=(function(l){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,s={},a={manual:l.Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function m(g){return g instanceof o?new o(g.type,m(g.content),g.alias):Array.isArray(g)?g.map(m):g.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++r}),m.__id},clone:function m(g,D){D=D||{};var k,b;switch(a.util.type(g)){case "Object":if(b=a.util.objId(g),D[b])return D[b];k={},D[b]=k;for(var N in g)g.hasOwnProperty(N)&&(k[N]=m(g[N],D));return k;case "Array":return b=a.util.objId(g),D[b]?D[b]:(k=[],D[b]=k,g.forEach(function(O,y){k[y]=m(O,D);}),k);default:return g}},getLanguage:function(m){for(;m;){var g=i.exec(m.className);if(g)return g[1].toLowerCase();m=m.parentElement;}return "none"},setLanguage:function(m,g){m.className=m.className.replace(RegExp(i,"gi"),""),m.classList.add("language-"+g);},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(k){var m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(m){var g=document.getElementsByTagName("script");for(var D in g)if(g[D].src==m)return g[D]}return null}},isActive:function(m,g,D){for(var k="no-"+g;m;){var b=m.classList;if(b.contains(g))return  true;if(b.contains(k))return  false;m=m.parentElement;}return !!D}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(m,g){var D=a.util.clone(a.languages[m]);for(var k in g)D[k]=g[k];return D},insertBefore:function(m,g,D,k){k=k||a.languages;var b=k[m],N={};for(var O in b)if(b.hasOwnProperty(O)){if(O==g)for(var y in D)D.hasOwnProperty(y)&&(N[y]=D[y]);D.hasOwnProperty(O)||(N[O]=b[O]);}var I=k[m];return k[m]=N,a.languages.DFS(a.languages,function(K,G){G===I&&K!=m&&(this[K]=N);}),N},DFS:function m(g,D,k,b){b=b||{};var N=a.util.objId;for(var O in g)if(g.hasOwnProperty(O)){D.call(g,O,g[O],k||O);var y=g[O],I=a.util.type(y);I==="Object"&&!b[N(y)]?(b[N(y)]=true,m(y,D,null,b)):I==="Array"&&!b[N(y)]&&(b[N(y)]=true,m(y,D,O,b));}}},plugins:{},highlightAll:function(m,g){a.highlightAllUnder(document,m,g);},highlightAllUnder:function(m,g,D){var k={callback:D,container:m,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),a.hooks.run("before-all-elements-highlight",k);for(var b=0,N;N=k.elements[b++];)a.highlightElement(N,g===true,k.callback);},highlightElement:function(m,g,D){var k=a.util.getLanguage(m),b=a.languages[k];a.util.setLanguage(m,k);var N=m.parentElement;N&&N.nodeName.toLowerCase()==="pre"&&a.util.setLanguage(N,k);var O=m.textContent,y={element:m,language:k,grammar:b,code:O};function I(G){y.highlightedCode=G,a.hooks.run("before-insert",y),y.element.innerHTML=y.highlightedCode,a.hooks.run("after-highlight",y),a.hooks.run("complete",y),D&&D.call(y.element);}if(a.hooks.run("before-sanity-check",y),N=y.element.parentElement,N&&N.nodeName.toLowerCase()==="pre"&&!N.hasAttribute("tabindex")&&N.setAttribute("tabindex","0"),!y.code){a.hooks.run("complete",y),D&&D.call(y.element);return}if(a.hooks.run("before-highlight",y),!y.grammar){I(a.util.encode(y.code));return}if(g&&l.Worker){var K=new Worker(a.filename);K.onmessage=function(G){I(G.data);},K.postMessage(JSON.stringify({language:y.language,code:y.code,immediateClose:true}));}else I(a.highlight(y.code,y.grammar,y.language));},highlight:function(m,g,D){var k={code:m,grammar:g,language:D};if(a.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=a.tokenize(k.code,k.grammar),a.hooks.run("after-tokenize",k),o.stringify(a.util.encode(k.tokens),k.language)},tokenize:function(m,g){var D=g.rest;if(D){for(var k in D)g[k]=D[k];delete g.rest;}var b=new f;return _(b,b.head,m),u(m,b,g,b.head,0),v(b)},hooks:{all:{},add:function(m,g){var D=a.hooks.all;D[m]=D[m]||[],D[m].push(g);},run:function(m,g){var D=a.hooks.all[m];if(!(!D||!D.length))for(var k=0,b;b=D[k++];)b(g);}},Token:o};l.Prism=a;function o(m,g,D,k){this.type=m,this.content=g,this.alias=D,this.length=(k||"").length|0;}o.stringify=function m(g,D){if(typeof g=="string")return g;if(Array.isArray(g)){var k="";return g.forEach(function(I){k+=m(I,D);}),k}var b={type:g.type,content:m(g.content,D),tag:"span",classes:["token",g.type],attributes:{},language:D},N=g.alias;N&&(Array.isArray(N)?Array.prototype.push.apply(b.classes,N):b.classes.push(N)),a.hooks.run("wrap",b);var O="";for(var y in b.attributes)O+=" "+y+'="'+(b.attributes[y]||"").replace(/"/g,"&quot;")+'"';return "<"+b.tag+' class="'+b.classes.join(" ")+'"'+O+">"+b.content+"</"+b.tag+">"};function c(m,g,D,k){m.lastIndex=g;var b=m.exec(D);if(b&&k&&b[1]){var N=b[1].length;b.index+=N,b[0]=b[0].slice(N);}return b}function u(m,g,D,k,b,N){for(var O in D)if(!(!D.hasOwnProperty(O)||!D[O])){var y=D[O];y=Array.isArray(y)?y:[y];for(var I=0;I<y.length;++I){if(N&&N.cause==O+","+I)return;var K=y[I],G=K.inside,J=!!K.lookbehind,_e=!!K.greedy,me=K.alias;if(_e&&!K.pattern.global){var ae=K.pattern.toString().match(/[imsuy]*$/)[0];K.pattern=RegExp(K.pattern.source,ae+"g");}for(var V=K.pattern||K,Q=k.next,ge=b;Q!==g.tail&&!(N&&ge>=N.reach);ge+=Q.value.length,Q=Q.next){var oe=Q.value;if(g.length>m.length)return;if(!(oe instanceof o)){var R=1,q;if(_e){if(q=c(V,ge,m,J),!q||q.index>=m.length)break;var H=q.index,W=q.index+q[0].length,j=ge;for(j+=Q.value.length;H>=j;)Q=Q.next,j+=Q.value.length;if(j-=Q.value.length,ge=j,Q.value instanceof o)continue;for(var z=Q;z!==g.tail&&(j<W||typeof z.value=="string");z=z.next)R++,j+=z.value.length;R--,oe=m.slice(ge,j),q.index-=ge;}else if(q=c(V,0,oe,J),!q)continue;var H=q.index,L=q[0],Y=oe.slice(0,H),x=oe.slice(H+L.length),X=ge+oe.length;N&&X>N.reach&&(N.reach=X);var ue=Q.prev;Y&&(ue=_(g,ue,Y),ge+=Y.length),h(g,ue,R);var et=new o(O,G?a.tokenize(L,G):L,me,L);if(Q=_(g,ue,et),x&&_(g,Q,x),R>1){var Se={cause:O+","+I,reach:X};u(m,g,D,Q.prev,ge,Se),N&&Se.reach>N.reach&&(N.reach=Se.reach);}}}}}}function f(){var m={value:null,prev:null,next:null},g={value:null,prev:m,next:null};m.next=g,this.head=m,this.tail=g,this.length=0;}function _(m,g,D){var k=g.next,b={value:D,prev:g,next:k};return g.next=b,k.prev=b,m.length++,b}function h(m,g,D){for(var k=g.next,b=0;b<D&&k!==m.tail;b++)k=k.next;g.next=k,k.prev=g,m.length-=b;}function v(m){for(var g=[],D=m.head.next;D!==m.tail;)g.push(D.value),D=D.next;return g}if(!l.document)return l.addEventListener&&(a.disableWorkerMessageHandler||l.addEventListener("message",function(m){var g=JSON.parse(m.data),D=g.language,k=g.code,b=g.immediateClose;l.postMessage(a.highlight(k,a.languages[D],D)),b&&l.close();},false)),a;var p=a.util.currentScript();p&&(a.filename=p.src,p.hasAttribute("data-manual")&&(a.manual=true));function E(){a.manual||a.highlightAll();}if(!a.manual){var w=document.readyState;w==="loading"||w==="interactive"&&p&&p.defer?document.addEventListener("DOMContentLoaded",E):window.requestAnimationFrame?window.requestAnimationFrame(E):window.setTimeout(E,16);}return a})(e);n.exports&&(n.exports=t),typeof $i<"u"&&($i.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:true},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:true},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:true,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:true,greedy:true,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:true},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:true},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:true,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:true}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(l){l.type==="entity"&&(l.attributes.title=l.content.replace(/&amp;/,"&"));}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(i,r){var s={};s["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:true,inside:t.languages[r]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var a={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};a["language-"+r]={pattern:/[\s\S]+/,inside:t.languages[r]};var o={};o[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:true,greedy:true,inside:a},t.languages.insertBefore("markup","cdata",o);}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(l,i){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+l+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:true,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:true,alias:[i,"language-"+i],inside:t.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}});}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,(function(l){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;l.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:true,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:true}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:true,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:true},string:{pattern:i,greedy:true},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:true},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:true},punctuation:/[(){};:,]/},l.languages.css.atrule.inside.rest=l.languages.css;var r=l.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"));})(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:true,greedy:true},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:true,greedy:true}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:true},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:true,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:true}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:true},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:true}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:true},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:true,greedy:true,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:true,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:true,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:true,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:true,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:true,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:true,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:true,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:true,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:true,greedy:true,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:true,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,(function(){if(typeof t>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var l="Loading…",i=function(p,E){return "✖ Error "+p+" while fetching file: "+E},r="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},a="data-src-status",o="loading",c="loaded",u="failed",f="pre[data-src]:not(["+a+'="'+c+'"]):not(['+a+'="'+o+'"])';function _(p,E,w){var m=new XMLHttpRequest;m.open("GET",p,true),m.onreadystatechange=function(){m.readyState==4&&(m.status<400&&m.responseText?E(m.responseText):m.status>=400?w(i(m.status,m.statusText)):w(r));},m.send(null);}function h(p){var E=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(p||"");if(E){var w=Number(E[1]),m=E[2],g=E[3];return m?g?[w,Number(g)]:[w,void 0]:[w,w]}}t.hooks.add("before-highlightall",function(p){p.selector+=", "+f;}),t.hooks.add("before-sanity-check",function(p){var E=p.element;if(E.matches(f)){p.code="",E.setAttribute(a,o);var w=E.appendChild(document.createElement("CODE"));w.textContent=l;var m=E.getAttribute("data-src"),g=p.language;if(g==="none"){var D=(/\.(\w+)$/.exec(m)||[,"none"])[1];g=s[D]||D;}t.util.setLanguage(w,g),t.util.setLanguage(E,g);var k=t.plugins.autoloader;k&&k.loadLanguages(g),_(m,function(b){E.setAttribute(a,c);var N=h(E.getAttribute("data-range"));if(N){var O=b.split(/\r\n?|\n/g),y=N[0],I=N[1]==null?O.length:N[1];y<0&&(y+=O.length),y=Math.max(0,Math.min(y-1,O.length)),I<0&&(I+=O.length),I=Math.max(0,Math.min(I,O.length)),b=O.slice(y,I).join(`
`),E.hasAttribute("data-start")||E.setAttribute("data-start",String(y+1));}w.textContent=b,t.highlightElement(w);},function(b){E.setAttribute(a,u),w.textContent=b;});}}),t.plugins.fileHighlight={highlight:function(E){for(var w=(E||document).querySelectorAll(f),m=0,g;g=w[m++];)t.highlightElement(g);}};var v=false;t.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),v=true),t.plugins.fileHighlight.highlight.apply(this,arguments);};})();})(Ra);Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:true,greedy:true},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:true,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:true,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:true},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:true,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:true},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:true},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:true},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:true,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/};Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python;Prism.languages.py=Prism.languages.python;(function(n){var e=/\\(?:[^a-z()[\]]|[a-z*]+)/i,t={"equation-command":{pattern:e,alias:"regex"}};n.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:true},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:t,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:true,inside:t,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:true},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:true},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:true,alias:"class-name"},function:{pattern:e,alias:"selector"},punctuation:/[[\]{}&]/},n.languages.tex=n.languages.latex,n.languages.context=n.languages.latex;})(Prism);(function(n){var e="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",t={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:true,alias:"punctuation",inside:null},l={bash:t,environment:{pattern:RegExp("\\$"+e),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:true,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:true},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:true,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:true,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+e),lookbehind:true,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};n.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:true},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:true,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:true},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+e),lookbehind:true,alias:"constant"}},alias:"variable",lookbehind:true},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:true},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:true,greedy:true,inside:l},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:true,greedy:true,inside:{bash:t}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:true,greedy:true,inside:l},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:true,greedy:true},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:true,inside:{entity:l.entity}}],environment:{pattern:RegExp("\\$?"+e),alias:"constant"},variable:l.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:true},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:true},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:true,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:true},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:true}},t.inside=n.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],r=l.variable[1].inside,s=0;s<i.length;s++)r[i[s]]=n.languages.bash[i[s]];n.languages.sh=n.languages.bash,n.languages.shell=n.languages.bash;})(Prism);Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:true},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:true},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:true},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/});Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:true}});Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:true,greedy:true,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:true},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:true},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:true,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:true,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}});Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/});delete Prism.languages.c.boolean;(function(n){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,t=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return e.source});n.languages.cpp=n.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:true},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:true},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),n.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return t})+")"),lookbehind:true,greedy:true,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:true}}),n.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n.languages.cpp}}}}),n.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:true,greedy:true,inside:n.languages.extend("cpp",{})}}),n.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},n.languages.cpp["base-clause"]);})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:true,greedy:true},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:true,greedy:true},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:true},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:true},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:true},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:true,lookbehind:true},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:true,lookbehind:true,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};(function(n){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,t=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,l={pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:true,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};n.languages.java=n.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:true,greedy:true},"class-name":[l,{pattern:RegExp(/(^|[^\w.])/.source+t+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:true,inside:l.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+t+/[A-Z]\w*\b/.source),lookbehind:true,inside:l.inside}],keyword:e,function:[n.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:true}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:true},constant:/\b[A-Z][A-Z_\d]+\b/}),n.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:true,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:true}}),n.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:true,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":l,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+t+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:true,inside:{namespace:l.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+t+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:true,alias:"static",inside:{namespace:l.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return e.source})),lookbehind:true,inside:{punctuation:/\./}}});})(Prism);Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:true,greedy:true},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/});Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:true}});delete Prism.languages.go["class-name"];(function(n){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,t=0;t<2;t++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return /[^\s\S]/.source}),n.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:true,greedy:true},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:true,greedy:true}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:true},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:true},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:true,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:true,greedy:true,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:true,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:true,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:true,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:true,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:true,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},n.languages.rust["closure-params"].inside.rest=n.languages.rust,n.languages.rust.attribute.inside.string=n.languages.rust.string;})(Prism);(function(n){var e=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,t=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:true,lookbehind:true},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:true,lookbehind:true},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],l=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,r=/[{}\[\](),:;]/;n.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:e,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:true,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:true,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:true,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:true,lookbehind:true},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:true,lookbehind:true},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:true,lookbehind:true},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:true},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:true,lookbehind:true},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:true},{pattern:/(\byield\s+)from\b/i,lookbehind:true},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:true}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:true},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:true,lookbehind:true},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:true,lookbehind:true},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:true},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:true,lookbehind:true,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:true,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:true,lookbehind:true,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:true},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:true,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:true},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:true,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:true,lookbehind:true},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:true,lookbehind:true,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:true,lookbehind:true},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:true,lookbehind:true,inside:{punctuation:/\\/}}],constant:t,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:true,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:true},number:l,operator:i,punctuation:r};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:true,inside:n.languages.php},a=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:true,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:true,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:true},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:true},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:true,inside:{interpolation:s}}];n.languages.insertBefore("php","variable",{string:a,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:true,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:true,inside:{comment:e,string:a,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:true,lookbehind:true},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:true,lookbehind:true,inside:{punctuation:/\\/}}],constant:t,number:l,operator:i,punctuation:r}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),n.hooks.add("before-tokenize",function(o){if(/<\?/.test(o.code)){var c=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;n.languages["markup-templating"].buildPlaceholders(o,"php",c);}}),n.hooks.add("after-tokenize",function(o){n.languages["markup-templating"].tokenizePlaceholders(o,"php");});})(Prism);(function(n){var e=/[*&][^\s[\]{},]+/,t=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,l="(?:"+t.source+"(?:[ 	]+"+e.source+")?|"+e.source+"(?:[ 	]+"+t.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),r=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(a,o){o=(o||"").replace(/m/g,"")+"m";var c=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<value>>/g,function(){return a});return RegExp(c,o)}n.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return l})),lookbehind:true,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<key>>/g,function(){return "(?:"+i+"|"+r+")"})),lookbehind:true,greedy:true,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:true,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:true,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:true,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:true,alias:"important"},string:{pattern:s(r),lookbehind:true,greedy:true},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:true},tag:t,important:e,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml;})(Prism);(function(n){function e(t,l){return "___"+t.toUpperCase()+l+"___"}Object.defineProperties(n.languages["markup-templating"]={},{buildPlaceholders:{value:function(t,l,i,r){if(t.language===l){var s=t.tokenStack=[];t.code=t.code.replace(i,function(a){if(typeof r=="function"&&!r(a))return a;for(var o=s.length,c;t.code.indexOf(c=e(l,o))!==-1;)++o;return s[o]=a,c}),t.grammar=n.languages.markup;}}},tokenizePlaceholders:{value:function(t,l){if(t.language!==l||!t.tokenStack)return;t.grammar=n.languages[l];var i=0,r=Object.keys(t.tokenStack);function s(a){for(var o=0;o<a.length&&!(i>=r.length);o++){var c=a[o];if(typeof c=="string"||c.content&&typeof c.content=="string"){var u=r[i],f=t.tokenStack[u],_=typeof c=="string"?c:c.content,h=e(l,u),v=_.indexOf(h);if(v>-1){++i;var p=_.substring(0,v),E=new n.Token(l,n.tokenize(f,t.grammar),"language-"+l,f),w=_.substring(v+h.length),m=[];p&&m.push.apply(m,s([p])),m.push(E),w&&m.push.apply(m,s([w])),typeof c=="string"?a.splice.apply(a,[o,1].concat(m)):c.content=m;}}else c.content&&s(c.content);}return a}s(t.tokens);}}});})(Prism);new Di;const Sc=n=>{const e={};for(let t=0,l=n.length;t<l;t++){const i=n[t];for(const r in i)e[r]?e[r]=e[r].concat(i[r]):e[r]=i[r];}return e},zc=["abbr","accept","accept-charset","accesskey","action","align","alink","allow","allowfullscreen","alt","anchor","archive","as","async","autocapitalize","autocomplete","autocorrect","autofocus","autopictureinpicture","autoplay","axis","background","behavior","bgcolor","border","bordercolor","capture","cellpadding","cellspacing","challenge","char","charoff","charset","checked","cite","class","classid","clear","code","codebase","codetype","color","cols","colspan","compact","content","contenteditable","controls","controlslist","conversiondestination","coords","crossorigin","csp","data","datetime","declare","decoding","default","defer","dir","direction","dirname","disabled","disablepictureinpicture","disableremoteplayback","disallowdocumentaccess","download","draggable","elementtiming","enctype","end","enterkeyhint","event","exportparts","face","for","form","formaction","formenctype","formmethod","formnovalidate","formtarget","frame","frameborder","headers","height","hidden","high","href","hreflang","hreftranslate","hspace","http-equiv","id","imagesizes","imagesrcset","importance","impressiondata","impressionexpiry","incremental","inert","inputmode","integrity","invisible","ismap","keytype","kind","label","lang","language","latencyhint","leftmargin","link","list","loading","longdesc","loop","low","lowsrc","manifest","marginheight","marginwidth","max","maxlength","mayscript","media","method","min","minlength","multiple","muted","name","nohref","nomodule","nonce","noresize","noshade","novalidate","nowrap","object","open","optimum","part","pattern","ping","placeholder","playsinline","policy","poster","preload","pseudo","readonly","referrerpolicy","rel","reportingorigin","required","resources","rev","reversed","role","rows","rowspan","rules","sandbox","scheme","scope","scopes","scrollamount","scrolldelay","scrolling","select","selected","shadowroot","shadowrootdelegatesfocus","shape","size","sizes","slot","span","spellcheck","src","srclang","srcset","standby","start","step","style","summary","tabindex","target","text","title","topmargin","translate","truespeed","trusttoken","type","usemap","valign","value","valuetype","version","virtualkeyboardpolicy","vlink","vspace","webkitdirectory","width","wrap"],Pc=["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"],jc=["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"];({allowAttributes:Sc([Object.fromEntries(zc.map(n=>[n,["*"]])),Object.fromEntries(Pc.map(n=>[n,["svg:*"]])),Object.fromEntries(jc.map(n=>[n,["math:*"]]))])});const Rf=[{color:"red",primary:600,secondary:100},{color:"green",primary:600,secondary:100},{color:"blue",primary:600,secondary:100},{color:"yellow",primary:500,secondary:100},{color:"purple",primary:600,secondary:100},{color:"teal",primary:600,secondary:100},{color:"orange",primary:600,secondary:100},{color:"cyan",primary:600,secondary:100},{color:"lime",primary:500,secondary:100},{color:"pink",primary:600,secondary:100}],as={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}};Rf.reduce((n,{color:e,primary:t,secondary:l})=>({...n,[e]:{primary:as[e][t],secondary:as[e][l]}}),{});new Intl.Collator(0,{numeric:1}).compare;typeof process<"u"&&process.versions&&process.versions.node;class x1 extends TransformStream{constructor(e={allowCR:false}){super({transform:(t,l)=>{for(t=Tn(this,jt)+t;;){const i=t.indexOf(`
`),r=e.allowCR?t.indexOf("\r"):-1;if(r!==-1&&r!==t.length-1&&(i===-1||i-1>r)){l.enqueue(t.slice(0,r)),t=t.slice(r+1);continue}if(i===-1)break;const s=t[i-1]==="\r"?i-1:i;l.enqueue(t.slice(0,s)),t=t.slice(i+1);}Jo(this,jt,t);},flush:t=>{if(Tn(this,jt)==="")return;const l=e.allowCR&&Tn(this,jt).endsWith("\r")?Tn(this,jt).slice(0,-1):Tn(this,jt);t.enqueue(l);}}),sa(this,jt,"");}}jt=new WeakMap;function $r(n,e){n.component(t=>{let l,i,r=e.position,s$1=e.coords,a=fallback(e.on_click,null);l=r==="column"?s$1[0]===0:s$1[1]===0,i=r==="column"?l?"down":"up":l?"right":"left",t.push(`<button${attr_class(`selection-button selection-button-${stringify(r)} ${stringify(l?`move-${i}`:"")}`,"svelte-fit6p6")}${attr("aria-label",`Select ${r}`)}><span${attr_class(clsx(i),"svelte-fit6p6")}><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="svelte-fit6p6"><path d="m16.707 13.293-4-4a1 1 0 0 0-1.414 0l-4 4A1 1 0 0 0 8 15h8a1 1 0 0 0 .707-1.707z"${attr("data-name",i)}></path></svg></span></button>`),bind_props(e,{position:r,coords:s$1,on_click:a});});}function K0(n,e){n.component(t=>{let l=fallback(e.value,false),i=fallback(e.editable,true),r=e.on_change,s$1=true,a;function o(c){c.push('<div class="bool-cell svelte-1d51ufy" role="button" tabindex="-1">'),x(c,{label:"",interactive:i,get value(){return l},set value(u){l=u,s$1=false;}}),c.push("<!----></div>");}do s$1=true,a=t.copy(),o(a);while(!s$1);t.subsume(a),bind_props(e,{value:l,editable:i,on_change:r});});}function Bi(n,e){n.component(t=>{let l,i,r,s$1=e.edit,a=fallback(e.value,""),o=fallback(e.display_value,null),c=fallback(e.styling,""),u=fallback(e.header,false),f=fallback(e.datatype,"str"),_=e.latex_delimiters,h=fallback(e.line_breaks,true),v=fallback(e.editable,true),p=fallback(e.is_static,false),E=fallback(e.max_chars,null),w=fallback(e.components,()=>({}),true),m=e.i18n,g=fallback(e.is_dragging,false),D=fallback(e.wrap_text,false),k=fallback(e.show_selection_buttons,false),b=e.coords,N=fallback(e.on_select_column,null),O=fallback(e.on_select_row,null),y=e.el;function K(V,Q=null,ge=false){if(ge)return String(V);const oe=String(V);return !Q||Q<=0||oe.length<=Q?oe:oe.slice(0,Q)+"..."}function J(V){}l=!s$1&&E!==null&&E>0,i=v?a:o!==null?o:a,r=l?K(i,E,f==="image"):i;let _e=true,me;function ae(V){if(s$1&&f!=="bool"){V.push("<!--[-->"),V.push(`<textarea${attr("readonly",p,true)}${attr("aria-readonly",p)}${attr("aria-label",p?"Cell is read-only":"Edit cell")} tabindex="-1"${attr_class("svelte-odwpey",void 0,{header:u})}>`);const Q=escape_html(a);Q&&V.push(`${Q}`),V.push("</textarea>");}else V.push("<!--[!-->");V.push("<!--]--> "),f==="bool"&&typeof a=="boolean"?(V.push("<!--[-->"),K0(V,{editable:v,on_change:J,get value(){return a},set value(Q){a=Q,_e=false;}})):(V.push("<!--[!-->"),V.push(`<span tabindex="0" role="button"${attr_style(c)}${attr("data-editable",v)}${attr("data-max-chars",E)}${attr("data-expanded",s$1)} placeholder=" "${attr_class("svelte-odwpey",void 0,{dragging:g,edit:s$1,expanded:s$1,multiline:u,text:f==="str",wrap:D})}>`),f==="image"&&w.image?(V.push("<!--[-->"),V.push("<!---->"),w.image?.(V,{value:{url:r},show_label:false,label:"cell-image",show_download_button:false,i18n:m,gradio:{dispatch:()=>{}}}),V.push("<!---->")):(V.push("<!--[!-->"),f==="html"?(V.push("<!--[-->"),V.push(`${html(r)}`)):(V.push("<!--[!-->"),f==="markdown"?(V.push("<!--[-->"),P(V,{message:r.toLocaleString(),latex_delimiters:_,line_breaks:h,chatbot:false})):(V.push("<!--[!-->"),V.push(`${escape_html(r)}`)),V.push("<!--]-->")),V.push("<!--]-->")),V.push("<!--]--></span>")),V.push("<!--]--> "),k&&b&&N&&O?(V.push("<!--[-->"),$r(V,{position:"column",coords:b,on_click:()=>N(b[1])}),V.push("<!----> "),$r(V,{position:"row",coords:b,on_click:()=>O(b[0])}),V.push("<!---->")):V.push("<!--[!-->"),V.push("<!--]-->");}do _e=true,me=t.copy(),ae(me);while(!_e);t.subsume(me),bind_props(e,{edit:s$1,value:a,display_value:o,styling:c,header:u,datatype:f,latex_delimiters:_,line_breaks:h,editable:v,is_static:p,max_chars:E,components:w,i18n:m,is_dragging:g,wrap_text:D,show_selection_buttons:k,coords:b,on_select_column:N,on_select_row:O,el:y});});}function gl(n,e){let t=fallback(e.index,null),l=fallback(e.is_header,false);l?(n.push("<!--[-->"),n.push('<th tabindex="-1" class="row-number svelte-11p754p"><div class="cell-wrap"><div class="header-content"><div class="header-text"></div></div></div></th>')):(n.push("<!--[!-->"),n.push(`<td class="row-number svelte-11p754p" tabindex="-1"${attr("data-row",t)} data-col="row-number">${escape_html(t!==null?t+1:"")}</td>`)),n.push("<!--]-->"),bind_props(e,{index:t,is_header:l});}function ho(n,e){n.component(t=>{let l=e.on_click;t.push('<button aria-label="Open cell menu" class="cell-menu-button svelte-j6wkfp" aria-haspopup="menu">⋮</button>'),bind_props(e,{on_click:l});});}function Y0(n,e){if(!n||!n.length||!n[0])return [];let t=[...Array(n.length)].map((l,i)=>i);return e.length>0?(e.forEach(l=>{if(l.datatype==="string")switch(l.filter){case "Contains":t=t.filter(i=>n[i][l.col]?.value.toString().includes(l.value));break;case "Does not contain":t=t.filter(i=>!n[i][l.col]?.value.toString().includes(l.value));break;case "Starts with":t=t.filter(i=>n[i][l.col]?.value.toString().startsWith(l.value));break;case "Ends with":t=t.filter(i=>n[i][l.col]?.value.toString().endsWith(l.value));break;case "Is":t=t.filter(i=>n[i][l.col]?.value.toString()===l.value);break;case "Is not":t=t.filter(i=>n[i][l.col]?.value.toString()!==l.value);break;case "Is empty":t=t.filter(i=>n[i][l.col]?.value.toString()==="");break;case "Is not empty":t=t.filter(i=>n[i][l.col]?.value.toString()!=="");break}else if(l.datatype==="number")switch(l.filter){case "=":t=t.filter(i=>!isNaN(Number(n[i][l.col]?.value))&&!isNaN(Number(l.value))?Number(n[i][l.col]?.value)===Number(l.value):false);break;case "≠":t=t.filter(i=>!isNaN(Number(n[i][l.col]?.value))&&!isNaN(Number(l.value))?Number(n[i][l.col]?.value)!==Number(l.value):false);break;case ">":t=t.filter(i=>!isNaN(Number(n[i][l.col]?.value))&&!isNaN(Number(l.value))?Number(n[i][l.col]?.value)>Number(l.value):false);break;case "<":t=t.filter(i=>!isNaN(Number(n[i][l.col]?.value))&&!isNaN(Number(l.value))?Number(n[i][l.col]?.value)<Number(l.value):false);break;case "≥":t=t.filter(i=>!isNaN(Number(n[i][l.col]?.value))&&!isNaN(Number(l.value))?Number(n[i][l.col]?.value)>=Number(l.value):false);break;case "≤":t=t.filter(i=>!isNaN(Number(n[i][l.col]?.value))&&!isNaN(Number(l.value))?Number(n[i][l.col]?.value)<=Number(l.value):false);break;case "Is empty":t=t.filter(i=>n[i][l.col]?.value.toString()==="");break;case "Is not empty":t=t.filter(i=>isNaN(Number(n[i][l.col]?.value))?false:n[i][l.col]?.value.toString()!=="");break}}),t):[...Array(n.length)].map((l,i)=>i)}function X0(n,e,t,l,i,r,s,a,o){let c=null;i&&i[0]in n&&i[1]in n[i[0]]&&(c=n[i[0]][i[1]].id),Q0(n,e,t,l,s,a,o);let u=i;if(c){const[f,_]=r(c,n);u=[f,_];}return {data:n,selected:u}}function J0(n){if(!n||!n.length)return [];let e=n[0].slice();for(let t=0;t<n.length;t++)for(let l=0;l<n[t].length;l++)`${e[l].value}`.length<`${n[t][l].value}`.length&&(e[l]=n[t][l]);return e}function go(n,e,t,l){if(!l.length||!n||!n.length)return;const i=$0(n,l),r=i.map(s=>n[s]);if(n.splice(0,n.length,...r),e){const s=i.map(a=>e[a]);e.splice(0,e.length,...s);}if(t){const s=i.map(a=>t[a]);t.splice(0,t.length,...s);}}function Q0(n,e,t,l,i,r,s){const a=i??n,o=r??e,c=s??t;if(!l.length){n.splice(0,n.length,...a.map(_=>[..._])),e&&o&&e.splice(0,e.length,...o.map(_=>[..._])),t&&c&&t.splice(0,t.length,...c.map(_=>[..._]));return}if(!n||!n.length)return;const u=Y0(a,l),f=u.map(_=>a[_]);if(n.splice(0,n.length,...f),e&&o){const _=u.map(h=>o[h]);e.splice(0,e.length,..._);}if(t&&c){const _=u.map(h=>c[h]);t.splice(0,t.length,..._);}}async function x0(n,e){if(!n||!n.length)return;const l=n.flatMap((a,o)=>a.map((c,u)=>[o,u])).reduce((a,[o,c])=>{a[o]=a[o]||{};const u=String(n[o][c].value);return a[o][c]=u.includes(",")||u.includes('"')||u.includes(`
`)?`"${u.replace(/"/g,'""')}"`:u,a},{}),i=Object.keys(l).sort((a,o)=>+a-+o);if(!i.length)return;const r=Object.keys(l[i[0]]).sort((a,o)=>+a-+o),s=i.map(a=>r.map(o=>l[a][o]||"").join(",")).join(`
`);try{await navigator.clipboard.writeText(s);}catch(a){throw new Error("Failed to copy to clipboard: "+a.message)}}function ea(n,e,t){if(!e.length)return "none";const l=e.find(i=>{const r=i.col;return r<0||r>=t.length?false:t[r]===n});return l?l.direction:"none"}function $0(n,e){if(!n||!n.length||!n[0])return [];if(e.length>0){const t=[...Array(n.length)].map((l,i)=>i);return t.sort((l,i)=>{const r=n[l],s=n[i];for(const{col:a,direction:o}of e){if(!r||!s||a<0||a>=r.length||a>=s.length||!r[a]||!s[a])continue;const c=r[a].value,u=s[a].value,f=c<u?-1:c>u?1:0;if(f!==0)return o==="asc"?f:-f}return 0}),t}return [...Array(n.length)].map((t,l)=>l)}function e1(n,e,t,l,i,r){let s=null;i&&i[0]in n&&i[1]in n[i[0]]&&(s=n[i[0]][i[1]].id),go(n,e,t,l);let a=i;if(s){const[o,c]=r(s,n);a=[o,c];}return {data:n,selected:a}}function t1(n){n.push('<div class="wrapper svelte-4dxgzr" aria-label="Static column"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg></div>');}function n1(n,e){let t=fallback(e.size,16);n.push(`<svg${attr("width",t)}${attr("height",t)} viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 8L8 4L12 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M8 4V12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>`),bind_props(e,{size:t});}function l1(n,e){let t=fallback(e.size,16);n.push(`<svg${attr("width",t)}${attr("height",t)} viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 8L8 12L12 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M8 12V4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg>`),bind_props(e,{size:t});}function yt(n,e){let t=e.icon;t=="add-column-right"?(n.push("<!--[-->"),n.push('<svg viewBox="0 0 24 24" width="16" height="16"><rect x="4" y="6" width="4" height="12" stroke="currentColor" stroke-width="2" fill="none"></rect><path d="M12 12H19M16 8L19 12L16 16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"></path></svg>')):(n.push("<!--[!-->"),t=="add-column-left"?(n.push("<!--[-->"),n.push('<svg viewBox="0 0 24 24" width="16" height="16"><rect x="16" y="6" width="4" height="12" stroke="currentColor" stroke-width="2" fill="none"></rect><path d="M12 12H5M8 8L5 12L8 16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"></path></svg>')):(n.push("<!--[!-->"),t=="add-row-above"?(n.push("<!--[-->"),n.push('<svg viewBox="0 0 24 24" width="16" height="16"><rect x="6" y="16" width="12" height="4" stroke="currentColor" stroke-width="2"></rect><path d="M12 12V5M8 8L12 5L16 8" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"></path></svg>')):(n.push("<!--[!-->"),t=="add-row-below"?(n.push("<!--[-->"),n.push('<svg viewBox="0 0 24 24" width="16" height="16"><rect x="6" y="4" width="12" height="4" stroke="currentColor" stroke-width="2"></rect><path d="M12 12V19M8 16L12 19L16 16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round"></path></svg>')):(n.push("<!--[!-->"),t=="delete-row"?(n.push("<!--[-->"),n.push('<svg viewBox="0 0 24 24" width="16" height="16"><rect x="5" y="10" width="14" height="4" stroke="currentColor" stroke-width="2"></rect><path d="M8 7L16 17M16 7L8 17" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></svg>')):(n.push("<!--[!-->"),t=="delete-column"?(n.push("<!--[-->"),n.push('<svg viewBox="0 0 24 24" width="16" height="16"><rect x="10" y="5" width="4" height="14" stroke="currentColor" stroke-width="2"></rect><path d="M7 8L17 16M17 8L7 16" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></svg>')):(n.push("<!--[!-->"),t=="sort-asc"?(n.push("<!--[-->"),n.push('<svg viewBox="0 0 24 24" width="16" height="16"><path d="M8 16L12 12L16 16" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 12V19" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path><path d="M5 7H19" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></svg>')):(n.push("<!--[!-->"),t=="sort-desc"?(n.push("<!--[-->"),n.push('<svg viewBox="0 0 24 24" width="16" height="16"><path d="M8 12L12 16L16 12" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 16V9" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path><path d="M5 5H19" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></svg>')):(n.push("<!--[!-->"),t=="clear-sort"?(n.push("<!--[-->"),n.push('<svg viewBox="0 0 24 24" width="16" height="16"><path d="M5 5H19" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path><path d="M5 9H15" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path><path d="M5 13H11" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path><path d="M5 17H7" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path><path d="M17 17L21 21M21 17L17 21" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></svg>')):(n.push("<!--[!-->"),t=="filter"?(n.push("<!--[-->"),n.push('<svg viewBox="0 0 24 24" width="16" height="16"><path d="M5 5H19" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path><path d="M8 9H16" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path><path d="M11 13H13" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></svg>')):(n.push("<!--[!-->"),t=="clear-filter"?(n.push("<!--[-->"),n.push('<svg viewBox="0 0 24 24" width="16" height="16"><path d="M5 5H19" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path><path d="M8 9H16" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path><path d="M11 13H13" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path><path d="M17 17L21 21M21 17L17 21" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></svg>')):n.push("<!--[!-->"),n.push("<!--]-->")),n.push("<!--]-->")),n.push("<!--]-->")),n.push("<!--]-->")),n.push("<!--]-->")),n.push("<!--]-->")),n.push("<!--]-->")),n.push("<!--]-->")),n.push("<!--]-->")),n.push("<!--]-->")),n.push("<!--]-->"),bind_props(e,{icon:t});}function ta(n,e){n.component(t=>{let l,i,r,s$1,a,o,c,u=e.value,f=e.i,_=fallback(e.datatype,"str"),h=e.actual_pinned_columns,v=e.header_edit,p=e.selected_header,E=e.headers,w=e.get_cell_width,m=e.handle_header_click,g=e.toggle_header_menu,D=e.end_header_edit,k=fallback(e.sort_columns,()=>[],true),b=fallback(e.filter_columns,()=>[],true),N=e.latex_delimiters,O=e.line_breaks,y=e.max_chars,I=e.editable,K=e.i18n,G=e.el,J=e.is_static,_e=e.col_count,me=fallback(e.data,()=>[],true),ae=fallback(e.on_select_all,void 0);function V(R){return R>=h?"auto":R===0?"0":`calc(${Array(R).fill(0).map((W,j)=>w(j)).join(" + ")})`}l=_e&&_e[1]==="dynamic",i=_==="bool",r=(()=>{if(!i||me.length===0)return "unchecked";const R=me.filter(q=>q[f]?.value===true||q[f]?.value==="true").length;return R===0?"unchecked":R===me.length?"checked":"indeterminate"})(),s$1=k.findIndex(R=>R.col===f),a=b.findIndex(R=>R.col===f),o=s$1!==-1?s$1+1:null,c=s$1!==-1?k[s$1].direction:null;let Q=true,ge;function oe(R){R.push(`<th${attr("aria-sort",ea(u,k,E)==="none"?"none":ea(u,k,E)==="asc"?"ascending":"descending")}${attr_style(`width: ${stringify(w(f))}; left: ${stringify(V(f))};`)}${attr("title",u)}${attr_class("svelte-1yuystx",void 0,{"pinned-column":f<h,"last-pinned":f===h-1,focus:v===f||p===f,sorted:s$1!==-1,filtered:a!==-1})}><div class="cell-wrap svelte-1yuystx"><div class="header-content svelte-1yuystx">`),i&&I&&ae?(R.push("<!--[-->"),R.push('<div class="select-all-checkbox svelte-1yuystx" role="button" tabindex="0">'),x(R,{value:r==="checked",indeterminate:r==="indeterminate",label:"",interactive:true}),R.push("<!----></div>")):R.push("<!--[!-->"),R.push(`<!--]--> <button class="header-button svelte-1yuystx"${attr("title",u)}>`),Bi(R,{max_chars:y,latex_delimiters:N,line_breaks:O,edit:v===f,header:true,editable:I,is_static:J,i18n:K,coords:[f,0],get value(){return u},set value(q){u=q,Q=false;},get el(){return G},set el(q){G=q,Q=false;}}),R.push("<!----> "),s$1!==-1?(R.push("<!--[-->"),R.push('<div class="sort-indicators svelte-1yuystx"><span class="sort-arrow svelte-1yuystx">'),c==="asc"?(R.push("<!--[-->"),n1(R,{size:12})):(R.push("<!--[!-->"),l1(R,{size:12})),R.push("<!--]--></span> "),k.length>1?(R.push("<!--[-->"),R.push(`<span class="sort-priority svelte-1yuystx">${escape_html(o)}</span>`)):R.push("<!--[!-->"),R.push("<!--]--></div>")):R.push("<!--[!-->"),R.push("<!--]--> "),a!==-1?(R.push("<!--[-->"),R.push('<div class="filter-indicators svelte-1yuystx"><span class="filter-icon svelte-1yuystx">'),yt(R,{icon:"filter"}),R.push("<!----></span></div>")):R.push("<!--[!-->"),R.push("<!--]--></button> "),J?(R.push("<!--[-->"),t1(R)):R.push("<!--[!-->"),R.push("<!--]--></div> "),l?(R.push("<!--[-->"),ho(R,{on_click:q=>g(q,f)})):R.push("<!--[!-->"),R.push("<!--]--></div></th>");}do Q=true,ge=t.copy(),oe(ge);while(!Q);t.subsume(ge),bind_props(e,{value:u,i:f,datatype:_,actual_pinned_columns:h,header_edit:v,selected_header:p,headers:E,get_cell_width:w,handle_header_click:m,toggle_header_menu:g,end_header_edit:D,sort_columns:k,filter_columns:b,latex_delimiters:N,line_breaks:O,max_chars:y,editable:I,i18n:K,el:G,is_static:J,col_count:_e,data:me,on_select_all:ae});});}function i1(n,e){const[t,l]=n;return e.some(([i,r])=>i===t&&r===l)}function s1(n,e){const[t,l]=n;if(!e.some(([o,c])=>o===t&&c===l))return "";const i=e.some(([o,c])=>o===t-1&&c===l),r=e.some(([o,c])=>o===t+1&&c===l),s=e.some(([o,c])=>o===t&&c===l-1),a=e.some(([o,c])=>o===t&&c===l+1);return `cell-selected${i?" no-top":""}${r?" no-bottom":""}${s?" no-left":""}${a?" no-right":""}`}function Ii(n,e){const[t,l]=n,[i,r]=e,s=Math.min(t,i),a=Math.max(t,i),o=Math.min(l,r),c=Math.max(l,r),u=[];u.push(n);for(let f=s;f<=a;f++)for(let _=o;_<=c;_++)f===t&&_===l||u.push([f,_]);return u}function r1(n,e,t){if(t.shiftKey&&e.length>0)return Ii(e[e.length-1],n);if(t.metaKey||t.ctrlKey){const l=([r,s])=>r===n[0]&&s===n[1],i=e.findIndex(l);return i===-1?[...e,n]:e.filter((r,s)=>s!==i)}return [n]}function a1(n,e,t){const[l,i]=n;return t&&e.length===1&&e[0][0]===l&&e[0][1]===i}function o1(n,e,t){const[l,i]=n,r=t?-1:1;if(e[l]?.[i+r])return [l,i+r];const s=l+(r>0?1:0),a=l+(r<0?-1:0);return r>0&&e[s]?.[0]?[s,0]:r<0&&e[a]?.[e[0].length-1]?[a,e[0].length-1]:false}function u1(n,e,t){const l=n.key,i={ArrowRight:[0,1],ArrowLeft:[0,-1],ArrowDown:[1,0],ArrowUp:[-1,0]}[l];let r,s;if(n.metaKey||n.ctrlKey)if(l==="ArrowRight")r=e[0],s=t[0].length-1;else if(l==="ArrowLeft")r=e[0],s=0;else if(l==="ArrowDown")r=t.length-1,s=e[1];else if(l==="ArrowUp")r=0,s=e[1];else return  false;else r=e[0]+i[0],s=e[1]+i[1];return r<0&&s<=0?false:t[r]?.[s]?[r,s]:false}function na(n,e){return e.reduce((t,l,i)=>{const r=l.reduce((s,a,o)=>n===a.id?o:s,-1);return r===-1?t:[i,r]},[-1,-1])}function f1(n,e,t,l,i){const[r,s]=n;if(!e[r]?.[s])return {col_pos:"0px",row_pos:void 0};const a=e[r][s].id,o=t[a]?.cell;if(!o)return {col_pos:"0px",row_pos:void 0};const c=o.getBoundingClientRect(),u=i.getBoundingClientRect(),f=`${c.left-u.left+c.width/2}px`,_=`${c.top-u.top+c.height/2}px`;return {col_pos:f,row_pos:_}}function _1(n,e){n.component(t=>{let l,i,r,s$1,a,o,c=e.value,u=e.index,f=e.j,_=e.actual_pinned_columns,h=e.get_cell_width,v=e.handle_cell_click,p=e.handle_blur,E=e.toggle_cell_menu,w=e.is_cell_selected,m=e.should_show_cell_menu,g=e.selected_cells,D=e.copy_flash,k=e.active_cell_menu,b=e.styling,N=e.latex_delimiters,O=e.line_breaks,y=e.datatype,I=e.editing,K=e.max_chars,G=e.editable,J=fallback(e.is_static,false),_e=e.i18n,me=fallback(e.components,()=>({}),true),ae=e.el,V=e.handle_select_column,Q=e.handle_select_row,ge=e.is_dragging,oe=e.display_value,R=fallback(e.wrap,false);function q(H){return H>=_?"auto":H===0?"0":`calc(${Array(H).fill(0).map((Y,x)=>h(x)).join(" + ")})`}l=w([u,f],g||[]),i=i1([u,f],g),r=l.includes("no-top"),s$1=l.includes("no-bottom"),a=l.includes("no-left"),o=l.includes("no-right");let W=true,j;function z(H){H.push(`<td${attr("tabindex",f<_?-1:0)}${attr("data-row",u)}${attr("data-col",f)}${attr("data-testid",`cell-${u}-${f}`)}${attr_style(`width: ${stringify(h(f))}; left: ${stringify(q(f))}; ${stringify(b||"")}`)}${attr_class("svelte-18bs22a",void 0,{"pinned-column":f<_,"last-pinned":f===_-1,flash:D&&i,"cell-selected":i,"no-top":r,"no-bottom":s$1,"no-left":a,"no-right":o,"menu-active":k&&k.row===u&&k.col===f,dragging:ge})}><div class="cell-wrap svelte-18bs22a">`),Bi(H,{display_value:oe!==void 0?oe:String(c),latex_delimiters:N,line_breaks:O,editable:G,is_static:J,edit:I&&I[0]===u&&I[1]===f,datatype:y,max_chars:K,i18n:_e,components:me,show_selection_buttons:g.length===1&&g[0][0]===u&&g[0][1]===f,coords:[u,f],on_select_column:V,on_select_row:Q,is_dragging:ge,wrap_text:R,get value(){return c},set value(L){c=L,W=false;},get el(){return ae.input},set el(L){ae.input=L,W=false;}}),H.push("<!----> "),G&&m([u,f],g,G)?(H.push("<!--[-->"),ho(H,{on_click:L=>E(L,u,f)})):H.push("<!--[!-->"),H.push("<!--]--></div></td>");}do W=true,j=t.copy(),z(j);while(!W);t.subsume(j),bind_props(e,{value:c,index:u,j:f,actual_pinned_columns:_,get_cell_width:h,handle_cell_click:v,handle_blur:p,toggle_cell_menu:E,is_cell_selected:w,should_show_cell_menu:m,selected_cells:g,copy_flash:D,active_cell_menu:k,styling:b,latex_delimiters:N,line_breaks:O,datatype:y,editing:I,max_chars:K,editable:G,is_static:J,i18n:_e,components:me,el:ae,handle_select_column:V,handle_select_row:Q,is_dragging:ge,display_value:oe,wrap:R});});}function d1(n,e){let t=e.on_click;n.push('<button class="add-row-button svelte-1at77md" aria-label="Add row">+</button>'),bind_props(e,{on_click:t});}function h1(n,e){n.component(t=>{let l,i=fallback(e.items,()=>[],true),r=e.max_height,s$1=e.actual_height,a=e.table_scrollbar_width,o=fallback(e.start,0),c=fallback(e.end,20),u=e.selected,f=fallback(e.disable_scroll,false),_=fallback(e.show_scroll_button,false),h=e.viewport,v=fallback(e.label,null);let p="100%",E=30,w=0,g=0,D=0,N,O=0,y=200,I=[];const K=typeof window<"u",G=K?window.requestAnimationFrame:V=>V();async function _e(V){G(async()=>{if(typeof V!="number")return;const Q=typeof V!="number"?false:me(V);Q!==true&&(Q==="back"&&await ae(V,{behavior:"instant"}),Q==="forwards"&&await ae(V,{behavior:"instant"},true));});}function me(V){const Q=N;if(V<o)return "back";if(V>=c-1)return "forwards";const{top:ge}=h.getBoundingClientRect(),{top:oe,bottom:R}=Q.getBoundingClientRect();return oe-ge<37?"back":R-ge>y?"forwards":true}async function ae(V,Q,ge=false){await tick();const oe=E;let R=V*oe;ge&&(R=R-y+oe+g);const q=h.offsetHeight-h.clientHeight;q>0&&(R+=q);const W={top:R,behavior:"smooth",...Q};h.scrollTo(W);}if(y=200,l=i,_e(u),I=K?l.slice(o,c).map((V,Q)=>({index:Q+o,data:V})):l.slice(0,r/l.length*E+1).map((V,Q)=>({index:Q+o,data:V})),t.push(`<svelte-virtual-table-viewport><div><table${attr_class("table svelte-fhd0lr",void 0,{"disable-scroll":f})}${attr_style(`height: ${stringify(p)}; --bw-svt-p-top: ${stringify(O)}px; --bw-svt-p-bottom: ${stringify(w)}px; --bw-svt-head-height: ${stringify(g)}px; --bw-svt-foot-height: ${stringify(D)}px; --bw-svt-avg-row-height: ${stringify(E)}px; --max-height: ${stringify(r)}px`)}>`),v&&v.length!==0?(t.push("<!--[-->"),t.push(`<caption class="sr-only">${escape_html(v)}</caption>`)):t.push("<!--[!-->"),t.push('<!--]--><thead class="thead svelte-fhd0lr"><!--[-->'),slot(t,e,"thead",{},null),t.push('<!--]--></thead><tbody class="tbody svelte-fhd0lr">'),I.length&&I[0].data.length){t.push("<!--[-->"),t.push("<!--[-->");const V=ensure_array_like(I);for(let Q=0,ge=V.length;Q<ge;Q++){let oe=V[Q];t.push("<!--[-->"),slot(t,e,"tbody",{item:oe.data,index:oe.index},()=>{t.push("<tr><td>Missing Table Row</td></tr>");}),t.push("<!--]-->");}t.push("<!--]-->");}else t.push("<!--[!-->");t.push('<!--]--></tbody><tfoot class="tfoot svelte-fhd0lr"><!--[-->'),slot(t,e,"tfoot",{},null),t.push("<!--]--></tfoot></table></div></svelte-virtual-table-viewport>"),bind_props(e,{items:i,max_height:r,actual_height:s$1,table_scrollbar_width:a,start:o,end:c,selected:u,disable_scroll:f,show_scroll_button:_,viewport:h,label:v,scroll_to_index:ae});});}function g1(n,e){n.component(t=>{let l,i,r,s$1=e.x,a=e.y,o=e.on_add_row_above,c=e.on_add_row_below,u=e.on_add_column_left,f=e.on_add_column_right,_=e.row,h=e.col_count,v=e.row_count,p=e.on_delete_row,E=e.on_delete_col,w=e.can_delete_rows,m=e.can_delete_cols,g=fallback(e.on_sort,()=>{}),D=fallback(e.on_clear_sort,()=>{}),k=fallback(e.sort_direction,null),b=fallback(e.sort_priority,null),N=fallback(e.on_filter,()=>{}),O=fallback(e.on_clear_filter,()=>{}),y=fallback(e.filter_active,null),I=fallback(e.editable,true),K=e.i18n,G=null;l=_===-1,i=I&&v[1]==="dynamic",r=I&&h[1]==="dynamic",t.push('<div class="cell-menu svelte-1v4jjjx" role="menu">'),l?(t.push("<!--[-->"),t.push(`<button role="menuitem"${attr_class("svelte-1v4jjjx",void 0,{active:k==="asc"})}>`),yt(t,{icon:"sort-asc"}),t.push(`<!----> ${escape_html(K("dataframe.sort_ascending"))} `),k==="asc"&&b!==null?(t.push("<!--[-->"),t.push(`<span class="priority svelte-1v4jjjx">${escape_html(b)}</span>`)):t.push("<!--[!-->"),t.push(`<!--]--></button> <button role="menuitem"${attr_class("svelte-1v4jjjx",void 0,{active:k==="desc"})}>`),yt(t,{icon:"sort-desc"}),t.push(`<!----> ${escape_html(K("dataframe.sort_descending"))} `),k==="desc"&&b!==null?(t.push("<!--[-->"),t.push(`<span class="priority svelte-1v4jjjx">${escape_html(b)}</span>`)):t.push("<!--[!-->"),t.push('<!--]--></button> <button role="menuitem" class="svelte-1v4jjjx">'),yt(t,{icon:"clear-sort"}),t.push(`<!----> ${escape_html(K("dataframe.clear_sort"))}</button> <button role="menuitem"${attr_class("svelte-1v4jjjx",void 0,{active:y||G})}>`),yt(t,{icon:"filter"}),t.push(`<!----> ${escape_html(K("dataframe.filter"))} `),y?(t.push("<!--[-->"),t.push('<span class="priority svelte-1v4jjjx">1</span>')):t.push("<!--[!-->"),t.push('<!--]--></button> <button role="menuitem" class="svelte-1v4jjjx">'),yt(t,{icon:"clear-filter"}),t.push(`<!----> ${escape_html(K("dataframe.clear_filter"))}</button>`)):t.push("<!--[!-->"),t.push("<!--]--> "),!l&&i?(t.push("<!--[-->"),t.push('<button role="menuitem" aria-label="Add row above" class="svelte-1v4jjjx">'),yt(t,{icon:"add-row-above"}),t.push(`<!----> ${escape_html(K("dataframe.add_row_above"))}</button> <button role="menuitem" aria-label="Add row below" class="svelte-1v4jjjx">`),yt(t,{icon:"add-row-below"}),t.push(`<!----> ${escape_html(K("dataframe.add_row_below"))}</button> `),w?(t.push("<!--[-->"),t.push('<button role="menuitem" class="delete svelte-1v4jjjx" aria-label="Delete row">'),yt(t,{icon:"delete-row"}),t.push(`<!----> ${escape_html(K("dataframe.delete_row"))}</button>`)):t.push("<!--[!-->"),t.push("<!--]-->")):t.push("<!--[!-->"),t.push("<!--]--> "),r?(t.push("<!--[-->"),t.push('<button role="menuitem" aria-label="Add column to the left" class="svelte-1v4jjjx">'),yt(t,{icon:"add-column-left"}),t.push(`<!----> ${escape_html(K("dataframe.add_column_left"))}</button> <button role="menuitem" aria-label="Add column to the right" class="svelte-1v4jjjx">`),yt(t,{icon:"add-column-right"}),t.push(`<!----> ${escape_html(K("dataframe.add_column_right"))}</button> `),m?(t.push("<!--[-->"),t.push('<button role="menuitem" class="delete svelte-1v4jjjx" aria-label="Delete column">'),yt(t,{icon:"delete-column"}),t.push(`<!----> ${escape_html(K("dataframe.delete_column"))}</button>`)):t.push("<!--[!-->"),t.push("<!--]-->")):t.push("<!--[!-->"),t.push("<!--]--></div> "),t.push("<!--[!-->"),t.push("<!--]-->"),bind_props(e,{x:s$1,y:a,on_add_row_above:o,on_add_row_below:c,on_add_column_left:u,on_add_column_right:f,row:_,col_count:h,row_count:v,on_delete_row:p,on_delete_col:E,can_delete_rows:w,can_delete_cols:m,on_sort:g,on_clear_sort:D,sort_direction:k,sort_priority:b,on_filter:N,on_clear_filter:O,filter_active:y,editable:I,i18n:K});});}function m1(n,e$1){n.component(t=>{let l=fallback(e$1.show_fullscreen_button,false),i=fallback(e$1.show_copy_button,false),r=fallback(e$1.show_search,"none"),s$1=fallback(e$1.fullscreen,false),a=e$1.on_copy,o=e$1.on_commit_filter;let c=false,u,f=fallback(e$1.current_search_query,null);function _(){c=true,u&&clearTimeout(u),u=setTimeout(()=>{c=false;},2e3);}async function h$1(){await a(),_();}onDestroy(()=>{u&&clearTimeout(u);}),t.push('<div class="toolbar svelte-1rajnm3" role="toolbar" aria-label="Table actions"><div class="toolbar-buttons svelte-1rajnm3">'),r!=="none"?(t.push("<!--[-->"),t.push(`<div class="search-container svelte-1rajnm3"><input type="text"${attr("value",f||"")}${attr("placeholder",r==="filter"?"Filter...":"Search...")}${attr_class("search-input svelte-1rajnm3",void 0,{"filter-mode":r==="filter"})}${attr("title",`Enter text to ${r} the table`)}/> `),f&&r==="filter"?(t.push("<!--[-->"),t.push('<button class="toolbar-button check-button svelte-1rajnm3" aria-label="Apply filter and update dataframe values" title="Apply filter and update dataframe values">'),e(t),t.push("<!----></button>")):t.push("<!--[!-->"),t.push("<!--]--></div>")):t.push("<!--[!-->"),t.push("<!--]--> "),i?(t.push("<!--[-->"),w(t,{Icon:c?e:h,label:c?"Copied to clipboard":"Copy table data",onclick:h$1})):t.push("<!--[!-->"),t.push("<!--]--> "),l?(t.push("<!--[-->"),v(t,{fullscreen:s$1})):t.push("<!--[!-->"),t.push("<!--]--></div></div>"),bind_props(e$1,{show_fullscreen_button:l,show_copy_button:i,show_search:r,fullscreen:s$1,on_copy:a,on_commit_filter:o,current_search_query:f});});}function p1(n,e){if(e==="number"){const t=Number(n);return isNaN(t)?n:t}if(e==="bool"){if(typeof n=="boolean")return n;if(typeof n=="number")return n!==0;const t=String(n).toLowerCase();return t==="true"||t==="1"?true:t==="false"||t==="0"?false:n}if(e==="date"){const t=new Date(n);return isNaN(t.getTime())?n:t.toISOString()}return n}function $l(n,e,t,l){let i=n||[];if(e[1]==="fixed"&&i.length<e[0]){const r=Array(e[0]-i.length).fill("").map((s,a)=>`${a+i.length}`);i=i.concat(r);}return !i||i.length===0?Array(e[0]).fill(0).map((r,s)=>{const a=l();return t[a]={cell:null,input:null},{id:a,value:JSON.stringify(s+1)}}):i.map((r,s)=>{const a=l();return t[a]={cell:null,input:null},{id:a,value:r??""}})}function b1(n,e,t,l,i=null,r){return !n||n.length===0?[]:n.map((a,o)=>a.map((c,u)=>{const f=l();e[f]={cell:null,input:null},t[f]=c;let _=i?.[o]?.[u];_===void 0&&(_=String(c));const h=Array.isArray(r)?r[u]:r;return {id:f,value:p1(c,h),display_value:_}}))}async function w1(n,e,t,l){if(!e.data||!e.data[t]||!e.data[t][l])return;const i=e.data[t][l].value;e.data[t][l].value=n,e.data[t][l].display_value!==void 0&&(e.data[t][l].display_value=n),i!==n&&e.dispatch&&e.dispatch("change",{data:e.data.map(r=>r.map(s=>s.value)),headers:e.headers?.map(r=>r.value)||[],metadata:null}),e.actions.set_selected([t,l]);}async function k1(n,e,t){if(!e.data||!e.headers||!e.els)return;const l=n.target;!l||l.value===void 0||await w1(l.value,e,t[0],t[1]);}const y1=Symbol("dataframe");function D1(n,e){const t=s=>n.update(a=>({...a,...s(a)})),l=(s,a,o)=>{const c=s[0]?.length?Array(s[0].length).fill(null).map(()=>({value:"",id:a()})):[{value:"",id:a()}],u=[...s];return o!==void 0?u.splice(o,0,c):u.push(c),u},i=(s,a,o,c)=>{const u=[...a,`Header ${a.length+1}`],f=s.map(_=>[..._,{value:"",id:o()}]);return c!==void 0&&(u.splice(c,0,u.pop()),f.forEach(_=>_.splice(c,0,_.pop()))),{data:f,headers:u}},r=(s,a)=>{s&&a&&a.splice(0,a.length,...JSON.parse(JSON.stringify(s)));};return {handle_search:s=>t(a=>({current_search_query:s})),handle_sort:(s,a)=>t(o=>{const c=o.sort_state.sort_columns.filter(f=>f.col!==s);o.sort_state.sort_columns.some(f=>f.col===s&&f.direction===a)||c.push({col:s,direction:a});const u=o.sort_state.initial_data||(e.data&&c.length>0?{data:JSON.parse(JSON.stringify(e.data)),display_value:e.display_value?JSON.parse(JSON.stringify(e.display_value)):null,styling:e.styling?JSON.parse(JSON.stringify(e.styling)):null}:null);return {sort_state:{...o.sort_state,sort_columns:c.slice(-3),initial_data:u}}}),handle_filter:(s,a,o,c)=>t(u=>{const f=u.filter_state.filter_columns.some(h=>h.col===s)?u.filter_state.filter_columns.filter(h=>h.col!==s):[...u.filter_state.filter_columns,{col:s,datatype:a,filter:o,value:c}],_=u.filter_state.initial_data||(e.data&&f.length>0?{data:JSON.parse(JSON.stringify(e.data)),display_value:e.display_value?JSON.parse(JSON.stringify(e.display_value)):null,styling:e.styling?JSON.parse(JSON.stringify(e.styling)):null}:null);return {filter_state:{...u.filter_state,filter_columns:f,initial_data:_}}}),get_sort_status:(s,a)=>{const c=get(n).sort_state.sort_columns.find(u=>a[u.col]===s);return c?c.direction:"none"},sort_data:(s,a,o)=>{const{sort_state:{sort_columns:c}}=get(n);c.length&&go(s,a,o,c);},update_row_order:s=>t(a=>({sort_state:{...a.sort_state,row_order:a.sort_state.sort_columns.length&&s[0]?[...Array(s.length)].map((o,c)=>c).sort((o,c)=>{for(const{col:u,direction:f}of a.sort_state.sort_columns){const _=(s[o]?.[u]?.value??"")<(s[c]?.[u]?.value??"")?-1:1;return f==="asc"?_:-_}return 0}):[...Array(s.length)].map((o,c)=>c)}})),filter_data:s=>{const a=get(n).current_search_query?.toLowerCase();return a?s.filter(o=>o.some(c=>String(c?.value).toLowerCase().includes(a))):s},add_row:l,add_col:i,add_row_at:(s,a,o,c)=>l(s,c,o==="above"?a:a+1),add_col_at:(s,a,o,c,u)=>i(s,a,u,c==="left"?o:o+1),delete_row:(s,a)=>s.length>1?s.filter((o,c)=>c!==a):s,delete_col:(s,a,o)=>a.length>1?{data:s.map(c=>c.filter((u,f)=>f!==o)),headers:a.filter((c,u)=>u!==o)}:{data:s,headers:a},delete_row_at:(s,a)=>s.length>1?[...s.slice(0,a),...s.slice(a+1)]:s,delete_col_at:(s,a,o)=>a.length>1?{data:s.map(c=>[...c.slice(0,o),...c.slice(o+1)]),headers:[...a.slice(0,o),...a.slice(o+1)]}:{data:s,headers:a},trigger_change:async(s,a,o,c,u,f)=>{const _=get(n);if(_.current_search_query)return;const h=a.map(p=>p.value),v=s.map(p=>p.map(E=>E.value));if(!u$1(v,o)||!u$1(h,c)){u$1(h,c)||t(E=>({sort_state:{sort_columns:[],row_order:[],initial_data:null},filter_state:{filter_columns:[],initial_data:null}})),f("change",{data:s.map(E=>E.map(w=>w.value)),headers:h,metadata:null});const p=_.ui_state.selected;p&&f("edit",{index:p,value:s[p[0]][p[1]].value,previous_value:o[p[0]][p[1]]}),u||f("input");}},reset_sort_state:()=>t(s=>{if(s.sort_state.initial_data&&e.data){const a=s.sort_state.initial_data;r(a.data,e.data),r(a.display_value,e.display_value),r(a.styling,e.styling);}return {sort_state:{sort_columns:[],row_order:[],initial_data:null}}}),reset_filter_state:()=>t(s=>{if(s.filter_state.initial_data&&e.data){const a=s.filter_state.initial_data;r(a.data,e.data),r(a.display_value,e.display_value),r(a.styling,e.styling);}return {filter_state:{filter_columns:[],initial_data:null}}}),set_active_cell_menu:s=>t(a=>({ui_state:{...a.ui_state,active_cell_menu:s}})),set_active_header_menu:s=>t(a=>({ui_state:{...a.ui_state,active_header_menu:s}})),set_selected_cells:s=>t(a=>({ui_state:{...a.ui_state,selected_cells:s}})),set_selected:s=>t(a=>({ui_state:{...a.ui_state,selected:s}})),set_editing:s=>t(a=>({ui_state:{...a.ui_state,editing:s}})),clear_ui_state:()=>t(s=>({ui_state:{active_cell_menu:null,active_header_menu:null,selected_cells:[],selected:false,editing:false,header_edit:false,selected_header:false,active_button:null,copy_flash:false}})),set_header_edit:s=>t(a=>({ui_state:{...a.ui_state,selected_cells:[],selected_header:s,header_edit:s}})),set_selected_header:s=>t(a=>({ui_state:{...a.ui_state,selected_header:s,selected:false,selected_cells:[]}})),handle_header_click:(s,a)=>t(o=>({ui_state:{...o.ui_state,active_cell_menu:null,active_header_menu:null,selected:false,selected_cells:[],selected_header:s,header_edit:a?s:false}})),end_header_edit:s=>{["Escape","Enter","Tab"].includes(s)&&t(a=>({ui_state:{...a.ui_state,selected:false,header_edit:false}}));},get_selected_cells:()=>get(n).ui_state.selected_cells,get_active_cell_menu:()=>get(n).ui_state.active_cell_menu,get_active_button:()=>get(n).ui_state.active_button,set_active_button:s=>t(a=>({ui_state:{...a.ui_state,active_button:s}})),set_copy_flash:s=>t(a=>({ui_state:{...a.ui_state,copy_flash:s}})),handle_cell_click:(s,a,o)=>{s.preventDefault(),s.stopPropagation();const c=get(n);if(c.config.show_row_numbers&&o===-1)return;let u=a;if(c.current_search_query&&e.data){const _=[];e.data.forEach((h,v)=>{h.some(p=>String(p?.value).toLowerCase().includes(c.current_search_query?.toLowerCase()||""))&&_.push(v);}),u=_[a]??a;}const f=r1([u,o],c.ui_state.selected_cells,s);t(_=>({ui_state:{..._.ui_state,active_cell_menu:null,active_header_menu:null,selected_header:false,header_edit:false,selected_cells:f,selected:f[0]}})),c.config.editable&&f.length===1?(t(_=>({ui_state:{..._.ui_state,editing:[u,o]}})),tick().then(()=>e.els[e.data[u][o].id]?.input?.focus())):tick().then(()=>{e.parent_element&&e.parent_element.focus();}),e.dispatch?.("select",{index:[u,o],col_value:e.get_column(o),row_value:e.get_row(u),value:e.get_data_at(u,o)});},toggle_cell_menu:(s,a,o)=>{s.stopPropagation();const c=get(n).ui_state.active_cell_menu;if(c?.row===a&&c.col===o)t(u=>({ui_state:{...u.ui_state,active_cell_menu:null}}));else {const u=s.target.closest("td");if(u){const f=u.getBoundingClientRect();t(_=>({ui_state:{..._.ui_state,active_cell_menu:{row:a,col:o,x:f.right,y:f.bottom}}}));}}},toggle_cell_button:(s,a)=>{const o=get(n).ui_state.active_button,c=o?.type==="cell"&&o.row===s&&o.col===a?null:{type:"cell",row:s,col:a};t(u=>({ui_state:{...u.ui_state,active_button:c}}));},handle_select_column:s=>{if(!e.data)return;const a=e.data.map((o,c)=>[c,s]);t(o=>({ui_state:{...o.ui_state,selected_cells:a,selected:a[0],editing:false}})),setTimeout(()=>e.parent_element?.focus(),0);},handle_select_row:s=>{if(!e.data||!e.data[0])return;const a=e.data[0].map((o,c)=>[s,c]);t(o=>({ui_state:{...o.ui_state,selected_cells:a,selected:a[0],editing:false}})),setTimeout(()=>e.parent_element?.focus(),0);},get_next_cell_coordinates:o1,get_range_selection:Ii,move_cursor:u1}}function E1(n){const e=writable({config:n,current_search_query:null,sort_state:{sort_columns:[],row_order:[],initial_data:null},filter_state:{filter_columns:[],initial_data:null},ui_state:{active_cell_menu:null,active_header_menu:null,selected_cells:[],selected:false,editing:false,header_edit:false,selected_header:false,active_button:null,copy_flash:false}}),t={state:e,actions:null};t.actions=D1(e,t);const l=Symbol(`dataframe_${Math.random().toString(36).substring(2)}`);return setContext(l,t),setContext(y1,{instance_id:l,context:t}),t}function F1(n,e){n.component(t=>{var l;let i,r,s$1,a,o,c,u$1,f,_,h,v,p,w=e.datatype,m=fallback(e.label,null),g=fallback(e.show_label,true),D=fallback(e.headers,()=>[],true),k=fallback(e.values,()=>[],true),b=e.col_count,N=e.row_count,O=e.latex_delimiters,y=fallback(e.components,()=>({}),true),I=fallback(e.editable,true),K=fallback(e.wrap,false),G=e.root,J=e.i18n,_e=fallback(e.max_height,500),me=fallback(e.line_breaks,true),ae=fallback(e.column_widths,()=>[],true),V=fallback(e.show_row_numbers,false),Q=e.upload,ge=e.stream_handler,oe=fallback(e.buttons,null),R=fallback(e.value_is_output,false),q=fallback(e.max_chars,void 0),W=fallback(e.show_search,"none"),j=fallback(e.pinned_columns,0),z=fallback(e.static_columns,()=>[],true),H=fallback(e.fullscreen,false);const L=E1({show_fullscreen_button:oe===null?true:oe.includes("fullscreen"),show_copy_button:oe===null?true:oe.includes("copy"),show_search:W,show_row_numbers:V,editable:I,pinned_columns:j,show_label:g,line_breaks:me,wrap:K,max_height:_e,column_widths:ae,max_chars:q,static_columns:z}),{state:Y,actions:x}=L;const X=createEventDispatcher();let ue={},et={},Se=$l(D,b,ue,St),Ct=D,de=[[]],nt,he=[[]],Ze=false,We=[];function St(){return Math.random().toString(36).substring(2,15)}let rt=fallback(e.display_value,null),je=fallback(e.styling,null),Ke=Se.map(Z=>Z.value),Mt=de.map(Z=>Z.map(ke=>ke.value));function Wt(Z,ke){x.handle_sort(Z,ke),Tt(de,rt,je);}function sn(){x.reset_sort_state(),Tt(de,rt,je);}function rn(Z,ke,Ie,ve){x.handle_filter(Z,ke,Ie,ve),zt(de,rt,je);}function ne(){x.reset_filter_state(),zt(de,rt,je);}async function ut(Z,ke=false){!I||a===Z||b[1]!=="dynamic"||x.set_header_edit(Z);}function Yn(Z,ke){Z.target instanceof HTMLAnchorElement||(Z.preventDefault(),Z.stopPropagation(),I&&(x.set_editing(false),x.handle_header_click(ke,I),_t.focus()));}function Xn(Z){I&&(x.end_header_edit(Z.detail.key),_t.focus());}async function Jn(Z){if(_t.focus(),N[1]!=="dynamic")return;const ke=Array(de[0]?.length||D.length).fill(0).map((Ie,ve)=>{const Ne=St();return ue[Ne]={cell:null,input:null},{id:Ne,value:""}});de.length===0?de=[ke]:Z!==void 0&&Z>=0&&Z<=de.length?de.splice(Z,0,ke):de.push(ke),r=[Z!==void 0?Z:de.length-1,0];}async function Dn(Z){if(_t.focus(),b[1]!=="dynamic")return;const ke=x.add_col(de,D,St,Z);ke.data.forEach(Ie=>{Ie.forEach(ve=>{ue[ve.id]||(ue[ve.id]={cell:null,input:null});});}),de=ke.data,D=ke.headers,await tick(),requestAnimationFrame(()=>{ut(Z!==void 0?Z:de[0].length-1,true);const Ie=_t.querySelectorAll("tbody")[1].offsetWidth;_t.querySelectorAll("table")[1].scrollTo({left:Ie});});}let _t,En;function Ot(Z){return `var(--cell-width-${Z})`}let an=k.slice(0,_e/k.length*37).length*37+37,on=0;function Tt(Z,ke,Ie){const ve=e1(Z,ke,Ie,store_get(l??={},"$df_state",Y).sort_state.sort_columns,r,na);de=ve.data,r=ve.selected;}function zt(Z,ke,Ie){const ve=X0(Z,ke,Ie,store_get(l??={},"$df_state",Y).filter_state.filter_columns,r,na,store_get(l??={},"$df_state",Y).filter_state.initial_data?.data,store_get(l??={},"$df_state",Y).filter_state.initial_data?.display_value,store_get(l??={},"$df_state",Y).filter_state.initial_data?.styling);de=ve.data,r=ve.selected;}const cn=Z=>{x.set_copy_flash(Z);};let Vt=[];function xn(Z){const{blur_event:ke,coords:Ie}=Z.detail;k1(ke,L,Ie);}function $n(Z,ke){if(Z.stopPropagation(),u$1&&u$1.col===ke)x.set_active_header_menu(null);else {const Ie=Z.target.closest("th");if(Ie){const ve=Ie.getBoundingClientRect();x.set_active_header_menu({col:ke,x:ve.right,y:ve.bottom});}}}function Fn(Z){if(b[1]!=="dynamic"||de[0].length<=1)return;const ke=x.delete_col_at(de,D,Z);de=ke.data,D=ke.headers,Se=$l(D,b,ue,St),x.set_active_cell_menu(null),x.set_active_header_menu(null),x.set_selected(false),x.set_selected_cells([]),x.set_editing(false);}function Hl(Z){de=x.delete_row_at(de,Z),x.set_active_cell_menu(null),x.set_active_header_menu(null);}let el;function tl(){if(store_get(l??={},"$df_state",Y).current_search_query&&W==="filter"){he.forEach(Ne=>{const lt=[],Ue=[],dt=[];Ne.forEach(Qe=>{lt.push(Qe.value),Ue.push(Qe.display_value!==void 0?Qe.display_value:String(Qe.value)),dt.push(Qe.styling||"");});});({headers:Se.map(Ne=>Ne.value)});x.handle_search(null);}}let An,fn=false;function Zt(Z,ke){const Ie=ke==="above"?Z:Z+1;Jn(Ie),c=null,u$1=null;}function _n(Z,ke){const Ie=ke==="left"?Z:Z+1;Dn(Ie),c=null,u$1=null;}function ql(){x.reset_sort_state();}function Cn(Z,ke){de=de.map(Ie=>{const ve=[...Ie];return ve[Z]&&(ve[Z]={...ve[Z],value:ke}),ve});}let Ft=false;const dn={is_dragging:Ft};function il(Z,ke){return store_get(l??={},"$df_state",Y).current_search_query!==void 0&&he?.[Z]?.[ke]?he[Z][ke].display_value!==void 0?he[Z][ke].display_value:String(he[Z][ke].value):de?.[Z]?.[ke]?de[Z][ke].display_value!==void 0?de[Z][ke].display_value:String(de[Z][ke].value):""}if(i=store_get(l??={},"$df_state",Y).ui_state.selected_cells,r=store_get(l??={},"$df_state",Y).ui_state.selected,s$1=store_get(l??={},"$df_state",Y).ui_state.editing,a=store_get(l??={},"$df_state",Y).ui_state.header_edit,o=store_get(l??={},"$df_state",Y).ui_state.selected_header,c=store_get(l??={},"$df_state",Y).ui_state.active_cell_menu,u$1=store_get(l??={},"$df_state",Y).ui_state.active_header_menu,f=store_get(l??={},"$df_state",Y).ui_state.copy_flash,!u(k,nt)){const Z=k.length===0||k.length===1&&k[0].length===0,ke=nt!==void 0&&(k.length!==nt.length||k[0]&&nt[0]&&k[0].length!==nt[0].length);de=b1(k,ue,et,St,rt,w),nt=JSON.parse(JSON.stringify(k)),Z||ke?x.reset_sort_state():store_get(l??={},"$df_state",Y).sort_state.sort_columns.length>0?Tt(de,rt,je):(x.handle_sort(-1,"asc"),x.reset_sort_state()),store_get(l??={},"$df_state",Y).filter_state.filter_columns.length>0?zt(de,rt,je):x.reset_filter_state(),store_get(l??={},"$df_state",Y).current_search_query&&x.handle_search(null);}if(_=j&&de?.[0]?.length?Math.min(j,de[0].length):0,u(D,Ct)||(Se=$l(D,b,ue,St),Ct=JSON.parse(JSON.stringify(D))),(de||Se||ue)&&(L.data=de,L.headers=Se,L.els=ue,L.display_value=rt,L.styling=je),store_get(l??={},"$df_state",Y).current_search_query!==void 0){const Z=new Map;We=[],de.forEach((Ie,ve)=>{Ie.some(Ne=>String(Ne?.value).toLowerCase().includes(store_get(l??={},"$df_state",Y).current_search_query?.toLowerCase()||""))&&We.push(ve),Ie.forEach((Ne,lt)=>{Z.set(Ne.id,{value:Ne.value,display_value:Ne.display_value!==void 0?Ne.display_value:String(Ne.value),styling:je?.[ve]?.[lt]||""});});}),he=x.filter_data(de).map(Ie=>Ie.map(ve=>{const Ne=Z.get(ve.id);return {...ve,display_value:Ne?.display_value!==void 0?Ne.display_value:String(ve.value),styling:Ne?.styling||""}}));}else We=[];if((de||Se)&&(x.trigger_change(de,Se,Mt,Ke,R,X),Mt=de.map(Z=>Z.map(ke=>ke.value)),Ke=Se.map(Z=>Z.value)),store_get(l??={},"$df_state",Y).filter_state.filter_columns.length>0&&zt(de,rt,je),store_get(l??={},"$df_state",Y).sort_state.sort_columns.length>0&&(Tt(de,rt,je),x.update_row_order(de)),h=J0(de),v=!!r&&r[0],f&&!u(i,Vt)&&cn(false),Vt=i,r!==false&&(el=r),r!==false){const Z=f1(r,de,ue,_t,En);document.documentElement.style.setProperty("--selected-col-pos",Z.col_pos),document.documentElement.style.setProperty("--selected-row-pos",Z.row_pos||"0px");}Ft=dn.is_dragging,p=(()=>{});let Je=true,vt;function sl(Z){Z.push('<div class="table-container svelte-2balj6">'),m&&m.length!==0&&g||(oe===null||oe.includes("fullscreen"))||(oe===null||oe.includes("copy"))||W!=="none"?(Z.push("<!--[-->"),Z.push('<div class="header-row svelte-2balj6">'),m&&m.length!==0&&g?(Z.push("<!--[-->"),Z.push(`<div class="label svelte-2balj6"><p class="svelte-2balj6">${escape_html(m)}</p></div>`)):Z.push("<!--[!-->"),Z.push("<!--]--> "),m1(Z,{show_fullscreen_button:oe===null?true:oe.includes("fullscreen"),fullscreen:H,on_copy:async()=>await x0(de),show_copy_button:oe===null?true:oe.includes("copy"),show_search:W,on_commit_filter:tl,current_search_query:store_get(l??={},"$df_state",Y).current_search_query}),Z.push("<!----></div>")):Z.push("<!--[!-->"),Z.push(`<!--]--> <div${attr_class("table-wrap svelte-2balj6",void 0,{dragging:Ft,"no-wrap":!K,"menu-open":c||u$1})} role="grid" tabindex="0"><table aria-hidden="true" class="svelte-2balj6">`),m&&m.length!==0?(Z.push("<!--[-->"),Z.push(`<caption class="sr-only svelte-2balj6">${escape_html(m)}</caption>`)):Z.push("<!--[!-->"),Z.push('<!--]--><thead class="svelte-2balj6"><tr class="svelte-2balj6">'),V?(Z.push("<!--[-->"),gl(Z,{is_header:true})):Z.push("<!--[!-->"),Z.push("<!--]--><!--[-->");const ke=ensure_array_like(Se);for(let ve=0,Ne=ke.length;ve<Ne;ve++){let{value:lt,id:Ue}=ke[ve];ta(Z,{i:ve,actual_pinned_columns:_,header_edit:a,selected_header:o,headers:D,get_cell_width:Ot,handle_header_click:Yn,toggle_header_menu:$n,end_header_edit:Xn,sort_columns:store_get(l??={},"$df_state",Y).sort_state.sort_columns,filter_columns:store_get(l??={},"$df_state",Y).filter_state.filter_columns,latex_delimiters:O,line_breaks:me,max_chars:q,editable:I,is_static:z.includes(ve),i18n:J,col_count:b,datatype:Array.isArray(w)?w[ve]:w,data:de,on_select_all:Cn,get value(){return Se[ve].value},set value(dt){Se[ve].value=dt,Je=false;},get el(){return ue[Ue].input},set el(dt){ue[Ue].input=dt,Je=false;}});}Z.push('<!--]--></tr></thead><tbody class="svelte-2balj6"><tr class="svelte-2balj6">'),V?(Z.push("<!--[-->"),gl(Z,{index:0})):Z.push("<!--[!-->"),Z.push("<!--]--><!--[-->");const Ie=ensure_array_like(h);for(let ve=0,Ne=Ie.length;ve<Ne;ve++){let{value:lt,id:Ue}=Ie[ve];Z.push('<td tabindex="-1" class="svelte-2balj6"><div class="cell-wrap svelte-2balj6">'),Bi(Z,{value:lt,latex_delimiters:O,line_breaks:me,datatype:Array.isArray(w)?w[ve]:w,edit:false,el:null,editable:I,i18n:J,show_selection_buttons:i.length===1&&i[0][0]===0&&i[0][1]===ve,coords:el,on_select_column:x.handle_select_column,on_select_row:x.handle_select_row,is_dragging:Ft}),Z.push("<!----></div></td>");}Z.push("<!--]--></tr></tbody></table> "),ee(Z,{upload:Q,stream_handler:ge,flex:false,center:false,boundedheight:false,disable_click:true,root:G,aria_label:J("dataframe.drop_to_upload"),get dragging(){return Ze},set dragging(ve){Ze=ve,Je=false;},children:ve=>{ve.push('<div class="table-wrap svelte-2balj6">'),h1(ve,{max_height:_e,selected:v,disable_scroll:c!==null||u$1!==null,label:m,get items(){return he},set items(Ne){he=Ne,Je=false;},get actual_height(){return an},set actual_height(Ne){an=Ne,Je=false;},get table_scrollbar_width(){return on},set table_scrollbar_width(Ne){on=Ne,Je=false;},get viewport(){return An},set viewport(Ne){An=Ne,Je=false;},get show_scroll_button(){return fn},set show_scroll_button(Ne){fn=Ne,Je=false;},$$slots:{thead:Ne=>{Ne.push('<tr slot="thead" class="svelte-2balj6">'),V?(Ne.push("<!--[-->"),gl(Ne,{is_header:true})):Ne.push("<!--[!-->"),Ne.push("<!--]--><!--[-->");const lt=ensure_array_like(Se);for(let Ue=0,dt=lt.length;Ue<dt;Ue++){let{value:Qe,id:hn}=lt[Ue];ta(Ne,{i:Ue,actual_pinned_columns:_,header_edit:a,selected_header:o,headers:D,get_cell_width:Ot,handle_header_click:Yn,toggle_header_menu:$n,end_header_edit:Xn,sort_columns:store_get(l??={},"$df_state",Y).sort_state.sort_columns,filter_columns:store_get(l??={},"$df_state",Y).filter_state.filter_columns,latex_delimiters:O,line_breaks:me,max_chars:q,editable:I,is_static:z.includes(Ue),i18n:J,col_count:b,datatype:Array.isArray(w)?w[Ue]:w,data:de,on_select_all:Cn,get value(){return Se[Ue].value},set value(gn){Se[Ue].value=gn,Je=false;},get el(){return ue[hn].input},set el(gn){ue[hn].input=gn,Je=false;}});}Ne.push("<!--]--></tr>");},tbody:(Ne,{item:lt,index:Ue})=>{Ne.push(`<tr slot="tbody"${attr_class("svelte-2balj6",void 0,{"row-odd":Ue%2===0})}>`),V?(Ne.push("<!--[-->"),gl(Ne,{index:Ue})):Ne.push("<!--[!-->"),Ne.push("<!--]--><!--[-->");const dt=ensure_array_like(lt);for(let Qe=0,hn=dt.length;Qe<hn;Qe++){let{value:gn,id:rl}=dt[Qe];_1(Ne,{display_value:il(Ue,Qe),index:store_get(l??={},"$df_state",Y).current_search_query!==void 0&&We[Ue]!==void 0?We[Ue]:Ue,j:Qe,actual_pinned_columns:_,get_cell_width:Ot,handle_cell_click:(Yt,Ul,Gl)=>p(Yt,Ul,Gl),handle_blur:xn,toggle_cell_menu:x.toggle_cell_menu,is_cell_selected:s1,should_show_cell_menu:a1,selected_cells:i,copy_flash:f,active_cell_menu:c,styling:he[Ue][Qe].styling,latex_delimiters:O,line_breaks:me,datatype:Array.isArray(w)?w[Qe]:w,editing:s$1,max_chars:q,editable:I,is_static:z.includes(Qe),i18n:J,components:y,handle_select_column:x.handle_select_column,handle_select_row:x.handle_select_row,is_dragging:Ft,wrap:K,get value(){return he[Ue][Qe].value},set value(Yt){he[Ue][Qe].value=Yt,Je=false;},get el(){return ue[rl]},set el(Yt){ue[rl]=Yt,Je=false;}});}Ne.push("<!--]--></tr>");}}}),ve.push("<!----></div>");},$$slots:{default:true}}),Z.push("<!----> "),fn?(Z.push("<!--[-->"),Z.push('<button class="scroll-top-button svelte-2balj6">↑</button>')):Z.push("<!--[!-->"),Z.push("<!--]--></div></div> "),de.length===0&&I&&N[1]==="dynamic"?(Z.push("<!--[-->"),d1(Z,{on_click:()=>Jn()})):Z.push("<!--[!-->"),Z.push("<!--]--> "),c||u$1?(Z.push("<!--[-->"),g1(Z,{x:c?.x??u$1?.x??0,y:c?.y??u$1?.y??0,row:u$1?-1:c?.row??0,col_count:b,row_count:N,on_add_row_above:()=>Zt(c?.row??-1,"above"),on_add_row_below:()=>Zt(c?.row??-1,"below"),on_add_column_left:()=>_n(c?.col??u$1?.col??-1,"left"),on_add_column_right:()=>_n(c?.col??u$1?.col??-1,"right"),on_delete_row:()=>Hl(c?.row??-1),on_delete_col:()=>Fn(c?.col??u$1?.col??-1),editable:I,can_delete_rows:!u$1&&de.length>1&&I,can_delete_cols:de.length>0&&de[0]?.length>1&&I,i18n:J,on_sort:u$1?ve=>{u$1&&(Wt(u$1.col,ve),x.set_active_header_menu(null));}:void 0,on_clear_sort:u$1?()=>{sn(),x.set_active_header_menu(null);}:void 0,sort_direction:u$1?store_get(l??={},"$df_state",Y).sort_state.sort_columns.find(ve=>ve.col===(u$1?.col??-1))?.direction??null:null,sort_priority:u$1&&store_get(l??={},"$df_state",Y).sort_state.sort_columns.findIndex(ve=>ve.col===(u$1?.col??-1))+1||null,on_filter:u$1?(ve,Ne,lt)=>{u$1&&(rn(u$1.col,ve,Ne,lt),x.set_active_header_menu(null));}:void 0,on_clear_filter:u$1?()=>{ne(),x.set_active_header_menu(null);}:void 0,filter_active:u$1?store_get(l??={},"$df_state",Y).filter_state.filter_columns.some(ve=>ve.col===(u$1?.col??-1)):null})):Z.push("<!--[!-->"),Z.push("<!--]-->");}do Je=true,vt=t.copy(),sl(vt);while(!Je);t.subsume(vt),l&&unsubscribe_stores(l),bind_props(e,{datatype:w,label:m,show_label:g,headers:D,values:k,col_count:b,row_count:N,latex_delimiters:O,components:y,editable:I,wrap:K,root:G,i18n:J,max_height:_e,line_breaks:me,column_widths:ae,show_row_numbers:V,upload:Q,stream_handler:ge,buttons:oe,value_is_output:R,max_chars:q,show_search:W,pinned_columns:j,static_columns:z,fullscreen:H,display_value:rt,styling:je,reset_sort_state:ql});});}function A1(n,e){n.component(t=>{let l=null;class r extends g{async set_data(h){h.value&&(true),super.set_data(h),h.value&&u$1(h.value,JSON.parse(l))===false&&(l=JSON.stringify(h.value));}}let {$$slots:s,$$events:a,...o}=e,c=new r(o);({i18n:c.i18n,client:c.shared.client,autoscroll:c.shared.autoscroll});t.push("<div></div>");});}const pg=Object.freeze(Object.defineProperty({__proto__:null,BaseDataFrame:F1,BaseExample:q,default:A1},Symbol.toStringTag,{value:"Module"}));

export { pg as I, $i as c };
//# sourceMappingURL=Index20-DSTB371A.js.map
