presentazione-papero/plugin/markdown/markdown.js

2 lines
85 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).RevealMarkdown=t()}(this,(function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var n=function(e){return e&&e.Math==Math&&e},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")(),u=function(e){try{return!!e()}catch(e){return!0}},i=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l={f:a&&!o.call({1:2},1)?function(e){var t=a(this,e);return!!t&&t.enumerable}:o},s=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},c={}.toString,f=function(e){return c.call(e).slice(8,-1)},p="".split,h=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==f(e)?p.call(e,""):Object(e)}:Object,D=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},g=function(e){return h(D(e))},d=function(e){return"object"==typeof e?null!==e:"function"==typeof e},v=function(e,t){if(!d(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!d(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!d(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!d(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},A={}.hasOwnProperty,y=function(e,t){return A.call(e,t)},E=r.document,m=d(E)&&d(E.createElement),k=function(e){return m?E.createElement(e):{}},b=!i&&!u((function(){return 7!=Object.defineProperty(k("div"),"a",{get:function(){return 7}}).a})),F=Object.getOwnPropertyDescriptor,C={f:i?F:function(e,t){if(e=g(e),t=v(t,!0),b)try{return F(e,t)}catch(e){}if(y(e,t))return s(!l.f.call(e,t),e[t])}},x=function(e){if(!d(e))throw TypeError(String(e)+" is not an object");return e},w=Object.defineProperty,S={f:i?w:function(e,t,n){if(x(e),t=v(t,!0),x(n),b)try{return w(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},B=i?function(e,t,n){return S.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e},_=function(e,t){try{B(r,e,t)}catch(n){r[e]=t}return t},O="__core-js_shared__",T=r[O]||_(O,{}),R=Function.toString;"function"!=typeof T.inspectSource&&(T.inspectSource=function(e){return R.call(e)});var j,I,$,z=T.inspectSource,P=r.WeakMap,L="function"==typeof P&&/native code/.test(z(P)),M=t((function(e){(e.exports=function(e,t){return T[e]||(T[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),N=0,q=Math.random(),U=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++N+q).toString(36)},Z=M("keys"),G=function(e){return Z[e]||(Z[e]=U(e))},H={},V=r.WeakMap;if(L){var K=T.state||(T.state=new V),X=K.get,Y=K.has,W=K.set;j=function(e,t){return t.facade=e,W.call(K,e,t),t},I=function(e){return X.call(K,e)||{}},$=function(e){return Y.call(K,e)}}else{var J=G("state");H[J]=!0,j=function(e,t){return t.facade=e,B(e,J,t),t},I=function(e){return y(e,J)?e[J]:{}},$=function(e){return y(e,J)}}var Q,ee,te={set:j,get:I,has:$,enforce:function(e){return $(e)?I(e):j(e,{})},getterFor:function(e){return function(t){var n;if(!d(t)||(n=I(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ne=t((function(e){var t=te.get,n=te.enforce,u=String(String).split("String");(e.exports=function(e,t,i,o){var a,l=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||y(i,"name")||B(i,"name",t),(a=n(i)).source||(a.source=u.join("string"==typeof t?t:""))),e!==r?(l?!c&&e[t]&&(s=!0):delete e[t],s?e[t]=i:B(e,t,i)):s?e[t]=i:_(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||z(this)}))})),re=r,ue=function(e){return"function"==typeof e?e:void 0},ie=function(e,t){return arguments.length<2?ue(re[e])||ue(r[e]):re[e]&&re[e][t]||r[e]&&r[e][t]},oe=Math.ceil,ae=Math.floor,le=function(e){return isNaN(e=+e)?0:(e>0?ae:oe)(e)},se=Math.min,ce=function(e){return e>0?se(le(e),9007199254740991):0},fe=Math.max,pe=Math.min,he=function(e,t){var n=le(e);return n<0?fe(n+t,0):pe(n,t)},De=function(e){return function(t,n,r){var u,i=g(t),o=ce(i.length),a=he(r,o);if(e&&n!=n){for(;o>a;)if((u=i[a++])!=u)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},ge={includes:De(!0),indexOf:De(!1)},de=ge.indexOf,ve=function(e,t){var n,r=g(e),u=0,i=[];for(n in r)!y(H,n)&&y(r,n)&&i.push(n);for(;t.length>u;)y(r,n=t[u++])&&(~de(i,n)||i.push(n));return i},Ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ye=Ae.concat("length","prototype"),Ee={f:Object.getOwnPropertyNames||function(e){return ve(e,ye)}},me={f:Object.getOwnPropertySymbols},ke=ie("Reflect","ownKeys")||function(e){var t=Ee.f(x(e)),n=me.f;return n?t.concat(n(e)):t},be=function(e,t){for(var n=ke(t),r=S.f,u=C.f,i=0;i<n.length;i++){var o=n[i];y(e,o)||r(e,o,u(t,o))}},Fe=/#|\.prototype\./,Ce=function(e,t){var n=we[xe(e)];return n==Be||n!=Se&&("function"==typeof t?u(t):!!t)},xe=Ce.normalize=function(e){return String(e).replace(Fe,".").toLowerCase()},we=Ce.data={},Se=Ce.NATIVE="N",Be=Ce.POLYFILL="P",_e=Ce,Oe=C.f,Te=function(e,t){var n,u,i,o,a,l=e.target,s=e.global,c=e.stat;if(n=s?r:c?r[l]||_(l,{}):(r[l]||{}).prototype)for(u in t){if(o=t[u],i=e.noTargetGet?(a=Oe(n,u))&&a.value:n[u],!_e(s?u:l+(c?".":"#")+u,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;be(o,i)}(e.sham||i&&i.sham)&&B(o,"sham",!0),ne(n,u,o,e)}},Re=Array.isArray||function(e){return"Array"==f(e)},je=function(e){return Object(D(e))},Ie=function(e,t,n){var r=v(t);r in e?S.f(e,r,s(0,n)):e[r]=n},$e=!!Object.getOwnPropertySymbols&&!u((function(){return!String(Symbol())})),ze=$e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Pe=M("wks"),Le=r.Symbol,Me=ze?Le:Le&&Le.withoutSetter||U,Ne=function(e){return y(Pe,e)||($e&&y(Le,e)?Pe[e]=Le[e]:Pe[e]=Me("Symbol."+e)),Pe[e]},qe=Ne("species"),Ue=function(e,t){var n;return Re(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Re(n.prototype)?d(n)&&null===(n=n[qe])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Ze=ie("navigator","userAgent")||"",Ge=r.process,He=Ge&&Ge.versions,Ve=He&&He.v8;Ve?ee=(Q=Ve.split("."))[0]+Q[1]:Ze&&(!(Q=Ze.match(/Edge\/(\d+)/))||Q[1]>=74)&&(Q=Ze.match(/Chrome\/(\d+)/))&&(ee=Q[1]);var Ke=ee&&+ee,Xe=Ne("species"),Ye=function(e){return Ke>=51||!u((function(){var t=[];return(t.constructor={})[Xe]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},We=Ne("isConcatSpreadable"),Je=9007199254740991,Qe="Maximum allowed index exceeded",et=Ke>=51||!u((function(){var e=[];return e[We]=!1,e.concat()[0]!==e})),tt=Ye("concat"),nt=function(e){if(!d(e))return!1;var t=e[We];return void 0!==t?!!t:Re(e)};Te({target:"Array",proto:!0,forced:!et||!tt},{concat:function(e){var t,n,r,u,i,o=je(this),a=Ue(o,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(nt(i=-1===t?o:arguments[t])){if(l+(u=ce(i.length))>Je)throw TypeError(Qe);for(n=0;n<u;n++,l++)n in i&&Ie(a,l,i[n])}else{if(l>=Je)throw TypeError(Qe);Ie(a,l++,i)}return a.length=l,a}});var rt=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},ut=function(e,t,n){if(rt(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,u){return e.call(t,n,r,u)}}return function(){return e.apply(t,arguments)}},it=[].push,ot=function(e){var t=1==e,n=2==e,r=3==e,u=4==e,i=6==e,o=5==e||i;return function(a,l,s,c){for(var f,p,D=je(a),g=h(D),d=ut(l,s,3),v=ce(g.length),A=0,y=c||Ue,E=t?y(a,v):n?y(a,0):void 0;v>A;A++)if((o||A in g)&&(p=d(f=g[A],A,D),e))if(t)E[A]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return A;case 2:it.call(E,f)}else if(u)return!1;return i?-1:r||u?u:E}},at={forEach:ot(0),map:ot(1),filter:ot(2),some:ot(3),every:ot(4),find:ot(5),findIndex:ot(6)},lt=function(e,t){var n=[][e];return!!n&&u((function(){n.call(null,t||function(){throw 1},1)}))},st=Object.defineProperty,ct={},ft=function(e){throw e},pt=function(e,t){if(y(ct,e))return ct[e];t||(t={});var n=[][e],r=!!y(t,"ACCESSORS")&&t.ACCESSORS,o=y(t,0)?t[0]:ft,a=y(t,1)?t[1]:void 0;return ct[e]=!!n&&!u((function(){if(r&&!i)return!0;var e={length:-1};r?st(e,1,{enumerable:!0,get:ft}):e[1]=1,n.call(e,o,a)}))},ht=at.forEach,Dt=lt("forEach"),gt=pt("forEach"),dt=Dt&&gt?[].forEach:function(e){return ht(this,e,arguments.length>1?arguments[1]:void 0)};Te({target:"Array",proto:!0,forced:[].forEach!=dt},{forEach:dt});var vt,At=Object.keys||function(e){return ve(e,Ae)},yt=i?Object.defineProperties:function(e,t){x(e);for(var n,r=At(t),u=r.length,i=0;u>i;)S.f(e,n=r[i++],t[n]);return e},Et=ie("document","documentElement"),mt=G("IE_PROTO"),kt=function(){},bt=function(e){return"<script>"+e+"</"+"script>"},Ft=function(){try{vt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Ft=vt?function(e){e.write(bt("")),e.close();var t=e.parentWindow.Object;return e=null,t}(vt):((t=k("iframe")).style.display="none",Et.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(bt("document.F=Object")),e.close(),e.F);for(var n=Ae.length;n--;)delete Ft.prototype[Ae[n]];return Ft()};H[mt]=!0;var Ct=Object.create||function(e,t){var n;return null!==e?(kt.prototype=x(e),n=new kt,kt.prototype=null,n[mt]=e):n=Ft(),void 0===t?n:yt(n,t)},xt=Ne("unscopables"),wt=Array.prototype;null==wt[xt]&&S.f(wt,xt,{configurable:!0,value:Ct(null)});var St,Bt,_t,Ot=function(e){wt[xt][e]=!0},Tt={},Rt=!u((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),jt=G("IE_PROTO"),It=Object.prototype,$t=Rt?Object.getPrototypeOf:function(e){return e=je(e),y(e,jt)?e[jt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?It:null},zt=Ne("iterator"),Pt=!1;[].keys&&("next"in(_t=[].keys())?(Bt=$t($t(_t)))!==Object.prototype&&(St=Bt):Pt=!0),null==St&&(St={}),y(St,zt)||B(St,zt,(function(){return this}));var Lt={IteratorPrototype:St,BUGGY_SAFARI_ITERATORS:Pt},Mt=S.f,Nt=Ne("toStringTag"),qt=function(e,t,n){e&&!y(e=n?e:e.prototype,Nt)&&Mt(e,Nt,{configurable:!0,value:t})},Ut=Lt.IteratorPrototype,Zt=function(){return this},Gt=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return x(n),function(e){if(!d(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Ht=Lt.IteratorPrototype,Vt=Lt.BUGGY_SAFARI_ITERATORS,Kt=Ne("iterator"),Xt="keys",Yt="values",Wt="entries",Jt=function(){return this},Qt=function(e,t,n,r,u,i,o){!function(e,t,n){var r=t+" Iterator";e.prototype=Ct(Ut,{next:s(1,n)}),qt(e,r,!1),Tt[r]=Zt}(n,t,r);var a,l,c,f=function(e){if(e===u&&d)return d;if(!Vt&&e in D)return D[e];switch(e){case Xt:case Yt:case Wt:return function(){return new n(this,e)}}return function(){return new n(this)}},p=t+" Iterator",h=!1,D=e.prototype,g=D[Kt]||D["@@iterator"]||u&&D[u],d=!Vt&&g||f(u),v="Array"==t&&D.entries||g;if(v&&(a=$t(v.call(new e)),Ht!==Object.prototype&&a.next&&($t(a)!==Ht&&(Gt?Gt(a,Ht):"function"!=typeof a[Kt]&&B(a,Kt,Jt)),qt(a,p,!0))),u==Yt&&g&&g.name!==Yt&&(h=!0,d=function(){return g.call(this)}),D[Kt]!==d&&B(D,Kt,d),Tt[t]=d,u)if(l={values:f(Yt),keys:i?d:f(Xt),entries:f(Wt)},o)for(c in l)(Vt||h||!(c in D))&&ne(D,c,l[c]);else Te({target:t,proto:!0,forced:Vt||h},l);return l},en="Array Iterator",tn=te.set,nn=te.getterFor(en),rn=Qt(Array,"Array",(function(e,t){tn(this,{type:en,target:g(e),index:0,kind:t})}),(function(){var e=nn(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Tt.Arguments=Tt.Array,Ot("keys"),Ot("values"),Ot("entries");var un=[].join,on=h!=Object,an=lt("join",",");Te({target:"Array",proto:!0,forced:on||!an},{join:function(e){return un.call(g(this),void 0===e?",":e)}});var ln=Ye("slice"),sn=pt("slice",{ACCESSORS:!0,0:0,1:2}),cn=Ne("species"),fn=[].slice,pn=Math.max;Te({target:"Array",proto:!0,forced:!ln||!sn},{slice:function(e,t){var n,r,u,i=g(this),o=ce(i.length),a=he(e,o),l=he(void 0===t?o:t,o);if(Re(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Re(n.prototype)?d(n)&&null===(n=n[cn])&&(n=void 0):n=void 0,n===Array||void 0===n))return fn.call(i,a,l);for(r=new(void 0===n?Array:n)(pn(l-a,0)),u=0;a<l;a++,u++)a in i&&Ie(r,u,i[a]);return r.length=u,r}});var hn=S.f,Dn=Function.prototype,gn=Dn.toString,dn=/^\s*function ([^ (]*)/,vn="name";i&&!(vn in Dn)&&hn(Dn,vn,{configurable:!0,get:function(){try{return gn.call(this).match(dn)[1]}catch(e){return""}}});var An={};An[Ne("toStringTag")]="z";var yn="[object z]"===String(An),En=Ne("toStringTag"),mn="Arguments"==f(function(){return arguments}()),kn=yn?f:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),En))?n:mn?f(t):"Object"==(r=f(t))&&"function"==typeof t.callee?"Arguments":r},bn=yn?{}.toString:function(){return"[object "+kn(this)+"]"};yn||ne(Object.prototype,"toString",bn,{unsafe:!0});var Fn=r.Promise,Cn=Ne("species"),xn=function(e){var t=ie(e),n=S.f;i&&t&&!t[Cn]&&n(t,Cn,{configurable:!0,get:function(){return this}})},wn=Ne("iterator"),Sn=Array.prototype,Bn=Ne("iterator"),_n=function(e){var t=e.return;if(void 0!==t)return x(t.call(e)).value},On=function(e,t){this.stopped=e,this.result=t},Tn=function(e,t,n){var r,u,i,o,a,l,s,c,f=n&&n.that,p=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),D=!(!n||!n.INTERRUPTED),g=ut(t,f,1+p+D),d=function(e){return r&&_n(r),new On(!0,e)},v=function(e){return p?(x(e),D?g(e[0],e[1],d):g(e[0],e[1])):D?g(e,d):g(e)};if(h)r=e;else{if("function"!=typeof(u=function(e){if(null!=e)return e[Bn]||e["@@iterator"]||Tt[kn(e)]}(e)))throw TypeError("Target is not iterable");if(void 0!==(c=u)&&(Tt.Array===c||Sn[wn]===c)){for(i=0,o=ce(e.length);o>i;i++)if((a=v(e[i]))&&a instanceof On)return a;return new On(!1)}r=u.call(e)}for(l=r.next;!(s=l.call(r)).done;){try{a=v(s.value)}catch(e){throw _n(r),e}if("object"==typeof a&&a&&a instanceof On)return a}return new On(!1)},Rn=Ne("iterator"),jn=!1;try{var In=0,$n={next:function(){return{done:!!In++}},return:function(){jn=!0}};$n[Rn]=function(){return this},Array.from($n,(function(){throw 2}))}catch(e){}var zn,Pn,Ln,Mn=Ne("species"),Nn=function(e,t){var n,r=x(e).constructor;return void 0===r||null==(n=x(r)[Mn])?t:rt(n)},qn=/(iphone|ipod|ipad).*applewebkit/i.test(Ze),Un="process"==f(r.process),Zn=r.location,Gn=r.setImmediate,Hn=r.clearImmediate,Vn=r.process,Kn=r.MessageChannel,Xn=r.Dispatch,Yn=0,Wn={},Jn="onreadystatechange",Qn=function(e){if(Wn.hasOwnProperty(e)){var t=Wn[e];delete Wn[e],t()}},er=function(e){return function(){Qn(e)}},tr=function(e){Qn(e.data)},nr=function(e){r.postMessage(e+"",Zn.protocol+"//"+Zn.host)};Gn&&Hn||(Gn=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Wn[++Yn]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},zn(Yn),Yn},Hn=function(e){delete Wn[e]},Un?zn=function(e){Vn.nextTick(er(e))}:Xn&&Xn.now?zn=function(e){Xn.now(er(e))}:Kn&&!qn?(Ln=(Pn=new Kn).port2,Pn.port1.onmessage=tr,zn=ut(Ln.postMessage,Ln,1)):r.addEventListener&&"function"==typeof postMessage&&!r.importScripts&&Zn&&"file:"!==Zn.protocol&&!u(nr)?(zn=nr,r.addEventListener("message",tr,!1)):zn=Jn in k("script")?function(e){Et.appendChild(k("script")).onreadystatechange=function(){Et.removeChild(this),Qn(e)}}:function(e){setTimeout(er(e),0)});var rr,ur,ir,or,ar,lr,sr,cr,fr={set:Gn,clear:Hn},pr=C.f,hr=fr.set,Dr=r.MutationObserver||r.WebKitMutationObserver,gr=r.document,dr=r.process,vr=r.Promise,Ar=pr(r,"queueMicrotask"),yr=Ar&&Ar.value;yr||(rr=function(){var e,t;for(Un&&(e=dr.domain)&&e.exit();ur;){t=ur.fn,ur=ur.next;try{t()}catch(e){throw ur?or():ir=void 0,e}}ir=void 0,e&&e.enter()},!qn&&!Un&&Dr&&gr?(ar=!0,lr=gr.createTextNode(""),new Dr(rr).observe(lr,{characterData:!0}),or=function(){lr.data=ar=!ar}):vr&&vr.resolve?(sr=vr.resolve(void 0),cr=sr.then,or=function(){cr.call(sr,rr)}):or=Un?function(){dr.nextTick(rr)}:function(){hr.call(r,rr)});var Er,mr,kr,br,Fr=yr||function(e){var t={fn:e,next:void 0};ir&&(ir.next=t),ur||(ur=t,or()),ir=t},Cr=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=rt(t),this.reject=rt(n)},xr={f:function(e){return new Cr(e)}},wr=function(e,t){if(x(e),d(t)&&t.constructor===e)return t;var n=xr.f(e);return(0,n.resolve)(t),n.promise},Sr=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Br=fr.set,_r=Ne("species"),Or="Promise",Tr=te.get,Rr=te.set,jr=te.getterFor(Or),Ir=Fn,$r=r.TypeError,zr=r.document,Pr=r.process,Lr=ie("fetch"),Mr=xr.f,Nr=Mr,qr=!!(zr&&zr.createEvent&&r.dispatchEvent),Ur="function"==typeof PromiseRejectionEvent,Zr="unhandledrejection",Gr=_e(Or,(function(){if(!(z(Ir)!==String(Ir))){if(66===Ke)return!0;if(!Un&&!Ur)return!0}if(Ke>=51&&/native code/.test(Ir))return!1;var e=Ir.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[_r]=t,!(e.then((function(){}))instanceof t)})),Hr=Gr||!function(e,t){if(!t&&!jn)return!1;var n=!1;try{var r={};r[Rn]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}((function(e){Ir.all(e).catch((function(){}))})),Vr=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},Kr=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Fr((function(){for(var r=e.value,u=1==e.state,i=0;n.length>i;){var o,a,l,s=n[i++],c=u?s.ok:s.fail,f=s.resolve,p=s.reject,h=s.domain;try{c?(u||(2===e.rejection&&Jr(e),e.rejection=1),!0===c?o=r:(h&&h.enter(),o=c(r),h&&(h.exit(),l=!0)),o===s.promise?p($r("Promise-chain cycle")):(a=Vr(o))?a.call(o,f,p):f(o)):p(r)}catch(e){h&&!l&&h.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Yr(e)}))}},Xr=function(e,t,n){var u,i;qr?((u=zr.createEvent("Event")).promise=t,u.reason=n,u.initEvent(e,!1,!0),r.dispatchEvent(u)):u={promise:t,reason:n},!Ur&&(i=r["on"+e])?i(u):e===Zr&&function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Yr=function(e){Br.call(r,(function(){var t,n=e.facade,r=e.value;if(Wr(e)&&(t=Sr((function(){Un?Pr.emit("unhandledRejection",r,n):Xr(Zr,n,r)})),e.rejection=Un||Wr(e)?2:1,t.error))throw t.value}))},Wr=function(e){return 1!==e.rejection&&!e.parent},Jr=function(e){Br.call(r,(function(){var t=e.facade;Un?Pr.emit("rejectionHandled",t):Xr("rejectionhandled",t,e.value)}))},Qr=function(e,t,n){return function(r){e(t,r,n)}},eu=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Kr(e,!0))},tu=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw $r("Promise can't be resolved itself");var r=Vr(t);r?Fr((function(){var n={done:!1};try{r.call(t,Qr(tu,n,e),Qr(eu,n,e))}catch(t){eu(n,t,e)}})):(e.value=t,e.state=1,Kr(e,!1))}catch(t){eu({done:!1},t,e)}}};Gr&&(Ir=function(e){!function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,Ir,Or),rt(e),Er.call(this);var t=Tr(this);try{e(Qr(tu,t),Qr(eu,t))}catch(e){eu(t,e)}},(Er=function(e){Rr(this,{type:Or,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(e,t,n){for(var r in t)ne(e,r,t[r],n);return e}(Ir.prototype,{then:function(e,t){var n=jr(this),r=Mr(Nn(this,Ir));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Un?Pr.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Kr(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),mr=function(){var e=new Er,t=Tr(e);this.promise=e,this.resolve=Qr(tu,t),this.reject=Qr(eu,t)},xr.f=Mr=function(e){return e===Ir||e===kr?new mr(e):Nr(e)},"function"==typeof Fn&&(br=Fn.prototype.then,ne(Fn.prototype,"then",(function(e,t){var n=this;return new Ir((function(e,t){br.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Lr&&Te({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return wr(Ir,Lr.apply(r,arguments))}}))),Te({global:!0,wrap:!0,forced:Gr},{Promise:Ir}),qt(Ir,Or,!1),xn(Or),kr=ie(Or),Te({target:Or,stat:!0,forced:Gr},{reject:function(e){var t=Mr(this);return t.reject.call(void 0,e),t.promise}}),Te({target:Or,stat:!0,forced:Gr},{resolve:function(e){return wr(this,e)}}),Te({target:Or,stat:!0,forced:Hr},{all:function(e){var t=this,n=Mr(t),r=n.resolve,u=n.reject,i=Sr((function(){var n=rt(t.resolve),i=[],o=0,a=1;Tn(e,(function(e){var l=o++,s=!1;i.push(void 0),a++,n.call(t,e).then((function(e){s||(s=!0,i[l]=e,--a||r(i))}),u)})),--a||r(i)}));return i.error&&u(i.value),n.promise},race:function(e){var t=this,n=Mr(t),r=n.reject,u=Sr((function(){var u=rt(t.resolve);Tn(e,(function(e){u.call(t,e).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}});var nu=Ne("match"),ru=function(e){var t;return d(e)&&(void 0!==(t=e[nu])?!!t:"RegExp"==f(e))},uu=function(){var e=x(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function iu(e,t){return RegExp(e,t)}var ou={UNSUPPORTED_Y:u((function(){var e=iu("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:u((function(){var e=iu("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},au=S.f,lu=Ee.f,su=te.set,cu=Ne("match"),fu=r.RegExp,pu=fu.prototype,hu=/a/g,Du=/a/g,gu=new fu(hu)!==hu,du=ou.UNSUPPORTED_Y;if(i&&_e("RegExp",!gu||du||u((function(){return Du[cu]=!1,fu(hu)!=hu||fu(Du)==Du||"/a/i"!=fu(hu,"i")})))){for(var vu=function(e,t){var n,r=this instanceof vu,u=ru(e),i=void 0===t;if(!r&&u&&e.constructor===vu&&i)return e;gu?u&&!i&&(e=e.source):e instanceof vu&&(i&&(t=uu.call(e)),e=e.source),du&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var o,a,l,s,c,f=(o=gu?new fu(e,t):fu(e,t),a=r?this:pu,l=vu,Gt&&"function"==typeof(s=a.constructor)&&s!==l&&d(c=s.prototype)&&c!==l.prototype&&Gt(o,c),o);return du&&n&&su(f,{sticky:n}),f},Au=function(e){e in vu||au(vu,e,{configurable:!0,get:function(){return fu[e]},set:function(t){fu[e]=t}})},yu=lu(fu),Eu=0;yu.length>Eu;)Au(yu[Eu++]);pu.constructor=vu,vu.prototype=pu,ne(r,"RegExp",vu)}xn("RegExp");var mu=RegExp.prototype.exec,ku=String.prototype.replace,bu=mu,Fu=function(){var e=/a/,t=/b*/g;return mu.call(e,"a"),mu.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Cu=ou.UNSUPPORTED_Y||ou.BROKEN_CARET,xu=void 0!==/()??/.exec("")[1];(Fu||xu||Cu)&&(bu=function(e){var t,n,r,u,i=this,o=Cu&&i.sticky,a=uu.call(i),l=i.source,s=0,c=e;return o&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),c=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(l="(?: "+l+")",c=" "+c,s++),n=new RegExp("^(?:"+l+")",a)),xu&&(n=new RegExp("^"+l+"$(?!\\s)",a)),Fu&&(t=i.lastIndex),r=mu.call(o?n:i,c),o?r?(r.input=r.input.slice(s),r[0]=r[0].slice(s),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Fu&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),xu&&r&&r.length>1&&ku.call(r[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(r[u]=void 0)})),r});var wu=bu;Te({target:"RegExp",proto:!0,forced:/./.exec!==wu},{exec:wu});var Su="toString",Bu=RegExp.prototype,_u=Bu.toString,Ou=u((function(){return"/a/b"!=_u.call({source:"a",flags:"b"})})),Tu=_u.name!=Su;(Ou||Tu)&&ne(RegExp.prototype,Su,(function(){var e=x(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in Bu)?uu.call(e):n)}),{unsafe:!0});var Ru=function(e){return function(t,n){var r,u,i=String(D(t)),o=le(n),a=i.length;return o<0||o>=a?e?"":void 0:(r=i.charCodeAt(o))<55296||r>56319||o+1===a||(u=i.charCodeAt(o+1))<56320||u>57343?e?i.charAt(o):r:e?i.slice(o,o+2):u-56320+(r-55296<<10)+65536}},ju={codeAt:Ru(!1),charAt:Ru(!0)},Iu=ju.charAt,$u="String Iterator",zu=te.set,Pu=te.getterFor($u);Qt(String,"String",(function(e){zu(this,{type:$u,string:String(e),index:0})}),(function(){var e,t=Pu(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Iu(n,r),t.index+=e.length,{value:e,done:!1})}));var Lu=Ne("species"),Mu=!u((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),Nu="$0"==="a".replace(/./,"$0"),qu=Ne("replace"),Uu=!!/./[qu]&&""===/./[qu]("a","$0"),Zu=!u((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Gu=function(e,t,n,r){var i=Ne(e),o=!u((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!u((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Lu]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||"replace"===e&&(!Mu||!Nu||Uu)||"split"===e&&!Zu){var l=/./[i],s=n(i,""[e],(function(e,t,n,r,u){return t.exec===wu?o&&!u?{done:!0,value:l.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Nu,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Uu}),c=s[0],f=s[1];ne(String.prototype,e,c),ne(RegExp.prototype,i,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)})}r&&B(RegExp.prototype[i],"sham",!0)},Hu=ju.charAt,Vu=function(e,t,n){return t+(n?Hu(e,t).length:1)},Ku=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==f(e))throw TypeError("RegExp#exec called on incompatible receiver");return wu.call(e,t)};Gu("match",1,(function(e,t,n){return[function(t){var n=D(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var u=x(e),i=String(this);if(!u.global)return Ku(u,i);var o=u.unicode;u.lastIndex=0;for(var a,l=[],s=0;null!==(a=Ku(u,i));){var c=String(a[0]);l[s]=c,""===c&&(u.lastIndex=Vu(i,ce(u.lastIndex),o)),s++}return 0===s?null:l}]}));var Xu=Math.max,Yu=Math.min,Wu=Math.floor,Ju=/\$([$&'`]|\d\d?|<[^>]*>)/g,Qu=/\$([$&'`]|\d\d?)/g;Gu("replace",2,(function(e,t,n,r){var u=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,o=u?"$":"$0";return[function(n,r){var u=D(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,u,r):t.call(String(u),n,r)},function(e,r){if(!u&&i||"string"==typeof r&&-1===r.indexOf(o)){var l=n(t,e,this,r);if(l.done)return l.value}var s=x(e),c=String(this),f="function"==typeof r;f||(r=String(r));var p=s.global;if(p){var h=s.unicode;s.lastIndex=0}for(var D=[];;){var g=Ku(s,c);if(null===g)break;if(D.push(g),!p)break;""===String(g[0])&&(s.lastIndex=Vu(c,ce(s.lastIndex),h))}for(var d,v="",A=0,y=0;y<D.length;y++){g=D[y];for(var E=String(g[0]),m=Xu(Yu(le(g.index),c.length),0),k=[],b=1;b<g.length;b++)k.push(void 0===(d=g[b])?d:String(d));var F=g.groups;if(f){var C=[E].concat(k,m,c);void 0!==F&&C.push(F);var w=String(r.apply(void 0,C))}else w=a(E,c,m,k,F,r);m>=A&&(v+=c.slice(A,m)+w,A=m+E.length)}return v+c.slice(A)}];function a(e,n,r,u,i,o){var a=r+e.length,l=u.length,s=Qu;return void 0!==i&&(i=je(i),s=Ju),t.call(o,s,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(a);case"<":s=i[o.slice(1,-1)];break;default:var c=+o;if(0===c)return t;if(c>l){var f=Wu(c/10);return 0===f?t:f<=l?void 0===u[f-1]?o.charAt(1):u[f-1]+o.charAt(1):t}s=u[c-1]}return void 0===s?"":s}))}}));var ei=[].push,ti=Math.min,ni=4294967295,ri=!u((function(){return!RegExp(ni,"y")}));Gu("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(D(this)),u=void 0===n?ni:n>>>0;if(0===u)return[];if(void 0===e)return[r];if(!ru(e))return t.call(r,e,u);for(var i,o,a,l=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,s+"g");(i=wu.call(f,r))&&!((o=f.lastIndex)>c&&(l.push(r.slice(c,i.index)),i.length>1&&i.index<r.length&&ei.apply(l,i.slice(1)),a=i[0].length,c=o,l.length>=u));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!a&&f.test("")||l.push(""):l.push(r.slice(c)),l.length>u?l.slice(0,u):l}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var u=D(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,u,n):r.call(String(u),t,n)},function(e,u){var i=n(r,e,this,u,r!==t);if(i.done)return i.value;var o=x(e),a=String(this),l=Nn(o,RegExp),s=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(ri?"y":"g"),f=new l(ri?o:"^(?:"+o.source+")",c),p=void 0===u?ni:u>>>0;if(0===p)return[];if(0===a.length)return null===Ku(f,a)?[a]:[];for(var h=0,D=0,g=[];D<a.length;){f.lastIndex=ri?D:0;var d,v=Ku(f,ri?a:a.slice(D));if(null===v||(d=ti(ce(f.lastIndex+(ri?0:D)),a.length))===h)D=Vu(a,D,s);else{if(g.push(a.slice(h,D)),g.length===p)return g;for(var A=1;A<=v.length-1;A++)if(g.push(v[A]),g.length===p)return g;D=h=d}}return g.push(a.slice(h)),g}]}),!ri);var ui="\t\n\v\f\r    \u2028\u2029\ufeff",ii="["+ui+"]",oi=RegExp("^"+ii+ii+"*"),ai=RegExp(ii+ii+"*$"),li=function(e){return function(t){var n=String(D(t));return 1&e&&(n=n.replace(oi,"")),2&e&&(n=n.replace(ai,"")),n}},si={start:li(1),end:li(2),trim:li(3)},ci=si.trim;Te({target:"String",proto:!0,forced:function(e){return u((function(){return!!ui[e]()||"…"!="…"[e]()||ui[e].name!==e}))}("trim")},{trim:function(){return ci(this)}});var fi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var pi in fi){var hi=r[pi],Di=hi&&hi.prototype;if(Di&&Di.forEach!==dt)try{B(Di,"forEach",dt)}catch(e){Di.forEach=dt}}var gi=Ne("iterator"),di=Ne("toStringTag"),vi=rn.values;for(var Ai in fi){var yi=r[Ai],Ei=yi&&yi.prototype;if(Ei){if(Ei[gi]!==vi)try{B(Ei,gi,vi)}catch(e){Ei[gi]=vi}if(Ei[di]||B(Ei,di,Ai),fi[Ai])for(var mi in rn)if(Ei[mi]!==rn[mi])try{B(Ei,mi,rn[mi])}catch(e){Ei[mi]=rn[mi]}}}function ki(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fi(e,t,n){return t&&bi(e.prototype,t),n&&bi(e,n),e}function Ci(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wi(e,t){if(null==e)return{};var n,r,u=function(e,t){if(null==e)return{};var n,r,u={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(u[n]=e[n]);return u}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}function Si(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,u=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){u=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(u)throw i}}return n}(e,t)||Bi(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bi(e,t){if(e){if("string"==typeof e)return _i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_i(e,t):void 0}}function _i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oi(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Bi(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,u=function(){};return{s:u,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw i}}}}var Ti=ge.includes,Ri=pt("indexOf",{ACCESSORS:!0,1:0});Te({target:"Array",proto:!0,forced:!Ri},{includes:function(e){return Ti(this,e,arguments.length>1?arguments[1]:void 0)}}),Ot("includes");var ji=Math.min,Ii=[].lastIndexOf,$i=!!Ii&&1/[1].lastIndexOf(1,-0)<0,zi=lt("lastIndexOf"),Pi=pt("indexOf",{ACCESSORS:!0,1:0}),Li=$i||!zi||!Pi?function(e){if($i)return Ii.apply(this,arguments)||0;var t=g(this),n=ce(t.length),r=n-1;for(arguments.length>1&&(r=ji(r,le(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}:Ii;Te({target:"Array",proto:!0,forced:Li!==[].lastIndexOf},{lastIndexOf:Li});var Mi=u((function(){At(1)}));Te({target:"Object",stat:!0,forced:Mi},{keys:function(e){return At(je(e))}});var Ni=function(e){if(ru(e))throw TypeError("The method doesn't accept regular expressions");return e},qi=Ne("match");Te({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[qi]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~String(D(this)).indexOf(Ni(e),arguments.length>1?arguments[1]:void 0)}});var Ui=/"/g;Te({target:"String",proto:!0,forced:function(e){return u((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}("link")},{link:function(e){return t="a",n="href",r=e,u=String(D(this)),i="<"+t,""!==n&&(i+=" "+n+'="'+String(r).replace(Ui,"&quot;")+'"'),i+">"+u+"</"+t+">";var t,n,r,u,i}});var Zi=ge.indexOf,Gi=[].indexOf,Hi=!!Gi&&1/[1].indexOf(1,-0)<0,Vi=lt("indexOf"),Ki=pt("indexOf",{ACCESSORS:!0,1:0});Te({target:"Array",proto:!0,forced:Hi||!Vi||!Ki},{indexOf:function(e){return Hi?Gi.apply(this,arguments)||0:Zi(this,e,arguments.length>1?arguments[1]:void 0)}});var Xi=at.map,Yi=Ye("map"),Wi=pt("map");Te({target:"Array",proto:!0,forced:!Yi||!Wi},{map:function(e){return Xi(this,e,arguments.length>1?arguments[1]:void 0)}});var Ji=Ye("splice"),Qi=pt("splice",{ACCESSORS:!0,0:0,1:2}),eo=Math.max,to=Math.min,no=9007199254740991,ro="Maximum allowed length exceeded";Te({target:"Array",proto:!0,forced:!Ji||!Qi},{splice:function(e,t){var n,r,u,i,o,a,l=je(this),s=ce(l.length),c=he(e,s),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=s-c):(n=f-2,r=to(eo(le(t),0),s-c)),s+n-r>no)throw TypeError(ro);for(u=Ue(l,r),i=0;i<r;i++)(o=c+i)in l&&Ie(u,i,l[o]);if(u.length=r,n<r){for(i=c;i<s-r;i++)a=i+n,(o=i+r)in l?l[a]=l[o]:delete l[a];for(i=s;i>s-r+n;i--)delete l[i-1]}else if(n>r)for(i=s-r;i>c;i--)a=i+n-1,(o=i+r-1)in l?l[a]=l[o]:delete l[a];for(i=0;i<n;i++)l[i+c]=arguments[i+2];return l.length=s-r+n,u}});var uo=t((function(e){function t(){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}}e.exports={defaults:{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},getDefaults:t,changeDefaults:function(t){e.exports.defaults=t}}})),io=/[&<>"']/,oo=/[&<>"']/g,ao=/[<>"']|&(?!#?\w+;)/,lo=/[<>"']|&(?!#?\w+;)/g,so={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},co=function(e){return so[e]};var fo=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function po(e){return e.replace(fo,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var ho=/(^|[^\[])\^/g;var Do=/[^\w:]/g,go=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var vo={},Ao=/^[^:]+:\/*[^/]*$/,yo=/^([^:]+:)[\s\S]*$/,Eo=/^([^:]+:\/*[^/]*)[\s\S]*$/;function mo(e,t){vo[" "+e]||(Ao.test(e)?vo[" "+e]=e+"/":vo[" "+e]=ko(e,"/",!0));var n=-1===(e=vo[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(yo,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Eo,"$1")+t:e+t}function ko(e,t,n){var r=e.length;if(0===r)return"";for(var u=0;u<r;){var i=e.charAt(r-u-1);if(i!==t||n){if(i===t||!n)break;u++}else u++}return e.substr(0,r-u)}var bo=function(e,t){if(t){if(io.test(e))return e.replace(oo,co)}else if(ao.test(e))return e.replace(lo,co);return e},Fo=po,Co=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,r){return r=(r=r.source||r).replace(ho,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n},xo=function(e,t,n){if(e){var r;try{r=decodeURIComponent(po(n)).replace(Do,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!go.test(n)&&(n=mo(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},wo={exec:function(){}},So=function(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},Bo=function(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,u=t;--u>=0&&"\\"===n[u];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},_o=ko,Oo=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,u=0;u<n;u++)if("\\"===e[u])u++;else if(e[u]===t[0])r++;else if(e[u]===t[1]&&--r<0)return u;return-1},To=function(e){e&&e.sanitize&&!e.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")},Ro=function(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},jo=uo.defaults,Io=_o,$o=Bo,zo=bo,Po=Oo;function Lo(e,t,n){var r=t.href,u=t.title?zo(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:r,title:u,text:i}:{type:"image",raw:n,href:r,title:u,text:zo(i)}}var Mo=function(){function e(t){ki(this,e),this.options=t||jo}return Fi(e,[{key:"space",value:function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}}},{key:"code",value:function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Io(n,"\n")}}}},{key:"fences",value:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:Si(t,1)[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}}},{key:"heading",value:function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=Io(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}}},{key:"nptable",value:function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:$o(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var r,u=n.align.length;for(r=0;r<u;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(u=n.cells.length,r=0;r<u;r++)n.cells[r]=$o(n.cells[r],n.header.length);return n}}}},{key:"hr",value:function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}},{key:"blockquote",value:function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}}},{key:"list",value:function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,u,i,o,a,l,s,c,f=t[0],p=t[2],h=p.length>1,D={type:"list",raw:f,ordered:h,start:h?+p.slice(0,-1):"",loose:!1,items:[]},g=t[0].match(this.rules.block.item),d=!1,v=g.length;u=this.rules.block.listItemStart.exec(g[0]);for(var A=0;A<v;A++){if(f=n=g[A],this.options.pedantic||(c=n.match(new RegExp("\\n\\s*\\n {0,"+(u[0].length-1)+"}\\S")))&&(o=n.length-c.index+g.slice(A+1).join("\n").length,D.raw=D.raw.substring(0,D.raw.length-o),f=n=n.substring(0,c.index),v=A+1),A!==v-1){if(i=this.rules.block.listItemStart.exec(g[A+1]),this.options.pedantic?i[1].length>u[1].length:i[1].length>=u[0].length||i[1].length>3){g.splice(A,2,g[A]+(!this.options.pedantic&&i[1].length<u[0].length&&!g[A].match(/\n$/)?"":"\n")+g[A+1]),A--,v--;continue}(!this.options.pedantic||this.options.smartLists?i[2][i[2].length-1]!==p[p.length-1]:h===(1===i[2].length))&&(o=g.slice(A+1).join("\n").length,D.raw=D.raw.substring(0,D.raw.length-o),A=v-1),u=i}r=n.length,~(n=n.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(r-=n.length,n=this.options.pedantic?n.replace(/^ {1,4}/gm,""):n.replace(new RegExp("^ {1,"+r+"}","gm"),"")),n=Io(n,"\n"),A!==v-1&&(f+="\n"),a=d||/\n\n(?!\s*$)/.test(f),A!==v-1&&(d="\n\n"===f.slice(-2),a||(a=d)),a&&(D.loose=!0),this.options.gfm&&(s=void 0,(l=/^\[[ xX]\] /.test(n))&&(s=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),D.items.push({type:"list_item",raw:f,task:l,checked:s,loose:a,text:n})}return D}}},{key:"html",value:function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):zo(t[0]):t[0]}}},{key:"def",value:function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}},{key:"table",value:function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:$o(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,u=n.align.length;for(r=0;r<u;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(u=n.cells.length,r=0;r<u;r++)n.cells[r]=$o(n.cells[r].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}}},{key:"lheading",value:function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1]}}},{key:"paragraph",value:function(e){var t=this.rules.block.paragraph.exec(e);if(t)return{type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1]}}},{key:"text",value:function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0]}}},{key:"escape",value:function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:zo(t[1])}}},{key:"tag",value:function(e,t,n){var r=this.rules.inline.tag.exec(e);if(r)return!t&&/^<a /i.test(r[0])?t=!0:t&&/^<\/a>/i.test(r[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):zo(r[0]):r[0]}}},{key:"link",value:function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var r=Io(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var u=Po(t[2],"()");if(u>-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+u;t[2]=t[2].substring(0,u),t[0]=t[0].substring(0,i).trim(),t[3]=""}}var o=t[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);l&&(o=l[1],a=l[3])}else a=t[3]?t[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(o=this.options.pedantic&&!/>$/.test(n)?o.slice(1):o.slice(1,-1)),Lo(t,{href:o?o.replace(this.rules.inline._escapes,"$1"):o,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0])}}},{key:"reflink",value:function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])||!r.href){var u=n[0].charAt(0);return{type:"text",raw:u,text:u}}return Lo(n,r,n[0])}}},{key:"emStrong",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var u=r[1]||r[2]||"";if(!u||u&&(""===n||this.rules.inline.punctuation.exec(n))){var i,o,a=r[0].length-1,l=a,s=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=c.exec(t));)if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(o=i.length,r[3]||r[4])l+=o;else if(!((r[5]||r[6])&&a%3)||(a+o)%3){if(!((l-=o)>0)){if(l+s-o<=0&&!t.slice(c.lastIndex).match(c)&&(o=Math.min(o,o+l+s)),Math.min(a,o)%2)return{type:"em",raw:e.slice(0,a+r.index+o+1),text:e.slice(1,a+r.index+o)};if(Math.min(a,o)%2==0)return{type:"strong",raw:e.slice(0,a+r.index+o+1),text:e.slice(2,a+r.index+o-1)}}}else s+=o}}}},{key:"codespan",value:function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),u=/^ /.test(n)&&/ $/.test(n);return r&&u&&(n=n.substring(1,n.length-1)),n=zo(n,!0),{type:"codespan",raw:t[0],text:n}}}},{key:"br",value:function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}},{key:"del",value:function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}}},{key:"autolink",value:function(e,t){var n,r,u=this.rules.inline.autolink.exec(e);if(u)return r="@"===u[2]?"mailto:"+(n=zo(this.options.mangle?t(u[1]):u[1])):n=zo(u[1]),{type:"link",raw:u[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}},{key:"url",value:function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,u;if("@"===n[2])u="mailto:"+(r=zo(this.options.mangle?t(n[0]):n[0]));else{var i;do{i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(i!==n[0]);r=zo(n[0]),u="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:u,tokens:[{type:"text",raw:r,text:r}]}}}},{key:"inlineText",value:function(e,t,n){var r,u=this.rules.inline.text.exec(e);if(u)return r=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(u[0]):zo(u[0]):u[0]:zo(this.options.smartypants?n(u[0]):u[0]),{type:"text",raw:u[0],text:r}}}]),e}(),No=wo,qo=Co,Uo=So,Zo={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:No,table:No,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Zo.def=qo(Zo.def).replace("label",Zo._label).replace("title",Zo._title).getRegex(),Zo.bullet=/(?:[*+-]|\d{1,9}[.)])/,Zo.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Zo.item=qo(Zo.item,"gm").replace(/bull/g,Zo.bullet).getRegex(),Zo.listItemStart=qo(/^( *)(bull) */).replace("bull",Zo.bullet).getRegex(),Zo.list=qo(Zo.list).replace(/bull/g,Zo.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Zo.def.source+")").getRegex(),Zo._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",Zo._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Zo.html=qo(Zo.html,"i").replace("comment",Zo._comment).replace("tag",Zo._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zo.paragraph=qo(Zo._paragraph).replace("hr",Zo.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",Zo._tag).getRegex(),Zo.blockquote=qo(Zo.blockquote).replace("paragraph",Zo.paragraph).getRegex(),Zo.normal=Uo({},Zo),Zo.gfm=Uo({},Zo.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*|$)"}),Zo.gfm.nptable=qo(Zo.gfm.nptable).replace("hr",Zo.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",Zo._tag).getRegex(),Zo.gfm.table=qo(Zo.gfm.table).replace("hr",Zo.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",Zo._tag).getRegex(),Zo.pedantic=Uo({},Zo.normal,{html:qo("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Zo._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:No,paragraph:qo(Zo.normal._paragraph).replace("hr",Zo.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Zo.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Go={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:No,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(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_]*?\*[^_]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^*]*?\_[^*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:No,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};Go.punctuation=qo(Go.punctuation).replace(/punctuation/g,Go._punctuation).getRegex(),Go.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Go.escapedEmSt=/\\\*|\\_/g,Go._comment=qo(Zo._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Go.emStrong.lDelim=qo(Go.emStrong.lDelim).replace(/punct/g,Go._punctuation).getRegex(),Go.emStrong.rDelimAst=qo(Go.emStrong.rDelimAst,"g").replace(/punct/g,Go._punctuation).getRegex(),Go.emStrong.rDelimUnd=qo(Go.emStrong.rDelimUnd,"g").replace(/punct/g,Go._punctuation).getRegex(),Go._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Go._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Go._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])?)+(?![-_])/,Go.autolink=qo(Go.autolink).replace("scheme",Go._scheme).replace("email",Go._email).getRegex(),Go._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Go.tag=qo(Go.tag).replace("comment",Go._comment).replace("attribute",Go._attribute).getRegex(),Go._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Go._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Go._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Go.link=qo(Go.link).replace("label",Go._label).replace("href",Go._href).replace("title",Go._title).getRegex(),Go.reflink=qo(Go.reflink).replace("label",Go._label).getRegex(),Go.reflinkSearch=qo(Go.reflinkSearch,"g").replace("reflink",Go.reflink).replace("nolink",Go.nolink).getRegex(),Go.normal=Uo({},Go),Go.pedantic=Uo({},Go.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:qo(/^!?\[(label)\]\((.*?)\)/).replace("label",Go._label).getRegex(),reflink:qo(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Go._label).getRegex()}),Go.gfm=Uo({},Go.normal,{escape:qo(Go.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),Go.gfm.url=qo(Go.gfm.url,"i").replace("email",Go.gfm._extended_email).getRegex(),Go.breaks=Uo({},Go.gfm,{br:qo(Go.br).replace("{2,}","*").getRegex(),text:qo(Go.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ho={block:Zo,inline:Go},Vo=uo.defaults,Ko=Ho.block,Xo=Ho.inline,Yo=Ro;function Wo(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,"…")}function Jo(e){var t,n,r="",u=e.length;for(t=0;t<u;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var Qo=function(){function e(t){ki(this,e),this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Vo,this.options.tokenizer=this.options.tokenizer||new Mo,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var n={block:Ko.normal,inline:Xo.normal};this.options.pedantic?(n.block=Ko.pedantic,n.inline=Xo.pedantic):this.options.gfm&&(n.block=Ko.gfm,this.options.breaks?n.inline=Xo.breaks:n.inline=Xo.gfm),this.tokenizer.rules=n}return Fi(e,[{key:"lex",value: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}},{key:"blockTokens",value:function(e){var t,n,r,u,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];for(this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),t.type&&i.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),(u=i[i.length-1])&&"paragraph"===u.type?(u.raw+="\n"+t.raw,u.text+="\n"+t.text):i.push(t);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.nptable(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),t.tokens=this.blockTokens(t.text,[],o),i.push(t);else if(t=this.tokenizer.list(e)){for(e=e.substring(t.raw.length),r=t.items.length,n=0;n<r;n++)t.items[n].tokens=this.blockTokens(t.items[n].text,[],!1);i.push(t)}else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),i.push(t);else if(o&&(t=this.tokenizer.def(e)))e=e.substring(t.raw.length),this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title});else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),i.push(t);else if(o&&(t=this.tokenizer.paragraph(e)))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),(u=i[i.length-1])&&"text"===u.type?(u.raw+="\n"+t.raw,u.text+="\n"+t.text):i.push(t);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return i}},{key:"inline",value:function(e){var t,n,r,u,i,o,a=e.length;for(t=0;t<a;t++)switch((o=e[t]).type){case"paragraph":case"text":case"heading":o.tokens=[],this.inlineTokens(o.text,o.tokens);break;case"table":for(o.tokens={header:[],cells:[]},u=o.header.length,n=0;n<u;n++)o.tokens.header[n]=[],this.inlineTokens(o.header[n],o.tokens.header[n]);for(u=o.cells.length,n=0;n<u;n++)for(i=o.cells[n],o.tokens.cells[n]=[],r=0;r<i.length;r++)o.tokens.cells[n][r]=[],this.inlineTokens(i[r],o.tokens.cells[n][r]);break;case"blockquote":this.inline(o.tokens);break;case"list":for(u=o.items.length,n=0;n<u;n++)this.inline(o.items[n].tokens)}return e}},{key:"inlineTokens",value:function(e){var t,n,r,u,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(s));)c.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,r.index)+"["+Yo("a",r[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,r.index)+"["+Yo("a",r[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(s));)s=s.slice(0,r.index)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(u||(i=""),u=!1,t=this.tokenizer.escape(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.tag(e,a,l)){e=e.substring(t.raw.length),a=t.inLink,l=t.inRawBlock;var f=o[o.length-1];f&&"text"===t.type&&"text"===f.type?(f.raw+=t.raw,f.text+=t.text):o.push(t)}else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),"link"===t.type&&(t.tokens=this.inlineTokens(t.text,[],!0,l)),o.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(t.raw.length);var p=o[o.length-1];"link"===t.type?(t.tokens=this.inlineTokens(t.text,[],!0,l),o.push(t)):p&&"text"===t.type&&"text"===p.type?(p.raw+=t.raw,p.text+=t.text):o.push(t)}else if(t=this.tokenizer.emStrong(e,s,i))e=e.substring(t.raw.length),t.tokens=this.inlineTokens(t.text,[],a,l),o.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),o.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),t.tokens=this.inlineTokens(t.text,[],a,l),o.push(t);else if(t=this.tokenizer.autolink(e,Jo))e=e.substring(t.raw.length),o.push(t);else if(a||!(t=this.tokenizer.url(e,Jo))){if(t=this.tokenizer.inlineText(e,l,Wo))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(i=t.raw.slice(-1)),u=!0,(n=o[o.length-1])&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):o.push(t);else if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}else e=e.substring(t.raw.length),o.push(t);return o}}],[{key:"lex",value:function(t,n){return new e(n).lex(t)}},{key:"lexInline",value:function(t,n){return new e(n).inlineTokens(t)}},{key:"rules",get:function(){return{block:Ko,inline:Xo}}}]),e}(),ea=uo.defaults,ta=xo,na=bo,ra=function(){function e(t){ki(this,e),this.options=t||ea}return Fi(e,[{key:"code",value:function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var u=this.options.highlight(e,r);null!=u&&u!==e&&(n=!0,e=u)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+na(r,!0)+'">'+(n?e:na(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:na(e,!0))+"</code></pre>\n"}},{key:"blockquote",value:function(e){return"<blockquote>\n"+e+"</blockquote>\n"}},{key:"html",value:function(e){return e}},{key:"heading",value:function(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}},{key:"hr",value:function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}},{key:"list",value:function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}},{key:"listitem",value:function(e){return"<li>"+e+"</li>\n"}},{key:"checkbox",value:function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}},{key:"paragraph",value:function(e){return"<p>"+e+"</p>\n"}},{key:"table",value:function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}},{key:"tablerow",value:function(e){return"<tr>\n"+e+"</tr>\n"}},{key:"tablecell",value:function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}},{key:"strong",value:function(e){return"<strong>"+e+"</strong>"}},{key:"em",value:function(e){return"<em>"+e+"</em>"}},{key:"codespan",value:function(e){return"<code>"+e+"</code>"}},{key:"br",value:function(){return this.options.xhtml?"<br/>":"<br>"}},{key:"del",value:function(e){return"<del>"+e+"</del>"}},{key:"link",value:function(e,t,n){if(null===(e=ta(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+na(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>"}},{key:"image",value:function(e,t,n){if(null===(e=ta(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"}},{key:"text",value:function(e){return e}}]),e}(),ua=function(){function e(){ki(this,e)}return Fi(e,[{key:"strong",value:function(e){return e}},{key:"em",value:function(e){return e}},{key:"codespan",value:function(e){return e}},{key:"del",value:function(e){return e}},{key:"html",value:function(e){return e}},{key:"text",value:function(e){return e}},{key:"link",value:function(e,t,n){return""+n}},{key:"image",value:function(e,t,n){return""+n}},{key:"br",value:function(){return""}}]),e}(),ia=function(){function e(){ki(this,e),this.seen={}}return Fi(e,[{key:"serialize",value:function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}},{key:"getNextSafeSlug",value:function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}},{key:"slug",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}]),e}(),oa=uo.defaults,aa=Fo,la=function(){function e(t){ki(this,e),this.options=t||oa,this.options.renderer=this.options.renderer||new ra,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ua,this.slugger=new ia}return Fi(e,[{key:"parse",value:function(e){var t,n,r,u,i,o,a,l,s,c,f,p,h,D,g,d,v,A,y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],E="",m=e.length;for(t=0;t<m;t++)switch((c=e[t]).type){case"space":continue;case"hr":E+=this.renderer.hr();continue;case"heading":E+=this.renderer.heading(this.parseInline(c.tokens),c.depth,aa(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":E+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(l="",a="",u=c.header.length,n=0;n<u;n++)a+=this.renderer.tablecell(this.parseInline(c.tokens.header[n]),{header:!0,align:c.align[n]});for(l+=this.renderer.tablerow(a),s="",u=c.cells.length,n=0;n<u;n++){for(a="",i=(o=c.tokens.cells[n]).length,r=0;r<i;r++)a+=this.renderer.tablecell(this.parseInline(o[r]),{header:!1,align:c.align[r]});s+=this.renderer.tablerow(a)}E+=this.renderer.table(l,s);continue;case"blockquote":s=this.parse(c.tokens),E+=this.renderer.blockquote(s);continue;case"list":for(f=c.ordered,p=c.start,h=c.loose,u=c.items.length,s="",n=0;n<u;n++)d=(g=c.items[n]).checked,v=g.task,D="",g.task&&(A=this.renderer.checkbox(d),h?g.tokens.length>0&&"text"===g.tokens[0].type?(g.tokens[0].text=A+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=A+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:A}):D+=A),D+=this.parse(g.tokens,h),s+=this.renderer.listitem(D,v,d);E+=this.renderer.list(s,f,p);continue;case"html":E+=this.renderer.html(c.text);continue;case"paragraph":E+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(s=c.tokens?this.parseInline(c.tokens):c.text;t+1<m&&"text"===e[t+1].type;)s+="\n"+((c=e[++t]).tokens?this.parseInline(c.tokens):c.text);E+=y?this.renderer.paragraph(s):s;continue;default:var k='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(k);throw new Error(k)}return E}},{key:"parseInline",value:function(e,t){t=t||this.renderer;var n,r,u="",i=e.length;for(n=0;n<i;n++)switch((r=e[n]).type){case"escape":u+=t.text(r.text);break;case"html":u+=t.html(r.text);break;case"link":u+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":u+=t.image(r.href,r.title,r.text);break;case"strong":u+=t.strong(this.parseInline(r.tokens,t));break;case"em":u+=t.em(this.parseInline(r.tokens,t));break;case"codespan":u+=t.codespan(r.text);break;case"br":u+=t.br();break;case"del":u+=t.del(this.parseInline(r.tokens,t));break;case"text":u+=t.text(r.text);break;default:var o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(o);throw new Error(o)}return u}}],[{key:"parse",value:function(t,n){return new e(n).parse(t)}},{key:"parseInline",value:function(t,n){return new e(n).parseInline(t)}}]),e}(),sa=So,ca=To,fa=bo,pa=uo.getDefaults,ha=uo.changeDefaults,Da=uo.defaults;function ga(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=sa({},ga.defaults,t||{}),ca(t),n){var r,u=t.highlight;try{r=Qo.lex(e,t)}catch(e){return n(e)}var i=function(e){var i;if(!e)try{i=la.parse(r,t)}catch(t){e=t}return t.highlight=u,e?n(e):n(null,i)};if(!u||u.length<3)return i();if(delete t.highlight,!r.length)return i();var o=0;return ga.walkTokens(r,(function(e){"code"===e.type&&(o++,setTimeout((function(){u(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0===--o&&i()}))}),0))})),void(0===o&&i())}try{var a=Qo.lex(e,t);return t.walkTokens&&ga.walkTokens(a,t.walkTokens),la.parse(a,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+fa(e.message+"",!0)+"</pre>";throw e}}ga.options=ga.setOptions=function(e){return sa(ga.defaults,e),ha(ga.defaults),ga},ga.getDefaults=pa,ga.defaults=Da,ga.use=function(e){var t=sa({},e);if(e.renderer&&function(){var n=ga.defaults.renderer||new ra,r=function(t){var r=n[t];n[t]=function(){for(var u=arguments.length,i=new Array(u),o=0;o<u;o++)i[o]=arguments[o];var a=e.renderer[t].apply(n,i);return!1===a&&(a=r.apply(n,i)),a}};for(var u in e.renderer)r(u);t.renderer=n}(),e.tokenizer&&function(){var n=ga.defaults.tokenizer||new Mo,r=function(t){var r=n[t];n[t]=function(){for(var u=arguments.length,i=new Array(u),o=0;o<u;o++)i[o]=arguments[o];var a=e.tokenizer[t].apply(n,i);return!1===a&&(a=r.apply(n,i)),a}};for(var u in e.tokenizer)r(u);t.tokenizer=n}(),e.walkTokens){var n=ga.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens(t),n&&n(t)}}ga.setOptions(t)},ga.walkTokens=function(e,t){var n,r=Oi(e);try{for(r.s();!(n=r.n()).done;){var u=n.value;switch(t(u),u.type){case"table":var i,o=Oi(u.tokens.header);try{for(o.s();!(i=o.n()).done;){var a=i.value;ga.walkTokens(a,t)}}catch(e){o.e(e)}finally{o.f()}var l,s=Oi(u.tokens.cells);try{for(s.s();!(l=s.n()).done;){var c,f=Oi(l.value);try{for(f.s();!(c=f.n()).done;){var p=c.value;ga.walkTokens(p,t)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){s.e(e)}finally{s.f()}break;case"list":ga.walkTokens(u.items,t);break;default:u.tokens&&ga.walkTokens(u.tokens,t)}}}catch(e){r.e(e)}finally{r.f()}},ga.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=sa({},ga.defaults,t||{}),ca(t);try{var n=Qo.lexInline(e,t);return t.walkTokens&&ga.walkTokens(n,t.walkTokens),la.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+fa(e.message+"",!0)+"</pre>";throw e}},ga.Parser=la,ga.parser=la.parse,ga.Renderer=ra,ga.TextRenderer=ua,ga.Lexer=Qo,ga.lexer=Qo.lex,ga.Tokenizer=Mo,ga.Slugger=ia,ga.parse=ga;var da=ga,va="__SCRIPT_END__",Aa=/\[([\s\d,|-]*)\]/,ya={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};return function(){var e;function t(e){var t=(e.querySelector("[data-template]")||e.querySelector("script")||e).textContent,n=(t=t.replace(new RegExp(va,"g"),"<\/script>")).match(/^\n?(\s*)/)[1].length,r=t.match(/^\n?(\t*)/)[1].length;return r>0?t=t.replace(new RegExp("\\n?\\t{"+r+"}","g"),"\n"):n>1&&(t=t.replace(new RegExp("\\n? {"+n+"}","g"),"\n")),t}function n(e){for(var t=e.attributes,n=[],r=0,u=t.length;r<u;r++){var i=t[r].name,o=t[r].value;/data\-(markdown|separator|vertical|notes)/gi.test(i)||(o?n.push(i+'="'+o+'"'):n.push(i))}return n.join(" ")}function r(e){return(e=e||{}).separator=e.separator||"\r?\n---\r?\n",e.notesSeparator=e.notesSeparator||"notes?:",e.attributes=e.attributes||"",e}function u(e,t){t=r(t);var n=e.split(new RegExp(t.notesSeparator,"mgi"));return 2===n.length&&(e=n[0]+'<aside class="notes">'+da(n[1].trim())+"</aside>"),'<script type="text/template">'+(e=e.replace(/<\/script>/g,va))+"<\/script>"}function i(e,t){t=r(t);for(var n,i,o,a=new RegExp(t.separator+(t.verticalSeparator?"|"+t.verticalSeparator:""),"mg"),l=new RegExp(t.separator),s=0,c=!0,f=[];n=a.exec(e);)!(i=l.test(n[0]))&&c&&f.push([]),o=e.substring(s,n.index),i&&c?f.push(o):f[f.length-1].push(o),s=a.lastIndex,c=i;(c?f:f[f.length-1]).push(e.substring(s));for(var p="",h=0,D=f.length;h<D;h++)f[h]instanceof Array?(p+="<section "+t.attributes+">",f[h].forEach((function(e){p+="<section data-markdown>"+u(e,t)+"</section>"})),p+="</section>"):p+="<section "+t.attributes+" data-markdown>"+u(f[h],t)+"</section>";return p}function o(e){return new Promise((function(r){var u=[];[].slice.call(e.querySelectorAll("[data-markdown]:not([data-markdown-parsed])")).forEach((function(e,r){e.getAttribute("data-markdown").length?u.push(function(e){return new Promise((function(t,n){var r=new XMLHttpRequest,u=e.getAttribute("data-markdown"),i=e.getAttribute("data-charset");null!=i&&""!=i&&r.overrideMimeType("text/html; charset="+i),r.onreadystatechange=function(e,r){4===r.readyState&&(r.status>=200&&r.status<300||0===r.status?t(r,u):n(r,u))}.bind(this,e,r),r.open("GET",u,!0);try{r.send()}catch(e){console.warn("Failed to get the Markdown file "+u+". Make sure that the presentation and the file are served by a HTTP server and the file can be found there. "+e),t(r,u)}}))}(e).then((function(t,r){e.outerHTML=i(t.responseText,{separator:e.getAttribute("data-separator"),verticalSeparator:e.getAttribute("data-separator-vertical"),notesSeparator:e.getAttribute("data-separator-notes"),attributes:n(e)})}),(function(t,n){e.outerHTML='<section data-state="alert">ERROR: The attempt to fetch '+n+" failed with HTTP status "+t.status+".Check your browser's JavaScript console for more details.<p>Remember that you need to serve the presentation HTML from a HTTP server.</p></section>"}))):e.outerHTML=i(t(e),{separator:e.getAttribute("data-separator"),verticalSeparator:e.getAttribute("data-separator-vertical"),notesSeparator:e.getAttribute("data-separator-notes"),attributes:n(e)})})),Promise.all(u).then(r)}))}function a(e,t,n){var r,u,i=new RegExp(n,"mg"),o=new RegExp('([^"= ]+?)="([^"]+?)"|(data-[^"= ]+?)(?=[" ])',"mg"),a=e.nodeValue;if(r=i.exec(a)){var l=r[1];for(a=a.substring(0,r.index)+a.substring(i.lastIndex),e.nodeValue=a;u=o.exec(l);)u[2]?t.setAttribute(u[1],u[2]):t.setAttribute(u[3],"");return!0}return!1}function l(e,t,n,r,u){if(null!=t&&null!=t.childNodes&&t.childNodes.length>0)for(var i=t,o=0;o<t.childNodes.length;o++){var s=t.childNodes[o];if(o>0)for(var c=o-1;c>=0;){var f=t.childNodes[c];if("function"==typeof f.setAttribute&&"BR"!=f.tagName){i=f;break}c-=1}var p=e;"section"==s.nodeName&&(p=s,i=s),"function"!=typeof s.setAttribute&&s.nodeType!=Node.COMMENT_NODE||l(p,s,i,r,u)}t.nodeType==Node.COMMENT_NODE&&0==a(t,n,r)&&a(t,e,u)}function s(){var n=e.getRevealElement().querySelectorAll("[data-markdown]:not([data-markdown-parsed])");return[].slice.call(n).forEach((function(e){e.setAttribute("data-markdown-parsed",!0);var n=e.querySelector("aside.notes"),r=t(e);e.innerHTML=da(r),l(e,e,null,e.getAttribute("data-element-attributes")||e.parentNode.getAttribute("data-element-attributes")||"\\.element\\s*?(.+?)$",e.getAttribute("data-attributes")||e.parentNode.getAttribute("data-attributes")||"\\.slide:\\s*?(\\S.+?)$"),n&&e.appendChild(n)})),Promise.resolve()}return{id:"markdown",init:function(t){var n=(e=t).getConfig().markdown||{},r=n.renderer,u=n.animateLists,i=wi(n,["renderer","animateLists"]);return r||((r=new da.Renderer).code=function(e,t){var n="";return Aa.test(t)&&(n=t.match(Aa)[1].trim(),n='data-line-numbers="'.concat(n,'"'),t=t.replace(Aa,"").trim()),e=e.replace(/([&<>'"])/g,(function(e){return ya[e]})),"<pre><code ".concat(n,' class="').concat(t,'">').concat(e,"</code></pre>")}),!0===u&&(r.listitem=function(e){return'<li class="fragment">'.concat(e,"</li>")}),da.setOptions(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xi(Object(n),!0).forEach((function(t){Ci(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({renderer:r},i)),o(e.getRevealElement()).then(s)},processSlides:o,convertSlides:s,slidify:i,marked:da}}}));