!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";function e(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 t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n=0||(u[n]=e[n]);return u}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,u,i=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){a=!0,u=e}finally{try{o||null==n.return||n.return()}finally{if(a)throw u}}return i}(e,t)||a(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 a(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},f=function(e){return e&&e.Math==Math&&e},p=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof c&&c)||function(){return this}()||Function("return this")(),h={},D=function(e){try{return!!e()}catch(e){return!0}},g=!D((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d={},v={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,A=y&&!v.call({1:2},1);d.f=A?function(e){var t=y(this,e);return!!t&&t.enumerable}:v;var m=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},k={}.toString,E=function(e){return k.call(e).slice(8,-1)},x=E,F="".split,b=D((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==x(e)?F.call(e,""):Object(e)}:Object,C=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},w=b,B=C,S=function(e){return w(B(e))},_=function(e){return"object"==typeof e?null!==e:"function"==typeof e},T=_,O=function(e,t){if(!T(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!T(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!T(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!T(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},R=C,I=function(e){return Object(R(e))},j=I,z={}.hasOwnProperty,$=function(e,t){return z.call(j(e),t)},P=_,L=p.document,M=P(L)&&P(L.createElement),N=function(e){return M?L.createElement(e):{}},U=N,q=!g&&!D((function(){return 7!=Object.defineProperty(U("div"),"a",{get:function(){return 7}}).a})),Z=g,G=d,H=m,Q=S,V=O,Y=$,K=q,X=Object.getOwnPropertyDescriptor;h.f=Z?X:function(e,t){if(e=Q(e),t=V(t,!0),K)try{return X(e,t)}catch(e){}if(Y(e,t))return H(!G.f.call(e,t),e[t])};var W={},J=_,ee=function(e){if(!J(e))throw TypeError(String(e)+" is not an object");return e},te=g,ne=q,re=ee,ue=O,ie=Object.defineProperty;W.f=te?ie:function(e,t,n){if(re(e),t=ue(t,!0),re(n),ne)try{return ie(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};var oe=W,ae=m,se=g?function(e,t,n){return oe.f(e,t,ae(1,n))}:function(e,t,n){return e[t]=n,e},le={exports:{}},ce=p,fe=se,pe=function(e,t){try{fe(ce,e,t)}catch(n){ce[e]=t}return t},he=pe,De="__core-js_shared__",ge=p[De]||he(De,{}),de=ge,ve=Function.toString;"function"!=typeof de.inspectSource&&(de.inspectSource=function(e){return ve.call(e)});var ye=de.inspectSource,Ae=ye,me=p.WeakMap,ke="function"==typeof me&&/native code/.test(Ae(me)),Ee={exports:{}},xe=ge;(Ee.exports=function(e,t){return xe[e]||(xe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var Fe,be,Ce,we=0,Be=Math.random(),Se=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++we+Be).toString(36)},_e=Ee.exports,Te=Se,Oe=_e("keys"),Re=function(e){return Oe[e]||(Oe[e]=Te(e))},Ie={},je=ke,ze=_,$e=se,Pe=$,Le=ge,Me=Re,Ne=Ie,Ue="Object already initialized",qe=p.WeakMap;if(je||Le.state){var Ze=Le.state||(Le.state=new qe),Ge=Ze.get,He=Ze.has,Qe=Ze.set;Fe=function(e,t){if(He.call(Ze,e))throw new TypeError(Ue);return t.facade=e,Qe.call(Ze,e,t),t},be=function(e){return Ge.call(Ze,e)||{}},Ce=function(e){return He.call(Ze,e)}}else{var Ve=Me("state");Ne[Ve]=!0,Fe=function(e,t){if(Pe(e,Ve))throw new TypeError(Ue);return t.facade=e,$e(e,Ve,t),t},be=function(e){return Pe(e,Ve)?e[Ve]:{}},Ce=function(e){return Pe(e,Ve)}}var Ye={set:Fe,get:be,has:Ce,enforce:function(e){return Ce(e)?be(e):Fe(e,{})},getterFor:function(e){return function(t){var n;if(!ze(t)||(n=be(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ke=p,Xe=se,We=$,Je=pe,et=ye,tt=Ye.get,nt=Ye.enforce,rt=String(String).split("String");(le.exports=function(e,t,n,r){var u,i=!!r&&!!r.unsafe,o=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof t||We(n,"name")||Xe(n,"name",t),(u=nt(n)).source||(u.source=rt.join("string"==typeof t?t:""))),e!==Ke?(i?!a&&e[t]&&(o=!0):delete e[t],o?e[t]=n:Xe(e,t,n)):o?e[t]=n:Je(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&tt(this).source||et(this)}));var ut=p,it=p,ot=function(e){return"function"==typeof e?e:void 0},at=function(e,t){return arguments.length<2?ot(ut[e])||ot(it[e]):ut[e]&&ut[e][t]||it[e]&&it[e][t]},st={},lt=Math.ceil,ct=Math.floor,ft=function(e){return isNaN(e=+e)?0:(e>0?ct:lt)(e)},pt=ft,ht=Math.min,Dt=function(e){return e>0?ht(pt(e),9007199254740991):0},gt=ft,dt=Math.max,vt=Math.min,yt=function(e,t){var n=gt(e);return n<0?dt(n+t,0):vt(n,t)},At=S,mt=Dt,kt=yt,Et=function(e){return function(t,n,r){var u,i=At(t),o=mt(i.length),a=kt(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}},xt={includes:Et(!0),indexOf:Et(!1)},Ft=$,bt=S,Ct=xt.indexOf,wt=Ie,Bt=function(e,t){var n,r=bt(e),u=0,i=[];for(n in r)!Ft(wt,n)&&Ft(r,n)&&i.push(n);for(;t.length>u;)Ft(r,n=t[u++])&&(~Ct(i,n)||i.push(n));return i},St=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_t=Bt,Tt=St.concat("length","prototype");st.f=Object.getOwnPropertyNames||function(e){return _t(e,Tt)};var Ot={};Ot.f=Object.getOwnPropertySymbols;var Rt=st,It=Ot,jt=ee,zt=at("Reflect","ownKeys")||function(e){var t=Rt.f(jt(e)),n=It.f;return n?t.concat(n(e)):t},$t=$,Pt=zt,Lt=h,Mt=W,Nt=D,Ut=/#|\.prototype\./,qt=function(e,t){var n=Gt[Zt(e)];return n==Qt||n!=Ht&&("function"==typeof t?Nt(t):!!t)},Zt=qt.normalize=function(e){return String(e).replace(Ut,".").toLowerCase()},Gt=qt.data={},Ht=qt.NATIVE="N",Qt=qt.POLYFILL="P",Vt=qt,Yt=p,Kt=h.f,Xt=se,Wt=le.exports,Jt=pe,en=function(e,t){for(var n=Pt(t),r=Mt.f,u=Lt.f,i=0;i0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(s="(?: "+s+")",c=" "+c,l++),n=new RegExp("^(?:"+s+")",a)),vn&&(n=new RegExp("^"+s+"$(?!\\s)",a)),gn&&(t=i.lastIndex),r=pn.call(o?n:i,c),o?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:gn&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),vn&&r&&r.length>1&&hn.call(r[0],n,(function(){for(u=1;u=74)&&(An=En.match(/Chrome\/(\d+)/))&&(mn=An[1]);var Cn=mn&&+mn,wn=Cn,Bn=D,Sn=!!Object.getOwnPropertySymbols&&!Bn((function(){return!String(Symbol())||!Symbol.sham&&wn&&wn<41})),_n=Sn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Tn=p,On=Ee.exports,Rn=$,In=Se,jn=Sn,zn=_n,$n=On("wks"),Pn=Tn.Symbol,Ln=zn?Pn:Pn&&Pn.withoutSetter||In,Mn=function(e){return Rn($n,e)&&(jn||"string"==typeof $n[e])||(jn&&Rn(Pn,e)?$n[e]=Pn[e]:$n[e]=Ln("Symbol."+e)),$n[e]},Nn=le.exports,Un=yn,qn=D,Zn=Mn,Gn=se,Hn=Zn("species"),Qn=RegExp.prototype,Vn=!qn((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")})),Yn="$0"==="a".replace(/./,"$0"),Kn=Zn("replace"),Xn=!!/./[Kn]&&""===/./[Kn]("a","$0"),Wn=!qn((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]})),Jn=function(e,t,n,r){var u=Zn(e),i=!qn((function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})),o=i&&!qn((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Hn]=function(){return n},n.flags="",n[u]=/./[u]),n.exec=function(){return t=!0,null},n[u](""),!t}));if(!i||!o||"replace"===e&&(!Vn||!Yn||Xn)||"split"===e&&!Wn){var a=/./[u],s=n(u,""[e],(function(e,t,n,r,u){var o=t.exec;return o===Un||o===Qn.exec?i&&!u?{done:!0,value:a.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Yn,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Xn}),l=s[0],c=s[1];Nn(String.prototype,e,l),Nn(Qn,u,2==t?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)})}r&&Gn(Qn[u],"sham",!0)},er=ft,tr=C,nr=function(e){return function(t,n){var r,u,i=String(tr(t)),o=er(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}},rr={codeAt:nr(!1),charAt:nr(!0)},ur=rr.charAt,ir=function(e,t,n){return t+(n?ur(e,t).length:1)},or=I,ar=Math.floor,sr="".replace,lr=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cr=/\$([$&'`]|\d{1,2})/g,fr=E,pr=yn,hr=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"!==fr(e))throw TypeError("RegExp#exec called on incompatible receiver");return pr.call(e,t)},Dr=Jn,gr=ee,dr=Dt,vr=ft,yr=C,Ar=ir,mr=function(e,t,n,r,u,i){var o=n+e.length,a=r.length,s=cr;return void 0!==u&&(u=or(u),s=lr),sr.call(i,s,(function(i,s){var l;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(o);case"<":l=u[s.slice(1,-1)];break;default:var c=+s;if(0===c)return i;if(c>a){var f=ar(c/10);return 0===f?i:f<=a?void 0===r[f-1]?s.charAt(1):r[f-1]+s.charAt(1):i}l=r[c-1]}return void 0===l?"":l}))},kr=hr,Er=Math.max,xr=Math.min;Dr("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=yr(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 a=n(t,e,this,r);if(a.done)return a.value}var s=gr(e),l=String(this),c="function"==typeof r;c||(r=String(r));var f=s.global;if(f){var p=s.unicode;s.lastIndex=0}for(var h=[];;){var D=kr(s,l);if(null===D)break;if(h.push(D),!f)break;""===String(D[0])&&(s.lastIndex=Ar(l,dr(s.lastIndex),p))}for(var g,d="",v=0,y=0;y=v&&(d+=l.slice(v,m)+b,v=m+A.length)}return d+l.slice(v)}]}));var Fr=_,br=ee,Cr=function(e){if(!Fr(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e},wr=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 br(n),Cr(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Br=_,Sr=wr,_r=_,Tr=E,Or=Mn("match"),Rr=function(e){var t;return _r(e)&&(void 0!==(t=e[Or])?!!t:"RegExp"==Tr(e))},Ir=at,jr=W,zr=g,$r=Mn("species"),Pr=function(e){var t=Ir(e),n=jr.f;zr&&t&&!t[$r]&&n(t,$r,{configurable:!0,get:function(){return this}})},Lr=g,Mr=p,Nr=Vt,Ur=function(e,t,n){var r,u;return Sr&&"function"==typeof(r=t.constructor)&&r!==n&&Br(u=r.prototype)&&u!==n.prototype&&Sr(e,u),e},qr=W.f,Zr=st.f,Gr=Rr,Hr=un,Qr=on,Vr=le.exports,Yr=D,Kr=Ye.enforce,Xr=Pr,Wr=Mn("match"),Jr=Mr.RegExp,eu=Jr.prototype,tu=/a/g,nu=/a/g,ru=new Jr(tu)!==tu,uu=Qr.UNSUPPORTED_Y;if(Lr&&Nr("RegExp",!ru||uu||Yr((function(){return nu[Wr]=!1,Jr(tu)!=tu||Jr(nu)==nu||"/a/i"!=Jr(tu,"i")})))){for(var iu=function(e,t){var n,r=this instanceof iu,u=Gr(e),i=void 0===t;if(!r&&u&&e.constructor===iu&&i)return e;ru?u&&!i&&(e=e.source):e instanceof iu&&(i&&(t=Hr.call(e)),e=e.source),uu&&(n=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,""));var o=Ur(ru?new Jr(e,t):Jr(e,t),r?this:eu,iu);uu&&n&&(Kr(o).sticky=!0);return o},ou=function(e){e in iu||qr(iu,e,{configurable:!0,get:function(){return Jr[e]},set:function(t){Jr[e]=t}})},au=Zr(Jr),su=0;au.length>su;)ou(au[su++]);eu.constructor=iu,iu.prototype=eu,Vr(Mr,"RegExp",iu)}Xr("RegExp");var lu=le.exports,cu=ee,fu=D,pu=un,hu="toString",Du=RegExp.prototype,gu=Du.toString,du=fu((function(){return"/a/b"!=gu.call({source:"a",flags:"b"})})),vu=gu.name!=hu;(du||vu)&&lu(RegExp.prototype,hu,(function(){var e=cu(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in Du)?pu.call(e):n)}),{unsafe:!0});var yu=ee,Au=Dt,mu=C,ku=ir,Eu=hr;Jn("match",1,(function(e,t,n){return[function(t){var n=mu(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=yu(e),i=String(this);if(!u.global)return Eu(u,i);var o=u.unicode;u.lastIndex=0;for(var a,s=[],l=0;null!==(a=Eu(u,i));){var c=String(a[0]);s[l]=c,""===c&&(u.lastIndex=ku(i,Au(u.lastIndex),o)),l++}return 0===l?null:s}]}));var xu=g,Fu=W.f,bu=Function.prototype,Cu=bu.toString,wu=/^\s*function ([^ (]*)/,Bu="name";xu&&!(Bu in bu)&&Fu(bu,Bu,{configurable:!0,get:function(){try{return Cu.call(this).match(wu)[1]}catch(e){return""}}});var Su=D,_u=function(e,t){var n=[][e];return!!n&&Su((function(){n.call(null,t||function(){throw 1},1)}))},Tu=nn,Ou=S,Ru=[].join,Iu=b!=Object,ju=_u("join",",");Tu({target:"Array",proto:!0,forced:Iu||!ju},{join:function(e){return Ru.call(Ou(this),void 0===e?",":e)}});var zu=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},$u=ee,Pu=zu,Lu=Mn("species"),Mu=function(e,t){var n,r=$u(e).constructor;return void 0===r||null==(n=$u(r)[Lu])?t:Pu(n)},Nu=Jn,Uu=Rr,qu=ee,Zu=C,Gu=Mu,Hu=ir,Qu=Dt,Vu=hr,Yu=yn,Ku=on.UNSUPPORTED_Y,Xu=[].push,Wu=Math.min,Ju=4294967295;Nu("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(Zu(this)),u=void 0===n?Ju:n>>>0;if(0===u)return[];if(void 0===e)return[r];if(!Uu(e))return t.call(r,e,u);for(var i,o,a,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=Yu.call(f,r))&&!((o=f.lastIndex)>c&&(s.push(r.slice(c,i.index)),i.length>1&&i.index=u));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!a&&f.test("")||s.push(""):s.push(r.slice(c)),s.length>u?s.slice(0,u):s}:"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=Zu(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=qu(e),a=String(this),s=Gu(o,RegExp),l=o.unicode,c=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Ku?"g":"y"),f=new s(Ku?"^(?:"+o.source+")":o,c),p=void 0===u?Ju:u>>>0;if(0===p)return[];if(0===a.length)return null===Vu(f,a)?[a]:[];for(var h=0,D=0,g=[];Dy;y++)if((a||y in g)&&(h=d(p=g[y],y,D),e))if(t)m[y]=h;else if(h)switch(e){case 3:return!0;case 5:return p;case 6:return y;case 2:bi.call(m,p)}else switch(e){case 4:return!1;case 7:bi.call(m,p)}return i?-1:r||u?u:m}},wi={forEach:Ci(0),map:Ci(1),filter:Ci(2),some:Ci(3),every:Ci(4),find:Ci(5),findIndex:Ci(6),filterOut:Ci(7)},Bi=wi.forEach,Si=p,_i=fi,Ti=_u("forEach")?[].forEach:function(e){return Bi(this,e,arguments.length>1?arguments[1]:void 0)},Oi=se;for(var Ri in _i){var Ii=Si[Ri],ji=Ii&&Ii.prototype;if(ji&&ji.forEach!==Ti)try{Oi(ji,"forEach",Ti)}catch(e){ji.forEach=Ti}}var zi={};zi[Mn("toStringTag")]="z";var $i="[object z]"===String(zi),Pi=$i,Li=E,Mi=Mn("toStringTag"),Ni="Arguments"==Li(function(){return arguments}()),Ui=Pi?Li: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),Mi))?n:Ni?Li(t):"Object"==(r=Li(t))&&"function"==typeof t.callee?"Arguments":r},qi=Ui,Zi=$i?{}.toString:function(){return"[object "+qi(this)+"]"},Gi=$i,Hi=le.exports,Qi=Zi;Gi||Hi(Object.prototype,"toString",Qi,{unsafe:!0});var Vi=p.Promise,Yi=le.exports,Ki=W.f,Xi=$,Wi=Mn("toStringTag"),Ji=function(e,t,n){e&&!Xi(e=n?e:e.prototype,Wi)&&Ki(e,Wi,{configurable:!0,value:t})},eo={},to=eo,no=Mn("iterator"),ro=Array.prototype,uo=Ui,io=eo,oo=Mn("iterator"),ao=ee,so=ee,lo=function(e){return void 0!==e&&(to.Array===e||ro[no]===e)},co=Dt,fo=hi,po=function(e){if(null!=e)return e[oo]||e["@@iterator"]||io[uo(e)]},ho=function(e){var t=e.return;if(void 0!==t)return ao(t.call(e)).value},Do=function(e,t){this.stopped=e,this.result=t},go=Mn("iterator"),vo=!1;try{var yo=0,Ao={next:function(){return{done:!!yo++}},return:function(){vo=!0}};Ao[go]=function(){return this},Array.from(Ao,(function(){throw 2}))}catch(e){}var mo,ko,Eo,xo=at("document","documentElement"),Fo=/(?:iphone|ipod|ipad).*applewebkit/i.test(kn),bo="process"==E(p.process),Co=p,wo=D,Bo=hi,So=xo,_o=N,To=Fo,Oo=bo,Ro=Co.location,Io=Co.setImmediate,jo=Co.clearImmediate,zo=Co.process,$o=Co.MessageChannel,Po=Co.Dispatch,Lo=0,Mo={},No="onreadystatechange",Uo=function(e){if(Mo.hasOwnProperty(e)){var t=Mo[e];delete Mo[e],t()}},qo=function(e){return function(){Uo(e)}},Zo=function(e){Uo(e.data)},Go=function(e){Co.postMessage(e+"",Ro.protocol+"//"+Ro.host)};Io&&jo||(Io=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Mo[++Lo]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},mo(Lo),Lo},jo=function(e){delete Mo[e]},Oo?mo=function(e){zo.nextTick(qo(e))}:Po&&Po.now?mo=function(e){Po.now(qo(e))}:$o&&!To?(Eo=(ko=new $o).port2,ko.port1.onmessage=Zo,mo=Bo(Eo.postMessage,Eo,1)):Co.addEventListener&&"function"==typeof postMessage&&!Co.importScripts&&Ro&&"file:"!==Ro.protocol&&!wo(Go)?(mo=Go,Co.addEventListener("message",Zo,!1)):mo=No in _o("script")?function(e){So.appendChild(_o("script")).onreadystatechange=function(){So.removeChild(this),Uo(e)}}:function(e){setTimeout(qo(e),0)});var Ho,Qo,Vo,Yo,Ko,Xo,Wo,Jo,ea={set:Io,clear:jo},ta=/web0s(?!.*chrome)/i.test(kn),na=p,ra=h.f,ua=ea.set,ia=Fo,oa=ta,aa=bo,sa=na.MutationObserver||na.WebKitMutationObserver,la=na.document,ca=na.process,fa=na.Promise,pa=ra(na,"queueMicrotask"),ha=pa&&pa.value;ha||(Ho=function(){var e,t;for(aa&&(e=ca.domain)&&e.exit();Qo;){t=Qo.fn,Qo=Qo.next;try{t()}catch(e){throw Qo?Yo():Vo=void 0,e}}Vo=void 0,e&&e.enter()},ia||aa||oa||!sa||!la?fa&&fa.resolve?((Wo=fa.resolve(void 0)).constructor=fa,Jo=Wo.then,Yo=function(){Jo.call(Wo,Ho)}):Yo=aa?function(){ca.nextTick(Ho)}:function(){ua.call(na,Ho)}:(Ko=!0,Xo=la.createTextNode(""),new sa(Ho).observe(Xo,{characterData:!0}),Yo=function(){Xo.data=Ko=!Ko}));var Da=ha||function(e){var t={fn:e,next:void 0};Vo&&(Vo.next=t),Qo||(Qo=t,Yo()),Vo=t},ga={},da=zu,va=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=da(t),this.reject=da(n)};ga.f=function(e){return new va(e)};var ya,Aa,ma,ka,Ea=ee,xa=_,Fa=ga,ba=p,Ca="object"==typeof window,wa=nn,Ba=p,Sa=at,_a=Vi,Ta=le.exports,Oa=function(e,t,n){for(var r in t)Yi(e,r,t[r],n);return e},Ra=wr,Ia=Ji,ja=Pr,za=_,$a=zu,Pa=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},La=ye,Ma=function(e,t,n){var r,u,i,o,a,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),D=fo(t,c,1+f+h),g=function(e){return r&&ho(r),new Do(!0,e)},d=function(e){return f?(so(e),h?D(e[0],e[1],g):D(e[0],e[1])):h?D(e,g):D(e)};if(p)r=e;else{if("function"!=typeof(u=po(e)))throw TypeError("Target is not iterable");if(lo(u)){for(i=0,o=co(e.length);o>i;i++)if((a=d(e[i]))&&a instanceof Do)return a;return new Do(!1)}r=u.call(e)}for(s=r.next;!(l=s.call(r)).done;){try{a=d(l.value)}catch(e){throw ho(r),e}if("object"==typeof a&&a&&a instanceof Do)return a}return new Do(!1)},Na=function(e,t){if(!t&&!vo)return!1;var n=!1;try{var r={};r[go]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Ua=Mu,qa=ea.set,Za=Da,Ga=function(e,t){if(Ea(e),xa(t)&&t.constructor===e)return t;var n=Fa.f(e);return(0,n.resolve)(t),n.promise},Ha=function(e,t){var n=ba.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))},Qa=ga,Va=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ya=Ye,Ka=Vt,Xa=Ca,Wa=bo,Ja=Cn,es=Mn("species"),ts="Promise",ns=Ya.get,rs=Ya.set,us=Ya.getterFor(ts),is=_a&&_a.prototype,os=_a,as=is,ss=Ba.TypeError,ls=Ba.document,cs=Ba.process,fs=Qa.f,ps=fs,hs=!!(ls&&ls.createEvent&&Ba.dispatchEvent),Ds="function"==typeof PromiseRejectionEvent,gs="unhandledrejection",ds=!1,vs=Ka(ts,(function(){var e=La(os)!==String(os);if(!e&&66===Ja)return!0;if(Ja>=51&&/native code/.test(os))return!1;var t=new os((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(t.constructor={})[es]=n,!(ds=t.then((function(){}))instanceof n)||!e&&Xa&&!Ds})),ys=vs||!Na((function(e){os.all(e).catch((function(){}))})),As=function(e){var t;return!(!za(e)||"function"!=typeof(t=e.then))&&t},ms=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Za((function(){for(var r=e.value,u=1==e.state,i=0;n.length>i;){var o,a,s,l=n[i++],c=u?l.ok:l.fail,f=l.resolve,p=l.reject,h=l.domain;try{c?(u||(2===e.rejection&&Fs(e),e.rejection=1),!0===c?o=r:(h&&h.enter(),o=c(r),h&&(h.exit(),s=!0)),o===l.promise?p(ss("Promise-chain cycle")):(a=As(o))?a.call(o,f,p):f(o)):p(r)}catch(e){h&&!s&&h.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Es(e)}))}},ks=function(e,t,n){var r,u;hs?((r=ls.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Ba.dispatchEvent(r)):r={promise:t,reason:n},!Ds&&(u=Ba["on"+e])?u(r):e===gs&&Ha("Unhandled promise rejection",n)},Es=function(e){qa.call(Ba,(function(){var t,n=e.facade,r=e.value;if(xs(e)&&(t=Va((function(){Wa?cs.emit("unhandledRejection",r,n):ks(gs,n,r)})),e.rejection=Wa||xs(e)?2:1,t.error))throw t.value}))},xs=function(e){return 1!==e.rejection&&!e.parent},Fs=function(e){qa.call(Ba,(function(){var t=e.facade;Wa?cs.emit("rejectionHandled",t):ks("rejectionhandled",t,e.value)}))},bs=function(e,t,n){return function(r){e(t,r,n)}},Cs=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ms(e,!0))},ws=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw ss("Promise can't be resolved itself");var r=As(t);r?Za((function(){var n={done:!1};try{r.call(t,bs(ws,n,e),bs(Cs,n,e))}catch(t){Cs(n,t,e)}})):(e.value=t,e.state=1,ms(e,!1))}catch(t){Cs({done:!1},t,e)}}};if(vs&&(as=(os=function(e){Pa(this,os,ts),$a(e),ya.call(this);var t=ns(this);try{e(bs(ws,t),bs(Cs,t))}catch(e){Cs(t,e)}}).prototype,(ya=function(e){rs(this,{type:ts,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Oa(as,{then:function(e,t){var n=us(this),r=fs(Ua(this,os));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Wa?cs.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&ms(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Aa=function(){var e=new ya,t=ns(e);this.promise=e,this.resolve=bs(ws,t),this.reject=bs(Cs,t)},Qa.f=fs=function(e){return e===os||e===ma?new Aa(e):ps(e)},"function"==typeof _a&&is!==Object.prototype)){ka=is.then,ds||(Ta(is,"then",(function(e,t){var n=this;return new os((function(e,t){ka.call(n,e,t)})).then(e,t)}),{unsafe:!0}),Ta(is,"catch",as.catch,{unsafe:!0}));try{delete is.constructor}catch(e){}Ra&&Ra(is,as)}wa({global:!0,wrap:!0,forced:vs},{Promise:os}),Ia(os,ts,!1),ja(ts),ma=Sa(ts),wa({target:ts,stat:!0,forced:vs},{reject:function(e){var t=fs(this);return t.reject.call(void 0,e),t.promise}}),wa({target:ts,stat:!0,forced:vs},{resolve:function(e){return Ga(this,e)}}),wa({target:ts,stat:!0,forced:ys},{all:function(e){var t=this,n=fs(t),r=n.resolve,u=n.reject,i=Va((function(){var n=$a(t.resolve),i=[],o=0,a=1;Ma(e,(function(e){var s=o++,l=!1;i.push(void 0),a++,n.call(t,e).then((function(e){l||(l=!0,i[s]=e,--a||r(i))}),u)})),--a||r(i)}));return i.error&&u(i.value),n.promise},race:function(e){var t=this,n=fs(t),r=n.reject,u=Va((function(){var u=$a(t.resolve);Ma(e,(function(e){u.call(t,e).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}});var Bs=O,Ss=W,_s=m,Ts=function(e,t,n){var r=Bs(t);r in e?Ss.f(e,r,_s(0,n)):e[r]=n},Os=D,Rs=Cn,Is=Mn("species"),js=function(e){return Rs>=51||!Os((function(){var t=[];return(t.constructor={})[Is]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},zs=nn,$s=_,Ps=gi,Ls=yt,Ms=Dt,Ns=S,Us=Ts,qs=Mn,Zs=js("slice"),Gs=qs("species"),Hs=[].slice,Qs=Math.max;zs({target:"Array",proto:!0,forced:!Zs},{slice:function(e,t){var n,r,u,i=Ns(this),o=Ms(i.length),a=Ls(e,o),s=Ls(void 0===t?o:t,o);if(Ps(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Ps(n.prototype)?$s(n)&&null===(n=n[Gs])&&(n=void 0):n=void 0,n===Array||void 0===n))return Hs.call(i,a,s);for(r=new(void 0===n?Array:n)(Qs(s-a,0)),u=0;ai;)Ws.f(e,n=r[i++],t[n]);return e},nl=ee,rl=tl,ul=St,il=Ie,ol=xo,al=N,sl=Re("IE_PROTO"),ll=function(){},cl=function(e){return"