UNPKG

node-red-contrib-uibuilder

Version:

Easily create data-driven web UI's for Node-RED. Single- & Multi-page. Multiple UI's. Work with existing web development workflows or mix and match with no-code/low-code features.

1 lines 207 kB
(()=>{var Bt=Object.create;var fi=Object.defineProperty;var Gt=Object.getOwnPropertyDescriptor;var Yt=Object.getOwnPropertyNames;var Xt=Object.getPrototypeOf,Wt=Object.prototype.hasOwnProperty;var An=(V=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(V,{get:(X,Z)=>(typeof require<"u"?require:X)[Z]}):V)(function(V){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+V+'" is not supported')});var si=(V,X)=>()=>(X||V((X={exports:{}}).exports,X),X.exports);var Kt=(V,X,Z,Q)=>{if(X&&typeof X=="object"||typeof X=="function")for(let ne of Yt(X))!Wt.call(V,ne)&&ne!==Z&&fi(V,ne,{get:()=>X[ne],enumerable:!(Q=Gt(X,ne))||Q.enumerable});return V};var di=(V,X,Z)=>(Z=V!=null?Bt(Xt(V)):{},Kt(X||!V||!V.__esModule?fi(Z,"default",{value:V,enumerable:!0}):Z,V));var pi=si((Cn,li)=>{(function(V,X){typeof Cn=="object"&&typeof li<"u"?X():typeof define=="function"&&define.amd?define(X):X()})(Cn,(function(){"use strict";var V=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function X(m,h){return h={exports:{}},m(h,h.exports),h.exports}var Z=X(function(m,h){function C(y,R){return R.querySelector(y)}h=m.exports=function(y,R){return R=R||document,C(y,R)},h.all=function(y,R){return R=R||document,R.querySelectorAll(y)},h.engine=function(y){if(!y.one)throw new Error(".one callback required");if(!y.all)throw new Error(".all callback required");return C=y.one,h.all=y.all,h}}),Q=Z.all,ne=Z.engine,ee=X(function(m){(function(h){try{h("export default global")}catch{try{h("export default self")}catch{try{m.exports=V}catch{try{self.global=self}catch{window.global=window}}}}})(eval)});try{var D=Z}catch{var D=Z}var fe=ee.Element,F=fe&&fe.prototype||{},P=F.matches||F.webkitMatchesSelector||F.mozMatchesSelector||F.msMatchesSelector||F.oMatchesSelector,B=q;function q(m,h){if(!m||m.nodeType!==1)return!1;if(P)return P.call(m,h);for(var C=D.all(h,m.parentNode),y=0;y<C.length;++y)if(C[y]==m)return!0;return!1}try{var W=B}catch{var W=B}var se=ie;function ie(m,h,C){for(C=C||document.documentElement;m&&m!==C;){if(W(m,h))return m;m=m.parentNode}return W(m,h)?m:null}function ae(m,h){h===void 0&&(h={});var C=h.insertAt;if(!(!m||typeof document>"u")){var y=document.head||document.getElementsByTagName("head")[0],R=document.createElement("style");R.type="text/css",C==="top"&&y.firstChild?y.insertBefore(R,y.firstChild):y.appendChild(R),R.styleSheet?R.styleSheet.cssText=m:R.appendChild(document.createTextNode(m))}}var K=".docsify-pagination-container{display:flex;flex-wrap:wrap;justify-content:space-between;overflow:hidden;margin:5em 0 1em;border-top:1px solid rgba(0,0,0,.07)}.pagination-item{margin-top:2.5em}.pagination-item a,.pagination-item a:hover{text-decoration:none}.pagination-item a{color:currentColor}.pagination-item a:hover .pagination-item-title{text-decoration:underline}.pagination-item:not(:last-child) a .pagination-item-label,.pagination-item:not(:last-child) a .pagination-item-subtitle,.pagination-item:not(:last-child) a .pagination-item-title{opacity:.3;transition:all .2s}.pagination-item:last-child .pagination-item-label,.pagination-item:not(:last-child) a:hover .pagination-item-label{opacity:.6}.pagination-item:not(:last-child) a:hover .pagination-item-title{opacity:1}.pagination-item-label{font-size:.8em}.pagination-item-label>*{line-height:1;vertical-align:middle}.pagination-item-label svg{height:.8em;width:auto;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1px}.pagination-item--next{margin-left:auto;text-align:right}.pagination-item--next svg{margin-left:.5em}.pagination-item--previous svg{margin-right:.5em}.pagination-item-title{font-size:1.6em}.pagination-item-subtitle{text-transform:uppercase;opacity:.3}";ae(K);var le=function(m,h){if(!(m instanceof h))throw new TypeError("Cannot call a class as a function")},ve=(function(){function m(h,C){for(var y=0;y<C.length;y++){var R=C[y];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(h,R.key,R)}}return function(h,C,y){return C&&m(h.prototype,C),y&&m(h,y),h}})(),L=Object.assign||function(m){for(var h=1;h<arguments.length;h++){var C=arguments[h];for(var y in C)Object.prototype.hasOwnProperty.call(C,y)&&(m[y]=C[y])}return m},A=function(h){return{previousText:"PREVIOUS",nextText:"NEXT",crossChapter:!1,crossChapterText:!1}},E="docsify-pagination-container";function J(m){return Array.prototype.slice.call(m)}function S(m){var h=se(m,"div > ul > li");return Z("p",h)}function z(m){return m.href?m:Z("a",m)}function oe(m){return m&&m.toUpperCase()==="#/README"?"#/":m}function U(m,h){return arguments.length===1?function(C){return U(m,C)}:oe(decodeURIComponent(h.getAttribute("href").split("?")[0]))===oe(decodeURIComponent(m))}var de=(function(){function m(h){le(this,m),h&&(this.chapter=S(h),this.hyperlink=z(h))}return ve(m,[{key:"toJSON",value:function(){if(this.hyperlink)return{name:this.hyperlink.innerText,href:this.hyperlink.getAttribute("href"),chapterName:this.chapter&&this.chapter.innerText||"",isExternal:this.hyperlink.getAttribute("target")==="_blank"}}}]),m})();function p(m,h){var C=h.crossChapter;try{var y=m.router.toURL(m.route.path),R=J(Z.all(".sidebar-nav li a")).filter(function(pe){return!B(pe,".section-link")}),te=R.find(U(y)),me=J((se(te,"ul")||{}).children).filter(function(pe){return pe.tagName.toUpperCase()==="LI"}),he=C?R.findIndex(U(y)):me.findIndex(function(pe){var be=z(pe);return be&&U(y,be)}),_e=C?R:me;return{route:m.route,prev:new de(_e[he-1]).toJSON(),next:new de(_e[he+1]).toJSON()}}catch{return{route:{}}}}var j={container:function(){return'<div class="'+E+'"></div>'},inner:function(h,C){var y=N(C,h.route.path),R=y.previousText,te=y.nextText;return[h.prev&&'\n <div class="pagination-item pagination-item--previous">\n <a href="'+h.prev.href+'" '+(h.prev.isExternal?'target="_blank"':"")+'>\n <div class="pagination-item-label">\n <svg width="10" height="16" viewBox="0 0 10 16" xmlns="http://www.w3.org/2000/svg">\n <polyline fill="none" vector-effect="non-scaling-stroke" points="8,2 2,8 8,14"/>\n </svg>\n <span>'+R+'</span>\n </div>\n <div class="pagination-item-title">'+h.prev.name+"</div>\n ",h.prev&&C.crossChapterText&&'<div class="pagination-item-subtitle">'+h.prev.chapterName+"</div>",h.prev&&"</a>\n </div>\n ",h.next&&'\n <div class="pagination-item pagination-item--next">\n <a href="'+h.next.href+'" '+(h.next.isExternal?'target="_blank"':"")+'>\n <div class="pagination-item-label">\n <span>'+te+'</span>\n <svg width="10" height="16" viewBox="0 0 10 16" xmlns="http://www.w3.org/2000/svg">\n <polyline fill="none" vector-effect="non-scaling-stroke" points="2,2 8,8 2,14"/>\n </svg>\n </div>\n <div class="pagination-item-title">'+h.next.name+"</div>\n ",h.next&&C.crossChapterText&&'<div class="pagination-item-subtitle">'+h.next.chapterName+"</div>",h.next&&"</a>\n </div>\n "].filter(Boolean).join("")}};function N(m,h){var C={};return["previousText","nextText"].forEach(function(y){var R=m[y];typeof R=="string"?C[y]=R:Object.keys(R).some(function(te){var me=h&&h.indexOf(te)>-1;return C[y]=me?R[te]:R,me})}),C}function O(m,h){var C=L({},A(h.config),h.config.pagination||{});function y(){var R=Z("."+E);R&&(R.innerHTML=j.inner(p(h,C),C))}m.afterEach(function(R){return R+j.container()}),m.doneEach(function(){return y()})}window.$docsify=window.$docsify||{},window.$docsify.plugins=[O].concat(window.$docsify.plugins||[])}))});var vi=si((gi,$n)=>{parcelRequire=(function(V,X,Z,Q){var ne=typeof parcelRequire=="function"&&parcelRequire,ee=typeof An=="function"&&An;function D(q,W){if(!X[q]){if(!V[q]){var se=typeof parcelRequire=="function"&&parcelRequire;if(!W&&se)return se(q,!0);if(ne)return ne(q,!0);if(ee&&typeof q=="string")return ee(q);var ie=new Error("Cannot find module '"+q+"'");throw ie.code="MODULE_NOT_FOUND",ie}K.resolve=le,K.cache={};var ae=X[q]=new D.Module(q);V[q][0].call(ae.exports,K,ae,ae.exports,this)}return X[q].exports;function K(ve){return D(K.resolve(ve))}function le(ve){return V[q][1][ve]||ve}}function fe(q){this.id=q,this.bundle=D,this.exports={}}D.isParcelRequire=!0,D.Module=fe,D.modules=V,D.cache=X,D.parent=ne,D.register=function(q,W){V[q]=[function(se,ie){ie.exports=W},{}]};for(var F,P=0;P<Z.length;P++)try{D(Z[P])}catch(q){F||(F=q)}if(Z.length){var B=D(Z[Z.length-1]);typeof gi=="object"&&typeof $n<"u"?$n.exports=B:typeof define=="function"&&define.amd?define(function(){return B}):Q&&(this[Q]=B)}if(parcelRequire=D,F)throw F;return D})({GOVZ:[function(V,X,Z){"use strict";Object.defineProperty(Z,"__esModule",{value:!0}),Z.default=void 0;var Q=function(D){return function(fe){fe.afterEach(function(F,P){var B=document.createElement("div");B.innerHTML=F,B.querySelectorAll("pre[data-lang=mermaid]").forEach(function(q){var W=document.createElement("div");W.textContent=q.textContent,W.classList.add("mermaid"),q.parentNode.replaceChild(W,q)}),P(B.innerHTML)}),fe.doneEach(function(){return mermaid.run(D)})}},ne=Q;Z.default=ne},{}],Focm:[function(V,X,Z){"use strict";var Q=ne(V("./plugin"));function ne(D){return D&&D.__esModule?D:{default:D}}window.$docsify||(window.$docsify={});var ee=window.$docsify.mermaidConfig||{querySelector:".mermaid"};window.$docsify.plugins=(window.$docsify.plugins||[]).concat((0,Q.default)(ee))},{"./plugin":"GOVZ"}]},{},["Focm"],null)});(function(){function V(o){var n=Object.create(null);return function(i){var e=ne(i)?i:JSON.stringify(i),t=n[e];return t||(n[e]=o(i))}}var X=V(function(o){return o.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}),Z=Object.prototype.hasOwnProperty,Q=Object.assign||function(o){for(var n=arguments,i=1;i<arguments.length;i++){var e=Object(n[i]);for(var t in e)Z.call(e,t)&&(o[t]=e[t])}return o};function ne(o){return typeof o=="string"||typeof o=="number"}function ee(){}function D(o){return typeof o=="function"}function fe(o){var n=o.match(/^([^:/?#]+:)?(?:\/{2,}([^/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return!!(typeof n[1]=="string"&&n[1].length>0&&n[1].toLowerCase()!==location.protocol||typeof n[2]=="string"&&n[2].length>0&&n[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host||/^\/\\/.test(o))}var F=!0,P=document.body.clientWidth<=600,B=(function(){return window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)})(),q={};function W(o,n){if(n===void 0&&(n=!1),typeof o=="string"){if(typeof window.Vue<"u")return K(o);o=n?K(o):q[o]||(q[o]=K(o))}return o}var se=document,ie=se.body,ae=se.head;function K(o,n){return n?o.querySelector(n):se.querySelector(o)}function le(o,n){return[].slice.call(n?o.querySelectorAll(n):se.querySelectorAll(o))}function ve(o,n){return o=se.createElement(o),n&&(o.innerHTML=n),o}function L(o,n){return o.appendChild(n)}function A(o,n){return o.insertBefore(n,o.children[0])}function E(o,n,i){D(n)?window.addEventListener(o,n):o.addEventListener(n,i)}function J(o,n,i){D(n)?window.removeEventListener(o,n):o.removeEventListener(n,i)}function S(o,n,i){o&&o.classList[i?n:"toggle"](i||n)}function z(o){L(ae,ve("style",o))}function oe(o,n){n===void 0&&(n=document);var i=n.readyState;if(i==="complete"||i==="interactive")return setTimeout(o,0);n.addEventListener("DOMContentLoaded",o)}var U=Object.freeze({__proto__:null,getNode:W,$:se,body:ie,head:ae,find:K,findAll:le,create:ve,appendTo:L,before:A,on:E,off:J,toggleClass:S,style:z,documentReady:oe});function de(o,n){return o.indexOf(n)===0}function p(o,n){return o.indexOf(n,o.length-n.length)!==-1}var j=decodeURIComponent,N=encodeURIComponent;function O(o){var n={};return o=o.trim().replace(/^(\?|#|&)/,""),o&&o.split("&").forEach(function(i){var e=i.replace(/\+/g," ").split("=");n[e[0]]=e[1]&&j(e[1])}),n}function m(o,n){n===void 0&&(n=[]);var i=[];for(var e in o)n.indexOf(e)>-1||i.push(o[e]?(N(e)+"="+N(o[e])).toLowerCase():N(e));return i.length?"?"+i.join("&"):""}var h=V(function(o){return/(:|(\/{2}))/g.test(o)}),C=V(function(o){return o.split(/[?#]/)[0]}),y=V(function(o){if(/\/$/g.test(o))return o;var n=o.match(/(\S*\/)[^/]+$/);return n?n[1]:""}),R=V(function(o){return o.replace(/^\/+/,"/").replace(/([^:])\/{2,}/g,"$1/")}),te=V(function(o){for(var n=o.replace(/^\//,"").split("/"),i=[],e=0,t=n.length;e<t;e++){var r=n[e];r===".."?i.pop():r!=="."&&i.push(r)}return"/"+i.join("/")});function me(o){return o.split("/").filter(function(n){return n.indexOf("#")===-1}).join("/")}function he(){for(var o=[],n=arguments.length;n--;)o[n]=arguments[n];return R(o.map(me).join("/"))}var _e=V(function(o){return o.replace("#","?id=")}),pe={};function be(o,n,i){var e=Object.keys(n).filter(function(t){var r=pe[t]||(pe[t]=new RegExp("^"+t+"$"));return r.test(o)&&o!==i})[0];return e?be(o.replace(pe[e],n[e]),n,o):o}function Ie(o,n){return new RegExp("\\.("+n.replace(/^\./,"")+"|html)$","g").test(o)?o:/\/$/g.test(o)?o+"README"+n:""+o+n}var xe=function(n){this.config=n};xe.prototype.getBasePath=function(){return this.config.basePath},xe.prototype.getFile=function(n,i){n===void 0&&(n=this.getCurrentPath());var e=this,t=e.config,r=this.getBasePath(),a=typeof t.ext=="string"?t.ext:".md";return n=t.alias?be(n,t.alias):n,n=Ie(n,a),n=n==="/README"+a&&t.homepage||n,n=h(n)?n:he(r,n),i&&(n=n.replace(new RegExp("^"+r),"")),n},xe.prototype.onchange=function(n){n===void 0&&(n=ee),n()},xe.prototype.getCurrentPath=function(){},xe.prototype.normalize=function(){},xe.prototype.parse=function(){},xe.prototype.toURL=function(n,i,e){var t=e&&n[0]==="#",r=this.parse(_e(n));if(r.query=Q({},r.query,i),n=r.path+m(r.query),n=n.replace(/\.md(\?)|\.md$/,"$1"),t){var a=e.indexOf("?");n=(a>0?e.substring(0,a):e)+n}if(this.config.relativePath&&n.indexOf("/")!==0){var c=e.substring(0,e.lastIndexOf("/")+1);return R(te(c+n))}return R("/"+n)};function Pe(o){var n=location.href.indexOf("#");location.replace(location.href.slice(0,n>=0?n:0)+"#"+o)}var Me=(function(o){function n(i){o.call(this,i),this.mode="hash"}return o&&(n.__proto__=o),n.prototype=Object.create(o&&o.prototype),n.prototype.constructor=n,n.prototype.getBasePath=function(){var e=window.location.pathname||"",t=this.config.basePath,r=p(e,".html")?e+"#/"+t:e+"/"+t;return/^(\/|https?:)/g.test(t)?t:R(r)},n.prototype.getCurrentPath=function(){var e=location.href,t=e.indexOf("#");return t===-1?"":e.slice(t+1)},n.prototype.onchange=function(e){e===void 0&&(e=ee);var t=!1;E("click",function(r){var a=r.target.tagName==="A"?r.target:r.target.parentNode;a&&a.tagName==="A"&&!fe(a.href)&&(t=!0)}),E("hashchange",function(r){var a=t?"navigate":"history";t=!1,e({event:r,source:a})})},n.prototype.normalize=function(){var e=this.getCurrentPath();if(e=_e(e),e.charAt(0)==="/")return Pe(e);Pe("/"+e)},n.prototype.parse=function(e){e===void 0&&(e=location.href);var t="",r=e.indexOf("#");r>=0&&(e=e.slice(r+1));var a=e.indexOf("?");return a>=0&&(t=e.slice(a+1),e=e.slice(0,a)),{path:e,file:this.getFile(e,!0),query:O(t)}},n.prototype.toURL=function(e,t,r){return"#"+o.prototype.toURL.call(this,e,t,r)},n})(xe),Te=(function(o){function n(i){o.call(this,i),this.mode="history"}return o&&(n.__proto__=o),n.prototype=Object.create(o&&o.prototype),n.prototype.constructor=n,n.prototype.getCurrentPath=function(){var e=this.getBasePath(),t=window.location.pathname;return e&&t.indexOf(e)===0&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash},n.prototype.onchange=function(e){e===void 0&&(e=ee),E("click",function(t){var r=t.target.tagName==="A"?t.target:t.target.parentNode;if(r&&r.tagName==="A"&&!fe(r.href)){t.preventDefault();var a=r.href;window.history.pushState({key:a},"",a),e({event:t,source:"navigate"})}}),E("popstate",function(t){e({event:t,source:"history"})})},n.prototype.parse=function(e){e===void 0&&(e=location.href);var t="",r=e.indexOf("?");r>=0&&(t=e.slice(r+1),e=e.slice(0,r));var a=he(location.origin),c=e.indexOf(a);return c>-1&&(e=e.slice(c+a.length)),{path:e,file:this.getFile(e),query:O(t)}},n})(xe),Oe={};function qe(o){return(function(n){function i(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];n.apply(this,e),this.route={}}return n&&(i.__proto__=n),i.prototype=Object.create(n&&n.prototype),i.prototype.constructor=i,i.prototype.updateRender=function(){this.router.normalize(),this.route=this.router.parse(),ie.setAttribute("data-page",this.route.file)},i.prototype.initRouter=function(){var t=this,r=this.config,a=r.routerMode||"hash",c;a==="history"&&B?c=new Te(r):c=new Me(r),this.router=c,this.updateRender(),Oe=this.route,c.onchange(function(u){if(t.updateRender(),t._updateRender(),Oe.path===t.route.path){t.$resetEvents(u.source);return}t.$fetch(ee,t.$resetEvents.bind(t,u.source)),Oe=t.route})},i})(o)}var ln=/([^{]*?)\w(?=\})/g,De={YYYY:"getFullYear",YY:"getYear",MM:function(o){return o.getMonth()+1},DD:"getDate",HH:"getHours",mm:"getMinutes",ss:"getSeconds",fff:"getMilliseconds"};function hi(o,n){var i=[],e=0;return o.replace(ln,function(t,r,a){i.push(o.substring(e,a-1)),e=a+=t.length+1,i.push(n&&n[t]||function(c){return("00"+(typeof De[t]=="string"?c[De[t]]():De[t](c))).slice(-t.length)})}),e!==o.length&&i.push(o.substring(e)),function(t){for(var r="",a=0,c=t||new Date;a<i.length;a++)r+=typeof i[a]=="string"?i[a]:i[a](c);return r}}var Fe,zn;function mi(){var o=ve("div");o.classList.add("progress"),L(ie,o),Fe=o}function pn(o){var n=o.loaded,i=o.total,e=o.step,t;!Fe&&mi(),e?(t=parseInt(Fe.style.width||0,10)+e,t=t>80?80:t):t=Math.floor(n/i*100),Fe.style.opacity=1,Fe.style.width=t>=95?"100%":t+"%",t>=95&&(clearTimeout(zn),zn=setTimeout(function(r){Fe.style.opacity=0,Fe.style.width="0%"},200))}var Rn={};function je(o,n,i){n===void 0&&(n=!1),i===void 0&&(i={});var e=new XMLHttpRequest,t=function(){e.addEventListener.apply(e,arguments)},r=Rn[o];if(r)return{then:function(c){return c(r.content,r.opt)},abort:ee};e.open("GET",o);for(var a in i)Z.call(i,a)&&e.setRequestHeader(a,i[a]);return e.send(),{then:function(c,u){if(u===void 0&&(u=ee),n){var f=setInterval(function(d){return pn({step:Math.floor(Math.random()*5+1)})},500);t("progress",pn),t("loadend",function(d){pn(d),clearInterval(f)})}t("error",u),t("load",function(d){var g=d.target;if(g.status>=400)u(g);else{var v=Rn[o]={content:g.response,opt:{updatedAt:e.getResponseHeader("last-modified")}};c(v.content,v.opt)}})},abort:function(c){return e.readyState!==4&&e.abort()}}}function On(o,n){o.innerHTML=o.innerHTML.replace(/var\(\s*--theme-color.*?\)/g,n)}function _i(o){if(!(window.CSS&&window.CSS.supports&&window.CSS.supports("(--v:red)"))){var n=le("style:not(.inserted),link");[].forEach.call(n,function(i){if(i.nodeName==="STYLE")On(i,o);else if(i.nodeName==="LINK"){var e=i.getAttribute("href");if(!/\.css$/.test(e))return;je(e).then(function(t){var r=ve("style",t);ae.appendChild(r),On(r,o)})}})}}var Fn=se.title;function bi(o){var n=function(i){return ie.classList.toggle("close")};o=W(o),o!=null&&(E(o,"click",function(i){i.stopPropagation(),n()}),P&&E(ie,"click",function(i){return ie.classList.contains("close")&&n()}))}function wi(o){o=W(o),o!=null&&E(o,"click",function(n){var i=n.target;i.nodeName==="A"&&i.nextSibling&&i.nextSibling.classList&&i.nextSibling.classList.contains("app-sub-sidebar")&&S(i.parentNode,"collapse")})}function Ln(){var o=W("section.cover");if(o){var n=o.getBoundingClientRect().height;window.pageYOffset>=n||o.classList.contains("hidden")?S(ie,"add","sticky"):S(ie,"remove","sticky")}}function Xe(o,n,i,e){n=W(n);var t=[];n!=null&&(t=le(n,"a"));var r=decodeURI(o.toURL(o.getCurrentPath())),a;return t.sort(function(c,u){return u.href.length-c.href.length}).forEach(function(c){var u=decodeURI(c.getAttribute("href")),f=i?c.parentNode:c;c.title=c.title||c.innerText,r.indexOf(u)===0&&!a?(a=c,S(f,"add","active")):S(f,"remove","active")}),e&&(se.title=a?a.title||a.innerText+" - "+Fn:Fn),a}var yi=(function(){function o(n,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}return function(n,i,e){return i&&o(n.prototype,i),e&&o(n,e),n}})();function ki(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")}var xi=(function(){function o(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ki(this,o),this.start=n.start,this.end=n.end,this.decimal=n.decimal}return yi(o,[{key:"getIntermediateValue",value:function(i){return this.decimal?i:Math.round(i)}},{key:"getFinalValue",value:function(){return this.end}}]),o})(),Si=(function(){function o(n,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}return function(n,i,e){return i&&o(n.prototype,i),e&&o(n,e),n}})();function Ei(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")}var Ti=(function(){function o(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ei(this,o),this.duration=n.duration||1e3,this.ease=n.easing||this._defaultEase,this.tweener=n.tweener||new xi(n),this.start=this.tweener.start,this.end=this.tweener.end,this.frame=null,this.next=null,this.isRunning=!1,this.events={},this.direction=this.start<this.end?"up":"down"}return Si(o,[{key:"begin",value:function(){return!this.isRunning&&this.next!==this.end&&(this.frame=window.requestAnimationFrame(this._tick.bind(this))),this}},{key:"stop",value:function(){return window.cancelAnimationFrame(this.frame),this.isRunning=!1,this.frame=null,this.timeStart=null,this.next=null,this}},{key:"on",value:function(i,e){return this.events[i]=this.events[i]||[],this.events[i].push(e),this}},{key:"_emit",value:function(i,e){var t=this,r=this.events[i];r&&r.forEach(function(a){return a.call(t,e)})}},{key:"_tick",value:function(i){this.isRunning=!0;var e=this.next||this.start;this.timeStart||(this.timeStart=i),this.timeElapsed=i-this.timeStart,this.next=this.ease(this.timeElapsed,this.start,this.end-this.start,this.duration),this._shouldTick(e)?(this._emit("tick",this.tweener.getIntermediateValue(this.next)),this.frame=window.requestAnimationFrame(this._tick.bind(this))):(this._emit("tick",this.tweener.getFinalValue()),this._emit("done",null))}},{key:"_shouldTick",value:function(i){return{up:this.next<this.end&&i<=this.next,down:this.next>this.end&&i>=this.next}[this.direction]}},{key:"_defaultEase",value:function(i,e,t,r){return(i/=r/2)<1?t/2*i*i+e:-t/2*(--i*(i-2)-1)+e}}]),o})(),Ai=document.currentScript;function Pn(o){var n=Q({auto2top:!1,autoHeader:!1,basePath:"",catchPluginErrors:!0,cornerExternalLinkTarget:"_blank",coverpage:"",el:"#app",executeScript:null,ext:".md",externalLinkRel:"noopener",externalLinkTarget:"_blank",formatUpdated:"",ga:"",homepage:"README.md",loadNavbar:null,loadSidebar:null,maxLevel:6,mergeNavbar:!1,name:"",nameLink:window.location.pathname,nativeEmoji:!1,noCompileLinks:[],noEmoji:!1,notFoundPage:!0,relativePath:!1,repo:"",routes:{},routerMode:"hash",subMaxLevel:0,themeColor:"",topMargin:0},typeof window.$docsify=="function"?window.$docsify(o):window.$docsify),i=Ai||[].slice.call(document.getElementsByTagName("script")).filter(function(r){return/docsify\./.test(r.src)})[0];if(i){for(var e in n)if(Z.call(n,e)){var t=i.getAttribute("data-"+X(e));ne(t)&&(n[e]=t===""?!0:t)}}return n.loadSidebar===!0&&(n.loadSidebar="_sidebar"+n.ext),n.loadNavbar===!0&&(n.loadNavbar="_navbar"+n.ext),n.coverpage===!0&&(n.coverpage="_coverpage"+n.ext),n.repo===!0&&(n.repo=""),n.name===!0&&(n.name=""),window.$docsify=n,n}var gn={},vn=!1,We=null,hn=!0,qn=0;function Ci(o,n){n===void 0&&(n=0),We&&We.stop(),hn=!1,We=new Ti({start:window.pageYOffset,end:Math.round(o.getBoundingClientRect().top)+window.pageYOffset-n,duration:500}).on("tick",function(i){return window.scrollTo(0,i)}).on("done",function(){hn=!0,We=null}).begin()}function jn(o){if(hn){for(var n=W(".sidebar"),i=le(".anchor"),e=K(n,".sidebar-nav"),t=K(n,"li.active"),r=document.documentElement,a=(r&&r.scrollTop||document.body.scrollTop)-qn,c,u=0,f=i.length;u<f;u+=1){var d=i[u];if(d.offsetTop>a){c||(c=d);break}else c=d}if(c){var g=gn[mn(o,c.getAttribute("data-id"))];if(!(!g||g===t)&&(t&&t.classList.remove("active"),g.classList.add("active"),t=g,!vn&&ie.classList.contains("sticky"))){var v=n.clientHeight,x=0,b=t.offsetTop+t.clientHeight+40,I=t.offsetTop>=e.scrollTop&&b<=e.scrollTop+v,$=b-x<v;n.scrollTop=I?e.scrollTop:$?x:b-v}}}}function mn(o,n){return decodeURIComponent(o)+"?id="+decodeURIComponent(n)}function $i(o){var n=K(".cover.show");qn=n?n.offsetHeight:0;var i=W(".sidebar"),e=[];i!=null&&(e=le(i,"li"));for(var t=0,r=e.length;t<r;t+=1){var a=e[t],c=a.querySelector("a");if(c){var u=c.getAttribute("href");if(u!=="/"){var f=o.parse(u),d=f.query.id,g=f.path;d&&(u=mn(g,d))}u&&(gn[decodeURIComponent(u)]=a)}}if(!P){var v=C(o.getCurrentPath());J("scroll",function(){return jn(v)}),E("scroll",function(){return jn(v)}),E(i,"mouseover",function(){vn=!0}),E(i,"mouseleave",function(){vn=!1})}}function zi(o,n){if(n){var i=Pn().topMargin,e=K("#"+n);e&&Ci(e,i);var t=gn[mn(o,n)],r=W(".sidebar"),a=K(r,"li.active");a&&a.classList.remove("active"),t&&t.classList.add("active")}}var Ri=se.scrollingElement||se.documentElement;function Oi(o){o===void 0&&(o=0),Ri.scrollTop=o===!0?0:Number(o)}var Nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function In(o,n){return n={exports:{}},o(n,n.exports),n.exports}var Ae=In(function(o){function n(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function i(e){o.exports.defaults=e}o.exports={defaults:n(),getDefaults:n,changeDefaults:i}}),Qt=Ae.defaults,eo=Ae.getDefaults,no=Ae.changeDefaults,Fi=/[&<>"']/,Li=/[&<>"']/g,Pi=/[<>"']|&(?!#?\w+;)/,qi=/[<>"']|&(?!#?\w+;)/g,ji={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Mn=function(o){return ji[o]};function Ni(o,n){if(n){if(Fi.test(o))return o.replace(Li,Mn)}else if(Pi.test(o))return o.replace(qi,Mn);return o}var Ii=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Dn(o){return o.replace(Ii,function(n,i){return i=i.toLowerCase(),i==="colon"?":":i.charAt(0)==="#"?i.charAt(1)==="x"?String.fromCharCode(parseInt(i.substring(2),16)):String.fromCharCode(+i.substring(1)):""})}var Mi=/(^|[^\[])\^/g;function Di(o,n){o=o.source||o,n=n||"";var i={replace:function(e,t){return t=t.source||t,t=t.replace(Mi,"$1"),o=o.replace(e,t),i},getRegex:function(){return new RegExp(o,n)}};return i}var Hi=/[^\w:]/g,Ui=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Vi(o,n,i){if(o){var e;try{e=decodeURIComponent(Dn(i)).replace(Hi,"").toLowerCase()}catch{return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0)return null}n&&!Ui.test(i)&&(i=Hn(n,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch{return null}return i}var Ke={},Zi=/^[^:]+:\/*[^/]*$/,Bi=/^([^:]+:)[\s\S]*$/,Gi=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Hn(o,n){Ke[" "+o]||(Zi.test(o)?Ke[" "+o]=o+"/":Ke[" "+o]=Un(o,"/",!0)),o=Ke[" "+o];var i=o.indexOf(":")===-1;return n.substring(0,2)==="//"?i?n:o.replace(Bi,"$1")+n:n.charAt(0)==="/"?i?n:o.replace(Gi,"$1")+n:o+n}var Yi={exec:function(){}};function Xi(o){for(var n=arguments,i=1,e,t;i<arguments.length;i++){e=n[i];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(o[t]=e[t])}return o}function Wi(o,n){var i=o.replace(/\|/g,function(r,a,c){for(var u=!1,f=a;--f>=0&&c[f]==="\\";)u=!u;return u?"|":" |"}),e=i.split(/ \|/),t=0;if(e.length>n)e.splice(n);else for(;e.length<n;)e.push("");for(;t<e.length;t++)e[t]=e[t].trim().replace(/\\\|/g,"|");return e}function Un(o,n,i){var e=o.length;if(e===0)return"";for(var t=0;t<e;){var r=o.charAt(e-t-1);if(r===n&&!i)t++;else if(r!==n&&i)t++;else break}return o.substr(0,e-t)}function Ki(o,n){if(o.indexOf(n[1])===-1)return-1;for(var i=o.length,e=0,t=0;t<i;t++)if(o[t]==="\\")t++;else if(o[t]===n[0])e++;else if(o[t]===n[1]&&(e--,e<0))return t;return-1}function Ji(o){o&&o.sanitize&&!o.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Qi(o,n){if(n<1)return"";for(var i="";n>1;)n&1&&(i+=o),n>>=1,o+=o;return i+o}var ke={escape:Ni,unescape:Dn,edit:Di,cleanUrl:Vi,resolveUrl:Hn,noopTest:Yi,merge:Xi,splitCells:Wi,rtrim:Un,findClosingBracket:Ki,checkSanitizeDeprecation:Ji,repeatString:Qi},et=Ae.defaults,_n=ke.rtrim,Je=ke.splitCells,Se=ke.escape,nt=ke.findClosingBracket;function Vn(o,n,i){var e=n.href,t=n.title?Se(n.title):null,r=o[1].replace(/\\([\[\]])/g,"$1");return o[0].charAt(0)!=="!"?{type:"link",raw:i,href:e,title:t,text:r}:{type:"image",raw:i,href:e,title:t,text:Se(r)}}function it(o,n){var i=o.match(/^(\s+)(?:```)/);if(i===null)return n;var e=i[1];return n.split("\n").map(function(t){var r=t.match(/^\s+/);if(r===null)return t;var a=r[0];return a.length>=e.length?t.slice(e.length):t}).join("\n")}var bn=(function(){function o(n){this.options=n||et}return o.prototype.space=function(i){var e=this.rules.block.newline.exec(i);if(e)return e[0].length>1?{type:"space",raw:e[0]}:{raw:"\n"}},o.prototype.code=function(i,e){var t=this.rules.block.code.exec(i);if(t){var r=e[e.length-1];if(r&&r.type==="paragraph")return{raw:t[0],text:t[0].trimRight()};var a=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?a:_n(a,"\n")}}},o.prototype.fences=function(i){var e=this.rules.block.fences.exec(i);if(e){var t=e[0],r=it(t,e[3]||"");return{type:"code",raw:t,lang:e[2]?e[2].trim():e[2],text:r}}},o.prototype.heading=function(i){var e=this.rules.block.heading.exec(i);if(e){var t=e[2].trim();if(/#$/.test(t)){var r=_n(t,"#");(this.options.pedantic||!r||/ $/.test(r))&&(t=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t}}},o.prototype.nptable=function(i){var e=this.rules.block.nptable.exec(i);if(e){var t={type:"table",header:Je(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(t.header.length===t.align.length){var r=t.align.length,a;for(a=0;a<r;a++)/^ *-+: *$/.test(t.align[a])?t.align[a]="right":/^ *:-+: *$/.test(t.align[a])?t.align[a]="center":/^ *:-+ *$/.test(t.align[a])?t.align[a]="left":t.align[a]=null;for(r=t.cells.length,a=0;a<r;a++)t.cells[a]=Je(t.cells[a],t.header.length);return t}}},o.prototype.hr=function(i){var e=this.rules.block.hr.exec(i);if(e)return{type:"hr",raw:e[0]}},o.prototype.blockquote=function(i){var e=this.rules.block.blockquote.exec(i);if(e){var t=e[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:e[0],text:t}}},o.prototype.list=function(i){var e=this.rules.block.list.exec(i);if(e){var t=e[0],r=e[2],a=r.length>1,c={type:"list",raw:t,ordered:a,start:a?+r.slice(0,-1):"",loose:!1,items:[]},u=e[0].match(this.rules.block.item),f=!1,d,g,v,x,b,I,$,H,l=u.length;v=this.rules.block.listItemStart.exec(u[0]);for(var s=0;s<l;s++){if(d=u[s],t=d,s!==l-1){if(x=this.rules.block.listItemStart.exec(u[s+1]),this.options.pedantic?x[1].length>v[1].length:x[1].length>v[0].length||x[1].length>3){u.splice(s,2,u[s]+"\n"+u[s+1]),s--,l--;continue}else(!this.options.pedantic||this.options.smartLists?x[2][x[2].length-1]!==r[r.length-1]:a===(x[2].length===1))&&(b=u.slice(s+1).join("\n"),c.raw=c.raw.substring(0,c.raw.length-b.length),s=l-1);v=x}g=d.length,d=d.replace(/^ *([*+-]|\d+[.)]) ?/,""),~d.indexOf("\n ")&&(g-=d.length,d=this.options.pedantic?d.replace(/^ {1,4}/gm,""):d.replace(new RegExp("^ {1,"+g+"}","gm"),"")),I=f||/\n\n(?!\s*$)/.test(d),s!==l-1&&(f=d.charAt(d.length-1)==="\n",I||(I=f)),I&&(c.loose=!0),this.options.gfm&&($=/^\[[ xX]\] /.test(d),H=void 0,$&&(H=d[1]!==" ",d=d.replace(/^\[[ xX]\] +/,""))),c.items.push({type:"list_item",raw:t,task:$,checked:H,loose:I,text:d})}return c}},o.prototype.html=function(i){var e=this.rules.block.html.exec(i);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&(e[1]==="pre"||e[1]==="script"||e[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):Se(e[0]):e[0]}},o.prototype.def=function(i){var e=this.rules.block.def.exec(i);if(e){e[3]&&(e[3]=e[3].substring(1,e[3].length-1));var t=e[1].toLowerCase().replace(/\s+/g," ");return{tag:t,raw:e[0],href:e[2],title:e[3]}}},o.prototype.table=function(i){var e=this.rules.block.table.exec(i);if(e){var t={type:"table",header:Je(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(t.header.length===t.align.length){t.raw=e[0];var r=t.align.length,a;for(a=0;a<r;a++)/^ *-+: *$/.test(t.align[a])?t.align[a]="right":/^ *:-+: *$/.test(t.align[a])?t.align[a]="center":/^ *:-+ *$/.test(t.align[a])?t.align[a]="left":t.align[a]=null;for(r=t.cells.length,a=0;a<r;a++)t.cells[a]=Je(t.cells[a].replace(/^ *\| *| *\| *$/g,""),t.header.length);return t}}},o.prototype.lheading=function(i){var e=this.rules.block.lheading.exec(i);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1]}},o.prototype.paragraph=function(i){var e=this.rules.block.paragraph.exec(i);if(e)return{type:"paragraph",raw:e[0],text:e[1].charAt(e[1].length-1)==="\n"?e[1].slice(0,-1):e[1]}},o.prototype.text=function(i,e){var t=this.rules.block.text.exec(i);if(t){var r=e[e.length-1];return r&&r.type==="text"?{raw:t[0],text:t[0]}:{type:"text",raw:t[0],text:t[0]}}},o.prototype.escape=function(i){var e=this.rules.inline.escape.exec(i);if(e)return{type:"escape",raw:e[0],text:Se(e[1])}},o.prototype.tag=function(i,e,t){var r=this.rules.inline.tag.exec(i);if(r)return!e&&/^<a /i.test(r[0])?e=!0:e&&/^<\/a>/i.test(r[0])&&(e=!1),!t&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?t=!0:t&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(t=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:e,inRawBlock:t,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Se(r[0]):r[0]}},o.prototype.link=function(i){var e=this.rules.inline.link.exec(i);if(e){var t=e[2].trim();if(!this.options.pedantic&&/^</.test(t)){if(!/>$/.test(t))return;var r=_n(t.slice(0,-1),"\\");if((t.length-r.length)%2===0)return}else{var a=nt(e[2],"()");if(a>-1){var c=e[0].indexOf("!")===0?5:4,u=c+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,u).trim(),e[3]=""}}var f=e[2],d="";if(this.options.pedantic){var g=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(f);g&&(f=g[1],d=g[3])}else d=e[3]?e[3].slice(1,-1):"";return f=f.trim(),/^</.test(f)&&(this.options.pedantic&&!/>$/.test(t)?f=f.slice(1):f=f.slice(1,-1)),Vn(e,{href:f&&f.replace(this.rules.inline._escapes,"$1"),title:d&&d.replace(this.rules.inline._escapes,"$1")},e[0])}},o.prototype.reflink=function(i,e){var t;if((t=this.rules.inline.reflink.exec(i))||(t=this.rules.inline.nolink.exec(i))){var r=(t[2]||t[1]).replace(/\s+/g," ");if(r=e[r.toLowerCase()],!r||!r.href){var a=t[0].charAt(0);return{type:"text",raw:a,text:a}}return Vn(t,r,t[0])}},o.prototype.strong=function(i,e,t){t===void 0&&(t="");var r=this.rules.inline.strong.start.exec(i);if(r&&(!r[1]||r[1]&&(t===""||this.rules.inline.punctuation.exec(t)))){e=e.slice(-1*i.length);var a=r[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;a.lastIndex=0;for(var c;(r=a.exec(e))!=null;)if(c=this.rules.inline.strong.middle.exec(e.slice(0,r.index+3)),c)return{type:"strong",raw:i.slice(0,c[0].length),text:i.slice(2,c[0].length-2)}}},o.prototype.em=function(i,e,t){t===void 0&&(t="");var r=this.rules.inline.em.start.exec(i);if(r&&(!r[1]||r[1]&&(t===""||this.rules.inline.punctuation.exec(t)))){e=e.slice(-1*i.length);var a=r[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;a.lastIndex=0;for(var c;(r=a.exec(e))!=null;)if(c=this.rules.inline.em.middle.exec(e.slice(0,r.index+2)),c)return{type:"em",raw:i.slice(0,c[0].length),text:i.slice(1,c[0].length-1)}}},o.prototype.codespan=function(i){var e=this.rules.inline.code.exec(i);if(e){var t=e[2].replace(/\n/g," "),r=/[^ ]/.test(t),a=/^ /.test(t)&&/ $/.test(t);return r&&a&&(t=t.substring(1,t.length-1)),t=Se(t,!0),{type:"codespan",raw:e[0],text:t}}},o.prototype.br=function(i){var e=this.rules.inline.br.exec(i);if(e)return{type:"br",raw:e[0]}},o.prototype.del=function(i){var e=this.rules.inline.del.exec(i);if(e)return{type:"del",raw:e[0],text:e[2]}},o.prototype.autolink=function(i,e){var t=this.rules.inline.autolink.exec(i);if(t){var r,a;return t[2]==="@"?(r=Se(this.options.mangle?e(t[1]):t[1]),a="mailto:"+r):(r=Se(t[1]),a=r),{type:"link",raw:t[0],text:r,href:a,tokens:[{type:"text",raw:r,text:r}]}}},o.prototype.url=function(i,e){var t;if(t=this.rules.inline.url.exec(i)){var r,a;if(t[2]==="@")r=Se(this.options.mangle?e(t[0]):t[0]),a="mailto:"+r;else{var c;do c=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])[0];while(c!==t[0]);r=Se(t[0]),t[1]==="www."?a="http://"+r:a=r}return{type:"link",raw:t[0],text:r,href:a,tokens:[{type:"text",raw:r,text:r}]}}},o.prototype.inlineText=function(i,e,t){var r=this.rules.inline.text.exec(i);if(r){var a;return e?a=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Se(r[0]):r[0]:a=Se(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:a}}},o})(),He=ke.noopTest,ce=ke.edit,Le=ke.merge,Y={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\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{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:He,table:He,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};Y._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Y._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Y.def=ce(Y.def).replace("label",Y._label).replace("title",Y._title).getRegex(),Y.bullet=/(?:[*+-]|\d{1,9}[.)])/,Y.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Y.item=ce(Y.item,"gm").replace(/bull/g,Y.bullet).getRegex(),Y.listItemStart=ce(/^( *)(bull)/).replace("bull",Y.bullet).getRegex(),Y.list=ce(Y.list).replace(/bull/g,Y.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Y.def.source+")").getRegex(),Y._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Y._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Y.html=ce(Y.html,"i").replace("comment",Y._comment).replace("tag",Y._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Y.paragraph=ce(Y._paragraph).replace("hr",Y.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").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|!--)").replace("tag",Y._tag).getRegex(),Y.blockquote=ce(Y.blockquote).replace("paragraph",Y.paragraph).getRegex(),Y.normal=Le({},Y),Y.gfm=Le({},Y.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Y.gfm.nptable=ce(Y.gfm.nptable).replace("hr",Y.hr).replace("heading"," {0,3}#{1,6} ").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|!--)").replace("tag",Y._tag).getRegex(),Y.gfm.table=ce(Y.gfm.table).replace("hr",Y.hr).replace("heading"," {0,3}#{1,6} ").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|!--)").replace("tag",Y._tag).getRegex(),Y.pedantic=Le({},Y.normal,{html:ce("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Y._comment).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:He,paragraph:ce(Y.normal._paragraph).replace("hr",Y.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Y.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var T={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:He,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:He,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\s*punctuation])/};T._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",T.punctuation=ce(T.punctuation).replace(/punctuation/g,T._punctuation).getRegex(),T._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",T._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",T._comment=ce(Y._comment).replace("(?:-->|$)","-->").getRegex(),T.em.start=ce(T.em.start).replace(/punctuation/g,T._punctuation).getRegex(),T.em.middle=ce(T.em.middle).replace(/punctuation/g,T._punctuation).replace(/overlapSkip/g,T._overlapSkip).getRegex(),T.em.endAst=ce(T.em.endAst,"g").replace(/punctuation/g,T._punctuation).getRegex(),T.em.endUnd=ce(T.em.endUnd,"g").replace(/punctuation/g,T._punctuation).getRegex(),T.strong.start=ce(T.strong.start).replace(/punctuation/g,T._punctuation).getRegex(),T.strong.middle=ce(T.strong.middle).replace(/punctuation/g,T._punctuation).replace(/overlapSkip/g,T._overlapSkip).getRegex(),T.strong.endAst=ce(T.strong.endAst,"g").replace(/punctuation/g,T._punctuation).getRegex(),T.strong.endUnd=ce(T.strong.endUnd,"g").replace(/punctuation/g,T._punctuation).getRegex(),T.blockSkip=ce(T._blockSkip,"g").getRegex(),T.overlapSkip=ce(T._overlapSkip,"g").getRegex(),T._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,T._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,T._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])?)+(?![-_])/,T.autolink=ce(T.autolink).replace("scheme",T._scheme).replace("email",T._email).getRegex(),T._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,T.tag=ce(T.tag).replace("comment",T._comment).replace("attribute",T._attribute).getRegex(),T._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,T._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,T._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,T.link=ce(T.link).replace("label",T._label).replace("href",T._href).replace("title",T._title).getRegex(),T.reflink=ce(T.reflink).replace("label",T._label).getRegex(),T.reflinkSearch=ce(T.reflinkSearch,"g").replace("reflink",T.reflink).replace("nolink",T.nolink).getRegex(),T.normal=Le({},T),T.pedantic=Le({},T.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",T._label).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",T._label).getRegex()}),T.gfm=Le({},T.normal,{escape:ce(T.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),T.gfm.url=ce(T.gfm.url,"i").replace("email",T.gfm._extended_email).getRegex(),T.breaks=Le({},T.gfm,{br:ce(T.br).replace("{2,}","*").getRegex(),text:ce(T.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Zn={block:Y,inline:T},tt=Ae.defaults,Qe=Zn.block,Ue=Zn.inline,Bn=ke.repeatString;function ot(o){return o.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function Gn(o){var n="",i,e,t=o.length;for(i=0;i<t;i++)e=o.charCodeAt(i),Math.random()>.5&&(e="x"+e.toString(16)),n+="&#"+e+";";return n}var Ve=(function(){function o(i){this.tokens=[],this.tokens.links=Object.create(null),this.options=i||tt,this.options.tokenizer=this.options.tokenizer||new bn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:Qe.normal,inline:Ue.normal};this.options.pedantic?(e.block=Qe.pedantic,e.inline=Ue.pedantic):this.options.gfm&&(e.block=Qe.gfm,this.options.breaks?e.inline=Ue.breaks:e.inline=Ue.gfm),this.tokenizer.rules=e}var n={rules:{configurable:!0}};return n.rules.get=function(){return{block:Qe,inline:Ue}},o.lex=function(e,t){var r=new o(t);return r.lex(e)},o.lexInline=function(e,t){var r=new o(t);return r.inlineTokens(e)},o.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},o.prototype.blockTokens=function(e,t,r){t===void 0&&(t=[]),r===void 0&&(r=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));for(var a,c,u,f;e;){if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length),a.type&&t.push(a);continue}if(a=this.tokenizer.code(e,t)){e=e.substring(a.raw.length),a.type?t.push(a):(f=t[t.length-1],f.raw+="\n"+a.raw,f.text+="\n"+a.text);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.nptable(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),a.tokens=this.blockTokens(a.text,[],r),t.push(a);continue}if(a=this.tokenizer.list(e)){for(e=e.substring(a.raw.length),u=a.items.length,c=0;c<u;c++)a.items[c].tokens=this.blockTokens(a.items[c].text,[],!1);t.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),t.push(a);continue}if(r&&(a=this.tokenizer.def(e))){e=e.substring(a.raw.length),this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title});continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),t.push(a);continue}if(r&&(a=this.tokenizer.paragraph(e))){e=e.substring(a.raw.length),t.push(a);continue}if(a=this.tokenizer.text(e,t)){e=e.substring(a.raw.length),a.type?t.push(a):(f=t[t.length-1],f.raw+="\n"+a.raw,f.text+="\n"+a.text);continue}if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return t},o.prototype.i