UNPKG

@anjuna/docs

Version:

Anjuna Documentation Web Components

1 lines 46.5 kB
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function a(e){try{l(r.next(e))}catch(t){s(t)}}function o(e){try{l(r["throw"](e))}catch(t){s(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,o)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(e){return function(t){return l([e,t])}}function l(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(s=a[0]&2?i["return"]:a[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,a[1])).done)return s;if(i=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){n.label=a[1];break}if(a[0]===6&&n.label<s[1]){n.label=s[1];s=a;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(a);break}if(s[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(o){a=[6,o];i=0}finally{r=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var s=arguments[t],a=0,o=s.length;a<o;a++,i++)r[i]=s[a];return r};System.register(["./p-a9a58e07.system.js"],(function(e){"use strict";var t,n,r;return{setters:[function(e){t=e.r;n=e.h;r=e.g}],execute:function(){var i=["inputs","outputs","props","events","methods"];var s=e("ad_api",function(){function e(e){t(this,e)}e.prototype.hasApi=function(){if(!this.doc){return false}for(var e=0,t=i;e<t.length;e++){var n=t[e];if(this.doc[n]&&this.doc[n].length>0){return true}}};e.prototype.angular=function(){return[this.doc.inputs?this.doc.inputs.map((function(e){return n("ad-input-def",{input:e})})):undefined,this.doc.outputs?this.doc.outputs.map((function(e){return n("ad-output-def",{output:e})})):undefined,this.doc.props?this.doc.props.map((function(e){return n("ad-prop-def",{prop:e})})):undefined]};e.prototype.stencil=function(){return[this.doc.props?this.doc.props.map((function(e){return n("ad-prop-def",{prop:e})})):undefined,this.doc.events?this.doc.events.map((function(e){return n("ad-event-def",{event:e})})):undefined]};e.prototype.render=function(){if(!this.hasApi()){return undefined}var e=!this.doc.tag;return n("article",{id:"api",class:"api"},n("h2",null,"API"),e?this.angular():this.stencil(),this.doc.methods?this.doc.methods.map((function(e){return n("ad-method-def",{method:e})})):undefined)};Object.defineProperty(e,"style",{get:function(){return".sc-ad-api-h{display:block;font-size:.875rem;font-family:var(--anj-font-family);font-weight:400;line-height:1.5;outline:none}.sc-ad-api-h, .sc-ad-api-h:after, .sc-ad-api-h:before{-webkit-box-sizing:border-box;box-sizing:border-box;outline:none}.sc-ad-api-h:active, .sc-ad-api-h .sc-ad-api:active, .sc-ad-api-h:focus, .sc-ad-api-h .sc-ad-api:focus{outline:none}.sc-ad-api-h .api.sc-ad-api{border-bottom:1px solid var(--anj-border);margin-bottom:3rem;padding-bottom:3rem}.sc-ad-api-h .api.sc-ad-api h2.sc-ad-api{margin-bottom:1.5rem}"},enumerable:true,configurable:true});return e}());var a=e("ad_api_name",function(){function e(e){t(this,e)}Object.defineProperty(e,"style",{get:function(){return"ad-api-name{display:inline;font-size:.875rem;font-family:var(--anj-font-family);font-weight:400;line-height:1.5;outline:none}ad-api-name,ad-api-name:after,ad-api-name:before{-webkit-box-sizing:border-box;box-sizing:border-box;outline:none}ad-api-name:active,ad-api-name :active,ad-api-name:focus,ad-api-name :focus{outline:none}ad-api-name:after{color:var(--anj-secondary-dark);content:\":\";margin-right:.5rem}"},enumerable:true,configurable:true});return e}());var o=e("ad_arg_def",function(){function e(e){t(this,e)}e.prototype.render=function(){return[n("ad-api-name",null,this.arg.name),n("ad-type-def",null,this.arg.type)]};Object.defineProperty(e,"style",{get:function(){return"ad-arg-def{display:inline;font-size:.875rem;font-family:var(--anj-font-family);font-weight:400;line-height:1.5;outline:none}ad-arg-def,ad-arg-def:after,ad-arg-def:before{-webkit-box-sizing:border-box;box-sizing:border-box;outline:none}ad-arg-def:active,ad-arg-def :active,ad-arg-def:focus,ad-arg-def :focus{outline:none}ad-arg-def:after{color:var(--anj-secondary-dark);content:\",\";margin-right:.5rem}ad-arg-def:last-child:after{content:none;margin-right:0}"},enumerable:true,configurable:true});return e}());var l=e("ad_decorator",function(){function e(e){t(this,e)}Object.defineProperty(e,"style",{get:function(){return"ad-decorator{color:var(--anj-secondary-dark)}.api.ng ad-method-def ad-decorator,.api.ng ad-prop-def ad-decorator{display:none}"},enumerable:true,configurable:true});return e}());var u=e("ad_event_def",function(){function e(e){t(this,e)}e.prototype.render=function(){return[n("h4",null,n("ad-decorator",null,"@Event")," ",n("ad-api-name",null,this.event.event),n("ad-type-def",null,"<",this.event.detail,">")),n("p",null,this.event.docs)]};Object.defineProperty(e,"style",{get:function(){return"ad-event-def,ad-input-def,ad-method-def,ad-output-def,ad-prop-def{display:block;margin-bottom:1.5rem}ad-event-def h4,ad-input-def h4,ad-method-def h4,ad-output-def h4,ad-prop-def h4{color:var(--anj-dark);font-size:1rem;font-weight:400;margin:0 0 .5rem;padding:0}"},enumerable:true,configurable:true});return e}());var c=e("ad_input_def",function(){function e(e){t(this,e)}e.prototype.render=function(){return[n("h4",null,n("ad-decorator",null,"@Input "),n("ad-api-name",null,this.input.name),n("ad-type-def",null,this.input.type)),n("p",null,this.input.docs)]};Object.defineProperty(e,"style",{get:function(){return"ad-event-def,ad-input-def,ad-method-def,ad-output-def,ad-prop-def{display:block;margin-bottom:1.5rem}ad-event-def h4,ad-input-def h4,ad-method-def h4,ad-output-def h4,ad-prop-def h4{color:var(--anj-dark);font-size:1rem;font-weight:400;margin:0 0 .5rem;padding:0}"},enumerable:true,configurable:true});return e}());var p=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function h(e,t){return t={exports:{}},e(t,t.exports),t.exports}var f=h((function(e,t){(function(t){var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:d,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:d,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:d,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};n._label=/(?:\\[\[\]]|[^\[\]])+/;n._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/;n.def=p(n.def).replace("label",n._label).replace("title",n._title).getRegex();n.bullet=/(?:[*+-]|\d+\.)/;n.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;n.item=p(n.item,"gm").replace(/bull/g,n.bullet).getRegex();n.list=p(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex();n._tag="(?!(?:"+"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";n.html=p(n.html).replace("comment",/<!--[\s\S]*?-->/).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/<tag(?:"[^"]*"|'[^']*'|\s[^'"\/>\s]*)*?\/?>/).replace(/tag/g,n._tag).getRegex();n.paragraph=p(n.paragraph).replace("hr",n.hr).replace("heading",n.heading).replace("lheading",n.lheading).replace("tag","<"+n._tag).getRegex();n.blockquote=p(n.blockquote).replace("paragraph",n.paragraph).getRegex();n.normal=m({},n);n.gfm=m({},n.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});n.gfm.paragraph=p(n.paragraph).replace("(?!","(?!"+n.gfm.fences.source.replace("\\1","\\2")+"|"+n.list.source.replace("\\1","\\3")+"|").getRegex();n.tables=m({},n.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/});function r(e){this.tokens=[];this.tokens.links={};this.options=e||y.defaults;this.rules=n.normal;if(this.options.gfm){if(this.options.tables){this.rules=n.tables}else{this.rules=n.gfm}}}r.rules=n;r.lex=function(e,t){var n=new r(t);return n.lex(e)};r.prototype.lex=function(e){e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(e,true)};r.prototype.token=function(e,t){e=e.replace(/^ +$/gm,"");var r,i,s,a,o,l,u,c,p,h,f;while(e){if(s=this.rules.newline.exec(e)){e=e.substring(s[0].length);if(s[0].length>1){this.tokens.push({type:"space"})}}if(s=this.rules.code.exec(e)){e=e.substring(s[0].length);s=s[0].replace(/^ {4}/gm,"");this.tokens.push({type:"code",text:!this.options.pedantic?s.replace(/\n+$/,""):s});continue}if(s=this.rules.fences.exec(e)){e=e.substring(s[0].length);this.tokens.push({type:"code",lang:s[2],text:s[3]||""});continue}if(s=this.rules.heading.exec(e)){e=e.substring(s[0].length);this.tokens.push({type:"heading",depth:s[1].length,text:s[2]});continue}if(t&&(s=this.rules.nptable.exec(e))){e=e.substring(s[0].length);l={type:"table",header:s[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:s[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:s[3].replace(/\n$/,"").split("\n")};for(c=0;c<l.align.length;c++){if(/^ *-+: *$/.test(l.align[c])){l.align[c]="right"}else if(/^ *:-+: *$/.test(l.align[c])){l.align[c]="center"}else if(/^ *:-+ *$/.test(l.align[c])){l.align[c]="left"}else{l.align[c]=null}}for(c=0;c<l.cells.length;c++){l.cells[c]=l.cells[c].split(/ *\| */)}this.tokens.push(l);continue}if(s=this.rules.hr.exec(e)){e=e.substring(s[0].length);this.tokens.push({type:"hr"});continue}if(s=this.rules.blockquote.exec(e)){e=e.substring(s[0].length);this.tokens.push({type:"blockquote_start"});s=s[0].replace(/^ *> ?/gm,"");this.token(s,t);this.tokens.push({type:"blockquote_end"});continue}if(s=this.rules.list.exec(e)){e=e.substring(s[0].length);a=s[2];f=a.length>1;this.tokens.push({type:"list_start",ordered:f,start:f?+a:""});s=s[0].match(this.rules.item);r=false;h=s.length;c=0;for(;c<h;c++){l=s[c];u=l.length;l=l.replace(/^ *([*+-]|\d+\.) +/,"");if(~l.indexOf("\n ")){u-=l.length;l=!this.options.pedantic?l.replace(new RegExp("^ {1,"+u+"}","gm"),""):l.replace(/^ {1,4}/gm,"")}if(this.options.smartLists&&c!==h-1){o=n.bullet.exec(s[c+1])[0];if(a!==o&&!(a.length>1&&o.length>1)){e=s.slice(c+1).join("\n")+e;c=h-1}}i=r||/\n\n(?!\s*$)/.test(l);if(c!==h-1){r=l.charAt(l.length-1)==="\n";if(!i)i=r}this.tokens.push({type:i?"loose_item_start":"list_item_start"});this.token(l,false);this.tokens.push({type:"list_item_end"})}this.tokens.push({type:"list_end"});continue}if(s=this.rules.html.exec(e)){e=e.substring(s[0].length);this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&(s[1]==="pre"||s[1]==="script"||s[1]==="style"),text:s[0]});continue}if(t&&(s=this.rules.def.exec(e))){e=e.substring(s[0].length);if(s[3])s[3]=s[3].substring(1,s[3].length-1);p=s[1].toLowerCase();if(!this.tokens.links[p]){this.tokens.links[p]={href:s[2],title:s[3]}}continue}if(t&&(s=this.rules.table.exec(e))){e=e.substring(s[0].length);l={type:"table",header:s[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:s[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:s[3].replace(/(?: *\| *)?\n$/,"").split("\n")};for(c=0;c<l.align.length;c++){if(/^ *-+: *$/.test(l.align[c])){l.align[c]="right"}else if(/^ *:-+: *$/.test(l.align[c])){l.align[c]="center"}else if(/^ *:-+ *$/.test(l.align[c])){l.align[c]="left"}else{l.align[c]=null}}for(c=0;c<l.cells.length;c++){l.cells[c]=l.cells[c].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */)}this.tokens.push(l);continue}if(s=this.rules.lheading.exec(e)){e=e.substring(s[0].length);this.tokens.push({type:"heading",depth:s[2]==="="?1:2,text:s[1]});continue}if(t&&(s=this.rules.paragraph.exec(e))){e=e.substring(s[0].length);this.tokens.push({type:"paragraph",text:s[1].charAt(s[1].length-1)==="\n"?s[1].slice(0,-1):s[1]});continue}if(s=this.rules.text.exec(e)){e=e.substring(s[0].length);this.tokens.push({type:"text",text:s[0]});continue}if(e){throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}}return this.tokens};var i={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:d,tag:/^<!--[\s\S]*?-->|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:d,text:/^[\s\S]+?(?=[\\<!\[`*]|\b_| {2,}\n|$)/};i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;i._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])?)+(?![-_])/;i.autolink=p(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex();i._inside=/(?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]]|\](?=[^\[]*\]))*/;i._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/;i.link=p(i.link).replace("inside",i._inside).replace("href",i._href).getRegex();i.reflink=p(i.reflink).replace("inside",i._inside).getRegex();i.normal=m({},i);i.pedantic=m({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/});i.gfm=m({},i.normal,{escape:p(i.escape).replace("])","~|])").getRegex(),url:p(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",i._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:p(i.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()});i.breaks=m({},i.gfm,{br:p(i.br).replace("{2,}","*").getRegex(),text:p(i.gfm.text).replace("{2,}","*").getRegex()});function s(e,t){this.options=t||y.defaults;this.links=e;this.rules=i.normal;this.renderer=this.options.renderer||new a;this.renderer.options=this.options;if(!this.links){throw new Error("Tokens array requires a `links` property.")}if(this.options.gfm){if(this.options.breaks){this.rules=i.breaks}else{this.rules=i.gfm}}else if(this.options.pedantic){this.rules=i.pedantic}}s.rules=i;s.output=function(e,t,n){var r=new s(t,n);return r.output(e)};s.prototype.output=function(e){var t="",n,r,i,s;while(e){if(s=this.rules.escape.exec(e)){e=e.substring(s[0].length);t+=s[1];continue}if(s=this.rules.autolink.exec(e)){e=e.substring(s[0].length);if(s[2]==="@"){r=u(this.mangle(s[1]));i="mailto:"+r}else{r=u(s[1]);i=r}t+=this.renderer.link(i,null,r);continue}if(!this.inLink&&(s=this.rules.url.exec(e))){s[0]=this.rules._backpedal.exec(s[0])[0];e=e.substring(s[0].length);if(s[2]==="@"){r=u(s[0]);i="mailto:"+r}else{r=u(s[0]);if(s[1]==="www."){i="http://"+r}else{i=r}}t+=this.renderer.link(i,null,r);continue}if(s=this.rules.tag.exec(e)){if(!this.inLink&&/^<a /i.test(s[0])){this.inLink=true}else if(this.inLink&&/^<\/a>/i.test(s[0])){this.inLink=false}e=e.substring(s[0].length);t+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):u(s[0]):s[0];continue}if(s=this.rules.link.exec(e)){e=e.substring(s[0].length);this.inLink=true;t+=this.outputLink(s,{href:s[2],title:s[3]});this.inLink=false;continue}if((s=this.rules.reflink.exec(e))||(s=this.rules.nolink.exec(e))){e=e.substring(s[0].length);n=(s[2]||s[1]).replace(/\s+/g," ");n=this.links[n.toLowerCase()];if(!n||!n.href){t+=s[0].charAt(0);e=s[0].substring(1)+e;continue}this.inLink=true;t+=this.outputLink(s,n);this.inLink=false;continue}if(s=this.rules.strong.exec(e)){e=e.substring(s[0].length);t+=this.renderer.strong(this.output(s[2]||s[1]));continue}if(s=this.rules.em.exec(e)){e=e.substring(s[0].length);t+=this.renderer.em(this.output(s[2]||s[1]));continue}if(s=this.rules.code.exec(e)){e=e.substring(s[0].length);t+=this.renderer.codespan(u(s[2].trim(),true));continue}if(s=this.rules.br.exec(e)){e=e.substring(s[0].length);t+=this.renderer.br();continue}if(s=this.rules.del.exec(e)){e=e.substring(s[0].length);t+=this.renderer.del(this.output(s[1]));continue}if(s=this.rules.text.exec(e)){e=e.substring(s[0].length);t+=this.renderer.text(u(this.smartypants(s[0])));continue}if(e){throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}}return t};s.prototype.outputLink=function(e,t){var n=u(t.href),r=t.title?u(t.title):null;return e[0].charAt(0)!=="!"?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,u(e[1]))};s.prototype.smartypants=function(e){if(!this.options.smartypants)return e;return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")};s.prototype.mangle=function(e){if(!this.options.mangle)return e;var t="",n=e.length,r=0,i;for(;r<n;r++){i=e.charCodeAt(r);if(Math.random()>.5){i="x"+i.toString(16)}t+="&#"+i+";"}return t};function a(e){this.options=e||{}}a.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);if(r!=null&&r!==e){n=true;e=r}}if(!t){return"<pre><code>"+(n?e:u(e,true))+"\n</code></pre>"}return'<pre><code class="'+this.options.langPrefix+u(t,true)+'">'+(n?e:u(e,true))+"\n</code></pre>\n"};a.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"};a.prototype.html=function(e){return e};a.prototype.heading=function(e,t,n){return"<h"+t+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+e+"</h"+t+">\n"};a.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"};a.prototype.list=function(e,t,n){var r=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+r+i+">\n"+e+"</"+r+">\n"};a.prototype.listitem=function(e){return"<li>"+e+"</li>\n"};a.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"};a.prototype.table=function(e,t){return"<table>\n"+"<thead>\n"+e+"</thead>\n"+"<tbody>\n"+t+"</tbody>\n"+"</table>\n"};a.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"};a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";var r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"</"+n+">\n"};a.prototype.strong=function(e){return"<strong>"+e+"</strong>"};a.prototype.em=function(e){return"<em>"+e+"</em>"};a.prototype.codespan=function(e){return"<code>"+e+"</code>"};a.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"};a.prototype.del=function(e){return"<del>"+e+"</del>"};a.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(c(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(s){return n}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0){return n}}if(this.options.baseUrl&&!g.test(e)){e=h(this.options.baseUrl,e)}var i='<a href="'+e+'"';if(t){i+=' title="'+t+'"'}i+=">"+n+"</a>";return i};a.prototype.image=function(e,t,n){if(this.options.baseUrl&&!g.test(e)){e=h(this.options.baseUrl,e)}var r='<img src="'+e+'" alt="'+n+'"';if(t){r+=' title="'+t+'"'}r+=this.options.xhtml?"/>":">";return r};a.prototype.text=function(e){return e};function o(){}o.prototype.strong=o.prototype.em=o.prototype.codespan=o.prototype.del=o.prototype.text=function(e){return e};o.prototype.link=o.prototype.image=function(e,t,n){return""+n};o.prototype.br=function(){return""};function l(e){this.tokens=[];this.token=null;this.options=e||y.defaults;this.options.renderer=this.options.renderer||new a;this.renderer=this.options.renderer;this.renderer.options=this.options}l.parse=function(e,t){var n=new l(t);return n.parse(e)};l.prototype.parse=function(e){this.inline=new s(e.links,this.options);this.inlineText=new s(e.links,m({},this.options,{renderer:new o}));this.tokens=e.reverse();var t="";while(this.next()){t+=this.tok()}return t};l.prototype.next=function(){return this.token=this.tokens.pop()};l.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};l.prototype.parseText=function(){var e=this.token.text;while(this.peek().type==="text"){e+="\n"+this.next().text}return this.inline.output(e)};l.prototype.tok=function(){switch(this.token.type){case"space":{return""}case"hr":{return this.renderer.hr()}case"heading":{return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,c(this.inlineText.output(this.token.text)))}case"code":{return this.renderer.code(this.token.text,this.token.lang,this.token.escaped)}case"table":{var e="",t="",n,r,i,s;i="";for(n=0;n<this.token.header.length;n++){i+=this.renderer.tablecell(this.inline.output(this.token.header[n]),{header:true,align:this.token.align[n]})}e+=this.renderer.tablerow(i);for(n=0;n<this.token.cells.length;n++){r=this.token.cells[n];i="";for(s=0;s<r.length;s++){i+=this.renderer.tablecell(this.inline.output(r[s]),{header:false,align:this.token.align[s]})}t+=this.renderer.tablerow(i)}return this.renderer.table(e,t)}case"blockquote_start":{t="";while(this.next().type!=="blockquote_end"){t+=this.tok()}return this.renderer.blockquote(t)}case"list_start":{t="";var a=this.token.ordered,o=this.token.start;while(this.next().type!=="list_end"){t+=this.tok()}return this.renderer.list(t,a,o)}case"list_item_start":{t="";while(this.next().type!=="list_item_end"){t+=this.token.type==="text"?this.parseText():this.tok()}return this.renderer.listitem(t)}case"loose_item_start":{t="";while(this.next().type!=="list_item_end"){t+=this.tok()}return this.renderer.listitem(t)}case"html":{var l=!this.token.pre&&!this.options.pedantic?this.inline.output(this.token.text):this.token.text;return this.renderer.html(l)}case"paragraph":{return this.renderer.paragraph(this.inline.output(this.token.text))}case"text":{return this.renderer.paragraph(this.parseText())}}};function u(e,t){return e.replace(!t?/&(?!#?\w+;)/g:/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function c(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){t=t.toLowerCase();if(t==="colon")return":";if(t.charAt(0)==="#"){return t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1))}return""}))}function p(e,t){e=e.source;t=t||"";return{replace:function(t,n){n=n.source||n;n=n.replace(/(^|[^\[])\^/g,"$1");e=e.replace(t,n);return this},getRegex:function(){return new RegExp(e,t)}}}function h(e,t){if(!f[" "+e]){if(/^[^:]+:\/*[^/]*$/.test(e)){f[" "+e]=e+"/"}else{f[" "+e]=e.replace(/[^/]*$/,"")}}e=f[" "+e];if(t.slice(0,2)==="//"){return e.replace(/:[\s\S]*/,":")+t}else if(t.charAt(0)==="/"){return e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t}else{return e+t}}var f={};var g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function d(){}d.exec=d;function m(e){var t=1,n,r;for(;t<arguments.length;t++){n=arguments[t];for(r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e}function y(e,t,n){if(typeof e==="undefined"||e===null){throw new Error("marked(): input parameter is undefined or null")}if(typeof e!=="string"){throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected")}if(n||typeof t==="function"){if(!n){n=t;t=null}t=m({},y.defaults,t||{});var i=t.highlight,s,a,o=0;try{s=r.lex(e,t)}catch(p){return n(p)}a=s.length;var c=function(e){if(e){t.highlight=i;return n(e)}var r;try{r=l.parse(s,t)}catch(p){e=p}t.highlight=i;return e?n(e):n(null,r)};if(!i||i.length<3){return c()}delete t.highlight;if(!a)return c();for(;o<s.length;o++){(function(e){if(e.type!=="code"){return--a||c()}return i(e.text,e.lang,(function(t,n){if(t)return c(t);if(n==null||n===e.text){return--a||c()}e.text=n;e.escaped=true;--a||c()}))})(s[o])}return}try{if(t)t=m({},y.defaults,t);return l.parse(r.lex(e,t),t)}catch(p){p.message+="\nPlease report this to https://github.com/markedjs/marked.";if((t||y.defaults).silent){return"<p>An error occurred:</p><pre>"+u(p.message+"",true)+"</pre>"}throw p}}y.options=y.setOptions=function(e){m(y.defaults,e);return y};y.defaults={gfm:true,tables:true,breaks:false,pedantic:false,sanitize:false,sanitizer:null,mangle:true,smartLists:false,silent:false,highlight:null,langPrefix:"lang-",smartypants:false,headerPrefix:"",renderer:new a,xhtml:false,baseUrl:null};y.Parser=l;y.parser=l.parse;y.Renderer=a;y.TextRenderer=o;y.Lexer=r;y.lexer=r.lex;y.InlineLexer=s;y.inlineLexer=s.output;y.parse=y;{e.exports=y}})()}));var g=h((function(e){var t=typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope?self:{};var n=function(){var e=/\blang(?:uage)?-(\w+)\b/i;var n=0;var r=t.Prism={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function(e){if(e instanceof i){return new i(e.type,r.util.encode(e.content),e.alias)}else if(r.util.type(e)==="Array"){return e.map(r.util.encode)}else{return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")}},type:function(e){return Object.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},objId:function(e){if(!e["__id"]){Object.defineProperty(e,"__id",{value:++n})}return e["__id"]},clone:function(e){var t=r.util.type(e);switch(t){case"Object":var n={};for(var i in e){if(e.hasOwnProperty(i)){n[i]=r.util.clone(e[i])}}return n;case"Array":return e.map((function(e){return r.util.clone(e)}))}return e}},languages:{extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var i in t){n[i]=t[i]}return n},insertBefore:function(e,t,n,i){i=i||r.languages;var s=i[e];if(arguments.length==2){n=arguments[1];for(var a in n){if(n.hasOwnProperty(a)){s[a]=n[a]}}return s}var o={};for(var l in s){if(s.hasOwnProperty(l)){if(l==t){for(var a in n){if(n.hasOwnProperty(a)){o[a]=n[a]}}}o[l]=s[l]}}r.languages.DFS(r.languages,(function(t,n){if(n===i[e]&&t!=e){this[t]=o}}));return i[e]=o},DFS:function(e,t,n,i){i=i||{};for(var s in e){if(e.hasOwnProperty(s)){t.call(e,s,e[s],n||s);if(r.util.type(e[s])==="Object"&&!i[r.util.objId(e[s])]){i[r.util.objId(e[s])]=true;r.languages.DFS(e[s],t,null,i)}else if(r.util.type(e[s])==="Array"&&!i[r.util.objId(e[s])]){i[r.util.objId(e[s])]=true;r.languages.DFS(e[s],t,s,i)}}}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var i={callback:n,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",i);var s=i.elements||e.querySelectorAll(i.selector);for(var a=0,o;o=s[a++];){r.highlightElement(o,t===true,i.callback)}},highlightElement:function(n,i,s){var a,o,l=n;while(l&&!e.test(l.className)){l=l.parentNode}if(l){a=(l.className.match(e)||[,""])[1].toLowerCase();o=r.languages[a]}n.className=n.className.replace(e,"").replace(/\s+/g," ")+" language-"+a;if(n.parentNode){l=n.parentNode;if(/pre/i.test(l.nodeName)){l.className=l.className.replace(e,"").replace(/\s+/g," ")+" language-"+a}}var u=n.textContent;var c={element:n,language:a,grammar:o,code:u};r.hooks.run("before-sanity-check",c);if(!c.code||!c.grammar){if(c.code){r.hooks.run("before-highlight",c);c.element.textContent=c.code;r.hooks.run("after-highlight",c)}r.hooks.run("complete",c);return}r.hooks.run("before-highlight",c);if(i&&t.Worker){var p=new Worker(r.filename);p.onmessage=function(e){c.highlightedCode=e.data;r.hooks.run("before-insert",c);c.element.innerHTML=c.highlightedCode;s&&s.call(c.element);r.hooks.run("after-highlight",c);r.hooks.run("complete",c)};p.postMessage(JSON.stringify({language:c.language,code:c.code,immediateClose:true}))}else{c.highlightedCode=r.highlight(c.code,c.grammar,c.language);r.hooks.run("before-insert",c);c.element.innerHTML=c.highlightedCode;s&&s.call(n);r.hooks.run("after-highlight",c);r.hooks.run("complete",c)}},highlight:function(e,t,n){var s=r.tokenize(e,t);return i.stringify(r.util.encode(s),n)},matchGrammar:function(e,t,n,i,s,a,o){var l=r.Token;for(var u in n){if(!n.hasOwnProperty(u)||!n[u]){continue}if(u==o){return}var c=n[u];c=r.util.type(c)==="Array"?c:[c];for(var p=0;p<c.length;++p){var h=c[p],f=h.inside,g=!!h.lookbehind,d=!!h.greedy,m=0,y=h.alias;if(d&&!h.pattern.global){var b=h.pattern.toString().match(/[imuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+"g")}h=h.pattern||h;for(var k=i,v=s;k<t.length;v+=t[k].length,++k){var x=t[k];if(t.length>e.length){return}if(x instanceof l){continue}h.lastIndex=0;var w=h.exec(x),_=1;if(!w&&d&&k!=t.length-1){h.lastIndex=v;w=h.exec(e);if(!w){break}var S=w.index+(g?w[1].length:0),A=w.index+w[0].length,E=k,L=v;for(var T=t.length;E<T&&(L<A||!t[E].type&&!t[E-1].greedy);++E){L+=t[E].length;if(S>=L){++k;v=L}}if(t[k]instanceof l||t[E-1].greedy){continue}_=E-k;x=e.slice(v,L);w.index-=v}if(!w){if(a){break}continue}if(g){m=w[1].length}var S=w.index+m,w=w[0].slice(m),A=S+w.length,P=x.slice(0,S),$=x.slice(A);var O=[k,_];if(P){++k;v+=P.length;O.push(P)}var C=new l(u,f?r.tokenize(w,f):w,y,w,d);O.push(C);if($){O.push($)}Array.prototype.splice.apply(t,O);if(_!=1)r.matchGrammar(e,t,n,k,v,true,u);if(a)break}}}},tokenize:function(e,t,n){var i=[e];var s=t.rest;if(s){for(var a in s){t[a]=s[a]}delete t.rest}r.matchGrammar(e,i,t,0,0,false);return i},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[];n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(!n||!n.length){return}for(var i=0,s;s=n[i++];){s(t)}}}};var i=r.Token=function(e,t,n,r,i){this.type=e;this.content=t;this.alias=n;this.length=(r||"").length|0;this.greedy=!!i};i.stringify=function(e,t,n){if(typeof e=="string"){return e}if(r.util.type(e)==="Array"){return e.map((function(n){return i.stringify(n,t,e)})).join("")}var s={type:e.type,content:i.stringify(e.content,t,n),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:n};if(e.alias){var a=r.util.type(e.alias)==="Array"?e.alias:[e.alias];Array.prototype.push.apply(s.classes,a)}r.hooks.run("wrap",s);var o=Object.keys(s.attributes).map((function(e){return e+'="'+(s.attributes[e]||"").replace(/"/g,"&quot;")+'"'})).join(" ");return"<"+s.tag+' class="'+s.classes.join(" ")+'"'+(o?" "+o:"")+">"+s.content+"</"+s.tag+">"};if(!t.document){if(!t.addEventListener){return t.Prism}if(!r.disableWorkerMessageHandler){t.addEventListener("message",(function(e){var n=JSON.parse(e.data),i=n.language,s=n.code,a=n.immediateClose;t.postMessage(r.highlight(s,r.languages[i],i));if(a){t.close()}}),false)}return t.Prism}var s=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();if(s){r.filename=s.src;if(!r.manual&&!s.hasAttribute("data-manual")){if(document.readyState!=="loading"){if(window.requestAnimationFrame){window.requestAnimationFrame(r.highlightAll)}else{window.setTimeout(r.highlightAll,16)}}else{document.addEventListener("DOMContentLoaded",r.highlightAll)}}}return t.Prism}();if(e.exports){e.exports=n}if(typeof p!=="undefined"){p.Prism=n}n.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:/<!DOCTYPE[\s\S]+?>/i,cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/(^|[^\\])["']/,lookbehind:true}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i};n.languages.markup["tag"].inside["attr-value"].inside["entity"]=n.languages.markup["entity"];n.hooks.add("wrap",(function(e){if(e.type==="entity"){e.attributes["title"]=e.content.replace(/&amp;/,"&")}}));n.languages.xml=n.languages.markup;n.languages.html=n.languages.markup;n.languages.mathml=n.languages.markup;n.languages.svg=n.languages.markup;n.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+?.*?(?:;|(?=\s*\{))/i,inside:{rule:/@[\w-]+/}},url:/url\((?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,selector:/[^{}\s][^{};]*?(?=\s*\{)/,string:{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:true},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/\B!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:]/};n.languages.css["atrule"].inside.rest=n.util.clone(n.languages.css);if(n.languages.markup){n.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\s\S]*?>)[\s\S]*?(?=<\/style>)/i,lookbehind:true,inside:n.languages.css,alias:"language-css",greedy:true}});n.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.languages.markup.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:n.languages.css}},alias:"language-css"}},n.languages.markup.tag)}n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:true},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:true}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:true},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:true,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/[a-z0-9_]+(?=\()/i,number:/\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/};n.languages.javascript=n.languages.extend("clike",{keyword:/\b(?: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|var|void|while|with|yield)\b/,number:/\b-?(?:0[xX][\dA-Fa-f]+|0[bB][01]+|0[oO][0-7]+|\d*\.?\d+(?:[Ee][+-]?\d+)?|NaN|Infinity)\b/,function:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/i,operator:/-[-=]?|\+[+=]?|!=?=?|<<?=?|>>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/});n.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^/])\/(?!\/)(\[[^\]\r\n]+]|\\.|[^/\\\[\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,lookbehind:true,greedy:true},"function-variable":{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=\s*(?:function\b|(?:\([^()]*\)|[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/i,alias:"function"}});n.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,greedy:true,inside:{interpolation:{pattern:/\$\{[^}]+\}/,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}}});if(n.languages.markup){n.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\s\S]*?>)[\s\S]*?(?=<\/script>)/i,lookbehind:true,inside:n.languages.javascript,alias:"language-javascript",greedy:true}})}n.languages.js=n.languages.javascript;(function(){if(typeof self==="undefined"||!self.Prism||!self.document||!document.querySelector){return}self.Prism.fileHighlight=function(){var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(document.querySelectorAll("pre[data-src]")).forEach((function(t){var r=t.getAttribute("data-src");var i,s=t;var a=/\blang(?:uage)?-(?!\*)(\w+)\b/i;while(s&&!a.test(s.className)){s=s.parentNode}if(s){i=(t.className.match(a)||[,""])[1]}if(!i){var o=(r.match(/\.(\w+)$/)||[,""])[1];i=e[o]||o}var l=document.createElement("code");l.className="language-"+i;t.textContent="";l.textContent="Loading…";t.appendChild(l);var u=new XMLHttpRequest;u.open("GET",r,true);u.onreadystatechange=function(){if(u.readyState==4){if(u.status<400&&u.responseText){l.textContent=u.responseText;n.highlightElement(l)}else if(u.status>=400){l.textContent="✖ Error "+u.status+" while fetching file: "+u.statusText}else{l.textContent="✖ Error: File does not exist or is empty"}}};u.send(null)}))};document.addEventListener("DOMContentLoaded",self.Prism.fileHighlight)})()}));(function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t]+.+)*/m,lookbehind:true}});e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,inside:{atrule:/(?:@[\w-]+|[+=])/m}}});delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/;var n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|or|not)\b/,{pattern:/(\s+)-(?=\s)/,lookbehind:true}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s]+.*)/m,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:true}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}});delete e.languages.sass.property;delete e.languages.sass.important;delete e.languages.sass.selector;e.languages.insertBefore("sass","punctuation",{selector:{pattern:/([ \t]*)\S(?:,?[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,?[^,\r\n]+)*)*/,lookbehind:true}})})(Prism);Prism.languages.typescript=Prism.languages.extend("javascript",{keyword:/\b(?: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|var|void|while|with|yield|false|true|module|declare|constructor|string|Function|any|number|boolean|Array|symbol|namespace|abstract|require|type)\b/});Prism.languages.ts=Prism.languages.typescript;var d=e("ad_markdown",function(){function e(e){t(this,e)}e.prototype.componentDidRender=function(){this.renderMarkup()};e.prototype.renderMarkup=function(){this.element.innerHTML=f(this.precompile(this.data));g.highlightAll(false)};e.prototype.precompile=function(e){if(!e){return""}e=e.default?e.default:e;var t;return e.replace(/\&gt;/g,">").split("\n").map((function(e){if(e.length>0&&isNaN(t)){t=e.search(/\S|$/)}return t?e.substring(t):e})).join("\n")};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return"ad-markdown{display:block}ad-markdown code[class*=language-],ad-markdown pre[class*=language-]{border-radius:.25rem;color:var(--anj-primary);background:none;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}ad-markdown pre[class*=language-]{padding:1rem;margin:2rem 0;overflow:auto}ad-markdown :not(pre)>code[class*=language-],ad-markdown pre[class*=language-]{background:var(--anj-background);border:1px dashed var(--anj-border)}ad-markdown :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}ad-markdown .token.inserted,ad-markdown .token.punctuation{color:var(--anj-secondary-dark)}ad-markdown .token.attr-value,ad-markdown .token.string{color:var(--anj-dark)}ad-markdown .token.attr-name,ad-markdown .token.char,ad-markdown .token.class-name,ad-markdown .token.constant,ad-markdown .token.function,ad-markdown .token.function-name,ad-markdown .token.property,ad-markdown .token.regex,ad-markdown .token.symbol,ad-markdown .token.variable{color:var(--anj-primary)}ad-markdown .token.atrule,ad-markdown .token.boolean,ad-markdown .token.builtin,ad-markdown .token.deleted,ad-markdown .token.important,ad-markdown .token.keyword,ad-markdown .token.namespace,ad-markdown .token.number,ad-markdown .token.selector,ad-markdown .token.tag{color:var(--anj-highlight-dark)}ad-markdown .token.block-comment,ad-markdown .token.cdata,ad-markdown .token.comment,ad-markdown .token.doctype,ad-markdown .token.entity,ad-markdown .token.operator,ad-markdown .token.prolog,ad-markdown .token.url{color:var(--anj-neutral)}ad-markdown .token.bold,ad-markdown .token.important{font-weight:700}ad-markdown .token.italic{font-style:italic}ad-markdown .token.entity{cursor:help}ad-markdown blockquote{padding:0 1em;color:var(--anj-primary);border-left:.25em solid var(--anj-neutral)}ad-markdown h1{font-size:2rem;font-weight:600;letter-spacing:var(--anj-spacing-wide);margin:0 0 1rem;padding:0}ad-markdown h2{font-size:1.5rem}ad-markdown h2,ad-markdown h3{font-weight:400;margin:1rem 0;padding:0}ad-markdown h3{font-size:1.25rem}ad-markdown h4{font-size:1rem}ad-markdown h4,ad-markdown h5{font-weight:400;margin:1rem 0;padding:0}ad-markdown h5{font-size:.875rem}"},enumerable:true,configurable:true});return e}());var m=e("ad_method_def",function(){function e(e){t(this,e)}e.prototype.nameless=function(e){return"("+e.split("(")[1]};e.prototype.render=function(){return[n("h4",null,n("ad-decorator",null,"@Method "),n("ad-api-name",null,this.method.name),n("ad-type-def",null,this.nameless(this.method.signature))),n("p",null,this.method.docs)]};Object.defineProperty(e,"style",{get:function(){return"ad-event-def,ad-input-def,ad-method-def,ad-output-def,ad-prop-def{display:block;margin-bottom:1.5rem}ad-event-def h4,ad-input-def h4,ad-method-def h4,ad-output-def h4,ad-prop-def h4{color:var(--anj-dark);font-size:1rem;font-weight:400;margin:0 0 .5rem;padding:0}"},enumerable:true,configurable:true});return e}());var y=e("ad_output_def",function(){function e(e){t(this,e)}e.prototype.render=function(){return[n("h4",null,n("ad-decorator",null,"@Output "),n("ad-api-name",null,this.output.name),n("ad-type-def",null,this.output.type)),n("p",null,this.output.docs)]};Object.defineProperty(e,"style",{get:function(){return"ad-event-def,ad-input-def,ad-method-def,ad-output-def,ad-prop-def{display:block;margin-bottom:1.5rem}ad-event-def h4,ad-input-def h4,ad-method-def h4,ad-output-def h4,ad-prop-def h4{color:var(--anj-dark);font-size:1rem;font-weight:400;margin:0 0 .5rem;padding:0}"},enumerable:true,configurable:true});return e}());var b=e("ad_prop_def",function(){function e(e){t(this,e)}e.prototype.render=function(){return[n("h4",null,n("ad-decorator",null,"@Prop "),n("ad-api-name",null,this.prop.name),n("ad-type-def",null,this.prop.type)),n("p",null,this.prop.docs)]};Object.defineProperty(e,"style",{get:function(){return"ad-event-def,ad-input-def,ad-method-def,ad-output-def,ad-prop-def{display:block;margin-bottom:1.5rem}ad-event-def h4,ad-input-def h4,ad-method-def h4,ad-output-def h4,ad-prop-def h4{color:var(--anj-dark);font-size:1rem;font-weight:400;margin:0 0 .5rem;padding:0}"},enumerable:true,configurable:true});return e}());var k=e("ad_real_time",function(){function e(e){t(this,e)}Object.defineProperty(e,"style",{get:function(){return"ad-real-time{border:1px dashed var(--anj-border);border-radius:.25rem;display:block;margin-top:1.5rem;overflow-x:auto;padding:1rem;width:100%}"},enumerable:true,configurable:true});return e}());var v=e("ad_toc",function(){function e(e){t(this,e);this.activeId="#overview";this.docs={};this.keys=[]}e.prototype.onDemosChange=function(){this.sectionIds=["#overview"].concat(this.keys.map((function(e){return"#"+e}))).concat("#api")};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.navigate=x(this.navigate.bind(this),100);this.onScroll=x(this.onScroll.bind(this),25);this.onDemosChange();if(window.location.hash){return[2,this.navigate()]}return[2]}))}))};e.prototype.onScroll=function(){var e=this.sectionIds.map((function(e){return document.querySelector(e)}));var t=e[0];e.slice(1).forEach((function(e){if(e&&Math.abs(window.scrollY-e.offsetTop)<Math.abs(window.scrollY-t.offsetTop)){t=e}}));this.activeId="#"+t.getAttribute("id")};e.prototype.parseTitle=function(e){var t=e.replace("#","");var n=this.docs[t];return n?n.split(/##(.*?)\n/).find((function(e){return e!==""})).trim():t};e.prototype.anchorClass=function(e){return e===this.activeId?"anj-active":""};e.prototype.navigate=function(){var e=this;return new Promise((function(t){window.setTimeout((function(){e.activeId=window.location.hash;var n=document.querySelector(e.activeId);if(n){window.scrollTo(0,n.offsetTop)}t()}),500)}))};e.prototype.render=function(){var e=this;if(!this.sectionIds){return}var t=window.location.pathname;return n("div",{class:"anj-toc"},this.sectionIds.map((function(r){return n("a",{href:""+t+r,onClick:function(){return e.activeId=r},class:e.anchorClass(r)},e.parseTitle(r))})))};Object.defineProperty(e,"watchers",{get:function(){return{keys:["onDemosChange"]}},enumerable:true,configurable:true});Object.defineProperty(e,"style",{get:function(){return"ad-toc{display:block;position:relative}ad-toc .anj-toc{padding:1rem 0;position:fixed;top:3rem}ad-toc a{display:block;font-size:.75rem;margin-bottom:.5rem;text-transform:capitalize;-webkit-transition:color .2s ease;transition:color .2s ease}ad-toc a:focus{text-decoration:underline}ad-toc a:active{text-decoration:none}ad-toc a.anj-active,ad-toc a.anj-active:focus,ad-toc a.anj-active:hover{color:var(--anj-primary);text-decoration:none}"},enumerable:true,configurable:true});return e}());var x=function(e,t){if(t===void 0){t=0}var n;return function(){var r=[];for(var i=0;i<arguments.length;i++){r[i]=arguments[i]}clearTimeout(n);n=setTimeout.apply(void 0,__spreadArrays([e,t],r))}};var w=e("ad_type_def",function(){function e(e){t(this,e)}Object.defineProperty(e,"style",{get:function(){return"ad-type-def{color:var(--anj-neutral-dark);font-size:.75rem}"},enumerable:true,configurable:true});return e}())}}}));