/** * vue-markdown v2.2.4 * https://github.com/miaolz123/vue-markdown * MIT License */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VueMarkdown=t():e.VueMarkdown=t()}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.install=function(e){e.component("vue-markdown",n.default)};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(1))},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(2)),i=n(r(55)),a=n(r(59)),s=n(r(127)),l=n(r(133)),u=n(r(134)),c=n(r(135)),p=n(r(136)),h=n(r(137)),f=n(r(138)),d=n(r(139)),m=n(r(140)),g=n(r(153)),_=n(r(177));t.default={md:new a.default,template:"
",data:function(){return{sourceData:this.source}},props:{watches:{type:Array,default:function(){return["source","show","toc"]}},source:{type:String,default:""},show:{type:Boolean,default:!0},highlight:{type:Boolean,default:!0},html:{type:Boolean,default:!0},xhtmlOut:{type:Boolean,default:!0},breaks:{type:Boolean,default:!0},linkify:{type:Boolean,default:!0},emoji:{type:Boolean,default:!0},typographer:{type:Boolean,default:!0},langPrefix:{type:String,default:"language-"},quotes:{type:String,default:"“”‘’"},tableClass:{type:String,default:"table"},taskLists:{type:Boolean,default:!0},toc:{type:Boolean,default:!1},tocId:{type:String},tocClass:{type:String,default:"table-of-contents"},tocFirstLevel:{type:Number,default:2},tocLastLevel:{type:Number},tocAnchorLink:{type:Boolean,default:!0},tocAnchorClass:{type:String,default:"toc-anchor"},tocAnchorLinkSymbol:{type:String,default:"#"},tocAnchorLinkSpace:{type:Boolean,default:!0},tocAnchorLinkClass:{type:String,default:"toc-anchor-link"},anchorAttributes:{type:Object,default:function(){return{}}},prerender:{type:Function,default:function(e){return e}},postrender:{type:Function,default:function(e){return e}}},computed:{tocLastLevelComputed:function(){return this.tocLastLevel>this.tocFirstLevel?this.tocLastLevel:this.tocFirstLevel+1}},render:function(e){var t=this;this.md=(new a.default).use(l.default).use(u.default).use(c.default).use(p.default).use(h.default).use(f.default).use(d.default).use(g.default,{throwOnError:!1,errorColor:" #cc0000"}).use(_.default,{enabled:this.taskLists}),this.emoji&&this.md.use(s.default),this.md.set({html:this.html,xhtmlOut:this.xhtmlOut,breaks:this.breaks,linkify:this.linkify,typographer:this.typographer,langPrefix:this.langPrefix,quotes:this.quotes}),this.md.renderer.rules.table_open=function(){return'\n'};var r=this.md.renderer.rules.link_open||function(e,t,r,n,o){return o.renderToken(e,t,r)};this.md.renderer.rules.link_open=function(e,n,o,a,s){return(0,i.default)(t.anchorAttributes).map(function(r){var o=e[n].attrIndex(r),i=t.anchorAttributes[r];o<0?e[n].attrPush([r,i]):e[n].attrs[o][1]=i}),r(e,n,o,a,s)},this.toc&&this.md.use(m.default,{tocClassName:this.tocClass,tocFirstLevel:this.tocFirstLevel,tocLastLevel:this.tocLastLevelComputed,anchorLink:this.tocAnchorLink,anchorLinkSymbol:this.tocAnchorLinkSymbol,anchorLinkSpace:this.tocAnchorLinkSpace,anchorClassName:this.tocAnchorClass,anchorLinkSymbolClassName:this.tocAnchorLinkClass,tocCallback:function(e,r,n){n&&(t.tocId&&document.getElementById(t.tocId)&&(document.getElementById(t.tocId).innerHTML=n),t.$emit("toc-rendered",n))}});var n=this.show?this.md.render(this.prerender(this.sourceData)):"";return n=this.postrender(n),this.$emit("rendered",n),e("div",{domProps:{innerHTML:n}})},beforeMount:function(){var e=this;if(this.$slots.default){this.sourceData="";var t=!0,r=!1,n=void 0;try{for(var i,a=(0,o.default)(this.$slots.default);!(t=(i=a.next()).done);t=!0){var s=i.value;this.sourceData+=s.text}}catch(e){r=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw n}}}this.$watch("source",function(){e.sourceData=e.prerender(e.source),e.$forceUpdate()}),this.watches.forEach(function(t){e.$watch(t,function(){e.$forceUpdate()})})}}},function(e,t,r){e.exports={default:r(3),__esModule:!0}},function(e,t,r){r(4),r(50),e.exports=r(52)},function(e,t,r){r(5);for(var n=r(16),o=r(20),i=r(8),a=r(47)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],l=0;l<5;l++){var u=s[l],c=n[u],p=c&&c.prototype;p&&!p[a]&&o(p,a,u),i[u]=i.Array}},function(e,t,r){"use strict";var n=r(6),o=r(7),i=r(8),a=r(9);e.exports=r(13)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,r):"values"==t?o(0,e[r]):o(0,[r,e[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports={}},function(e,t,r){var n=r(10),o=r(12);e.exports=function(e){return n(o(e))}},function(e,t,r){var n=r(11);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){"use strict";var n=r(14),o=r(15),i=r(30),a=r(20),s=r(31),l=r(8),u=r(32),c=r(46),p=r(48),h=r(47)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,r,m,g,_,b){u(r,t,m);var y,v,w,k=function(e){if(!f&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},x=t+" Iterator",A="values"==g,C=!1,S=e.prototype,E=S[h]||S["@@iterator"]||g&&S[g],z=E||k(g),D=g?A?k("entries"):z:void 0,q="Array"==t?S.entries||E:E;if(q&&(w=p(q.call(new e)))!==Object.prototype&&(c(w,x,!0),n||s(w,h)||a(w,h,d)),A&&E&&"values"!==E.name&&(C=!0,z=function(){return E.call(this)}),n&&!b||!f&&!C&&S[h]||a(S,h,z),l[t]=z,l[x]=d,g)if(y={values:A?z:k("values"),keys:_?z:k("keys"),entries:D},b)for(v in y)v in S||i(S,v,y[v]);else o(o.P+o.F*(f||C),t,y);return y}},function(e,t){e.exports=!0},function(e,t,r){var n=r(16),o=r(17),i=r(18),a=r(20),s=function(e,t,r){var l,u,c,p=e&s.F,h=e&s.G,f=e&s.S,d=e&s.P,m=e&s.B,g=e&s.W,_=h?o:o[t]||(o[t]={}),b=_.prototype,y=h?n:f?n[t]:(n[t]||{}).prototype;h&&(r=t);for(l in r)(u=!p&&y&&void 0!==y[l])&&l in _||(c=u?y[l]:r[l],_[l]=h&&"function"!=typeof y[l]?r[l]:m&&u?i(c,n):g&&y[l]==c?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):d&&"function"==typeof c?i(Function.call,c):c,d&&((_.virtual||(_.virtual={}))[l]=c,e&s.R&&b&&!b[l]&&a(b,l,c)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){var r=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(19);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){var n=r(21),o=r(29);e.exports=r(25)?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(22),o=r(24),i=r(28),a=Object.defineProperty;t.f=r(25)?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(23);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){e.exports=!r(25)&&!r(26)(function(){return 7!=Object.defineProperty(r(27)("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){e.exports=!r(26)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){var n=r(23),o=r(16).document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,r){var n=r(23);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){e.exports=r(20)},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){"use strict";var n=r(33),o=r(29),i=r(46),a={};r(20)(a,r(47)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:o(1,r)}),i(e,t+" Iterator")}},function(e,t,r){var n=r(22),o=r(34),i=r(44),a=r(41)("IE_PROTO"),s=function(){},l=function(){var e,t=r(27)("iframe"),n=i.length;for(t.style.display="none",r(45).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("