-var Dd=Object.create;var Wr=Object.defineProperty;var Ld=Object.getOwnPropertyDescriptor;var Fd=Object.getOwnPropertyNames;var Rd=Object.getPrototypeOf,Od=Object.prototype.hasOwnProperty;var Pd=(r,e)=>()=>(r&&(e=r(r=0)),e);var re=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Md=(r,e)=>{for(var t in e)Wr(r,t,{get:e[t],enumerable:!0})},Qo=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Fd(e))!Od.call(r,o)&&o!==t&&Wr(r,o,{get:()=>e[o],enumerable:!(n=Ld(e,o))||n.enumerable});return r};var Yr=(r,e,t)=>(t=r!=null?Dd(Rd(r)):{},Qo(e||!r||!r.__esModule?Wr(t,"default",{value:r,enumerable:!0}):t,r)),_d=r=>Qo(Wr({},"__esModule",{value:!0}),r);var Zs=re((yn,Ei)=>{(function(e,t){if(typeof yn=="object"&&typeof Ei=="object")Ei.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var n=t();for(var o in n)(typeof yn=="object"?yn:e)[o]=n[o]}})(self,function(){return function(){var r={3099:function(o){o.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},6077:function(o,s,i){var a=i(111);o.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},1223:function(o,s,i){var a=i(5112),l=i(30),u=i(3070),c=a("unscopables"),f=Array.prototype;f[c]==null&&u.f(f,c,{configurable:!0,value:l(null)}),o.exports=function(d){f[c][d]=!0}},1530:function(o,s,i){"use strict";var a=i(8710).charAt;o.exports=function(l,u,c){return u+(c?a(l,u).length:1)}},5787:function(o){o.exports=function(s,i,a){if(!(s instanceof i))throw TypeError("Incorrect "+(a?a+" ":"")+"invocation");return s}},9670:function(o,s,i){var a=i(111);o.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}},4019:function(o){o.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(o,s,i){"use strict";var a=i(4019),l=i(9781),u=i(7854),c=i(111),f=i(6656),d=i(648),h=i(8880),p=i(1320),g=i(3070).f,y=i(9518),b=i(7674),x=i(5112),k=i(9711),S=u.Int8Array,O=S&&S.prototype,C=u.Uint8ClampedArray,P=C&&C.prototype,A=S&&y(S),D=O&&y(O),I=Object.prototype,M=I.isPrototypeOf,N=x("toStringTag"),B=k("TYPED_ARRAY_TAG"),H=a&&!!b&&d(u.opera)!=="Opera",Z=!1,W,te={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ne={BigInt64Array:8,BigUint64Array:8},be=function(Se){if(!c(Se))return!1;var ke=d(Se);return ke==="DataView"||f(te,ke)||f(ne,ke)},Ae=function(he){if(!c(he))return!1;var Se=d(he);return f(te,Se)||f(ne,Se)},xe=function(he){if(Ae(he))return he;throw TypeError("Target is not a typed array")},Fe=function(he){if(b){if(M.call(A,he))return he}else for(var Se in te)if(f(te,W)){var ke=u[Se];if(ke&&(he===ke||M.call(ke,he)))return he}throw TypeError("Target is not a typed array constructor")},Re=function(he,Se,ke){if(!!l){if(ke)for(var Ie in te){var Oe=u[Ie];Oe&&f(Oe.prototype,he)&&delete Oe.prototype[he]}(!D[he]||ke)&&p(D,he,ke?Se:H&&O[he]||Se)}},Ne=function(he,Se,ke){var Ie,Oe;if(!!l){if(b){if(ke)for(Ie in te)Oe=u[Ie],Oe&&f(Oe,he)&&delete Oe[he];if(!A[he]||ke)try{return p(A,he,ke?Se:H&&S[he]||Se)}catch{}else return}for(Ie in te)Oe=u[Ie],Oe&&(!Oe[he]||ke)&&p(Oe,he,Se)}};for(W in te)u[W]||(H=!1);if((!H||typeof A!="function"||A===Function.prototype)&&(A=function(){throw TypeError("Incorrect invocation")},H))for(W in te)u[W]&&b(u[W],A);if((!H||!D||D===I)&&(D=A.prototype,H))for(W in te)u[W]&&b(u[W].prototype,D);if(H&&y(P)!==D&&b(P,D),l&&!f(D,N)){Z=!0,g(D,N,{get:function(){return c(this)?this[B]:void 0}});for(W in te)u[W]&&h(u[W],B,W)}o.exports={NATIVE_ARRAY_BUFFER_VIEWS:H,TYPED_ARRAY_TAG:Z&&B,aTypedArray:xe,aTypedArrayConstructor:Fe,exportTypedArrayMethod:Re,exportTypedArrayStaticMethod:Ne,isView:be,isTypedArray:Ae,TypedArray:A,TypedArrayPrototype:D}},3331:function(o,s,i){"use strict";var a=i(7854),l=i(9781),u=i(4019),c=i(8880),f=i(2248),d=i(7293),h=i(5787),p=i(9958),g=i(7466),y=i(7067),b=i(1179),x=i(9518),k=i(7674),S=i(8006).f,O=i(3070).f,C=i(1285),P=i(8003),A=i(9909),D=A.get,I=A.set,M="ArrayBuffer",N="DataView",B="prototype",H="Wrong length",Z="Wrong index",W=a[M],te=W,ne=a[N],be=ne&&ne[B],Ae=Object.prototype,xe=a.RangeError,Fe=b.pack,Re=b.unpack,Ne=function(J){return[J&255]},he=function(J){return[J&255,J>>8&255]},Se=function(J){return[J&255,J>>8&255,J>>16&255,J>>24&255]},ke=function(J){return J[3]<<24|J[2]<<16|J[1]<<8|J[0]},Ie=function(J){return Fe(J,23,4)},Oe=function(J){return Fe(J,52,8)},ot=function(J,V){O(J[B],V,{get:function(){return D(this)[V]}})},Ke=function(J,V,ie,ce){var $e=y(ie),Ve=D(J);if($e+V>Ve.byteLength)throw xe(Z);var st=D(Ve.buffer).bytes,et=$e+Ve.byteOffset,Te=st.slice(et,et+V);return ce?Te:Te.reverse()},Qe=function(J,V,ie,ce,$e,Ve){var st=y(ie),et=D(J);if(st+V>et.byteLength)throw xe(Z);for(var Te=D(et.buffer).bytes,Ce=st+et.byteOffset,Nt=ce(+$e),dt=0;dt<V;dt++)Te[Ce+dt]=Nt[Ve?dt:V-dt-1]};if(!u)te=function(V){h(this,te,M);var ie=y(V);I(this,{bytes:C.call(new Array(ie),0),byteLength:ie}),l||(this.byteLength=ie)},ne=function(V,ie,ce){h(this,ne,N),h(V,te,N);var $e=D(V).byteLength,Ve=p(ie);if(Ve<0||Ve>$e)throw xe("Wrong offset");if(ce=ce===void 0?$e-Ve:g(ce),Ve+ce>$e)throw xe(H);I(this,{buffer:V,byteLength:ce,byteOffset:Ve}),l||(this.buffer=V,this.byteLength=ce,this.byteOffset=Ve)},l&&(ot(te,"byteLength"),ot(ne,"buffer"),ot(ne,"byteLength"),ot(ne,"byteOffset")),f(ne[B],{getInt8:function(V){return Ke(this,1,V)[0]<<24>>24},getUint8:function(V){return Ke(this,1,V)[0]},getInt16:function(V){var ie=Ke(this,2,V,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(V){var ie=Ke(this,2,V,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(V){return ke(Ke(this,4,V,arguments.length>1?arguments[1]:void 0))},getUint32:function(V){return ke(Ke(this,4,V,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(V){return Re(Ke(this,4,V,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(V){return Re(Ke(this,8,V,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(V,ie){Qe(this,1,V,Ne,ie)},setUint8:function(V,ie){Qe(this,1,V,Ne,ie)},setInt16:function(V,ie){Qe(this,2,V,he,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(V,ie){Qe(this,2,V,he,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(V,ie){Qe(this,4,V,Se,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(V,ie){Qe(this,4,V,Se,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(V,ie){Qe(this,4,V,Ie,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(V,ie){Qe(this,8,V,Oe,ie,arguments.length>2?arguments[2]:void 0)}});else{if(!d(function(){W(1)})||!d(function(){new W(-1)})||d(function(){return new W,new W(1.5),new W(NaN),W.name!=M})){te=function(V){return h(this,te),new W(y(V))};for(var me=te[B]=W[B],oe=S(W),ue=0,fe;oe.length>ue;)(fe=oe[ue++])in te||c(te,fe,W[fe]);me.constructor=te}k&&x(be)!==Ae&&k(be,Ae);var le=new ne(new te(2)),pe=be.setInt8;le.setInt8(0,2147483648),le.setInt8(1,2147483649),(le.getInt8(0)||!le.getInt8(1))&&f(be,{setInt8:function(V,ie){pe.call(this,V,ie<<24>>24)},setUint8:function(V,ie){pe.call(this,V,ie<<24>>24)}},{unsafe:!0})}P(te,M),P(ne,N),o.exports={ArrayBuffer:te,DataView:ne}},1048:function(o,s,i){"use strict";var a=i(7908),l=i(1400),u=i(7466),c=Math.min;o.exports=[].copyWithin||function(d,h){var p=a(this),g=u(p.length),y=l(d,g),b=l(h,g),x=arguments.length>2?arguments[2]:void 0,k=c((x===void 0?g:l(x,g))-b,g-y),S=1;for(b<y&&y<b+k&&(S=-1,b+=k-1,y+=k-1);k-- >0;)b in p?p[y]=p[b]:delete p[y],y+=S,b+=S;return p}},1285:function(o,s,i){"use strict";var a=i(7908),l=i(1400),u=i(7466);o.exports=function(f){for(var d=a(this),h=u(d.length),p=arguments.length,g=l(p>1?arguments[1]:void 0,h),y=p>2?arguments[2]:void 0,b=y===void 0?h:l(y,h);b>g;)d[g++]=f;return d}},8533:function(o,s,i){"use strict";var a=i(2092).forEach,l=i(9341),u=l("forEach");o.exports=u?[].forEach:function(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}},8457:function(o,s,i){"use strict";var a=i(9974),l=i(7908),u=i(3411),c=i(7659),f=i(7466),d=i(6135),h=i(1246);o.exports=function(g){var y=l(g),b=typeof this=="function"?this:Array,x=arguments.length,k=x>1?arguments[1]:void 0,S=k!==void 0,O=h(y),C=0,P,A,D,I,M,N;if(S&&(k=a(k,x>2?arguments[2]:void 0,2)),O!=null&&!(b==Array&&c(O)))for(I=O.call(y),M=I.next,A=new b;!(D=M.call(I)).done;C++)N=S?u(I,k,[D.value,C],!0):D.value,d(A,C,N);else for(P=f(y.length),A=new b(P);P>C;C++)N=S?k(y[C],C):y[C],d(A,C,N);return A.length=C,A}},1318:function(o,s,i){var a=i(5656),l=i(7466),u=i(1400),c=function(f){return function(d,h,p){var g=a(d),y=l(g.length),b=u(p,y),x;if(f&&h!=h){for(;y>b;)if(x=g[b++],x!=x)return!0}else for(;y>b;b++)if((f||b in g)&&g[b]===h)return f||b||0;return!f&&-1}};o.exports={includes:c(!0),indexOf:c(!1)}},2092:function(o,s,i){var a=i(9974),l=i(8361),u=i(7908),c=i(7466),f=i(5417),d=[].push,h=function(p){var g=p==1,y=p==2,b=p==3,x=p==4,k=p==6,S=p==7,O=p==5||k;return function(C,P,A,D){for(var I=u(C),M=l(I),N=a(P,A,3),B=c(M.length),H=0,Z=D||f,W=g?Z(C,B):y||S?Z(C,0):void 0,te,ne;B>H;H++)if((O||H in M)&&(te=M[H],ne=N(te,H,I),p))if(g)W[H]=ne;else if(ne)switch(p){case 3:return!0;case 5:return te;case 6:return H;case 2:d.call(W,te)}else switch(p){case 4:return!1;case 7:d.call(W,te)}return k?-1:b||x?x:W}};o.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterOut:h(7)}},6583:function(o,s,i){"use strict";var a=i(5656),l=i(9958),u=i(7466),c=i(9341),f=Math.min,d=[].lastIndexOf,h=!!d&&1/[1].lastIndexOf(1,-0)<0,p=c("lastIndexOf"),g=h||!p;o.exports=g?function(b){if(h)return d.apply(this,arguments)||0;var x=a(this),k=u(x.length),S=k-1;for(arguments.length>1&&(S=f(S,l(arguments[1]))),S<0&&(S=k+S);S>=0;S--)if(S in x&&x[S]===b)return S||0;return-1}:d},1194:function(o,s,i){var a=i(7293),l=i(5112),u=i(7392),c=l("species");o.exports=function(f){return u>=51||!a(function(){var d=[],h=d.constructor={};return h[c]=function(){return{foo:1}},d[f](Boolean).foo!==1})}},9341:function(o,s,i){"use strict";var a=i(7293);o.exports=function(l,u){var c=[][l];return!!c&&a(function(){c.call(null,u||function(){throw 1},1)})}},3671:function(o,s,i){var a=i(3099),l=i(7908),u=i(8361),c=i(7466),f=function(d){return function(h,p,g,y){a(p);var b=l(h),x=u(b),k=c(b.length),S=d?k-1:0,O=d?-1:1;if(g<2)for(;;){if(S in x){y=x[S],S+=O;break}if(S+=O,d?S<0:k<=S)throw TypeError("Reduce of empty array with no initial value")}for(;d?S>=0:k>S;S+=O)S in x&&(y=p(y,x[S],S,b));return y}};o.exports={left:f(!1),right:f(!0)}},5417:function(o,s,i){var a=i(111),l=i(3157),u=i(5112),c=u("species");o.exports=function(f,d){var h;return l(f)&&(h=f.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:a(h)&&(h=h[c],h===null&&(h=void 0))),new(h===void 0?Array:h)(d===0?0:d)}},3411:function(o,s,i){var a=i(9670),l=i(9212);o.exports=function(u,c,f,d){try{return d?c(a(f)[0],f[1]):c(f)}catch(h){throw l(u),h}}},7072:function(o,s,i){var a=i(5112),l=a("iterator"),u=!1;try{var c=0,f={next:function(){return{done:!!c++}},return:function(){u=!0}};f[l]=function(){return this},Array.from(f,function(){throw 2})}catch{}o.exports=function(d,h){if(!h&&!u)return!1;var p=!1;try{var g={};g[l]=function(){return{next:function(){return{done:p=!0}}}},d(g)}catch{}return p}},4326:function(o){var s={}.toString;o.exports=function(i){return s.call(i).slice(8,-1)}},648:function(o,s,i){var a=i(1694),l=i(4326),u=i(5112),c=u("toStringTag"),f=l(function(){return arguments}())=="Arguments",d=function(h,p){try{return h[p]}catch{}};o.exports=a?l:function(h){var p,g,y;return h===void 0?"Undefined":h===null?"Null":typeof(g=d(p=Object(h),c))=="string"?g:f?l(p):(y=l(p))=="Object"&&typeof p.callee=="function"?"Arguments":y}},9920:function(o,s,i){var a=i(6656),l=i(3887),u=i(1236),c=i(3070);o.exports=function(f,d){for(var h=l(d),p=c.f,g=u.f,y=0;y<h.length;y++){var b=h[y];a(f,b)||p(f,b,g(d,b))}}},8544:function(o,s,i){var a=i(7293);o.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},4994:function(o,s,i){"use strict";var a=i(3383).IteratorPrototype,l=i(30),u=i(9114),c=i(8003),f=i(7497),d=function(){return this};o.exports=function(h,p,g){var y=p+" Iterator";return h.prototype=l(a,{next:u(1,g)}),c(h,y,!1,!0),f[y]=d,h}},8880:function(o,s,i){var a=i(9781),l=i(3070),u=i(9114);o.exports=a?function(c,f,d){return l.f(c,f,u(1,d))}:function(c,f,d){return c[f]=d,c}},9114:function(o){o.exports=function(s,i){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:i}}},6135:function(o,s,i){"use strict";var a=i(7593),l=i(3070),u=i(9114);o.exports=function(c,f,d){var h=a(f);h in c?l.f(c,h,u(0,d)):c[h]=d}},654:function(o,s,i){"use strict";var a=i(2109),l=i(4994),u=i(9518),c=i(7674),f=i(8003),d=i(8880),h=i(1320),p=i(5112),g=i(1913),y=i(7497),b=i(3383),x=b.IteratorPrototype,k=b.BUGGY_SAFARI_ITERATORS,S=p("iterator"),O="keys",C="values",P="entries",A=function(){return this};o.exports=function(D,I,M,N,B,H,Z){l(M,I,N);var W=function(Se){if(Se===B&&xe)return xe;if(!k&&Se in be)return be[Se];switch(Se){case O:return function(){return new M(this,Se)};case C:return function(){return new M(this,Se)};case P:return function(){return new M(this,Se)}}return function(){return new M(this)}},te=I+" Iterator",ne=!1,be=D.prototype,Ae=be[S]||be["@@iterator"]||B&&be[B],xe=!k&&Ae||W(B),Fe=I=="Array"&&be.entries||Ae,Re,Ne,he;if(Fe&&(Re=u(Fe.call(new D)),x!==Object.prototype&&Re.next&&(!g&&u(Re)!==x&&(c?c(Re,x):typeof Re[S]!="function"&&d(Re,S,A)),f(Re,te,!0,!0),g&&(y[te]=A))),B==C&&Ae&&Ae.name!==C&&(ne=!0,xe=function(){return Ae.call(this)}),(!g||Z)&&be[S]!==xe&&d(be,S,xe),y[I]=xe,B)if(Ne={values:W(C),keys:H?xe:W(O),entries:W(P)},Z)for(he in Ne)(k||ne||!(he in be))&&h(be,he,Ne[he]);else a({target:I,proto:!0,forced:k||ne},Ne);return Ne}},9781:function(o,s,i){var a=i(7293);o.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(o,s,i){var a=i(7854),l=i(111),u=a.document,c=l(u)&&l(u.createElement);o.exports=function(f){return c?u.createElement(f):{}}},8324:function(o){o.exports={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}},8113:function(o,s,i){var a=i(5005);o.exports=a("navigator","userAgent")||""},7392:function(o,s,i){var a=i(7854),l=i(8113),u=a.process,c=u&&u.versions,f=c&&c.v8,d,h;f?(d=f.split("."),h=d[0]+d[1]):l&&(d=l.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=l.match(/Chrome\/(\d+)/),d&&(h=d[1]))),o.exports=h&&+h},748:function(o){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(o,s,i){var a=i(7854),l=i(1236).f,u=i(8880),c=i(1320),f=i(3505),d=i(9920),h=i(4705);o.exports=function(p,g){var y=p.target,b=p.global,x=p.stat,k,S,O,C,P,A;if(b?S=a:x?S=a[y]||f(y,{}):S=(a[y]||{}).prototype,S)for(O in g){if(P=g[O],p.noTargetGet?(A=l(S,O),C=A&&A.value):C=S[O],k=h(b?O:y+(x?".":"#")+O,p.forced),!k&&C!==void 0){if(typeof P==typeof C)continue;d(P,C)}(p.sham||C&&C.sham)&&u(P,"sham",!0),c(S,O,P,p)}}},7293:function(o){o.exports=function(s){try{return!!s()}catch{return!0}}},7007:function(o,s,i){"use strict";i(4916);var a=i(1320),l=i(7293),u=i(5112),c=i(2261),f=i(8880),d=u("species"),h=!l(function(){var x=/./;return x.exec=function(){var k=[];return k.groups={a:"7"},k},"".replace(x,"$<a>")!=="7"}),p=function(){return"a".replace(/./,"$0")==="$0"}(),g=u("replace"),y=function(){return/./[g]?/./[g]("a","$0")==="":!1}(),b=!l(function(){var x=/(?:)/,k=x.exec;x.exec=function(){return k.apply(this,arguments)};var S="ab".split(x);return S.length!==2||S[0]!=="a"||S[1]!=="b"});o.exports=function(x,k,S,O){var C=u(x),P=!l(function(){var B={};return B[C]=function(){return 7},""[x](B)!=7}),A=P&&!l(function(){var B=!1,H=/a/;return x==="split"&&(H={},H.constructor={},H.constructor[d]=function(){return H},H.flags="",H[C]=/./[C]),H.exec=function(){return B=!0,null},H[C](""),!B});if(!P||!A||x==="replace"&&!(h&&p&&!y)||x==="split"&&!b){var D=/./[C],I=S(C,""[x],function(B,H,Z,W,te){return H.exec===c?P&&!te?{done:!0,value:D.call(H,Z,W)}:{done:!0,value:B.call(Z,H,W)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:y}),M=I[0],N=I[1];a(String.prototype,x,M),a(RegExp.prototype,C,k==2?function(B,H){return N.call(B,this,H)}:function(B){return N.call(B,this)})}O&&f(RegExp.prototype[C],"sham",!0)}},9974:function(o,s,i){var a=i(3099);o.exports=function(l,u,c){if(a(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(f){return l.call(u,f)};case 2:return function(f,d){return l.call(u,f,d)};case 3:return function(f,d,h){return l.call(u,f,d,h)}}return function(){return l.apply(u,arguments)}}},5005:function(o,s,i){var a=i(857),l=i(7854),u=function(c){return typeof c=="function"?c:void 0};o.exports=function(c,f){return arguments.length<2?u(a[c])||u(l[c]):a[c]&&a[c][f]||l[c]&&l[c][f]}},1246:function(o,s,i){var a=i(648),l=i(7497),u=i(5112),c=u("iterator");o.exports=function(f){if(f!=null)return f[c]||f["@@iterator"]||l[a(f)]}},8554:function(o,s,i){var a=i(9670),l=i(1246);o.exports=function(u){var c=l(u);if(typeof c!="function")throw TypeError(String(u)+" is not iterable");return a(c.call(u))}},647:function(o,s,i){var a=i(7908),l=Math.floor,u="".replace,c=/\$([$&'`]|\d\d?|<[^>]*>)/g,f=/\$([$&'`]|\d\d?)/g;o.exports=function(d,h,p,g,y,b){var x=p+d.length,k=g.length,S=f;return y!==void 0&&(y=a(y),S=c),u.call(b,S,function(O,C){var P;switch(C.charAt(0)){case"$":return"$";case"&":return d;case"`":return h.slice(0,p);case"'":return h.slice(x);case"<":P=y[C.slice(1,-1)];break;default:var A=+C;if(A===0)return O;if(A>k){var D=l(A/10);return D===0?O:D<=k?g[D-1]===void 0?C.charAt(1):g[D-1]+C.charAt(1):O}P=g[A-1]}return P===void 0?"":P})}},7854:function(o,s,i){var a=function(l){return l&&l.Math==Math&&l};o.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof i.g=="object"&&i.g)||function(){return this}()||Function("return this")()},6656:function(o){var s={}.hasOwnProperty;o.exports=function(i,a){return s.call(i,a)}},3501:function(o){o.exports={}},490:function(o,s,i){var a=i(5005);o.exports=a("document","documentElement")},4664:function(o,s,i){var a=i(9781),l=i(7293),u=i(317);o.exports=!a&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(o){var s=Math.abs,i=Math.pow,a=Math.floor,l=Math.log,u=Math.LN2,c=function(d,h,p){var g=new Array(p),y=p*8-h-1,b=(1<<y)-1,x=b>>1,k=h===23?i(2,-24)-i(2,-77):0,S=d<0||d===0&&1/d<0?1:0,O=0,C,P,A;for(d=s(d),d!=d||d===1/0?(P=d!=d?1:0,C=b):(C=a(l(d)/u),d*(A=i(2,-C))<1&&(C--,A*=2),C+x>=1?d+=k/A:d+=k*i(2,1-x),d*A>=2&&(C++,A/=2),C+x>=b?(P=0,C=b):C+x>=1?(P=(d*A-1)*i(2,h),C=C+x):(P=d*i(2,x-1)*i(2,h),C=0));h>=8;g[O++]=P&255,P/=256,h-=8);for(C=C<<h|P,y+=h;y>0;g[O++]=C&255,C/=256,y-=8);return g[--O]|=S*128,g},f=function(d,h){var p=d.length,g=p*8-h-1,y=(1<<g)-1,b=y>>1,x=g-7,k=p-1,S=d[k--],O=S&127,C;for(S>>=7;x>0;O=O*256+d[k],k--,x-=8);for(C=O&(1<<-x)-1,O>>=-x,x+=h;x>0;C=C*256+d[k],k--,x-=8);if(O===0)O=1-b;else{if(O===y)return C?NaN:S?-1/0:1/0;C=C+i(2,h),O=O-b}return(S?-1:1)*C*i(2,O-h)};o.exports={pack:c,unpack:f}},8361:function(o,s,i){var a=i(7293),l=i(4326),u="".split;o.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object},9587:function(o,s,i){var a=i(111),l=i(7674);o.exports=function(u,c,f){var d,h;return l&&typeof(d=c.constructor)=="function"&&d!==f&&a(h=d.prototype)&&h!==f.prototype&&l(u,h),u}},2788:function(o,s,i){var a=i(5465),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return l.call(u)}),o.exports=a.inspectSource},9909:function(o,s,i){var a=i(8536),l=i(7854),u=i(111),c=i(8880),f=i(6656),d=i(5465),h=i(6200),p=i(3501),g=l.WeakMap,y,b,x,k=function(I){return x(I)?b(I):y(I,{})},S=function(I){return function(M){var N;if(!u(M)||(N=b(M)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return N}};if(a){var O=d.state||(d.state=new g),C=O.get,P=O.has,A=O.set;y=function(I,M){return M.facade=I,A.call(O,I,M),M},b=function(I){return C.call(O,I)||{}},x=function(I){return P.call(O,I)}}else{var D=h("state");p[D]=!0,y=function(I,M){return M.facade=I,c(I,D,M),M},b=function(I){return f(I,D)?I[D]:{}},x=function(I){return f(I,D)}}o.exports={set:y,get:b,has:x,enforce:k,getterFor:S}},7659:function(o,s,i){var a=i(5112),l=i(7497),u=a("iterator"),c=Array.prototype;o.exports=function(f){return f!==void 0&&(l.Array===f||c[u]===f)}},3157:function(o,s,i){var a=i(4326);o.exports=Array.isArray||function(u){return a(u)=="Array"}},4705:function(o,s,i){var a=i(7293),l=/#|\.prototype\./,u=function(p,g){var y=f[c(p)];return y==h?!0:y==d?!1:typeof g=="function"?a(g):!!g},c=u.normalize=function(p){return String(p).replace(l,".").toLowerCase()},f=u.data={},d=u.NATIVE="N",h=u.POLYFILL="P";o.exports=u},111:function(o){o.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},1913:function(o){o.exports=!1},7850:function(o,s,i){var a=i(111),l=i(4326),u=i(5112),c=u("match");o.exports=function(f){var d;return a(f)&&((d=f[c])!==void 0?!!d:l(f)=="RegExp")}},9212:function(o,s,i){var a=i(9670);o.exports=function(l){var u=l.return;if(u!==void 0)return a(u.call(l)).value}},3383:function(o,s,i){"use strict";var a=i(7293),l=i(9518),u=i(8880),c=i(6656),f=i(5112),d=i(1913),h=f("iterator"),p=!1,g=function(){return this},y,b,x;[].keys&&(x=[].keys(),"next"in x?(b=l(l(x)),b!==Object.prototype&&(y=b)):p=!0);var k=y==null||a(function(){var S={};return y[h].call(S)!==S});k&&(y={}),(!d||k)&&!c(y,h)&&u(y,h,g),o.exports={IteratorPrototype:y,BUGGY_SAFARI_ITERATORS:p}},7497:function(o){o.exports={}},133:function(o,s,i){var a=i(7293);o.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},590:function(o,s,i){var a=i(7293),l=i(5112),u=i(1913),c=l("iterator");o.exports=!a(function(){var f=new URL("b?a=1&b=2&c=3","http://a"),d=f.searchParams,h="";return f.pathname="c%20d",d.forEach(function(p,g){d.delete("b"),h+=g+p}),u&&!f.toJSON||!d.sort||f.href!=="http://a/c%20d?a=1&c=3"||d.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!d[c]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||h!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(o,s,i){var a=i(7854),l=i(2788),u=a.WeakMap;o.exports=typeof u=="function"&&/native code/.test(l(u))},1574:function(o,s,i){"use strict";var a=i(9781),l=i(7293),u=i(1956),c=i(5181),f=i(5296),d=i(7908),h=i(8361),p=Object.assign,g=Object.defineProperty;o.exports=!p||l(function(){if(a&&p({b:1},p(g({},"a",{enumerable:!0,get:function(){g(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var y={},b={},x=Symbol(),k="abcdefghijklmnopqrst";return y[x]=7,k.split("").forEach(function(S){b[S]=S}),p({},y)[x]!=7||u(p({},b)).join("")!=k})?function(b,x){for(var k=d(b),S=arguments.length,O=1,C=c.f,P=f.f;S>O;)for(var A=h(arguments[O++]),D=C?u(A).concat(C(A)):u(A),I=D.length,M=0,N;I>M;)N=D[M++],(!a||P.call(A,N))&&(k[N]=A[N]);return k}:p},30:function(o,s,i){var a=i(9670),l=i(6048),u=i(748),c=i(3501),f=i(490),d=i(317),h=i(6200),p=">",g="<",y="prototype",b="script",x=h("IE_PROTO"),k=function(){},S=function(D){return g+b+p+D+g+"/"+b+p},O=function(D){D.write(S("")),D.close();var I=D.parentWindow.Object;return D=null,I},C=function(){var D=d("iframe"),I="java"+b+":",M;return D.style.display="none",f.appendChild(D),D.src=String(I),M=D.contentWindow.document,M.open(),M.write(S("document.F=Object")),M.close(),M.F},P,A=function(){try{P=document.domain&&new ActiveXObject("htmlfile")}catch{}A=P?O(P):C();for(var D=u.length;D--;)delete A[y][u[D]];return A()};c[x]=!0,o.exports=Object.create||function(I,M){var N;return I!==null?(k[y]=a(I),N=new k,k[y]=null,N[x]=I):N=A(),M===void 0?N:l(N,M)}},6048:function(o,s,i){var a=i(9781),l=i(3070),u=i(9670),c=i(1956);o.exports=a?Object.defineProperties:function(d,h){u(d);for(var p=c(h),g=p.length,y=0,b;g>y;)l.f(d,b=p[y++],h[b]);return d}},3070:function(o,s,i){var a=i(9781),l=i(4664),u=i(9670),c=i(7593),f=Object.defineProperty;s.f=a?f:function(h,p,g){if(u(h),p=c(p,!0),u(g),l)try{return f(h,p,g)}catch{}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(h[p]=g.value),h}},1236:function(o,s,i){var a=i(9781),l=i(5296),u=i(9114),c=i(5656),f=i(7593),d=i(6656),h=i(4664),p=Object.getOwnPropertyDescriptor;s.f=a?p:function(y,b){if(y=c(y),b=f(b,!0),h)try{return p(y,b)}catch{}if(d(y,b))return u(!l.f.call(y,b),y[b])}},8006:function(o,s,i){var a=i(6324),l=i(748),u=l.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(f){return a(f,u)}},5181:function(o,s){s.f=Object.getOwnPropertySymbols},9518:function(o,s,i){var a=i(6656),l=i(7908),u=i(6200),c=i(8544),f=u("IE_PROTO"),d=Object.prototype;o.exports=c?Object.getPrototypeOf:function(h){return h=l(h),a(h,f)?h[f]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?d:null}},6324:function(o,s,i){var a=i(6656),l=i(5656),u=i(1318).indexOf,c=i(3501);o.exports=function(f,d){var h=l(f),p=0,g=[],y;for(y in h)!a(c,y)&&a(h,y)&&g.push(y);for(;d.length>p;)a(h,y=d[p++])&&(~u(g,y)||g.push(y));return g}},1956:function(o,s,i){var a=i(6324),l=i(748);o.exports=Object.keys||function(c){return a(c,l)}},5296:function(o,s){"use strict";var i={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l=a&&!i.call({1:2},1);s.f=l?function(c){var f=a(this,c);return!!f&&f.enumerable}:i},7674:function(o,s,i){var a=i(9670),l=i(6077);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,c={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(c,[]),u=c instanceof Array}catch{}return function(h,p){return a(h),l(p),u?f.call(h,p):h.__proto__=p,h}}():void 0)},288:function(o,s,i){"use strict";var a=i(1694),l=i(648);o.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}},3887:function(o,s,i){var a=i(5005),l=i(8006),u=i(5181),c=i(9670);o.exports=a("Reflect","ownKeys")||function(d){var h=l.f(c(d)),p=u.f;return p?h.concat(p(d)):h}},857:function(o,s,i){var a=i(7854);o.exports=a},2248:function(o,s,i){var a=i(1320);o.exports=function(l,u,c){for(var f in u)a(l,f,u[f],c);return l}},1320:function(o,s,i){var a=i(7854),l=i(8880),u=i(6656),c=i(3505),f=i(2788),d=i(9909),h=d.get,p=d.enforce,g=String(String).split("String");(o.exports=function(y,b,x,k){var S=k?!!k.unsafe:!1,O=k?!!k.enumerable:!1,C=k?!!k.noTargetGet:!1,P;if(typeof x=="function"&&(typeof b=="string"&&!u(x,"name")&&l(x,"name",b),P=p(x),P.source||(P.source=g.join(typeof b=="string"?b:""))),y===a){O?y[b]=x:c(b,x);return}else S?!C&&y[b]&&(O=!0):delete y[b];O?y[b]=x:l(y,b,x)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||f(this)})},7651:function(o,s,i){var a=i(4326),l=i(2261);o.exports=function(u,c){var f=u.exec;if(typeof f=="function"){var d=f.call(u,c);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(a(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}},2261:function(o,s,i){"use strict";var a=i(7066),l=i(2999),u=RegExp.prototype.exec,c=String.prototype.replace,f=u,d=function(){var y=/a/,b=/b*/g;return u.call(y,"a"),u.call(b,"a"),y.lastIndex!==0||b.lastIndex!==0}(),h=l.UNSUPPORTED_Y||l.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,g=d||p||h;g&&(f=function(b){var x=this,k,S,O,C,P=h&&x.sticky,A=a.call(x),D=x.source,I=0,M=b;return P&&(A=A.replace("y",""),A.indexOf("g")===-1&&(A+="g"),M=String(b).slice(x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&b[x.lastIndex-1]!==`
-`)&&(D="(?: "+D+")",M=" "+M,I++),S=new RegExp("^(?:"+D+")",A)),p&&(S=new RegExp("^"+D+"$(?!\\s)",A)),d&&(k=x.lastIndex),O=u.call(P?S:x,M),P?O?(O.input=O.input.slice(I),O[0]=O[0].slice(I),O.index=x.lastIndex,x.lastIndex+=O[0].length):x.lastIndex=0:d&&O&&(x.lastIndex=x.global?O.index+O[0].length:k),p&&O&&O.length>1&&c.call(O[0],S,function(){for(C=1;C<arguments.length-2;C++)arguments[C]===void 0&&(O[C]=void 0)}),O}),o.exports=f},7066:function(o,s,i){"use strict";var a=i(9670);o.exports=function(){var l=a(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}},2999:function(o,s,i){"use strict";var a=i(7293);function l(u,c){return RegExp(u,c)}s.UNSUPPORTED_Y=a(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),s.BROKEN_CARET=a(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},4488:function(o){o.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},3505:function(o,s,i){var a=i(7854),l=i(8880);o.exports=function(u,c){try{l(a,u,c)}catch{a[u]=c}return c}},6340:function(o,s,i){"use strict";var a=i(5005),l=i(3070),u=i(5112),c=i(9781),f=u("species");o.exports=function(d){var h=a(d),p=l.f;c&&h&&!h[f]&&p(h,f,{configurable:!0,get:function(){return this}})}},8003:function(o,s,i){var a=i(3070).f,l=i(6656),u=i(5112),c=u("toStringTag");o.exports=function(f,d,h){f&&!l(f=h?f:f.prototype,c)&&a(f,c,{configurable:!0,value:d})}},6200:function(o,s,i){var a=i(2309),l=i(9711),u=a("keys");o.exports=function(c){return u[c]||(u[c]=l(c))}},5465:function(o,s,i){var a=i(7854),l=i(3505),u="__core-js_shared__",c=a[u]||l(u,{});o.exports=c},2309:function(o,s,i){var a=i(1913),l=i(5465);(o.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.9.0",mode:a?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(o,s,i){var a=i(9670),l=i(3099),u=i(5112),c=u("species");o.exports=function(f,d){var h=a(f).constructor,p;return h===void 0||(p=a(h)[c])==null?d:l(p)}},8710:function(o,s,i){var a=i(9958),l=i(4488),u=function(c){return function(f,d){var h=String(l(f)),p=a(d),g=h.length,y,b;return p<0||p>=g?c?"":void 0:(y=h.charCodeAt(p),y<55296||y>56319||p+1===g||(b=h.charCodeAt(p+1))<56320||b>57343?c?h.charAt(p):y:c?h.slice(p,p+2):(y-55296<<10)+(b-56320)+65536)}};o.exports={codeAt:u(!1),charAt:u(!0)}},3197:function(o){"use strict";var s=2147483647,i=36,a=1,l=26,u=38,c=700,f=72,d=128,h="-",p=/[^\0-\u007E]/,g=/[.\u3002\uFF0E\uFF61]/g,y="Overflow: input needs wider integers to process",b=i-a,x=Math.floor,k=String.fromCharCode,S=function(A){for(var D=[],I=0,M=A.length;I<M;){var N=A.charCodeAt(I++);if(N>=55296&&N<=56319&&I<M){var B=A.charCodeAt(I++);(B&64512)==56320?D.push(((N&1023)<<10)+(B&1023)+65536):(D.push(N),I--)}else D.push(N)}return D},O=function(A){return A+22+75*(A<26)},C=function(A,D,I){var M=0;for(A=I?x(A/c):A>>1,A+=x(A/D);A>b*l>>1;M+=i)A=x(A/b);return x(M+(b+1)*A/(A+u))},P=function(A){var D=[];A=S(A);var I=A.length,M=d,N=0,B=f,H,Z;for(H=0;H<A.length;H++)Z=A[H],Z<128&&D.push(k(Z));var W=D.length,te=W;for(W&&D.push(h);te<I;){var ne=s;for(H=0;H<A.length;H++)Z=A[H],Z>=M&&Z<ne&&(ne=Z);var be=te+1;if(ne-M>x((s-N)/be))throw RangeError(y);for(N+=(ne-M)*be,M=ne,H=0;H<A.length;H++){if(Z=A[H],Z<M&&++N>s)throw RangeError(y);if(Z==M){for(var Ae=N,xe=i;;xe+=i){var Fe=xe<=B?a:xe>=B+l?l:xe-B;if(Ae<Fe)break;var Re=Ae-Fe,Ne=i-Fe;D.push(k(O(Fe+Re%Ne))),Ae=x(Re/Ne)}D.push(k(O(Ae))),B=C(N,be,te==W),N=0,++te}}++N,++M}return D.join("")};o.exports=function(A){var D=[],I=A.toLowerCase().replace(g,".").split("."),M,N;for(M=0;M<I.length;M++)N=I[M],D.push(p.test(N)?"xn--"+P(N):N);return D.join(".")}},6091:function(o,s,i){var a=i(7293),l=i(1361),u="\u200B\x85\u180E";o.exports=function(c){return a(function(){return!!l[c]()||u[c]()!=u||l[c].name!==c})}},3111:function(o,s,i){var a=i(4488),l=i(1361),u="["+l+"]",c=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),d=function(h){return function(p){var g=String(a(p));return h&1&&(g=g.replace(c,"")),h&2&&(g=g.replace(f,"")),g}};o.exports={start:d(1),end:d(2),trim:d(3)}},1400:function(o,s,i){var a=i(9958),l=Math.max,u=Math.min;o.exports=function(c,f){var d=a(c);return d<0?l(d+f,0):u(d,f)}},7067:function(o,s,i){var a=i(9958),l=i(7466);o.exports=function(u){if(u===void 0)return 0;var c=a(u),f=l(c);if(c!==f)throw RangeError("Wrong length or index");return f}},5656:function(o,s,i){var a=i(8361),l=i(4488);o.exports=function(u){return a(l(u))}},9958:function(o){var s=Math.ceil,i=Math.floor;o.exports=function(a){return isNaN(a=+a)?0:(a>0?i:s)(a)}},7466:function(o,s,i){var a=i(9958),l=Math.min;o.exports=function(u){return u>0?l(a(u),9007199254740991):0}},7908:function(o,s,i){var a=i(4488);o.exports=function(l){return Object(a(l))}},4590:function(o,s,i){var a=i(3002);o.exports=function(l,u){var c=a(l);if(c%u)throw RangeError("Wrong offset");return c}},3002:function(o,s,i){var a=i(9958);o.exports=function(l){var u=a(l);if(u<0)throw RangeError("The argument can't be less than 0");return u}},7593:function(o,s,i){var a=i(111);o.exports=function(l,u){if(!a(l))return l;var c,f;if(u&&typeof(c=l.toString)=="function"&&!a(f=c.call(l))||typeof(c=l.valueOf)=="function"&&!a(f=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!a(f=c.call(l)))return f;throw TypeError("Can't convert object to primitive value")}},1694:function(o,s,i){var a=i(5112),l=a("toStringTag"),u={};u[l]="z",o.exports=String(u)==="[object z]"},9843:function(o,s,i){"use strict";var a=i(2109),l=i(7854),u=i(9781),c=i(3832),f=i(260),d=i(3331),h=i(5787),p=i(9114),g=i(8880),y=i(7466),b=i(7067),x=i(4590),k=i(7593),S=i(6656),O=i(648),C=i(111),P=i(30),A=i(7674),D=i(8006).f,I=i(7321),M=i(2092).forEach,N=i(6340),B=i(3070),H=i(1236),Z=i(9909),W=i(9587),te=Z.get,ne=Z.set,be=B.f,Ae=H.f,xe=Math.round,Fe=l.RangeError,Re=d.ArrayBuffer,Ne=d.DataView,he=f.NATIVE_ARRAY_BUFFER_VIEWS,Se=f.TYPED_ARRAY_TAG,ke=f.TypedArray,Ie=f.TypedArrayPrototype,Oe=f.aTypedArrayConstructor,ot=f.isTypedArray,Ke="BYTES_PER_ELEMENT",Qe="Wrong length",me=function(J,V){for(var ie=0,ce=V.length,$e=new(Oe(J))(ce);ce>ie;)$e[ie]=V[ie++];return $e},oe=function(J,V){be(J,V,{get:function(){return te(this)[V]}})},ue=function(J){var V;return J instanceof Re||(V=O(J))=="ArrayBuffer"||V=="SharedArrayBuffer"},fe=function(J,V){return ot(J)&&typeof V!="symbol"&&V in J&&String(+V)==String(V)},le=function(V,ie){return fe(V,ie=k(ie,!0))?p(2,V[ie]):Ae(V,ie)},pe=function(V,ie,ce){return fe(V,ie=k(ie,!0))&&C(ce)&&S(ce,"value")&&!S(ce,"get")&&!S(ce,"set")&&!ce.configurable&&(!S(ce,"writable")||ce.writable)&&(!S(ce,"enumerable")||ce.enumerable)?(V[ie]=ce.value,V):be(V,ie,ce)};u?(he||(H.f=le,B.f=pe,oe(Ie,"buffer"),oe(Ie,"byteOffset"),oe(Ie,"byteLength"),oe(Ie,"length")),a({target:"Object",stat:!0,forced:!he},{getOwnPropertyDescriptor:le,defineProperty:pe}),o.exports=function(J,V,ie){var ce=J.match(/\d+$/)[0]/8,$e=J+(ie?"Clamped":"")+"Array",Ve="get"+J,st="set"+J,et=l[$e],Te=et,Ce=Te&&Te.prototype,Nt={},dt=function(Ge,Pe){var He=te(Ge);return He.view[Ve](Pe*ce+He.byteOffset,!0)},Xt=function(Ge,Pe,He){var ut=te(Ge);ie&&(He=(He=xe(He))<0?0:He>255?255:He&255),ut.view[st](Pe*ce+ut.byteOffset,He,!0)},Zt=function(Ge,Pe){be(Ge,Pe,{get:function(){return dt(this,Pe)},set:function(He){return Xt(this,Pe,He)},enumerable:!0})};he?c&&(Te=V(function(Ge,Pe,He,ut){return h(Ge,Te,$e),W(function(){return C(Pe)?ue(Pe)?ut!==void 0?new et(Pe,x(He,ce),ut):He!==void 0?new et(Pe,x(He,ce)):new et(Pe):ot(Pe)?me(Te,Pe):I.call(Te,Pe):new et(b(Pe))}(),Ge,Te)}),A&&A(Te,ke),M(D(et),function(Ge){Ge in Te||g(Te,Ge,et[Ge])}),Te.prototype=Ce):(Te=V(function(Ge,Pe,He,ut){h(Ge,Te,$e);var It=0,ft=0,Dt,nt,de;if(!C(Pe))de=b(Pe),nt=de*ce,Dt=new Re(nt);else if(ue(Pe)){Dt=Pe,ft=x(He,ce);var Vt=Pe.byteLength;if(ut===void 0){if(Vt%ce||(nt=Vt-ft,nt<0))throw Fe(Qe)}else if(nt=y(ut)*ce,nt+ft>Vt)throw Fe(Qe);de=nt/ce}else return ot(Pe)?me(Te,Pe):I.call(Te,Pe);for(ne(Ge,{buffer:Dt,byteOffset:ft,byteLength:nt,length:de,view:new Ne(Dt)});It<de;)Zt(Ge,It++)}),A&&A(Te,ke),Ce=Te.prototype=P(Ie)),Ce.constructor!==Te&&g(Ce,"constructor",Te),Se&&g(Ce,Se,$e),Nt[$e]=Te,a({global:!0,forced:Te!=et,sham:!he},Nt),Ke in Te||g(Te,Ke,ce),Ke in Ce||g(Ce,Ke,ce),N($e)}):o.exports=function(){}},3832:function(o,s,i){var a=i(7854),l=i(7293),u=i(7072),c=i(260).NATIVE_ARRAY_BUFFER_VIEWS,f=a.ArrayBuffer,d=a.Int8Array;o.exports=!c||!l(function(){d(1)})||!l(function(){new d(-1)})||!u(function(h){new d,new d(null),new d(1.5),new d(h)},!0)||l(function(){return new d(new f(2),1,void 0).length!==1})},3074:function(o,s,i){var a=i(260).aTypedArrayConstructor,l=i(6707);o.exports=function(u,c){for(var f=l(u,u.constructor),d=0,h=c.length,p=new(a(f))(h);h>d;)p[d]=c[d++];return p}},7321:function(o,s,i){var a=i(7908),l=i(7466),u=i(1246),c=i(7659),f=i(9974),d=i(260).aTypedArrayConstructor;o.exports=function(p){var g=a(p),y=arguments.length,b=y>1?arguments[1]:void 0,x=b!==void 0,k=u(g),S,O,C,P,A,D;if(k!=null&&!c(k))for(A=k.call(g),D=A.next,g=[];!(P=D.call(A)).done;)g.push(P.value);for(x&&y>2&&(b=f(b,arguments[2],2)),O=l(g.length),C=new(d(this))(O),S=0;O>S;S++)C[S]=x?b(g[S],S):g[S];return C}},9711:function(o){var s=0,i=Math.random();o.exports=function(a){return"Symbol("+String(a===void 0?"":a)+")_"+(++s+i).toString(36)}},3307:function(o,s,i){var a=i(133);o.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(o,s,i){var a=i(7854),l=i(2309),u=i(6656),c=i(9711),f=i(133),d=i(3307),h=l("wks"),p=a.Symbol,g=d?p:p&&p.withoutSetter||c;o.exports=function(y){return u(h,y)||(f&&u(p,y)?h[y]=p[y]:h[y]=g("Symbol."+y)),h[y]}},1361:function(o){o.exports=`
-\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},8264:function(o,s,i){"use strict";var a=i(2109),l=i(7854),u=i(3331),c=i(6340),f="ArrayBuffer",d=u[f],h=l[f];a({global:!0,forced:h!==d},{ArrayBuffer:d}),c(f)},2222:function(o,s,i){"use strict";var a=i(2109),l=i(7293),u=i(3157),c=i(111),f=i(7908),d=i(7466),h=i(6135),p=i(5417),g=i(1194),y=i(5112),b=i(7392),x=y("isConcatSpreadable"),k=9007199254740991,S="Maximum allowed index exceeded",O=b>=51||!l(function(){var D=[];return D[x]=!1,D.concat()[0]!==D}),C=g("concat"),P=function(D){if(!c(D))return!1;var I=D[x];return I!==void 0?!!I:u(D)},A=!O||!C;a({target:"Array",proto:!0,forced:A},{concat:function(I){var M=f(this),N=p(M,0),B=0,H,Z,W,te,ne;for(H=-1,W=arguments.length;H<W;H++)if(ne=H===-1?M:arguments[H],P(ne)){if(te=d(ne.length),B+te>k)throw TypeError(S);for(Z=0;Z<te;Z++,B++)Z in ne&&h(N,B,ne[Z])}else{if(B>=k)throw TypeError(S);h(N,B++,ne)}return N.length=B,N}})},7327:function(o,s,i){"use strict";var a=i(2109),l=i(2092).filter,u=i(1194),c=u("filter");a({target:"Array",proto:!0,forced:!c},{filter:function(d){return l(this,d,arguments.length>1?arguments[1]:void 0)}})},2772:function(o,s,i){"use strict";var a=i(2109),l=i(1318).indexOf,u=i(9341),c=[].indexOf,f=!!c&&1/[1].indexOf(1,-0)<0,d=u("indexOf");a({target:"Array",proto:!0,forced:f||!d},{indexOf:function(p){return f?c.apply(this,arguments)||0:l(this,p,arguments.length>1?arguments[1]:void 0)}})},6992:function(o,s,i){"use strict";var a=i(5656),l=i(1223),u=i(7497),c=i(9909),f=i(654),d="Array Iterator",h=c.set,p=c.getterFor(d);o.exports=f(Array,"Array",function(g,y){h(this,{type:d,target:a(g),index:0,kind:y})},function(){var g=p(this),y=g.target,b=g.kind,x=g.index++;return!y||x>=y.length?(g.target=void 0,{value:void 0,done:!0}):b=="keys"?{value:x,done:!1}:b=="values"?{value:y[x],done:!1}:{value:[x,y[x]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")},1249:function(o,s,i){"use strict";var a=i(2109),l=i(2092).map,u=i(1194),c=u("map");a({target:"Array",proto:!0,forced:!c},{map:function(d){return l(this,d,arguments.length>1?arguments[1]:void 0)}})},7042:function(o,s,i){"use strict";var a=i(2109),l=i(111),u=i(3157),c=i(1400),f=i(7466),d=i(5656),h=i(6135),p=i(5112),g=i(1194),y=g("slice"),b=p("species"),x=[].slice,k=Math.max;a({target:"Array",proto:!0,forced:!y},{slice:function(O,C){var P=d(this),A=f(P.length),D=c(O,A),I=c(C===void 0?A:C,A),M,N,B;if(u(P)&&(M=P.constructor,typeof M=="function"&&(M===Array||u(M.prototype))?M=void 0:l(M)&&(M=M[b],M===null&&(M=void 0)),M===Array||M===void 0))return x.call(P,D,I);for(N=new(M===void 0?Array:M)(k(I-D,0)),B=0;D<I;D++,B++)D in P&&h(N,B,P[D]);return N.length=B,N}})},561:function(o,s,i){"use strict";var a=i(2109),l=i(1400),u=i(9958),c=i(7466),f=i(7908),d=i(5417),h=i(6135),p=i(1194),g=p("splice"),y=Math.max,b=Math.min,x=9007199254740991,k="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!g},{splice:function(O,C){var P=f(this),A=c(P.length),D=l(O,A),I=arguments.length,M,N,B,H,Z,W;if(I===0?M=N=0:I===1?(M=0,N=A-D):(M=I-2,N=b(y(u(C),0),A-D)),A+M-N>x)throw TypeError(k);for(B=d(P,N),H=0;H<N;H++)Z=D+H,Z in P&&h(B,H,P[Z]);if(B.length=N,M<N){for(H=D;H<A-N;H++)Z=H+N,W=H+M,Z in P?P[W]=P[Z]:delete P[W];for(H=A;H>A-N+M;H--)delete P[H-1]}else if(M>N)for(H=A-N;H>D;H--)Z=H+N-1,W=H+M-1,Z in P?P[W]=P[Z]:delete P[W];for(H=0;H<M;H++)P[H+D]=arguments[H+2];return P.length=A-N+M,B}})},8309:function(o,s,i){var a=i(9781),l=i(3070).f,u=Function.prototype,c=u.toString,f=/^\s*function ([^ (]*)/,d="name";a&&!(d in u)&&l(u,d,{configurable:!0,get:function(){try{return c.call(this).match(f)[1]}catch{return""}}})},489:function(o,s,i){var a=i(2109),l=i(7293),u=i(7908),c=i(9518),f=i(8544),d=l(function(){c(1)});a({target:"Object",stat:!0,forced:d,sham:!f},{getPrototypeOf:function(p){return c(u(p))}})},1539:function(o,s,i){var a=i(1694),l=i(1320),u=i(288);a||l(Object.prototype,"toString",u,{unsafe:!0})},4916:function(o,s,i){"use strict";var a=i(2109),l=i(2261);a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},9714:function(o,s,i){"use strict";var a=i(1320),l=i(9670),u=i(7293),c=i(7066),f="toString",d=RegExp.prototype,h=d[f],p=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),g=h.name!=f;(p||g)&&a(RegExp.prototype,f,function(){var b=l(this),x=String(b.source),k=b.flags,S=String(k===void 0&&b instanceof RegExp&&!("flags"in d)?c.call(b):k);return"/"+x+"/"+S},{unsafe:!0})},8783:function(o,s,i){"use strict";var a=i(8710).charAt,l=i(9909),u=i(654),c="String Iterator",f=l.set,d=l.getterFor(c);u(String,"String",function(h){f(this,{type:c,string:String(h),index:0})},function(){var p=d(this),g=p.string,y=p.index,b;return y>=g.length?{value:void 0,done:!0}:(b=a(g,y),p.index+=b.length,{value:b,done:!1})})},4723:function(o,s,i){"use strict";var a=i(7007),l=i(9670),u=i(7466),c=i(4488),f=i(1530),d=i(7651);a("match",1,function(h,p,g){return[function(b){var x=c(this),k=b?.[h];return k!==void 0?k.call(b,x):new RegExp(b)[h](String(x))},function(y){var b=g(p,y,this);if(b.done)return b.value;var x=l(y),k=String(this);if(!x.global)return d(x,k);var S=x.unicode;x.lastIndex=0;for(var O=[],C=0,P;(P=d(x,k))!==null;){var A=String(P[0]);O[C]=A,A===""&&(x.lastIndex=f(k,u(x.lastIndex),S)),C++}return C===0?null:O}]})},5306:function(o,s,i){"use strict";var a=i(7007),l=i(9670),u=i(7466),c=i(9958),f=i(4488),d=i(1530),h=i(647),p=i(7651),g=Math.max,y=Math.min,b=function(x){return x===void 0?x:String(x)};a("replace",2,function(x,k,S,O){var C=O.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,P=O.REPLACE_KEEPS_$0,A=C?"$":"$0";return[function(I,M){var N=f(this),B=I?.[x];return B!==void 0?B.call(I,N,M):k.call(String(N),I,M)},function(D,I){if(!C&&P||typeof I=="string"&&I.indexOf(A)===-1){var M=S(k,D,this,I);if(M.done)return M.value}var N=l(D),B=String(this),H=typeof I=="function";H||(I=String(I));var Z=N.global;if(Z){var W=N.unicode;N.lastIndex=0}for(var te=[];;){var ne=p(N,B);if(ne===null||(te.push(ne),!Z))break;var be=String(ne[0]);be===""&&(N.lastIndex=d(B,u(N.lastIndex),W))}for(var Ae="",xe=0,Fe=0;Fe<te.length;Fe++){ne=te[Fe];for(var Re=String(ne[0]),Ne=g(y(c(ne.index),B.length),0),he=[],Se=1;Se<ne.length;Se++)he.push(b(ne[Se]));var ke=ne.groups;if(H){var Ie=[Re].concat(he,Ne,B);ke!==void 0&&Ie.push(ke);var Oe=String(I.apply(void 0,Ie))}else Oe=h(Re,B,Ne,he,ke,I);Ne>=xe&&(Ae+=B.slice(xe,Ne)+Oe,xe=Ne+Re.length)}return Ae+B.slice(xe)}]})},3123:function(o,s,i){"use strict";var a=i(7007),l=i(7850),u=i(9670),c=i(4488),f=i(6707),d=i(1530),h=i(7466),p=i(7651),g=i(2261),y=i(7293),b=[].push,x=Math.min,k=4294967295,S=!y(function(){return!RegExp(k,"y")});a("split",2,function(O,C,P){var A;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?A=function(D,I){var M=String(c(this)),N=I===void 0?k:I>>>0;if(N===0)return[];if(D===void 0)return[M];if(!l(D))return C.call(M,D,N);for(var B=[],H=(D.ignoreCase?"i":"")+(D.multiline?"m":"")+(D.unicode?"u":"")+(D.sticky?"y":""),Z=0,W=new RegExp(D.source,H+"g"),te,ne,be;(te=g.call(W,M))&&(ne=W.lastIndex,!(ne>Z&&(B.push(M.slice(Z,te.index)),te.length>1&&te.index<M.length&&b.apply(B,te.slice(1)),be=te[0].length,Z=ne,B.length>=N)));)W.lastIndex===te.index&&W.lastIndex++;return Z===M.length?(be||!W.test(""))&&B.push(""):B.push(M.slice(Z)),B.length>N?B.slice(0,N):B}:"0".split(void 0,0).length?A=function(D,I){return D===void 0&&I===0?[]:C.call(this,D,I)}:A=C,[function(I,M){var N=c(this),B=I?.[O];return B!==void 0?B.call(I,N,M):A.call(String(N),I,M)},function(D,I){var M=P(A,D,this,I,A!==C);if(M.done)return M.value;var N=u(D),B=String(this),H=f(N,RegExp),Z=N.unicode,W=(N.ignoreCase?"i":"")+(N.multiline?"m":"")+(N.unicode?"u":"")+(S?"y":"g"),te=new H(S?N:"^(?:"+N.source+")",W),ne=I===void 0?k:I>>>0;if(ne===0)return[];if(B.length===0)return p(te,B)===null?[B]:[];for(var be=0,Ae=0,xe=[];Ae<B.length;){te.lastIndex=S?Ae:0;var Fe=p(te,S?B:B.slice(Ae)),Re;if(Fe===null||(Re=x(h(te.lastIndex+(S?0:Ae)),B.length))===be)Ae=d(B,Ae,Z);else{if(xe.push(B.slice(be,Ae)),xe.length===ne)return xe;for(var Ne=1;Ne<=Fe.length-1;Ne++)if(xe.push(Fe[Ne]),xe.length===ne)return xe;Ae=be=Re}}return xe.push(B.slice(be)),xe}]},!S)},3210:function(o,s,i){"use strict";var a=i(2109),l=i(3111).trim,u=i(6091);a({target:"String",proto:!0,forced:u("trim")},{trim:function(){return l(this)}})},2990:function(o,s,i){"use strict";var a=i(260),l=i(1048),u=a.aTypedArray,c=a.exportTypedArrayMethod;c("copyWithin",function(d,h){return l.call(u(this),d,h,arguments.length>2?arguments[2]:void 0)})},8927:function(o,s,i){"use strict";var a=i(260),l=i(2092).every,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("every",function(d){return l(u(this),d,arguments.length>1?arguments[1]:void 0)})},3105:function(o,s,i){"use strict";var a=i(260),l=i(1285),u=a.aTypedArray,c=a.exportTypedArrayMethod;c("fill",function(d){return l.apply(u(this),arguments)})},5035:function(o,s,i){"use strict";var a=i(260),l=i(2092).filter,u=i(3074),c=a.aTypedArray,f=a.exportTypedArrayMethod;f("filter",function(h){var p=l(c(this),h,arguments.length>1?arguments[1]:void 0);return u(this,p)})},7174:function(o,s,i){"use strict";var a=i(260),l=i(2092).findIndex,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("findIndex",function(d){return l(u(this),d,arguments.length>1?arguments[1]:void 0)})},4345:function(o,s,i){"use strict";var a=i(260),l=i(2092).find,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("find",function(d){return l(u(this),d,arguments.length>1?arguments[1]:void 0)})},2846:function(o,s,i){"use strict";var a=i(260),l=i(2092).forEach,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("forEach",function(d){l(u(this),d,arguments.length>1?arguments[1]:void 0)})},4731:function(o,s,i){"use strict";var a=i(260),l=i(1318).includes,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("includes",function(d){return l(u(this),d,arguments.length>1?arguments[1]:void 0)})},7209:function(o,s,i){"use strict";var a=i(260),l=i(1318).indexOf,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("indexOf",function(d){return l(u(this),d,arguments.length>1?arguments[1]:void 0)})},6319:function(o,s,i){"use strict";var a=i(7854),l=i(260),u=i(6992),c=i(5112),f=c("iterator"),d=a.Uint8Array,h=u.values,p=u.keys,g=u.entries,y=l.aTypedArray,b=l.exportTypedArrayMethod,x=d&&d.prototype[f],k=!!x&&(x.name=="values"||x.name==null),S=function(){return h.call(y(this))};b("entries",function(){return g.call(y(this))}),b("keys",function(){return p.call(y(this))}),b("values",S,!k),b(f,S,!k)},8867:function(o,s,i){"use strict";var a=i(260),l=a.aTypedArray,u=a.exportTypedArrayMethod,c=[].join;u("join",function(d){return c.apply(l(this),arguments)})},7789:function(o,s,i){"use strict";var a=i(260),l=i(6583),u=a.aTypedArray,c=a.exportTypedArrayMethod;c("lastIndexOf",function(d){return l.apply(u(this),arguments)})},3739:function(o,s,i){"use strict";var a=i(260),l=i(2092).map,u=i(6707),c=a.aTypedArray,f=a.aTypedArrayConstructor,d=a.exportTypedArrayMethod;d("map",function(p){return l(c(this),p,arguments.length>1?arguments[1]:void 0,function(g,y){return new(f(u(g,g.constructor)))(y)})})},4483:function(o,s,i){"use strict";var a=i(260),l=i(3671).right,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("reduceRight",function(d){return l(u(this),d,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(o,s,i){"use strict";var a=i(260),l=i(3671).left,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("reduce",function(d){return l(u(this),d,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(o,s,i){"use strict";var a=i(260),l=a.aTypedArray,u=a.exportTypedArrayMethod,c=Math.floor;u("reverse",function(){for(var d=this,h=l(d).length,p=c(h/2),g=0,y;g<p;)y=d[g],d[g++]=d[--h],d[h]=y;return d})},3462:function(o,s,i){"use strict";var a=i(260),l=i(7466),u=i(4590),c=i(7908),f=i(7293),d=a.aTypedArray,h=a.exportTypedArrayMethod,p=f(function(){new Int8Array(1).set({})});h("set",function(y){d(this);var b=u(arguments.length>1?arguments[1]:void 0,1),x=this.length,k=c(y),S=l(k.length),O=0;if(S+b>x)throw RangeError("Wrong length");for(;O<S;)this[b+O]=k[O++]},p)},678:function(o,s,i){"use strict";var a=i(260),l=i(6707),u=i(7293),c=a.aTypedArray,f=a.aTypedArrayConstructor,d=a.exportTypedArrayMethod,h=[].slice,p=u(function(){new Int8Array(1).slice()});d("slice",function(y,b){for(var x=h.call(c(this),y,b),k=l(this,this.constructor),S=0,O=x.length,C=new(f(k))(O);O>S;)C[S]=x[S++];return C},p)},7462:function(o,s,i){"use strict";var a=i(260),l=i(2092).some,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("some",function(d){return l(u(this),d,arguments.length>1?arguments[1]:void 0)})},3824:function(o,s,i){"use strict";var a=i(260),l=a.aTypedArray,u=a.exportTypedArrayMethod,c=[].sort;u("sort",function(d){return c.call(l(this),d)})},5021:function(o,s,i){"use strict";var a=i(260),l=i(7466),u=i(1400),c=i(6707),f=a.aTypedArray,d=a.exportTypedArrayMethod;d("subarray",function(p,g){var y=f(this),b=y.length,x=u(p,b);return new(c(y,y.constructor))(y.buffer,y.byteOffset+x*y.BYTES_PER_ELEMENT,l((g===void 0?b:u(g,b))-x))})},2974:function(o,s,i){"use strict";var a=i(7854),l=i(260),u=i(7293),c=a.Int8Array,f=l.aTypedArray,d=l.exportTypedArrayMethod,h=[].toLocaleString,p=[].slice,g=!!c&&u(function(){h.call(new c(1))}),y=u(function(){return[1,2].toLocaleString()!=new c([1,2]).toLocaleString()})||!u(function(){c.prototype.toLocaleString.call([1,2])});d("toLocaleString",function(){return h.apply(g?p.call(f(this)):f(this),arguments)},y)},5016:function(o,s,i){"use strict";var a=i(260).exportTypedArrayMethod,l=i(7293),u=i(7854),c=u.Uint8Array,f=c&&c.prototype||{},d=[].toString,h=[].join;l(function(){d.call({})})&&(d=function(){return h.call(this)});var p=f.toString!=d;a("toString",d,p)},2472:function(o,s,i){var a=i(9843);a("Uint8",function(l){return function(c,f,d){return l(this,c,f,d)}})},4747:function(o,s,i){var a=i(7854),l=i(8324),u=i(8533),c=i(8880);for(var f in l){var d=a[f],h=d&&d.prototype;if(h&&h.forEach!==u)try{c(h,"forEach",u)}catch{h.forEach=u}}},3948:function(o,s,i){var a=i(7854),l=i(8324),u=i(6992),c=i(8880),f=i(5112),d=f("iterator"),h=f("toStringTag"),p=u.values;for(var g in l){var y=a[g],b=y&&y.prototype;if(b){if(b[d]!==p)try{c(b,d,p)}catch{b[d]=p}if(b[h]||c(b,h,g),l[g]){for(var x in u)if(b[x]!==u[x])try{c(b,x,u[x])}catch{b[x]=u[x]}}}}},1637:function(o,s,i){"use strict";i(6992);var a=i(2109),l=i(5005),u=i(590),c=i(1320),f=i(2248),d=i(8003),h=i(4994),p=i(9909),g=i(5787),y=i(6656),b=i(9974),x=i(648),k=i(9670),S=i(111),O=i(30),C=i(9114),P=i(8554),A=i(1246),D=i(5112),I=l("fetch"),M=l("Headers"),N=D("iterator"),B="URLSearchParams",H=B+"Iterator",Z=p.set,W=p.getterFor(B),te=p.getterFor(H),ne=/\+/g,be=Array(4),Ae=function(me){return be[me-1]||(be[me-1]=RegExp("((?:%[\\da-f]{2}){"+me+"})","gi"))},xe=function(me){try{return decodeURIComponent(me)}catch{return me}},Fe=function(me){var oe=me.replace(ne," "),ue=4;try{return decodeURIComponent(oe)}catch{for(;ue;)oe=oe.replace(Ae(ue--),xe);return oe}},Re=/[!'()~]|%20/g,Ne={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},he=function(me){return Ne[me]},Se=function(me){return encodeURIComponent(me).replace(Re,he)},ke=function(me,oe){if(oe)for(var ue=oe.split("&"),fe=0,le,pe;fe<ue.length;)le=ue[fe++],le.length&&(pe=le.split("="),me.push({key:Fe(pe.shift()),value:Fe(pe.join("="))}))},Ie=function(me){this.entries.length=0,ke(this.entries,me)},Oe=function(me,oe){if(me<oe)throw TypeError("Not enough arguments")},ot=h(function(oe,ue){Z(this,{type:H,iterator:P(W(oe).entries),kind:ue})},"Iterator",function(){var oe=te(this),ue=oe.kind,fe=oe.iterator.next(),le=fe.value;return fe.done||(fe.value=ue==="keys"?le.key:ue==="values"?le.value:[le.key,le.value]),fe}),Ke=function(){g(this,Ke,B);var oe=arguments.length>0?arguments[0]:void 0,ue=this,fe=[],le,pe,J,V,ie,ce,$e,Ve,st;if(Z(ue,{type:B,entries:fe,updateURL:function(){},updateSearchParams:Ie}),oe!==void 0)if(S(oe))if(le=A(oe),typeof le=="function")for(pe=le.call(oe),J=pe.next;!(V=J.call(pe)).done;){if(ie=P(k(V.value)),ce=ie.next,($e=ce.call(ie)).done||(Ve=ce.call(ie)).done||!ce.call(ie).done)throw TypeError("Expected sequence with length 2");fe.push({key:$e.value+"",value:Ve.value+""})}else for(st in oe)y(oe,st)&&fe.push({key:st,value:oe[st]+""});else ke(fe,typeof oe=="string"?oe.charAt(0)==="?"?oe.slice(1):oe:oe+"")},Qe=Ke.prototype;f(Qe,{append:function(oe,ue){Oe(arguments.length,2);var fe=W(this);fe.entries.push({key:oe+"",value:ue+""}),fe.updateURL()},delete:function(me){Oe(arguments.length,1);for(var oe=W(this),ue=oe.entries,fe=me+"",le=0;le<ue.length;)ue[le].key===fe?ue.splice(le,1):le++;oe.updateURL()},get:function(oe){Oe(arguments.length,1);for(var ue=W(this).entries,fe=oe+"",le=0;le<ue.length;le++)if(ue[le].key===fe)return ue[le].value;return null},getAll:function(oe){Oe(arguments.length,1);for(var ue=W(this).entries,fe=oe+"",le=[],pe=0;pe<ue.length;pe++)ue[pe].key===fe&&le.push(ue[pe].value);return le},has:function(oe){Oe(arguments.length,1);for(var ue=W(this).entries,fe=oe+"",le=0;le<ue.length;)if(ue[le++].key===fe)return!0;return!1},set:function(oe,ue){Oe(arguments.length,1);for(var fe=W(this),le=fe.entries,pe=!1,J=oe+"",V=ue+"",ie=0,ce;ie<le.length;ie++)ce=le[ie],ce.key===J&&(pe?le.splice(ie--,1):(pe=!0,ce.value=V));pe||le.push({key:J,value:V}),fe.updateURL()},sort:function(){var oe=W(this),ue=oe.entries,fe=ue.slice(),le,pe,J;for(ue.length=0,J=0;J<fe.length;J++){for(le=fe[J],pe=0;pe<J;pe++)if(ue[pe].key>le.key){ue.splice(pe,0,le);break}pe===J&&ue.push(le)}oe.updateURL()},forEach:function(oe){for(var ue=W(this).entries,fe=b(oe,arguments.length>1?arguments[1]:void 0,3),le=0,pe;le<ue.length;)pe=ue[le++],fe(pe.value,pe.key,this)},keys:function(){return new ot(this,"keys")},values:function(){return new ot(this,"values")},entries:function(){return new ot(this,"entries")}},{enumerable:!0}),c(Qe,N,Qe.entries),c(Qe,"toString",function(){for(var oe=W(this).entries,ue=[],fe=0,le;fe<oe.length;)le=oe[fe++],ue.push(Se(le.key)+"="+Se(le.value));return ue.join("&")},{enumerable:!0}),d(Ke,B),a({global:!0,forced:!u},{URLSearchParams:Ke}),!u&&typeof I=="function"&&typeof M=="function"&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(oe){var ue=[oe],fe,le,pe;return arguments.length>1&&(fe=arguments[1],S(fe)&&(le=fe.body,x(le)===B&&(pe=fe.headers?new M(fe.headers):new M,pe.has("content-type")||pe.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),fe=O(fe,{body:C(0,String(le)),headers:C(0,pe)}))),ue.push(fe)),I.apply(this,ue)}}),o.exports={URLSearchParams:Ke,getState:W}},285:function(o,s,i){"use strict";i(8783);var a=i(2109),l=i(9781),u=i(590),c=i(7854),f=i(6048),d=i(1320),h=i(5787),p=i(6656),g=i(1574),y=i(8457),b=i(8710).codeAt,x=i(3197),k=i(8003),S=i(1637),O=i(9909),C=c.URL,P=S.URLSearchParams,A=S.getState,D=O.set,I=O.getterFor("URL"),M=Math.floor,N=Math.pow,B="Invalid authority",H="Invalid scheme",Z="Invalid host",W="Invalid port",te=/[A-Za-z]/,ne=/[\d+-.A-Za-z]/,be=/\d/,Ae=/^(0x|0X)/,xe=/^[0-7]+$/,Fe=/^\d+$/,Re=/^[\dA-Fa-f]+$/,Ne=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,he=/[\u0000\t\u000A\u000D #/:?@[\\]]/,Se=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,ke=/[\t\u000A\u000D]/g,Ie,Oe=function(w,$){var j,q,X;if($.charAt(0)=="["){if($.charAt($.length-1)!="]"||(j=Ke($.slice(1,-1)),!j))return Z;w.host=j}else if(V(w)){if($=x($),Ne.test($)||(j=ot($),j===null))return Z;w.host=j}else{if(he.test($))return Z;for(j="",q=y($),X=0;X<q.length;X++)j+=pe(q[X],oe);w.host=j}},ot=function(w){var $=w.split("."),j,q,X,ye,ae,De,je;if($.length&&$[$.length-1]==""&&$.pop(),j=$.length,j>4)return w;for(q=[],X=0;X<j;X++){if(ye=$[X],ye=="")return w;if(ae=10,ye.length>1&&ye.charAt(0)=="0"&&(ae=Ae.test(ye)?16:8,ye=ye.slice(ae==8?1:2)),ye==="")De=0;else{if(!(ae==10?Fe:ae==8?xe:Re).test(ye))return w;De=parseInt(ye,ae)}q.push(De)}for(X=0;X<j;X++)if(De=q[X],X==j-1){if(De>=N(256,5-j))return null}else if(De>255)return null;for(je=q.pop(),X=0;X<q.length;X++)je+=q[X]*N(256,3-X);return je},Ke=function(w){var $=[0,0,0,0,0,0,0,0],j=0,q=null,X=0,ye,ae,De,je,Xe,at,K,ze=function(){return w.charAt(X)};if(ze()==":"){if(w.charAt(1)!=":")return;X+=2,j++,q=j}for(;ze();){if(j==8)return;if(ze()==":"){if(q!==null)return;X++,j++,q=j;continue}for(ye=ae=0;ae<4&&Re.test(ze());)ye=ye*16+parseInt(ze(),16),X++,ae++;if(ze()=="."){if(ae==0||(X-=ae,j>6))return;for(De=0;ze();){if(je=null,De>0)if(ze()=="."&&De<4)X++;else return;if(!be.test(ze()))return;for(;be.test(ze());){if(Xe=parseInt(ze(),10),je===null)je=Xe;else{if(je==0)return;je=je*10+Xe}if(je>255)return;X++}$[j]=$[j]*256+je,De++,(De==2||De==4)&&j++}if(De!=4)return;break}else if(ze()==":"){if(X++,!ze())return}else if(ze())return;$[j++]=ye}if(q!==null)for(at=j-q,j=7;j!=0&&at>0;)K=$[j],$[j--]=$[q+at-1],$[q+--at]=K;else if(j!=8)return;return $},Qe=function(w){for(var $=null,j=1,q=null,X=0,ye=0;ye<8;ye++)w[ye]!==0?(X>j&&($=q,j=X),q=null,X=0):(q===null&&(q=ye),++X);return X>j&&($=q,j=X),$},me=function(w){var $,j,q,X;if(typeof w=="number"){for($=[],j=0;j<4;j++)$.unshift(w%256),w=M(w/256);return $.join(".")}else if(typeof w=="object"){for($="",q=Qe(w),j=0;j<8;j++)X&&w[j]===0||(X&&(X=!1),q===j?($+=j?":":"::",X=!0):($+=w[j].toString(16),j<7&&($+=":")));return"["+$+"]"}return w},oe={},ue=g({},oe,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=g({},ue,{"#":1,"?":1,"{":1,"}":1}),le=g({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),pe=function(w,$){var j=b(w,0);return j>32&&j<127&&!p($,w)?w:encodeURIComponent(w)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},V=function(w){return p(J,w.scheme)},ie=function(w){return w.username!=""||w.password!=""},ce=function(w){return!w.host||w.cannotBeABaseURL||w.scheme=="file"},$e=function(w,$){var j;return w.length==2&&te.test(w.charAt(0))&&((j=w.charAt(1))==":"||!$&&j=="|")},Ve=function(w){var $;return w.length>1&&$e(w.slice(0,2))&&(w.length==2||($=w.charAt(2))==="/"||$==="\\"||$==="?"||$==="#")},st=function(w){var $=w.path,j=$.length;j&&(w.scheme!="file"||j!=1||!$e($[0],!0))&&$.pop()},et=function(w){return w==="."||w.toLowerCase()==="%2e"},Te=function(w){return w=w.toLowerCase(),w===".."||w==="%2e."||w===".%2e"||w==="%2e%2e"},Ce={},Nt={},dt={},Xt={},Zt={},Ge={},Pe={},He={},ut={},It={},ft={},Dt={},nt={},de={},Vt={},wr={},Gt={},xt={},Er={},Bt={},Ct={},wt=function(w,$,j,q){var X=j||Ce,ye=0,ae="",De=!1,je=!1,Xe=!1,at,K,ze,Ut;for(j||(w.scheme="",w.username="",w.password="",w.host=null,w.port=null,w.path=[],w.query=null,w.fragment=null,w.cannotBeABaseURL=!1,$=$.replace(Se,"")),$=$.replace(ke,""),at=y($);ye<=at.length;){switch(K=at[ye],X){case Ce:if(K&&te.test(K))ae+=K.toLowerCase(),X=Nt;else{if(j)return H;X=dt;continue}break;case Nt:if(K&&(ne.test(K)||K=="+"||K=="-"||K=="."))ae+=K.toLowerCase();else if(K==":"){if(j&&(V(w)!=p(J,ae)||ae=="file"&&(ie(w)||w.port!==null)||w.scheme=="file"&&!w.host))return;if(w.scheme=ae,j){V(w)&&J[w.scheme]==w.port&&(w.port=null);return}ae="",w.scheme=="file"?X=de:V(w)&&q&&q.scheme==w.scheme?X=Xt:V(w)?X=He:at[ye+1]=="/"?(X=Zt,ye++):(w.cannotBeABaseURL=!0,w.path.push(""),X=Er)}else{if(j)return H;ae="",X=dt,ye=0;continue}break;case dt:if(!q||q.cannotBeABaseURL&&K!="#")return H;if(q.cannotBeABaseURL&&K=="#"){w.scheme=q.scheme,w.path=q.path.slice(),w.query=q.query,w.fragment="",w.cannotBeABaseURL=!0,X=Ct;break}X=q.scheme=="file"?de:Ge;continue;case Xt:if(K=="/"&&at[ye+1]=="/")X=ut,ye++;else{X=Ge;continue}break;case Zt:if(K=="/"){X=It;break}else{X=xt;continue}case Ge:if(w.scheme=q.scheme,K==Ie)w.username=q.username,w.password=q.password,w.host=q.host,w.port=q.port,w.path=q.path.slice(),w.query=q.query;else if(K=="/"||K=="\\"&&V(w))X=Pe;else if(K=="?")w.username=q.username,w.password=q.password,w.host=q.host,w.port=q.port,w.path=q.path.slice(),w.query="",X=Bt;else if(K=="#")w.username=q.username,w.password=q.password,w.host=q.host,w.port=q.port,w.path=q.path.slice(),w.query=q.query,w.fragment="",X=Ct;else{w.username=q.username,w.password=q.password,w.host=q.host,w.port=q.port,w.path=q.path.slice(),w.path.pop(),X=xt;continue}break;case Pe:if(V(w)&&(K=="/"||K=="\\"))X=ut;else if(K=="/")X=It;else{w.username=q.username,w.password=q.password,w.host=q.host,w.port=q.port,X=xt;continue}break;case He:if(X=ut,K!="/"||ae.charAt(ye+1)!="/")continue;ye++;break;case ut:if(K!="/"&&K!="\\"){X=It;continue}break;case It:if(K=="@"){De&&(ae="%40"+ae),De=!0,ze=y(ae);for(var Bn=0;Bn<ze.length;Bn++){var Xo=ze[Bn];if(Xo==":"&&!Xe){Xe=!0;continue}var Zo=pe(Xo,le);Xe?w.password+=Zo:w.username+=Zo}ae=""}else if(K==Ie||K=="/"||K=="?"||K=="#"||K=="\\"&&V(w)){if(De&&ae=="")return B;ye-=y(ae).length+1,ae="",X=ft}else ae+=K;break;case ft:case Dt:if(j&&w.scheme=="file"){X=wr;continue}else if(K==":"&&!je){if(ae=="")return Z;if(Ut=Oe(w,ae),Ut)return Ut;if(ae="",X=nt,j==Dt)return}else if(K==Ie||K=="/"||K=="?"||K=="#"||K=="\\"&&V(w)){if(V(w)&&ae=="")return Z;if(j&&ae==""&&(ie(w)||w.port!==null))return;if(Ut=Oe(w,ae),Ut)return Ut;if(ae="",X=Gt,j)return;continue}else K=="["?je=!0:K=="]"&&(je=!1),ae+=K;break;case nt:if(be.test(K))ae+=K;else if(K==Ie||K=="/"||K=="?"||K=="#"||K=="\\"&&V(w)||j){if(ae!=""){var $n=parseInt(ae,10);if($n>65535)return W;w.port=V(w)&&$n===J[w.scheme]?null:$n,ae=""}if(j)return;X=Gt;continue}else return W;break;case de:if(w.scheme="file",K=="/"||K=="\\")X=Vt;else if(q&&q.scheme=="file")if(K==Ie)w.host=q.host,w.path=q.path.slice(),w.query=q.query;else if(K=="?")w.host=q.host,w.path=q.path.slice(),w.query="",X=Bt;else if(K=="#")w.host=q.host,w.path=q.path.slice(),w.query=q.query,w.fragment="",X=Ct;else{Ve(at.slice(ye).join(""))||(w.host=q.host,w.path=q.path.slice(),st(w)),X=xt;continue}else{X=xt;continue}break;case Vt:if(K=="/"||K=="\\"){X=wr;break}q&&q.scheme=="file"&&!Ve(at.slice(ye).join(""))&&($e(q.path[0],!0)?w.path.push(q.path[0]):w.host=q.host),X=xt;continue;case wr:if(K==Ie||K=="/"||K=="\\"||K=="?"||K=="#"){if(!j&&$e(ae))X=xt;else if(ae==""){if(w.host="",j)return;X=Gt}else{if(Ut=Oe(w,ae),Ut)return Ut;if(w.host=="localhost"&&(w.host=""),j)return;ae="",X=Gt}continue}else ae+=K;break;case Gt:if(V(w)){if(X=xt,K!="/"&&K!="\\")continue}else if(!j&&K=="?")w.query="",X=Bt;else if(!j&&K=="#")w.fragment="",X=Ct;else if(K!=Ie&&(X=xt,K!="/"))continue;break;case xt:if(K==Ie||K=="/"||K=="\\"&&V(w)||!j&&(K=="?"||K=="#")){if(Te(ae)?(st(w),K!="/"&&!(K=="\\"&&V(w))&&w.path.push("")):et(ae)?K!="/"&&!(K=="\\"&&V(w))&&w.path.push(""):(w.scheme=="file"&&!w.path.length&&$e(ae)&&(w.host&&(w.host=""),ae=ae.charAt(0)+":"),w.path.push(ae)),ae="",w.scheme=="file"&&(K==Ie||K=="?"||K=="#"))for(;w.path.length>1&&w.path[0]==="";)w.path.shift();K=="?"?(w.query="",X=Bt):K=="#"&&(w.fragment="",X=Ct)}else ae+=pe(K,fe);break;case Er:K=="?"?(w.query="",X=Bt):K=="#"?(w.fragment="",X=Ct):K!=Ie&&(w.path[0]+=pe(K,oe));break;case Bt:!j&&K=="#"?(w.fragment="",X=Ct):K!=Ie&&(K=="'"&&V(w)?w.query+="%27":K=="#"?w.query+="%23":w.query+=pe(K,oe));break;case Ct:K!=Ie&&(w.fragment+=pe(K,ue));break}ye++}},$t=function($){var j=h(this,$t,"URL"),q=arguments.length>1?arguments[1]:void 0,X=String($),ye=D(j,{type:"URL"}),ae,De;if(q!==void 0){if(q instanceof $t)ae=I(q);else if(De=wt(ae={},String(q)),De)throw TypeError(De)}if(De=wt(ye,X,null,ae),De)throw TypeError(De);var je=ye.searchParams=new P,Xe=A(je);Xe.updateSearchParams(ye.query),Xe.updateURL=function(){ye.query=String(je)||null},l||(j.href=R.call(j),j.origin=E.call(j),j.protocol=L.call(j),j.username=m.call(j),j.password=v.call(j),j.host=T.call(j),j.hostname=_.call(j),j.port=U.call(j),j.pathname=z.call(j),j.search=Y.call(j),j.searchParams=Q.call(j),j.hash=G.call(j))},F=$t.prototype,R=function(){var w=I(this),$=w.scheme,j=w.username,q=w.password,X=w.host,ye=w.port,ae=w.path,De=w.query,je=w.fragment,Xe=$+":";return X!==null?(Xe+="//",ie(w)&&(Xe+=j+(q?":"+q:"")+"@"),Xe+=me(X),ye!==null&&(Xe+=":"+ye)):$=="file"&&(Xe+="//"),Xe+=w.cannotBeABaseURL?ae[0]:ae.length?"/"+ae.join("/"):"",De!==null&&(Xe+="?"+De),je!==null&&(Xe+="#"+je),Xe},E=function(){var w=I(this),$=w.scheme,j=w.port;if($=="blob")try{return new URL($.path[0]).origin}catch{return"null"}return $=="file"||!V(w)?"null":$+"://"+me(w.host)+(j!==null?":"+j:"")},L=function(){return I(this).scheme+":"},m=function(){return I(this).username},v=function(){return I(this).password},T=function(){var w=I(this),$=w.host,j=w.port;return $===null?"":j===null?me($):me($)+":"+j},_=function(){var w=I(this).host;return w===null?"":me(w)},U=function(){var w=I(this).port;return w===null?"":String(w)},z=function(){var w=I(this),$=w.path;return w.cannotBeABaseURL?$[0]:$.length?"/"+$.join("/"):""},Y=function(){var w=I(this).query;return w?"?"+w:""},Q=function(){return I(this).searchParams},G=function(){var w=I(this).fragment;return w?"#"+w:""},se=function(w,$){return{get:w,set:$,configurable:!0,enumerable:!0}};if(l&&f(F,{href:se(R,function(w){var $=I(this),j=String(w),q=wt($,j);if(q)throw TypeError(q);A($.searchParams).updateSearchParams($.query)}),origin:se(E),protocol:se(L,function(w){var $=I(this);wt($,String(w)+":",Ce)}),username:se(m,function(w){var $=I(this),j=y(String(w));if(!ce($)){$.username="";for(var q=0;q<j.length;q++)$.username+=pe(j[q],le)}}),password:se(v,function(w){var $=I(this),j=y(String(w));if(!ce($)){$.password="";for(var q=0;q<j.length;q++)$.password+=pe(j[q],le)}}),host:se(T,function(w){var $=I(this);$.cannotBeABaseURL||wt($,String(w),ft)}),hostname:se(_,function(w){var $=I(this);$.cannotBeABaseURL||wt($,String(w),Dt)}),port:se(U,function(w){var $=I(this);ce($)||(w=String(w),w==""?$.port=null:wt($,w,nt))}),pathname:se(z,function(w){var $=I(this);$.cannotBeABaseURL||($.path=[],wt($,w+"",Gt))}),search:se(Y,function(w){var $=I(this);w=String(w),w==""?$.query=null:(w.charAt(0)=="?"&&(w=w.slice(1)),$.query="",wt($,w,Bt)),A($.searchParams).updateSearchParams($.query)}),searchParams:se(Q),hash:se(G,function(w){var $=I(this);if(w=String(w),w==""){$.fragment=null;return}w.charAt(0)=="#"&&(w=w.slice(1)),$.fragment="",wt($,w,Ct)})}),d(F,"toJSON",function(){return R.call(this)},{enumerable:!0}),d(F,"toString",function(){return R.call(this)},{enumerable:!0}),C){var Ue=C.createObjectURL,Ee=C.revokeObjectURL;Ue&&d($t,"createObjectURL",function($){return Ue.apply(C,arguments)}),Ee&&d($t,"revokeObjectURL",function($){return Ee.apply(C,arguments)})}k($t,"URL"),a({global:!0,forced:!u,sham:!l},{URL:$t})}},e={};function t(o){if(e[o])return e[o].exports;var s=e[o]={exports:{}};return r[o](s,s.exports,t),s.exports}(function(){t.d=function(o,s){for(var i in s)t.o(s,i)&&!t.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:s[i]})}})(),function(){t.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){t.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)}}(),function(){t.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}}();var n={};return function(){"use strict";t.r(n),t.d(n,{Dropzone:function(){return de},default:function(){return $t}});var o=t(2222),s=t(7327),i=t(2772),a=t(6992),l=t(1249),u=t(7042),c=t(561),f=t(8264),d=t(8309),h=t(489),p=t(1539),g=t(4916),y=t(9714),b=t(8783),x=t(4723),k=t(5306),S=t(3123),O=t(3210),C=t(2472),P=t(2990),A=t(8927),D=t(3105),I=t(5035),M=t(4345),N=t(7174),B=t(2846),H=t(4731),Z=t(7209),W=t(6319),te=t(8867),ne=t(7789),be=t(3739),Ae=t(9368),xe=t(4483),Fe=t(2056),Re=t(3462),Ne=t(678),he=t(7462),Se=t(3824),ke=t(5021),Ie=t(2974),Oe=t(5016),ot=t(4747),Ke=t(3948),Qe=t(285);function me(F,R){var E;if(typeof Symbol>"u"||F[Symbol.iterator]==null){if(Array.isArray(F)||(E=oe(F))||R&&F&&typeof F.length=="number"){E&&(F=E);var L=0,m=function(){};return{s:m,n:function(){return L>=F.length?{done:!0}:{done:!1,value:F[L++]}},e:function(z){throw z},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v=!0,T=!1,_;return{s:function(){E=F[Symbol.iterator]()},n:function(){var z=E.next();return v=z.done,z},e:function(z){T=!0,_=z},f:function(){try{!v&&E.return!=null&&E.return()}finally{if(T)throw _}}}}function oe(F,R){if(!!F){if(typeof F=="string")return ue(F,R);var E=Object.prototype.toString.call(F).slice(8,-1);if(E==="Object"&&F.constructor&&(E=F.constructor.name),E==="Map"||E==="Set")return Array.from(F);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return ue(F,R)}}function ue(F,R){(R==null||R>F.length)&&(R=F.length);for(var E=0,L=new Array(R);E<R;E++)L[E]=F[E];return L}function fe(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}function le(F,R){for(var E=0;E<R.length;E++){var L=R[E];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(F,L.key,L)}}function pe(F,R,E){return R&&le(F.prototype,R),E&&le(F,E),F}var J=function(){function F(){fe(this,F)}return pe(F,[{key:"on",value:function(E,L){return this._callbacks=this._callbacks||{},this._callbacks[E]||(this._callbacks[E]=[]),this._callbacks[E].push(L),this}},{key:"emit",value:function(E){this._callbacks=this._callbacks||{};for(var L=this._callbacks[E],m=arguments.length,v=new Array(m>1?m-1:0),T=1;T<m;T++)v[T-1]=arguments[T];if(L){var _=me(L,!0),U;try{for(_.s();!(U=_.n()).done;){var z=U.value;z.apply(this,v)}}catch(Y){_.e(Y)}finally{_.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+E,{args:v})),this}},{key:"makeEvent",value:function(E,L){var m={bubbles:!0,cancelable:!0,detail:L};if(typeof window.CustomEvent=="function")return new CustomEvent(E,m);var v=document.createEvent("CustomEvent");return v.initCustomEvent(E,m.bubbles,m.cancelable,m.detail),v}},{key:"off",value:function(E,L){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var m=this._callbacks[E];if(!m)return this;if(arguments.length===1)return delete this._callbacks[E],this;for(var v=0;v<m.length;v++){var T=m[v];if(T===L){m.splice(v,1);break}}return this}}]),F}(),V='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',ie=V;function ce(F,R){var E;if(typeof Symbol>"u"||F[Symbol.iterator]==null){if(Array.isArray(F)||(E=$e(F))||R&&F&&typeof F.length=="number"){E&&(F=E);var L=0,m=function(){};return{s:m,n:function(){return L>=F.length?{done:!0}:{done:!1,value:F[L++]}},e:function(z){throw z},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v=!0,T=!1,_;return{s:function(){E=F[Symbol.iterator]()},n:function(){var z=E.next();return v=z.done,z},e:function(z){T=!0,_=z},f:function(){try{!v&&E.return!=null&&E.return()}finally{if(T)throw _}}}}function $e(F,R){if(!!F){if(typeof F=="string")return Ve(F,R);var E=Object.prototype.toString.call(F).slice(8,-1);if(E==="Object"&&F.constructor&&(E=F.constructor.name),E==="Map"||E==="Set")return Array.from(F);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return Ve(F,R)}}function Ve(F,R){(R==null||R>F.length)&&(R=F.length);for(var E=0,L=new Array(R);E<R;E++)L[E]=F[E];return L}var st={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(R,E,L){if(L)return{dzuuid:L.file.upload.uuid,dzchunkindex:L.index,dztotalfilesize:L.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:L.file.upload.totalChunkCount,dzchunkbyteoffset:L.index*this.options.chunkSize}},accept:function(R,E){return E()},chunksUploaded:function(R,E){E()},fallback:function(){var R;this.element.className="".concat(this.element.className," dz-browser-not-supported");var E=ce(this.element.getElementsByTagName("div"),!0),L;try{for(E.s();!(L=E.n()).done;){var m=L.value;if(/(^| )dz-message($| )/.test(m.className)){R=m,m.className="dz-message";break}}}catch(T){E.e(T)}finally{E.f()}R||(R=de.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(R));var v=R.getElementsByTagName("span")[0];return v&&(v.textContent!=null?v.textContent=this.options.dictFallbackMessage:v.innerText!=null&&(v.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(R,E,L,m){var v={srcX:0,srcY:0,srcWidth:R.width,srcHeight:R.height},T=R.width/R.height;E==null&&L==null?(E=v.srcWidth,L=v.srcHeight):E==null?E=L*T:L==null&&(L=E/T),E=Math.min(E,v.srcWidth),L=Math.min(L,v.srcHeight);var _=E/L;if(v.srcWidth>E||v.srcHeight>L)if(m==="crop")T>_?(v.srcHeight=R.height,v.srcWidth=v.srcHeight*_):(v.srcWidth=R.width,v.srcHeight=v.srcWidth/_);else if(m==="contain")T>_?L=E/T:E=L*T;else throw new Error("Unknown resizeMethod '".concat(m,"'"));return v.srcX=(R.width-v.srcWidth)/2,v.srcY=(R.height-v.srcHeight)/2,v.trgWidth=E,v.trgHeight=L,v},transformFile:function(R,E){return(this.options.resizeWidth||this.options.resizeHeight)&&R.type.match(/image.*/)?this.resizeImage(R,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,E):E(R)},previewTemplate:ie,drop:function(R){return this.element.classList.remove("dz-drag-hover")},dragstart:function(R){},dragend:function(R){return this.element.classList.remove("dz-drag-hover")},dragenter:function(R){return this.element.classList.add("dz-drag-hover")},dragover:function(R){return this.element.classList.add("dz-drag-hover")},dragleave:function(R){return this.element.classList.remove("dz-drag-hover")},paste:function(R){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(R){var E=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){R.previewElement=de.createElement(this.options.previewTemplate.trim()),R.previewTemplate=R.previewElement,this.previewsContainer.appendChild(R.previewElement);var L=ce(R.previewElement.querySelectorAll("[data-dz-name]"),!0),m;try{for(L.s();!(m=L.n()).done;){var v=m.value;v.textContent=R.name}}catch(G){L.e(G)}finally{L.f()}var T=ce(R.previewElement.querySelectorAll("[data-dz-size]"),!0),_;try{for(T.s();!(_=T.n()).done;)v=_.value,v.innerHTML=this.filesize(R.size)}catch(G){T.e(G)}finally{T.f()}this.options.addRemoveLinks&&(R._removeLink=de.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),R.previewElement.appendChild(R._removeLink));var U=function(se){return se.preventDefault(),se.stopPropagation(),R.status===de.UPLOADING?de.confirm(E.options.dictCancelUploadConfirmation,function(){return E.removeFile(R)}):E.options.dictRemoveFileConfirmation?de.confirm(E.options.dictRemoveFileConfirmation,function(){return E.removeFile(R)}):E.removeFile(R)},z=ce(R.previewElement.querySelectorAll("[data-dz-remove]"),!0),Y;try{for(z.s();!(Y=z.n()).done;){var Q=Y.value;Q.addEventListener("click",U)}}catch(G){z.e(G)}finally{z.f()}}},removedfile:function(R){return R.previewElement!=null&&R.previewElement.parentNode!=null&&R.previewElement.parentNode.removeChild(R.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(R,E){if(R.previewElement){R.previewElement.classList.remove("dz-file-preview");var L=ce(R.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0),m;try{for(L.s();!(m=L.n()).done;){var v=m.value;v.alt=R.name,v.src=E}}catch(T){L.e(T)}finally{L.f()}return setTimeout(function(){return R.previewElement.classList.add("dz-image-preview")},1)}},error:function(R,E){if(R.previewElement){R.previewElement.classList.add("dz-error"),typeof E!="string"&&E.error&&(E=E.error);var L=ce(R.previewElement.querySelectorAll("[data-dz-errormessage]"),!0),m;try{for(L.s();!(m=L.n()).done;){var v=m.value;v.textContent=E}}catch(T){L.e(T)}finally{L.f()}}},errormultiple:function(){},processing:function(R){if(R.previewElement&&(R.previewElement.classList.add("dz-processing"),R._removeLink))return R._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(R,E,L){if(R.previewElement){var m=ce(R.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0),v;try{for(m.s();!(v=m.n()).done;){var T=v.value;T.nodeName==="PROGRESS"?T.value=E:T.style.width="".concat(E,"%")}}catch(_){m.e(_)}finally{m.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(R){if(R.previewElement)return R.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(R){return this.emit("error",R,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(R){if(R._removeLink&&(R._removeLink.innerHTML=this.options.dictRemoveFile),R.previewElement)return R.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},et=st;function Te(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Te=function(E){return typeof E}:Te=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},Te(F)}function Ce(F,R){var E;if(typeof Symbol>"u"||F[Symbol.iterator]==null){if(Array.isArray(F)||(E=Nt(F))||R&&F&&typeof F.length=="number"){E&&(F=E);var L=0,m=function(){};return{s:m,n:function(){return L>=F.length?{done:!0}:{done:!1,value:F[L++]}},e:function(z){throw z},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v=!0,T=!1,_;return{s:function(){E=F[Symbol.iterator]()},n:function(){var z=E.next();return v=z.done,z},e:function(z){T=!0,_=z},f:function(){try{!v&&E.return!=null&&E.return()}finally{if(T)throw _}}}}function Nt(F,R){if(!!F){if(typeof F=="string")return dt(F,R);var E=Object.prototype.toString.call(F).slice(8,-1);if(E==="Object"&&F.constructor&&(E=F.constructor.name),E==="Map"||E==="Set")return Array.from(F);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return dt(F,R)}}function dt(F,R){(R==null||R>F.length)&&(R=F.length);for(var E=0,L=new Array(R);E<R;E++)L[E]=F[E];return L}function Xt(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}function Zt(F,R){for(var E=0;E<R.length;E++){var L=R[E];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(F,L.key,L)}}function Ge(F,R,E){return R&&Zt(F.prototype,R),E&&Zt(F,E),F}function Pe(F,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(R&&R.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),R&&He(F,R)}function He(F,R){return He=Object.setPrototypeOf||function(L,m){return L.__proto__=m,L},He(F,R)}function ut(F){var R=Dt();return function(){var L=nt(F),m;if(R){var v=nt(this).constructor;m=Reflect.construct(L,arguments,v)}else m=L.apply(this,arguments);return It(this,m)}}function It(F,R){return R&&(Te(R)==="object"||typeof R=="function")?R:ft(F)}function ft(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function Dt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function nt(F){return nt=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},nt(F)}var de=function(F){Pe(E,F);var R=ut(E);function E(L,m){var v;Xt(this,E),v=R.call(this);var T,_;if(v.element=L,v.version=E.version,v.clickableElements=[],v.listeners=[],v.files=[],typeof v.element=="string"&&(v.element=document.querySelector(v.element)),!v.element||v.element.nodeType==null)throw new Error("Invalid dropzone element.");if(v.element.dropzone)throw new Error("Dropzone already attached.");E.instances.push(ft(v)),v.element.dropzone=ft(v);var U=(_=E.optionsForElement(v.element))!=null?_:{};if(v.options=E.extend({},et,U,m??{}),v.options.previewTemplate=v.options.previewTemplate.replace(/\n*/g,""),v.options.forceFallback||!E.isBrowserSupported())return It(v,v.options.fallback.call(ft(v)));if(v.options.url==null&&(v.options.url=v.element.getAttribute("action")),!v.options.url)throw new Error("No URL provided.");if(v.options.acceptedFiles&&v.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(v.options.uploadMultiple&&v.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return v.options.acceptedMimeTypes&&(v.options.acceptedFiles=v.options.acceptedMimeTypes,delete v.options.acceptedMimeTypes),v.options.renameFilename!=null&&(v.options.renameFile=function(z){return v.options.renameFilename.call(ft(v),z.name,z)}),typeof v.options.method=="string"&&(v.options.method=v.options.method.toUpperCase()),(T=v.getExistingFallback())&&T.parentNode&&T.parentNode.removeChild(T),v.options.previewsContainer!==!1&&(v.options.previewsContainer?v.previewsContainer=E.getElement(v.options.previewsContainer,"previewsContainer"):v.previewsContainer=v.element),v.options.clickable&&(v.options.clickable===!0?v.clickableElements=[v.element]:v.clickableElements=E.getElements(v.options.clickable,"clickable")),v.init(),v}return Ge(E,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(m){return m.accepted}).map(function(m){return m})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(m){return!m.accepted}).map(function(m){return m})}},{key:"getFilesWithStatus",value:function(m){return this.files.filter(function(v){return v.status===m}).map(function(v){return v})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(E.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(E.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(E.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(m){return m.status===E.UPLOADING||m.status===E.QUEUED}).map(function(m){return m})}},{key:"init",value:function(){var m=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(E.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var v=function Q(){m.hiddenFileInput&&m.hiddenFileInput.parentNode.removeChild(m.hiddenFileInput),m.hiddenFileInput=document.createElement("input"),m.hiddenFileInput.setAttribute("type","file"),(m.options.maxFiles===null||m.options.maxFiles>1)&&m.hiddenFileInput.setAttribute("multiple","multiple"),m.hiddenFileInput.className="dz-hidden-input",m.options.acceptedFiles!==null&&m.hiddenFileInput.setAttribute("accept",m.options.acceptedFiles),m.options.capture!==null&&m.hiddenFileInput.setAttribute("capture",m.options.capture),m.hiddenFileInput.setAttribute("tabindex","-1"),m.hiddenFileInput.style.visibility="hidden",m.hiddenFileInput.style.position="absolute",m.hiddenFileInput.style.top="0",m.hiddenFileInput.style.left="0",m.hiddenFileInput.style.height="0",m.hiddenFileInput.style.width="0",E.getElement(m.options.hiddenInputContainer,"hiddenInputContainer").appendChild(m.hiddenFileInput),m.hiddenFileInput.addEventListener("change",function(){var G=m.hiddenFileInput.files;if(G.length){var se=Ce(G,!0),Ue;try{for(se.s();!(Ue=se.n()).done;){var Ee=Ue.value;m.addFile(Ee)}}catch(w){se.e(w)}finally{se.f()}}m.emit("addedfiles",G),Q()})};v()}this.URL=window.URL!==null?window.URL:window.webkitURL;var T=Ce(this.events,!0),_;try{for(T.s();!(_=T.n()).done;){var U=_.value;this.on(U,this.options[U])}}catch(Q){T.e(Q)}finally{T.f()}this.on("uploadprogress",function(){return m.updateTotalUploadProgress()}),this.on("removedfile",function(){return m.updateTotalUploadProgress()}),this.on("canceled",function(Q){return m.emit("complete",Q)}),this.on("complete",function(Q){if(m.getAddedFiles().length===0&&m.getUploadingFiles().length===0&&m.getQueuedFiles().length===0)return setTimeout(function(){return m.emit("queuecomplete")},0)});var z=function(G){if(G.dataTransfer.types){for(var se=0;se<G.dataTransfer.types.length;se++)if(G.dataTransfer.types[se]==="Files")return!0}return!1},Y=function(G){if(!!z(G))return G.stopPropagation(),G.preventDefault?G.preventDefault():G.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(G){return m.emit("dragstart",G)},dragenter:function(G){return Y(G),m.emit("dragenter",G)},dragover:function(G){var se;try{se=G.dataTransfer.effectAllowed}catch{}return G.dataTransfer.dropEffect=se==="move"||se==="linkMove"?"move":"copy",Y(G),m.emit("dragover",G)},dragleave:function(G){return m.emit("dragleave",G)},drop:function(G){return Y(G),m.drop(G)},dragend:function(G){return m.emit("dragend",G)}}}],this.clickableElements.forEach(function(Q){return m.listeners.push({element:Q,events:{click:function(se){return(Q!==m.element||se.target===m.element||E.elementInside(se.target,m.element.querySelector(".dz-message")))&&m.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,E.instances.splice(E.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var m,v=0,T=0,_=this.getActiveFiles();if(_.length){var U=Ce(this.getActiveFiles(),!0),z;try{for(U.s();!(z=U.n()).done;){var Y=z.value;v+=Y.upload.bytesSent,T+=Y.upload.total}}catch(Q){U.e(Q)}finally{U.f()}m=100*v/T}else m=100;return this.emit("totaluploadprogress",m,T,v)}},{key:"_getParamName",value:function(m){return typeof this.options.paramName=="function"?this.options.paramName(m):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(m,"]"):"")}},{key:"_renameFile",value:function(m){return typeof this.options.renameFile!="function"?m.name:this.options.renameFile(m)}},{key:"getFallbackForm",value:function(){var m,v;if(m=this.getExistingFallback())return m;var T='<div class="dz-fallback">';this.options.dictFallbackText&&(T+="<p>".concat(this.options.dictFallbackText,"</p>")),T+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var _=E.createElement(T);return this.element.tagName!=="FORM"?(v=E.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),v.appendChild(_)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),v??_}},{key:"getExistingFallback",value:function(){for(var m=function(Y){var Q=Ce(Y,!0),G;try{for(Q.s();!(G=Q.n()).done;){var se=G.value;if(/(^| )fallback($| )/.test(se.className))return se}}catch(Ue){Q.e(Ue)}finally{Q.f()}},v=0,T=["div","form"];v<T.length;v++){var _=T[v],U;if(U=m(this.element.getElementsByTagName(_)))return U}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(m){return function(){var v=[];for(var T in m.events){var _=m.events[T];v.push(m.element.addEventListener(T,_,!1))}return v}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(m){return function(){var v=[];for(var T in m.events){var _=m.events[T];v.push(m.element.removeEventListener(T,_,!1))}return v}()})}},{key:"disable",value:function(){var m=this;return this.clickableElements.forEach(function(v){return v.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(v){return m.cancelUpload(v)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(m){return m.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(m){var v=0,T="b";if(m>0){for(var _=["tb","gb","mb","kb","b"],U=0;U<_.length;U++){var z=_[U],Y=Math.pow(this.options.filesizeBase,4-U)/10;if(m>=Y){v=m/Math.pow(this.options.filesizeBase,4-U),T=z;break}}v=Math.round(10*v)/10}return"<strong>".concat(v,"</strong> ").concat(this.options.dictFileSizeUnits[T])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(m){if(!!m.dataTransfer){this.emit("drop",m);for(var v=[],T=0;T<m.dataTransfer.files.length;T++)v[T]=m.dataTransfer.files[T];if(v.length){var _=m.dataTransfer.items;_&&_.length&&_[0].webkitGetAsEntry!=null?this._addFilesFromItems(_):this.handleFiles(v)}this.emit("addedfiles",v)}}},{key:"paste",value:function(m){if(Ct(m?.clipboardData,function(T){return T.items})!=null){this.emit("paste",m);var v=m.clipboardData.items;if(v.length)return this._addFilesFromItems(v)}}},{key:"handleFiles",value:function(m){var v=Ce(m,!0),T;try{for(v.s();!(T=v.n()).done;){var _=T.value;this.addFile(_)}}catch(U){v.e(U)}finally{v.f()}}},{key:"_addFilesFromItems",value:function(m){var v=this;return function(){var T=[],_=Ce(m,!0),U;try{for(_.s();!(U=_.n()).done;){var z=U.value,Y;z.webkitGetAsEntry!=null&&(Y=z.webkitGetAsEntry())?Y.isFile?T.push(v.addFile(z.getAsFile())):Y.isDirectory?T.push(v._addFilesFromDirectory(Y,Y.name)):T.push(void 0):z.getAsFile!=null&&(z.kind==null||z.kind==="file")?T.push(v.addFile(z.getAsFile())):T.push(void 0)}}catch(Q){_.e(Q)}finally{_.f()}return T}()}},{key:"_addFilesFromDirectory",value:function(m,v){var T=this,_=m.createReader(),U=function(Q){return wt(console,"log",function(G){return G.log(Q)})},z=function Y(){return _.readEntries(function(Q){if(Q.length>0){var G=Ce(Q,!0),se;try{for(G.s();!(se=G.n()).done;){var Ue=se.value;Ue.isFile?Ue.file(function(Ee){if(!(T.options.ignoreHiddenFiles&&Ee.name.substring(0,1)==="."))return Ee.fullPath="".concat(v,"/").concat(Ee.name),T.addFile(Ee)}):Ue.isDirectory&&T._addFilesFromDirectory(Ue,"".concat(v,"/").concat(Ue.name))}}catch(Ee){G.e(Ee)}finally{G.f()}Y()}return null},U)};return z()}},{key:"accept",value:function(m,v){this.options.maxFilesize&&m.size>this.options.maxFilesize*1024*1024?v(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(m.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):E.isValidFile(m,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(v(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",m)):this.options.accept.call(this,m,v):v(this.options.dictInvalidFileType)}},{key:"addFile",value:function(m){var v=this;m.upload={uuid:E.uuidv4(),progress:0,total:m.size,bytesSent:0,filename:this._renameFile(m)},this.files.push(m),m.status=E.ADDED,this.emit("addedfile",m),this._enqueueThumbnail(m),this.accept(m,function(T){T?(m.accepted=!1,v._errorProcessing([m],T)):(m.accepted=!0,v.options.autoQueue&&v.enqueueFile(m)),v._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(m){var v=Ce(m,!0),T;try{for(v.s();!(T=v.n()).done;){var _=T.value;this.enqueueFile(_)}}catch(U){v.e(U)}finally{v.f()}return null}},{key:"enqueueFile",value:function(m){var v=this;if(m.status===E.ADDED&&m.accepted===!0){if(m.status=E.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return v.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(m){var v=this;if(this.options.createImageThumbnails&&m.type.match(/image.*/)&&m.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(m),setTimeout(function(){return v._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var m=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var v=this._thumbnailQueue.shift();return this.createThumbnail(v,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(T){return m.emit("thumbnail",v,T),m._processingThumbnail=!1,m._processThumbnailQueue()})}}},{key:"removeFile",value:function(m){if(m.status===E.UPLOADING&&this.cancelUpload(m),this.files=Vt(this.files,m),this.emit("removedfile",m),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(m){m==null&&(m=!1);var v=Ce(this.files.slice(),!0),T;try{for(v.s();!(T=v.n()).done;){var _=T.value;(_.status!==E.UPLOADING||m)&&this.removeFile(_)}}catch(U){v.e(U)}finally{v.f()}return null}},{key:"resizeImage",value:function(m,v,T,_,U){var z=this;return this.createThumbnail(m,v,T,_,!0,function(Y,Q){if(Q==null)return U(m);var G=z.options.resizeMimeType;G==null&&(G=m.type);var se=Q.toDataURL(G,z.options.resizeQuality);return(G==="image/jpeg"||G==="image/jpg")&&(se=Er.restore(m.dataURL,se)),U(E.dataURItoBlob(se))})}},{key:"createThumbnail",value:function(m,v,T,_,U,z){var Y=this,Q=new FileReader;Q.onload=function(){if(m.dataURL=Q.result,m.type==="image/svg+xml"){z?.(Q.result);return}Y.createThumbnailFromUrl(m,v,T,_,U,z)},Q.readAsDataURL(m)}},{key:"displayExistingFile",value:function(m,v,T,_){var U=this,z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",m),this.emit("complete",m),!z)this.emit("thumbnail",m,v),T&&T();else{var Y=function(G){U.emit("thumbnail",m,G),T&&T()};m.dataURL=v,this.createThumbnailFromUrl(m,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,Y,_)}}},{key:"createThumbnailFromUrl",value:function(m,v,T,_,U,z,Y){var Q=this,G=document.createElement("img");return Y&&(G.crossOrigin=Y),U=getComputedStyle(document.body).imageOrientation=="from-image"?!1:U,G.onload=function(){var se=function(Ee){return Ee(1)};return typeof EXIF<"u"&&EXIF!==null&&U&&(se=function(Ee){return EXIF.getData(G,function(){return Ee(EXIF.getTag(this,"Orientation"))})}),se(function(Ue){m.width=G.width,m.height=G.height;var Ee=Q.options.resize.call(Q,m,v,T,_),w=document.createElement("canvas"),$=w.getContext("2d");switch(w.width=Ee.trgWidth,w.height=Ee.trgHeight,Ue>4&&(w.width=Ee.trgHeight,w.height=Ee.trgWidth),Ue){case 2:$.translate(w.width,0),$.scale(-1,1);break;case 3:$.translate(w.width,w.height),$.rotate(Math.PI);break;case 4:$.translate(0,w.height),$.scale(1,-1);break;case 5:$.rotate(.5*Math.PI),$.scale(1,-1);break;case 6:$.rotate(.5*Math.PI),$.translate(0,-w.width);break;case 7:$.rotate(.5*Math.PI),$.translate(w.height,-w.width),$.scale(-1,1);break;case 8:$.rotate(-.5*Math.PI),$.translate(-w.height,0);break}xt($,G,Ee.srcX!=null?Ee.srcX:0,Ee.srcY!=null?Ee.srcY:0,Ee.srcWidth,Ee.srcHeight,Ee.trgX!=null?Ee.trgX:0,Ee.trgY!=null?Ee.trgY:0,Ee.trgWidth,Ee.trgHeight);var j=w.toDataURL("image/png");if(z!=null)return z(j,w)})},z!=null&&(G.onerror=z),G.src=m.dataURL}},{key:"processQueue",value:function(){var m=this.options.parallelUploads,v=this.getUploadingFiles().length,T=v;if(!(v>=m)){var _=this.getQueuedFiles();if(_.length>0){if(this.options.uploadMultiple)return this.processFiles(_.slice(0,m-v));for(;T<m;){if(!_.length)return;this.processFile(_.shift()),T++}}}}},{key:"processFile",value:function(m){return this.processFiles([m])}},{key:"processFiles",value:function(m){var v=Ce(m,!0),T;try{for(v.s();!(T=v.n()).done;){var _=T.value;_.processing=!0,_.status=E.UPLOADING,this.emit("processing",_)}}catch(U){v.e(U)}finally{v.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",m),this.uploadFiles(m)}},{key:"_getFilesWithXhr",value:function(m){var v;return v=this.files.filter(function(T){return T.xhr===m}).map(function(T){return T})}},{key:"cancelUpload",value:function(m){if(m.status===E.UPLOADING){var v=this._getFilesWithXhr(m.xhr),T=Ce(v,!0),_;try{for(T.s();!(_=T.n()).done;){var U=_.value;U.status=E.CANCELED}}catch(G){T.e(G)}finally{T.f()}typeof m.xhr<"u"&&m.xhr.abort();var z=Ce(v,!0),Y;try{for(z.s();!(Y=z.n()).done;){var Q=Y.value;this.emit("canceled",Q)}}catch(G){z.e(G)}finally{z.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",v)}else(m.status===E.ADDED||m.status===E.QUEUED)&&(m.status=E.CANCELED,this.emit("canceled",m),this.options.uploadMultiple&&this.emit("canceledmultiple",[m]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(m){if(typeof m=="function"){for(var v=arguments.length,T=new Array(v>1?v-1:0),_=1;_<v;_++)T[_-1]=arguments[_];return m.apply(this,T)}return m}},{key:"uploadFile",value:function(m){return this.uploadFiles([m])}},{key:"uploadFiles",value:function(m){var v=this;this._transformFiles(m,function(T){if(v.options.chunking){var _=T[0];m[0].upload.chunked=v.options.chunking&&(v.options.forceChunking||_.size>v.options.chunkSize),m[0].upload.totalChunkCount=Math.ceil(_.size/v.options.chunkSize)}if(m[0].upload.chunked){var U=m[0],z=T[0],Y=0;U.upload.chunks=[];var Q=function(){for(var w=0;U.upload.chunks[w]!==void 0;)w++;if(!(w>=U.upload.totalChunkCount)){Y++;var $=w*v.options.chunkSize,j=Math.min($+v.options.chunkSize,z.size),q={name:v._getParamName(0),data:z.webkitSlice?z.webkitSlice($,j):z.slice($,j),filename:U.upload.filename,chunkIndex:w};U.upload.chunks[w]={file:U,index:w,dataBlock:q,status:E.UPLOADING,progress:0,retries:0},v._uploadData(m,[q])}};if(U.upload.finishedChunkUpload=function(Ee,w){var $=!0;Ee.status=E.SUCCESS,Ee.dataBlock=null,Ee.xhr=null;for(var j=0;j<U.upload.totalChunkCount;j++){if(U.upload.chunks[j]===void 0)return Q();U.upload.chunks[j].status!==E.SUCCESS&&($=!1)}$&&v.options.chunksUploaded(U,function(){v._finished(m,w,null)})},v.options.parallelChunkUploads)for(var G=0;G<U.upload.totalChunkCount;G++)Q();else Q()}else{for(var se=[],Ue=0;Ue<m.length;Ue++)se[Ue]={name:v._getParamName(Ue),data:T[Ue],filename:m[Ue].upload.filename};v._uploadData(m,se)}})}},{key:"_getChunk",value:function(m,v){for(var T=0;T<m.upload.totalChunkCount;T++)if(m.upload.chunks[T]!==void 0&&m.upload.chunks[T].xhr===v)return m.upload.chunks[T]}},{key:"_uploadData",value:function(m,v){var T=this,_=new XMLHttpRequest,U=Ce(m,!0),z;try{for(U.s();!(z=U.n()).done;){var Y=z.value;Y.xhr=_}}catch(ze){U.e(ze)}finally{U.f()}m[0].upload.chunked&&(m[0].upload.chunks[v[0].chunkIndex].xhr=_);var Q=this.resolveOption(this.options.method,m),G=this.resolveOption(this.options.url,m);_.open(Q,G,!0);var se=this.resolveOption(this.options.timeout,m);se&&(_.timeout=this.resolveOption(this.options.timeout,m)),_.withCredentials=!!this.options.withCredentials,_.onload=function(ze){T._finishedUploading(m,_,ze)},_.ontimeout=function(){T._handleUploadError(m,_,"Request timedout after ".concat(T.options.timeout/1e3," seconds"))},_.onerror=function(){T._handleUploadError(m,_)};var Ue=_.upload!=null?_.upload:_;Ue.onprogress=function(ze){return T._updateFilesUploadProgress(m,_,ze)};var Ee={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&E.extend(Ee,this.options.headers);for(var w in Ee){var $=Ee[w];$&&_.setRequestHeader(w,$)}var j=new FormData;if(this.options.params){var q=this.options.params;typeof q=="function"&&(q=q.call(this,m,_,m[0].upload.chunked?this._getChunk(m[0],_):null));for(var X in q){var ye=q[X];if(Array.isArray(ye))for(var ae=0;ae<ye.length;ae++)j.append(X,ye[ae]);else j.append(X,ye)}}var De=Ce(m,!0),je;try{for(De.s();!(je=De.n()).done;){var Xe=je.value;this.emit("sending",Xe,_,j)}}catch(ze){De.e(ze)}finally{De.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",m,_,j),this._addFormElementData(j);for(var at=0;at<v.length;at++){var K=v[at];j.append(K.name,K.data,K.filename)}this.submitRequest(_,j,m)}},{key:"_transformFiles",value:function(m,v){for(var T=this,_=[],U=0,z=function(G){T.options.transformFile.call(T,m[G],function(se){_[G]=se,++U===m.length&&v(_)})},Y=0;Y<m.length;Y++)z(Y)}},{key:"_addFormElementData",value:function(m){if(this.element.tagName==="FORM"){var v=Ce(this.element.querySelectorAll("input, textarea, select, button"),!0),T;try{for(v.s();!(T=v.n()).done;){var _=T.value,U=_.getAttribute("name"),z=_.getAttribute("type");if(z&&(z=z.toLowerCase()),!(typeof U>"u"||U===null))if(_.tagName==="SELECT"&&_.hasAttribute("multiple")){var Y=Ce(_.options,!0),Q;try{for(Y.s();!(Q=Y.n()).done;){var G=Q.value;G.selected&&m.append(U,G.value)}}catch(se){Y.e(se)}finally{Y.f()}}else(!z||z!=="checkbox"&&z!=="radio"||_.checked)&&m.append(U,_.value)}}catch(se){v.e(se)}finally{v.f()}}}},{key:"_updateFilesUploadProgress",value:function(m,v,T){if(m[0].upload.chunked){var Y=m[0],Q=this._getChunk(Y,v);T?(Q.progress=100*T.loaded/T.total,Q.total=T.total,Q.bytesSent=T.loaded):(Q.progress=100,Q.bytesSent=Q.total),Y.upload.progress=0,Y.upload.total=0,Y.upload.bytesSent=0;for(var G=0;G<Y.upload.totalChunkCount;G++)Y.upload.chunks[G]&&typeof Y.upload.chunks[G].progress<"u"&&(Y.upload.progress+=Y.upload.chunks[G].progress,Y.upload.total+=Y.upload.chunks[G].total,Y.upload.bytesSent+=Y.upload.chunks[G].bytesSent);Y.upload.progress=Y.upload.progress/Y.upload.totalChunkCount,this.emit("uploadprogress",Y,Y.upload.progress,Y.upload.bytesSent)}else{var _=Ce(m,!0),U;try{for(_.s();!(U=_.n()).done;){var z=U.value;z.upload.total&&z.upload.bytesSent&&z.upload.bytesSent==z.upload.total||(T?(z.upload.progress=100*T.loaded/T.total,z.upload.total=T.total,z.upload.bytesSent=T.loaded):(z.upload.progress=100,z.upload.bytesSent=z.upload.total),this.emit("uploadprogress",z,z.upload.progress,z.upload.bytesSent))}}catch(se){_.e(se)}finally{_.f()}}}},{key:"_finishedUploading",value:function(m,v,T){var _;if(m[0].status!==E.CANCELED&&v.readyState===4){if(v.responseType!=="arraybuffer"&&v.responseType!=="blob"&&(_=v.responseText,v.getResponseHeader("content-type")&&~v.getResponseHeader("content-type").indexOf("application/json")))try{_=JSON.parse(_)}catch(U){T=U,_="Invalid JSON response from server."}this._updateFilesUploadProgress(m,v),200<=v.status&&v.status<300?m[0].upload.chunked?m[0].upload.finishedChunkUpload(this._getChunk(m[0],v),_):this._finished(m,_,T):this._handleUploadError(m,v,_)}}},{key:"_handleUploadError",value:function(m,v,T){if(m[0].status!==E.CANCELED){if(m[0].upload.chunked&&this.options.retryChunks){var _=this._getChunk(m[0],v);if(_.retries++<this.options.retryChunksLimit){this._uploadData(m,[_.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(m,T||this.options.dictResponseError.replace("{{statusCode}}",v.status),v)}}},{key:"submitRequest",value:function(m,v,T){if(m.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}m.send(v)}},{key:"_finished",value:function(m,v,T){var _=Ce(m,!0),U;try{for(_.s();!(U=_.n()).done;){var z=U.value;z.status=E.SUCCESS,this.emit("success",z,v,T),this.emit("complete",z)}}catch(Y){_.e(Y)}finally{_.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",m,v,T),this.emit("completemultiple",m)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(m,v,T){var _=Ce(m,!0),U;try{for(_.s();!(U=_.n()).done;){var z=U.value;z.status=E.ERROR,this.emit("error",z,v,T),this.emit("complete",z)}}catch(Y){_.e(Y)}finally{_.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",m,v,T),this.emit("completemultiple",m)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=J,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(m){for(var v=arguments.length,T=new Array(v>1?v-1:0),_=1;_<v;_++)T[_-1]=arguments[_];for(var U=0,z=T;U<z.length;U++){var Y=z[U];for(var Q in Y){var G=Y[Q];m[Q]=G}}return m}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(m){var v=Math.random()*16|0,T=m==="x"?v:v&3|8;return T.toString(16)})}}]),E}(J);de.initClass(),de.version="5.9.3",de.options={},de.optionsForElement=function(F){if(F.getAttribute("id"))return de.options[wr(F.getAttribute("id"))]},de.instances=[],de.forElement=function(F){if(typeof F=="string"&&(F=document.querySelector(F)),F?.dropzone==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return F.dropzone},de.autoDiscover=!0,de.discover=function(){var F;if(document.querySelectorAll)F=document.querySelectorAll(".dropzone");else{F=[];var R=function(L){return function(){var m=[],v=Ce(L,!0),T;try{for(v.s();!(T=v.n()).done;){var _=T.value;/(^| )dropzone($| )/.test(_.className)?m.push(F.push(_)):m.push(void 0)}}catch(U){v.e(U)}finally{v.f()}return m}()};R(document.getElementsByTagName("div")),R(document.getElementsByTagName("form"))}return function(){var E=[],L=Ce(F,!0),m;try{for(L.s();!(m=L.n()).done;){var v=m.value;de.optionsForElement(v)!==!1?E.push(new de(v)):E.push(void 0)}}catch(T){L.e(T)}finally{L.f()}return E}()},de.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],de.isBrowserSupported=function(){var F=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))F=!1;else{de.blacklistedBrowsers!==void 0&&(de.blockedBrowsers=de.blacklistedBrowsers);var R=Ce(de.blockedBrowsers,!0),E;try{for(R.s();!(E=R.n()).done;){var L=E.value;if(L.test(navigator.userAgent)){F=!1;continue}}}catch(m){R.e(m)}finally{R.f()}}else F=!1;return F},de.dataURItoBlob=function(F){for(var R=atob(F.split(",")[1]),E=F.split(",")[0].split(":")[1].split(";")[0],L=new ArrayBuffer(R.length),m=new Uint8Array(L),v=0,T=R.length,_=0<=T;_?v<=T:v>=T;_?v++:v--)m[v]=R.charCodeAt(v);return new Blob([L],{type:E})};var Vt=function(R,E){return R.filter(function(L){return L!==E}).map(function(L){return L})},wr=function(R){return R.replace(/[\-_](\w)/g,function(E){return E.charAt(1).toUpperCase()})};de.createElement=function(F){var R=document.createElement("div");return R.innerHTML=F,R.childNodes[0]},de.elementInside=function(F,R){if(F===R)return!0;for(;F=F.parentNode;)if(F===R)return!0;return!1},de.getElement=function(F,R){var E;if(typeof F=="string"?E=document.querySelector(F):F.nodeType!=null&&(E=F),E==null)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector or a plain HTML element."));return E},de.getElements=function(F,R){var E,L;if(F instanceof Array){L=[];try{var m=Ce(F,!0),v;try{for(m.s();!(v=m.n()).done;)E=v.value,L.push(this.getElement(E,R))}catch(U){m.e(U)}finally{m.f()}}catch{L=null}}else if(typeof F=="string"){L=[];var T=Ce(document.querySelectorAll(F),!0),_;try{for(T.s();!(_=T.n()).done;)E=_.value,L.push(E)}catch(U){T.e(U)}finally{T.f()}}else F.nodeType!=null&&(L=[F]);if(L==null||!L.length)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return L},de.confirm=function(F,R,E){if(window.confirm(F))return R();if(E!=null)return E()},de.isValidFile=function(F,R){if(!R)return!0;R=R.split(",");var E=F.type,L=E.replace(/\/.*$/,""),m=Ce(R,!0),v;try{for(m.s();!(v=m.n()).done;){var T=v.value;if(T=T.trim(),T.charAt(0)==="."){if(F.name.toLowerCase().indexOf(T.toLowerCase(),F.name.length-T.length)!==-1)return!0}else if(/\/\*$/.test(T)){if(L===T.replace(/\/.*$/,""))return!0}else if(E===T)return!0}}catch(_){m.e(_)}finally{m.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(F){return this.each(function(){return new de(this,F)})}),de.ADDED="added",de.QUEUED="queued",de.ACCEPTED=de.QUEUED,de.UPLOADING="uploading",de.PROCESSING=de.UPLOADING,de.CANCELED="canceled",de.ERROR="error",de.SUCCESS="success";var Gt=function(R){var E=R.naturalWidth,L=R.naturalHeight,m=document.createElement("canvas");m.width=1,m.height=L;var v=m.getContext("2d");v.drawImage(R,0,0);for(var T=v.getImageData(1,0,1,L),_=T.data,U=0,z=L,Y=L;Y>U;){var Q=_[(Y-1)*4+3];Q===0?z=Y:U=Y,Y=z+U>>1}var G=Y/L;return G===0?1:G},xt=function(R,E,L,m,v,T,_,U,z,Y){var Q=Gt(E);return R.drawImage(E,L,m,v,T,_,U,z,Y/Q)},Er=function(){function F(){Xt(this,F)}return Ge(F,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(E){for(var L="",m=void 0,v=void 0,T="",_=void 0,U=void 0,z=void 0,Y="",Q=0;m=E[Q++],v=E[Q++],T=E[Q++],_=m>>2,U=(m&3)<<4|v>>4,z=(v&15)<<2|T>>6,Y=T&63,isNaN(v)?z=Y=64:isNaN(T)&&(Y=64),L=L+this.KEY_STR.charAt(_)+this.KEY_STR.charAt(U)+this.KEY_STR.charAt(z)+this.KEY_STR.charAt(Y),m=v=T="",_=U=z=Y="",Q<E.length;);return L}},{key:"restore",value:function(E,L){if(!E.match("data:image/jpeg;base64,"))return L;var m=this.decode64(E.replace("data:image/jpeg;base64,","")),v=this.slice2Segments(m),T=this.exifManipulation(L,v);return"data:image/jpeg;base64,".concat(this.encode64(T))}},{key:"exifManipulation",value:function(E,L){var m=this.getExifArray(L),v=this.insertExif(E,m),T=new Uint8Array(v);return T}},{key:"getExifArray",value:function(E){for(var L=void 0,m=0;m<E.length;){if(L=E[m],L[0]===255&L[1]===225)return L;m++}return[]}},{key:"insertExif",value:function(E,L){var m=E.replace("data:image/jpeg;base64,",""),v=this.decode64(m),T=v.indexOf(255,3),_=v.slice(0,T),U=v.slice(T),z=_;return z=z.concat(L),z=z.concat(U),z}},{key:"slice2Segments",value:function(E){for(var L=0,m=[];;){var v;if(E[L]===255&E[L+1]===218)break;if(E[L]===255&E[L+1]===216)L+=2;else{v=E[L+2]*256+E[L+3];var T=L+v+2,_=E.slice(L,T);m.push(_),L=T}if(L>E.length)break}return m}},{key:"decode64",value:function(E){var L="",m=void 0,v=void 0,T="",_=void 0,U=void 0,z=void 0,Y="",Q=0,G=[],se=/[^A-Za-z0-9\+\/\=]/g;for(se.exec(E)&&console.warn(`There were invalid base64 characters in the input text.
+var Ld=Object.create;var Wr=Object.defineProperty;var Fd=Object.getOwnPropertyDescriptor;var Rd=Object.getOwnPropertyNames;var Od=Object.getPrototypeOf,Pd=Object.prototype.hasOwnProperty;var Md=(r,e)=>()=>(r&&(e=r(r=0)),e);var re=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),_d=(r,e)=>{for(var t in e)Wr(r,t,{get:e[t],enumerable:!0})},Qo=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Rd(e))!Pd.call(r,o)&&o!==t&&Wr(r,o,{get:()=>e[o],enumerable:!(n=Fd(e,o))||n.enumerable});return r};var Yr=(r,e,t)=>(t=r!=null?Ld(Od(r)):{},Qo(e||!r||!r.__esModule?Wr(t,"default",{value:r,enumerable:!0}):t,r)),Nd=r=>Qo(Wr({},"__esModule",{value:!0}),r);var Zs=re((yn,Ei)=>{(function(e,t){if(typeof yn=="object"&&typeof Ei=="object")Ei.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var n=t();for(var o in n)(typeof yn=="object"?yn:e)[o]=n[o]}})(self,function(){return function(){var r={3099:function(o){o.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},6077:function(o,s,i){var a=i(111);o.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},1223:function(o,s,i){var a=i(5112),l=i(30),u=i(3070),c=a("unscopables"),f=Array.prototype;f[c]==null&&u.f(f,c,{configurable:!0,value:l(null)}),o.exports=function(h){f[c][h]=!0}},1530:function(o,s,i){"use strict";var a=i(8710).charAt;o.exports=function(l,u,c){return u+(c?a(l,u).length:1)}},5787:function(o){o.exports=function(s,i,a){if(!(s instanceof i))throw TypeError("Incorrect "+(a?a+" ":"")+"invocation");return s}},9670:function(o,s,i){var a=i(111);o.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}},4019:function(o){o.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(o,s,i){"use strict";var a=i(4019),l=i(9781),u=i(7854),c=i(111),f=i(6656),h=i(648),d=i(8880),p=i(1320),m=i(3070).f,v=i(9518),b=i(7674),x=i(5112),C=i(9711),S=u.Int8Array,M=S&&S.prototype,A=u.Uint8ClampedArray,O=A&&A.prototype,k=S&&v(S),D=M&&v(M),I=Object.prototype,P=I.isPrototypeOf,N=x("toStringTag"),B=C("TYPED_ARRAY_TAG"),H=a&&!!b&&h(u.opera)!=="Opera",Z=!1,W,te={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ne={BigInt64Array:8,BigUint64Array:8},be=function(Se){if(!c(Se))return!1;var ke=h(Se);return ke==="DataView"||f(te,ke)||f(ne,ke)},Ae=function(he){if(!c(he))return!1;var Se=h(he);return f(te,Se)||f(ne,Se)},xe=function(he){if(Ae(he))return he;throw TypeError("Target is not a typed array")},Fe=function(he){if(b){if(P.call(k,he))return he}else for(var Se in te)if(f(te,W)){var ke=u[Se];if(ke&&(he===ke||P.call(ke,he)))return he}throw TypeError("Target is not a typed array constructor")},Re=function(he,Se,ke){if(!!l){if(ke)for(var Ie in te){var Oe=u[Ie];Oe&&f(Oe.prototype,he)&&delete Oe.prototype[he]}(!D[he]||ke)&&p(D,he,ke?Se:H&&M[he]||Se)}},Ne=function(he,Se,ke){var Ie,Oe;if(!!l){if(b){if(ke)for(Ie in te)Oe=u[Ie],Oe&&f(Oe,he)&&delete Oe[he];if(!k[he]||ke)try{return p(k,he,ke?Se:H&&S[he]||Se)}catch{}else return}for(Ie in te)Oe=u[Ie],Oe&&(!Oe[he]||ke)&&p(Oe,he,Se)}};for(W in te)u[W]||(H=!1);if((!H||typeof k!="function"||k===Function.prototype)&&(k=function(){throw TypeError("Incorrect invocation")},H))for(W in te)u[W]&&b(u[W],k);if((!H||!D||D===I)&&(D=k.prototype,H))for(W in te)u[W]&&b(u[W].prototype,D);if(H&&v(O)!==D&&b(O,D),l&&!f(D,N)){Z=!0,m(D,N,{get:function(){return c(this)?this[B]:void 0}});for(W in te)u[W]&&d(u[W],B,W)}o.exports={NATIVE_ARRAY_BUFFER_VIEWS:H,TYPED_ARRAY_TAG:Z&&B,aTypedArray:xe,aTypedArrayConstructor:Fe,exportTypedArrayMethod:Re,exportTypedArrayStaticMethod:Ne,isView:be,isTypedArray:Ae,TypedArray:k,TypedArrayPrototype:D}},3331:function(o,s,i){"use strict";var a=i(7854),l=i(9781),u=i(4019),c=i(8880),f=i(2248),h=i(7293),d=i(5787),p=i(9958),m=i(7466),v=i(7067),b=i(1179),x=i(9518),C=i(7674),S=i(8006).f,M=i(3070).f,A=i(1285),O=i(8003),k=i(9909),D=k.get,I=k.set,P="ArrayBuffer",N="DataView",B="prototype",H="Wrong length",Z="Wrong index",W=a[P],te=W,ne=a[N],be=ne&&ne[B],Ae=Object.prototype,xe=a.RangeError,Fe=b.pack,Re=b.unpack,Ne=function(J){return[J&255]},he=function(J){return[J&255,J>>8&255]},Se=function(J){return[J&255,J>>8&255,J>>16&255,J>>24&255]},ke=function(J){return J[3]<<24|J[2]<<16|J[1]<<8|J[0]},Ie=function(J){return Fe(J,23,4)},Oe=function(J){return Fe(J,52,8)},ot=function(J,V){M(J[B],V,{get:function(){return D(this)[V]}})},Ke=function(J,V,ie,ce){var $e=v(ie),Ge=D(J);if($e+V>Ge.byteLength)throw xe(Z);var st=D(Ge.buffer).bytes,et=$e+Ge.byteOffset,Te=st.slice(et,et+V);return ce?Te:Te.reverse()},Qe=function(J,V,ie,ce,$e,Ge){var st=v(ie),et=D(J);if(st+V>et.byteLength)throw xe(Z);for(var Te=D(et.buffer).bytes,Ce=st+et.byteOffset,Nt=ce(+$e),dt=0;dt<V;dt++)Te[Ce+dt]=Nt[Ge?dt:V-dt-1]};if(!u)te=function(V){d(this,te,P);var ie=v(V);I(this,{bytes:A.call(new Array(ie),0),byteLength:ie}),l||(this.byteLength=ie)},ne=function(V,ie,ce){d(this,ne,N),d(V,te,N);var $e=D(V).byteLength,Ge=p(ie);if(Ge<0||Ge>$e)throw xe("Wrong offset");if(ce=ce===void 0?$e-Ge:m(ce),Ge+ce>$e)throw xe(H);I(this,{buffer:V,byteLength:ce,byteOffset:Ge}),l||(this.buffer=V,this.byteLength=ce,this.byteOffset=Ge)},l&&(ot(te,"byteLength"),ot(ne,"buffer"),ot(ne,"byteLength"),ot(ne,"byteOffset")),f(ne[B],{getInt8:function(V){return Ke(this,1,V)[0]<<24>>24},getUint8:function(V){return Ke(this,1,V)[0]},getInt16:function(V){var ie=Ke(this,2,V,arguments.length>1?arguments[1]:void 0);return(ie[1]<<8|ie[0])<<16>>16},getUint16:function(V){var ie=Ke(this,2,V,arguments.length>1?arguments[1]:void 0);return ie[1]<<8|ie[0]},getInt32:function(V){return ke(Ke(this,4,V,arguments.length>1?arguments[1]:void 0))},getUint32:function(V){return ke(Ke(this,4,V,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(V){return Re(Ke(this,4,V,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(V){return Re(Ke(this,8,V,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(V,ie){Qe(this,1,V,Ne,ie)},setUint8:function(V,ie){Qe(this,1,V,Ne,ie)},setInt16:function(V,ie){Qe(this,2,V,he,ie,arguments.length>2?arguments[2]:void 0)},setUint16:function(V,ie){Qe(this,2,V,he,ie,arguments.length>2?arguments[2]:void 0)},setInt32:function(V,ie){Qe(this,4,V,Se,ie,arguments.length>2?arguments[2]:void 0)},setUint32:function(V,ie){Qe(this,4,V,Se,ie,arguments.length>2?arguments[2]:void 0)},setFloat32:function(V,ie){Qe(this,4,V,Ie,ie,arguments.length>2?arguments[2]:void 0)},setFloat64:function(V,ie){Qe(this,8,V,Oe,ie,arguments.length>2?arguments[2]:void 0)}});else{if(!h(function(){W(1)})||!h(function(){new W(-1)})||h(function(){return new W,new W(1.5),new W(NaN),W.name!=P})){te=function(V){return d(this,te),new W(v(V))};for(var me=te[B]=W[B],oe=S(W),ue=0,fe;oe.length>ue;)(fe=oe[ue++])in te||c(te,fe,W[fe]);me.constructor=te}C&&x(be)!==Ae&&C(be,Ae);var le=new ne(new te(2)),pe=be.setInt8;le.setInt8(0,2147483648),le.setInt8(1,2147483649),(le.getInt8(0)||!le.getInt8(1))&&f(be,{setInt8:function(V,ie){pe.call(this,V,ie<<24>>24)},setUint8:function(V,ie){pe.call(this,V,ie<<24>>24)}},{unsafe:!0})}O(te,P),O(ne,N),o.exports={ArrayBuffer:te,DataView:ne}},1048:function(o,s,i){"use strict";var a=i(7908),l=i(1400),u=i(7466),c=Math.min;o.exports=[].copyWithin||function(h,d){var p=a(this),m=u(p.length),v=l(h,m),b=l(d,m),x=arguments.length>2?arguments[2]:void 0,C=c((x===void 0?m:l(x,m))-b,m-v),S=1;for(b<v&&v<b+C&&(S=-1,b+=C-1,v+=C-1);C-- >0;)b in p?p[v]=p[b]:delete p[v],v+=S,b+=S;return p}},1285:function(o,s,i){"use strict";var a=i(7908),l=i(1400),u=i(7466);o.exports=function(f){for(var h=a(this),d=u(h.length),p=arguments.length,m=l(p>1?arguments[1]:void 0,d),v=p>2?arguments[2]:void 0,b=v===void 0?d:l(v,d);b>m;)h[m++]=f;return h}},8533:function(o,s,i){"use strict";var a=i(2092).forEach,l=i(9341),u=l("forEach");o.exports=u?[].forEach:function(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}},8457:function(o,s,i){"use strict";var a=i(9974),l=i(7908),u=i(3411),c=i(7659),f=i(7466),h=i(6135),d=i(1246);o.exports=function(m){var v=l(m),b=typeof this=="function"?this:Array,x=arguments.length,C=x>1?arguments[1]:void 0,S=C!==void 0,M=d(v),A=0,O,k,D,I,P,N;if(S&&(C=a(C,x>2?arguments[2]:void 0,2)),M!=null&&!(b==Array&&c(M)))for(I=M.call(v),P=I.next,k=new b;!(D=P.call(I)).done;A++)N=S?u(I,C,[D.value,A],!0):D.value,h(k,A,N);else for(O=f(v.length),k=new b(O);O>A;A++)N=S?C(v[A],A):v[A],h(k,A,N);return k.length=A,k}},1318:function(o,s,i){var a=i(5656),l=i(7466),u=i(1400),c=function(f){return function(h,d,p){var m=a(h),v=l(m.length),b=u(p,v),x;if(f&&d!=d){for(;v>b;)if(x=m[b++],x!=x)return!0}else for(;v>b;b++)if((f||b in m)&&m[b]===d)return f||b||0;return!f&&-1}};o.exports={includes:c(!0),indexOf:c(!1)}},2092:function(o,s,i){var a=i(9974),l=i(8361),u=i(7908),c=i(7466),f=i(5417),h=[].push,d=function(p){var m=p==1,v=p==2,b=p==3,x=p==4,C=p==6,S=p==7,M=p==5||C;return function(A,O,k,D){for(var I=u(A),P=l(I),N=a(O,k,3),B=c(P.length),H=0,Z=D||f,W=m?Z(A,B):v||S?Z(A,0):void 0,te,ne;B>H;H++)if((M||H in P)&&(te=P[H],ne=N(te,H,I),p))if(m)W[H]=ne;else if(ne)switch(p){case 3:return!0;case 5:return te;case 6:return H;case 2:h.call(W,te)}else switch(p){case 4:return!1;case 7:h.call(W,te)}return C?-1:b||x?x:W}};o.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterOut:d(7)}},6583:function(o,s,i){"use strict";var a=i(5656),l=i(9958),u=i(7466),c=i(9341),f=Math.min,h=[].lastIndexOf,d=!!h&&1/[1].lastIndexOf(1,-0)<0,p=c("lastIndexOf"),m=d||!p;o.exports=m?function(b){if(d)return h.apply(this,arguments)||0;var x=a(this),C=u(x.length),S=C-1;for(arguments.length>1&&(S=f(S,l(arguments[1]))),S<0&&(S=C+S);S>=0;S--)if(S in x&&x[S]===b)return S||0;return-1}:h},1194:function(o,s,i){var a=i(7293),l=i(5112),u=i(7392),c=l("species");o.exports=function(f){return u>=51||!a(function(){var h=[],d=h.constructor={};return d[c]=function(){return{foo:1}},h[f](Boolean).foo!==1})}},9341:function(o,s,i){"use strict";var a=i(7293);o.exports=function(l,u){var c=[][l];return!!c&&a(function(){c.call(null,u||function(){throw 1},1)})}},3671:function(o,s,i){var a=i(3099),l=i(7908),u=i(8361),c=i(7466),f=function(h){return function(d,p,m,v){a(p);var b=l(d),x=u(b),C=c(b.length),S=h?C-1:0,M=h?-1:1;if(m<2)for(;;){if(S in x){v=x[S],S+=M;break}if(S+=M,h?S<0:C<=S)throw TypeError("Reduce of empty array with no initial value")}for(;h?S>=0:C>S;S+=M)S in x&&(v=p(v,x[S],S,b));return v}};o.exports={left:f(!1),right:f(!0)}},5417:function(o,s,i){var a=i(111),l=i(3157),u=i(5112),c=u("species");o.exports=function(f,h){var d;return l(f)&&(d=f.constructor,typeof d=="function"&&(d===Array||l(d.prototype))?d=void 0:a(d)&&(d=d[c],d===null&&(d=void 0))),new(d===void 0?Array:d)(h===0?0:h)}},3411:function(o,s,i){var a=i(9670),l=i(9212);o.exports=function(u,c,f,h){try{return h?c(a(f)[0],f[1]):c(f)}catch(d){throw l(u),d}}},7072:function(o,s,i){var a=i(5112),l=a("iterator"),u=!1;try{var c=0,f={next:function(){return{done:!!c++}},return:function(){u=!0}};f[l]=function(){return this},Array.from(f,function(){throw 2})}catch{}o.exports=function(h,d){if(!d&&!u)return!1;var p=!1;try{var m={};m[l]=function(){return{next:function(){return{done:p=!0}}}},h(m)}catch{}return p}},4326:function(o){var s={}.toString;o.exports=function(i){return s.call(i).slice(8,-1)}},648:function(o,s,i){var a=i(1694),l=i(4326),u=i(5112),c=u("toStringTag"),f=l(function(){return arguments}())=="Arguments",h=function(d,p){try{return d[p]}catch{}};o.exports=a?l:function(d){var p,m,v;return d===void 0?"Undefined":d===null?"Null":typeof(m=h(p=Object(d),c))=="string"?m:f?l(p):(v=l(p))=="Object"&&typeof p.callee=="function"?"Arguments":v}},9920:function(o,s,i){var a=i(6656),l=i(3887),u=i(1236),c=i(3070);o.exports=function(f,h){for(var d=l(h),p=c.f,m=u.f,v=0;v<d.length;v++){var b=d[v];a(f,b)||p(f,b,m(h,b))}}},8544:function(o,s,i){var a=i(7293);o.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},4994:function(o,s,i){"use strict";var a=i(3383).IteratorPrototype,l=i(30),u=i(9114),c=i(8003),f=i(7497),h=function(){return this};o.exports=function(d,p,m){var v=p+" Iterator";return d.prototype=l(a,{next:u(1,m)}),c(d,v,!1,!0),f[v]=h,d}},8880:function(o,s,i){var a=i(9781),l=i(3070),u=i(9114);o.exports=a?function(c,f,h){return l.f(c,f,u(1,h))}:function(c,f,h){return c[f]=h,c}},9114:function(o){o.exports=function(s,i){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:i}}},6135:function(o,s,i){"use strict";var a=i(7593),l=i(3070),u=i(9114);o.exports=function(c,f,h){var d=a(f);d in c?l.f(c,d,u(0,h)):c[d]=h}},654:function(o,s,i){"use strict";var a=i(2109),l=i(4994),u=i(9518),c=i(7674),f=i(8003),h=i(8880),d=i(1320),p=i(5112),m=i(1913),v=i(7497),b=i(3383),x=b.IteratorPrototype,C=b.BUGGY_SAFARI_ITERATORS,S=p("iterator"),M="keys",A="values",O="entries",k=function(){return this};o.exports=function(D,I,P,N,B,H,Z){l(P,I,N);var W=function(Se){if(Se===B&&xe)return xe;if(!C&&Se in be)return be[Se];switch(Se){case M:return function(){return new P(this,Se)};case A:return function(){return new P(this,Se)};case O:return function(){return new P(this,Se)}}return function(){return new P(this)}},te=I+" Iterator",ne=!1,be=D.prototype,Ae=be[S]||be["@@iterator"]||B&&be[B],xe=!C&&Ae||W(B),Fe=I=="Array"&&be.entries||Ae,Re,Ne,he;if(Fe&&(Re=u(Fe.call(new D)),x!==Object.prototype&&Re.next&&(!m&&u(Re)!==x&&(c?c(Re,x):typeof Re[S]!="function"&&h(Re,S,k)),f(Re,te,!0,!0),m&&(v[te]=k))),B==A&&Ae&&Ae.name!==A&&(ne=!0,xe=function(){return Ae.call(this)}),(!m||Z)&&be[S]!==xe&&h(be,S,xe),v[I]=xe,B)if(Ne={values:W(A),keys:H?xe:W(M),entries:W(O)},Z)for(he in Ne)(C||ne||!(he in be))&&d(be,he,Ne[he]);else a({target:I,proto:!0,forced:C||ne},Ne);return Ne}},9781:function(o,s,i){var a=i(7293);o.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(o,s,i){var a=i(7854),l=i(111),u=a.document,c=l(u)&&l(u.createElement);o.exports=function(f){return c?u.createElement(f):{}}},8324:function(o){o.exports={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}},8113:function(o,s,i){var a=i(5005);o.exports=a("navigator","userAgent")||""},7392:function(o,s,i){var a=i(7854),l=i(8113),u=a.process,c=u&&u.versions,f=c&&c.v8,h,d;f?(h=f.split("."),d=h[0]+h[1]):l&&(h=l.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=l.match(/Chrome\/(\d+)/),h&&(d=h[1]))),o.exports=d&&+d},748:function(o){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(o,s,i){var a=i(7854),l=i(1236).f,u=i(8880),c=i(1320),f=i(3505),h=i(9920),d=i(4705);o.exports=function(p,m){var v=p.target,b=p.global,x=p.stat,C,S,M,A,O,k;if(b?S=a:x?S=a[v]||f(v,{}):S=(a[v]||{}).prototype,S)for(M in m){if(O=m[M],p.noTargetGet?(k=l(S,M),A=k&&k.value):A=S[M],C=d(b?M:v+(x?".":"#")+M,p.forced),!C&&A!==void 0){if(typeof O==typeof A)continue;h(O,A)}(p.sham||A&&A.sham)&&u(O,"sham",!0),c(S,M,O,p)}}},7293:function(o){o.exports=function(s){try{return!!s()}catch{return!0}}},7007:function(o,s,i){"use strict";i(4916);var a=i(1320),l=i(7293),u=i(5112),c=i(2261),f=i(8880),h=u("species"),d=!l(function(){var x=/./;return x.exec=function(){var C=[];return C.groups={a:"7"},C},"".replace(x,"$<a>")!=="7"}),p=function(){return"a".replace(/./,"$0")==="$0"}(),m=u("replace"),v=function(){return/./[m]?/./[m]("a","$0")==="":!1}(),b=!l(function(){var x=/(?:)/,C=x.exec;x.exec=function(){return C.apply(this,arguments)};var S="ab".split(x);return S.length!==2||S[0]!=="a"||S[1]!=="b"});o.exports=function(x,C,S,M){var A=u(x),O=!l(function(){var B={};return B[A]=function(){return 7},""[x](B)!=7}),k=O&&!l(function(){var B=!1,H=/a/;return x==="split"&&(H={},H.constructor={},H.constructor[h]=function(){return H},H.flags="",H[A]=/./[A]),H.exec=function(){return B=!0,null},H[A](""),!B});if(!O||!k||x==="replace"&&!(d&&p&&!v)||x==="split"&&!b){var D=/./[A],I=S(A,""[x],function(B,H,Z,W,te){return H.exec===c?O&&!te?{done:!0,value:D.call(H,Z,W)}:{done:!0,value:B.call(Z,H,W)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),P=I[0],N=I[1];a(String.prototype,x,P),a(RegExp.prototype,A,C==2?function(B,H){return N.call(B,this,H)}:function(B){return N.call(B,this)})}M&&f(RegExp.prototype[A],"sham",!0)}},9974:function(o,s,i){var a=i(3099);o.exports=function(l,u,c){if(a(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(f){return l.call(u,f)};case 2:return function(f,h){return l.call(u,f,h)};case 3:return function(f,h,d){return l.call(u,f,h,d)}}return function(){return l.apply(u,arguments)}}},5005:function(o,s,i){var a=i(857),l=i(7854),u=function(c){return typeof c=="function"?c:void 0};o.exports=function(c,f){return arguments.length<2?u(a[c])||u(l[c]):a[c]&&a[c][f]||l[c]&&l[c][f]}},1246:function(o,s,i){var a=i(648),l=i(7497),u=i(5112),c=u("iterator");o.exports=function(f){if(f!=null)return f[c]||f["@@iterator"]||l[a(f)]}},8554:function(o,s,i){var a=i(9670),l=i(1246);o.exports=function(u){var c=l(u);if(typeof c!="function")throw TypeError(String(u)+" is not iterable");return a(c.call(u))}},647:function(o,s,i){var a=i(7908),l=Math.floor,u="".replace,c=/\$([$&'`]|\d\d?|<[^>]*>)/g,f=/\$([$&'`]|\d\d?)/g;o.exports=function(h,d,p,m,v,b){var x=p+h.length,C=m.length,S=f;return v!==void 0&&(v=a(v),S=c),u.call(b,S,function(M,A){var O;switch(A.charAt(0)){case"$":return"$";case"&":return h;case"`":return d.slice(0,p);case"'":return d.slice(x);case"<":O=v[A.slice(1,-1)];break;default:var k=+A;if(k===0)return M;if(k>C){var D=l(k/10);return D===0?M:D<=C?m[D-1]===void 0?A.charAt(1):m[D-1]+A.charAt(1):M}O=m[k-1]}return O===void 0?"":O})}},7854:function(o,s,i){var a=function(l){return l&&l.Math==Math&&l};o.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof i.g=="object"&&i.g)||function(){return this}()||Function("return this")()},6656:function(o){var s={}.hasOwnProperty;o.exports=function(i,a){return s.call(i,a)}},3501:function(o){o.exports={}},490:function(o,s,i){var a=i(5005);o.exports=a("document","documentElement")},4664:function(o,s,i){var a=i(9781),l=i(7293),u=i(317);o.exports=!a&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(o){var s=Math.abs,i=Math.pow,a=Math.floor,l=Math.log,u=Math.LN2,c=function(h,d,p){var m=new Array(p),v=p*8-d-1,b=(1<<v)-1,x=b>>1,C=d===23?i(2,-24)-i(2,-77):0,S=h<0||h===0&&1/h<0?1:0,M=0,A,O,k;for(h=s(h),h!=h||h===1/0?(O=h!=h?1:0,A=b):(A=a(l(h)/u),h*(k=i(2,-A))<1&&(A--,k*=2),A+x>=1?h+=C/k:h+=C*i(2,1-x),h*k>=2&&(A++,k/=2),A+x>=b?(O=0,A=b):A+x>=1?(O=(h*k-1)*i(2,d),A=A+x):(O=h*i(2,x-1)*i(2,d),A=0));d>=8;m[M++]=O&255,O/=256,d-=8);for(A=A<<d|O,v+=d;v>0;m[M++]=A&255,A/=256,v-=8);return m[--M]|=S*128,m},f=function(h,d){var p=h.length,m=p*8-d-1,v=(1<<m)-1,b=v>>1,x=m-7,C=p-1,S=h[C--],M=S&127,A;for(S>>=7;x>0;M=M*256+h[C],C--,x-=8);for(A=M&(1<<-x)-1,M>>=-x,x+=d;x>0;A=A*256+h[C],C--,x-=8);if(M===0)M=1-b;else{if(M===v)return A?NaN:S?-1/0:1/0;A=A+i(2,d),M=M-b}return(S?-1:1)*A*i(2,M-d)};o.exports={pack:c,unpack:f}},8361:function(o,s,i){var a=i(7293),l=i(4326),u="".split;o.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object},9587:function(o,s,i){var a=i(111),l=i(7674);o.exports=function(u,c,f){var h,d;return l&&typeof(h=c.constructor)=="function"&&h!==f&&a(d=h.prototype)&&d!==f.prototype&&l(u,d),u}},2788:function(o,s,i){var a=i(5465),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return l.call(u)}),o.exports=a.inspectSource},9909:function(o,s,i){var a=i(8536),l=i(7854),u=i(111),c=i(8880),f=i(6656),h=i(5465),d=i(6200),p=i(3501),m=l.WeakMap,v,b,x,C=function(I){return x(I)?b(I):v(I,{})},S=function(I){return function(P){var N;if(!u(P)||(N=b(P)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return N}};if(a){var M=h.state||(h.state=new m),A=M.get,O=M.has,k=M.set;v=function(I,P){return P.facade=I,k.call(M,I,P),P},b=function(I){return A.call(M,I)||{}},x=function(I){return O.call(M,I)}}else{var D=d("state");p[D]=!0,v=function(I,P){return P.facade=I,c(I,D,P),P},b=function(I){return f(I,D)?I[D]:{}},x=function(I){return f(I,D)}}o.exports={set:v,get:b,has:x,enforce:C,getterFor:S}},7659:function(o,s,i){var a=i(5112),l=i(7497),u=a("iterator"),c=Array.prototype;o.exports=function(f){return f!==void 0&&(l.Array===f||c[u]===f)}},3157:function(o,s,i){var a=i(4326);o.exports=Array.isArray||function(u){return a(u)=="Array"}},4705:function(o,s,i){var a=i(7293),l=/#|\.prototype\./,u=function(p,m){var v=f[c(p)];return v==d?!0:v==h?!1:typeof m=="function"?a(m):!!m},c=u.normalize=function(p){return String(p).replace(l,".").toLowerCase()},f=u.data={},h=u.NATIVE="N",d=u.POLYFILL="P";o.exports=u},111:function(o){o.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},1913:function(o){o.exports=!1},7850:function(o,s,i){var a=i(111),l=i(4326),u=i(5112),c=u("match");o.exports=function(f){var h;return a(f)&&((h=f[c])!==void 0?!!h:l(f)=="RegExp")}},9212:function(o,s,i){var a=i(9670);o.exports=function(l){var u=l.return;if(u!==void 0)return a(u.call(l)).value}},3383:function(o,s,i){"use strict";var a=i(7293),l=i(9518),u=i(8880),c=i(6656),f=i(5112),h=i(1913),d=f("iterator"),p=!1,m=function(){return this},v,b,x;[].keys&&(x=[].keys(),"next"in x?(b=l(l(x)),b!==Object.prototype&&(v=b)):p=!0);var C=v==null||a(function(){var S={};return v[d].call(S)!==S});C&&(v={}),(!h||C)&&!c(v,d)&&u(v,d,m),o.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:p}},7497:function(o){o.exports={}},133:function(o,s,i){var a=i(7293);o.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},590:function(o,s,i){var a=i(7293),l=i(5112),u=i(1913),c=l("iterator");o.exports=!a(function(){var f=new URL("b?a=1&b=2&c=3","http://a"),h=f.searchParams,d="";return f.pathname="c%20d",h.forEach(function(p,m){h.delete("b"),d+=m+p}),u&&!f.toJSON||!h.sort||f.href!=="http://a/c%20d?a=1&c=3"||h.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!h[c]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||d!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(o,s,i){var a=i(7854),l=i(2788),u=a.WeakMap;o.exports=typeof u=="function"&&/native code/.test(l(u))},1574:function(o,s,i){"use strict";var a=i(9781),l=i(7293),u=i(1956),c=i(5181),f=i(5296),h=i(7908),d=i(8361),p=Object.assign,m=Object.defineProperty;o.exports=!p||l(function(){if(a&&p({b:1},p(m({},"a",{enumerable:!0,get:function(){m(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},b={},x=Symbol(),C="abcdefghijklmnopqrst";return v[x]=7,C.split("").forEach(function(S){b[S]=S}),p({},v)[x]!=7||u(p({},b)).join("")!=C})?function(b,x){for(var C=h(b),S=arguments.length,M=1,A=c.f,O=f.f;S>M;)for(var k=d(arguments[M++]),D=A?u(k).concat(A(k)):u(k),I=D.length,P=0,N;I>P;)N=D[P++],(!a||O.call(k,N))&&(C[N]=k[N]);return C}:p},30:function(o,s,i){var a=i(9670),l=i(6048),u=i(748),c=i(3501),f=i(490),h=i(317),d=i(6200),p=">",m="<",v="prototype",b="script",x=d("IE_PROTO"),C=function(){},S=function(D){return m+b+p+D+m+"/"+b+p},M=function(D){D.write(S("")),D.close();var I=D.parentWindow.Object;return D=null,I},A=function(){var D=h("iframe"),I="java"+b+":",P;return D.style.display="none",f.appendChild(D),D.src=String(I),P=D.contentWindow.document,P.open(),P.write(S("document.F=Object")),P.close(),P.F},O,k=function(){try{O=document.domain&&new ActiveXObject("htmlfile")}catch{}k=O?M(O):A();for(var D=u.length;D--;)delete k[v][u[D]];return k()};c[x]=!0,o.exports=Object.create||function(I,P){var N;return I!==null?(C[v]=a(I),N=new C,C[v]=null,N[x]=I):N=k(),P===void 0?N:l(N,P)}},6048:function(o,s,i){var a=i(9781),l=i(3070),u=i(9670),c=i(1956);o.exports=a?Object.defineProperties:function(h,d){u(h);for(var p=c(d),m=p.length,v=0,b;m>v;)l.f(h,b=p[v++],d[b]);return h}},3070:function(o,s,i){var a=i(9781),l=i(4664),u=i(9670),c=i(7593),f=Object.defineProperty;s.f=a?f:function(d,p,m){if(u(d),p=c(p,!0),u(m),l)try{return f(d,p,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(d[p]=m.value),d}},1236:function(o,s,i){var a=i(9781),l=i(5296),u=i(9114),c=i(5656),f=i(7593),h=i(6656),d=i(4664),p=Object.getOwnPropertyDescriptor;s.f=a?p:function(v,b){if(v=c(v),b=f(b,!0),d)try{return p(v,b)}catch{}if(h(v,b))return u(!l.f.call(v,b),v[b])}},8006:function(o,s,i){var a=i(6324),l=i(748),u=l.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(f){return a(f,u)}},5181:function(o,s){s.f=Object.getOwnPropertySymbols},9518:function(o,s,i){var a=i(6656),l=i(7908),u=i(6200),c=i(8544),f=u("IE_PROTO"),h=Object.prototype;o.exports=c?Object.getPrototypeOf:function(d){return d=l(d),a(d,f)?d[f]:typeof d.constructor=="function"&&d instanceof d.constructor?d.constructor.prototype:d instanceof Object?h:null}},6324:function(o,s,i){var a=i(6656),l=i(5656),u=i(1318).indexOf,c=i(3501);o.exports=function(f,h){var d=l(f),p=0,m=[],v;for(v in d)!a(c,v)&&a(d,v)&&m.push(v);for(;h.length>p;)a(d,v=h[p++])&&(~u(m,v)||m.push(v));return m}},1956:function(o,s,i){var a=i(6324),l=i(748);o.exports=Object.keys||function(c){return a(c,l)}},5296:function(o,s){"use strict";var i={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l=a&&!i.call({1:2},1);s.f=l?function(c){var f=a(this,c);return!!f&&f.enumerable}:i},7674:function(o,s,i){var a=i(9670),l=i(6077);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,c={},f;try{f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,f.call(c,[]),u=c instanceof Array}catch{}return function(d,p){return a(d),l(p),u?f.call(d,p):d.__proto__=p,d}}():void 0)},288:function(o,s,i){"use strict";var a=i(1694),l=i(648);o.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}},3887:function(o,s,i){var a=i(5005),l=i(8006),u=i(5181),c=i(9670);o.exports=a("Reflect","ownKeys")||function(h){var d=l.f(c(h)),p=u.f;return p?d.concat(p(h)):d}},857:function(o,s,i){var a=i(7854);o.exports=a},2248:function(o,s,i){var a=i(1320);o.exports=function(l,u,c){for(var f in u)a(l,f,u[f],c);return l}},1320:function(o,s,i){var a=i(7854),l=i(8880),u=i(6656),c=i(3505),f=i(2788),h=i(9909),d=h.get,p=h.enforce,m=String(String).split("String");(o.exports=function(v,b,x,C){var S=C?!!C.unsafe:!1,M=C?!!C.enumerable:!1,A=C?!!C.noTargetGet:!1,O;if(typeof x=="function"&&(typeof b=="string"&&!u(x,"name")&&l(x,"name",b),O=p(x),O.source||(O.source=m.join(typeof b=="string"?b:""))),v===a){M?v[b]=x:c(b,x);return}else S?!A&&v[b]&&(M=!0):delete v[b];M?v[b]=x:l(v,b,x)})(Function.prototype,"toString",function(){return typeof this=="function"&&d(this).source||f(this)})},7651:function(o,s,i){var a=i(4326),l=i(2261);o.exports=function(u,c){var f=u.exec;if(typeof f=="function"){var h=f.call(u,c);if(typeof h!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return h}if(a(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}},2261:function(o,s,i){"use strict";var a=i(7066),l=i(2999),u=RegExp.prototype.exec,c=String.prototype.replace,f=u,h=function(){var v=/a/,b=/b*/g;return u.call(v,"a"),u.call(b,"a"),v.lastIndex!==0||b.lastIndex!==0}(),d=l.UNSUPPORTED_Y||l.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,m=h||p||d;m&&(f=function(b){var x=this,C,S,M,A,O=d&&x.sticky,k=a.call(x),D=x.source,I=0,P=b;return O&&(k=k.replace("y",""),k.indexOf("g")===-1&&(k+="g"),P=String(b).slice(x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&b[x.lastIndex-1]!==`
+`)&&(D="(?: "+D+")",P=" "+P,I++),S=new RegExp("^(?:"+D+")",k)),p&&(S=new RegExp("^"+D+"$(?!\\s)",k)),h&&(C=x.lastIndex),M=u.call(O?S:x,P),O?M?(M.input=M.input.slice(I),M[0]=M[0].slice(I),M.index=x.lastIndex,x.lastIndex+=M[0].length):x.lastIndex=0:h&&M&&(x.lastIndex=x.global?M.index+M[0].length:C),p&&M&&M.length>1&&c.call(M[0],S,function(){for(A=1;A<arguments.length-2;A++)arguments[A]===void 0&&(M[A]=void 0)}),M}),o.exports=f},7066:function(o,s,i){"use strict";var a=i(9670);o.exports=function(){var l=a(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}},2999:function(o,s,i){"use strict";var a=i(7293);function l(u,c){return RegExp(u,c)}s.UNSUPPORTED_Y=a(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),s.BROKEN_CARET=a(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},4488:function(o){o.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},3505:function(o,s,i){var a=i(7854),l=i(8880);o.exports=function(u,c){try{l(a,u,c)}catch{a[u]=c}return c}},6340:function(o,s,i){"use strict";var a=i(5005),l=i(3070),u=i(5112),c=i(9781),f=u("species");o.exports=function(h){var d=a(h),p=l.f;c&&d&&!d[f]&&p(d,f,{configurable:!0,get:function(){return this}})}},8003:function(o,s,i){var a=i(3070).f,l=i(6656),u=i(5112),c=u("toStringTag");o.exports=function(f,h,d){f&&!l(f=d?f:f.prototype,c)&&a(f,c,{configurable:!0,value:h})}},6200:function(o,s,i){var a=i(2309),l=i(9711),u=a("keys");o.exports=function(c){return u[c]||(u[c]=l(c))}},5465:function(o,s,i){var a=i(7854),l=i(3505),u="__core-js_shared__",c=a[u]||l(u,{});o.exports=c},2309:function(o,s,i){var a=i(1913),l=i(5465);(o.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.9.0",mode:a?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(o,s,i){var a=i(9670),l=i(3099),u=i(5112),c=u("species");o.exports=function(f,h){var d=a(f).constructor,p;return d===void 0||(p=a(d)[c])==null?h:l(p)}},8710:function(o,s,i){var a=i(9958),l=i(4488),u=function(c){return function(f,h){var d=String(l(f)),p=a(h),m=d.length,v,b;return p<0||p>=m?c?"":void 0:(v=d.charCodeAt(p),v<55296||v>56319||p+1===m||(b=d.charCodeAt(p+1))<56320||b>57343?c?d.charAt(p):v:c?d.slice(p,p+2):(v-55296<<10)+(b-56320)+65536)}};o.exports={codeAt:u(!1),charAt:u(!0)}},3197:function(o){"use strict";var s=2147483647,i=36,a=1,l=26,u=38,c=700,f=72,h=128,d="-",p=/[^\0-\u007E]/,m=/[.\u3002\uFF0E\uFF61]/g,v="Overflow: input needs wider integers to process",b=i-a,x=Math.floor,C=String.fromCharCode,S=function(k){for(var D=[],I=0,P=k.length;I<P;){var N=k.charCodeAt(I++);if(N>=55296&&N<=56319&&I<P){var B=k.charCodeAt(I++);(B&64512)==56320?D.push(((N&1023)<<10)+(B&1023)+65536):(D.push(N),I--)}else D.push(N)}return D},M=function(k){return k+22+75*(k<26)},A=function(k,D,I){var P=0;for(k=I?x(k/c):k>>1,k+=x(k/D);k>b*l>>1;P+=i)k=x(k/b);return x(P+(b+1)*k/(k+u))},O=function(k){var D=[];k=S(k);var I=k.length,P=h,N=0,B=f,H,Z;for(H=0;H<k.length;H++)Z=k[H],Z<128&&D.push(C(Z));var W=D.length,te=W;for(W&&D.push(d);te<I;){var ne=s;for(H=0;H<k.length;H++)Z=k[H],Z>=P&&Z<ne&&(ne=Z);var be=te+1;if(ne-P>x((s-N)/be))throw RangeError(v);for(N+=(ne-P)*be,P=ne,H=0;H<k.length;H++){if(Z=k[H],Z<P&&++N>s)throw RangeError(v);if(Z==P){for(var Ae=N,xe=i;;xe+=i){var Fe=xe<=B?a:xe>=B+l?l:xe-B;if(Ae<Fe)break;var Re=Ae-Fe,Ne=i-Fe;D.push(C(M(Fe+Re%Ne))),Ae=x(Re/Ne)}D.push(C(M(Ae))),B=A(N,be,te==W),N=0,++te}}++N,++P}return D.join("")};o.exports=function(k){var D=[],I=k.toLowerCase().replace(m,".").split("."),P,N;for(P=0;P<I.length;P++)N=I[P],D.push(p.test(N)?"xn--"+O(N):N);return D.join(".")}},6091:function(o,s,i){var a=i(7293),l=i(1361),u="\u200B\x85\u180E";o.exports=function(c){return a(function(){return!!l[c]()||u[c]()!=u||l[c].name!==c})}},3111:function(o,s,i){var a=i(4488),l=i(1361),u="["+l+"]",c=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),h=function(d){return function(p){var m=String(a(p));return d&1&&(m=m.replace(c,"")),d&2&&(m=m.replace(f,"")),m}};o.exports={start:h(1),end:h(2),trim:h(3)}},1400:function(o,s,i){var a=i(9958),l=Math.max,u=Math.min;o.exports=function(c,f){var h=a(c);return h<0?l(h+f,0):u(h,f)}},7067:function(o,s,i){var a=i(9958),l=i(7466);o.exports=function(u){if(u===void 0)return 0;var c=a(u),f=l(c);if(c!==f)throw RangeError("Wrong length or index");return f}},5656:function(o,s,i){var a=i(8361),l=i(4488);o.exports=function(u){return a(l(u))}},9958:function(o){var s=Math.ceil,i=Math.floor;o.exports=function(a){return isNaN(a=+a)?0:(a>0?i:s)(a)}},7466:function(o,s,i){var a=i(9958),l=Math.min;o.exports=function(u){return u>0?l(a(u),9007199254740991):0}},7908:function(o,s,i){var a=i(4488);o.exports=function(l){return Object(a(l))}},4590:function(o,s,i){var a=i(3002);o.exports=function(l,u){var c=a(l);if(c%u)throw RangeError("Wrong offset");return c}},3002:function(o,s,i){var a=i(9958);o.exports=function(l){var u=a(l);if(u<0)throw RangeError("The argument can't be less than 0");return u}},7593:function(o,s,i){var a=i(111);o.exports=function(l,u){if(!a(l))return l;var c,f;if(u&&typeof(c=l.toString)=="function"&&!a(f=c.call(l))||typeof(c=l.valueOf)=="function"&&!a(f=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!a(f=c.call(l)))return f;throw TypeError("Can't convert object to primitive value")}},1694:function(o,s,i){var a=i(5112),l=a("toStringTag"),u={};u[l]="z",o.exports=String(u)==="[object z]"},9843:function(o,s,i){"use strict";var a=i(2109),l=i(7854),u=i(9781),c=i(3832),f=i(260),h=i(3331),d=i(5787),p=i(9114),m=i(8880),v=i(7466),b=i(7067),x=i(4590),C=i(7593),S=i(6656),M=i(648),A=i(111),O=i(30),k=i(7674),D=i(8006).f,I=i(7321),P=i(2092).forEach,N=i(6340),B=i(3070),H=i(1236),Z=i(9909),W=i(9587),te=Z.get,ne=Z.set,be=B.f,Ae=H.f,xe=Math.round,Fe=l.RangeError,Re=h.ArrayBuffer,Ne=h.DataView,he=f.NATIVE_ARRAY_BUFFER_VIEWS,Se=f.TYPED_ARRAY_TAG,ke=f.TypedArray,Ie=f.TypedArrayPrototype,Oe=f.aTypedArrayConstructor,ot=f.isTypedArray,Ke="BYTES_PER_ELEMENT",Qe="Wrong length",me=function(J,V){for(var ie=0,ce=V.length,$e=new(Oe(J))(ce);ce>ie;)$e[ie]=V[ie++];return $e},oe=function(J,V){be(J,V,{get:function(){return te(this)[V]}})},ue=function(J){var V;return J instanceof Re||(V=M(J))=="ArrayBuffer"||V=="SharedArrayBuffer"},fe=function(J,V){return ot(J)&&typeof V!="symbol"&&V in J&&String(+V)==String(V)},le=function(V,ie){return fe(V,ie=C(ie,!0))?p(2,V[ie]):Ae(V,ie)},pe=function(V,ie,ce){return fe(V,ie=C(ie,!0))&&A(ce)&&S(ce,"value")&&!S(ce,"get")&&!S(ce,"set")&&!ce.configurable&&(!S(ce,"writable")||ce.writable)&&(!S(ce,"enumerable")||ce.enumerable)?(V[ie]=ce.value,V):be(V,ie,ce)};u?(he||(H.f=le,B.f=pe,oe(Ie,"buffer"),oe(Ie,"byteOffset"),oe(Ie,"byteLength"),oe(Ie,"length")),a({target:"Object",stat:!0,forced:!he},{getOwnPropertyDescriptor:le,defineProperty:pe}),o.exports=function(J,V,ie){var ce=J.match(/\d+$/)[0]/8,$e=J+(ie?"Clamped":"")+"Array",Ge="get"+J,st="set"+J,et=l[$e],Te=et,Ce=Te&&Te.prototype,Nt={},dt=function(We,Pe){var He=te(We);return He.view[Ge](Pe*ce+He.byteOffset,!0)},Xt=function(We,Pe,He){var ut=te(We);ie&&(He=(He=xe(He))<0?0:He>255?255:He&255),ut.view[st](Pe*ce+ut.byteOffset,He,!0)},Zt=function(We,Pe){be(We,Pe,{get:function(){return dt(this,Pe)},set:function(He){return Xt(this,Pe,He)},enumerable:!0})};he?c&&(Te=V(function(We,Pe,He,ut){return d(We,Te,$e),W(function(){return A(Pe)?ue(Pe)?ut!==void 0?new et(Pe,x(He,ce),ut):He!==void 0?new et(Pe,x(He,ce)):new et(Pe):ot(Pe)?me(Te,Pe):I.call(Te,Pe):new et(b(Pe))}(),We,Te)}),k&&k(Te,ke),P(D(et),function(We){We in Te||m(Te,We,et[We])}),Te.prototype=Ce):(Te=V(function(We,Pe,He,ut){d(We,Te,$e);var It=0,ft=0,Dt,nt,de;if(!A(Pe))de=b(Pe),nt=de*ce,Dt=new Re(nt);else if(ue(Pe)){Dt=Pe,ft=x(He,ce);var Vt=Pe.byteLength;if(ut===void 0){if(Vt%ce||(nt=Vt-ft,nt<0))throw Fe(Qe)}else if(nt=v(ut)*ce,nt+ft>Vt)throw Fe(Qe);de=nt/ce}else return ot(Pe)?me(Te,Pe):I.call(Te,Pe);for(ne(We,{buffer:Dt,byteOffset:ft,byteLength:nt,length:de,view:new Ne(Dt)});It<de;)Zt(We,It++)}),k&&k(Te,ke),Ce=Te.prototype=O(Ie)),Ce.constructor!==Te&&m(Ce,"constructor",Te),Se&&m(Ce,Se,$e),Nt[$e]=Te,a({global:!0,forced:Te!=et,sham:!he},Nt),Ke in Te||m(Te,Ke,ce),Ke in Ce||m(Ce,Ke,ce),N($e)}):o.exports=function(){}},3832:function(o,s,i){var a=i(7854),l=i(7293),u=i(7072),c=i(260).NATIVE_ARRAY_BUFFER_VIEWS,f=a.ArrayBuffer,h=a.Int8Array;o.exports=!c||!l(function(){h(1)})||!l(function(){new h(-1)})||!u(function(d){new h,new h(null),new h(1.5),new h(d)},!0)||l(function(){return new h(new f(2),1,void 0).length!==1})},3074:function(o,s,i){var a=i(260).aTypedArrayConstructor,l=i(6707);o.exports=function(u,c){for(var f=l(u,u.constructor),h=0,d=c.length,p=new(a(f))(d);d>h;)p[h]=c[h++];return p}},7321:function(o,s,i){var a=i(7908),l=i(7466),u=i(1246),c=i(7659),f=i(9974),h=i(260).aTypedArrayConstructor;o.exports=function(p){var m=a(p),v=arguments.length,b=v>1?arguments[1]:void 0,x=b!==void 0,C=u(m),S,M,A,O,k,D;if(C!=null&&!c(C))for(k=C.call(m),D=k.next,m=[];!(O=D.call(k)).done;)m.push(O.value);for(x&&v>2&&(b=f(b,arguments[2],2)),M=l(m.length),A=new(h(this))(M),S=0;M>S;S++)A[S]=x?b(m[S],S):m[S];return A}},9711:function(o){var s=0,i=Math.random();o.exports=function(a){return"Symbol("+String(a===void 0?"":a)+")_"+(++s+i).toString(36)}},3307:function(o,s,i){var a=i(133);o.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(o,s,i){var a=i(7854),l=i(2309),u=i(6656),c=i(9711),f=i(133),h=i(3307),d=l("wks"),p=a.Symbol,m=h?p:p&&p.withoutSetter||c;o.exports=function(v){return u(d,v)||(f&&u(p,v)?d[v]=p[v]:d[v]=m("Symbol."+v)),d[v]}},1361:function(o){o.exports=`
+\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},8264:function(o,s,i){"use strict";var a=i(2109),l=i(7854),u=i(3331),c=i(6340),f="ArrayBuffer",h=u[f],d=l[f];a({global:!0,forced:d!==h},{ArrayBuffer:h}),c(f)},2222:function(o,s,i){"use strict";var a=i(2109),l=i(7293),u=i(3157),c=i(111),f=i(7908),h=i(7466),d=i(6135),p=i(5417),m=i(1194),v=i(5112),b=i(7392),x=v("isConcatSpreadable"),C=9007199254740991,S="Maximum allowed index exceeded",M=b>=51||!l(function(){var D=[];return D[x]=!1,D.concat()[0]!==D}),A=m("concat"),O=function(D){if(!c(D))return!1;var I=D[x];return I!==void 0?!!I:u(D)},k=!M||!A;a({target:"Array",proto:!0,forced:k},{concat:function(I){var P=f(this),N=p(P,0),B=0,H,Z,W,te,ne;for(H=-1,W=arguments.length;H<W;H++)if(ne=H===-1?P:arguments[H],O(ne)){if(te=h(ne.length),B+te>C)throw TypeError(S);for(Z=0;Z<te;Z++,B++)Z in ne&&d(N,B,ne[Z])}else{if(B>=C)throw TypeError(S);d(N,B++,ne)}return N.length=B,N}})},7327:function(o,s,i){"use strict";var a=i(2109),l=i(2092).filter,u=i(1194),c=u("filter");a({target:"Array",proto:!0,forced:!c},{filter:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},2772:function(o,s,i){"use strict";var a=i(2109),l=i(1318).indexOf,u=i(9341),c=[].indexOf,f=!!c&&1/[1].indexOf(1,-0)<0,h=u("indexOf");a({target:"Array",proto:!0,forced:f||!h},{indexOf:function(p){return f?c.apply(this,arguments)||0:l(this,p,arguments.length>1?arguments[1]:void 0)}})},6992:function(o,s,i){"use strict";var a=i(5656),l=i(1223),u=i(7497),c=i(9909),f=i(654),h="Array Iterator",d=c.set,p=c.getterFor(h);o.exports=f(Array,"Array",function(m,v){d(this,{type:h,target:a(m),index:0,kind:v})},function(){var m=p(this),v=m.target,b=m.kind,x=m.index++;return!v||x>=v.length?(m.target=void 0,{value:void 0,done:!0}):b=="keys"?{value:x,done:!1}:b=="values"?{value:v[x],done:!1}:{value:[x,v[x]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")},1249:function(o,s,i){"use strict";var a=i(2109),l=i(2092).map,u=i(1194),c=u("map");a({target:"Array",proto:!0,forced:!c},{map:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},7042:function(o,s,i){"use strict";var a=i(2109),l=i(111),u=i(3157),c=i(1400),f=i(7466),h=i(5656),d=i(6135),p=i(5112),m=i(1194),v=m("slice"),b=p("species"),x=[].slice,C=Math.max;a({target:"Array",proto:!0,forced:!v},{slice:function(M,A){var O=h(this),k=f(O.length),D=c(M,k),I=c(A===void 0?k:A,k),P,N,B;if(u(O)&&(P=O.constructor,typeof P=="function"&&(P===Array||u(P.prototype))?P=void 0:l(P)&&(P=P[b],P===null&&(P=void 0)),P===Array||P===void 0))return x.call(O,D,I);for(N=new(P===void 0?Array:P)(C(I-D,0)),B=0;D<I;D++,B++)D in O&&d(N,B,O[D]);return N.length=B,N}})},561:function(o,s,i){"use strict";var a=i(2109),l=i(1400),u=i(9958),c=i(7466),f=i(7908),h=i(5417),d=i(6135),p=i(1194),m=p("splice"),v=Math.max,b=Math.min,x=9007199254740991,C="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!m},{splice:function(M,A){var O=f(this),k=c(O.length),D=l(M,k),I=arguments.length,P,N,B,H,Z,W;if(I===0?P=N=0:I===1?(P=0,N=k-D):(P=I-2,N=b(v(u(A),0),k-D)),k+P-N>x)throw TypeError(C);for(B=h(O,N),H=0;H<N;H++)Z=D+H,Z in O&&d(B,H,O[Z]);if(B.length=N,P<N){for(H=D;H<k-N;H++)Z=H+N,W=H+P,Z in O?O[W]=O[Z]:delete O[W];for(H=k;H>k-N+P;H--)delete O[H-1]}else if(P>N)for(H=k-N;H>D;H--)Z=H+N-1,W=H+P-1,Z in O?O[W]=O[Z]:delete O[W];for(H=0;H<P;H++)O[H+D]=arguments[H+2];return O.length=k-N+P,B}})},8309:function(o,s,i){var a=i(9781),l=i(3070).f,u=Function.prototype,c=u.toString,f=/^\s*function ([^ (]*)/,h="name";a&&!(h in u)&&l(u,h,{configurable:!0,get:function(){try{return c.call(this).match(f)[1]}catch{return""}}})},489:function(o,s,i){var a=i(2109),l=i(7293),u=i(7908),c=i(9518),f=i(8544),h=l(function(){c(1)});a({target:"Object",stat:!0,forced:h,sham:!f},{getPrototypeOf:function(p){return c(u(p))}})},1539:function(o,s,i){var a=i(1694),l=i(1320),u=i(288);a||l(Object.prototype,"toString",u,{unsafe:!0})},4916:function(o,s,i){"use strict";var a=i(2109),l=i(2261);a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},9714:function(o,s,i){"use strict";var a=i(1320),l=i(9670),u=i(7293),c=i(7066),f="toString",h=RegExp.prototype,d=h[f],p=u(function(){return d.call({source:"a",flags:"b"})!="/a/b"}),m=d.name!=f;(p||m)&&a(RegExp.prototype,f,function(){var b=l(this),x=String(b.source),C=b.flags,S=String(C===void 0&&b instanceof RegExp&&!("flags"in h)?c.call(b):C);return"/"+x+"/"+S},{unsafe:!0})},8783:function(o,s,i){"use strict";var a=i(8710).charAt,l=i(9909),u=i(654),c="String Iterator",f=l.set,h=l.getterFor(c);u(String,"String",function(d){f(this,{type:c,string:String(d),index:0})},function(){var p=h(this),m=p.string,v=p.index,b;return v>=m.length?{value:void 0,done:!0}:(b=a(m,v),p.index+=b.length,{value:b,done:!1})})},4723:function(o,s,i){"use strict";var a=i(7007),l=i(9670),u=i(7466),c=i(4488),f=i(1530),h=i(7651);a("match",1,function(d,p,m){return[function(b){var x=c(this),C=b?.[d];return C!==void 0?C.call(b,x):new RegExp(b)[d](String(x))},function(v){var b=m(p,v,this);if(b.done)return b.value;var x=l(v),C=String(this);if(!x.global)return h(x,C);var S=x.unicode;x.lastIndex=0;for(var M=[],A=0,O;(O=h(x,C))!==null;){var k=String(O[0]);M[A]=k,k===""&&(x.lastIndex=f(C,u(x.lastIndex),S)),A++}return A===0?null:M}]})},5306:function(o,s,i){"use strict";var a=i(7007),l=i(9670),u=i(7466),c=i(9958),f=i(4488),h=i(1530),d=i(647),p=i(7651),m=Math.max,v=Math.min,b=function(x){return x===void 0?x:String(x)};a("replace",2,function(x,C,S,M){var A=M.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,O=M.REPLACE_KEEPS_$0,k=A?"$":"$0";return[function(I,P){var N=f(this),B=I?.[x];return B!==void 0?B.call(I,N,P):C.call(String(N),I,P)},function(D,I){if(!A&&O||typeof I=="string"&&I.indexOf(k)===-1){var P=S(C,D,this,I);if(P.done)return P.value}var N=l(D),B=String(this),H=typeof I=="function";H||(I=String(I));var Z=N.global;if(Z){var W=N.unicode;N.lastIndex=0}for(var te=[];;){var ne=p(N,B);if(ne===null||(te.push(ne),!Z))break;var be=String(ne[0]);be===""&&(N.lastIndex=h(B,u(N.lastIndex),W))}for(var Ae="",xe=0,Fe=0;Fe<te.length;Fe++){ne=te[Fe];for(var Re=String(ne[0]),Ne=m(v(c(ne.index),B.length),0),he=[],Se=1;Se<ne.length;Se++)he.push(b(ne[Se]));var ke=ne.groups;if(H){var Ie=[Re].concat(he,Ne,B);ke!==void 0&&Ie.push(ke);var Oe=String(I.apply(void 0,Ie))}else Oe=d(Re,B,Ne,he,ke,I);Ne>=xe&&(Ae+=B.slice(xe,Ne)+Oe,xe=Ne+Re.length)}return Ae+B.slice(xe)}]})},3123:function(o,s,i){"use strict";var a=i(7007),l=i(7850),u=i(9670),c=i(4488),f=i(6707),h=i(1530),d=i(7466),p=i(7651),m=i(2261),v=i(7293),b=[].push,x=Math.min,C=4294967295,S=!v(function(){return!RegExp(C,"y")});a("split",2,function(M,A,O){var k;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?k=function(D,I){var P=String(c(this)),N=I===void 0?C:I>>>0;if(N===0)return[];if(D===void 0)return[P];if(!l(D))return A.call(P,D,N);for(var B=[],H=(D.ignoreCase?"i":"")+(D.multiline?"m":"")+(D.unicode?"u":"")+(D.sticky?"y":""),Z=0,W=new RegExp(D.source,H+"g"),te,ne,be;(te=m.call(W,P))&&(ne=W.lastIndex,!(ne>Z&&(B.push(P.slice(Z,te.index)),te.length>1&&te.index<P.length&&b.apply(B,te.slice(1)),be=te[0].length,Z=ne,B.length>=N)));)W.lastIndex===te.index&&W.lastIndex++;return Z===P.length?(be||!W.test(""))&&B.push(""):B.push(P.slice(Z)),B.length>N?B.slice(0,N):B}:"0".split(void 0,0).length?k=function(D,I){return D===void 0&&I===0?[]:A.call(this,D,I)}:k=A,[function(I,P){var N=c(this),B=I?.[M];return B!==void 0?B.call(I,N,P):k.call(String(N),I,P)},function(D,I){var P=O(k,D,this,I,k!==A);if(P.done)return P.value;var N=u(D),B=String(this),H=f(N,RegExp),Z=N.unicode,W=(N.ignoreCase?"i":"")+(N.multiline?"m":"")+(N.unicode?"u":"")+(S?"y":"g"),te=new H(S?N:"^(?:"+N.source+")",W),ne=I===void 0?C:I>>>0;if(ne===0)return[];if(B.length===0)return p(te,B)===null?[B]:[];for(var be=0,Ae=0,xe=[];Ae<B.length;){te.lastIndex=S?Ae:0;var Fe=p(te,S?B:B.slice(Ae)),Re;if(Fe===null||(Re=x(d(te.lastIndex+(S?0:Ae)),B.length))===be)Ae=h(B,Ae,Z);else{if(xe.push(B.slice(be,Ae)),xe.length===ne)return xe;for(var Ne=1;Ne<=Fe.length-1;Ne++)if(xe.push(Fe[Ne]),xe.length===ne)return xe;Ae=be=Re}}return xe.push(B.slice(be)),xe}]},!S)},3210:function(o,s,i){"use strict";var a=i(2109),l=i(3111).trim,u=i(6091);a({target:"String",proto:!0,forced:u("trim")},{trim:function(){return l(this)}})},2990:function(o,s,i){"use strict";var a=i(260),l=i(1048),u=a.aTypedArray,c=a.exportTypedArrayMethod;c("copyWithin",function(h,d){return l.call(u(this),h,d,arguments.length>2?arguments[2]:void 0)})},8927:function(o,s,i){"use strict";var a=i(260),l=i(2092).every,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("every",function(h){return l(u(this),h,arguments.length>1?arguments[1]:void 0)})},3105:function(o,s,i){"use strict";var a=i(260),l=i(1285),u=a.aTypedArray,c=a.exportTypedArrayMethod;c("fill",function(h){return l.apply(u(this),arguments)})},5035:function(o,s,i){"use strict";var a=i(260),l=i(2092).filter,u=i(3074),c=a.aTypedArray,f=a.exportTypedArrayMethod;f("filter",function(d){var p=l(c(this),d,arguments.length>1?arguments[1]:void 0);return u(this,p)})},7174:function(o,s,i){"use strict";var a=i(260),l=i(2092).findIndex,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("findIndex",function(h){return l(u(this),h,arguments.length>1?arguments[1]:void 0)})},4345:function(o,s,i){"use strict";var a=i(260),l=i(2092).find,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("find",function(h){return l(u(this),h,arguments.length>1?arguments[1]:void 0)})},2846:function(o,s,i){"use strict";var a=i(260),l=i(2092).forEach,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("forEach",function(h){l(u(this),h,arguments.length>1?arguments[1]:void 0)})},4731:function(o,s,i){"use strict";var a=i(260),l=i(1318).includes,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("includes",function(h){return l(u(this),h,arguments.length>1?arguments[1]:void 0)})},7209:function(o,s,i){"use strict";var a=i(260),l=i(1318).indexOf,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("indexOf",function(h){return l(u(this),h,arguments.length>1?arguments[1]:void 0)})},6319:function(o,s,i){"use strict";var a=i(7854),l=i(260),u=i(6992),c=i(5112),f=c("iterator"),h=a.Uint8Array,d=u.values,p=u.keys,m=u.entries,v=l.aTypedArray,b=l.exportTypedArrayMethod,x=h&&h.prototype[f],C=!!x&&(x.name=="values"||x.name==null),S=function(){return d.call(v(this))};b("entries",function(){return m.call(v(this))}),b("keys",function(){return p.call(v(this))}),b("values",S,!C),b(f,S,!C)},8867:function(o,s,i){"use strict";var a=i(260),l=a.aTypedArray,u=a.exportTypedArrayMethod,c=[].join;u("join",function(h){return c.apply(l(this),arguments)})},7789:function(o,s,i){"use strict";var a=i(260),l=i(6583),u=a.aTypedArray,c=a.exportTypedArrayMethod;c("lastIndexOf",function(h){return l.apply(u(this),arguments)})},3739:function(o,s,i){"use strict";var a=i(260),l=i(2092).map,u=i(6707),c=a.aTypedArray,f=a.aTypedArrayConstructor,h=a.exportTypedArrayMethod;h("map",function(p){return l(c(this),p,arguments.length>1?arguments[1]:void 0,function(m,v){return new(f(u(m,m.constructor)))(v)})})},4483:function(o,s,i){"use strict";var a=i(260),l=i(3671).right,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("reduceRight",function(h){return l(u(this),h,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(o,s,i){"use strict";var a=i(260),l=i(3671).left,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("reduce",function(h){return l(u(this),h,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(o,s,i){"use strict";var a=i(260),l=a.aTypedArray,u=a.exportTypedArrayMethod,c=Math.floor;u("reverse",function(){for(var h=this,d=l(h).length,p=c(d/2),m=0,v;m<p;)v=h[m],h[m++]=h[--d],h[d]=v;return h})},3462:function(o,s,i){"use strict";var a=i(260),l=i(7466),u=i(4590),c=i(7908),f=i(7293),h=a.aTypedArray,d=a.exportTypedArrayMethod,p=f(function(){new Int8Array(1).set({})});d("set",function(v){h(this);var b=u(arguments.length>1?arguments[1]:void 0,1),x=this.length,C=c(v),S=l(C.length),M=0;if(S+b>x)throw RangeError("Wrong length");for(;M<S;)this[b+M]=C[M++]},p)},678:function(o,s,i){"use strict";var a=i(260),l=i(6707),u=i(7293),c=a.aTypedArray,f=a.aTypedArrayConstructor,h=a.exportTypedArrayMethod,d=[].slice,p=u(function(){new Int8Array(1).slice()});h("slice",function(v,b){for(var x=d.call(c(this),v,b),C=l(this,this.constructor),S=0,M=x.length,A=new(f(C))(M);M>S;)A[S]=x[S++];return A},p)},7462:function(o,s,i){"use strict";var a=i(260),l=i(2092).some,u=a.aTypedArray,c=a.exportTypedArrayMethod;c("some",function(h){return l(u(this),h,arguments.length>1?arguments[1]:void 0)})},3824:function(o,s,i){"use strict";var a=i(260),l=a.aTypedArray,u=a.exportTypedArrayMethod,c=[].sort;u("sort",function(h){return c.call(l(this),h)})},5021:function(o,s,i){"use strict";var a=i(260),l=i(7466),u=i(1400),c=i(6707),f=a.aTypedArray,h=a.exportTypedArrayMethod;h("subarray",function(p,m){var v=f(this),b=v.length,x=u(p,b);return new(c(v,v.constructor))(v.buffer,v.byteOffset+x*v.BYTES_PER_ELEMENT,l((m===void 0?b:u(m,b))-x))})},2974:function(o,s,i){"use strict";var a=i(7854),l=i(260),u=i(7293),c=a.Int8Array,f=l.aTypedArray,h=l.exportTypedArrayMethod,d=[].toLocaleString,p=[].slice,m=!!c&&u(function(){d.call(new c(1))}),v=u(function(){return[1,2].toLocaleString()!=new c([1,2]).toLocaleString()})||!u(function(){c.prototype.toLocaleString.call([1,2])});h("toLocaleString",function(){return d.apply(m?p.call(f(this)):f(this),arguments)},v)},5016:function(o,s,i){"use strict";var a=i(260).exportTypedArrayMethod,l=i(7293),u=i(7854),c=u.Uint8Array,f=c&&c.prototype||{},h=[].toString,d=[].join;l(function(){h.call({})})&&(h=function(){return d.call(this)});var p=f.toString!=h;a("toString",h,p)},2472:function(o,s,i){var a=i(9843);a("Uint8",function(l){return function(c,f,h){return l(this,c,f,h)}})},4747:function(o,s,i){var a=i(7854),l=i(8324),u=i(8533),c=i(8880);for(var f in l){var h=a[f],d=h&&h.prototype;if(d&&d.forEach!==u)try{c(d,"forEach",u)}catch{d.forEach=u}}},3948:function(o,s,i){var a=i(7854),l=i(8324),u=i(6992),c=i(8880),f=i(5112),h=f("iterator"),d=f("toStringTag"),p=u.values;for(var m in l){var v=a[m],b=v&&v.prototype;if(b){if(b[h]!==p)try{c(b,h,p)}catch{b[h]=p}if(b[d]||c(b,d,m),l[m]){for(var x in u)if(b[x]!==u[x])try{c(b,x,u[x])}catch{b[x]=u[x]}}}}},1637:function(o,s,i){"use strict";i(6992);var a=i(2109),l=i(5005),u=i(590),c=i(1320),f=i(2248),h=i(8003),d=i(4994),p=i(9909),m=i(5787),v=i(6656),b=i(9974),x=i(648),C=i(9670),S=i(111),M=i(30),A=i(9114),O=i(8554),k=i(1246),D=i(5112),I=l("fetch"),P=l("Headers"),N=D("iterator"),B="URLSearchParams",H=B+"Iterator",Z=p.set,W=p.getterFor(B),te=p.getterFor(H),ne=/\+/g,be=Array(4),Ae=function(me){return be[me-1]||(be[me-1]=RegExp("((?:%[\\da-f]{2}){"+me+"})","gi"))},xe=function(me){try{return decodeURIComponent(me)}catch{return me}},Fe=function(me){var oe=me.replace(ne," "),ue=4;try{return decodeURIComponent(oe)}catch{for(;ue;)oe=oe.replace(Ae(ue--),xe);return oe}},Re=/[!'()~]|%20/g,Ne={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},he=function(me){return Ne[me]},Se=function(me){return encodeURIComponent(me).replace(Re,he)},ke=function(me,oe){if(oe)for(var ue=oe.split("&"),fe=0,le,pe;fe<ue.length;)le=ue[fe++],le.length&&(pe=le.split("="),me.push({key:Fe(pe.shift()),value:Fe(pe.join("="))}))},Ie=function(me){this.entries.length=0,ke(this.entries,me)},Oe=function(me,oe){if(me<oe)throw TypeError("Not enough arguments")},ot=d(function(oe,ue){Z(this,{type:H,iterator:O(W(oe).entries),kind:ue})},"Iterator",function(){var oe=te(this),ue=oe.kind,fe=oe.iterator.next(),le=fe.value;return fe.done||(fe.value=ue==="keys"?le.key:ue==="values"?le.value:[le.key,le.value]),fe}),Ke=function(){m(this,Ke,B);var oe=arguments.length>0?arguments[0]:void 0,ue=this,fe=[],le,pe,J,V,ie,ce,$e,Ge,st;if(Z(ue,{type:B,entries:fe,updateURL:function(){},updateSearchParams:Ie}),oe!==void 0)if(S(oe))if(le=k(oe),typeof le=="function")for(pe=le.call(oe),J=pe.next;!(V=J.call(pe)).done;){if(ie=O(C(V.value)),ce=ie.next,($e=ce.call(ie)).done||(Ge=ce.call(ie)).done||!ce.call(ie).done)throw TypeError("Expected sequence with length 2");fe.push({key:$e.value+"",value:Ge.value+""})}else for(st in oe)v(oe,st)&&fe.push({key:st,value:oe[st]+""});else ke(fe,typeof oe=="string"?oe.charAt(0)==="?"?oe.slice(1):oe:oe+"")},Qe=Ke.prototype;f(Qe,{append:function(oe,ue){Oe(arguments.length,2);var fe=W(this);fe.entries.push({key:oe+"",value:ue+""}),fe.updateURL()},delete:function(me){Oe(arguments.length,1);for(var oe=W(this),ue=oe.entries,fe=me+"",le=0;le<ue.length;)ue[le].key===fe?ue.splice(le,1):le++;oe.updateURL()},get:function(oe){Oe(arguments.length,1);for(var ue=W(this).entries,fe=oe+"",le=0;le<ue.length;le++)if(ue[le].key===fe)return ue[le].value;return null},getAll:function(oe){Oe(arguments.length,1);for(var ue=W(this).entries,fe=oe+"",le=[],pe=0;pe<ue.length;pe++)ue[pe].key===fe&&le.push(ue[pe].value);return le},has:function(oe){Oe(arguments.length,1);for(var ue=W(this).entries,fe=oe+"",le=0;le<ue.length;)if(ue[le++].key===fe)return!0;return!1},set:function(oe,ue){Oe(arguments.length,1);for(var fe=W(this),le=fe.entries,pe=!1,J=oe+"",V=ue+"",ie=0,ce;ie<le.length;ie++)ce=le[ie],ce.key===J&&(pe?le.splice(ie--,1):(pe=!0,ce.value=V));pe||le.push({key:J,value:V}),fe.updateURL()},sort:function(){var oe=W(this),ue=oe.entries,fe=ue.slice(),le,pe,J;for(ue.length=0,J=0;J<fe.length;J++){for(le=fe[J],pe=0;pe<J;pe++)if(ue[pe].key>le.key){ue.splice(pe,0,le);break}pe===J&&ue.push(le)}oe.updateURL()},forEach:function(oe){for(var ue=W(this).entries,fe=b(oe,arguments.length>1?arguments[1]:void 0,3),le=0,pe;le<ue.length;)pe=ue[le++],fe(pe.value,pe.key,this)},keys:function(){return new ot(this,"keys")},values:function(){return new ot(this,"values")},entries:function(){return new ot(this,"entries")}},{enumerable:!0}),c(Qe,N,Qe.entries),c(Qe,"toString",function(){for(var oe=W(this).entries,ue=[],fe=0,le;fe<oe.length;)le=oe[fe++],ue.push(Se(le.key)+"="+Se(le.value));return ue.join("&")},{enumerable:!0}),h(Ke,B),a({global:!0,forced:!u},{URLSearchParams:Ke}),!u&&typeof I=="function"&&typeof P=="function"&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(oe){var ue=[oe],fe,le,pe;return arguments.length>1&&(fe=arguments[1],S(fe)&&(le=fe.body,x(le)===B&&(pe=fe.headers?new P(fe.headers):new P,pe.has("content-type")||pe.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),fe=M(fe,{body:A(0,String(le)),headers:A(0,pe)}))),ue.push(fe)),I.apply(this,ue)}}),o.exports={URLSearchParams:Ke,getState:W}},285:function(o,s,i){"use strict";i(8783);var a=i(2109),l=i(9781),u=i(590),c=i(7854),f=i(6048),h=i(1320),d=i(5787),p=i(6656),m=i(1574),v=i(8457),b=i(8710).codeAt,x=i(3197),C=i(8003),S=i(1637),M=i(9909),A=c.URL,O=S.URLSearchParams,k=S.getState,D=M.set,I=M.getterFor("URL"),P=Math.floor,N=Math.pow,B="Invalid authority",H="Invalid scheme",Z="Invalid host",W="Invalid port",te=/[A-Za-z]/,ne=/[\d+-.A-Za-z]/,be=/\d/,Ae=/^(0x|0X)/,xe=/^[0-7]+$/,Fe=/^\d+$/,Re=/^[\dA-Fa-f]+$/,Ne=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,he=/[\u0000\t\u000A\u000D #/:?@[\\]]/,Se=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,ke=/[\t\u000A\u000D]/g,Ie,Oe=function(w,$){var j,q,X;if($.charAt(0)=="["){if($.charAt($.length-1)!="]"||(j=Ke($.slice(1,-1)),!j))return Z;w.host=j}else if(V(w)){if($=x($),Ne.test($)||(j=ot($),j===null))return Z;w.host=j}else{if(he.test($))return Z;for(j="",q=v($),X=0;X<q.length;X++)j+=pe(q[X],oe);w.host=j}},ot=function(w){var $=w.split("."),j,q,X,ye,ae,De,je;if($.length&&$[$.length-1]==""&&$.pop(),j=$.length,j>4)return w;for(q=[],X=0;X<j;X++){if(ye=$[X],ye=="")return w;if(ae=10,ye.length>1&&ye.charAt(0)=="0"&&(ae=Ae.test(ye)?16:8,ye=ye.slice(ae==8?1:2)),ye==="")De=0;else{if(!(ae==10?Fe:ae==8?xe:Re).test(ye))return w;De=parseInt(ye,ae)}q.push(De)}for(X=0;X<j;X++)if(De=q[X],X==j-1){if(De>=N(256,5-j))return null}else if(De>255)return null;for(je=q.pop(),X=0;X<q.length;X++)je+=q[X]*N(256,3-X);return je},Ke=function(w){var $=[0,0,0,0,0,0,0,0],j=0,q=null,X=0,ye,ae,De,je,Xe,at,K,ze=function(){return w.charAt(X)};if(ze()==":"){if(w.charAt(1)!=":")return;X+=2,j++,q=j}for(;ze();){if(j==8)return;if(ze()==":"){if(q!==null)return;X++,j++,q=j;continue}for(ye=ae=0;ae<4&&Re.test(ze());)ye=ye*16+parseInt(ze(),16),X++,ae++;if(ze()=="."){if(ae==0||(X-=ae,j>6))return;for(De=0;ze();){if(je=null,De>0)if(ze()=="."&&De<4)X++;else return;if(!be.test(ze()))return;for(;be.test(ze());){if(Xe=parseInt(ze(),10),je===null)je=Xe;else{if(je==0)return;je=je*10+Xe}if(je>255)return;X++}$[j]=$[j]*256+je,De++,(De==2||De==4)&&j++}if(De!=4)return;break}else if(ze()==":"){if(X++,!ze())return}else if(ze())return;$[j++]=ye}if(q!==null)for(at=j-q,j=7;j!=0&&at>0;)K=$[j],$[j--]=$[q+at-1],$[q+--at]=K;else if(j!=8)return;return $},Qe=function(w){for(var $=null,j=1,q=null,X=0,ye=0;ye<8;ye++)w[ye]!==0?(X>j&&($=q,j=X),q=null,X=0):(q===null&&(q=ye),++X);return X>j&&($=q,j=X),$},me=function(w){var $,j,q,X;if(typeof w=="number"){for($=[],j=0;j<4;j++)$.unshift(w%256),w=P(w/256);return $.join(".")}else if(typeof w=="object"){for($="",q=Qe(w),j=0;j<8;j++)X&&w[j]===0||(X&&(X=!1),q===j?($+=j?":":"::",X=!0):($+=w[j].toString(16),j<7&&($+=":")));return"["+$+"]"}return w},oe={},ue=m({},oe,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=m({},ue,{"#":1,"?":1,"{":1,"}":1}),le=m({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),pe=function(w,$){var j=b(w,0);return j>32&&j<127&&!p($,w)?w:encodeURIComponent(w)},J={ftp:21,file:null,http:80,https:443,ws:80,wss:443},V=function(w){return p(J,w.scheme)},ie=function(w){return w.username!=""||w.password!=""},ce=function(w){return!w.host||w.cannotBeABaseURL||w.scheme=="file"},$e=function(w,$){var j;return w.length==2&&te.test(w.charAt(0))&&((j=w.charAt(1))==":"||!$&&j=="|")},Ge=function(w){var $;return w.length>1&&$e(w.slice(0,2))&&(w.length==2||($=w.charAt(2))==="/"||$==="\\"||$==="?"||$==="#")},st=function(w){var $=w.path,j=$.length;j&&(w.scheme!="file"||j!=1||!$e($[0],!0))&&$.pop()},et=function(w){return w==="."||w.toLowerCase()==="%2e"},Te=function(w){return w=w.toLowerCase(),w===".."||w==="%2e."||w===".%2e"||w==="%2e%2e"},Ce={},Nt={},dt={},Xt={},Zt={},We={},Pe={},He={},ut={},It={},ft={},Dt={},nt={},de={},Vt={},wr={},Gt={},xt={},Er={},Bt={},Ct={},wt=function(w,$,j,q){var X=j||Ce,ye=0,ae="",De=!1,je=!1,Xe=!1,at,K,ze,Ut;for(j||(w.scheme="",w.username="",w.password="",w.host=null,w.port=null,w.path=[],w.query=null,w.fragment=null,w.cannotBeABaseURL=!1,$=$.replace(Se,"")),$=$.replace(ke,""),at=v($);ye<=at.length;){switch(K=at[ye],X){case Ce:if(K&&te.test(K))ae+=K.toLowerCase(),X=Nt;else{if(j)return H;X=dt;continue}break;case Nt:if(K&&(ne.test(K)||K=="+"||K=="-"||K=="."))ae+=K.toLowerCase();else if(K==":"){if(j&&(V(w)!=p(J,ae)||ae=="file"&&(ie(w)||w.port!==null)||w.scheme=="file"&&!w.host))return;if(w.scheme=ae,j){V(w)&&J[w.scheme]==w.port&&(w.port=null);return}ae="",w.scheme=="file"?X=de:V(w)&&q&&q.scheme==w.scheme?X=Xt:V(w)?X=He:at[ye+1]=="/"?(X=Zt,ye++):(w.cannotBeABaseURL=!0,w.path.push(""),X=Er)}else{if(j)return H;ae="",X=dt,ye=0;continue}break;case dt:if(!q||q.cannotBeABaseURL&&K!="#")return H;if(q.cannotBeABaseURL&&K=="#"){w.scheme=q.scheme,w.path=q.path.slice(),w.query=q.query,w.fragment="",w.cannotBeABaseURL=!0,X=Ct;break}X=q.scheme=="file"?de:We;continue;case Xt:if(K=="/"&&at[ye+1]=="/")X=ut,ye++;else{X=We;continue}break;case Zt:if(K=="/"){X=It;break}else{X=xt;continue}case We:if(w.scheme=q.scheme,K==Ie)w.username=q.username,w.password=q.password,w.host=q.host,w.port=q.port,w.path=q.path.slice(),w.query=q.query;else if(K=="/"||K=="\\"&&V(w))X=Pe;else if(K=="?")w.username=q.username,w.password=q.password,w.host=q.host,w.port=q.port,w.path=q.path.slice(),w.query="",X=Bt;else if(K=="#")w.username=q.username,w.password=q.password,w.host=q.host,w.port=q.port,w.path=q.path.slice(),w.query=q.query,w.fragment="",X=Ct;else{w.username=q.username,w.password=q.password,w.host=q.host,w.port=q.port,w.path=q.path.slice(),w.path.pop(),X=xt;continue}break;case Pe:if(V(w)&&(K=="/"||K=="\\"))X=ut;else if(K=="/")X=It;else{w.username=q.username,w.password=q.password,w.host=q.host,w.port=q.port,X=xt;continue}break;case He:if(X=ut,K!="/"||ae.charAt(ye+1)!="/")continue;ye++;break;case ut:if(K!="/"&&K!="\\"){X=It;continue}break;case It:if(K=="@"){De&&(ae="%40"+ae),De=!0,ze=v(ae);for(var Bn=0;Bn<ze.length;Bn++){var Xo=ze[Bn];if(Xo==":"&&!Xe){Xe=!0;continue}var Zo=pe(Xo,le);Xe?w.password+=Zo:w.username+=Zo}ae=""}else if(K==Ie||K=="/"||K=="?"||K=="#"||K=="\\"&&V(w)){if(De&&ae=="")return B;ye-=v(ae).length+1,ae="",X=ft}else ae+=K;break;case ft:case Dt:if(j&&w.scheme=="file"){X=wr;continue}else if(K==":"&&!je){if(ae=="")return Z;if(Ut=Oe(w,ae),Ut)return Ut;if(ae="",X=nt,j==Dt)return}else if(K==Ie||K=="/"||K=="?"||K=="#"||K=="\\"&&V(w)){if(V(w)&&ae=="")return Z;if(j&&ae==""&&(ie(w)||w.port!==null))return;if(Ut=Oe(w,ae),Ut)return Ut;if(ae="",X=Gt,j)return;continue}else K=="["?je=!0:K=="]"&&(je=!1),ae+=K;break;case nt:if(be.test(K))ae+=K;else if(K==Ie||K=="/"||K=="?"||K=="#"||K=="\\"&&V(w)||j){if(ae!=""){var $n=parseInt(ae,10);if($n>65535)return W;w.port=V(w)&&$n===J[w.scheme]?null:$n,ae=""}if(j)return;X=Gt;continue}else return W;break;case de:if(w.scheme="file",K=="/"||K=="\\")X=Vt;else if(q&&q.scheme=="file")if(K==Ie)w.host=q.host,w.path=q.path.slice(),w.query=q.query;else if(K=="?")w.host=q.host,w.path=q.path.slice(),w.query="",X=Bt;else if(K=="#")w.host=q.host,w.path=q.path.slice(),w.query=q.query,w.fragment="",X=Ct;else{Ge(at.slice(ye).join(""))||(w.host=q.host,w.path=q.path.slice(),st(w)),X=xt;continue}else{X=xt;continue}break;case Vt:if(K=="/"||K=="\\"){X=wr;break}q&&q.scheme=="file"&&!Ge(at.slice(ye).join(""))&&($e(q.path[0],!0)?w.path.push(q.path[0]):w.host=q.host),X=xt;continue;case wr:if(K==Ie||K=="/"||K=="\\"||K=="?"||K=="#"){if(!j&&$e(ae))X=xt;else if(ae==""){if(w.host="",j)return;X=Gt}else{if(Ut=Oe(w,ae),Ut)return Ut;if(w.host=="localhost"&&(w.host=""),j)return;ae="",X=Gt}continue}else ae+=K;break;case Gt:if(V(w)){if(X=xt,K!="/"&&K!="\\")continue}else if(!j&&K=="?")w.query="",X=Bt;else if(!j&&K=="#")w.fragment="",X=Ct;else if(K!=Ie&&(X=xt,K!="/"))continue;break;case xt:if(K==Ie||K=="/"||K=="\\"&&V(w)||!j&&(K=="?"||K=="#")){if(Te(ae)?(st(w),K!="/"&&!(K=="\\"&&V(w))&&w.path.push("")):et(ae)?K!="/"&&!(K=="\\"&&V(w))&&w.path.push(""):(w.scheme=="file"&&!w.path.length&&$e(ae)&&(w.host&&(w.host=""),ae=ae.charAt(0)+":"),w.path.push(ae)),ae="",w.scheme=="file"&&(K==Ie||K=="?"||K=="#"))for(;w.path.length>1&&w.path[0]==="";)w.path.shift();K=="?"?(w.query="",X=Bt):K=="#"&&(w.fragment="",X=Ct)}else ae+=pe(K,fe);break;case Er:K=="?"?(w.query="",X=Bt):K=="#"?(w.fragment="",X=Ct):K!=Ie&&(w.path[0]+=pe(K,oe));break;case Bt:!j&&K=="#"?(w.fragment="",X=Ct):K!=Ie&&(K=="'"&&V(w)?w.query+="%27":K=="#"?w.query+="%23":w.query+=pe(K,oe));break;case Ct:K!=Ie&&(w.fragment+=pe(K,ue));break}ye++}},$t=function($){var j=d(this,$t,"URL"),q=arguments.length>1?arguments[1]:void 0,X=String($),ye=D(j,{type:"URL"}),ae,De;if(q!==void 0){if(q instanceof $t)ae=I(q);else if(De=wt(ae={},String(q)),De)throw TypeError(De)}if(De=wt(ye,X,null,ae),De)throw TypeError(De);var je=ye.searchParams=new O,Xe=k(je);Xe.updateSearchParams(ye.query),Xe.updateURL=function(){ye.query=String(je)||null},l||(j.href=R.call(j),j.origin=E.call(j),j.protocol=L.call(j),j.username=g.call(j),j.password=y.call(j),j.host=T.call(j),j.hostname=_.call(j),j.port=U.call(j),j.pathname=z.call(j),j.search=Y.call(j),j.searchParams=Q.call(j),j.hash=G.call(j))},F=$t.prototype,R=function(){var w=I(this),$=w.scheme,j=w.username,q=w.password,X=w.host,ye=w.port,ae=w.path,De=w.query,je=w.fragment,Xe=$+":";return X!==null?(Xe+="//",ie(w)&&(Xe+=j+(q?":"+q:"")+"@"),Xe+=me(X),ye!==null&&(Xe+=":"+ye)):$=="file"&&(Xe+="//"),Xe+=w.cannotBeABaseURL?ae[0]:ae.length?"/"+ae.join("/"):"",De!==null&&(Xe+="?"+De),je!==null&&(Xe+="#"+je),Xe},E=function(){var w=I(this),$=w.scheme,j=w.port;if($=="blob")try{return new URL($.path[0]).origin}catch{return"null"}return $=="file"||!V(w)?"null":$+"://"+me(w.host)+(j!==null?":"+j:"")},L=function(){return I(this).scheme+":"},g=function(){return I(this).username},y=function(){return I(this).password},T=function(){var w=I(this),$=w.host,j=w.port;return $===null?"":j===null?me($):me($)+":"+j},_=function(){var w=I(this).host;return w===null?"":me(w)},U=function(){var w=I(this).port;return w===null?"":String(w)},z=function(){var w=I(this),$=w.path;return w.cannotBeABaseURL?$[0]:$.length?"/"+$.join("/"):""},Y=function(){var w=I(this).query;return w?"?"+w:""},Q=function(){return I(this).searchParams},G=function(){var w=I(this).fragment;return w?"#"+w:""},se=function(w,$){return{get:w,set:$,configurable:!0,enumerable:!0}};if(l&&f(F,{href:se(R,function(w){var $=I(this),j=String(w),q=wt($,j);if(q)throw TypeError(q);k($.searchParams).updateSearchParams($.query)}),origin:se(E),protocol:se(L,function(w){var $=I(this);wt($,String(w)+":",Ce)}),username:se(g,function(w){var $=I(this),j=v(String(w));if(!ce($)){$.username="";for(var q=0;q<j.length;q++)$.username+=pe(j[q],le)}}),password:se(y,function(w){var $=I(this),j=v(String(w));if(!ce($)){$.password="";for(var q=0;q<j.length;q++)$.password+=pe(j[q],le)}}),host:se(T,function(w){var $=I(this);$.cannotBeABaseURL||wt($,String(w),ft)}),hostname:se(_,function(w){var $=I(this);$.cannotBeABaseURL||wt($,String(w),Dt)}),port:se(U,function(w){var $=I(this);ce($)||(w=String(w),w==""?$.port=null:wt($,w,nt))}),pathname:se(z,function(w){var $=I(this);$.cannotBeABaseURL||($.path=[],wt($,w+"",Gt))}),search:se(Y,function(w){var $=I(this);w=String(w),w==""?$.query=null:(w.charAt(0)=="?"&&(w=w.slice(1)),$.query="",wt($,w,Bt)),k($.searchParams).updateSearchParams($.query)}),searchParams:se(Q),hash:se(G,function(w){var $=I(this);if(w=String(w),w==""){$.fragment=null;return}w.charAt(0)=="#"&&(w=w.slice(1)),$.fragment="",wt($,w,Ct)})}),h(F,"toJSON",function(){return R.call(this)},{enumerable:!0}),h(F,"toString",function(){return R.call(this)},{enumerable:!0}),A){var Ue=A.createObjectURL,Ee=A.revokeObjectURL;Ue&&h($t,"createObjectURL",function($){return Ue.apply(A,arguments)}),Ee&&h($t,"revokeObjectURL",function($){return Ee.apply(A,arguments)})}C($t,"URL"),a({global:!0,forced:!u,sham:!l},{URL:$t})}},e={};function t(o){if(e[o])return e[o].exports;var s=e[o]={exports:{}};return r[o](s,s.exports,t),s.exports}(function(){t.d=function(o,s){for(var i in s)t.o(s,i)&&!t.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:s[i]})}})(),function(){t.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){t.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)}}(),function(){t.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}}();var n={};return function(){"use strict";t.r(n),t.d(n,{Dropzone:function(){return de},default:function(){return $t}});var o=t(2222),s=t(7327),i=t(2772),a=t(6992),l=t(1249),u=t(7042),c=t(561),f=t(8264),h=t(8309),d=t(489),p=t(1539),m=t(4916),v=t(9714),b=t(8783),x=t(4723),C=t(5306),S=t(3123),M=t(3210),A=t(2472),O=t(2990),k=t(8927),D=t(3105),I=t(5035),P=t(4345),N=t(7174),B=t(2846),H=t(4731),Z=t(7209),W=t(6319),te=t(8867),ne=t(7789),be=t(3739),Ae=t(9368),xe=t(4483),Fe=t(2056),Re=t(3462),Ne=t(678),he=t(7462),Se=t(3824),ke=t(5021),Ie=t(2974),Oe=t(5016),ot=t(4747),Ke=t(3948),Qe=t(285);function me(F,R){var E;if(typeof Symbol>"u"||F[Symbol.iterator]==null){if(Array.isArray(F)||(E=oe(F))||R&&F&&typeof F.length=="number"){E&&(F=E);var L=0,g=function(){};return{s:g,n:function(){return L>=F.length?{done:!0}:{done:!1,value:F[L++]}},e:function(z){throw z},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=!0,T=!1,_;return{s:function(){E=F[Symbol.iterator]()},n:function(){var z=E.next();return y=z.done,z},e:function(z){T=!0,_=z},f:function(){try{!y&&E.return!=null&&E.return()}finally{if(T)throw _}}}}function oe(F,R){if(!!F){if(typeof F=="string")return ue(F,R);var E=Object.prototype.toString.call(F).slice(8,-1);if(E==="Object"&&F.constructor&&(E=F.constructor.name),E==="Map"||E==="Set")return Array.from(F);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return ue(F,R)}}function ue(F,R){(R==null||R>F.length)&&(R=F.length);for(var E=0,L=new Array(R);E<R;E++)L[E]=F[E];return L}function fe(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}function le(F,R){for(var E=0;E<R.length;E++){var L=R[E];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(F,L.key,L)}}function pe(F,R,E){return R&&le(F.prototype,R),E&&le(F,E),F}var J=function(){function F(){fe(this,F)}return pe(F,[{key:"on",value:function(E,L){return this._callbacks=this._callbacks||{},this._callbacks[E]||(this._callbacks[E]=[]),this._callbacks[E].push(L),this}},{key:"emit",value:function(E){this._callbacks=this._callbacks||{};for(var L=this._callbacks[E],g=arguments.length,y=new Array(g>1?g-1:0),T=1;T<g;T++)y[T-1]=arguments[T];if(L){var _=me(L,!0),U;try{for(_.s();!(U=_.n()).done;){var z=U.value;z.apply(this,y)}}catch(Y){_.e(Y)}finally{_.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+E,{args:y})),this}},{key:"makeEvent",value:function(E,L){var g={bubbles:!0,cancelable:!0,detail:L};if(typeof window.CustomEvent=="function")return new CustomEvent(E,g);var y=document.createEvent("CustomEvent");return y.initCustomEvent(E,g.bubbles,g.cancelable,g.detail),y}},{key:"off",value:function(E,L){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var g=this._callbacks[E];if(!g)return this;if(arguments.length===1)return delete this._callbacks[E],this;for(var y=0;y<g.length;y++){var T=g[y];if(T===L){g.splice(y,1);break}}return this}}]),F}(),V='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',ie=V;function ce(F,R){var E;if(typeof Symbol>"u"||F[Symbol.iterator]==null){if(Array.isArray(F)||(E=$e(F))||R&&F&&typeof F.length=="number"){E&&(F=E);var L=0,g=function(){};return{s:g,n:function(){return L>=F.length?{done:!0}:{done:!1,value:F[L++]}},e:function(z){throw z},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=!0,T=!1,_;return{s:function(){E=F[Symbol.iterator]()},n:function(){var z=E.next();return y=z.done,z},e:function(z){T=!0,_=z},f:function(){try{!y&&E.return!=null&&E.return()}finally{if(T)throw _}}}}function $e(F,R){if(!!F){if(typeof F=="string")return Ge(F,R);var E=Object.prototype.toString.call(F).slice(8,-1);if(E==="Object"&&F.constructor&&(E=F.constructor.name),E==="Map"||E==="Set")return Array.from(F);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return Ge(F,R)}}function Ge(F,R){(R==null||R>F.length)&&(R=F.length);for(var E=0,L=new Array(R);E<R;E++)L[E]=F[E];return L}var st={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(R,E,L){if(L)return{dzuuid:L.file.upload.uuid,dzchunkindex:L.index,dztotalfilesize:L.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:L.file.upload.totalChunkCount,dzchunkbyteoffset:L.index*this.options.chunkSize}},accept:function(R,E){return E()},chunksUploaded:function(R,E){E()},fallback:function(){var R;this.element.className="".concat(this.element.className," dz-browser-not-supported");var E=ce(this.element.getElementsByTagName("div"),!0),L;try{for(E.s();!(L=E.n()).done;){var g=L.value;if(/(^| )dz-message($| )/.test(g.className)){R=g,g.className="dz-message";break}}}catch(T){E.e(T)}finally{E.f()}R||(R=de.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(R));var y=R.getElementsByTagName("span")[0];return y&&(y.textContent!=null?y.textContent=this.options.dictFallbackMessage:y.innerText!=null&&(y.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(R,E,L,g){var y={srcX:0,srcY:0,srcWidth:R.width,srcHeight:R.height},T=R.width/R.height;E==null&&L==null?(E=y.srcWidth,L=y.srcHeight):E==null?E=L*T:L==null&&(L=E/T),E=Math.min(E,y.srcWidth),L=Math.min(L,y.srcHeight);var _=E/L;if(y.srcWidth>E||y.srcHeight>L)if(g==="crop")T>_?(y.srcHeight=R.height,y.srcWidth=y.srcHeight*_):(y.srcWidth=R.width,y.srcHeight=y.srcWidth/_);else if(g==="contain")T>_?L=E/T:E=L*T;else throw new Error("Unknown resizeMethod '".concat(g,"'"));return y.srcX=(R.width-y.srcWidth)/2,y.srcY=(R.height-y.srcHeight)/2,y.trgWidth=E,y.trgHeight=L,y},transformFile:function(R,E){return(this.options.resizeWidth||this.options.resizeHeight)&&R.type.match(/image.*/)?this.resizeImage(R,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,E):E(R)},previewTemplate:ie,drop:function(R){return this.element.classList.remove("dz-drag-hover")},dragstart:function(R){},dragend:function(R){return this.element.classList.remove("dz-drag-hover")},dragenter:function(R){return this.element.classList.add("dz-drag-hover")},dragover:function(R){return this.element.classList.add("dz-drag-hover")},dragleave:function(R){return this.element.classList.remove("dz-drag-hover")},paste:function(R){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(R){var E=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){R.previewElement=de.createElement(this.options.previewTemplate.trim()),R.previewTemplate=R.previewElement,this.previewsContainer.appendChild(R.previewElement);var L=ce(R.previewElement.querySelectorAll("[data-dz-name]"),!0),g;try{for(L.s();!(g=L.n()).done;){var y=g.value;y.textContent=R.name}}catch(G){L.e(G)}finally{L.f()}var T=ce(R.previewElement.querySelectorAll("[data-dz-size]"),!0),_;try{for(T.s();!(_=T.n()).done;)y=_.value,y.innerHTML=this.filesize(R.size)}catch(G){T.e(G)}finally{T.f()}this.options.addRemoveLinks&&(R._removeLink=de.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),R.previewElement.appendChild(R._removeLink));var U=function(se){return se.preventDefault(),se.stopPropagation(),R.status===de.UPLOADING?de.confirm(E.options.dictCancelUploadConfirmation,function(){return E.removeFile(R)}):E.options.dictRemoveFileConfirmation?de.confirm(E.options.dictRemoveFileConfirmation,function(){return E.removeFile(R)}):E.removeFile(R)},z=ce(R.previewElement.querySelectorAll("[data-dz-remove]"),!0),Y;try{for(z.s();!(Y=z.n()).done;){var Q=Y.value;Q.addEventListener("click",U)}}catch(G){z.e(G)}finally{z.f()}}},removedfile:function(R){return R.previewElement!=null&&R.previewElement.parentNode!=null&&R.previewElement.parentNode.removeChild(R.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(R,E){if(R.previewElement){R.previewElement.classList.remove("dz-file-preview");var L=ce(R.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0),g;try{for(L.s();!(g=L.n()).done;){var y=g.value;y.alt=R.name,y.src=E}}catch(T){L.e(T)}finally{L.f()}return setTimeout(function(){return R.previewElement.classList.add("dz-image-preview")},1)}},error:function(R,E){if(R.previewElement){R.previewElement.classList.add("dz-error"),typeof E!="string"&&E.error&&(E=E.error);var L=ce(R.previewElement.querySelectorAll("[data-dz-errormessage]"),!0),g;try{for(L.s();!(g=L.n()).done;){var y=g.value;y.textContent=E}}catch(T){L.e(T)}finally{L.f()}}},errormultiple:function(){},processing:function(R){if(R.previewElement&&(R.previewElement.classList.add("dz-processing"),R._removeLink))return R._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(R,E,L){if(R.previewElement){var g=ce(R.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0),y;try{for(g.s();!(y=g.n()).done;){var T=y.value;T.nodeName==="PROGRESS"?T.value=E:T.style.width="".concat(E,"%")}}catch(_){g.e(_)}finally{g.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(R){if(R.previewElement)return R.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(R){return this.emit("error",R,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(R){if(R._removeLink&&(R._removeLink.innerHTML=this.options.dictRemoveFile),R.previewElement)return R.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},et=st;function Te(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Te=function(E){return typeof E}:Te=function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},Te(F)}function Ce(F,R){var E;if(typeof Symbol>"u"||F[Symbol.iterator]==null){if(Array.isArray(F)||(E=Nt(F))||R&&F&&typeof F.length=="number"){E&&(F=E);var L=0,g=function(){};return{s:g,n:function(){return L>=F.length?{done:!0}:{done:!1,value:F[L++]}},e:function(z){throw z},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=!0,T=!1,_;return{s:function(){E=F[Symbol.iterator]()},n:function(){var z=E.next();return y=z.done,z},e:function(z){T=!0,_=z},f:function(){try{!y&&E.return!=null&&E.return()}finally{if(T)throw _}}}}function Nt(F,R){if(!!F){if(typeof F=="string")return dt(F,R);var E=Object.prototype.toString.call(F).slice(8,-1);if(E==="Object"&&F.constructor&&(E=F.constructor.name),E==="Map"||E==="Set")return Array.from(F);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return dt(F,R)}}function dt(F,R){(R==null||R>F.length)&&(R=F.length);for(var E=0,L=new Array(R);E<R;E++)L[E]=F[E];return L}function Xt(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}function Zt(F,R){for(var E=0;E<R.length;E++){var L=R[E];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(F,L.key,L)}}function We(F,R,E){return R&&Zt(F.prototype,R),E&&Zt(F,E),F}function Pe(F,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(R&&R.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),R&&He(F,R)}function He(F,R){return He=Object.setPrototypeOf||function(L,g){return L.__proto__=g,L},He(F,R)}function ut(F){var R=Dt();return function(){var L=nt(F),g;if(R){var y=nt(this).constructor;g=Reflect.construct(L,arguments,y)}else g=L.apply(this,arguments);return It(this,g)}}function It(F,R){return R&&(Te(R)==="object"||typeof R=="function")?R:ft(F)}function ft(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function Dt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function nt(F){return nt=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)},nt(F)}var de=function(F){Pe(E,F);var R=ut(E);function E(L,g){var y;Xt(this,E),y=R.call(this);var T,_;if(y.element=L,y.version=E.version,y.clickableElements=[],y.listeners=[],y.files=[],typeof y.element=="string"&&(y.element=document.querySelector(y.element)),!y.element||y.element.nodeType==null)throw new Error("Invalid dropzone element.");if(y.element.dropzone)throw new Error("Dropzone already attached.");E.instances.push(ft(y)),y.element.dropzone=ft(y);var U=(_=E.optionsForElement(y.element))!=null?_:{};if(y.options=E.extend({},et,U,g??{}),y.options.previewTemplate=y.options.previewTemplate.replace(/\n*/g,""),y.options.forceFallback||!E.isBrowserSupported())return It(y,y.options.fallback.call(ft(y)));if(y.options.url==null&&(y.options.url=y.element.getAttribute("action")),!y.options.url)throw new Error("No URL provided.");if(y.options.acceptedFiles&&y.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(y.options.uploadMultiple&&y.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return y.options.acceptedMimeTypes&&(y.options.acceptedFiles=y.options.acceptedMimeTypes,delete y.options.acceptedMimeTypes),y.options.renameFilename!=null&&(y.options.renameFile=function(z){return y.options.renameFilename.call(ft(y),z.name,z)}),typeof y.options.method=="string"&&(y.options.method=y.options.method.toUpperCase()),(T=y.getExistingFallback())&&T.parentNode&&T.parentNode.removeChild(T),y.options.previewsContainer!==!1&&(y.options.previewsContainer?y.previewsContainer=E.getElement(y.options.previewsContainer,"previewsContainer"):y.previewsContainer=y.element),y.options.clickable&&(y.options.clickable===!0?y.clickableElements=[y.element]:y.clickableElements=E.getElements(y.options.clickable,"clickable")),y.init(),y}return We(E,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(g){return g.accepted}).map(function(g){return g})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(g){return!g.accepted}).map(function(g){return g})}},{key:"getFilesWithStatus",value:function(g){return this.files.filter(function(y){return y.status===g}).map(function(y){return y})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(E.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(E.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(E.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(g){return g.status===E.UPLOADING||g.status===E.QUEUED}).map(function(g){return g})}},{key:"init",value:function(){var g=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(E.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var y=function Q(){g.hiddenFileInput&&g.hiddenFileInput.parentNode.removeChild(g.hiddenFileInput),g.hiddenFileInput=document.createElement("input"),g.hiddenFileInput.setAttribute("type","file"),(g.options.maxFiles===null||g.options.maxFiles>1)&&g.hiddenFileInput.setAttribute("multiple","multiple"),g.hiddenFileInput.className="dz-hidden-input",g.options.acceptedFiles!==null&&g.hiddenFileInput.setAttribute("accept",g.options.acceptedFiles),g.options.capture!==null&&g.hiddenFileInput.setAttribute("capture",g.options.capture),g.hiddenFileInput.setAttribute("tabindex","-1"),g.hiddenFileInput.style.visibility="hidden",g.hiddenFileInput.style.position="absolute",g.hiddenFileInput.style.top="0",g.hiddenFileInput.style.left="0",g.hiddenFileInput.style.height="0",g.hiddenFileInput.style.width="0",E.getElement(g.options.hiddenInputContainer,"hiddenInputContainer").appendChild(g.hiddenFileInput),g.hiddenFileInput.addEventListener("change",function(){var G=g.hiddenFileInput.files;if(G.length){var se=Ce(G,!0),Ue;try{for(se.s();!(Ue=se.n()).done;){var Ee=Ue.value;g.addFile(Ee)}}catch(w){se.e(w)}finally{se.f()}}g.emit("addedfiles",G),Q()})};y()}this.URL=window.URL!==null?window.URL:window.webkitURL;var T=Ce(this.events,!0),_;try{for(T.s();!(_=T.n()).done;){var U=_.value;this.on(U,this.options[U])}}catch(Q){T.e(Q)}finally{T.f()}this.on("uploadprogress",function(){return g.updateTotalUploadProgress()}),this.on("removedfile",function(){return g.updateTotalUploadProgress()}),this.on("canceled",function(Q){return g.emit("complete",Q)}),this.on("complete",function(Q){if(g.getAddedFiles().length===0&&g.getUploadingFiles().length===0&&g.getQueuedFiles().length===0)return setTimeout(function(){return g.emit("queuecomplete")},0)});var z=function(G){if(G.dataTransfer.types){for(var se=0;se<G.dataTransfer.types.length;se++)if(G.dataTransfer.types[se]==="Files")return!0}return!1},Y=function(G){if(!!z(G))return G.stopPropagation(),G.preventDefault?G.preventDefault():G.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(G){return g.emit("dragstart",G)},dragenter:function(G){return Y(G),g.emit("dragenter",G)},dragover:function(G){var se;try{se=G.dataTransfer.effectAllowed}catch{}return G.dataTransfer.dropEffect=se==="move"||se==="linkMove"?"move":"copy",Y(G),g.emit("dragover",G)},dragleave:function(G){return g.emit("dragleave",G)},drop:function(G){return Y(G),g.drop(G)},dragend:function(G){return g.emit("dragend",G)}}}],this.clickableElements.forEach(function(Q){return g.listeners.push({element:Q,events:{click:function(se){return(Q!==g.element||se.target===g.element||E.elementInside(se.target,g.element.querySelector(".dz-message")))&&g.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),this.hiddenFileInput!=null&&this.hiddenFileInput.parentNode&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,E.instances.splice(E.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var g,y=0,T=0,_=this.getActiveFiles();if(_.length){var U=Ce(this.getActiveFiles(),!0),z;try{for(U.s();!(z=U.n()).done;){var Y=z.value;y+=Y.upload.bytesSent,T+=Y.upload.total}}catch(Q){U.e(Q)}finally{U.f()}g=100*y/T}else g=100;return this.emit("totaluploadprogress",g,T,y)}},{key:"_getParamName",value:function(g){return typeof this.options.paramName=="function"?this.options.paramName(g):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(g,"]"):"")}},{key:"_renameFile",value:function(g){return typeof this.options.renameFile!="function"?g.name:this.options.renameFile(g)}},{key:"getFallbackForm",value:function(){var g,y;if(g=this.getExistingFallback())return g;var T='<div class="dz-fallback">';this.options.dictFallbackText&&(T+="<p>".concat(this.options.dictFallbackText,"</p>")),T+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var _=E.createElement(T);return this.element.tagName!=="FORM"?(y=E.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),y.appendChild(_)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),y??_}},{key:"getExistingFallback",value:function(){for(var g=function(Y){var Q=Ce(Y,!0),G;try{for(Q.s();!(G=Q.n()).done;){var se=G.value;if(/(^| )fallback($| )/.test(se.className))return se}}catch(Ue){Q.e(Ue)}finally{Q.f()}},y=0,T=["div","form"];y<T.length;y++){var _=T[y],U;if(U=g(this.element.getElementsByTagName(_)))return U}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(g){return function(){var y=[];for(var T in g.events){var _=g.events[T];y.push(g.element.addEventListener(T,_,!1))}return y}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(g){return function(){var y=[];for(var T in g.events){var _=g.events[T];y.push(g.element.removeEventListener(T,_,!1))}return y}()})}},{key:"disable",value:function(){var g=this;return this.clickableElements.forEach(function(y){return y.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(y){return g.cancelUpload(y)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(g){return g.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(g){var y=0,T="b";if(g>0){for(var _=["tb","gb","mb","kb","b"],U=0;U<_.length;U++){var z=_[U],Y=Math.pow(this.options.filesizeBase,4-U)/10;if(g>=Y){y=g/Math.pow(this.options.filesizeBase,4-U),T=z;break}}y=Math.round(10*y)/10}return"<strong>".concat(y,"</strong> ").concat(this.options.dictFileSizeUnits[T])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(g){if(!!g.dataTransfer){this.emit("drop",g);for(var y=[],T=0;T<g.dataTransfer.files.length;T++)y[T]=g.dataTransfer.files[T];if(y.length){var _=g.dataTransfer.items;_&&_.length&&_[0].webkitGetAsEntry!=null?this._addFilesFromItems(_):this.handleFiles(y)}this.emit("addedfiles",y)}}},{key:"paste",value:function(g){if(Ct(g?.clipboardData,function(T){return T.items})!=null){this.emit("paste",g);var y=g.clipboardData.items;if(y.length)return this._addFilesFromItems(y)}}},{key:"handleFiles",value:function(g){var y=Ce(g,!0),T;try{for(y.s();!(T=y.n()).done;){var _=T.value;this.addFile(_)}}catch(U){y.e(U)}finally{y.f()}}},{key:"_addFilesFromItems",value:function(g){var y=this;return function(){var T=[],_=Ce(g,!0),U;try{for(_.s();!(U=_.n()).done;){var z=U.value,Y;z.webkitGetAsEntry!=null&&(Y=z.webkitGetAsEntry())?Y.isFile?T.push(y.addFile(z.getAsFile())):Y.isDirectory?T.push(y._addFilesFromDirectory(Y,Y.name)):T.push(void 0):z.getAsFile!=null&&(z.kind==null||z.kind==="file")?T.push(y.addFile(z.getAsFile())):T.push(void 0)}}catch(Q){_.e(Q)}finally{_.f()}return T}()}},{key:"_addFilesFromDirectory",value:function(g,y){var T=this,_=g.createReader(),U=function(Q){return wt(console,"log",function(G){return G.log(Q)})},z=function Y(){return _.readEntries(function(Q){if(Q.length>0){var G=Ce(Q,!0),se;try{for(G.s();!(se=G.n()).done;){var Ue=se.value;Ue.isFile?Ue.file(function(Ee){if(!(T.options.ignoreHiddenFiles&&Ee.name.substring(0,1)==="."))return Ee.fullPath="".concat(y,"/").concat(Ee.name),T.addFile(Ee)}):Ue.isDirectory&&T._addFilesFromDirectory(Ue,"".concat(y,"/").concat(Ue.name))}}catch(Ee){G.e(Ee)}finally{G.f()}Y()}return null},U)};return z()}},{key:"accept",value:function(g,y){this.options.maxFilesize&&g.size>this.options.maxFilesize*1024*1024?y(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(g.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):E.isValidFile(g,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(y(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",g)):this.options.accept.call(this,g,y):y(this.options.dictInvalidFileType)}},{key:"addFile",value:function(g){var y=this;g.upload={uuid:E.uuidv4(),progress:0,total:g.size,bytesSent:0,filename:this._renameFile(g)},this.files.push(g),g.status=E.ADDED,this.emit("addedfile",g),this._enqueueThumbnail(g),this.accept(g,function(T){T?(g.accepted=!1,y._errorProcessing([g],T)):(g.accepted=!0,y.options.autoQueue&&y.enqueueFile(g)),y._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(g){var y=Ce(g,!0),T;try{for(y.s();!(T=y.n()).done;){var _=T.value;this.enqueueFile(_)}}catch(U){y.e(U)}finally{y.f()}return null}},{key:"enqueueFile",value:function(g){var y=this;if(g.status===E.ADDED&&g.accepted===!0){if(g.status=E.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return y.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(g){var y=this;if(this.options.createImageThumbnails&&g.type.match(/image.*/)&&g.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(g),setTimeout(function(){return y._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var g=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var y=this._thumbnailQueue.shift();return this.createThumbnail(y,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(T){return g.emit("thumbnail",y,T),g._processingThumbnail=!1,g._processThumbnailQueue()})}}},{key:"removeFile",value:function(g){if(g.status===E.UPLOADING&&this.cancelUpload(g),this.files=Vt(this.files,g),this.emit("removedfile",g),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(g){g==null&&(g=!1);var y=Ce(this.files.slice(),!0),T;try{for(y.s();!(T=y.n()).done;){var _=T.value;(_.status!==E.UPLOADING||g)&&this.removeFile(_)}}catch(U){y.e(U)}finally{y.f()}return null}},{key:"resizeImage",value:function(g,y,T,_,U){var z=this;return this.createThumbnail(g,y,T,_,!0,function(Y,Q){if(Q==null)return U(g);var G=z.options.resizeMimeType;G==null&&(G=g.type);var se=Q.toDataURL(G,z.options.resizeQuality);return(G==="image/jpeg"||G==="image/jpg")&&(se=Er.restore(g.dataURL,se)),U(E.dataURItoBlob(se))})}},{key:"createThumbnail",value:function(g,y,T,_,U,z){var Y=this,Q=new FileReader;Q.onload=function(){if(g.dataURL=Q.result,g.type==="image/svg+xml"){z?.(Q.result);return}Y.createThumbnailFromUrl(g,y,T,_,U,z)},Q.readAsDataURL(g)}},{key:"displayExistingFile",value:function(g,y,T,_){var U=this,z=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",g),this.emit("complete",g),!z)this.emit("thumbnail",g,y),T&&T();else{var Y=function(G){U.emit("thumbnail",g,G),T&&T()};g.dataURL=y,this.createThumbnailFromUrl(g,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,Y,_)}}},{key:"createThumbnailFromUrl",value:function(g,y,T,_,U,z,Y){var Q=this,G=document.createElement("img");return Y&&(G.crossOrigin=Y),U=getComputedStyle(document.body).imageOrientation=="from-image"?!1:U,G.onload=function(){var se=function(Ee){return Ee(1)};return typeof EXIF<"u"&&EXIF!==null&&U&&(se=function(Ee){return EXIF.getData(G,function(){return Ee(EXIF.getTag(this,"Orientation"))})}),se(function(Ue){g.width=G.width,g.height=G.height;var Ee=Q.options.resize.call(Q,g,y,T,_),w=document.createElement("canvas"),$=w.getContext("2d");switch(w.width=Ee.trgWidth,w.height=Ee.trgHeight,Ue>4&&(w.width=Ee.trgHeight,w.height=Ee.trgWidth),Ue){case 2:$.translate(w.width,0),$.scale(-1,1);break;case 3:$.translate(w.width,w.height),$.rotate(Math.PI);break;case 4:$.translate(0,w.height),$.scale(1,-1);break;case 5:$.rotate(.5*Math.PI),$.scale(1,-1);break;case 6:$.rotate(.5*Math.PI),$.translate(0,-w.width);break;case 7:$.rotate(.5*Math.PI),$.translate(w.height,-w.width),$.scale(-1,1);break;case 8:$.rotate(-.5*Math.PI),$.translate(-w.height,0);break}xt($,G,Ee.srcX!=null?Ee.srcX:0,Ee.srcY!=null?Ee.srcY:0,Ee.srcWidth,Ee.srcHeight,Ee.trgX!=null?Ee.trgX:0,Ee.trgY!=null?Ee.trgY:0,Ee.trgWidth,Ee.trgHeight);var j=w.toDataURL("image/png");if(z!=null)return z(j,w)})},z!=null&&(G.onerror=z),G.src=g.dataURL}},{key:"processQueue",value:function(){var g=this.options.parallelUploads,y=this.getUploadingFiles().length,T=y;if(!(y>=g)){var _=this.getQueuedFiles();if(_.length>0){if(this.options.uploadMultiple)return this.processFiles(_.slice(0,g-y));for(;T<g;){if(!_.length)return;this.processFile(_.shift()),T++}}}}},{key:"processFile",value:function(g){return this.processFiles([g])}},{key:"processFiles",value:function(g){var y=Ce(g,!0),T;try{for(y.s();!(T=y.n()).done;){var _=T.value;_.processing=!0,_.status=E.UPLOADING,this.emit("processing",_)}}catch(U){y.e(U)}finally{y.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",g),this.uploadFiles(g)}},{key:"_getFilesWithXhr",value:function(g){var y;return y=this.files.filter(function(T){return T.xhr===g}).map(function(T){return T})}},{key:"cancelUpload",value:function(g){if(g.status===E.UPLOADING){var y=this._getFilesWithXhr(g.xhr),T=Ce(y,!0),_;try{for(T.s();!(_=T.n()).done;){var U=_.value;U.status=E.CANCELED}}catch(G){T.e(G)}finally{T.f()}typeof g.xhr<"u"&&g.xhr.abort();var z=Ce(y,!0),Y;try{for(z.s();!(Y=z.n()).done;){var Q=Y.value;this.emit("canceled",Q)}}catch(G){z.e(G)}finally{z.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",y)}else(g.status===E.ADDED||g.status===E.QUEUED)&&(g.status=E.CANCELED,this.emit("canceled",g),this.options.uploadMultiple&&this.emit("canceledmultiple",[g]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(g){if(typeof g=="function"){for(var y=arguments.length,T=new Array(y>1?y-1:0),_=1;_<y;_++)T[_-1]=arguments[_];return g.apply(this,T)}return g}},{key:"uploadFile",value:function(g){return this.uploadFiles([g])}},{key:"uploadFiles",value:function(g){var y=this;this._transformFiles(g,function(T){if(y.options.chunking){var _=T[0];g[0].upload.chunked=y.options.chunking&&(y.options.forceChunking||_.size>y.options.chunkSize),g[0].upload.totalChunkCount=Math.ceil(_.size/y.options.chunkSize)}if(g[0].upload.chunked){var U=g[0],z=T[0],Y=0;U.upload.chunks=[];var Q=function(){for(var w=0;U.upload.chunks[w]!==void 0;)w++;if(!(w>=U.upload.totalChunkCount)){Y++;var $=w*y.options.chunkSize,j=Math.min($+y.options.chunkSize,z.size),q={name:y._getParamName(0),data:z.webkitSlice?z.webkitSlice($,j):z.slice($,j),filename:U.upload.filename,chunkIndex:w};U.upload.chunks[w]={file:U,index:w,dataBlock:q,status:E.UPLOADING,progress:0,retries:0},y._uploadData(g,[q])}};if(U.upload.finishedChunkUpload=function(Ee,w){var $=!0;Ee.status=E.SUCCESS,Ee.dataBlock=null,Ee.xhr=null;for(var j=0;j<U.upload.totalChunkCount;j++){if(U.upload.chunks[j]===void 0)return Q();U.upload.chunks[j].status!==E.SUCCESS&&($=!1)}$&&y.options.chunksUploaded(U,function(){y._finished(g,w,null)})},y.options.parallelChunkUploads)for(var G=0;G<U.upload.totalChunkCount;G++)Q();else Q()}else{for(var se=[],Ue=0;Ue<g.length;Ue++)se[Ue]={name:y._getParamName(Ue),data:T[Ue],filename:g[Ue].upload.filename};y._uploadData(g,se)}})}},{key:"_getChunk",value:function(g,y){for(var T=0;T<g.upload.totalChunkCount;T++)if(g.upload.chunks[T]!==void 0&&g.upload.chunks[T].xhr===y)return g.upload.chunks[T]}},{key:"_uploadData",value:function(g,y){var T=this,_=new XMLHttpRequest,U=Ce(g,!0),z;try{for(U.s();!(z=U.n()).done;){var Y=z.value;Y.xhr=_}}catch(ze){U.e(ze)}finally{U.f()}g[0].upload.chunked&&(g[0].upload.chunks[y[0].chunkIndex].xhr=_);var Q=this.resolveOption(this.options.method,g),G=this.resolveOption(this.options.url,g);_.open(Q,G,!0);var se=this.resolveOption(this.options.timeout,g);se&&(_.timeout=this.resolveOption(this.options.timeout,g)),_.withCredentials=!!this.options.withCredentials,_.onload=function(ze){T._finishedUploading(g,_,ze)},_.ontimeout=function(){T._handleUploadError(g,_,"Request timedout after ".concat(T.options.timeout/1e3," seconds"))},_.onerror=function(){T._handleUploadError(g,_)};var Ue=_.upload!=null?_.upload:_;Ue.onprogress=function(ze){return T._updateFilesUploadProgress(g,_,ze)};var Ee={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&E.extend(Ee,this.options.headers);for(var w in Ee){var $=Ee[w];$&&_.setRequestHeader(w,$)}var j=new FormData;if(this.options.params){var q=this.options.params;typeof q=="function"&&(q=q.call(this,g,_,g[0].upload.chunked?this._getChunk(g[0],_):null));for(var X in q){var ye=q[X];if(Array.isArray(ye))for(var ae=0;ae<ye.length;ae++)j.append(X,ye[ae]);else j.append(X,ye)}}var De=Ce(g,!0),je;try{for(De.s();!(je=De.n()).done;){var Xe=je.value;this.emit("sending",Xe,_,j)}}catch(ze){De.e(ze)}finally{De.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",g,_,j),this._addFormElementData(j);for(var at=0;at<y.length;at++){var K=y[at];j.append(K.name,K.data,K.filename)}this.submitRequest(_,j,g)}},{key:"_transformFiles",value:function(g,y){for(var T=this,_=[],U=0,z=function(G){T.options.transformFile.call(T,g[G],function(se){_[G]=se,++U===g.length&&y(_)})},Y=0;Y<g.length;Y++)z(Y)}},{key:"_addFormElementData",value:function(g){if(this.element.tagName==="FORM"){var y=Ce(this.element.querySelectorAll("input, textarea, select, button"),!0),T;try{for(y.s();!(T=y.n()).done;){var _=T.value,U=_.getAttribute("name"),z=_.getAttribute("type");if(z&&(z=z.toLowerCase()),!(typeof U>"u"||U===null))if(_.tagName==="SELECT"&&_.hasAttribute("multiple")){var Y=Ce(_.options,!0),Q;try{for(Y.s();!(Q=Y.n()).done;){var G=Q.value;G.selected&&g.append(U,G.value)}}catch(se){Y.e(se)}finally{Y.f()}}else(!z||z!=="checkbox"&&z!=="radio"||_.checked)&&g.append(U,_.value)}}catch(se){y.e(se)}finally{y.f()}}}},{key:"_updateFilesUploadProgress",value:function(g,y,T){if(g[0].upload.chunked){var Y=g[0],Q=this._getChunk(Y,y);T?(Q.progress=100*T.loaded/T.total,Q.total=T.total,Q.bytesSent=T.loaded):(Q.progress=100,Q.bytesSent=Q.total),Y.upload.progress=0,Y.upload.total=0,Y.upload.bytesSent=0;for(var G=0;G<Y.upload.totalChunkCount;G++)Y.upload.chunks[G]&&typeof Y.upload.chunks[G].progress<"u"&&(Y.upload.progress+=Y.upload.chunks[G].progress,Y.upload.total+=Y.upload.chunks[G].total,Y.upload.bytesSent+=Y.upload.chunks[G].bytesSent);Y.upload.progress=Y.upload.progress/Y.upload.totalChunkCount,this.emit("uploadprogress",Y,Y.upload.progress,Y.upload.bytesSent)}else{var _=Ce(g,!0),U;try{for(_.s();!(U=_.n()).done;){var z=U.value;z.upload.total&&z.upload.bytesSent&&z.upload.bytesSent==z.upload.total||(T?(z.upload.progress=100*T.loaded/T.total,z.upload.total=T.total,z.upload.bytesSent=T.loaded):(z.upload.progress=100,z.upload.bytesSent=z.upload.total),this.emit("uploadprogress",z,z.upload.progress,z.upload.bytesSent))}}catch(se){_.e(se)}finally{_.f()}}}},{key:"_finishedUploading",value:function(g,y,T){var _;if(g[0].status!==E.CANCELED&&y.readyState===4){if(y.responseType!=="arraybuffer"&&y.responseType!=="blob"&&(_=y.responseText,y.getResponseHeader("content-type")&&~y.getResponseHeader("content-type").indexOf("application/json")))try{_=JSON.parse(_)}catch(U){T=U,_="Invalid JSON response from server."}this._updateFilesUploadProgress(g,y),200<=y.status&&y.status<300?g[0].upload.chunked?g[0].upload.finishedChunkUpload(this._getChunk(g[0],y),_):this._finished(g,_,T):this._handleUploadError(g,y,_)}}},{key:"_handleUploadError",value:function(g,y,T){if(g[0].status!==E.CANCELED){if(g[0].upload.chunked&&this.options.retryChunks){var _=this._getChunk(g[0],y);if(_.retries++<this.options.retryChunksLimit){this._uploadData(g,[_.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(g,T||this.options.dictResponseError.replace("{{statusCode}}",y.status),y)}}},{key:"submitRequest",value:function(g,y,T){if(g.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}g.send(y)}},{key:"_finished",value:function(g,y,T){var _=Ce(g,!0),U;try{for(_.s();!(U=_.n()).done;){var z=U.value;z.status=E.SUCCESS,this.emit("success",z,y,T),this.emit("complete",z)}}catch(Y){_.e(Y)}finally{_.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",g,y,T),this.emit("completemultiple",g)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(g,y,T){var _=Ce(g,!0),U;try{for(_.s();!(U=_.n()).done;){var z=U.value;z.status=E.ERROR,this.emit("error",z,y,T),this.emit("complete",z)}}catch(Y){_.e(Y)}finally{_.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",g,y,T),this.emit("completemultiple",g)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=J,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(g){for(var y=arguments.length,T=new Array(y>1?y-1:0),_=1;_<y;_++)T[_-1]=arguments[_];for(var U=0,z=T;U<z.length;U++){var Y=z[U];for(var Q in Y){var G=Y[Q];g[Q]=G}}return g}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(g){var y=Math.random()*16|0,T=g==="x"?y:y&3|8;return T.toString(16)})}}]),E}(J);de.initClass(),de.version="5.9.3",de.options={},de.optionsForElement=function(F){if(F.getAttribute("id"))return de.options[wr(F.getAttribute("id"))]},de.instances=[],de.forElement=function(F){if(typeof F=="string"&&(F=document.querySelector(F)),F?.dropzone==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return F.dropzone},de.autoDiscover=!0,de.discover=function(){var F;if(document.querySelectorAll)F=document.querySelectorAll(".dropzone");else{F=[];var R=function(L){return function(){var g=[],y=Ce(L,!0),T;try{for(y.s();!(T=y.n()).done;){var _=T.value;/(^| )dropzone($| )/.test(_.className)?g.push(F.push(_)):g.push(void 0)}}catch(U){y.e(U)}finally{y.f()}return g}()};R(document.getElementsByTagName("div")),R(document.getElementsByTagName("form"))}return function(){var E=[],L=Ce(F,!0),g;try{for(L.s();!(g=L.n()).done;){var y=g.value;de.optionsForElement(y)!==!1?E.push(new de(y)):E.push(void 0)}}catch(T){L.e(T)}finally{L.f()}return E}()},de.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],de.isBrowserSupported=function(){var F=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))F=!1;else{de.blacklistedBrowsers!==void 0&&(de.blockedBrowsers=de.blacklistedBrowsers);var R=Ce(de.blockedBrowsers,!0),E;try{for(R.s();!(E=R.n()).done;){var L=E.value;if(L.test(navigator.userAgent)){F=!1;continue}}}catch(g){R.e(g)}finally{R.f()}}else F=!1;return F},de.dataURItoBlob=function(F){for(var R=atob(F.split(",")[1]),E=F.split(",")[0].split(":")[1].split(";")[0],L=new ArrayBuffer(R.length),g=new Uint8Array(L),y=0,T=R.length,_=0<=T;_?y<=T:y>=T;_?y++:y--)g[y]=R.charCodeAt(y);return new Blob([L],{type:E})};var Vt=function(R,E){return R.filter(function(L){return L!==E}).map(function(L){return L})},wr=function(R){return R.replace(/[\-_](\w)/g,function(E){return E.charAt(1).toUpperCase()})};de.createElement=function(F){var R=document.createElement("div");return R.innerHTML=F,R.childNodes[0]},de.elementInside=function(F,R){if(F===R)return!0;for(;F=F.parentNode;)if(F===R)return!0;return!1},de.getElement=function(F,R){var E;if(typeof F=="string"?E=document.querySelector(F):F.nodeType!=null&&(E=F),E==null)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector or a plain HTML element."));return E},de.getElements=function(F,R){var E,L;if(F instanceof Array){L=[];try{var g=Ce(F,!0),y;try{for(g.s();!(y=g.n()).done;)E=y.value,L.push(this.getElement(E,R))}catch(U){g.e(U)}finally{g.f()}}catch{L=null}}else if(typeof F=="string"){L=[];var T=Ce(document.querySelectorAll(F),!0),_;try{for(T.s();!(_=T.n()).done;)E=_.value,L.push(E)}catch(U){T.e(U)}finally{T.f()}}else F.nodeType!=null&&(L=[F]);if(L==null||!L.length)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return L},de.confirm=function(F,R,E){if(window.confirm(F))return R();if(E!=null)return E()},de.isValidFile=function(F,R){if(!R)return!0;R=R.split(",");var E=F.type,L=E.replace(/\/.*$/,""),g=Ce(R,!0),y;try{for(g.s();!(y=g.n()).done;){var T=y.value;if(T=T.trim(),T.charAt(0)==="."){if(F.name.toLowerCase().indexOf(T.toLowerCase(),F.name.length-T.length)!==-1)return!0}else if(/\/\*$/.test(T)){if(L===T.replace(/\/.*$/,""))return!0}else if(E===T)return!0}}catch(_){g.e(_)}finally{g.f()}return!1},typeof jQuery<"u"&&jQuery!==null&&(jQuery.fn.dropzone=function(F){return this.each(function(){return new de(this,F)})}),de.ADDED="added",de.QUEUED="queued",de.ACCEPTED=de.QUEUED,de.UPLOADING="uploading",de.PROCESSING=de.UPLOADING,de.CANCELED="canceled",de.ERROR="error",de.SUCCESS="success";var Gt=function(R){var E=R.naturalWidth,L=R.naturalHeight,g=document.createElement("canvas");g.width=1,g.height=L;var y=g.getContext("2d");y.drawImage(R,0,0);for(var T=y.getImageData(1,0,1,L),_=T.data,U=0,z=L,Y=L;Y>U;){var Q=_[(Y-1)*4+3];Q===0?z=Y:U=Y,Y=z+U>>1}var G=Y/L;return G===0?1:G},xt=function(R,E,L,g,y,T,_,U,z,Y){var Q=Gt(E);return R.drawImage(E,L,g,y,T,_,U,z,Y/Q)},Er=function(){function F(){Xt(this,F)}return We(F,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(E){for(var L="",g=void 0,y=void 0,T="",_=void 0,U=void 0,z=void 0,Y="",Q=0;g=E[Q++],y=E[Q++],T=E[Q++],_=g>>2,U=(g&3)<<4|y>>4,z=(y&15)<<2|T>>6,Y=T&63,isNaN(y)?z=Y=64:isNaN(T)&&(Y=64),L=L+this.KEY_STR.charAt(_)+this.KEY_STR.charAt(U)+this.KEY_STR.charAt(z)+this.KEY_STR.charAt(Y),g=y=T="",_=U=z=Y="",Q<E.length;);return L}},{key:"restore",value:function(E,L){if(!E.match("data:image/jpeg;base64,"))return L;var g=this.decode64(E.replace("data:image/jpeg;base64,","")),y=this.slice2Segments(g),T=this.exifManipulation(L,y);return"data:image/jpeg;base64,".concat(this.encode64(T))}},{key:"exifManipulation",value:function(E,L){var g=this.getExifArray(L),y=this.insertExif(E,g),T=new Uint8Array(y);return T}},{key:"getExifArray",value:function(E){for(var L=void 0,g=0;g<E.length;){if(L=E[g],L[0]===255&L[1]===225)return L;g++}return[]}},{key:"insertExif",value:function(E,L){var g=E.replace("data:image/jpeg;base64,",""),y=this.decode64(g),T=y.indexOf(255,3),_=y.slice(0,T),U=y.slice(T),z=_;return z=z.concat(L),z=z.concat(U),z}},{key:"slice2Segments",value:function(E){for(var L=0,g=[];;){var y;if(E[L]===255&E[L+1]===218)break;if(E[L]===255&E[L+1]===216)L+=2;else{y=E[L+2]*256+E[L+3];var T=L+y+2,_=E.slice(L,T);g.push(_),L=T}if(L>E.length)break}return g}},{key:"decode64",value:function(E){var L="",g=void 0,y=void 0,T="",_=void 0,U=void 0,z=void 0,Y="",Q=0,G=[],se=/[^A-Za-z0-9\+\/\=]/g;for(se.exec(E)&&console.warn(`There were invalid base64 characters in the input text.
Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
-Expect errors in decoding.`),E=E.replace(/[^A-Za-z0-9\+\/\=]/g,"");_=this.KEY_STR.indexOf(E.charAt(Q++)),U=this.KEY_STR.indexOf(E.charAt(Q++)),z=this.KEY_STR.indexOf(E.charAt(Q++)),Y=this.KEY_STR.indexOf(E.charAt(Q++)),m=_<<2|U>>4,v=(U&15)<<4|z>>2,T=(z&3)<<6|Y,G.push(m),z!==64&&G.push(v),Y!==64&&G.push(T),m=v=T="",_=U=z=Y="",Q<E.length;);return G}}]),F}();Er.initClass();var Bt=function(R,E){var L=!1,m=!0,v=R.document,T=v.documentElement,_=v.addEventListener?"addEventListener":"attachEvent",U=v.addEventListener?"removeEventListener":"detachEvent",z=v.addEventListener?"":"on",Y=function G(se){if(!(se.type==="readystatechange"&&v.readyState!=="complete")&&((se.type==="load"?R:v)[U](z+se.type,G,!1),!L&&(L=!0)))return E.call(R,se.type||se)},Q=function G(){try{T.doScroll("left")}catch{setTimeout(G,50);return}return Y("poll")};if(v.readyState!=="complete"){if(v.createEventObject&&T.doScroll){try{m=!R.frameElement}catch{}m&&Q()}return v[_](z+"DOMContentLoaded",Y,!1),v[_](z+"readystatechange",Y,!1),R[_](z+"load",Y,!1)}};de._autoDiscoverFunction=function(){if(de.autoDiscover)return de.discover()},Bt(window,de._autoDiscoverFunction);function Ct(F,R){return typeof F<"u"&&F!==null?R(F):void 0}function wt(F,R,E){if(typeof F<"u"&&F!==null&&typeof F[R]=="function")return E(F,R)}window.Dropzone=de;var $t=de}(),n}()})});var fa=re((fv,xf)=>{xf.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
-`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var _i=re((hv,ha)=>{"use strict";ha.exports=fa()});var bn=re((pv,pa)=>{pa.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/});var va=re((mv,ga)=>{"use strict";var ma={};function wf(r){var e,t,n=ma[r];if(n)return n;for(n=ma[r]=[],e=0;e<128;e++)t=String.fromCharCode(e),/^[0-9a-z]$/i.test(t)?n.push(t):n.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<r.length;e++)n[r.charCodeAt(e)]=r[e];return n}function xn(r,e,t){var n,o,s,i,a,l="";for(typeof e!="string"&&(t=e,e=xn.defaultChars),typeof t>"u"&&(t=!0),a=wf(e),n=0,o=r.length;n<o;n++){if(s=r.charCodeAt(n),t&&s===37&&n+2<o&&/^[0-9a-f]{2}$/i.test(r.slice(n+1,n+3))){l+=r.slice(n,n+3),n+=2;continue}if(s<128){l+=a[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&n+1<o&&(i=r.charCodeAt(n+1),i>=56320&&i<=57343)){l+=encodeURIComponent(r[n]+r[n+1]),n++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(r[n])}return l}xn.defaultChars=";/?:@&=+$,-_.!~*'()#";xn.componentChars="-_.!~*'()";ga.exports=xn});var xa=re((gv,ba)=>{"use strict";var ya={};function Ef(r){var e,t,n=ya[r];if(n)return n;for(n=ya[r]=[],e=0;e<128;e++)t=String.fromCharCode(e),n.push(t);for(e=0;e<r.length;e++)t=r.charCodeAt(e),n[t]="%"+("0"+t.toString(16).toUpperCase()).slice(-2);return n}function wn(r,e){var t;return typeof e!="string"&&(e=wn.defaultChars),t=Ef(e),r.replace(/(%[a-f0-9]{2})+/gi,function(n){var o,s,i,a,l,u,c,f="";for(o=0,s=n.length;o<s;o+=3){if(i=parseInt(n.slice(o+1,o+3),16),i<128){f+=t[i];continue}if((i&224)===192&&o+3<s&&(a=parseInt(n.slice(o+4,o+6),16),(a&192)===128)){c=i<<6&1984|a&63,c<128?f+="\uFFFD\uFFFD":f+=String.fromCharCode(c),o+=3;continue}if((i&240)===224&&o+6<s&&(a=parseInt(n.slice(o+4,o+6),16),l=parseInt(n.slice(o+7,o+9),16),(a&192)===128&&(l&192)===128)){c=i<<12&61440|a<<6&4032|l&63,c<2048||c>=55296&&c<=57343?f+="\uFFFD\uFFFD\uFFFD":f+=String.fromCharCode(c),o+=6;continue}if((i&248)===240&&o+9<s&&(a=parseInt(n.slice(o+4,o+6),16),l=parseInt(n.slice(o+7,o+9),16),u=parseInt(n.slice(o+10,o+12),16),(a&192)===128&&(l&192)===128&&(u&192)===128)){c=i<<18&1835008|a<<12&258048|l<<6&4032|u&63,c<65536||c>1114111?f+="\uFFFD\uFFFD\uFFFD\uFFFD":(c-=65536,f+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),o+=9;continue}f+="\uFFFD"}return f})}wn.defaultChars=";/?:@&=+$,#";wn.componentChars="";ba.exports=wn});var Ea=re((vv,wa)=>{"use strict";wa.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}});var Da=re((yv,Ia)=>{"use strict";function En(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Sf=/^([a-z0-9.+-]+:)/i,Cf=/:[0-9]*$/,Af=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,kf=["<",">",'"',"`"," ","\r",`
-`," "],Tf=["{","}","|","\\","^","`"].concat(kf),If=["'"].concat(Tf),Sa=["%","/","?",";","#"].concat(If),Ca=["/","?","#"],Df=255,Aa=/^[+a-z0-9A-Z_-]{0,63}$/,Lf=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ka={javascript:!0,"javascript:":!0},Ta={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ff(r,e){if(r&&r instanceof En)return r;var t=new En;return t.parse(r,e),t}En.prototype.parse=function(r,e){var t,n,o,s,i,a=r;if(a=a.trim(),!e&&r.split("#").length===1){var l=Af.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var u=Sf.exec(a);if(u&&(u=u[0],o=u.toLowerCase(),this.protocol=u,a=a.substr(u.length)),(e||u||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)==="//",i&&!(u&&ka[u])&&(a=a.substr(2),this.slashes=!0)),!ka[u]&&(i||u&&!Ta[u])){var c=-1;for(t=0;t<Ca.length;t++)s=a.indexOf(Ca[t]),s!==-1&&(c===-1||s<c)&&(c=s);var f,d;for(c===-1?d=a.lastIndexOf("@"):d=a.lastIndexOf("@",c),d!==-1&&(f=a.slice(0,d),a=a.slice(d+1),this.auth=f),c=-1,t=0;t<Sa.length;t++)s=a.indexOf(Sa[t]),s!==-1&&(c===-1||s<c)&&(c=s);c===-1&&(c=a.length),a[c-1]===":"&&c--;var h=a.slice(0,c);a=a.slice(c),this.parseHost(h),this.hostname=this.hostname||"";var p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){var g=this.hostname.split(/\./);for(t=0,n=g.length;t<n;t++){var y=g[t];if(!!y&&!y.match(Aa)){for(var b="",x=0,k=y.length;x<k;x++)y.charCodeAt(x)>127?b+="x":b+=y[x];if(!b.match(Aa)){var S=g.slice(0,t),O=g.slice(t+1),C=y.match(Lf);C&&(S.push(C[1]),O.unshift(C[2])),O.length&&(a=O.join(".")+a),this.hostname=S.join(".");break}}}}this.hostname.length>Df&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var P=a.indexOf("#");P!==-1&&(this.hash=a.substr(P),a=a.slice(0,P));var A=a.indexOf("?");return A!==-1&&(this.search=a.substr(A),a=a.slice(0,A)),a&&(this.pathname=a),Ta[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this};En.prototype.parseHost=function(r){var e=Cf.exec(r);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),r=r.substr(0,r.length-e.length)),r&&(this.hostname=r)};Ia.exports=Ff});var Ni=re((bv,$r)=>{"use strict";$r.exports.encode=va();$r.exports.decode=xa();$r.exports.format=Ea();$r.exports.parse=Da()});var Bi=re((xv,La)=>{La.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var $i=re((wv,Fa)=>{Fa.exports=/[\0-\x1F\x7F-\x9F]/});var Oa=re((Ev,Ra)=>{Ra.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/});var Ui=re((Sv,Pa)=>{Pa.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var Ma=re(gr=>{"use strict";gr.Any=Bi();gr.Cc=$i();gr.Cf=Oa();gr.P=bn();gr.Z=Ui()});var _e=re(rt=>{"use strict";function Rf(r){return Object.prototype.toString.call(r)}function Of(r){return Rf(r)==="[object String]"}var Pf=Object.prototype.hasOwnProperty;function Na(r,e){return Pf.call(r,e)}function Mf(r){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){if(!!t){if(typeof t!="object")throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){r[n]=t[n]})}}),r}function _f(r,e,t){return[].concat(r.slice(0,e),t,r.slice(e+1))}function Ba(r){return!(r>=55296&&r<=57343||r>=64976&&r<=65007||(r&65535)===65535||(r&65535)===65534||r>=0&&r<=8||r===11||r>=14&&r<=31||r>=127&&r<=159||r>1114111)}function $a(r){if(r>65535){r-=65536;var e=55296+(r>>10),t=56320+(r&1023);return String.fromCharCode(e,t)}return String.fromCharCode(r)}var Ua=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,Nf=/&([a-z#][a-z0-9]{1,31});/gi,Bf=new RegExp(Ua.source+"|"+Nf.source,"gi"),$f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,_a=_i();function Uf(r,e){var t=0;return Na(_a,e)?_a[e]:e.charCodeAt(0)===35&&$f.test(e)&&(t=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Ba(t))?$a(t):r}function zf(r){return r.indexOf("\\")<0?r:r.replace(Ua,"$1")}function jf(r){return r.indexOf("\\")<0&&r.indexOf("&")<0?r:r.replace(Bf,function(e,t,n){return t||Uf(e,n)})}var Hf=/[&<>"]/,qf=/[&<>"]/g,Vf={"&":"&","<":"<",">":">",'"':"""};function Gf(r){return Vf[r]}function Wf(r){return Hf.test(r)?r.replace(qf,Gf):r}var Yf=/[.?*+^$[\]\\(){}|-]/g;function Kf(r){return r.replace(Yf,"\\$&")}function Xf(r){switch(r){case 9:case 32:return!0}return!1}function Zf(r){if(r>=8192&&r<=8202)return!0;switch(r){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var Qf=bn();function Jf(r){return Qf.test(r)}function eh(r){switch(r){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function th(r){return r=r.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(r=r.replace(/ẞ/g,"\xDF")),r.toLowerCase().toUpperCase()}rt.lib={};rt.lib.mdurl=Ni();rt.lib.ucmicro=Ma();rt.assign=Mf;rt.isString=Of;rt.has=Na;rt.unescapeMd=zf;rt.unescapeAll=jf;rt.isValidEntityCode=Ba;rt.fromCodePoint=$a;rt.escapeHtml=Wf;rt.arrayReplaceAt=_f;rt.isSpace=Xf;rt.isWhiteSpace=Zf;rt.isMdAsciiPunct=eh;rt.isPunctChar=Jf;rt.escapeRE=Kf;rt.normalizeReference=th});var ja=re((kv,za)=>{"use strict";za.exports=function(e,t,n){var o,s,i,a,l=-1,u=e.posMax,c=e.pos;for(e.pos=t+1,o=1;e.pos<u;){if(i=e.src.charCodeAt(e.pos),i===93&&(o--,o===0)){s=!0;break}if(a=e.pos,e.md.inline.skipToken(e),i===91){if(a===e.pos-1)o++;else if(n)return e.pos=c,-1}}return s&&(l=e.pos),e.pos=c,l}});var Va=re((Tv,qa)=>{"use strict";var Ha=_e().unescapeAll;qa.exports=function(e,t,n){var o,s,i=0,a=t,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(t)===60){for(t++;t<n;){if(o=e.charCodeAt(t),o===10||o===60)return l;if(o===62)return l.pos=t+1,l.str=Ha(e.slice(a+1,t)),l.ok=!0,l;if(o===92&&t+1<n){t+=2;continue}t++}return l}for(s=0;t<n&&(o=e.charCodeAt(t),!(o===32||o<32||o===127));){if(o===92&&t+1<n){if(e.charCodeAt(t+1)===32)break;t+=2;continue}if(o===40&&(s++,s>32))return l;if(o===41){if(s===0)break;s--}t++}return a===t||s!==0||(l.str=Ha(e.slice(a,t)),l.lines=i,l.pos=t,l.ok=!0),l}});var Wa=re((Iv,Ga)=>{"use strict";var rh=_e().unescapeAll;Ga.exports=function(e,t,n){var o,s,i=0,a=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n||(s=e.charCodeAt(t),s!==34&&s!==39&&s!==40))return l;for(t++,s===40&&(s=41);t<n;){if(o=e.charCodeAt(t),o===s)return l.pos=t+1,l.lines=i,l.str=rh(e.slice(a+1,t)),l.ok=!0,l;if(o===40&&s===41)return l;o===10?i++:o===92&&t+1<n&&(t++,e.charCodeAt(t)===10&&i++),t++}return l}});var Ya=re(Sn=>{"use strict";Sn.parseLinkLabel=ja();Sn.parseLinkDestination=Va();Sn.parseLinkTitle=Wa()});var Xa=re((Lv,Ka)=>{"use strict";var nh=_e().assign,ih=_e().unescapeAll,tr=_e().escapeHtml,Ot={};Ot.code_inline=function(r,e,t,n,o){var s=r[e];return"<code"+o.renderAttrs(s)+">"+tr(r[e].content)+"</code>"};Ot.code_block=function(r,e,t,n,o){var s=r[e];return"<pre"+o.renderAttrs(s)+"><code>"+tr(r[e].content)+`</code></pre>
-`};Ot.fence=function(r,e,t,n,o){var s=r[e],i=s.info?ih(s.info).trim():"",a="",l="",u,c,f,d,h;return i&&(f=i.split(/(\s+)/g),a=f[0],l=f.slice(2).join("")),t.highlight?u=t.highlight(s.content,a,l)||tr(s.content):u=tr(s.content),u.indexOf("<pre")===0?u+`
-`:i?(c=s.attrIndex("class"),d=s.attrs?s.attrs.slice():[],c<0?d.push(["class",t.langPrefix+a]):(d[c]=d[c].slice(),d[c][1]+=" "+t.langPrefix+a),h={attrs:d},"<pre><code"+o.renderAttrs(h)+">"+u+`</code></pre>
+Expect errors in decoding.`),E=E.replace(/[^A-Za-z0-9\+\/\=]/g,"");_=this.KEY_STR.indexOf(E.charAt(Q++)),U=this.KEY_STR.indexOf(E.charAt(Q++)),z=this.KEY_STR.indexOf(E.charAt(Q++)),Y=this.KEY_STR.indexOf(E.charAt(Q++)),g=_<<2|U>>4,y=(U&15)<<4|z>>2,T=(z&3)<<6|Y,G.push(g),z!==64&&G.push(y),Y!==64&&G.push(T),g=y=T="",_=U=z=Y="",Q<E.length;);return G}}]),F}();Er.initClass();var Bt=function(R,E){var L=!1,g=!0,y=R.document,T=y.documentElement,_=y.addEventListener?"addEventListener":"attachEvent",U=y.addEventListener?"removeEventListener":"detachEvent",z=y.addEventListener?"":"on",Y=function G(se){if(!(se.type==="readystatechange"&&y.readyState!=="complete")&&((se.type==="load"?R:y)[U](z+se.type,G,!1),!L&&(L=!0)))return E.call(R,se.type||se)},Q=function G(){try{T.doScroll("left")}catch{setTimeout(G,50);return}return Y("poll")};if(y.readyState!=="complete"){if(y.createEventObject&&T.doScroll){try{g=!R.frameElement}catch{}g&&Q()}return y[_](z+"DOMContentLoaded",Y,!1),y[_](z+"readystatechange",Y,!1),R[_](z+"load",Y,!1)}};de._autoDiscoverFunction=function(){if(de.autoDiscover)return de.discover()},Bt(window,de._autoDiscoverFunction);function Ct(F,R){return typeof F<"u"&&F!==null?R(F):void 0}function wt(F,R,E){if(typeof F<"u"&&F!==null&&typeof F[R]=="function")return E(F,R)}window.Dropzone=de;var $t=de}(),n}()})});var fa=re((mv,wf)=>{wf.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
+`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var _i=re((gv,ha)=>{"use strict";ha.exports=fa()});var bn=re((vv,pa)=>{pa.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/});var va=re((yv,ga)=>{"use strict";var ma={};function Ef(r){var e,t,n=ma[r];if(n)return n;for(n=ma[r]=[],e=0;e<128;e++)t=String.fromCharCode(e),/^[0-9a-z]$/i.test(t)?n.push(t):n.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<r.length;e++)n[r.charCodeAt(e)]=r[e];return n}function xn(r,e,t){var n,o,s,i,a,l="";for(typeof e!="string"&&(t=e,e=xn.defaultChars),typeof t>"u"&&(t=!0),a=Ef(e),n=0,o=r.length;n<o;n++){if(s=r.charCodeAt(n),t&&s===37&&n+2<o&&/^[0-9a-f]{2}$/i.test(r.slice(n+1,n+3))){l+=r.slice(n,n+3),n+=2;continue}if(s<128){l+=a[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&n+1<o&&(i=r.charCodeAt(n+1),i>=56320&&i<=57343)){l+=encodeURIComponent(r[n]+r[n+1]),n++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(r[n])}return l}xn.defaultChars=";/?:@&=+$,-_.!~*'()#";xn.componentChars="-_.!~*'()";ga.exports=xn});var xa=re((bv,ba)=>{"use strict";var ya={};function Sf(r){var e,t,n=ya[r];if(n)return n;for(n=ya[r]=[],e=0;e<128;e++)t=String.fromCharCode(e),n.push(t);for(e=0;e<r.length;e++)t=r.charCodeAt(e),n[t]="%"+("0"+t.toString(16).toUpperCase()).slice(-2);return n}function wn(r,e){var t;return typeof e!="string"&&(e=wn.defaultChars),t=Sf(e),r.replace(/(%[a-f0-9]{2})+/gi,function(n){var o,s,i,a,l,u,c,f="";for(o=0,s=n.length;o<s;o+=3){if(i=parseInt(n.slice(o+1,o+3),16),i<128){f+=t[i];continue}if((i&224)===192&&o+3<s&&(a=parseInt(n.slice(o+4,o+6),16),(a&192)===128)){c=i<<6&1984|a&63,c<128?f+="\uFFFD\uFFFD":f+=String.fromCharCode(c),o+=3;continue}if((i&240)===224&&o+6<s&&(a=parseInt(n.slice(o+4,o+6),16),l=parseInt(n.slice(o+7,o+9),16),(a&192)===128&&(l&192)===128)){c=i<<12&61440|a<<6&4032|l&63,c<2048||c>=55296&&c<=57343?f+="\uFFFD\uFFFD\uFFFD":f+=String.fromCharCode(c),o+=6;continue}if((i&248)===240&&o+9<s&&(a=parseInt(n.slice(o+4,o+6),16),l=parseInt(n.slice(o+7,o+9),16),u=parseInt(n.slice(o+10,o+12),16),(a&192)===128&&(l&192)===128&&(u&192)===128)){c=i<<18&1835008|a<<12&258048|l<<6&4032|u&63,c<65536||c>1114111?f+="\uFFFD\uFFFD\uFFFD\uFFFD":(c-=65536,f+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),o+=9;continue}f+="\uFFFD"}return f})}wn.defaultChars=";/?:@&=+$,#";wn.componentChars="";ba.exports=wn});var Ea=re((xv,wa)=>{"use strict";wa.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}});var Da=re((wv,Ia)=>{"use strict";function En(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Cf=/^([a-z0-9.+-]+:)/i,Af=/:[0-9]*$/,kf=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Tf=["<",">",'"',"`"," ","\r",`
+`," "],If=["{","}","|","\\","^","`"].concat(Tf),Df=["'"].concat(If),Sa=["%","/","?",";","#"].concat(Df),Ca=["/","?","#"],Lf=255,Aa=/^[+a-z0-9A-Z_-]{0,63}$/,Ff=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ka={javascript:!0,"javascript:":!0},Ta={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Rf(r,e){if(r&&r instanceof En)return r;var t=new En;return t.parse(r,e),t}En.prototype.parse=function(r,e){var t,n,o,s,i,a=r;if(a=a.trim(),!e&&r.split("#").length===1){var l=kf.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var u=Cf.exec(a);if(u&&(u=u[0],o=u.toLowerCase(),this.protocol=u,a=a.substr(u.length)),(e||u||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)==="//",i&&!(u&&ka[u])&&(a=a.substr(2),this.slashes=!0)),!ka[u]&&(i||u&&!Ta[u])){var c=-1;for(t=0;t<Ca.length;t++)s=a.indexOf(Ca[t]),s!==-1&&(c===-1||s<c)&&(c=s);var f,h;for(c===-1?h=a.lastIndexOf("@"):h=a.lastIndexOf("@",c),h!==-1&&(f=a.slice(0,h),a=a.slice(h+1),this.auth=f),c=-1,t=0;t<Sa.length;t++)s=a.indexOf(Sa[t]),s!==-1&&(c===-1||s<c)&&(c=s);c===-1&&(c=a.length),a[c-1]===":"&&c--;var d=a.slice(0,c);a=a.slice(c),this.parseHost(d),this.hostname=this.hostname||"";var p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){var m=this.hostname.split(/\./);for(t=0,n=m.length;t<n;t++){var v=m[t];if(!!v&&!v.match(Aa)){for(var b="",x=0,C=v.length;x<C;x++)v.charCodeAt(x)>127?b+="x":b+=v[x];if(!b.match(Aa)){var S=m.slice(0,t),M=m.slice(t+1),A=v.match(Ff);A&&(S.push(A[1]),M.unshift(A[2])),M.length&&(a=M.join(".")+a),this.hostname=S.join(".");break}}}}this.hostname.length>Lf&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var O=a.indexOf("#");O!==-1&&(this.hash=a.substr(O),a=a.slice(0,O));var k=a.indexOf("?");return k!==-1&&(this.search=a.substr(k),a=a.slice(0,k)),a&&(this.pathname=a),Ta[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this};En.prototype.parseHost=function(r){var e=Af.exec(r);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),r=r.substr(0,r.length-e.length)),r&&(this.hostname=r)};Ia.exports=Rf});var Ni=re((Ev,$r)=>{"use strict";$r.exports.encode=va();$r.exports.decode=xa();$r.exports.format=Ea();$r.exports.parse=Da()});var Bi=re((Sv,La)=>{La.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var $i=re((Cv,Fa)=>{Fa.exports=/[\0-\x1F\x7F-\x9F]/});var Oa=re((Av,Ra)=>{Ra.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/});var Ui=re((kv,Pa)=>{Pa.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var Ma=re(gr=>{"use strict";gr.Any=Bi();gr.Cc=$i();gr.Cf=Oa();gr.P=bn();gr.Z=Ui()});var _e=re(rt=>{"use strict";function Of(r){return Object.prototype.toString.call(r)}function Pf(r){return Of(r)==="[object String]"}var Mf=Object.prototype.hasOwnProperty;function Na(r,e){return Mf.call(r,e)}function _f(r){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){if(!!t){if(typeof t!="object")throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){r[n]=t[n]})}}),r}function Nf(r,e,t){return[].concat(r.slice(0,e),t,r.slice(e+1))}function Ba(r){return!(r>=55296&&r<=57343||r>=64976&&r<=65007||(r&65535)===65535||(r&65535)===65534||r>=0&&r<=8||r===11||r>=14&&r<=31||r>=127&&r<=159||r>1114111)}function $a(r){if(r>65535){r-=65536;var e=55296+(r>>10),t=56320+(r&1023);return String.fromCharCode(e,t)}return String.fromCharCode(r)}var Ua=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,Bf=/&([a-z#][a-z0-9]{1,31});/gi,$f=new RegExp(Ua.source+"|"+Bf.source,"gi"),Uf=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,_a=_i();function zf(r,e){var t=0;return Na(_a,e)?_a[e]:e.charCodeAt(0)===35&&Uf.test(e)&&(t=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Ba(t))?$a(t):r}function jf(r){return r.indexOf("\\")<0?r:r.replace(Ua,"$1")}function Hf(r){return r.indexOf("\\")<0&&r.indexOf("&")<0?r:r.replace($f,function(e,t,n){return t||zf(e,n)})}var qf=/[&<>"]/,Vf=/[&<>"]/g,Gf={"&":"&","<":"<",">":">",'"':"""};function Wf(r){return Gf[r]}function Yf(r){return qf.test(r)?r.replace(Vf,Wf):r}var Kf=/[.?*+^$[\]\\(){}|-]/g;function Xf(r){return r.replace(Kf,"\\$&")}function Zf(r){switch(r){case 9:case 32:return!0}return!1}function Qf(r){if(r>=8192&&r<=8202)return!0;switch(r){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var Jf=bn();function eh(r){return Jf.test(r)}function th(r){switch(r){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function rh(r){return r=r.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(r=r.replace(/ẞ/g,"\xDF")),r.toLowerCase().toUpperCase()}rt.lib={};rt.lib.mdurl=Ni();rt.lib.ucmicro=Ma();rt.assign=_f;rt.isString=Pf;rt.has=Na;rt.unescapeMd=jf;rt.unescapeAll=Hf;rt.isValidEntityCode=Ba;rt.fromCodePoint=$a;rt.escapeHtml=Yf;rt.arrayReplaceAt=Nf;rt.isSpace=Zf;rt.isWhiteSpace=Qf;rt.isMdAsciiPunct=th;rt.isPunctChar=eh;rt.escapeRE=Xf;rt.normalizeReference=rh});var ja=re((Dv,za)=>{"use strict";za.exports=function(e,t,n){var o,s,i,a,l=-1,u=e.posMax,c=e.pos;for(e.pos=t+1,o=1;e.pos<u;){if(i=e.src.charCodeAt(e.pos),i===93&&(o--,o===0)){s=!0;break}if(a=e.pos,e.md.inline.skipToken(e),i===91){if(a===e.pos-1)o++;else if(n)return e.pos=c,-1}}return s&&(l=e.pos),e.pos=c,l}});var Va=re((Lv,qa)=>{"use strict";var Ha=_e().unescapeAll;qa.exports=function(e,t,n){var o,s,i=0,a=t,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(t)===60){for(t++;t<n;){if(o=e.charCodeAt(t),o===10||o===60)return l;if(o===62)return l.pos=t+1,l.str=Ha(e.slice(a+1,t)),l.ok=!0,l;if(o===92&&t+1<n){t+=2;continue}t++}return l}for(s=0;t<n&&(o=e.charCodeAt(t),!(o===32||o<32||o===127));){if(o===92&&t+1<n){if(e.charCodeAt(t+1)===32)break;t+=2;continue}if(o===40&&(s++,s>32))return l;if(o===41){if(s===0)break;s--}t++}return a===t||s!==0||(l.str=Ha(e.slice(a,t)),l.lines=i,l.pos=t,l.ok=!0),l}});var Wa=re((Fv,Ga)=>{"use strict";var nh=_e().unescapeAll;Ga.exports=function(e,t,n){var o,s,i=0,a=t,l={ok:!1,pos:0,lines:0,str:""};if(t>=n||(s=e.charCodeAt(t),s!==34&&s!==39&&s!==40))return l;for(t++,s===40&&(s=41);t<n;){if(o=e.charCodeAt(t),o===s)return l.pos=t+1,l.lines=i,l.str=nh(e.slice(a+1,t)),l.ok=!0,l;if(o===40&&s===41)return l;o===10?i++:o===92&&t+1<n&&(t++,e.charCodeAt(t)===10&&i++),t++}return l}});var Ya=re(Sn=>{"use strict";Sn.parseLinkLabel=ja();Sn.parseLinkDestination=Va();Sn.parseLinkTitle=Wa()});var Xa=re((Ov,Ka)=>{"use strict";var ih=_e().assign,oh=_e().unescapeAll,tr=_e().escapeHtml,Ot={};Ot.code_inline=function(r,e,t,n,o){var s=r[e];return"<code"+o.renderAttrs(s)+">"+tr(r[e].content)+"</code>"};Ot.code_block=function(r,e,t,n,o){var s=r[e];return"<pre"+o.renderAttrs(s)+"><code>"+tr(r[e].content)+`</code></pre>
+`};Ot.fence=function(r,e,t,n,o){var s=r[e],i=s.info?oh(s.info).trim():"",a="",l="",u,c,f,h,d;return i&&(f=i.split(/(\s+)/g),a=f[0],l=f.slice(2).join("")),t.highlight?u=t.highlight(s.content,a,l)||tr(s.content):u=tr(s.content),u.indexOf("<pre")===0?u+`
+`:i?(c=s.attrIndex("class"),h=s.attrs?s.attrs.slice():[],c<0?h.push(["class",t.langPrefix+a]):(h[c]=h[c].slice(),h[c][1]+=" "+t.langPrefix+a),d={attrs:h},"<pre><code"+o.renderAttrs(d)+">"+u+`</code></pre>
`):"<pre><code"+o.renderAttrs(s)+">"+u+`</code></pre>
`};Ot.image=function(r,e,t,n,o){var s=r[e];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,t,n),o.renderToken(r,e,t)};Ot.hardbreak=function(r,e,t){return t.xhtmlOut?`<br />
`:`<br>
`};Ot.softbreak=function(r,e,t){return t.breaks?t.xhtmlOut?`<br />
`:`<br>
`:`
-`};Ot.text=function(r,e){return tr(r[e].content)};Ot.html_block=function(r,e){return r[e].content};Ot.html_inline=function(r,e){return r[e].content};function vr(){this.rules=nh({},Ot)}vr.prototype.renderAttrs=function(e){var t,n,o;if(!e.attrs)return"";for(o="",t=0,n=e.attrs.length;t<n;t++)o+=" "+tr(e.attrs[t][0])+'="'+tr(e.attrs[t][1])+'"';return o};vr.prototype.renderToken=function(e,t,n){var o,s="",i=!1,a=e[t];return a.hidden?"":(a.block&&a.nesting!==-1&&t&&e[t-1].hidden&&(s+=`
+`};Ot.text=function(r,e){return tr(r[e].content)};Ot.html_block=function(r,e){return r[e].content};Ot.html_inline=function(r,e){return r[e].content};function vr(){this.rules=ih({},Ot)}vr.prototype.renderAttrs=function(e){var t,n,o;if(!e.attrs)return"";for(o="",t=0,n=e.attrs.length;t<n;t++)o+=" "+tr(e.attrs[t][0])+'="'+tr(e.attrs[t][1])+'"';return o};vr.prototype.renderToken=function(e,t,n){var o,s="",i=!1,a=e[t];return a.hidden?"":(a.block&&a.nesting!==-1&&t&&e[t-1].hidden&&(s+=`
`),s+=(a.nesting===-1?"</":"<")+a.tag,s+=this.renderAttrs(a),a.nesting===0&&n.xhtmlOut&&(s+=" /"),a.block&&(i=!0,a.nesting===1&&t+1<e.length&&(o=e[t+1],(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===a.tag)&&(i=!1))),s+=i?`>
`:">",s)};vr.prototype.renderInline=function(r,e,t){for(var n,o="",s=this.rules,i=0,a=r.length;i<a;i++)n=r[i].type,typeof s[n]<"u"?o+=s[n](r,i,e,t,this):o+=this.renderToken(r,i,e);return o};vr.prototype.renderInlineAsText=function(r,e,t){for(var n="",o=0,s=r.length;o<s;o++)r[o].type==="text"?n+=r[o].content:r[o].type==="image"?n+=this.renderInlineAsText(r[o].children,e,t):r[o].type==="softbreak"&&(n+=`
-`);return n};vr.prototype.render=function(r,e,t){var n,o,s,i="",a=this.rules;for(n=0,o=r.length;n<o;n++)s=r[n].type,s==="inline"?i+=this.renderInline(r[n].children,e,t):typeof a[s]<"u"?i+=a[r[n].type](r,n,e,t,this):i+=this.renderToken(r,n,e,t);return i};Ka.exports=vr});var Cn=re((Fv,Za)=>{"use strict";function kt(){this.__rules__=[],this.__cache__=null}kt.prototype.__find__=function(r){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===r)return e;return-1};kt.prototype.__compile__=function(){var r=this,e=[""];r.__rules__.forEach(function(t){!t.enabled||t.alt.forEach(function(n){e.indexOf(n)<0&&e.push(n)})}),r.__cache__={},e.forEach(function(t){r.__cache__[t]=[],r.__rules__.forEach(function(n){!n.enabled||t&&n.alt.indexOf(t)<0||r.__cache__[t].push(n.fn)})})};kt.prototype.at=function(r,e,t){var n=this.__find__(r),o=t||{};if(n===-1)throw new Error("Parser rule not found: "+r);this.__rules__[n].fn=e,this.__rules__[n].alt=o.alt||[],this.__cache__=null};kt.prototype.before=function(r,e,t,n){var o=this.__find__(r),s=n||{};if(o===-1)throw new Error("Parser rule not found: "+r);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:t,alt:s.alt||[]}),this.__cache__=null};kt.prototype.after=function(r,e,t,n){var o=this.__find__(r),s=n||{};if(o===-1)throw new Error("Parser rule not found: "+r);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:t,alt:s.alt||[]}),this.__cache__=null};kt.prototype.push=function(r,e,t){var n=t||{};this.__rules__.push({name:r,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null};kt.prototype.enable=function(r,e){Array.isArray(r)||(r=[r]);var t=[];return r.forEach(function(n){var o=this.__find__(n);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[o].enabled=!0,t.push(n)},this),this.__cache__=null,t};kt.prototype.enableOnly=function(r,e){Array.isArray(r)||(r=[r]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(r,e)};kt.prototype.disable=function(r,e){Array.isArray(r)||(r=[r]);var t=[];return r.forEach(function(n){var o=this.__find__(n);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[o].enabled=!1,t.push(n)},this),this.__cache__=null,t};kt.prototype.getRules=function(r){return this.__cache__===null&&this.__compile__(),this.__cache__[r]||[]};Za.exports=kt});var Ja=re((Rv,Qa)=>{"use strict";var oh=/\r\n?|\n/g,sh=/\0/g;Qa.exports=function(e){var t;t=e.src.replace(oh,`
-`),t=t.replace(sh,"\uFFFD"),e.src=t}});var tl=re((Ov,el)=>{"use strict";el.exports=function(e){var t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}});var nl=re((Pv,rl)=>{"use strict";rl.exports=function(e){var t=e.tokens,n,o,s;for(o=0,s=t.length;o<s;o++)n=t[o],n.type==="inline"&&e.md.inline.parse(n.content,e.md,e.env,n.children)}});var ol=re((Mv,il)=>{"use strict";var ah=_e().arrayReplaceAt;function lh(r){return/^<a[>\s]/i.test(r)}function uh(r){return/^<\/a\s*>/i.test(r)}il.exports=function(e){var t,n,o,s,i,a,l,u,c,f,d,h,p,g,y,b,x=e.tokens,k;if(!!e.md.options.linkify){for(n=0,o=x.length;n<o;n++)if(!(x[n].type!=="inline"||!e.md.linkify.pretest(x[n].content)))for(s=x[n].children,p=0,t=s.length-1;t>=0;t--){if(a=s[t],a.type==="link_close"){for(t--;s[t].level!==a.level&&s[t].type!=="link_open";)t--;continue}if(a.type==="html_inline"&&(lh(a.content)&&p>0&&p--,uh(a.content)&&p++),!(p>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(c=a.content,k=e.md.linkify.match(c),l=[],h=a.level,d=0,k.length>0&&k[0].index===0&&t>0&&s[t-1].type==="text_special"&&(k=k.slice(1)),u=0;u<k.length;u++)g=k[u].url,y=e.md.normalizeLink(g),e.md.validateLink(y)&&(b=k[u].text,k[u].schema?k[u].schema==="mailto:"&&!/^mailto:/i.test(b)?b=e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):b=e.md.normalizeLinkText(b):b=e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,""),f=k[u].index,f>d&&(i=new e.Token("text","",0),i.content=c.slice(d,f),i.level=h,l.push(i)),i=new e.Token("link_open","a",1),i.attrs=[["href",y]],i.level=h++,i.markup="linkify",i.info="auto",l.push(i),i=new e.Token("text","",0),i.content=b,i.level=h,l.push(i),i=new e.Token("link_close","a",-1),i.level=--h,i.markup="linkify",i.info="auto",l.push(i),d=k[u].lastIndex);d<c.length&&(i=new e.Token("text","",0),i.content=c.slice(d),i.level=h,l.push(i)),x[n].children=s=ah(s,t,l)}}}}});var ll=re((_v,al)=>{"use strict";var sl=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,ch=/\((c|tm|r)\)/i,dh=/\((c|tm|r)\)/ig,fh={c:"\xA9",r:"\xAE",tm:"\u2122"};function hh(r,e){return fh[e.toLowerCase()]}function ph(r){var e,t,n=0;for(e=r.length-1;e>=0;e--)t=r[e],t.type==="text"&&!n&&(t.content=t.content.replace(dh,hh)),t.type==="link_open"&&t.info==="auto"&&n--,t.type==="link_close"&&t.info==="auto"&&n++}function mh(r){var e,t,n=0;for(e=r.length-1;e>=0;e--)t=r[e],t.type==="text"&&!n&&sl.test(t.content)&&(t.content=t.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),t.type==="link_open"&&t.info==="auto"&&n--,t.type==="link_close"&&t.info==="auto"&&n++}al.exports=function(e){var t;if(!!e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(ch.test(e.tokens[t].content)&&ph(e.tokens[t].children),sl.test(e.tokens[t].content)&&mh(e.tokens[t].children))}});var ml=re((Nv,pl)=>{"use strict";var ul=_e().isWhiteSpace,cl=_e().isPunctChar,dl=_e().isMdAsciiPunct,gh=/['"]/,fl=/['"]/g,hl="\u2019";function An(r,e,t){return r.slice(0,e)+t+r.slice(e+1)}function vh(r,e){var t,n,o,s,i,a,l,u,c,f,d,h,p,g,y,b,x,k,S,O,C;for(S=[],t=0;t<r.length;t++){for(n=r[t],l=r[t].level,x=S.length-1;x>=0&&!(S[x].level<=l);x--);if(S.length=x+1,n.type!=="text")continue;o=n.content,i=0,a=o.length;e:for(;i<a&&(fl.lastIndex=i,s=fl.exec(o),!!s);){if(y=b=!0,i=s.index+1,k=s[0]==="'",c=32,s.index-1>=0)c=o.charCodeAt(s.index-1);else for(x=t-1;x>=0&&!(r[x].type==="softbreak"||r[x].type==="hardbreak");x--)if(!!r[x].content){c=r[x].content.charCodeAt(r[x].content.length-1);break}if(f=32,i<a)f=o.charCodeAt(i);else for(x=t+1;x<r.length&&!(r[x].type==="softbreak"||r[x].type==="hardbreak");x++)if(!!r[x].content){f=r[x].content.charCodeAt(0);break}if(d=dl(c)||cl(String.fromCharCode(c)),h=dl(f)||cl(String.fromCharCode(f)),p=ul(c),g=ul(f),g?y=!1:h&&(p||d||(y=!1)),p?b=!1:d&&(g||h||(b=!1)),f===34&&s[0]==='"'&&c>=48&&c<=57&&(b=y=!1),y&&b&&(y=d,b=h),!y&&!b){k&&(n.content=An(n.content,s.index,hl));continue}if(b){for(x=S.length-1;x>=0&&(u=S[x],!(S[x].level<l));x--)if(u.single===k&&S[x].level===l){u=S[x],k?(O=e.md.options.quotes[2],C=e.md.options.quotes[3]):(O=e.md.options.quotes[0],C=e.md.options.quotes[1]),n.content=An(n.content,s.index,C),r[u.token].content=An(r[u.token].content,u.pos,O),i+=C.length-1,u.token===t&&(i+=O.length-1),o=n.content,a=o.length,S.length=x;continue e}}y?S.push({token:t,pos:s.index,single:k,level:l}):b&&k&&(n.content=An(n.content,s.index,hl))}}}pl.exports=function(e){var t;if(!!e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!gh.test(e.tokens[t].content)||vh(e.tokens[t].children,e)}});var vl=re((Bv,gl)=>{"use strict";gl.exports=function(e){var t,n,o,s,i,a,l=e.tokens;for(t=0,n=l.length;t<n;t++)if(l[t].type==="inline"){for(o=l[t].children,i=o.length,s=0;s<i;s++)o[s].type==="text_special"&&(o[s].type="text");for(s=a=0;s<i;s++)o[s].type==="text"&&s+1<i&&o[s+1].type==="text"?o[s+1].content=o[s].content+o[s+1].content:(s!==a&&(o[a]=o[s]),a++);s!==a&&(o.length=a)}}});var kn=re(($v,yl)=>{"use strict";function yr(r,e,t){this.type=r,this.tag=e,this.attrs=null,this.map=null,this.nesting=t,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}yr.prototype.attrIndex=function(e){var t,n,o;if(!this.attrs)return-1;for(t=this.attrs,n=0,o=t.length;n<o;n++)if(t[n][0]===e)return n;return-1};yr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};yr.prototype.attrSet=function(e,t){var n=this.attrIndex(e),o=[e,t];n<0?this.attrPush(o):this.attrs[n]=o};yr.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n};yr.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};yl.exports=yr});var wl=re((Uv,xl)=>{"use strict";var yh=kn();function bl(r,e,t){this.src=r,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}bl.prototype.Token=yh;xl.exports=bl});var Sl=re((zv,El)=>{"use strict";var bh=Cn(),zi=[["normalize",Ja()],["block",tl()],["inline",nl()],["linkify",ol()],["replacements",ll()],["smartquotes",ml()],["text_join",vl()]];function ji(){this.ruler=new bh;for(var r=0;r<zi.length;r++)this.ruler.push(zi[r][0],zi[r][1])}ji.prototype.process=function(r){var e,t,n;for(n=this.ruler.getRules(""),e=0,t=n.length;e<t;e++)n[e](r)};ji.prototype.State=wl();El.exports=ji});var kl=re((jv,Al)=>{"use strict";var Hi=_e().isSpace;function qi(r,e){var t=r.bMarks[e]+r.tShift[e],n=r.eMarks[e];return r.src.slice(t,n)}function Cl(r){var e=[],t=0,n=r.length,o,s=!1,i=0,a="";for(o=r.charCodeAt(t);t<n;)o===124&&(s?(a+=r.substring(i,t-1),i=t):(e.push(a+r.substring(i,t)),a="",i=t+1)),s=o===92,t++,o=r.charCodeAt(t);return e.push(a+r.substring(i)),e}Al.exports=function(e,t,n,o){var s,i,a,l,u,c,f,d,h,p,g,y,b,x,k,S,O,C;if(t+2>n||(c=t+1,e.sCount[c]<e.blkIndent)||e.sCount[c]-e.blkIndent>=4||(a=e.bMarks[c]+e.tShift[c],a>=e.eMarks[c])||(O=e.src.charCodeAt(a++),O!==124&&O!==45&&O!==58)||a>=e.eMarks[c]||(C=e.src.charCodeAt(a++),C!==124&&C!==45&&C!==58&&!Hi(C))||O===45&&Hi(C))return!1;for(;a<e.eMarks[c];){if(s=e.src.charCodeAt(a),s!==124&&s!==45&&s!==58&&!Hi(s))return!1;a++}for(i=qi(e,t+1),f=i.split("|"),p=[],l=0;l<f.length;l++){if(g=f[l].trim(),!g){if(l===0||l===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(g))return!1;g.charCodeAt(g.length-1)===58?p.push(g.charCodeAt(0)===58?"center":"right"):g.charCodeAt(0)===58?p.push("left"):p.push("")}if(i=qi(e,t).trim(),i.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4||(f=Cl(i),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),d=f.length,d===0||d!==p.length))return!1;if(o)return!0;for(x=e.parentType,e.parentType="table",S=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),h.map=y=[t,0],h=e.push("thead_open","thead",1),h.map=[t,t+1],h=e.push("tr_open","tr",1),h.map=[t,t+1],l=0;l<f.length;l++)h=e.push("th_open","th",1),p[l]&&(h.attrs=[["style","text-align:"+p[l]]]),h=e.push("inline","",0),h.content=f[l].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),c=t+2;c<n&&!(e.sCount[c]<e.blkIndent);c++){for(k=!1,l=0,u=S.length;l<u;l++)if(S[l](e,c,n,!0)){k=!0;break}if(k||(i=qi(e,c).trim(),!i)||e.sCount[c]-e.blkIndent>=4)break;for(f=Cl(i),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),c===t+2&&(h=e.push("tbody_open","tbody",1),h.map=b=[t+2,0]),h=e.push("tr_open","tr",1),h.map=[c,c+1],l=0;l<d;l++)h=e.push("td_open","td",1),p[l]&&(h.attrs=[["style","text-align:"+p[l]]]),h=e.push("inline","",0),h.content=f[l]?f[l].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return b&&(h=e.push("tbody_close","tbody",-1),b[1]=c),h=e.push("table_close","table",-1),y[1]=c,e.parentType=x,e.line=c,!0}});var Il=re((Hv,Tl)=>{"use strict";Tl.exports=function(e,t,n){var o,s,i;if(e.sCount[t]-e.blkIndent<4)return!1;for(s=o=t+1;o<n;){if(e.isEmpty(o)){o++;continue}if(e.sCount[o]-e.blkIndent>=4){o++,s=o;continue}break}return e.line=s,i=e.push("code_block","code",0),i.content=e.getLines(t,s,4+e.blkIndent,!1)+`
-`,i.map=[t,e.line],!0}});var Ll=re((qv,Dl)=>{"use strict";Dl.exports=function(e,t,n,o){var s,i,a,l,u,c,f,d=!1,h=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||h+3>p||(s=e.src.charCodeAt(h),s!==126&&s!==96)||(u=h,h=e.skipChars(h,s),i=h-u,i<3)||(f=e.src.slice(u,h),a=e.src.slice(h,p),s===96&&a.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(l=t;l++,!(l>=n||(h=u=e.bMarks[l]+e.tShift[l],p=e.eMarks[l],h<p&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(h)===s&&!(e.sCount[l]-e.blkIndent>=4)&&(h=e.skipChars(h,s),!(h-u<i)&&(h=e.skipSpaces(h),!(h<p)))){d=!0;break}return i=e.sCount[t],e.line=l+(d?1:0),c=e.push("fence","code",0),c.info=a,c.content=e.getLines(t+1,l,i,!0),c.markup=f,c.map=[t,e.line],!0}});var Ol=re((Vv,Rl)=>{"use strict";var Fl=_e().isSpace;Rl.exports=function(e,t,n,o){var s,i,a,l,u,c,f,d,h,p,g,y,b,x,k,S,O,C,P,A,D=e.lineMax,I=e.bMarks[t]+e.tShift[t],M=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(I++)!==62)return!1;if(o)return!0;for(l=h=e.sCount[t]+1,e.src.charCodeAt(I)===32?(I++,l++,h++,s=!1,S=!0):e.src.charCodeAt(I)===9?(S=!0,(e.bsCount[t]+h)%4===3?(I++,l++,h++,s=!1):s=!0):S=!1,p=[e.bMarks[t]],e.bMarks[t]=I;I<M&&(i=e.src.charCodeAt(I),Fl(i));){i===9?h+=4-(h+e.bsCount[t]+(s?1:0))%4:h++;I++}for(g=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(S?1:0),c=I>=M,x=[e.sCount[t]],e.sCount[t]=h-l,k=[e.tShift[t]],e.tShift[t]=I-e.bMarks[t],C=e.md.block.ruler.getRules("blockquote"),b=e.parentType,e.parentType="blockquote",d=t+1;d<n&&(A=e.sCount[d]<e.blkIndent,I=e.bMarks[d]+e.tShift[d],M=e.eMarks[d],!(I>=M));d++){if(e.src.charCodeAt(I++)===62&&!A){for(l=h=e.sCount[d]+1,e.src.charCodeAt(I)===32?(I++,l++,h++,s=!1,S=!0):e.src.charCodeAt(I)===9?(S=!0,(e.bsCount[d]+h)%4===3?(I++,l++,h++,s=!1):s=!0):S=!1,p.push(e.bMarks[d]),e.bMarks[d]=I;I<M&&(i=e.src.charCodeAt(I),Fl(i));){i===9?h+=4-(h+e.bsCount[d]+(s?1:0))%4:h++;I++}c=I>=M,g.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(S?1:0),x.push(e.sCount[d]),e.sCount[d]=h-l,k.push(e.tShift[d]),e.tShift[d]=I-e.bMarks[d];continue}if(c)break;for(O=!1,a=0,u=C.length;a<u;a++)if(C[a](e,d,n,!0)){O=!0;break}if(O){e.lineMax=d,e.blkIndent!==0&&(p.push(e.bMarks[d]),g.push(e.bsCount[d]),k.push(e.tShift[d]),x.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}p.push(e.bMarks[d]),g.push(e.bsCount[d]),k.push(e.tShift[d]),x.push(e.sCount[d]),e.sCount[d]=-1}for(y=e.blkIndent,e.blkIndent=0,P=e.push("blockquote_open","blockquote",1),P.markup=">",P.map=f=[t,0],e.md.block.tokenize(e,t,d),P=e.push("blockquote_close","blockquote",-1),P.markup=">",e.lineMax=D,e.parentType=b,f[1]=e.line,a=0;a<k.length;a++)e.bMarks[a+t]=p[a],e.tShift[a+t]=k[a],e.sCount[a+t]=x[a],e.bsCount[a+t]=g[a];return e.blkIndent=y,!0}});var Ml=re((Gv,Pl)=>{"use strict";var xh=_e().isSpace;Pl.exports=function(e,t,n,o){var s,i,a,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(s=e.src.charCodeAt(u++),s!==42&&s!==45&&s!==95))return!1;for(i=1;u<c;){if(a=e.src.charCodeAt(u++),a!==s&&!xh(a))return!1;a===s&&i++}return i<3?!1:(o||(e.line=t+1,l=e.push("hr","hr",0),l.map=[t,e.line],l.markup=Array(i+1).join(String.fromCharCode(s))),!0)}});var Ul=re((Wv,$l)=>{"use strict";var Bl=_e().isSpace;function _l(r,e){var t,n,o,s;return n=r.bMarks[e]+r.tShift[e],o=r.eMarks[e],t=r.src.charCodeAt(n++),t!==42&&t!==45&&t!==43||n<o&&(s=r.src.charCodeAt(n),!Bl(s))?-1:n}function Nl(r,e){var t,n=r.bMarks[e]+r.tShift[e],o=n,s=r.eMarks[e];if(o+1>=s||(t=r.src.charCodeAt(o++),t<48||t>57))return-1;for(;;){if(o>=s)return-1;if(t=r.src.charCodeAt(o++),t>=48&&t<=57){if(o-n>=10)return-1;continue}if(t===41||t===46)break;return-1}return o<s&&(t=r.src.charCodeAt(o),!Bl(t))?-1:o}function wh(r,e){var t,n,o=r.level+2;for(t=e+2,n=r.tokens.length-2;t<n;t++)r.tokens[t].level===o&&r.tokens[t].type==="paragraph_open"&&(r.tokens[t+2].hidden=!0,r.tokens[t].hidden=!0,t+=2)}$l.exports=function(e,t,n,o){var s,i,a,l,u,c,f,d,h,p,g,y,b,x,k,S,O,C,P,A,D,I,M,N,B,H,Z,W,te=!1,ne=!0;if(e.sCount[t]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(o&&e.parentType==="paragraph"&&e.sCount[t]>=e.blkIndent&&(te=!0),(M=Nl(e,t))>=0){if(f=!0,B=e.bMarks[t]+e.tShift[t],b=Number(e.src.slice(B,M-1)),te&&b!==1)return!1}else if((M=_l(e,t))>=0)f=!1;else return!1;if(te&&e.skipSpaces(M)>=e.eMarks[t])return!1;if(y=e.src.charCodeAt(M-1),o)return!0;for(g=e.tokens.length,f?(W=e.push("ordered_list_open","ol",1),b!==1&&(W.attrs=[["start",b]])):W=e.push("bullet_list_open","ul",1),W.map=p=[t,0],W.markup=String.fromCharCode(y),k=t,N=!1,Z=e.md.block.ruler.getRules("list"),C=e.parentType,e.parentType="list";k<n;){for(I=M,x=e.eMarks[k],c=S=e.sCount[k]+M-(e.bMarks[t]+e.tShift[t]);I<x;){if(s=e.src.charCodeAt(I),s===9)S+=4-(S+e.bsCount[k])%4;else if(s===32)S++;else break;I++}if(i=I,i>=x?u=1:u=S-c,u>4&&(u=1),l=c+u,W=e.push("list_item_open","li",1),W.markup=String.fromCharCode(y),W.map=d=[t,0],f&&(W.info=e.src.slice(B,M-1)),D=e.tight,A=e.tShift[t],P=e.sCount[t],O=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[t]=i-e.bMarks[t],e.sCount[t]=S,i>=x&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),(!e.tight||N)&&(ne=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=O,e.tShift[t]=A,e.sCount[t]=P,e.tight=D,W=e.push("list_item_close","li",-1),W.markup=String.fromCharCode(y),k=t=e.line,d[1]=k,i=e.bMarks[t],k>=n||e.sCount[k]<e.blkIndent||e.sCount[t]-e.blkIndent>=4)break;for(H=!1,a=0,h=Z.length;a<h;a++)if(Z[a](e,k,n,!0)){H=!0;break}if(H)break;if(f){if(M=Nl(e,k),M<0)break;B=e.bMarks[k]+e.tShift[k]}else if(M=_l(e,k),M<0)break;if(y!==e.src.charCodeAt(M-1))break}return f?W=e.push("ordered_list_close","ol",-1):W=e.push("bullet_list_close","ul",-1),W.markup=String.fromCharCode(y),p[1]=k,e.line=k,e.parentType=C,ne&&wh(e,g),!0}});var jl=re((Yv,zl)=>{"use strict";var Eh=_e().normalizeReference,Tn=_e().isSpace;zl.exports=function(e,t,n,o){var s,i,a,l,u,c,f,d,h,p,g,y,b,x,k,S,O=0,C=e.bMarks[t]+e.tShift[t],P=e.eMarks[t],A=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(C)!==91)return!1;for(;++C<P;)if(e.src.charCodeAt(C)===93&&e.src.charCodeAt(C-1)!==92){if(C+1===P||e.src.charCodeAt(C+1)!==58)return!1;break}for(l=e.lineMax,k=e.md.block.ruler.getRules("reference"),p=e.parentType,e.parentType="reference";A<l&&!e.isEmpty(A);A++)if(!(e.sCount[A]-e.blkIndent>3)&&!(e.sCount[A]<0)){for(x=!1,c=0,f=k.length;c<f;c++)if(k[c](e,A,l,!0)){x=!0;break}if(x)break}for(b=e.getLines(t,A,e.blkIndent,!1).trim(),P=b.length,C=1;C<P;C++){if(s=b.charCodeAt(C),s===91)return!1;if(s===93){h=C;break}else s===10?O++:s===92&&(C++,C<P&&b.charCodeAt(C)===10&&O++)}if(h<0||b.charCodeAt(h+1)!==58)return!1;for(C=h+2;C<P;C++)if(s=b.charCodeAt(C),s===10)O++;else if(!Tn(s))break;if(g=e.md.helpers.parseLinkDestination(b,C,P),!g.ok||(u=e.md.normalizeLink(g.str),!e.md.validateLink(u)))return!1;for(C=g.pos,O+=g.lines,i=C,a=O,y=C;C<P;C++)if(s=b.charCodeAt(C),s===10)O++;else if(!Tn(s))break;for(g=e.md.helpers.parseLinkTitle(b,C,P),C<P&&y!==C&&g.ok?(S=g.str,C=g.pos,O+=g.lines):(S="",C=i,O=a);C<P&&(s=b.charCodeAt(C),!!Tn(s));)C++;if(C<P&&b.charCodeAt(C)!==10&&S)for(S="",C=i,O=a;C<P&&(s=b.charCodeAt(C),!!Tn(s));)C++;return C<P&&b.charCodeAt(C)!==10||(d=Eh(b.slice(1,h)),!d)?!1:(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[d]>"u"&&(e.env.references[d]={title:S,href:u}),e.parentType=p,e.line=t+O+1),!0)}});var ql=re((Kv,Hl)=>{"use strict";Hl.exports=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Gi=re((Xv,Vi)=>{"use strict";var Sh="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ch="[^\"'=<>`\\x00-\\x20]+",Ah="'[^']*'",kh='"[^"]*"',Th="(?:"+Ch+"|"+Ah+"|"+kh+")",Ih="(?:\\s+"+Sh+"(?:\\s*=\\s*"+Th+")?)",Vl="<[A-Za-z][A-Za-z0-9\\-]*"+Ih+"*\\s*\\/?>",Gl="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Dh="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Lh="<[?][\\s\\S]*?[?]>",Fh="<![A-Z]+\\s+[^>]*>",Rh="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Oh=new RegExp("^(?:"+Vl+"|"+Gl+"|"+Dh+"|"+Lh+"|"+Fh+"|"+Rh+")"),Ph=new RegExp("^(?:"+Vl+"|"+Gl+")");Vi.exports.HTML_TAG_RE=Oh;Vi.exports.HTML_OPEN_CLOSE_TAG_RE=Ph});var Yl=re((Zv,Wl)=>{"use strict";var Mh=ql(),_h=Gi().HTML_OPEN_CLOSE_TAG_RE,br=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Mh.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(_h.source+"\\s*$"),/^$/,!1]];Wl.exports=function(e,t,n,o){var s,i,a,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(l=e.src.slice(u,c),s=0;s<br.length&&!br[s][0].test(l);s++);if(s===br.length)return!1;if(o)return br[s][2];if(i=t+1,!br[s][1].test(l)){for(;i<n&&!(e.sCount[i]<e.blkIndent);i++)if(u=e.bMarks[i]+e.tShift[i],c=e.eMarks[i],l=e.src.slice(u,c),br[s][1].test(l)){l.length!==0&&i++;break}}return e.line=i,a=e.push("html_block","",0),a.map=[t,i],a.content=e.getLines(t,i,e.blkIndent,!0),!0}});var Zl=re((Qv,Xl)=>{"use strict";var Kl=_e().isSpace;Xl.exports=function(e,t,n,o){var s,i,a,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(s=e.src.charCodeAt(u),s!==35||u>=c))return!1;for(i=1,s=e.src.charCodeAt(++u);s===35&&u<c&&i<=6;)i++,s=e.src.charCodeAt(++u);return i>6||u<c&&!Kl(s)?!1:(o||(c=e.skipSpacesBack(c,u),a=e.skipCharsBack(c,35,u),a>u&&Kl(e.src.charCodeAt(a-1))&&(c=a),e.line=t+1,l=e.push("heading_open","h"+String(i),1),l.markup="########".slice(0,i),l.map=[t,e.line],l=e.push("inline","",0),l.content=e.src.slice(u,c).trim(),l.map=[t,e.line],l.children=[],l=e.push("heading_close","h"+String(i),-1),l.markup="########".slice(0,i)),!0)}});var Jl=re((Jv,Ql)=>{"use strict";Ql.exports=function(e,t,n){var o,s,i,a,l,u,c,f,d,h=t+1,p,g=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";h<n&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(u=e.bMarks[h]+e.tShift[h],c=e.eMarks[h],u<c&&(d=e.src.charCodeAt(u),(d===45||d===61)&&(u=e.skipChars(u,d),u=e.skipSpaces(u),u>=c)))){f=d===61?1:2;break}if(!(e.sCount[h]<0)){for(s=!1,i=0,a=g.length;i<a;i++)if(g[i](e,h,n,!0)){s=!0;break}if(s)break}}return f?(o=e.getLines(t,h,e.blkIndent,!1).trim(),e.line=h+1,l=e.push("heading_open","h"+String(f),1),l.markup=String.fromCharCode(d),l.map=[t,e.line],l=e.push("inline","",0),l.content=o,l.map=[t,e.line-1],l.children=[],l=e.push("heading_close","h"+String(f),-1),l.markup=String.fromCharCode(d),e.parentType=p,!0):!1}});var tu=re((ey,eu)=>{"use strict";eu.exports=function(e,t){var n,o,s,i,a,l,u=t+1,c=e.md.block.ruler.getRules("paragraph"),f=e.lineMax;for(l=e.parentType,e.parentType="paragraph";u<f&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)&&!(e.sCount[u]<0)){for(o=!1,s=0,i=c.length;s<i;s++)if(c[s](e,u,f,!0)){o=!0;break}if(o)break}return n=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,a=e.push("paragraph_open","p",1),a.map=[t,e.line],a=e.push("inline","",0),a.content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=l,!0}});var iu=re((ty,nu)=>{"use strict";var ru=kn(),In=_e().isSpace;function Pt(r,e,t,n){var o,s,i,a,l,u,c,f;for(this.src=r,this.md=e,this.env=t,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,f=!1,i=a=u=c=0,l=s.length;a<l;a++){if(o=s.charCodeAt(a),!f)if(In(o)){u++,o===9?c+=4-c%4:c++;continue}else f=!0;(o===10||a===l-1)&&(o!==10&&a++,this.bMarks.push(i),this.eMarks.push(a),this.tShift.push(u),this.sCount.push(c),this.bsCount.push(0),f=!1,u=0,c=0,i=a+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Pt.prototype.push=function(r,e,t){var n=new ru(r,e,t);return n.block=!0,t<0&&this.level--,n.level=this.level,t>0&&this.level++,this.tokens.push(n),n};Pt.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Pt.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Pt.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),!!In(t));e++);return e};Pt.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!In(this.src.charCodeAt(--e)))return e+1;return e};Pt.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e};Pt.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e};Pt.prototype.getLines=function(e,t,n,o){var s,i,a,l,u,c,f,d=e;if(e>=t)return"";for(c=new Array(t-e),s=0;d<t;d++,s++){for(i=0,f=l=this.bMarks[d],d+1<t||o?u=this.eMarks[d]+1:u=this.eMarks[d];l<u&&i<n;){if(a=this.src.charCodeAt(l),In(a))a===9?i+=4-(i+this.bsCount[d])%4:i++;else if(l-f<this.tShift[d])i++;else break;l++}i>n?c[s]=new Array(i-n+1).join(" ")+this.src.slice(l,u):c[s]=this.src.slice(l,u)}return c.join("")};Pt.prototype.Token=ru;nu.exports=Pt});var su=re((ry,ou)=>{"use strict";var Nh=Cn(),Dn=[["table",kl(),["paragraph","reference"]],["code",Il()],["fence",Ll(),["paragraph","reference","blockquote","list"]],["blockquote",Ol(),["paragraph","reference","blockquote","list"]],["hr",Ml(),["paragraph","reference","blockquote","list"]],["list",Ul(),["paragraph","reference","blockquote"]],["reference",jl()],["html_block",Yl(),["paragraph","reference","blockquote"]],["heading",Zl(),["paragraph","reference","blockquote"]],["lheading",Jl()],["paragraph",tu()]];function Ln(){this.ruler=new Nh;for(var r=0;r<Dn.length;r++)this.ruler.push(Dn[r][0],Dn[r][1],{alt:(Dn[r][2]||[]).slice()})}Ln.prototype.tokenize=function(r,e,t){for(var n,o,s=this.ruler.getRules(""),i=s.length,a=e,l=!1,u=r.md.options.maxNesting;a<t&&(r.line=a=r.skipEmptyLines(a),!(a>=t||r.sCount[a]<r.blkIndent));){if(r.level>=u){r.line=t;break}for(o=0;o<i&&(n=s[o](r,a,t,!1),!n);o++);r.tight=!l,r.isEmpty(r.line-1)&&(l=!0),a=r.line,a<t&&r.isEmpty(a)&&(l=!0,a++,r.line=a)}};Ln.prototype.parse=function(r,e,t,n){var o;!r||(o=new this.State(r,e,t,n),this.tokenize(o,o.line,o.lineMax))};Ln.prototype.State=iu();ou.exports=Ln});var lu=re((ny,au)=>{"use strict";function Bh(r){switch(r){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}au.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!Bh(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}});var cu=re((iy,uu)=>{"use strict";var $h=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;uu.exports=function(e,t){var n,o,s,i,a,l,u,c;return!e.md.options.linkify||e.linkLevel>0||(n=e.pos,o=e.posMax,n+3>o)||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47||(s=e.pending.match($h),!s)||(i=s[1],a=e.md.linkify.matchAtStart(e.src.slice(n-i.length)),!a)||(l=a.url,l=l.replace(/\*+$/,""),u=e.md.normalizeLink(l),!e.md.validateLink(u))?!1:(t||(e.pending=e.pending.slice(0,-i.length),c=e.push("link_open","a",1),c.attrs=[["href",u]],c.markup="linkify",c.info="auto",c=e.push("text","",0),c.content=e.md.normalizeLinkText(l),c=e.push("link_close","a",-1),c.markup="linkify",c.info="auto"),e.pos+=l.length-i.length,!0)}});var fu=re((oy,du)=>{"use strict";var Uh=_e().isSpace;du.exports=function(e,t){var n,o,s,i=e.pos;if(e.src.charCodeAt(i)!==10)return!1;if(n=e.pending.length-1,o=e.posMax,!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){for(s=n-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(i++;i<o&&Uh(e.src.charCodeAt(i));)i++;return e.pos=i,!0}});var pu=re((sy,hu)=>{"use strict";var zh=_e().isSpace,Yi=[];for(Wi=0;Wi<256;Wi++)Yi.push(0);var Wi;"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){Yi[r.charCodeAt(0)]=1});hu.exports=function(e,t){var n,o,s,i,a,l=e.pos,u=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=u))return!1;if(n=e.src.charCodeAt(l),n===10){for(t||e.push("hardbreak","br",0),l++;l<u&&(n=e.src.charCodeAt(l),!!zh(n));)l++;return e.pos=l,!0}return i=e.src[l],n>=55296&&n<=56319&&l+1<u&&(o=e.src.charCodeAt(l+1),o>=56320&&o<=57343&&(i+=e.src[l+1],l++)),s="\\"+i,t||(a=e.push("text_special","",0),n<256&&Yi[n]!==0?a.content=i:a.content=s,a.markup=s,a.info="escape"),e.pos=l+1,!0}});var gu=re((ay,mu)=>{"use strict";mu.exports=function(e,t){var n,o,s,i,a,l,u,c,f=e.pos,d=e.src.charCodeAt(f);if(d!==96)return!1;for(n=f,f++,o=e.posMax;f<o&&e.src.charCodeAt(f)===96;)f++;if(s=e.src.slice(n,f),u=s.length,e.backticksScanned&&(e.backticks[u]||0)<=n)return t||(e.pending+=s),e.pos+=u,!0;for(a=l=f;(a=e.src.indexOf("`",l))!==-1;){for(l=a+1;l<o&&e.src.charCodeAt(l)===96;)l++;if(c=l-a,c===u)return t||(i=e.push("code_inline","code",0),i.markup=s,i.content=e.src.slice(f,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=l,!0;e.backticks[c]=a}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=u,!0}});var Xi=re((ly,Ki)=>{"use strict";Ki.exports.tokenize=function(e,t){var n,o,s,i,a,l=e.pos,u=e.src.charCodeAt(l);if(t||u!==126||(o=e.scanDelims(e.pos,!0),i=o.length,a=String.fromCharCode(u),i<2))return!1;for(i%2&&(s=e.push("text","",0),s.content=a,i--),n=0;n<i;n+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function vu(r,e){var t,n,o,s,i,a=[],l=e.length;for(t=0;t<l;t++)o=e[t],o.marker===126&&o.end!==-1&&(s=e[o.end],i=r.tokens[o.token],i.type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",i=r.tokens[s.token],i.type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="",r.tokens[s.token-1].type==="text"&&r.tokens[s.token-1].content==="~"&&a.push(s.token-1));for(;a.length;){for(t=a.pop(),n=t+1;n<r.tokens.length&&r.tokens[n].type==="s_close";)n++;n--,t!==n&&(i=r.tokens[n],r.tokens[n]=r.tokens[t],r.tokens[t]=i)}}Ki.exports.postProcess=function(e){var t,n=e.tokens_meta,o=e.tokens_meta.length;for(vu(e,e.delimiters),t=0;t<o;t++)n[t]&&n[t].delimiters&&vu(e,n[t].delimiters)}});var Qi=re((uy,Zi)=>{"use strict";Zi.exports.tokenize=function(e,t){var n,o,s,i=e.pos,a=e.src.charCodeAt(i);if(t||a!==95&&a!==42)return!1;for(o=e.scanDelims(e.pos,a===42),n=0;n<o.length;n++)s=e.push("text","",0),s.content=String.fromCharCode(a),e.delimiters.push({marker:a,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function yu(r,e){var t,n,o,s,i,a,l=e.length;for(t=l-1;t>=0;t--)n=e[t],!(n.marker!==95&&n.marker!==42)&&n.end!==-1&&(o=e[n.end],a=t>0&&e[t-1].end===n.end+1&&e[t-1].marker===n.marker&&e[t-1].token===n.token-1&&e[n.end+1].token===o.token+1,i=String.fromCharCode(n.marker),s=r.tokens[n.token],s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?i+i:i,s.content="",s=r.tokens[o.token],s.type=a?"strong_close":"em_close",s.tag=a?"strong":"em",s.nesting=-1,s.markup=a?i+i:i,s.content="",a&&(r.tokens[e[t-1].token].content="",r.tokens[e[n.end+1].token].content="",t--))}Zi.exports.postProcess=function(e){var t,n=e.tokens_meta,o=e.tokens_meta.length;for(yu(e,e.delimiters),t=0;t<o;t++)n[t]&&n[t].delimiters&&yu(e,n[t].delimiters)}});var xu=re((cy,bu)=>{"use strict";var jh=_e().normalizeReference,Ji=_e().isSpace;bu.exports=function(e,t){var n,o,s,i,a,l,u,c,f,d="",h="",p=e.pos,g=e.posMax,y=e.pos,b=!0;if(e.src.charCodeAt(e.pos)!==91||(a=e.pos+1,i=e.md.helpers.parseLinkLabel(e,e.pos,!0),i<0))return!1;if(l=i+1,l<g&&e.src.charCodeAt(l)===40){for(b=!1,l++;l<g&&(o=e.src.charCodeAt(l),!(!Ji(o)&&o!==10));l++);if(l>=g)return!1;if(y=l,u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),u.ok){for(d=e.md.normalizeLink(u.str),e.md.validateLink(d)?l=u.pos:d="",y=l;l<g&&(o=e.src.charCodeAt(l),!(!Ji(o)&&o!==10));l++);if(u=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<g&&y!==l&&u.ok)for(h=u.str,l=u.pos;l<g&&(o=e.src.charCodeAt(l),!(!Ji(o)&&o!==10));l++);}(l>=g||e.src.charCodeAt(l)!==41)&&(b=!0),l++}if(b){if(typeof e.env.references>"u")return!1;if(l<g&&e.src.charCodeAt(l)===91?(y=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?s=e.src.slice(y,l++):l=i+1):l=i+1,s||(s=e.src.slice(a,i)),c=e.env.references[jh(s)],!c)return e.pos=p,!1;d=c.href,h=c.title}return t||(e.pos=a,e.posMax=i,f=e.push("link_open","a",1),f.attrs=n=[["href",d]],h&&n.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=l,e.posMax=g,!0}});var Eu=re((dy,wu)=>{"use strict";var Hh=_e().normalizeReference,eo=_e().isSpace;wu.exports=function(e,t){var n,o,s,i,a,l,u,c,f,d,h,p,g,y="",b=e.pos,x=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(u=a+1,u<x&&e.src.charCodeAt(u)===40){for(u++;u<x&&(o=e.src.charCodeAt(u),!(!eo(o)&&o!==10));u++);if(u>=x)return!1;for(g=u,f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),f.ok&&(y=e.md.normalizeLink(f.str),e.md.validateLink(y)?u=f.pos:y=""),g=u;u<x&&(o=e.src.charCodeAt(u),!(!eo(o)&&o!==10));u++);if(f=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<x&&g!==u&&f.ok)for(d=f.str,u=f.pos;u<x&&(o=e.src.charCodeAt(u),!(!eo(o)&&o!==10));u++);else d="";if(u>=x||e.src.charCodeAt(u)!==41)return e.pos=b,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<x&&e.src.charCodeAt(u)===91?(g=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?i=e.src.slice(g,u++):u=a+1):u=a+1,i||(i=e.src.slice(l,a)),c=e.env.references[Hh(i)],!c)return e.pos=b,!1;y=c.href,d=c.title}return t||(s=e.src.slice(l,a),e.md.inline.parse(s,e.md,e.env,p=[]),h=e.push("image","img",0),h.attrs=n=[["src",y],["alt",""]],h.children=p,h.content=s,d&&n.push(["title",d])),e.pos=u,e.posMax=x,!0}});var Cu=re((fy,Su)=>{"use strict";var qh=/^([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])?)*)$/,Vh=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;Su.exports=function(e,t){var n,o,s,i,a,l,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++u>=l||(i=e.src.charCodeAt(u),i===60))return!1;if(i===62)break}return n=e.src.slice(a+1,u),Vh.test(n)?(o=e.md.normalizeLink(n),e.md.validateLink(o)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(n),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=n.length+2,!0):!1):qh.test(n)?(o=e.md.normalizeLink("mailto:"+n),e.md.validateLink(o)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(n),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=n.length+2,!0):!1):!1}});var ku=re((hy,Au)=>{"use strict";var Gh=Gi().HTML_TAG_RE;function Wh(r){return/^<a[>\s]/i.test(r)}function Yh(r){return/^<\/a\s*>/i.test(r)}function Kh(r){var e=r|32;return e>=97&&e<=122}Au.exports=function(e,t){var n,o,s,i,a=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(a)!==60||a+2>=s)||(n=e.src.charCodeAt(a+1),n!==33&&n!==63&&n!==47&&!Kh(n))||(o=e.src.slice(a).match(Gh),!o)?!1:(t||(i=e.push("html_inline","",0),i.content=e.src.slice(a,a+o[0].length),Wh(i.content)&&e.linkLevel++,Yh(i.content)&&e.linkLevel--),e.pos+=o[0].length,!0)}});var Lu=re((py,Du)=>{"use strict";var Tu=_i(),Xh=_e().has,Zh=_e().isValidEntityCode,Iu=_e().fromCodePoint,Qh=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Jh=/^&([a-z][a-z0-9]{1,31});/i;Du.exports=function(e,t){var n,o,s,i,a=e.pos,l=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=l)return!1;if(n=e.src.charCodeAt(a+1),n===35){if(s=e.src.slice(a).match(Qh),s)return t||(o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),i=e.push("text_special","",0),i.content=Zh(o)?Iu(o):Iu(65533),i.markup=s[0],i.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(a).match(Jh),s&&Xh(Tu,s[1]))return t||(i=e.push("text_special","",0),i.content=Tu[s[1]],i.markup=s[0],i.info="entity"),e.pos+=s[0].length,!0;return!1}});var Ou=re((my,Ru)=>{"use strict";function Fu(r,e){var t,n,o,s,i,a,l,u,c={},f=e.length;if(!!f){var d=0,h=-2,p=[];for(t=0;t<f;t++)if(o=e[t],p.push(0),(e[d].marker!==o.marker||h!==o.token-1)&&(d=t),h=o.token,o.length=o.length||0,!!o.close){for(c.hasOwnProperty(o.marker)||(c[o.marker]=[-1,-1,-1,-1,-1,-1]),i=c[o.marker][(o.open?3:0)+o.length%3],n=d-p[d]-1,a=n;n>i;n-=p[n]+1)if(s=e[n],s.marker===o.marker&&s.open&&s.end<0&&(l=!1,(s.close||o.open)&&(s.length+o.length)%3===0&&(s.length%3!==0||o.length%3!==0)&&(l=!0),!l)){u=n>0&&!e[n-1].open?p[n-1]+1:0,p[t]=t-n+u,p[n]=u,o.open=!1,s.end=t,s.close=!1,a=-1,h=-2;break}a!==-1&&(c[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}Ru.exports=function(e){var t,n=e.tokens_meta,o=e.tokens_meta.length;for(Fu(e,e.delimiters),t=0;t<o;t++)n[t]&&n[t].delimiters&&Fu(e,n[t].delimiters)}});var Mu=re((gy,Pu)=>{"use strict";Pu.exports=function(e){var t,n,o=0,s=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)s[t].nesting<0&&o--,s[t].level=o,s[t].nesting>0&&o++,s[t].type==="text"&&t+1<i&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}});var Uu=re((vy,$u)=>{"use strict";var to=kn(),_u=_e().isWhiteSpace,Nu=_e().isPunctChar,Bu=_e().isMdAsciiPunct;function Ur(r,e,t,n){this.src=r,this.env=t,this.md=e,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Ur.prototype.pushPending=function(){var r=new to("text","",0);return r.content=this.pending,r.level=this.pendingLevel,this.tokens.push(r),this.pending="",r};Ur.prototype.push=function(r,e,t){this.pending&&this.pushPending();var n=new to(r,e,t),o=null;return t<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,t>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(o),n};Ur.prototype.scanDelims=function(r,e){var t=r,n,o,s,i,a,l,u,c,f,d=!0,h=!0,p=this.posMax,g=this.src.charCodeAt(r);for(n=r>0?this.src.charCodeAt(r-1):32;t<p&&this.src.charCodeAt(t)===g;)t++;return s=t-r,o=t<p?this.src.charCodeAt(t):32,u=Bu(n)||Nu(String.fromCharCode(n)),f=Bu(o)||Nu(String.fromCharCode(o)),l=_u(n),c=_u(o),c?d=!1:f&&(l||u||(d=!1)),l?h=!1:u&&(c||f||(h=!1)),e?(i=d,a=h):(i=d&&(!h||u),a=h&&(!d||f)),{can_open:i,can_close:a,length:s}};Ur.prototype.Token=to;$u.exports=Ur});var Hu=re((yy,ju)=>{"use strict";var zu=Cn(),ro=[["text",lu()],["linkify",cu()],["newline",fu()],["escape",pu()],["backticks",gu()],["strikethrough",Xi().tokenize],["emphasis",Qi().tokenize],["link",xu()],["image",Eu()],["autolink",Cu()],["html_inline",ku()],["entity",Lu()]],no=[["balance_pairs",Ou()],["strikethrough",Xi().postProcess],["emphasis",Qi().postProcess],["fragments_join",Mu()]];function zr(){var r;for(this.ruler=new zu,r=0;r<ro.length;r++)this.ruler.push(ro[r][0],ro[r][1]);for(this.ruler2=new zu,r=0;r<no.length;r++)this.ruler2.push(no[r][0],no[r][1])}zr.prototype.skipToken=function(r){var e,t,n=r.pos,o=this.ruler.getRules(""),s=o.length,i=r.md.options.maxNesting,a=r.cache;if(typeof a[n]<"u"){r.pos=a[n];return}if(r.level<i)for(t=0;t<s&&(r.level++,e=o[t](r,!0),r.level--,!e);t++);else r.pos=r.posMax;e||r.pos++,a[n]=r.pos};zr.prototype.tokenize=function(r){for(var e,t,n=this.ruler.getRules(""),o=n.length,s=r.posMax,i=r.md.options.maxNesting;r.pos<s;){if(r.level<i)for(t=0;t<o&&(e=n[t](r,!1),!e);t++);if(e){if(r.pos>=s)break;continue}r.pending+=r.src[r.pos++]}r.pending&&r.pushPending()};zr.prototype.parse=function(r,e,t,n){var o,s,i,a=new this.State(r,e,t,n);for(this.tokenize(a),s=this.ruler2.getRules(""),i=s.length,o=0;o<i;o++)s[o](a)};zr.prototype.State=Uu();ju.exports=zr});var Vu=re((by,qu)=>{"use strict";qu.exports=function(r){var e={};r=r||{},e.src_Any=Bi().source,e.src_Cc=$i().source,e.src_Z=Ui().source,e.src_P=bn().source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var t="[><\uFF5C]";return e.src_pseudo_letter="(?:(?!"+t+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+t+"|"+e.src_ZPCc+")(?!"+(r["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+t+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(r["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}});var Xu=re((xy,Ku)=>{"use strict";function io(r){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){!t||Object.keys(t).forEach(function(n){r[n]=t[n]})}),r}function Rn(r){return Object.prototype.toString.call(r)}function ep(r){return Rn(r)==="[object String]"}function tp(r){return Rn(r)==="[object Object]"}function rp(r){return Rn(r)==="[object RegExp]"}function Gu(r){return Rn(r)==="[object Function]"}function np(r){return r.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Yu={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function ip(r){return Object.keys(r||{}).reduce(function(e,t){return e||Yu.hasOwnProperty(t)},!1)}var op={"http:":{validate:function(r,e,t){var n=r.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(n)?n.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(r,e,t){var n=r.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(n)?e>=3&&r[e-3]===":"||e>=3&&r[e-3]==="/"?0:n.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(r,e,t){var n=r.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(n)?n.match(t.re.mailto)[0].length:0}}},sp="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",ap="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function lp(r){r.__index__=-1,r.__text_cache__=""}function up(r){return function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}}function Wu(){return function(r,e){e.normalize(r)}}function Fn(r){var e=r.re=Vu()(r.__opts__),t=r.__tlds__.slice();r.onCompile(),r.__tlds_replaced__||t.push(sp),t.push(e.src_xn),e.src_tlds=t.join("|");function n(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(n(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(n(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(n(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(n(e.tpl_host_fuzzy_test),"i");var o=[];r.__compiled__={};function s(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(r.__schemas__).forEach(function(a){var l=r.__schemas__[a];if(l!==null){var u={validate:null,link:null};if(r.__compiled__[a]=u,tp(l)){rp(l.validate)?u.validate=up(l.validate):Gu(l.validate)?u.validate=l.validate:s(a,l),Gu(l.normalize)?u.normalize=l.normalize:l.normalize?s(a,l):u.normalize=Wu();return}if(ep(l)){o.push(a);return}s(a,l)}}),o.forEach(function(a){!r.__compiled__[r.__schemas__[a]]||(r.__compiled__[a].validate=r.__compiled__[r.__schemas__[a]].validate,r.__compiled__[a].normalize=r.__compiled__[r.__schemas__[a]].normalize)}),r.__compiled__[""]={validate:null,normalize:Wu()};var i=Object.keys(r.__compiled__).filter(function(a){return a.length>0&&r.__compiled__[a]}).map(np).join("|");r.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","i"),r.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","ig"),r.re.schema_at_start=RegExp("^"+r.re.schema_search.source,"i"),r.re.pretest=RegExp("("+r.re.schema_test.source+")|("+r.re.host_fuzzy_test.source+")|@","i"),lp(r)}function cp(r,e){var t=r.__index__,n=r.__last_index__,o=r.__text_cache__.slice(t,n);this.schema=r.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=n+e,this.raw=o,this.text=o,this.url=o}function oo(r,e){var t=new cp(r,e);return r.__compiled__[t.schema].normalize(t,r),t}function yt(r,e){if(!(this instanceof yt))return new yt(r,e);e||ip(r)&&(e=r,r={}),this.__opts__=io({},Yu,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=io({},op,r),this.__compiled__={},this.__tlds__=ap,this.__tlds_replaced__=!1,this.re={},Fn(this)}yt.prototype.add=function(e,t){return this.__schemas__[e]=t,Fn(this),this};yt.prototype.set=function(e){return this.__opts__=io(this.__opts__,e),this};yt.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,o,s,i,a,l,u,c;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(t=l.exec(e))!==null;)if(s=this.testSchemaAt(e,t[2],l.lastIndex),s){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&(o=e.match(this.re.email_fuzzy))!==null&&(i=o.index+o[1].length,a=o.index+o[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a))),this.__index__>=0};yt.prototype.pretest=function(e){return this.re.pretest.test(e)};yt.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0};yt.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(oo(this,t)),t=this.__last_index__);for(var o=t?e.slice(t):e;this.test(o);)n.push(oo(this,t)),o=o.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null};yt.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,oo(this,0)):null};yt.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,o,s){return n!==s[o-1]}).reverse(),Fn(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Fn(this),this)};yt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};yt.prototype.onCompile=function(){};Ku.exports=yt});var ic={};Md(ic,{decode:()=>uo,default:()=>yp,encode:()=>co,toASCII:()=>nc,toUnicode:()=>rc,ucs2decode:()=>lo,ucs2encode:()=>ec});function rr(r){throw new RangeError(pp[r])}function mp(r,e){let t=[],n=r.length;for(;n--;)t[n]=e(r[n]);return t}function Ju(r,e){let t=r.split("@"),n="";t.length>1&&(n=t[0]+"@",r=t[1]),r=r.replace(hp,".");let o=r.split("."),s=mp(o,e).join(".");return n+s}function lo(r){let e=[],t=0,n=r.length;for(;t<n;){let o=r.charCodeAt(t++);if(o>=55296&&o<=56319&&t<n){let s=r.charCodeAt(t++);(s&64512)==56320?e.push(((o&1023)<<10)+(s&1023)+65536):(e.push(o),t--)}else e.push(o)}return e}var Qu,dp,fp,hp,pp,so,Mt,ao,ec,gp,Zu,tc,uo,co,rc,nc,vp,yp,oc=Pd(()=>{"use strict";Qu="-",dp=/^xn--/,fp=/[^\0-\x7E]/,hp=/[\x2E\u3002\uFF0E\uFF61]/g,pp={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},so=36-1,Mt=Math.floor,ao=String.fromCharCode;ec=r=>String.fromCodePoint(...r),gp=function(r){return r-48<10?r-22:r-65<26?r-65:r-97<26?r-97:36},Zu=function(r,e){return r+22+75*(r<26)-((e!=0)<<5)},tc=function(r,e,t){let n=0;for(r=t?Mt(r/700):r>>1,r+=Mt(r/e);r>so*26>>1;n+=36)r=Mt(r/so);return Mt(n+(so+1)*r/(r+38))},uo=function(r){let e=[],t=r.length,n=0,o=128,s=72,i=r.lastIndexOf(Qu);i<0&&(i=0);for(let a=0;a<i;++a)r.charCodeAt(a)>=128&&rr("not-basic"),e.push(r.charCodeAt(a));for(let a=i>0?i+1:0;a<t;){let l=n;for(let c=1,f=36;;f+=36){a>=t&&rr("invalid-input");let d=gp(r.charCodeAt(a++));(d>=36||d>Mt((2147483647-n)/c))&&rr("overflow"),n+=d*c;let h=f<=s?1:f>=s+26?26:f-s;if(d<h)break;let p=36-h;c>Mt(2147483647/p)&&rr("overflow"),c*=p}let u=e.length+1;s=tc(n-l,u,l==0),Mt(n/u)>2147483647-o&&rr("overflow"),o+=Mt(n/u),n%=u,e.splice(n++,0,o)}return String.fromCodePoint(...e)},co=function(r){let e=[];r=lo(r);let t=r.length,n=128,o=0,s=72;for(let l of r)l<128&&e.push(ao(l));let i=e.length,a=i;for(i&&e.push(Qu);a<t;){let l=2147483647;for(let c of r)c>=n&&c<l&&(l=c);let u=a+1;l-n>Mt((2147483647-o)/u)&&rr("overflow"),o+=(l-n)*u,n=l;for(let c of r)if(c<n&&++o>2147483647&&rr("overflow"),c==n){let f=o;for(let d=36;;d+=36){let h=d<=s?1:d>=s+26?26:d-s;if(f<h)break;let p=f-h,g=36-h;e.push(ao(Zu(h+p%g,0))),f=Mt(p/g)}e.push(ao(Zu(f,0))),s=tc(o,u,a==i),o=0,++a}++o,++n}return e.join("")},rc=function(r){return Ju(r,function(e){return dp.test(e)?uo(e.slice(4).toLowerCase()):e})},nc=function(r){return Ju(r,function(e){return fp.test(e)?"xn--"+co(e):e})},vp={version:"2.1.0",ucs2:{decode:lo,encode:ec},decode:uo,encode:co,toASCII:nc,toUnicode:rc},yp=vp});var ac=re((wy,sc)=>{"use strict";sc.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}});var uc=re((Ey,lc)=>{"use strict";lc.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}});var dc=re((Sy,cc)=>{"use strict";cc.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}});var mc=re((Cy,pc)=>{"use strict";var jr=_e(),bp=Ya(),xp=Xa(),wp=Sl(),Ep=su(),Sp=Hu(),Cp=Xu(),nr=Ni(),fc=(oc(),_d(ic)),Ap={default:ac(),zero:uc(),commonmark:dc()},kp=/^(vbscript|javascript|file|data):/,Tp=/^data:image\/(gif|png|jpeg|webp);/;function Ip(r){var e=r.trim().toLowerCase();return kp.test(e)?!!Tp.test(e):!0}var hc=["http:","https:","mailto:"];function Dp(r){var e=nr.parse(r,!0);if(e.hostname&&(!e.protocol||hc.indexOf(e.protocol)>=0))try{e.hostname=fc.toASCII(e.hostname)}catch{}return nr.encode(nr.format(e))}function Lp(r){var e=nr.parse(r,!0);if(e.hostname&&(!e.protocol||hc.indexOf(e.protocol)>=0))try{e.hostname=fc.toUnicode(e.hostname)}catch{}return nr.decode(nr.format(e),nr.decode.defaultChars+"%")}function St(r,e){if(!(this instanceof St))return new St(r,e);e||jr.isString(r)||(e=r||{},r="default"),this.inline=new Sp,this.block=new Ep,this.core=new wp,this.renderer=new xp,this.linkify=new Cp,this.validateLink=Ip,this.normalizeLink=Dp,this.normalizeLinkText=Lp,this.utils=jr,this.helpers=jr.assign({},bp),this.options={},this.configure(r),e&&this.set(e)}St.prototype.set=function(r){return jr.assign(this.options,r),this};St.prototype.configure=function(r){var e=this,t;if(jr.isString(r)&&(t=r,r=Ap[t],!r))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!r)throw new Error("Wrong `markdown-it` preset, can't be empty");return r.options&&e.set(r.options),r.components&&Object.keys(r.components).forEach(function(n){r.components[n].rules&&e[n].ruler.enableOnly(r.components[n].rules),r.components[n].rules2&&e[n].ruler2.enableOnly(r.components[n].rules2)}),this};St.prototype.enable=function(r,e){var t=[];Array.isArray(r)||(r=[r]),["core","block","inline"].forEach(function(o){t=t.concat(this[o].ruler.enable(r,!0))},this),t=t.concat(this.inline.ruler2.enable(r,!0));var n=r.filter(function(o){return t.indexOf(o)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};St.prototype.disable=function(r,e){var t=[];Array.isArray(r)||(r=[r]),["core","block","inline"].forEach(function(o){t=t.concat(this[o].ruler.disable(r,!0))},this),t=t.concat(this.inline.ruler2.disable(r,!0));var n=r.filter(function(o){return t.indexOf(o)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};St.prototype.use=function(r){var e=[this].concat(Array.prototype.slice.call(arguments,1));return r.apply(r,e),this};St.prototype.parse=function(r,e){if(typeof r!="string")throw new Error("Input data should be a String");var t=new this.core.State(r,this,e);return this.core.process(t),t.tokens};St.prototype.render=function(r,e){return e=e||{},this.renderer.render(this.parse(r,e),this.options,e)};St.prototype.parseInline=function(r,e){var t=new this.core.State(r,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};St.prototype.renderInline=function(r,e){return e=e||{},this.renderer.render(this.parseInline(r,e),this.options,e)};pc.exports=St});var vc=re((Ay,gc)=>{"use strict";gc.exports=mc()});var Ec=re((ky,wc)=>{var fo=!0,bc=!1,xc=!1;wc.exports=function(r,e){e&&(fo=!e.enabled,bc=!!e.label,xc=!!e.labelAfter),r.core.ruler.after("inline","github-task-lists",function(t){for(var n=t.tokens,o=2;o<n.length;o++)Rp(n,o)&&(Op(n[o],t.Token),yc(n[o-2],"class","task-list-item"+(fo?"":" enabled")),yc(n[Fp(n,o-2)],"class","contains-task-list"))})};function yc(r,e,t){var n=r.attrIndex(e),o=[e,t];n<0?r.attrPush(o):r.attrs[n]=o}function Fp(r,e){for(var t=r[e].level-1,n=e-1;n>=0;n--)if(r[n].level===t)return n;return-1}function Rp(r,e){return Bp(r[e])&&$p(r[e-1])&&Up(r[e-2])&&zp(r[e])}function Op(r,e){if(r.children.unshift(Pp(r,e)),r.children[1].content=r.children[1].content.slice(3),r.content=r.content.slice(3),bc)if(xc){r.children.pop();var t="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);r.children[0].content=r.children[0].content.slice(0,-1)+' id="'+t+'">',r.children.push(Np(r.content,t,e))}else r.children.unshift(Mp(e)),r.children.push(_p(e))}function Pp(r,e){var t=new e("html_inline","",0),n=fo?' disabled="" ':"";return r.content.indexOf("[ ] ")===0?t.content='<input class="task-list-item-checkbox"'+n+'type="checkbox">':(r.content.indexOf("[x] ")===0||r.content.indexOf("[X] ")===0)&&(t.content='<input class="task-list-item-checkbox" checked=""'+n+'type="checkbox">'),t}function Mp(r){var e=new r("html_inline","",0);return e.content="<label>",e}function _p(r){var e=new r("html_inline","",0);return e.content="</label>",e}function Np(r,e,t){var n=new t("html_inline","",0);return n.content='<label class="task-list-item-label" for="'+e+'">'+r+"</label>",n.attrs=[{for:e}],n}function Bp(r){return r.type==="inline"}function $p(r){return r.type==="paragraph_open"}function Up(r){return r.type==="list_item_open"}function zp(r){return r.content.indexOf("[ ] ")===0||r.content.indexOf("[x] ")===0||r.content.indexOf("[X] ")===0}});var _c=re((Gr,Io)=>{(function(r,e){typeof Gr=="object"&&typeof Io=="object"?Io.exports=e():typeof define=="function"&&define.amd?define([],e):typeof Gr=="object"?Gr.ClipboardJS=e():r.ClipboardJS=e()})(Gr,function(){return e={686:function(n,l,s){"use strict";s.d(l,{default:function(){return C}});var l=s(279),i=s.n(l),l=s(370),a=s.n(l),l=s(817),u=s.n(l);function c(P){try{return document.execCommand(P)}catch{return}}var f=function(P){return P=u()(P),c("cut"),P};function d(M,A){var D,I,M=(D=M,I=document.documentElement.getAttribute("dir")==="rtl",(M=document.createElement("textarea")).style.fontSize="12pt",M.style.border="0",M.style.padding="0",M.style.margin="0",M.style.position="absolute",M.style[I?"right":"left"]="-9999px",I=window.pageYOffset||document.documentElement.scrollTop,M.style.top="".concat(I,"px"),M.setAttribute("readonly",""),M.value=D,M);return A.container.appendChild(M),A=u()(M),c("copy"),M.remove(),A}var h=function(P){var A=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body},D="";return typeof P=="string"?D=d(P,A):P instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(P?.type)?D=d(P.value,A):(D=u()(P),c("copy")),D};function p(P){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(P)}var g=function(){var I=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},D=I.action,P=D===void 0?"copy":D,A=I.container,D=I.target,I=I.text;if(P!=="copy"&&P!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(D!==void 0){if(!D||p(D)!=="object"||D.nodeType!==1)throw new Error('Invalid "target" value, use a valid Element');if(P==="copy"&&D.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(P==="cut"&&(D.hasAttribute("readonly")||D.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}return I?h(I,{container:A}):D?P==="cut"?f(D):h(D,{container:A}):void 0};function y(P){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(P)}function b(P,A){for(var D=0;D<A.length;D++){var I=A[D];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(P,I.key,I)}}function x(P,A){return(x=Object.setPrototypeOf||function(D,I){return D.__proto__=I,D})(P,A)}function k(P){var A=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var D,I=S(P);return D=A?(D=S(this).constructor,Reflect.construct(I,arguments,D)):I.apply(this,arguments),I=this,!(D=D)||y(D)!=="object"&&typeof D!="function"?function(M){if(M!==void 0)return M;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(I):D}}function S(P){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)})(P)}function O(P,A){if(P="data-clipboard-".concat(P),A.hasAttribute(P))return A.getAttribute(P)}var C=function(){(function(N,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(B&&B.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),B&&x(N,B)})(M,i());var P,A,D,I=k(M);function M(N,B){var H;return function(Z){if(!(Z instanceof M))throw new TypeError("Cannot call a class as a function")}(this),(H=I.call(this)).resolveOptions(B),H.listenClick(N),H}return P=M,D=[{key:"copy",value:function(N){var B=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body};return h(N,B)}},{key:"cut",value:function(N){return f(N)}},{key:"isSupported",value:function(){var N=0<arguments.length&&arguments[0]!==void 0?arguments[0]:["copy","cut"],N=typeof N=="string"?[N]:N,B=!!document.queryCommandSupported;return N.forEach(function(H){B=B&&!!document.queryCommandSupported(H)}),B}}],(A=[{key:"resolveOptions",value:function(){var N=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof N.action=="function"?N.action:this.defaultAction,this.target=typeof N.target=="function"?N.target:this.defaultTarget,this.text=typeof N.text=="function"?N.text:this.defaultText,this.container=y(N.container)==="object"?N.container:document.body}},{key:"listenClick",value:function(N){var B=this;this.listener=a()(N,"click",function(H){return B.onClick(H)})}},{key:"onClick",value:function(Z){var B=Z.delegateTarget||Z.currentTarget,H=this.action(B)||"copy",Z=g({action:H,container:this.container,target:this.target(B),text:this.text(B)});this.emit(Z?"success":"error",{action:H,text:Z,trigger:B,clearSelection:function(){B&&B.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(N){return O("action",N)}},{key:"defaultTarget",value:function(N){if(N=O("target",N),N)return document.querySelector(N)}},{key:"defaultText",value:function(N){return O("text",N)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&b(P.prototype,A),D&&b(P,D),M}()},828:function(n){var o;typeof Element>"u"||Element.prototype.matches||((o=Element.prototype).matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector),n.exports=function(s,i){for(;s&&s.nodeType!==9;){if(typeof s.matches=="function"&&s.matches(i))return s;s=s.parentNode}}},438:function(n,o,s){var i=s(828);function a(l,u,c,f,d){var h=function(p,g,y,b){return function(x){x.delegateTarget=i(x.target,g),x.delegateTarget&&b.call(p,x)}}.apply(this,arguments);return l.addEventListener(c,h,d),{destroy:function(){l.removeEventListener(c,h,d)}}}n.exports=function(l,u,c,f,d){return typeof l.addEventListener=="function"?a.apply(null,arguments):typeof c=="function"?a.bind(null,document).apply(null,arguments):(typeof l=="string"&&(l=document.querySelectorAll(l)),Array.prototype.map.call(l,function(h){return a(h,u,c,f,d)}))}},879:function(n,o){o.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},o.nodeList=function(s){var i=Object.prototype.toString.call(s);return s!==void 0&&(i==="[object NodeList]"||i==="[object HTMLCollection]")&&"length"in s&&(s.length===0||o.node(s[0]))},o.string=function(s){return typeof s=="string"||s instanceof String},o.fn=function(s){return Object.prototype.toString.call(s)==="[object Function]"}},370:function(n,o,s){var i=s(879),a=s(438);n.exports=function(l,u,c){if(!l&&!u&&!c)throw new Error("Missing required arguments");if(!i.string(u))throw new TypeError("Second argument must be a String");if(!i.fn(c))throw new TypeError("Third argument must be a Function");if(i.node(l))return g=u,y=c,(p=l).addEventListener(g,y),{destroy:function(){p.removeEventListener(g,y)}};if(i.nodeList(l))return f=l,d=u,h=c,Array.prototype.forEach.call(f,function(b){b.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(f,function(b){b.removeEventListener(d,h)})}};if(i.string(l))return l=l,u=u,c=c,a(document.body,l,u,c);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var f,d,h,p,g,y}},817:function(n){n.exports=function(o){var s,i=o.nodeName==="SELECT"?(o.focus(),o.value):o.nodeName==="INPUT"||o.nodeName==="TEXTAREA"?((s=o.hasAttribute("readonly"))||o.setAttribute("readonly",""),o.select(),o.setSelectionRange(0,o.value.length),s||o.removeAttribute("readonly"),o.value):(o.hasAttribute("contenteditable")&&o.focus(),i=window.getSelection(),(s=document.createRange()).selectNodeContents(o),i.removeAllRanges(),i.addRange(s),i.toString());return i}},279:function(n){function o(){}o.prototype={on:function(s,i,a){var l=this.e||(this.e={});return(l[s]||(l[s]=[])).push({fn:i,ctx:a}),this},once:function(s,i,a){var l=this;function u(){l.off(s,u),i.apply(a,arguments)}return u._=i,this.on(s,u,a)},emit:function(s){for(var i=[].slice.call(arguments,1),a=((this.e||(this.e={}))[s]||[]).slice(),l=0,u=a.length;l<u;l++)a[l].fn.apply(a[l].ctx,i);return this},off:function(s,i){var a=this.e||(this.e={}),l=a[s],u=[];if(l&&i)for(var c=0,f=l.length;c<f;c++)l[c].fn!==i&&l[c].fn._!==i&&u.push(l[c]);return u.length?a[s]=u:delete a[s],this}},n.exports=o,n.exports.TinyEmitter=o}},t={},r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,{a:o}),o},r.d=function(n,o){for(var s in o)r.o(o,s)&&!r.o(n,s)&&Object.defineProperty(n,s,{enumerable:!0,get:o[s]})},r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},r(686).default;function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}var e,t})});var Sr={},Nd=[];function Kr(r,e){if(Nd.push({name:r,data:e}),typeof Sr[r]>"u")return this;let t=Sr[r];for(let n=0;n<t.length;n++)t[n](e)}function Bd(r,e){typeof Sr[r]>"u"&&(Sr[r]=[]),Sr[r].push(e)}function $d(r,e,t){let n=new CustomEvent(e,{detail:t,bubbles:!0});r.dispatchEvent(n)}function Ud(r){if(!!r.status&&r.status===422&&r.data){let e=Object.values(r.data).flat().join(`
-`);Kr("error",e)}}var Jo={emit:Kr,emitPublic:$d,listen:Bd,success:r=>Kr("success",r),error:r=>Kr("error",r),showValidationErrors:Ud};async function zd(r,e={}){return es(r,{method:"GET",params:e})}async function jd(r,e=null){return Xr("POST",r,e)}async function Hd(r,e=null){return Xr("PUT",r,e)}async function qd(r,e=null){return Xr("PATCH",r,e)}async function Vd(r,e=null){return Xr("DELETE",r,e)}async function Xr(r,e,t=null){let n={method:r,body:t};return typeof t=="object"&&!(t instanceof FormData)&&(n.headers={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},n.body=JSON.stringify(t)),t instanceof FormData&&r!=="post"&&(t.append("_method",r),n.method="post"),es(e,n)}async function es(r,e={}){if(r.startsWith("http")||(r=window.baseUrl(r)),e.params){let i=new URL(r);for(let a of Object.keys(e.params)){let l=e.params[a];typeof l<"u"&&l!==null&&i.searchParams.set(a,l)}r=i.toString()}let t=document.querySelector("meta[name=token]").getAttribute("content");e=Object.assign({},e,{credentials:"same-origin"}),e.headers=Object.assign({},e.headers||{},{baseURL:window.baseUrl(""),"X-CSRF-TOKEN":t});let n=await fetch(r,e),s={data:await Gd(n),headers:n.headers,redirected:n.redirected,status:n.status,statusText:n.statusText,url:n.url,original:n};if(!n.ok)throw s;return s}async function Gd(r){if(r.status===204)return null;let t=(r.headers.get("Content-Type")||"").split(";")[0].split("/").pop();return t==="javascript"||t==="json"?await r.json():await r.text()}var ts={get:zd,post:jd,put:Hd,patch:qd,delete:Vd};var Un=class{constructor(e){this.store=new Map,this.parseTranslations()}parseTranslations(){let e=document.querySelectorAll('meta[name="translation"]');for(let t of e){let n=t.getAttribute("key"),o=t.getAttribute("value");this.store.set(n,o)}}get(e,t){let n=this.getTransText(e);return this.performReplacements(n,t)}getPlural(e,t,n){let o=this.getTransText(e);return this.parsePlural(o,t,n)}parsePlural(e,t,n){let o=e.split("|"),s=/^{([0-9]+)}/,i=/^\[([0-9]+),([0-9*]+)]/,a=null;for(let l of o){let u=l.match(s);if(u!==null&&Number(u[1])===t){a=l.replace(s,"").trim();break}let c=l.match(i);if(c!==null&&Number(c[1])<=t&&(c[2]==="*"||Number(c[2])>=t)){a=l.replace(i,"").trim();break}}return a===null&&o.length>1&&(a=t===1?o[0]:o[1]),a===null&&(a=o[0]),this.performReplacements(a,n)}getTransText(e){let t=this.store.get(e);return t===void 0&&console.warn(`Translation with key "${e}" does not exist`),t}performReplacements(e,t){if(!t)return e;let n=e.match(/:([\S]+)/g);return n===null||n.forEach(o=>{let s=o.substring(1);typeof t[s]>"u"||(e=e.replace(o,t[s]))}),e}},rs=Un;function Zr(r,e){let t=document.querySelectorAll(r);for(let n of t)e(n)}function Qr(r,e,t){for(let n of e)r.addEventListener(n,t)}function Be(r,e){Array.isArray(r)||(r=[r]);for(let t of r)t.addEventListener("click",e),t.addEventListener("keydown",n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),e(n))})}function Jr(r,e){Array.isArray(r)||(r=[r]);let t=n=>{n.key==="Enter"&&e(n)};r.forEach(n=>n.addEventListener("keypress",t))}function We(r,e,t,n){r.addEventListener(t,function(o){let s=o.target.closest(e);s&&n.call(s,o,s)})}function ns(r,e){let t=document.querySelectorAll(r);e=e.toLowerCase();for(let n of t)if(n.textContent.toLowerCase().includes(e))return n;return null}function Cr(r){r.innerHTML='<div class="loading-container"><div></div><div></div><div></div></div>'}function is(r){let e=r.querySelectorAll(".loading-container");for(let t of e)t.remove()}function Ar(r,e,t){let n;return function(){let o=this,s=arguments,i=function(){n=null,t||r.apply(o,s)},a=t&&!n;clearTimeout(n),n=setTimeout(i,e),a&&r.apply(o,s)}}function kr(r){if(!r)return;r.scrollIntoView({behavior:"smooth"});let e=document.getElementById("custom-styles").getAttribute("data-color-light"),t=window.getComputedStyle(r).getPropertyValue("background-color");r.style.backgroundColor=e,setTimeout(()=>{r.classList.add("selectFade"),r.style.backgroundColor=t},10),setTimeout(()=>{r.classList.remove("selectFade"),r.style.backgroundColor=""},3e3)}function ss(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function as(){let r=()=>((1+Math.random())*65536|0).toString(16).substring(1);return r()+r()+"-"+r()+"-"+r()+"-"+r()+"-"+r()+r()+r()}var zn=class{setup(){this.modelRow=this.$refs.model,this.addButton=this.$refs.add,this.removeSelector=this.$opts.removeSelector,this.rowSelector=this.$opts.rowSelector,this.setupListeners()}setupListeners(){this.addButton.addEventListener("click",this.add.bind(this)),We(this.$el,this.removeSelector,"click",e=>{e.target.closest(this.rowSelector).remove()})}add(){let e=this.modelRow.cloneNode(!0);e.classList.remove("hidden"),this.setClonedInputNames(e),this.modelRow.parentNode.insertBefore(e,this.modelRow),window.components.init(e)}setClonedInputNames(e){let t=as(),n=e.querySelectorAll('[name*="randrowid"]');for(let o of n)o.name=o.name.split("randrowid").join(t)}},ls=zn;var jn=class{setup(){this.row=this.$el,this.url=this.$opts.url,this.deleteButtons=this.$manyRefs.delete,Be(this.deleteButtons,this.runDelete.bind(this))}runDelete(){this.row.style.opacity="0.7",this.row.style.pointerEvents="none",window.$http.delete(this.url).then(e=>{typeof e.data=="object"&&e.data.message&&window.$events.emit("success",e.data.message),this.row.remove()}).catch(e=>{this.row.style.opacity=null,this.row.style.pointerEvents=null})}},us=jn;var Hn=class{setup(){this.container=this.$el,this.responseContainer=this.container,this.url=this.$opts.url,this.method=this.$opts.method||"post",this.successMessage=this.$opts.successMessage,this.submitButtons=this.$manyRefs.submit||[],this.$opts.responseContainer&&(this.responseContainer=this.container.closest(this.$opts.responseContainer)),this.setupListeners()}setupListeners(){if(this.container.tagName==="FORM"){this.container.addEventListener("submit",this.submitRealForm.bind(this));return}Jr(this.container,e=>{this.submitFakeForm(),e.preventDefault()}),this.submitButtons.forEach(e=>Be(e,this.submitFakeForm.bind(this)))}submitFakeForm(){let e=new FormData,t=this.container.querySelectorAll("[name]");for(let n of t)e.append(n.getAttribute("name"),n.value);this.submit(e)}submitRealForm(e){e.preventDefault();let t=new FormData(this.container);this.submit(t)}async submit(e){this.responseContainer.style.opacity="0.7",this.responseContainer.style.pointerEvents="none";try{let t=await window.$http[this.method.toLowerCase()](this.url,e);this.$emit("success",{formData:e}),this.responseContainer.innerHTML=t.data,this.successMessage&&window.$events.emit("success",this.successMessage)}catch(t){this.responseContainer.innerHTML=t.data}window.components.init(this.responseContainer),this.responseContainer.style.opacity=null,this.responseContainer.style.pointerEvents=null}},cs=Hn;var qn=class{setup(){this.container=this.$el,this.pageId=this.$opts.pageId,this.editContainer=this.$refs.editContainer,this.listContainer=this.$refs.listContainer,this.mainTabs=this.$refs.mainTabs,this.list=this.$refs.list,this.setupListeners()}setupListeners(){let e=this.reloadList.bind(this);this.container.addEventListener("dropzone-success",e),this.container.addEventListener("ajax-form-success",e),this.container.addEventListener("sortable-list-sort",t=>{this.updateOrder(t.detail.ids)}),this.container.addEventListener("event-emit-select-edit",t=>{this.startEdit(t.detail.id)}),this.container.addEventListener("event-emit-select-edit-back",t=>{this.stopEdit()}),this.container.addEventListener("event-emit-select-insert",t=>{let n=t.target.closest("[data-drag-content]").getAttribute("data-drag-content"),o=JSON.parse(n);window.$events.emit("editor::insert",{html:o["text/html"],markdown:o["text/plain"]})})}reloadList(){this.stopEdit(),this.mainTabs.components.tabs.show("items"),window.$http.get(`/attachments/get/page/${this.pageId}`).then(e=>{this.list.innerHTML=e.data,window.components.init(this.list)})}updateOrder(e){window.$http.put(`/attachments/sort/page/${this.pageId}`,{order:e}).then(t=>{window.$events.emit("success",t.data.message)})}async startEdit(e){this.editContainer.classList.remove("hidden"),this.listContainer.classList.add("hidden"),Cr(this.editContainer);let t=await window.$http.get(`/attachments/edit/${e}`);this.editContainer.innerHTML=t.data,window.components.init(this.editContainer)}stopEdit(){this.editContainer.classList.add("hidden"),this.listContainer.classList.remove("hidden")}},ds=qn;var Vn=class{setup(){this.container=this.$el,this.setupListeners()}setupListeners(){let e=t=>t.key==="Control"||t.key==="Meta";window.addEventListener("keydown",t=>{e(t)&&this.addOpenQueryToLinks()},{passive:!0}),window.addEventListener("keyup",t=>{e(t)&&this.removeOpenQueryFromLinks()},{passive:!0})}addOpenQueryToLinks(){let e=this.container.querySelectorAll("a.attachment-file");for(let t of e)t.href.split("?")[1]!=="open=true"&&(t.href=t.href+"?open=true",t.setAttribute("target","_blank"))}removeOpenQueryFromLinks(){let e=this.container.querySelectorAll("a.attachment-file");for(let t of e)t.href=t.href.split("?")[0],t.removeAttribute("target")}},fs=Vn;var Gn={},Wn=class{setup(){this.parent=this.$el.parentElement,this.container=this.$el,this.type=this.$opts.type,this.url=this.$opts.url,this.input=this.$refs.input,this.list=this.$refs.list,this.lastPopulated=0,this.setupListeners()}setupListeners(){this.input.addEventListener("input",this.requestSuggestions.bind(this)),this.input.addEventListener("focus",this.requestSuggestions.bind(this)),this.input.addEventListener("keydown",e=>{e.key==="Tab"&&this.hideSuggestions()}),this.input.addEventListener("blur",this.hideSuggestionsIfFocusedLost.bind(this)),this.container.addEventListener("keydown",this.containerKeyDown.bind(this)),We(this.list,"button","click",(e,t)=>{this.selectSuggestion(t.textContent)}),We(this.list,"button","keydown",(e,t)=>{e.key==="Enter"&&this.selectSuggestion(t.textContent)})}selectSuggestion(e){this.input.value=e,this.lastPopulated=Date.now(),this.input.focus(),this.input.dispatchEvent(new Event("input",{bubbles:!0})),this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.hideSuggestions()}containerKeyDown(e){e.key==="Enter"&&e.preventDefault(),!this.list.classList.contains("hidden")&&(e.key==="ArrowDown"?(this.moveFocus(!0),e.preventDefault()):e.key==="ArrowUp"?(this.moveFocus(!1),e.preventDefault()):e.key==="Escape"&&(this.hideSuggestions(),e.preventDefault()))}moveFocus(e=!0){let t=Array.from(this.container.querySelectorAll("input,button")),n=t.indexOf(document.activeElement),o=t[n+(e?1:-1)];o&&o.focus()}async requestSuggestions(){if(Date.now()-this.lastPopulated<50)return;let e=this.getNameFilterIfNeeded(),t=this.input.value.slice(0,3).toLowerCase(),n=await this.loadSuggestions(t,e),o=n.slice(0,6);t.length>0&&(o=n.filter(s=>s.toLowerCase().includes(t)).slice(0,6)),this.displaySuggestions(o)}getNameFilterIfNeeded(){return this.type!=="value"?null:this.parent.querySelector("input").value}async loadSuggestions(e,t=null){let n={search:e,name:t},o=`${this.url}:${JSON.stringify(n)}`;if(Gn[o])return Gn[o];let s=await window.$http.get(this.url,n);return Gn[o]=s.data,s.data}displaySuggestions(e){if(e.length===0)return this.hideSuggestions();this.list.innerHTML=e.map(t=>`<li><button type="button" class="text-item">${ss(t)}</button></li>`).join(""),this.list.style.display="block";for(let t of this.list.querySelectorAll("button"))t.addEventListener("blur",this.hideSuggestionsIfFocusedLost.bind(this))}hideSuggestions(){this.list.style.display="none"}hideSuggestionsIfFocusedLost(e){this.container.contains(e.relatedTarget)||this.hideSuggestions()}},hs=Wn;var Yn=class{constructor(e){if(this.elem=e,this.targetElem=document.getElementById("header"),this.showing=!1,this.breakPoint=1200,document.body.classList.contains("flexbox")){this.elem.style.display="none";return}this.elem.addEventListener("click",this.scrollToTop.bind(this)),window.addEventListener("scroll",this.onPageScroll.bind(this))}onPageScroll(){let e=document.documentElement.scrollTop||document.body.scrollTop||0;!this.showing&&e>this.breakPoint?(this.elem.style.display="block",this.showing=!0,setTimeout(()=>{this.elem.style.opacity=.4},1)):this.showing&&e<this.breakPoint&&(this.elem.style.opacity=0,this.showing=!1,setTimeout(()=>{this.elem.style.display="none"},500))}scrollToTop(){let e=this.targetElem.getBoundingClientRect().top,t=document.documentElement.scrollTop?document.documentElement:document.body,n=300,o=Date.now(),s=this.targetElem.getBoundingClientRect().top;function i(){let a=1-(Date.now()-o)/n,l=Math.abs(a*s);a>0?(t.scrollTop=l,requestAnimationFrame(i.bind(this))):t.scrollTop=e}requestAnimationFrame(i.bind(this))}},ps=Yn;function ms(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,n)}return t}function Rt(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ms(Object(t),!0).forEach(function(n){Wd(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ms(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function on(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?on=function(e){return typeof e}:on=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(r)}function Wd(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function jt(){return jt=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},jt.apply(this,arguments)}function Yd(r,e){if(r==null)return{};var t={},n=Object.keys(r),o,s;for(s=0;s<n.length;s++)o=n[s],!(e.indexOf(o)>=0)&&(t[o]=r[o]);return t}function Kd(r,e){if(r==null)return{};var t=Yd(r,e),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(o=0;o<s.length;o++)n=s[o],!(e.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(r,n)||(t[n]=r[n]))}return t}var Xd="1.15.0";function zt(r){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(r)}var Ht=zt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Mr=zt(/Edge/i),gs=zt(/firefox/i),Lr=zt(/safari/i)&&!zt(/chrome/i)&&!zt(/android/i),Cs=zt(/iP(ad|od|hone)/i),As=zt(/chrome/i)&&zt(/android/i),ks={capture:!1,passive:!1};function Me(r,e,t){r.addEventListener(e,t,!Ht&&ks)}function Le(r,e,t){r.removeEventListener(e,t,!Ht&&ks)}function cn(r,e){if(!!e){if(e[0]===">"&&(e=e.substring(1)),r)try{if(r.matches)return r.matches(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e)}catch{return!1}return!1}}function Zd(r){return r.host&&r!==document&&r.host.nodeType?r.host:r.parentNode}function Lt(r,e,t,n){if(r){t=t||document;do{if(e!=null&&(e[0]===">"?r.parentNode===t&&cn(r,e):cn(r,e))||n&&r===t)return r;if(r===t)break}while(r=Zd(r))}return null}var vs=/\s+/g;function mt(r,e,t){if(r&&e)if(r.classList)r.classList[t?"add":"remove"](e);else{var n=(" "+r.className+" ").replace(vs," ").replace(" "+e+" "," ");r.className=(n+(t?" "+e:"")).replace(vs," ")}}function ge(r,e,t){var n=r&&r.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(r,""):r.currentStyle&&(t=r.currentStyle),e===void 0?t:t[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=t+(typeof t=="string"?"":"px")}}function dr(r,e){var t="";if(typeof r=="string")t=r;else do{var n=ge(r,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!e&&(r=r.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(t)}function Ts(r,e,t){if(r){var n=r.getElementsByTagName(e),o=0,s=n.length;if(t)for(;o<s;o++)t(n[o],o);return n}return[]}function Ft(){var r=document.scrollingElement;return r||document.documentElement}function tt(r,e,t,n,o){if(!(!r.getBoundingClientRect&&r!==window)){var s,i,a,l,u,c,f;if(r!==window&&r.parentNode&&r!==Ft()?(s=r.getBoundingClientRect(),i=s.top,a=s.left,l=s.bottom,u=s.right,c=s.height,f=s.width):(i=0,a=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(e||t)&&r!==window&&(o=o||r.parentNode,!Ht))do if(o&&o.getBoundingClientRect&&(ge(o,"transform")!=="none"||t&&ge(o,"position")!=="static")){var d=o.getBoundingClientRect();i-=d.top+parseInt(ge(o,"border-top-width")),a-=d.left+parseInt(ge(o,"border-left-width")),l=i+s.height,u=a+s.width;break}while(o=o.parentNode);if(n&&r!==window){var h=dr(o||r),p=h&&h.a,g=h&&h.d;h&&(i/=g,a/=p,f/=p,c/=g,l=i+c,u=a+f)}return{top:i,left:a,bottom:l,right:u,width:f,height:c}}}function ys(r,e,t){for(var n=Kt(r,!0),o=tt(r)[e];n;){var s=tt(n)[t],i=void 0;if(t==="top"||t==="left"?i=o>=s:i=o<=s,!i)return n;if(n===Ft())break;n=Kt(n,!1)}return!1}function fr(r,e,t,n){for(var o=0,s=0,i=r.children;s<i.length;){if(i[s].style.display!=="none"&&i[s]!==ve.ghost&&(n||i[s]!==ve.dragged)&&Lt(i[s],t.draggable,r,!1)){if(o===e)return i[s];o++}s++}return null}function li(r,e){for(var t=r.lastElementChild;t&&(t===ve.ghost||ge(t,"display")==="none"||e&&!cn(t,e));)t=t.previousElementSibling;return t||null}function Et(r,e){var t=0;if(!r||!r.parentNode)return-1;for(;r=r.previousElementSibling;)r.nodeName.toUpperCase()!=="TEMPLATE"&&r!==ve.clone&&(!e||cn(r,e))&&t++;return t}function bs(r){var e=0,t=0,n=Ft();if(r)do{var o=dr(r),s=o.a,i=o.d;e+=r.scrollLeft*s,t+=r.scrollTop*i}while(r!==n&&(r=r.parentNode));return[e,t]}function Qd(r,e){for(var t in r)if(!!r.hasOwnProperty(t)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===r[t][n])return Number(t)}return-1}function Kt(r,e){if(!r||!r.getBoundingClientRect)return Ft();var t=r,n=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var o=ge(t);if(t.clientWidth<t.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return Ft();if(n||e)return t;n=!0}}while(t=t.parentNode);return Ft()}function Jd(r,e){if(r&&e)for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r}function Kn(r,e){return Math.round(r.top)===Math.round(e.top)&&Math.round(r.left)===Math.round(e.left)&&Math.round(r.height)===Math.round(e.height)&&Math.round(r.width)===Math.round(e.width)}var Fr;function Is(r,e){return function(){if(!Fr){var t=arguments,n=this;t.length===1?r.call(n,t[0]):r.apply(n,t),Fr=setTimeout(function(){Fr=void 0},e)}}}function ef(){clearTimeout(Fr),Fr=void 0}function Ds(r,e,t){r.scrollLeft+=e,r.scrollTop+=t}function Ls(r){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(r).cloneNode(!0):t?t(r).clone(!0)[0]:r.cloneNode(!0)}var vt="Sortable"+new Date().getTime();function tf(){var r=[],e;return{captureAnimationState:function(){if(r=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(o){if(!(ge(o,"display")==="none"||o===ve.ghost)){r.push({target:o,rect:tt(o)});var s=Rt({},r[r.length-1].rect);if(o.thisAnimationDuration){var i=dr(o,!0);i&&(s.top-=i.f,s.left-=i.e)}o.fromRect=s}})}},addAnimationState:function(n){r.push(n)},removeAnimationState:function(n){r.splice(Qd(r,{target:n}),1)},animateAll:function(n){var o=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var s=!1,i=0;r.forEach(function(a){var l=0,u=a.target,c=u.fromRect,f=tt(u),d=u.prevFromRect,h=u.prevToRect,p=a.rect,g=dr(u,!0);g&&(f.top-=g.f,f.left-=g.e),u.toRect=f,u.thisAnimationDuration&&Kn(d,f)&&!Kn(c,f)&&(p.top-f.top)/(p.left-f.left)===(c.top-f.top)/(c.left-f.left)&&(l=nf(p,d,h,o.options)),Kn(f,c)||(u.prevFromRect=c,u.prevToRect=f,l||(l=o.options.animation),o.animate(u,p,f,l)),l&&(s=!0,i=Math.max(i,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(e),s?e=setTimeout(function(){typeof n=="function"&&n()},i):typeof n=="function"&&n(),r=[]},animate:function(n,o,s,i){if(i){ge(n,"transition",""),ge(n,"transform","");var a=dr(this.el),l=a&&a.a,u=a&&a.d,c=(o.left-s.left)/(l||1),f=(o.top-s.top)/(u||1);n.animatingX=!!c,n.animatingY=!!f,ge(n,"transform","translate3d("+c+"px,"+f+"px,0)"),this.forRepaintDummy=rf(n),ge(n,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),ge(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){ge(n,"transition",""),ge(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},i)}}}}function rf(r){return r.offsetWidth}function nf(r,e,t,n){return Math.sqrt(Math.pow(e.top-r.top,2)+Math.pow(e.left-r.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*n.animation}var ar=[],Xn={initializeByDefault:!0},_r={mount:function(e){for(var t in Xn)Xn.hasOwnProperty(t)&&!(t in e)&&(e[t]=Xn[t]);ar.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ar.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var s=e+"Global";ar.forEach(function(i){!t[i.pluginName]||(t[i.pluginName][s]&&t[i.pluginName][s](Rt({sortable:t},n)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](Rt({sortable:t},n)))})},initializePlugins:function(e,t,n,o){ar.forEach(function(a){var l=a.pluginName;if(!(!e.options[l]&&!a.initializeByDefault)){var u=new a(e,t,e.options);u.sortable=e,u.options=e.options,e[l]=u,jt(n,u.defaults)}});for(var s in e.options)if(!!e.options.hasOwnProperty(s)){var i=this.modifyOption(e,s,e.options[s]);typeof i<"u"&&(e.options[s]=i)}},getEventProperties:function(e,t){var n={};return ar.forEach(function(o){typeof o.eventProperties=="function"&&jt(n,o.eventProperties.call(t[o.pluginName],e))}),n},modifyOption:function(e,t,n){var o;return ar.forEach(function(s){!e[s.pluginName]||s.optionListeners&&typeof s.optionListeners[t]=="function"&&(o=s.optionListeners[t].call(e[s.pluginName],n))}),o}};function of(r){var e=r.sortable,t=r.rootEl,n=r.name,o=r.targetEl,s=r.cloneEl,i=r.toEl,a=r.fromEl,l=r.oldIndex,u=r.newIndex,c=r.oldDraggableIndex,f=r.newDraggableIndex,d=r.originalEvent,h=r.putSortable,p=r.extraEventProperties;if(e=e||t&&t[vt],!!e){var g,y=e.options,b="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Ht&&!Mr?g=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(n,!0,!0)),g.to=i||t,g.from=a||t,g.item=o||t,g.clone=s,g.oldIndex=l,g.newIndex=u,g.oldDraggableIndex=c,g.newDraggableIndex=f,g.originalEvent=d,g.pullMode=h?h.lastPutMode:void 0;var x=Rt(Rt({},p),_r.getEventProperties(n,e));for(var k in x)g[k]=x[k];t&&t.dispatchEvent(g),y[b]&&y[b].call(e,g)}}var sf=["evt"],ht=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.evt,s=Kd(n,sf);_r.pluginEvent.bind(ve)(e,t,Rt({dragEl:ee,parentEl:Ze,ghostEl:we,rootEl:qe,nextEl:er,lastDownEl:sn,cloneEl:Ye,cloneHidden:Yt,dragStarted:Tr,putSortable:it,activeSortable:ve.active,originalEvent:o,oldIndex:cr,oldDraggableIndex:Rr,newIndex:gt,newDraggableIndex:Wt,hideGhostForTarget:Ps,unhideGhostForTarget:Ms,cloneNowHidden:function(){Yt=!0},cloneNowShown:function(){Yt=!1},dispatchSortableEvent:function(a){ct({sortable:t,name:a,originalEvent:o})}},s))};function ct(r){of(Rt({putSortable:it,cloneEl:Ye,targetEl:ee,rootEl:qe,oldIndex:cr,oldDraggableIndex:Rr,newIndex:gt,newDraggableIndex:Wt},r))}var ee,Ze,we,qe,er,sn,Ye,Yt,cr,gt,Rr,Wt,en,it,ur=!1,dn=!1,fn=[],Qt,At,Zn,Qn,xs,ws,Tr,lr,Or,Pr=!1,tn=!1,an,lt,Jn=[],ii=!1,hn=[],mn=typeof document<"u",rn=Cs,Es=Mr||Ht?"cssFloat":"float",af=mn&&!As&&!Cs&&"draggable"in document.createElement("div"),Fs=function(){if(!!mn){if(Ht)return!1;var r=document.createElement("x");return r.style.cssText="pointer-events:auto",r.style.pointerEvents==="auto"}}(),Rs=function(e,t){var n=ge(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),s=fr(e,0,t),i=fr(e,1,t),a=s&&ge(s),l=i&&ge(i),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+tt(s).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+tt(i).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&a.float&&a.float!=="none"){var f=a.float==="left"?"left":"right";return i&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return s&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=o&&n[Es]==="none"||i&&n[Es]==="none"&&u+c>o)?"vertical":"horizontal"},lf=function(e,t,n){var o=n?e.left:e.top,s=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,u=n?t.width:t.height;return o===a||s===l||o+i/2===a+u/2},uf=function(e,t){var n;return fn.some(function(o){var s=o[vt].options.emptyInsertThreshold;if(!(!s||li(o))){var i=tt(o),a=e>=i.left-s&&e<=i.right+s,l=t>=i.top-s&&t<=i.bottom+s;if(a&&l)return n=o}}),n},Os=function(e){function t(s,i){return function(a,l,u,c){var f=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(s==null&&(i||f))return!0;if(s==null||s===!1)return!1;if(i&&s==="clone")return s;if(typeof s=="function")return t(s(a,l,u,c),i)(a,l,u,c);var d=(i?a:l).options.group.name;return s===!0||typeof s=="string"&&s===d||s.join&&s.indexOf(d)>-1}}var n={},o=e.group;(!o||on(o)!="object")&&(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},Ps=function(){!Fs&&we&&ge(we,"display","none")},Ms=function(){!Fs&&we&&ge(we,"display","")};mn&&!As&&document.addEventListener("click",function(r){if(dn)return r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.stopImmediatePropagation&&r.stopImmediatePropagation(),dn=!1,!1},!0);var Jt=function(e){if(ee){e=e.touches?e.touches[0]:e;var t=uf(e.clientX,e.clientY);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[vt]._onDragOver(n)}}},cf=function(e){ee&&ee.parentNode[vt]._isOutsideThisEl(e.target)};function ve(r,e){if(!(r&&r.nodeType&&r.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(r));this.el=r,this.options=e=jt({},e),r[vt]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(r.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Rs(r,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ve.supportPointer!==!1&&"PointerEvent"in window&&!Lr,emptyInsertThreshold:5};_r.initializePlugins(this,r,t);for(var n in t)!(n in e)&&(e[n]=t[n]);Os(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:af,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Me(r,"pointerdown",this._onTapStart):(Me(r,"mousedown",this._onTapStart),Me(r,"touchstart",this._onTapStart)),this.nativeDraggable&&(Me(r,"dragover",this),Me(r,"dragenter",this)),fn.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),jt(this,tf())}ve.prototype={constructor:ve,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(lr=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,ee):this.options.direction},_onTapStart:function(e){if(!!e.cancelable){var t=this,n=this.el,o=this.options,s=o.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(a||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=o.filter;if(yf(n),!ee&&!(/mousedown|pointerdown/.test(i)&&e.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Lr&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Lt(l,o.draggable,n,!1),!(l&&l.animated)&&sn!==l)){if(cr=Et(l),Rr=Et(l,o.draggable),typeof c=="function"){if(c.call(this,e,l,this)){ct({sortable:t,rootEl:u,name:"filter",targetEl:l,toEl:n,fromEl:n}),ht("filter",t,{evt:e}),s&&e.cancelable&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=Lt(u,f.trim(),n,!1),f)return ct({sortable:t,rootEl:f,name:"filter",targetEl:l,fromEl:n,toEl:n}),ht("filter",t,{evt:e}),!0}),c)){s&&e.cancelable&&e.preventDefault();return}o.handle&&!Lt(u,o.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var o=this,s=o.el,i=o.options,a=s.ownerDocument,l;if(n&&!ee&&n.parentNode===s){var u=tt(n);if(qe=s,ee=n,Ze=ee.parentNode,er=ee.nextSibling,sn=n,en=i.group,ve.dragged=ee,Qt={target:ee,clientX:(t||e).clientX,clientY:(t||e).clientY},xs=Qt.clientX-u.left,ws=Qt.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ee.style["will-change"]="all",l=function(){if(ht("delayEnded",o,{evt:e}),ve.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!gs&&o.nativeDraggable&&(ee.draggable=!0),o._triggerDragStart(e,t),ct({sortable:o,name:"choose",originalEvent:e}),mt(ee,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Ts(ee,c.trim(),ei)}),Me(a,"dragover",Jt),Me(a,"mousemove",Jt),Me(a,"touchmove",Jt),Me(a,"mouseup",o._onDrop),Me(a,"touchend",o._onDrop),Me(a,"touchcancel",o._onDrop),gs&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ee.draggable=!0),ht("delayStart",this,{evt:e}),i.delay&&(!i.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Mr||Ht))){if(ve.eventCanceled){this._onDrop();return}Me(a,"mouseup",o._disableDelayedDrag),Me(a,"touchend",o._disableDelayedDrag),Me(a,"touchcancel",o._disableDelayedDrag),Me(a,"mousemove",o._delayedDragTouchMoveHandler),Me(a,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&Me(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(l,i.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ee&&ei(ee),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Le(e,"mouseup",this._disableDelayedDrag),Le(e,"touchend",this._disableDelayedDrag),Le(e,"touchcancel",this._disableDelayedDrag),Le(e,"mousemove",this._delayedDragTouchMoveHandler),Le(e,"touchmove",this._delayedDragTouchMoveHandler),Le(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?Me(document,"pointermove",this._onTouchMove):t?Me(document,"touchmove",this._onTouchMove):Me(document,"mousemove",this._onTouchMove):(Me(ee,"dragend",this),Me(qe,"dragstart",this._onDragStart));try{document.selection?ln(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(ur=!1,qe&&ee){ht("dragStarted",this,{evt:t}),this.nativeDraggable&&Me(document,"dragover",cf);var n=this.options;!e&&mt(ee,n.dragClass,!1),mt(ee,n.ghostClass,!0),ve.active=this,e&&this._appendGhost(),ct({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(At){this._lastX=At.clientX,this._lastY=At.clientY,Ps();for(var e=document.elementFromPoint(At.clientX,At.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(At.clientX,At.clientY),e!==t);)t=e;if(ee.parentNode[vt]._isOutsideThisEl(e),t)do{if(t[vt]){var n=void 0;if(n=t[vt]._onDragOver({clientX:At.clientX,clientY:At.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ms()}},_onTouchMove:function(e){if(Qt){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,s=e.touches?e.touches[0]:e,i=we&&dr(we,!0),a=we&&i&&i.a,l=we&&i&&i.d,u=rn&<&&bs(lt),c=(s.clientX-Qt.clientX+o.x)/(a||1)+(u?u[0]-Jn[0]:0)/(a||1),f=(s.clientY-Qt.clientY+o.y)/(l||1)+(u?u[1]-Jn[1]:0)/(l||1);if(!ve.active&&!ur){if(n&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(we){i?(i.e+=c-(Zn||0),i.f+=f-(Qn||0)):i={a:1,b:0,c:0,d:1,e:c,f};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");ge(we,"webkitTransform",d),ge(we,"mozTransform",d),ge(we,"msTransform",d),ge(we,"transform",d),Zn=c,Qn=f,At=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!we){var e=this.options.fallbackOnBody?document.body:qe,t=tt(ee,!0,rn,!0,e),n=this.options;if(rn){for(lt=e;ge(lt,"position")==="static"&&ge(lt,"transform")==="none"&<!==document;)lt=lt.parentNode;lt!==document.body&<!==document.documentElement?(lt===document&&(lt=Ft()),t.top+=lt.scrollTop,t.left+=lt.scrollLeft):lt=Ft(),Jn=bs(lt)}we=ee.cloneNode(!0),mt(we,n.ghostClass,!1),mt(we,n.fallbackClass,!0),mt(we,n.dragClass,!0),ge(we,"transition",""),ge(we,"transform",""),ge(we,"box-sizing","border-box"),ge(we,"margin",0),ge(we,"top",t.top),ge(we,"left",t.left),ge(we,"width",t.width),ge(we,"height",t.height),ge(we,"opacity","0.8"),ge(we,"position",rn?"absolute":"fixed"),ge(we,"zIndex","100000"),ge(we,"pointerEvents","none"),ve.ghost=we,e.appendChild(we),ge(we,"transform-origin",xs/parseInt(we.style.width)*100+"% "+ws/parseInt(we.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,s=n.options;if(ht("dragStart",this,{evt:e}),ve.eventCanceled){this._onDrop();return}ht("setupClone",this),ve.eventCanceled||(Ye=Ls(ee),Ye.removeAttribute("id"),Ye.draggable=!1,Ye.style["will-change"]="",this._hideClone(),mt(Ye,this.options.chosenClass,!1),ve.clone=Ye),n.cloneId=ln(function(){ht("clone",n),!ve.eventCanceled&&(n.options.removeCloneOnHide||qe.insertBefore(Ye,ee),n._hideClone(),ct({sortable:n,name:"clone"}))}),!t&&mt(ee,s.dragClass,!0),t?(dn=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Le(document,"mouseup",n._onDrop),Le(document,"touchend",n._onDrop),Le(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",s.setData&&s.setData.call(n,o,ee)),Me(document,"drop",n),ge(ee,"transform","translateZ(0)")),ur=!0,n._dragStartId=ln(n._dragStarted.bind(n,t,e)),Me(document,"selectstart",n),Tr=!0,Lr&&ge(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,o,s,i,a=this.options,l=a.group,u=ve.active,c=en===l,f=a.sort,d=it||u,h,p=this,g=!1;if(ii)return;function y(ne,be){ht(ne,p,Rt({evt:e,isOwner:c,axis:h?"vertical":"horizontal",revert:i,dragRect:o,targetRect:s,canSort:f,fromSortable:d,target:n,completed:x,onMove:function(xe,Fe){return nn(qe,t,ee,o,xe,tt(xe),e,Fe)},changed:k},be))}function b(){y("dragOverAnimationCapture"),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function x(ne){return y("dragOverCompleted",{insertion:ne}),ne&&(c?u._hideClone():u._showClone(p),p!==d&&(mt(ee,it?it.options.ghostClass:u.options.ghostClass,!1),mt(ee,a.ghostClass,!0)),it!==p&&p!==ve.active?it=p:p===ve.active&&it&&(it=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){y("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===ee&&!ee.animated||n===t&&!n.animated)&&(lr=null),!a.dragoverBubble&&!e.rootEl&&n!==document&&(ee.parentNode[vt]._isOutsideThisEl(e.target),!ne&&Jt(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function k(){gt=Et(ee),Wt=Et(ee,a.draggable),ct({sortable:p,name:"change",toEl:t,newIndex:gt,newDraggableIndex:Wt,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=Lt(n,a.draggable,t,!0),y("dragOver"),ve.eventCanceled)return g;if(ee.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return x(!1);if(dn=!1,u&&!a.disabled&&(c?f||(i=Ze!==qe):it===this||(this.lastPutMode=en.checkPull(this,u,ee,e))&&l.checkPut(this,u,ee,e))){if(h=this._getDirection(e,n)==="vertical",o=tt(ee),y("dragOverValid"),ve.eventCanceled)return g;if(i)return Ze=qe,b(),this._hideClone(),y("revert"),ve.eventCanceled||(er?qe.insertBefore(ee,er):qe.appendChild(ee)),x(!0);var S=li(t,a.draggable);if(!S||pf(e,h,this)&&!S.animated){if(S===ee)return x(!1);if(S&&t===e.target&&(n=S),n&&(s=tt(n)),nn(qe,t,ee,o,n,s,e,!!n)!==!1)return b(),S&&S.nextSibling?t.insertBefore(ee,S.nextSibling):t.appendChild(ee),Ze=t,k(),x(!0)}else if(S&&hf(e,h,this)){var O=fr(t,0,a,!0);if(O===ee)return x(!1);if(n=O,s=tt(n),nn(qe,t,ee,o,n,s,e,!1)!==!1)return b(),t.insertBefore(ee,O),Ze=t,k(),x(!0)}else if(n.parentNode===t){s=tt(n);var C=0,P,A=ee.parentNode!==t,D=!lf(ee.animated&&ee.toRect||o,n.animated&&n.toRect||s,h),I=h?"top":"left",M=ys(n,"top","top")||ys(ee,"top","top"),N=M?M.scrollTop:void 0;lr!==n&&(P=s[I],Pr=!1,tn=!D&&a.invertSwap||A),C=mf(e,n,s,h,D?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,tn,lr===n);var B;if(C!==0){var H=Et(ee);do H-=C,B=Ze.children[H];while(B&&(ge(B,"display")==="none"||B===we))}if(C===0||B===n)return x(!1);lr=n,Or=C;var Z=n.nextElementSibling,W=!1;W=C===1;var te=nn(qe,t,ee,o,n,s,e,W);if(te!==!1)return(te===1||te===-1)&&(W=te===1),ii=!0,setTimeout(ff,30),b(),W&&!Z?t.appendChild(ee):n.parentNode.insertBefore(ee,W?Z:n),M&&Ds(M,0,N-M.scrollTop),Ze=ee.parentNode,P!==void 0&&!tn&&(an=Math.abs(P-tt(n)[I])),k(),x(!0)}if(t.contains(ee))return x(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Le(document,"mousemove",this._onTouchMove),Le(document,"touchmove",this._onTouchMove),Le(document,"pointermove",this._onTouchMove),Le(document,"dragover",Jt),Le(document,"mousemove",Jt),Le(document,"touchmove",Jt)},_offUpEvents:function(){var e=this.el.ownerDocument;Le(e,"mouseup",this._onDrop),Le(e,"touchend",this._onDrop),Le(e,"pointerup",this._onDrop),Le(e,"touchcancel",this._onDrop),Le(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(gt=Et(ee),Wt=Et(ee,n.draggable),ht("drop",this,{evt:e}),Ze=ee&&ee.parentNode,gt=Et(ee),Wt=Et(ee,n.draggable),ve.eventCanceled){this._nulling();return}ur=!1,tn=!1,Pr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),oi(this.cloneId),oi(this._dragStartId),this.nativeDraggable&&(Le(document,"drop",this),Le(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Lr&&ge(document.body,"user-select",""),ge(ee,"transform",""),e&&(Tr&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),we&&we.parentNode&&we.parentNode.removeChild(we),(qe===Ze||it&&it.lastPutMode!=="clone")&&Ye&&Ye.parentNode&&Ye.parentNode.removeChild(Ye),ee&&(this.nativeDraggable&&Le(ee,"dragend",this),ei(ee),ee.style["will-change"]="",Tr&&!ur&&mt(ee,it?it.options.ghostClass:this.options.ghostClass,!1),mt(ee,this.options.chosenClass,!1),ct({sortable:this,name:"unchoose",toEl:Ze,newIndex:null,newDraggableIndex:null,originalEvent:e}),qe!==Ze?(gt>=0&&(ct({rootEl:Ze,name:"add",toEl:Ze,fromEl:qe,originalEvent:e}),ct({sortable:this,name:"remove",toEl:Ze,originalEvent:e}),ct({rootEl:Ze,name:"sort",toEl:Ze,fromEl:qe,originalEvent:e}),ct({sortable:this,name:"sort",toEl:Ze,originalEvent:e})),it&&it.save()):gt!==cr&>>=0&&(ct({sortable:this,name:"update",toEl:Ze,originalEvent:e}),ct({sortable:this,name:"sort",toEl:Ze,originalEvent:e})),ve.active&&((gt==null||gt===-1)&&(gt=cr,Wt=Rr),ct({sortable:this,name:"end",toEl:Ze,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){ht("nulling",this),qe=ee=Ze=we=er=Ye=sn=Yt=Qt=At=Tr=gt=Wt=cr=Rr=lr=Or=it=en=ve.dragged=ve.ghost=ve.clone=ve.active=null,hn.forEach(function(e){e.checked=!0}),hn.length=Zn=Qn=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ee&&(this._onDragOver(e),df(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,o=0,s=n.length,i=this.options;o<s;o++)t=n[o],Lt(t,i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||vf(t));return e},sort:function(e,t){var n={},o=this.el;this.toArray().forEach(function(s,i){var a=o.children[i];Lt(a,this.options.draggable,o,!1)&&(n[s]=a)},this),t&&this.captureAnimationState(),e.forEach(function(s){n[s]&&(o.removeChild(n[s]),o.appendChild(n[s]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Lt(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var o=_r.modifyOption(this,e,t);typeof o<"u"?n[e]=o:n[e]=t,e==="group"&&Os(n)},destroy:function(){ht("destroy",this);var e=this.el;e[vt]=null,Le(e,"mousedown",this._onTapStart),Le(e,"touchstart",this._onTapStart),Le(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Le(e,"dragover",this),Le(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),fn.splice(fn.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Yt){if(ht("hideClone",this),ve.eventCanceled)return;ge(Ye,"display","none"),this.options.removeCloneOnHide&&Ye.parentNode&&Ye.parentNode.removeChild(Ye),Yt=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Yt){if(ht("showClone",this),ve.eventCanceled)return;ee.parentNode==qe&&!this.options.group.revertClone?qe.insertBefore(Ye,ee):er?qe.insertBefore(Ye,er):qe.appendChild(Ye),this.options.group.revertClone&&this.animate(ee,Ye),ge(Ye,"display",""),Yt=!1}}};function df(r){r.dataTransfer&&(r.dataTransfer.dropEffect="move"),r.cancelable&&r.preventDefault()}function nn(r,e,t,n,o,s,i,a){var l,u=r[vt],c=u.options.onMove,f;return window.CustomEvent&&!Ht&&!Mr?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=r,l.dragged=t,l.draggedRect=n,l.related=o||e,l.relatedRect=s||tt(e),l.willInsertAfter=a,l.originalEvent=i,r.dispatchEvent(l),c&&(f=c.call(u,l,i)),f}function ei(r){r.draggable=!1}function ff(){ii=!1}function hf(r,e,t){var n=tt(fr(t.el,0,t.options,!0)),o=10;return e?r.clientX<n.left-o||r.clientY<n.top&&r.clientX<n.right:r.clientY<n.top-o||r.clientY<n.bottom&&r.clientX<n.left}function pf(r,e,t){var n=tt(li(t.el,t.options.draggable)),o=10;return e?r.clientX>n.right+o||r.clientX<=n.right&&r.clientY>n.bottom&&r.clientX>=n.left:r.clientX>n.right&&r.clientY>n.top||r.clientX<=n.right&&r.clientY>n.bottom+o}function mf(r,e,t,n,o,s,i,a){var l=n?r.clientY:r.clientX,u=n?t.height:t.width,c=n?t.top:t.left,f=n?t.bottom:t.right,d=!1;if(!i){if(a&&an<u*o){if(!Pr&&(Or===1?l>c+u*s/2:l<f-u*s/2)&&(Pr=!0),Pr)d=!0;else if(Or===1?l<c+an:l>f-an)return-Or}else if(l>c+u*(1-o)/2&&l<f-u*(1-o)/2)return gf(e)}return d=d||i,d&&(l<c+u*s/2||l>f-u*s/2)?l>c+u/2?1:-1:0}function gf(r){return Et(ee)<Et(r)?1:-1}function vf(r){for(var e=r.tagName+r.className+r.src+r.href+r.textContent,t=e.length,n=0;t--;)n+=e.charCodeAt(t);return n.toString(36)}function yf(r){hn.length=0;for(var e=r.getElementsByTagName("input"),t=e.length;t--;){var n=e[t];n.checked&&hn.push(n)}}function ln(r){return setTimeout(r,0)}function oi(r){return clearTimeout(r)}mn&&Me(document,"touchmove",function(r){(ve.active||ur)&&r.cancelable&&r.preventDefault()});ve.utils={on:Me,off:Le,css:ge,find:Ts,is:function(e,t){return!!Lt(e,t,e,!1)},extend:Jd,throttle:Is,closest:Lt,toggleClass:mt,clone:Ls,index:Et,nextTick:ln,cancelNextTick:oi,detectDirection:Rs,getChild:fr};ve.get=function(r){return r[vt]};ve.mount=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(ve.utils=Rt(Rt({},ve.utils),n.utils)),_r.mount(n)})};ve.create=function(r,e){return new ve(r,e)};ve.version=Xd;var Je=[],Ir,si,ai=!1,ti,ri,pn,Dr;function bf(){function r(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return r.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?Me(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Me(document,"pointermove",this._handleFallbackAutoScroll):n.touches?Me(document,"touchmove",this._handleFallbackAutoScroll):Me(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?Le(document,"dragover",this._handleAutoScroll):(Le(document,"pointermove",this._handleFallbackAutoScroll),Le(document,"touchmove",this._handleFallbackAutoScroll),Le(document,"mousemove",this._handleFallbackAutoScroll)),Ss(),un(),ef()},nulling:function(){pn=si=Ir=ai=Dr=ti=ri=null,Je.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var o=this,s=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=document.elementFromPoint(s,i);if(pn=t,n||this.options.forceAutoScrollFallback||Mr||Ht||Lr){ni(t,this.options,a,n);var l=Kt(a,!0);ai&&(!Dr||s!==ti||i!==ri)&&(Dr&&Ss(),Dr=setInterval(function(){var u=Kt(document.elementFromPoint(s,i),!0);u!==l&&(l=u,un()),ni(t,o.options,u,n)},10),ti=s,ri=i)}else{if(!this.options.bubbleScroll||Kt(a,!0)===Ft()){un();return}ni(t,this.options,Kt(a,!1),!1)}}},jt(r,{pluginName:"scroll",initializeByDefault:!0})}function un(){Je.forEach(function(r){clearInterval(r.pid)}),Je=[]}function Ss(){clearInterval(Dr)}var ni=Is(function(r,e,t,n){if(!!e.scroll){var o=(r.touches?r.touches[0]:r).clientX,s=(r.touches?r.touches[0]:r).clientY,i=e.scrollSensitivity,a=e.scrollSpeed,l=Ft(),u=!1,c;si!==t&&(si=t,un(),Ir=e.scroll,c=e.scrollFn,Ir===!0&&(Ir=Kt(t,!0)));var f=0,d=Ir;do{var h=d,p=tt(h),g=p.top,y=p.bottom,b=p.left,x=p.right,k=p.width,S=p.height,O=void 0,C=void 0,P=h.scrollWidth,A=h.scrollHeight,D=ge(h),I=h.scrollLeft,M=h.scrollTop;h===l?(O=k<P&&(D.overflowX==="auto"||D.overflowX==="scroll"||D.overflowX==="visible"),C=S<A&&(D.overflowY==="auto"||D.overflowY==="scroll"||D.overflowY==="visible")):(O=k<P&&(D.overflowX==="auto"||D.overflowX==="scroll"),C=S<A&&(D.overflowY==="auto"||D.overflowY==="scroll"));var N=O&&(Math.abs(x-o)<=i&&I+k<P)-(Math.abs(b-o)<=i&&!!I),B=C&&(Math.abs(y-s)<=i&&M+S<A)-(Math.abs(g-s)<=i&&!!M);if(!Je[f])for(var H=0;H<=f;H++)Je[H]||(Je[H]={});(Je[f].vx!=N||Je[f].vy!=B||Je[f].el!==h)&&(Je[f].el=h,Je[f].vx=N,Je[f].vy=B,clearInterval(Je[f].pid),(N!=0||B!=0)&&(u=!0,Je[f].pid=setInterval(function(){n&&this.layer===0&&ve.active._onTouchMove(pn);var Z=Je[this.layer].vy?Je[this.layer].vy*a:0,W=Je[this.layer].vx?Je[this.layer].vx*a:0;typeof c=="function"&&c.call(ve.dragged.parentNode[vt],W,Z,r,pn,Je[this.layer].el)!=="continue"||Ds(Je[this.layer].el,W,Z)}.bind({layer:f}),24))),f++}while(e.bubbleScroll&&d!==l&&(d=Kt(d,!1)));ai=u}},30),_s=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,s=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(!!t){var u=n||s;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,f=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(f)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function ui(){}ui.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=fr(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:_s};jt(ui,{pluginName:"revertOnSpill"});function ci(){}ci.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,o=n||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:_s};jt(ci,{pluginName:"removeOnSpill"});ve.mount(new bf);ve.mount(ci,ui);var hr=ve;var Ns={name:function(r,e){let t=r.getAttribute("data-name").trim().toLowerCase(),n=e.getAttribute("data-name").trim().toLowerCase();return t.localeCompare(n)},created:function(r,e){let t=Number(r.getAttribute("data-created"));return Number(e.getAttribute("data-created"))-t},updated:function(r,e){let t=Number(r.getAttribute("data-updated"));return Number(e.getAttribute("data-updated"))-t},chaptersFirst:function(r,e){let t=r.getAttribute("data-type"),n=e.getAttribute("data-type");return t===n?0:t==="chapter"?-1:1},chaptersLast:function(r,e){let t=r.getAttribute("data-type"),n=e.getAttribute("data-type");return t===n?0:t==="chapter"?1:-1}},di=class{constructor(e){this.elem=e,this.sortContainer=e.querySelector("[book-sort-boxes]"),this.input=e.querySelector("[book-sort-input]");let t=e.querySelector(".sort-box");this.setupBookSortable(t),this.setupSortPresets(),window.$events.listen("entity-select-confirm",this.bookSelect.bind(this))}setupSortPresets(){let e="",t=!1,n=["name","created","updated"];this.sortContainer.addEventListener("click",o=>{let s=o.target.closest(".sort-box-options [data-sort]");if(!s)return;o.preventDefault();let i=s.closest(".sort-box").querySelectorAll("ul"),a=s.getAttribute("data-sort");t=e===a?!t:!1;let l=Ns[a];t&&n.includes(a)&&(l=function(u,c){return 0-Ns[a](u,c)});for(let u of i)Array.from(u.children).filter(f=>f.matches("li")).sort(l).forEach(f=>{u.appendChild(f)});e=a,this.updateMapInput()})}bookSelect(e){if(this.elem.querySelector(`[data-type="book"][data-id="${e.id}"]`)!==null)return;let n=e.link+"/sort-item";window.$http.get(n).then(o=>{let s=document.createElement("div");s.innerHTML=o.data;let i=s.children[0];this.sortContainer.append(i),this.setupBookSortable(i)})}setupBookSortable(e){let t=[e.querySelector(".sort-list")];t.push(...e.querySelectorAll(".entity-list-item + ul"));let n={name:"book",pull:["book","chapter"],put:["book","chapter"]},o={name:"chapter",pull:["book","chapter"],put:function(s,i,a){return a.getAttribute("data-type")==="page"}};for(let s of t)new hr(s,{group:s.classList.contains("sort-list")?n:o,animation:150,fallbackOnBody:!0,swapThreshold:.65,onSort:this.updateMapInput.bind(this),dragClass:"bg-white",ghostClass:"primary-background-light",multiDrag:!0,multiDragKey:"CTRL",selectedClass:"sortable-selected"})}updateMapInput(){let e=this.buildEntityMap();this.input.value=JSON.stringify(e)}buildEntityMap(){let e=[],t=this.elem.querySelectorAll(".sort-list");for(let n of t){let o=n.closest('[data-type="book"]').getAttribute("data-id"),s=Array.from(n.children).filter(i=>i.matches('[data-type="page"], [data-type="chapter"]'));for(let i=0;i<s.length;i++)this.addBookChildToMap(s[i],i,o,e)}return e}addBookChildToMap(e,t,n,o){let s=e.getAttribute("data-type"),i=!1,a=e.getAttribute("data-id");o.push({id:a,sort:t,parentChapter:i,type:s,book:n});let l=e.querySelectorAll('[data-type="page"]');for(let u=0;u<l.length;u++)o.push({id:l[u].getAttribute("data-id"),sort:u,parentChapter:a,type:"page",book:n})}},Bs=di;var gn=new WeakMap;function $s(r,e=400,t=null){Br(r),r.style.display="block",Nr(r,{opacity:["0","1"]},e,()=>{t&&t()})}function vn(r,e=400,t=null){Br(r),Nr(r,{opacity:["1","0"]},e,()=>{r.style.display="none",t&&t()})}function pr(r,e=400){Br(r);let t=r.getBoundingClientRect().height,n=getComputedStyle(r),o=n.getPropertyValue("padding-top"),s=n.getPropertyValue("padding-bottom"),i={maxHeight:[`${t}px`,"0px"],overflow:["hidden","hidden"],paddingTop:[o,"0px"],paddingBottom:[s,"0px"]};Nr(r,i,e,()=>{r.style.display="none"})}function mr(r,e=400){Br(r),r.style.display="block";let t=r.getBoundingClientRect().height,n=getComputedStyle(r),o=n.getPropertyValue("padding-top"),s=n.getPropertyValue("padding-bottom"),i={maxHeight:["0px",`${t}px`],overflow:["hidden","hidden"],paddingTop:["0px",o],paddingBottom:["0px",s]};Nr(r,i,e)}function Us(r,e=400){let t=r.getBoundingClientRect().height,n=getComputedStyle(r),o=n.getPropertyValue("padding-top"),s=n.getPropertyValue("padding-bottom");return()=>{Br(r);let i=r.getBoundingClientRect().height,a=getComputedStyle(r),l=a.getPropertyValue("padding-top"),u=a.getPropertyValue("padding-bottom"),c={height:[`${t}px`,`${i}px`],overflow:["hidden","hidden"],paddingTop:[o,l],paddingBottom:[s,u]};Nr(r,c,e)}}function Nr(r,e,t=400,n=null){let o=Object.keys(e);for(let i of o)r.style[i]=e[i][0];let s=()=>{for(let i of o)r.style[i]=null;r.style.transition=null,r.removeEventListener("transitionend",s),gn.delete(r),n&&n()};setTimeout(()=>{r.style.transition=`all ease-in-out ${t}ms`;for(let i of o)r.style[i]=e[i][1];r.addEventListener("transitionend",s),gn.set(r,s)},15)}function Br(r){gn.has(r)&&gn.get(r)()}var fi=class{setup(){this.list=this.$refs.list,this.toggle=this.$refs.toggle,this.isOpen=this.toggle.classList.contains("open"),this.toggle.addEventListener("click",this.click.bind(this))}open(){this.toggle.classList.add("open"),this.toggle.setAttribute("aria-expanded","true"),mr(this.list,180),this.isOpen=!0}close(){this.toggle.classList.remove("open"),this.toggle.setAttribute("aria-expanded","false"),pr(this.list,180),this.isOpen=!1}click(e){e.preventDefault(),this.isOpen?this.close():this.open()}},zs=fi;var hi=class{setup(){this.container=this.$refs.container,this.popup=this.$el,this.editorInput=this.$refs.editor,this.languageLinks=this.$manyRefs.languageLink,this.saveButton=this.$refs.saveButton,this.languageInput=this.$refs.languageInput,this.historyDropDown=this.$refs.historyDropDown,this.historyList=this.$refs.historyList,this.callback=null,this.editor=null,this.history={},this.historyKey="code_history",this.setupListeners()}setupListeners(){this.container.addEventListener("keydown",e=>{e.ctrlKey&&e.key==="Enter"&&this.save()}),Be(this.languageLinks,e=>{let t=e.target.dataset.lang;this.languageInput.value=t,this.languageInputChange(t)}),Jr(this.languageInput,e=>this.save()),this.languageInput.addEventListener("input",e=>this.languageInputChange(this.languageInput.value)),Be(this.saveButton,e=>this.save()),We(this.historyList,"button","click",(e,t)=>{e.preventDefault();let n=t.dataset.time;this.editor&&this.editor.setValue(this.history[n])})}save(){this.callback&&this.callback(this.editor.getValue(),this.languageInput.value),this.hide()}open(e,t,n){this.languageInput.value=t,this.callback=n,this.show().then(()=>this.languageInputChange(t)).then(()=>window.importVersioned("code")).then(o=>o.setContent(this.editor,e))}async show(){let e=await window.importVersioned("code");this.editor||(this.editor=e.popupEditor(this.editorInput,this.languageInput.value)),this.loadHistory(),this.popup.components.popup.show(()=>{e.updateLayout(this.editor),this.editor.focus()},()=>{this.addHistory()})}hide(){this.popup.components.popup.hide(),this.addHistory()}async updateEditorMode(e){(await window.importVersioned("code")).setMode(this.editor,e,this.editor.getValue())}languageInputChange(e){this.updateEditorMode(e);let t=e.toLowerCase(),n=!1;for(let o of this.languageLinks){let s=o.dataset.lang.toLowerCase().trim(),i=t&&s.startsWith(t);o.classList.toggle("active",i),i&&!n&&(o.scrollIntoView({block:"center",behavior:"smooth"}),n=!0)}}loadHistory(){this.history=JSON.parse(window.sessionStorage.getItem(this.historyKey)||"{}");let e=Object.keys(this.history).reverse();this.historyDropDown.classList.toggle("hidden",e.length===0),this.historyList.innerHTML=e.map(t=>{let n=new Date(parseInt(t)).toLocaleTimeString();return`<li><button type="button" data-time="${t}" class="text-item">${n}</button></li>`}).join("")}addHistory(){if(!this.editor)return;let e=this.editor.getValue();if(!e)return;let t=Object.keys(this.history).pop();if(this.history[t]===e)return;this.history[String(Date.now())]=e;let n=JSON.stringify(this.history);window.sessionStorage.setItem(this.historyKey,n)}},js=hi;var pi=class{constructor(e){e.querySelectorAll("pre").length>0&&window.importVersioned("code").then(n=>{n.highlightWithin(e)})}},Hs=pi;var mi=class{async setup(){let e=this.$opts.mode;(await window.importVersioned("code")).inlineEditor(this.$el,e)}},qs=mi;var gi=class{constructor(e){this.elem=e,this.trigger=e.querySelector("[collapsible-trigger]"),this.content=e.querySelector("[collapsible-content]"),this.trigger&&(this.trigger.addEventListener("click",this.toggle.bind(this)),this.openIfContainsError())}open(){this.elem.classList.add("open"),this.trigger.setAttribute("aria-expanded","true"),mr(this.content,300)}close(){this.elem.classList.remove("open"),this.trigger.setAttribute("aria-expanded","false"),pr(this.content,300)}toggle(){this.elem.classList.contains("open")?this.close():this.open()}openIfContainsError(){this.content.querySelector(".text-neg.text-small")&&this.open()}},Vs=gi;var vi=class{setup(){this.container=this.$el,this.confirmButton=this.$refs.confirm,this.res=null,Be(this.confirmButton,()=>{this.sendResult(!0),this.getPopup().hide()})}show(){return this.getPopup().show(null,()=>{this.sendResult(!1)}),new Promise((e,t)=>{this.res=e})}getPopup(){return this.container.components.popup}sendResult(e){this.res&&(this.res(e),this.res=null)}},Gs=vi;var yi=class{constructor(e){this.elem=e,this.checkbox=e.querySelector("input[type=checkbox]"),this.display=e.querySelector('[role="checkbox"]'),this.checkbox.addEventListener("change",this.stateChange.bind(this)),this.elem.addEventListener("keydown",this.onKeyDown.bind(this))}onKeyDown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this.toggle())}toggle(){this.checkbox.checked=!this.checkbox.checked,this.checkbox.dispatchEvent(new Event("change")),this.stateChange()}stateChange(){let e=this.checkbox.checked?"true":"false";this.display.setAttribute("aria-checked",e)}},Ws=yi;var bi=class{constructor(e){this.elem=e,this.dealtWith=!1,e.addEventListener("toggle",this.onToggle.bind(this))}onToggle(){this.dealtWith||(this.elem.querySelector("pre")&&window.importVersioned("code").then(e=>{e.highlightWithin(this.elem)}),this.dealtWith=!0)}},Ys=bi;var xi=class{setup(){this.container=this.$el,this.menu=this.$refs.menu,this.toggle=this.$refs.toggle,this.moveMenu=this.$opts.moveMenu,this.bubbleEscapes=this.$opts.bubbleEscapes==="true",this.direction=document.dir==="rtl"?"right":"left",this.body=document.body,this.showing=!1,this.setupListeners(),this.hide=this.hide.bind(this)}show(e=null){this.hideAll(),this.menu.style.display="block",this.menu.classList.add("anim","menuIn"),this.toggle.setAttribute("aria-expanded","true");let t=this.menu.getBoundingClientRect(),n=0,o=this.toggle.getBoundingClientRect().height,s=t.bottom>window.innerHeight;this.moveMenu&&(this.body.appendChild(this.menu),this.menu.style.position="fixed",this.direction==="right"?this.menu.style.right=`${t.right-t.width}px`:this.menu.style.left=`${t.left}px`,this.menu.style.width=`${t.width}px`,n=s?window.innerHeight-t.top-o/2:t.top),s?(this.menu.style.top="initial",this.menu.style.bottom=`${n}px`):(this.menu.style.top=`${n}px`,this.menu.style.bottom="initial"),this.menu.addEventListener("mouseleave",this.hide.bind(this)),window.addEventListener("click",l=>{this.menu.contains(l.target)||this.hide()});let i=this.menu.querySelector("input");i!==null&&i.focus(),this.showing=!0;let a=new Event("show");this.container.dispatchEvent(a),e&&e.stopPropagation()}hideAll(){for(let e of window.components.dropdown)e.hide()}hide(){this.menu.style.display="none",this.menu.classList.remove("anim","menuIn"),this.toggle.setAttribute("aria-expanded","false"),this.menu.style.top="",this.menu.style.bottom="",this.moveMenu&&(this.menu.style.position="",this.menu.style[this.direction]="",this.menu.style.width="",this.container.appendChild(this.menu)),this.showing=!1}getFocusable(){return Array.from(this.menu.querySelectorAll('[tabindex]:not([tabindex="-1"]),[href],button,input:not([type=hidden])'))}focusNext(){let e=this.getFocusable(),n=e.indexOf(document.activeElement)+1;n>=e.length&&(n=0),e[n].focus()}focusPrevious(){let e=this.getFocusable(),n=e.indexOf(document.activeElement)-1;n<0&&(n=e.length-1),e[n].focus()}setupListeners(){this.container.addEventListener("click",t=>{Array.from(this.menu.querySelectorAll("a")).includes(t.target)&&this.hide()}),Be(this.toggle,t=>{t.stopPropagation(),this.show(t),t instanceof KeyboardEvent&&this.focusNext()});let e=t=>{t.key==="ArrowDown"||t.key==="ArrowRight"?(this.focusNext(),t.preventDefault()):t.key==="ArrowUp"||t.key==="ArrowLeft"?(this.focusPrevious(),t.preventDefault()):t.key==="Escape"&&(this.hide(),this.toggle.focus(),this.bubbleEscapes||t.stopPropagation())};this.container.addEventListener("keydown",e),this.moveMenu&&this.menu.addEventListener("keydown",e),this.menu.addEventListener("keydown ",t=>{t.key==="Enter"&&(t.preventDefault(),t.stopPropagation(),this.hide())})}},Ks=xi;var wi=class{setup(){this.elem=this.$el,this.searchInput=this.$refs.searchInput,this.loadingElem=this.$refs.loading,this.listContainerElem=this.$refs.listContainer,this.localSearchSelector=this.$opts.localSearchSelector,this.url=this.$opts.url,this.elem.addEventListener("show",this.onShow.bind(this)),this.searchInput.addEventListener("input",this.onSearch.bind(this)),this.runAjaxSearch=Ar(this.runAjaxSearch,300,!1)}onShow(){this.loadList()}onSearch(){let e=this.searchInput.value.toLowerCase().trim();this.localSearchSelector?this.runLocalSearch(e):(this.toggleLoading(!0),this.listContainerElem.innerHTML="",this.runAjaxSearch(e))}runAjaxSearch(e){this.loadList(e)}runLocalSearch(e){let t=this.listContainerElem.querySelectorAll(this.localSearchSelector);for(let n of t){let o=!e||n.textContent.toLowerCase().includes(e);n.style.display=o?"flex":"none",n.classList.toggle("hidden",!o)}}async loadList(e=""){this.listContainerElem.innerHTML="",this.toggleLoading(!0);try{let t=await window.$http.get(this.getAjaxUrl(e)),n=Us(this.listContainerElem,80);this.listContainerElem.innerHTML=t.data,n()}catch(t){console.error(t)}this.toggleLoading(!1),this.localSearchSelector&&this.onSearch()}getAjaxUrl(e=null){if(!e)return this.url;let t=this.url.includes("?")?"&":"?";return`${this.url}${t}search=${encodeURIComponent(e)}`}toggleLoading(e=!1){this.loadingElem.style.display=e?"block":"none"}},Xs=wi;var Qs=Yr(Zs());var Si=class{setup(){this.container=this.$el,this.url=this.$opts.url,this.successMessage=this.$opts.successMessage,this.removeMessage=this.$opts.removeMessage,this.uploadLimit=Number(this.$opts.uploadLimit),this.uploadLimitMessage=this.$opts.uploadLimitMessage,this.timeoutMessage=this.$opts.timeoutMessage;let e=this;this.dz=new Qs.default(this.container,{addRemoveLinks:!0,dictRemoveFile:this.removeMessage,timeout:Number(window.uploadTimeout)||6e4,maxFilesize:this.uploadLimit,url:this.url,withCredentials:!0,init(){this.dz=this,this.dz.on("sending",e.onSending.bind(e)),this.dz.on("success",e.onSuccess.bind(e)),this.dz.on("error",e.onError.bind(e))}})}onSending(e,t,n){let o=window.document.querySelector("meta[name=token]").getAttribute("content");n.append("_token",o),t.ontimeout=s=>{this.dz.emit("complete",e),this.dz.emit("error",e,this.timeoutMessage)}}onSuccess(e,t){this.$emit("success",{file:e,data:t}),this.successMessage&&window.$events.emit("success",this.successMessage),vn(e.previewElement,800,()=>{this.dz.removeFile(e)})}onError(e,t,n){this.$emit("error",{file:e,errorMessage:t,xhr:n});let o=s=>{let i=e.previewElement.querySelector("[data-dz-errormessage]");i.textContent=s};n&&n.status===413?o(this.uploadLimitMessage):t.file&&o(t.file)}removeAll(){this.dz.removeAllFiles(!0)}},Js=Si;var Ci=class{constructor(e){this.elem=e,this.buttons=e.querySelectorAll("[toolbox-tab-button]"),this.contentElements=e.querySelectorAll("[toolbox-tab-content]"),this.toggleButton=e.querySelector("[toolbox-toggle]"),this.toggleButton.addEventListener("click",this.toggle.bind(this)),this.elem.addEventListener("click",t=>{let n=t.target.closest("[toolbox-tab-button]");if(n===null)return;let o=n.getAttribute("toolbox-tab-button");this.setActiveTab(o,!0)}),this.setActiveTab(this.contentElements[0].getAttribute("toolbox-tab-content"))}toggle(){this.elem.classList.toggle("open");let e=this.elem.classList.contains("open")?"true":"false";this.toggleButton.setAttribute("aria-expanded",e)}setActiveTab(e,t=!1){for(let n=0,o=this.buttons.length;n<o;n++)this.buttons[n].classList.remove("active"),this.buttons[n].getAttribute("toolbox-tab-button")===e&&this.buttons[n].classList.add("active");for(let n=0,o=this.contentElements.length;n<o;n++)this.contentElements[n].style.display="none",this.contentElements[n].getAttribute("toolbox-tab-content")===e&&(this.contentElements[n].style.display="block");t&&!this.elem.classList.contains("open")&&this.toggle()}},ea=Ci;var Ai=class{constructor(e){this.permissionsTable=e.querySelector("[permissions-table]"),this.restrictedCheckbox=e.querySelector("[name=restricted]"),this.restrictedCheckbox.addEventListener("change",this.updateTableVisibility.bind(this))}updateTableVisibility(){this.permissionsTable.style.display=this.restrictedCheckbox.checked?null:"none"}},ta=Ai;var ki=class{setup(){this.entityId=this.$opts.entityId,this.entityType=this.$opts.entityType,this.contentView=this.$refs.contentView,this.searchView=this.$refs.searchView,this.searchResults=this.$refs.searchResults,this.searchInput=this.$refs.searchInput,this.searchForm=this.$refs.searchForm,this.clearButton=this.$refs.clearButton,this.loadingBlock=this.$refs.loadingBlock,this.setupListeners()}setupListeners(){this.searchInput.addEventListener("change",this.runSearch.bind(this)),this.searchForm.addEventListener("submit",e=>{e.preventDefault(),this.runSearch()}),Be(this.clearButton,this.clearSearch.bind(this))}runSearch(){let e=this.searchInput.value.trim();if(e.length===0)return this.clearSearch();this.searchView.classList.remove("hidden"),this.contentView.classList.add("hidden"),this.loadingBlock.classList.remove("hidden");let t=window.baseUrl(`/search/${this.entityType}/${this.entityId}`);window.$http.get(t,{term:e}).then(n=>{this.searchResults.innerHTML=n.data}).catch(console.error).then(()=>{this.loadingBlock.classList.add("hidden")})}clearSearch(){this.searchView.classList.add("hidden"),this.contentView.classList.remove("hidden"),this.loadingBlock.classList.add("hidden"),this.searchInput.value=""}},ra=ki;var Ti=class{setup(){this.elem=this.$el,this.entityTypes=this.$opts.entityTypes||"page,book,chapter",this.entityPermission=this.$opts.entityPermission||"view",this.input=this.$refs.input,this.searchInput=this.$refs.search,this.loading=this.$refs.loading,this.resultsContainer=this.$refs.results,this.addButton=this.$refs.add,this.search="",this.lastClick=0,this.selectedItemData=null,this.setupListeners(),this.showLoading(),this.initialLoad()}setupListeners(){this.elem.addEventListener("click",this.onClick.bind(this));let e=0;this.searchInput.addEventListener("input",t=>{e=Date.now(),this.showLoading(),setTimeout(()=>{Date.now()-e<199||this.searchEntities(this.searchInput.value)},200)}),this.searchInput.addEventListener("keydown",t=>{t.keyCode===13&&t.preventDefault()}),this.addButton&&this.addButton.addEventListener("click",t=>{this.selectedItemData&&(this.confirmSelection(this.selectedItemData),this.unselectAll())}),We(this.$el,"[data-entity-type]","keydown",(t,n)=>{if(t.ctrlKey&&t.code==="Enter"){let o=this.$el.closest("form");if(o){o.submit(),t.preventDefault();return}}t.code==="ArrowDown"&&this.focusAdjacent(!0),t.code==="ArrowUp"&&this.focusAdjacent(!1)}),this.searchInput.addEventListener("keydown",t=>{t.code==="ArrowDown"&&this.focusAdjacent(!0)})}focusAdjacent(e=!0){let t=Array.from(this.resultsContainer.querySelectorAll("[data-entity-type]")),n=t.indexOf(document.activeElement),o=t[n+(e?1:-1)]||t[0];o&&o.focus()}reset(){this.searchInput.value="",this.showLoading(),this.initialLoad()}focusSearch(){this.searchInput.focus()}showLoading(){this.loading.style.display="block",this.resultsContainer.style.display="none"}hideLoading(){this.loading.style.display="none",this.resultsContainer.style.display="block"}initialLoad(){window.$http.get(this.searchUrl()).then(e=>{this.resultsContainer.innerHTML=e.data,this.hideLoading()})}searchUrl(){return`/ajax/search/entities?types=${encodeURIComponent(this.entityTypes)}&permission=${encodeURIComponent(this.entityPermission)}`}searchEntities(e){this.input.value="";let t=`${this.searchUrl()}&term=${encodeURIComponent(e)}`;window.$http.get(t).then(n=>{this.resultsContainer.innerHTML=n.data,this.hideLoading()})}isDoubleClick(){let e=Date.now(),t=e-this.lastClick<300;return this.lastClick=e,t}onClick(e){let t=e.target.closest("[data-entity-type]");t&&(e.preventDefault(),e.stopPropagation(),this.selectItem(t))}selectItem(e){let t=this.isDoubleClick(),n=e.getAttribute("data-entity-type"),o=e.getAttribute("data-entity-id"),s=!e.classList.contains("selected")||t;this.unselectAll(),this.input.value=s?`${n}:${o}`:"";let i=e.getAttribute("href"),a=e.querySelector(".entity-list-item-name").textContent,l={id:Number(o),name:a,link:i};s?(e.classList.add("selected"),this.selectedItemData=l):window.$events.emit("entity-select-change",null),!(!t&&!s)&&(t&&this.confirmSelection(l),s&&window.$events.emit("entity-select-change",l))}confirmSelection(e){window.$events.emit("entity-select-confirm",e)}unselectAll(){let e=this.elem.querySelectorAll(".selected");for(let t of e)t.classList.remove("selected","primary-background");this.selectedItemData=null}},na=Ti;var Ii=class{setup(){this.elem=this.$el,this.selectButton=this.$refs.select,window.EntitySelectorPopup=this,this.selectorEl=this.$refs.selector,this.callback=null,this.selection=null,this.selectButton.addEventListener("click",this.onSelectButtonClick.bind(this)),window.$events.listen("entity-select-change",this.onSelectionChange.bind(this)),window.$events.listen("entity-select-confirm",this.handleConfirmedSelection.bind(this))}show(e){this.callback=e,this.elem.components.popup.show(),this.getSelector().focusSearch()}hide(){this.elem.components.popup.hide()}getSelector(){return this.selectorEl.components["entity-selector"]}onSelectButtonClick(){this.handleConfirmedSelection(this.selection)}onSelectionChange(e){this.selection=e,e===null?this.selectButton.setAttribute("disabled","true"):this.selectButton.removeAttribute("disabled")}handleConfirmedSelection(e){this.hide(),this.getSelector().reset(),this.callback&&e&&this.callback(e)}},ia=Ii;var Di=class{setup(){this.container=this.$el,this.name=this.$opts.name,Be(this.$el,()=>{this.$emit(this.name,this.$opts)})}},oa=Di;var Li=class{constructor(e){this.elem=e,this.isOpen=e.getAttribute("expand-toggle-is-open")==="yes",this.updateEndpoint=e.getAttribute("expand-toggle-update-endpoint"),this.selector=e.getAttribute("expand-toggle"),e.addEventListener("click",this.click.bind(this))}open(e){mr(e,200)}close(e){pr(e,200)}click(e){e.preventDefault();let t=document.querySelectorAll(this.selector);for(let n of t)this.isOpen?this.close(n):this.open(n);this.isOpen=!this.isOpen,this.updateSystemAjax(this.isOpen)}updateSystemAjax(e){window.$http.patch(this.updateEndpoint,{expand:e?"true":"false"})}},sa=Li;var Fi=class{setup(){this.elem=this.$el,this.toggleButton=this.$refs.toggle,this.menu=this.$refs.menu,this.open=!1,this.toggleButton.addEventListener("click",this.onToggle.bind(this)),this.onWindowClick=this.onWindowClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}onToggle(e){this.open=!this.open,this.menu.classList.toggle("show",this.open),this.toggleButton.setAttribute("aria-expanded",this.open?"true":"false"),this.open?(this.elem.addEventListener("keydown",this.onKeyDown),window.addEventListener("click",this.onWindowClick)):(this.elem.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("click",this.onWindowClick)),e.stopPropagation()}onKeyDown(e){e.code==="Escape"&&this.onToggle(e)}onWindowClick(e){this.onToggle(e)}},aa=Fi;var Ri=class{constructor(e){this.elem=e,this.typeControl=e.querySelector('[name="setting-app-homepage-type"]'),this.pagePickerContainer=e.querySelector("[page-picker-container]"),this.typeControl.addEventListener("change",this.controlPagePickerVisibility.bind(this)),this.controlPagePickerVisibility()}controlPagePickerVisibility(){let e=this.typeControl.value==="page";this.pagePickerContainer.style.display=e?"block":"none"}},la=Ri;var Oi=class{setup(){this.uploadedTo=this.$opts.uploadedTo,this.container=this.$el,this.popupEl=this.$refs.popup,this.searchForm=this.$refs.searchForm,this.searchInput=this.$refs.searchInput,this.cancelSearch=this.$refs.cancelSearch,this.listContainer=this.$refs.listContainer,this.filterTabs=this.$manyRefs.filterTabs,this.selectButton=this.$refs.selectButton,this.formContainer=this.$refs.formContainer,this.dropzoneContainer=this.$refs.dropzoneContainer,this.type="gallery",this.lastSelected={},this.lastSelectedTime=0,this.callback=null,this.resetState=()=>{this.hasData=!1,this.page=1,this.filter="all"},this.resetState(),this.setupListeners(),window.ImageManager=this}setupListeners(){Be(this.filterTabs,e=>{this.resetAll(),this.filter=e.target.dataset.filter,this.setActiveFilterTab(this.filter),this.loadGallery()}),this.searchForm.addEventListener("submit",e=>{this.resetListView(),this.loadGallery(),e.preventDefault()}),Be(this.cancelSearch,e=>{this.resetListView(),this.resetSearchView(),this.loadGallery(),this.cancelSearch.classList.remove("active")}),this.searchInput.addEventListener("input",e=>{this.cancelSearch.classList.toggle("active",this.searchInput.value.trim())}),We(this.listContainer,".load-more","click",async e=>{Cr(e.target),this.page++,await this.loadGallery(),e.target.remove()}),this.listContainer.addEventListener("event-emit-select-image",this.onImageSelectEvent.bind(this)),this.listContainer.addEventListener("error",e=>{e.target.src=baseUrl("loading_error.png")},!0),Be(this.selectButton,()=>{this.callback&&this.callback(this.lastSelected),this.hide()}),We(this.formContainer,"#image-manager-delete","click",e=>{this.lastSelected&&this.loadImageEditForm(this.lastSelected.id,!0)}),this.formContainer.addEventListener("ajax-form-success",this.refreshGallery.bind(this)),this.container.addEventListener("dropzone-success",this.refreshGallery.bind(this))}show(e,t="gallery"){this.resetAll(),this.callback=e,this.type=t,this.popupEl.components.popup.show(),this.dropzoneContainer.classList.toggle("hidden",t!=="gallery"),this.hasData||(this.loadGallery(),this.hasData=!0)}hide(){this.popupEl.components.popup.hide()}async loadGallery(){let e={page:this.page,search:this.searchInput.value||null,uploaded_to:this.uploadedTo,filter_type:this.filter==="all"?null:this.filter},{data:t}=await window.$http.get(`images/${this.type}`,e);e.page===1&&(this.listContainer.innerHTML=""),this.addReturnedHtmlElementsToList(t),is(this.listContainer)}addReturnedHtmlElementsToList(e){let t=document.createElement("div");t.innerHTML=e,window.components.init(t);for(let n of[...t.children])this.listContainer.appendChild(n)}setActiveFilterTab(e){this.filterTabs.forEach(n=>n.classList.remove("selected"));let t=this.filterTabs.find(n=>n.dataset.filter===e);t&&t.classList.add("selected")}resetAll(){this.resetState(),this.resetListView(),this.resetSearchView(),this.resetEditForm(),this.setActiveFilterTab("all"),this.selectButton.classList.add("hidden")}resetSearchView(){this.searchInput.value=""}resetEditForm(){this.formContainer.innerHTML=""}resetListView(){Cr(this.listContainer),this.page=1}refreshGallery(){this.resetListView(),this.loadGallery()}onImageSelectEvent(e){let t=JSON.parse(e.detail.data),n=t&&t.id===this.lastSelected.id&&Date.now()-this.lastSelectedTime<400,o=e.target.classList.contains("selected");[...this.listContainer.querySelectorAll(".selected")].forEach(s=>{s.classList.remove("selected")}),o?this.resetEditForm():(e.target.classList.add("selected"),this.loadImageEditForm(t.id)),this.selectButton.classList.toggle("hidden",o),n&&this.callback&&(this.callback(t),this.hide()),this.lastSelected=t,this.lastSelectedTime=Date.now()}async loadImageEditForm(e,t=!1){t||(this.formContainer.innerHTML="");let n=t?{delete:!0}:{},{data:o}=await window.$http.get(`/images/edit/${e}`,n);this.formContainer.innerHTML=o,window.components.init(this.formContainer)}},ua=Oi;var Pi=class{constructor(e){this.elem=e,this.imageElem=e.querySelector("img"),this.imageInput=e.querySelector("input[type=file]"),this.resetInput=e.querySelector("input[data-reset-input]"),this.removeInput=e.querySelector("input[data-remove-input]"),this.defaultImage=e.getAttribute("data-default-image"),e.querySelector('button[data-action="reset-image"]').addEventListener("click",this.reset.bind(this));let n=e.querySelector('button[data-action="remove-image"]');n&&n.addEventListener("click",this.removeImage.bind(this)),this.imageInput.addEventListener("change",this.fileInputChange.bind(this))}fileInputChange(){this.resetInput.setAttribute("disabled","disabled"),this.removeInput&&this.removeInput.setAttribute("disabled","disabled");for(let e of this.imageInput.files)this.imageElem.src=window.URL.createObjectURL(e);this.imageElem.classList.remove("none")}reset(){this.imageInput.value="",this.imageElem.src=this.defaultImage,this.resetInput.removeAttribute("disabled"),this.removeInput&&this.removeInput.setAttribute("disabled","disabled"),this.imageElem.classList.remove("none")}removeImage(){this.imageInput.value="",this.imageElem.classList.add("none"),this.removeInput.removeAttribute("disabled"),this.resetInput.setAttribute("disabled","disabled")}},ca=Pi;var Mi=class{constructor(e){this.elem=e,this.menu=e.querySelector("ul"),this.sortInput=e.querySelector('[name="sort"]'),this.orderInput=e.querySelector('[name="order"]'),this.form=e.querySelector("form"),this.menu.addEventListener("click",t=>{t.target.closest("[data-sort-value]")!==null&&this.sortOptionClick(t)}),this.elem.addEventListener("click",t=>{t.target.closest("[data-sort-dir]")!==null&&this.sortDirectionClick(t)})}sortOptionClick(e){let t=e.target.closest("[data-sort-value]");this.sortInput.value=t.getAttribute("data-sort-value"),e.preventDefault(),this.form.submit()}sortDirectionClick(e){let n=this.orderInput.value==="asc"?"desc":"asc";this.orderInput.value=n,e.preventDefault(),this.form.submit()}},da=Mi;var Dc=Yr(vc()),Lc=Yr(Ec());var ho=class{constructor(e){this.data=e}hasItems(){return Boolean(this.data)&&Boolean(this.data.types)&&this.data.types.length>0}containsTabularData(){let e=this.data.getData("text/rtf");return e&&e.includes("\\trowd")}getImages(){let e=this.data.types,t=this.data.files,n=[];for(let o of e)if(o.includes("image")){let s=this.data.getData(o);n.push(s.getAsFile())}for(let o of t)o.type.includes("image")&&n.push(o);return n}},Hr=ho;function jp(r,e){return document.createElement(r,e)}function Hp(r,e,t){return document.createElementNS(r,e,t)}function qp(){return document.createDocumentFragment()}function Vp(r){return document.createTextNode(r)}function Gp(r){return document.createComment(r)}function Wp(r,e,t){r.insertBefore(e,t)}function Yp(r,e){r.removeChild(e)}function Kp(r,e){r.appendChild(e)}function Xp(r){return r.parentNode}function Zp(r){return r.nextSibling}function Qp(r){return r.tagName}function Jp(r,e){r.textContent=e}function em(r){return r.textContent}function tm(r){return r.nodeType===1}function rm(r){return r.nodeType===3}function nm(r){return r.nodeType===8}function im(r){return r.nodeType===11}var On={createElement:jp,createElementNS:Hp,createTextNode:Vp,createDocumentFragment:qp,createComment:Gp,insertBefore:Wp,removeChild:Yp,appendChild:Kp,parentNode:Xp,nextSibling:Zp,tagName:Qp,setTextContent:Jp,getTextContent:em,isElement:tm,isText:rm,isComment:nm,isDocumentFragment:im};function qt(r,e,t,n,o){let s=e===void 0?void 0:e.key;return{sel:r,data:e,children:t,text:n,elm:o,key:s}}var Sc=Array.isArray;function Cc(r){return typeof r=="string"||typeof r=="number"||r instanceof String||r instanceof Number}function po(r){return r===void 0}function pt(r){return r!==void 0}var mo=qt("",{},[],void 0,void 0);function qr(r,e){var t,n;let o=r.key===e.key,s=((t=r.data)===null||t===void 0?void 0:t.is)===((n=e.data)===null||n===void 0?void 0:n.is);return r.sel===e.sel&&o&&s}function sm(){throw new Error("The document fragment is not supported on this platform.")}function am(r,e){return r.isElement(e)}function lm(r,e){return r.isDocumentFragment(e)}function um(r,e,t){var n;let o={};for(let s=e;s<=t;++s){let i=(n=r[s])===null||n===void 0?void 0:n.key;i!==void 0&&(o[i]=s)}return o}var cm=["create","update","remove","destroy","pre","post"];function go(r,e,t){let n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},o=e!==void 0?e:On;for(let p of cm)for(let g of r){let y=g[p];y!==void 0&&n[p].push(y)}function s(p){let g=p.id?"#"+p.id:"",y=p.getAttribute("class"),b=y?"."+y.split(" ").join("."):"";return qt(o.tagName(p).toLowerCase()+g+b,{},[],void 0,p)}function i(p){return qt(void 0,{},[],void 0,p)}function a(p,g){return function(){if(--g===0){let b=o.parentNode(p);o.removeChild(b,p)}}}function l(p,g){var y,b,x,k;let S,O=p.data;if(O!==void 0){let A=(y=O.hook)===null||y===void 0?void 0:y.init;pt(A)&&(A(p),O=p.data)}let C=p.children,P=p.sel;if(P==="!")po(p.text)&&(p.text=""),p.elm=o.createComment(p.text);else if(P!==void 0){let A=P.indexOf("#"),D=P.indexOf(".",A),I=A>0?A:P.length,M=D>0?D:P.length,N=A!==-1||D!==-1?P.slice(0,Math.min(I,M)):P,B=p.elm=pt(O)&&pt(S=O.ns)?o.createElementNS(S,N,O):o.createElement(N,O);for(I<M&&B.setAttribute("id",P.slice(I+1,M)),D>0&&B.setAttribute("class",P.slice(M+1).replace(/\./g," ")),S=0;S<n.create.length;++S)n.create[S](mo,p);if(Sc(C))for(S=0;S<C.length;++S){let Z=C[S];Z!=null&&o.appendChild(B,l(Z,g))}else Cc(p.text)&&o.appendChild(B,o.createTextNode(p.text));let H=p.data.hook;pt(H)&&((b=H.create)===null||b===void 0||b.call(H,mo,p),H.insert&&g.push(p))}else if(((x=t?.experimental)===null||x===void 0?void 0:x.fragments)&&p.children){let A=p.children;for(p.elm=((k=o.createDocumentFragment)!==null&&k!==void 0?k:sm)(),S=0;S<n.create.length;++S)n.create[S](mo,p);for(S=0;S<A.length;++S){let D=A[S];D!=null&&o.appendChild(p.elm,l(D,g))}}else p.elm=o.createTextNode(p.text);return p.elm}function u(p,g,y,b,x,k){for(;b<=x;++b){let S=y[b];S!=null&&o.insertBefore(p,l(S,k),g)}}function c(p){var g,y;let b=p.data;if(b!==void 0){(y=(g=b?.hook)===null||g===void 0?void 0:g.destroy)===null||y===void 0||y.call(g,p);for(let x=0;x<n.destroy.length;++x)n.destroy[x](p);if(p.children!==void 0)for(let x=0;x<p.children.length;++x){let k=p.children[x];k!=null&&typeof k!="string"&&c(k)}}}function f(p,g,y,b){for(var x,k;y<=b;++y){let S,O,C=g[y];if(C!=null)if(pt(C.sel)){c(C),S=n.remove.length+1,O=a(C.elm,S);for(let A=0;A<n.remove.length;++A)n.remove[A](C,O);let P=(k=(x=C?.data)===null||x===void 0?void 0:x.hook)===null||k===void 0?void 0:k.remove;pt(P)?P(C,O):O()}else o.removeChild(p,C.elm)}}function d(p,g,y,b){let x=0,k=0,S=g.length-1,O=g[0],C=g[S],P=y.length-1,A=y[0],D=y[P],I,M,N,B;for(;x<=S&&k<=P;)O==null?O=g[++x]:C==null?C=g[--S]:A==null?A=y[++k]:D==null?D=y[--P]:qr(O,A)?(h(O,A,b),O=g[++x],A=y[++k]):qr(C,D)?(h(C,D,b),C=g[--S],D=y[--P]):qr(O,D)?(h(O,D,b),o.insertBefore(p,O.elm,o.nextSibling(C.elm)),O=g[++x],D=y[--P]):qr(C,A)?(h(C,A,b),o.insertBefore(p,C.elm,O.elm),C=g[--S],A=y[++k]):(I===void 0&&(I=um(g,x,S)),M=I[A.key],po(M)?o.insertBefore(p,l(A,b),O.elm):(N=g[M],N.sel!==A.sel?o.insertBefore(p,l(A,b),O.elm):(h(N,A,b),g[M]=void 0,o.insertBefore(p,N.elm,O.elm))),A=y[++k]);k<=P&&(B=y[P+1]==null?null:y[P+1].elm,u(p,B,y,k,P,b)),x<=S&&f(p,g,x,S)}function h(p,g,y){var b,x,k,S,O,C,P,A;let D=(b=g.data)===null||b===void 0?void 0:b.hook;(x=D?.prepatch)===null||x===void 0||x.call(D,p,g);let I=g.elm=p.elm,M=p.children,N=g.children;if(p!==g){if(g.data!==void 0||pt(g.text)&&g.text!==p.text){(k=g.data)!==null&&k!==void 0||(g.data={}),(S=p.data)!==null&&S!==void 0||(p.data={});for(let B=0;B<n.update.length;++B)n.update[B](p,g);(P=(C=(O=g.data)===null||O===void 0?void 0:O.hook)===null||C===void 0?void 0:C.update)===null||P===void 0||P.call(C,p,g)}po(g.text)?pt(M)&&pt(N)?M!==N&&d(I,M,N,y):pt(N)?(pt(p.text)&&o.setTextContent(I,""),u(I,null,N,0,N.length-1,y)):pt(M)?f(I,M,0,M.length-1):pt(p.text)&&o.setTextContent(I,""):p.text!==g.text&&(pt(M)&&f(I,M,0,M.length-1),o.setTextContent(I,g.text)),(A=D?.postpatch)===null||A===void 0||A.call(D,p,g)}}return function(g,y){let b,x,k,S=[];for(b=0;b<n.pre.length;++b)n.pre[b]();for(am(o,g)?g=s(g):lm(o,g)&&(g=i(g)),qr(g,y)?h(g,y,S):(x=g.elm,k=o.parentNode(x),l(y,S),k!==null&&(o.insertBefore(k,y.elm,o.nextSibling(x)),f(k,[g],0,0))),b=0;b<S.length;++b)S[b].data.hook.insert(S[b]);for(b=0;b<n.post.length;++b)n.post[b]();return y}}function vo(r,e,t){if(r.ns="http://www.w3.org/2000/svg",t!=="foreignObject"&&e!==void 0)for(let n=0;n<e.length;++n){let o=e[n];if(typeof o=="string")continue;let s=o.data;s!==void 0&&vo(s,o.children,o.sel)}}function Vr(r,e){let t=e!==void 0?e:On,n;if(t.isElement(r)){let o=r.id?"#"+r.id:"",s=r.getAttribute("class"),i=s?"."+s.split(" ").join("."):"",a=t.tagName(r).toLowerCase()+o+i,l={},u={},c={},f=[],d,h,p,g=r.attributes,y=r.childNodes;for(h=0,p=g.length;h<p;h++)d=g[h].nodeName,d[0]==="d"&&d[1]==="a"&&d[2]==="t"&&d[3]==="a"&&d[4]==="-"?u[d.slice(5)]=g[h].nodeValue||"":d!=="id"&&d!=="class"&&(l[d]=g[h].nodeValue);for(h=0,p=y.length;h<p;h++)f.push(Vr(y[h],e));return Object.keys(l).length>0&&(c.attrs=l),Object.keys(u).length>0&&(c.datasets=u),a[0]==="s"&&a[1]==="v"&&a[2]==="g"&&(a.length===3||a[3]==="."||a[3]==="#")&&vo(c,f,a),qt(a,c,f,void 0,r)}else return t.isText(r)?(n=t.getTextContent(r),qt(void 0,void 0,void 0,n,r)):t.isComment(r)?(n=t.getTextContent(r),qt("!",{},[],n,r)):qt("",{},[],void 0,r)}var dm="http://www.w3.org/1999/xlink",fm="http://www.w3.org/XML/1998/namespace";function Ac(r,e){let t,n=e.elm,o=r.data.attrs,s=e.data.attrs;if(!(!o&&!s)&&o!==s){o=o||{},s=s||{};for(t in s){let i=s[t];o[t]!==i&&(i===!0?n.setAttribute(t,""):i===!1?n.removeAttribute(t):t.charCodeAt(0)!==120?n.setAttribute(t,i):t.charCodeAt(3)===58?n.setAttributeNS(fm,t,i):t.charCodeAt(5)===58?n.setAttributeNS(dm,t,i):n.setAttribute(t,i))}for(t in o)t in s||n.removeAttribute(t)}}var yo={create:Ac,update:Ac};var Pn;function hm(){return Pn||(Pn=go([yo]),Pn)}function kc(r,e){let t=document.createElement("div");t.innerHTML=e,hm()(Vr(r),Vr(t))}var _t=null,wo,bo,xo;function pm(r,e,t){bo=e,xo=t,_t=document.createElement("iframe"),_t.setAttribute("frameborder","0"),window.addEventListener("message",Tc),_t.setAttribute("src",r),_t.setAttribute("class","fullscreen"),_t.style.backgroundColor="#FFFFFF",document.body.appendChild(_t),wo=new URL(r).origin}function mm(){Ic()}function Tc(r){if(!r.data||r.data.length<1||r.origin!==wo)return;let e=JSON.parse(r.data);e.event==="init"?ym():e.event==="exit"?Ic():e.event==="save"?vm(e):e.event==="export"?gm(e):e.event==="configure"&&bm()}function gm(r){xo&&xo(r.data)}function vm(r){Eo({action:"export",format:"xmlpng",xml:r.xml,spin:"Updating drawing"})}function ym(){!bo||bo().then(r=>{Eo({action:"load",autosave:1,xml:r})})}function bm(){let r={};window.$events.emitPublic(_t,"editor-drawio::configure",{config:r}),Eo({action:"configure",config:r})}function Ic(){window.removeEventListener("message",Tc),_t&&document.body.removeChild(_t)}function Eo(r){_t.contentWindow.postMessage(JSON.stringify(r),wo)}async function xm(r,e){let t={image:r,uploaded_to:e};return(await window.$http.post(window.baseUrl("/images/drawio"),t)).data}async function wm(r){return`data:image/png;base64,${(await window.$http.get(window.baseUrl(`/images/drawio/base64/${r}`))).data.content}`}var bt={show:pm,close:mm,upload:xm,load:wm};var So=class{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.imageUploadErrorText=this.$opts.imageUploadErrorText,this.serverUploadLimitText=this.$opts.serverUploadLimitText,this.markdown=new Dc.default({html:!0}),this.markdown.use(Lc.default,{label:!0}),this.display=this.elem.querySelector(".markdown-display"),this.displayStylesLoaded=!1,this.input=this.elem.querySelector("textarea"),this.cm=null,this.Code=null;let e=window.importVersioned("code").then(n=>(this.cm=n.markdownEditor(this.input),this.Code=n,this.cm));this.onMarkdownScroll=this.onMarkdownScroll.bind(this);let t=()=>{this.displayDoc=this.display.contentDocument,this.init(e)};this.display.contentDocument.readyState==="complete"?t():this.display.addEventListener("load",t.bind(this)),window.$events.emitPublic(this.elem,"editor-markdown::setup",{markdownIt:this.markdown,displayEl:this.display,codeMirrorInstance:this.cm})}init(e){let t=0;this.displayDoc.addEventListener("click",s=>{let i=Date.now()-t<300,a=s.target.closest("a");if(a!==null){s.preventDefault(),window.open(a.getAttribute("href"));return}let l=s.target.closest("[drawio-diagram]");if(l!==null&&i){this.actionEditDrawing(l);return}t=Date.now()}),this.elem.addEventListener("click",s=>{let i=s.target.closest("button[data-action]");if(i===null)return;let a=i.getAttribute("data-action");if(a==="insertImage"&&this.actionInsertImage(),a==="insertLink"&&this.actionShowLinkSelector(),a==="insertDrawing"&&(s.ctrlKey||s.metaKey)){this.actionShowImageManager();return}a==="insertDrawing"&&this.actionStartDrawing(),a==="fullscreen"&&this.actionFullScreen()}),this.elem.addEventListener("click",s=>{let i=s.target.closest(".editor-toolbar-label");if(!i)return;let a=this.elem.querySelectorAll(".markdown-editor-wrap");for(let l of a)l.classList.remove("active");i.closest(".markdown-editor-wrap").classList.add("active")}),e.then(s=>{this.codeMirrorSetup(s);let i=Ar(()=>this.Code.updateLayout(s),100,!1);new ResizeObserver(i).observe(this.elem)}),this.listenForBookStackEditorEvents();let o=new URL(window.location).searchParams.get("content-text");o&&this.scrollToText(o)}updateAndRender(){let e=this.cm.getValue();this.input.value=e;let t=this.markdown.render(e);window.$events.emit("editor-html-change",t),window.$events.emit("editor-markdown-change",e);let n=this.getDisplayTarget();this.displayDoc.body.className="page-content",kc(n,t),this.loadStylesIntoDisplay()}getDisplayTarget(){let e=this.displayDoc.body;if(e.children.length===0){let t=document.createElement("div");this.displayDoc.body.append(t)}return e.children[0]}loadStylesIntoDisplay(){if(this.displayStylesLoaded)return;this.displayDoc.documentElement.classList.add("markdown-editor-display"),document.documentElement.classList.contains("dark-mode")&&(this.displayDoc.documentElement.style.backgroundColor="#222",this.displayDoc.documentElement.classList.add("dark-mode")),this.displayDoc.head.innerHTML="";let e=document.head.querySelectorAll("style,link[rel=stylesheet]");for(let t of e){let n=t.cloneNode(!0);this.displayDoc.head.appendChild(n)}this.displayStylesLoaded=!0}onMarkdownScroll(e){let t=this.displayDoc.body.children;if(t.length<=e)return;(e===-1?t[t.length-1]:t[e]).scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}codeMirrorSetup(e){let t=this;e.setOption("direction","ltr");let n=this.Code.getMetaKey(),o={};o[`${n}-Alt-I`]=function(d){let p=``,g=d.getCursor("from");d.replaceSelection(p),d.setCursor(g.line,g.ch+p.length-1)},o[`${n}-S`]=d=>{window.$events.emit("editor-save-draft")},o[`${n}-Enter`]=d=>{window.$events.emit("editor-save-page")},o[`Shift-${n}-K`]=d=>{this.actionShowLinkSelector()},o[`${n}-K`]=d=>{f()},o[`${n}-1`]=d=>{a("##")},o[`${n}-2`]=d=>{a("###")},o[`${n}-3`]=d=>{a("####")},o[`${n}-4`]=d=>{a("#####")},o[`${n}-5`]=d=>{a("")},o[`${n}-d`]=d=>{a("")},o[`${n}-6`]=d=>{a(">")},o[`${n}-q`]=d=>{a(">")},o[`${n}-7`]=d=>{u("\n```\n","\n```")},o[`${n}-8`]=d=>{u("`","`")},o[`Shift-${n}-E`]=d=>{u("`","`")},o[`${n}-9`]=d=>{u('<p class="callout info">',"</p>")},e.setOption("extraKeys",o),e.on("change",(d,h)=>{this.updateAndRender()});let s=Ar(d=>{let h=d.getScrollInfo();if(h.top+h.clientHeight===h.height){this.onMarkdownScroll(-1);return}let g=d.lineAtHeight(h.top,"local"),y=d.getRange({line:0,ch:null},{line:g,ch:null}),k=new DOMParser().parseFromString(this.markdown.render(y),"text/html").documentElement.querySelectorAll("body > *");this.onMarkdownScroll(k.length)},100);e.on("scroll",d=>{s(d)}),e.on("paste",(d,h)=>{let p=new Hr(h.clipboardData||h.dataTransfer);if(!p.hasItems()||p.containsTabularData())return;let g=p.getImages();for(let y of g)c(y)}),e.on("drop",(d,h)=>{let p=h.dataTransfer.getData("bookstack/template");if(p){let y=d.coordsChar({left:h.pageX,top:h.pageY});d.setCursor(y),h.preventDefault(),window.$http.get(`/templates/${p}`).then(b=>{let x=b.data.markdown||b.data.html;d.replaceSelection(x)})}let g=new Hr(h.dataTransfer);if(g.hasItems()&&g.getImages().length>0){let y=d.coordsChar({left:h.pageX,top:h.pageY});d.setCursor(y),h.stopPropagation(),h.preventDefault();let b=g.getImages();for(let x of b)c(x)}});function i(d,h){let p=e.getValue(),g=e.listSelections();e.setValue(p.replace(d,h)),e.setSelections(g)}function a(d){let h=e.getCursor(),p=e.getLine(h.line),g=p.length,y=p.split(" ")[0];if(y===d){p=p.replace(`${d} `,""),e.replaceRange(p,{line:h.line,ch:0},{line:h.line,ch:g}),e.setCursor({line:h.line,ch:h.ch-(d.length+1)});return}let b=/^[#>`]/.test(y),x=0;b?(x=d.length-y.length,p=p.replace(y,d).trim()):d!==""&&(x=d.length+1,p=d+" "+p),e.replaceRange(p,{line:h.line,ch:0},{line:h.line,ch:g}),e.setCursor({line:h.line,ch:h.ch+x})}function l(d,h){let p=e.getCursor(),g=e.getLine(p.line),y=g.length,b=g;g.indexOf(d)===0&&g.slice(-h.length)===h?b=g.slice(d.length,g.length-h.length):b=`${d}${g}${h}`,e.replaceRange(b,{line:p.line,ch:0},{line:p.line,ch:y}),e.setCursor({line:p.line,ch:p.ch+d.length})}function u(d,h){let p=e.getSelection();if(p==="")return l(d,h);let g=p,y=0,b=0;p.indexOf(d)===0&&p.slice(-h.length)===h?(g=p.slice(d.length,p.length-h.length),b=-(h.length+d.length)):(g=`${d}${p}${h}`,b=d.length+h.length);let x=e.listSelections()[0];e.replaceSelection(g);let k=x.head.ch<=x.anchor.ch;x.head.ch+=k?y:b,x.anchor.ch+=k?b:y,e.setSelections([x])}function c(d){if(d===null||d.type.indexOf("image")!==0)return;let h="png";if(d.name){let O=d.name.match(/\.(.+)$/);O.length>1&&(h=O[1])}let p="image-"+Math.random().toString(16).slice(2),g=window.baseUrl(`/loading.gif#upload${p}`),y=e.getSelection(),b=``,x=e.getCursor();e.replaceSelection(b),e.setCursor({line:x.line,ch:x.ch+y.length+3});let k="image-"+Date.now()+"."+h,S=new FormData;S.append("file",d,k),S.append("uploaded_to",t.pageId),window.$http.post("/images/gallery",S).then(O=>{let C=`[](${O.data.url})`;i(b,C)}).catch(O=>{window.$events.emit("error",t.imageUploadErrorText),i(b,y),console.log(O)})}function f(){let d=e.getCursor("from"),h=e.getSelection()||"",p=`[${h}]()`;e.focus(),e.replaceSelection(p);let g=h===""?-3:-1;e.setCursor(d.line,d.ch+p.length+g)}this.updateAndRender()}actionInsertImage(){let e=this.cm.getCursor("from");window.ImageManager.show(t=>{let n=t.thumbs.display||t.url,o=this.cm.getSelection(),s="[]("+t.url+")";this.cm.focus(),this.cm.replaceSelection(s),this.cm.setCursor(e.line,e.ch+s.length)},"gallery")}actionShowImageManager(){let e=this.cm.getCursor("from");window.ImageManager.show(t=>{this.insertDrawing(t,e)},"drawio")}actionShowLinkSelector(){let e=this.cm.getCursor("from");window.EntitySelectorPopup.show(t=>{let o=`[${this.cm.getSelection()||t.name}](${t.link})`;this.cm.focus(),this.cm.replaceSelection(o),this.cm.setCursor(e.line,e.ch+o.length)})}getDrawioUrl(){let e=document.querySelector("[drawio-url]");return e?e.getAttribute("drawio-url"):!1}actionStartDrawing(){let e=this.getDrawioUrl();if(!e)return;let t=this.cm.getCursor("from");bt.show(e,()=>Promise.resolve(""),n=>{let o={image:n,uploaded_to:Number(this.pageId)};window.$http.post("/images/drawio",o).then(s=>{this.insertDrawing(s.data,t),bt.close()}).catch(s=>{this.handleDrawingUploadError(s)})})}insertDrawing(e,t){let n=`<div drawio-diagram="${e.id}"><img src="${e.url}"></div>`;this.cm.focus(),this.cm.replaceSelection(n),this.cm.setCursor(t.line,t.ch+n.length)}actionEditDrawing(e){let t=this.getDrawioUrl();if(!t)return;let n=this.cm.getCursor("from"),o=e.getAttribute("drawio-diagram");bt.show(t,()=>bt.load(o),s=>{let i={image:s,uploaded_to:Number(this.pageId)};window.$http.post("/images/drawio",i).then(a=>{let l=`<div drawio-diagram="${a.data.id}"><img src="${a.data.url}"></div>`,u=this.cm.getValue().split(`
+`);return n};vr.prototype.render=function(r,e,t){var n,o,s,i="",a=this.rules;for(n=0,o=r.length;n<o;n++)s=r[n].type,s==="inline"?i+=this.renderInline(r[n].children,e,t):typeof a[s]<"u"?i+=a[r[n].type](r,n,e,t,this):i+=this.renderToken(r,n,e,t);return i};Ka.exports=vr});var Cn=re((Pv,Za)=>{"use strict";function kt(){this.__rules__=[],this.__cache__=null}kt.prototype.__find__=function(r){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===r)return e;return-1};kt.prototype.__compile__=function(){var r=this,e=[""];r.__rules__.forEach(function(t){!t.enabled||t.alt.forEach(function(n){e.indexOf(n)<0&&e.push(n)})}),r.__cache__={},e.forEach(function(t){r.__cache__[t]=[],r.__rules__.forEach(function(n){!n.enabled||t&&n.alt.indexOf(t)<0||r.__cache__[t].push(n.fn)})})};kt.prototype.at=function(r,e,t){var n=this.__find__(r),o=t||{};if(n===-1)throw new Error("Parser rule not found: "+r);this.__rules__[n].fn=e,this.__rules__[n].alt=o.alt||[],this.__cache__=null};kt.prototype.before=function(r,e,t,n){var o=this.__find__(r),s=n||{};if(o===-1)throw new Error("Parser rule not found: "+r);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:t,alt:s.alt||[]}),this.__cache__=null};kt.prototype.after=function(r,e,t,n){var o=this.__find__(r),s=n||{};if(o===-1)throw new Error("Parser rule not found: "+r);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:t,alt:s.alt||[]}),this.__cache__=null};kt.prototype.push=function(r,e,t){var n=t||{};this.__rules__.push({name:r,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null};kt.prototype.enable=function(r,e){Array.isArray(r)||(r=[r]);var t=[];return r.forEach(function(n){var o=this.__find__(n);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[o].enabled=!0,t.push(n)},this),this.__cache__=null,t};kt.prototype.enableOnly=function(r,e){Array.isArray(r)||(r=[r]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(r,e)};kt.prototype.disable=function(r,e){Array.isArray(r)||(r=[r]);var t=[];return r.forEach(function(n){var o=this.__find__(n);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[o].enabled=!1,t.push(n)},this),this.__cache__=null,t};kt.prototype.getRules=function(r){return this.__cache__===null&&this.__compile__(),this.__cache__[r]||[]};Za.exports=kt});var Ja=re((Mv,Qa)=>{"use strict";var sh=/\r\n?|\n/g,ah=/\0/g;Qa.exports=function(e){var t;t=e.src.replace(sh,`
+`),t=t.replace(ah,"\uFFFD"),e.src=t}});var tl=re((_v,el)=>{"use strict";el.exports=function(e){var t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}});var nl=re((Nv,rl)=>{"use strict";rl.exports=function(e){var t=e.tokens,n,o,s;for(o=0,s=t.length;o<s;o++)n=t[o],n.type==="inline"&&e.md.inline.parse(n.content,e.md,e.env,n.children)}});var ol=re((Bv,il)=>{"use strict";var lh=_e().arrayReplaceAt;function uh(r){return/^<a[>\s]/i.test(r)}function ch(r){return/^<\/a\s*>/i.test(r)}il.exports=function(e){var t,n,o,s,i,a,l,u,c,f,h,d,p,m,v,b,x=e.tokens,C;if(!!e.md.options.linkify){for(n=0,o=x.length;n<o;n++)if(!(x[n].type!=="inline"||!e.md.linkify.pretest(x[n].content)))for(s=x[n].children,p=0,t=s.length-1;t>=0;t--){if(a=s[t],a.type==="link_close"){for(t--;s[t].level!==a.level&&s[t].type!=="link_open";)t--;continue}if(a.type==="html_inline"&&(uh(a.content)&&p>0&&p--,ch(a.content)&&p++),!(p>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(c=a.content,C=e.md.linkify.match(c),l=[],d=a.level,h=0,C.length>0&&C[0].index===0&&t>0&&s[t-1].type==="text_special"&&(C=C.slice(1)),u=0;u<C.length;u++)m=C[u].url,v=e.md.normalizeLink(m),e.md.validateLink(v)&&(b=C[u].text,C[u].schema?C[u].schema==="mailto:"&&!/^mailto:/i.test(b)?b=e.md.normalizeLinkText("mailto:"+b).replace(/^mailto:/,""):b=e.md.normalizeLinkText(b):b=e.md.normalizeLinkText("http://"+b).replace(/^http:\/\//,""),f=C[u].index,f>h&&(i=new e.Token("text","",0),i.content=c.slice(h,f),i.level=d,l.push(i)),i=new e.Token("link_open","a",1),i.attrs=[["href",v]],i.level=d++,i.markup="linkify",i.info="auto",l.push(i),i=new e.Token("text","",0),i.content=b,i.level=d,l.push(i),i=new e.Token("link_close","a",-1),i.level=--d,i.markup="linkify",i.info="auto",l.push(i),h=C[u].lastIndex);h<c.length&&(i=new e.Token("text","",0),i.content=c.slice(h),i.level=d,l.push(i)),x[n].children=s=lh(s,t,l)}}}}});var ll=re(($v,al)=>{"use strict";var sl=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,dh=/\((c|tm|r)\)/i,fh=/\((c|tm|r)\)/ig,hh={c:"\xA9",r:"\xAE",tm:"\u2122"};function ph(r,e){return hh[e.toLowerCase()]}function mh(r){var e,t,n=0;for(e=r.length-1;e>=0;e--)t=r[e],t.type==="text"&&!n&&(t.content=t.content.replace(fh,ph)),t.type==="link_open"&&t.info==="auto"&&n--,t.type==="link_close"&&t.info==="auto"&&n++}function gh(r){var e,t,n=0;for(e=r.length-1;e>=0;e--)t=r[e],t.type==="text"&&!n&&sl.test(t.content)&&(t.content=t.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),t.type==="link_open"&&t.info==="auto"&&n--,t.type==="link_close"&&t.info==="auto"&&n++}al.exports=function(e){var t;if(!!e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(dh.test(e.tokens[t].content)&&mh(e.tokens[t].children),sl.test(e.tokens[t].content)&&gh(e.tokens[t].children))}});var ml=re((Uv,pl)=>{"use strict";var ul=_e().isWhiteSpace,cl=_e().isPunctChar,dl=_e().isMdAsciiPunct,vh=/['"]/,fl=/['"]/g,hl="\u2019";function An(r,e,t){return r.slice(0,e)+t+r.slice(e+1)}function yh(r,e){var t,n,o,s,i,a,l,u,c,f,h,d,p,m,v,b,x,C,S,M,A;for(S=[],t=0;t<r.length;t++){for(n=r[t],l=r[t].level,x=S.length-1;x>=0&&!(S[x].level<=l);x--);if(S.length=x+1,n.type!=="text")continue;o=n.content,i=0,a=o.length;e:for(;i<a&&(fl.lastIndex=i,s=fl.exec(o),!!s);){if(v=b=!0,i=s.index+1,C=s[0]==="'",c=32,s.index-1>=0)c=o.charCodeAt(s.index-1);else for(x=t-1;x>=0&&!(r[x].type==="softbreak"||r[x].type==="hardbreak");x--)if(!!r[x].content){c=r[x].content.charCodeAt(r[x].content.length-1);break}if(f=32,i<a)f=o.charCodeAt(i);else for(x=t+1;x<r.length&&!(r[x].type==="softbreak"||r[x].type==="hardbreak");x++)if(!!r[x].content){f=r[x].content.charCodeAt(0);break}if(h=dl(c)||cl(String.fromCharCode(c)),d=dl(f)||cl(String.fromCharCode(f)),p=ul(c),m=ul(f),m?v=!1:d&&(p||h||(v=!1)),p?b=!1:h&&(m||d||(b=!1)),f===34&&s[0]==='"'&&c>=48&&c<=57&&(b=v=!1),v&&b&&(v=h,b=d),!v&&!b){C&&(n.content=An(n.content,s.index,hl));continue}if(b){for(x=S.length-1;x>=0&&(u=S[x],!(S[x].level<l));x--)if(u.single===C&&S[x].level===l){u=S[x],C?(M=e.md.options.quotes[2],A=e.md.options.quotes[3]):(M=e.md.options.quotes[0],A=e.md.options.quotes[1]),n.content=An(n.content,s.index,A),r[u.token].content=An(r[u.token].content,u.pos,M),i+=A.length-1,u.token===t&&(i+=M.length-1),o=n.content,a=o.length,S.length=x;continue e}}v?S.push({token:t,pos:s.index,single:C,level:l}):b&&C&&(n.content=An(n.content,s.index,hl))}}}pl.exports=function(e){var t;if(!!e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!vh.test(e.tokens[t].content)||yh(e.tokens[t].children,e)}});var vl=re((zv,gl)=>{"use strict";gl.exports=function(e){var t,n,o,s,i,a,l=e.tokens;for(t=0,n=l.length;t<n;t++)if(l[t].type==="inline"){for(o=l[t].children,i=o.length,s=0;s<i;s++)o[s].type==="text_special"&&(o[s].type="text");for(s=a=0;s<i;s++)o[s].type==="text"&&s+1<i&&o[s+1].type==="text"?o[s+1].content=o[s].content+o[s+1].content:(s!==a&&(o[a]=o[s]),a++);s!==a&&(o.length=a)}}});var kn=re((jv,yl)=>{"use strict";function yr(r,e,t){this.type=r,this.tag=e,this.attrs=null,this.map=null,this.nesting=t,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}yr.prototype.attrIndex=function(e){var t,n,o;if(!this.attrs)return-1;for(t=this.attrs,n=0,o=t.length;n<o;n++)if(t[n][0]===e)return n;return-1};yr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};yr.prototype.attrSet=function(e,t){var n=this.attrIndex(e),o=[e,t];n<0?this.attrPush(o):this.attrs[n]=o};yr.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n};yr.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};yl.exports=yr});var wl=re((Hv,xl)=>{"use strict";var bh=kn();function bl(r,e,t){this.src=r,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}bl.prototype.Token=bh;xl.exports=bl});var Sl=re((qv,El)=>{"use strict";var xh=Cn(),zi=[["normalize",Ja()],["block",tl()],["inline",nl()],["linkify",ol()],["replacements",ll()],["smartquotes",ml()],["text_join",vl()]];function ji(){this.ruler=new xh;for(var r=0;r<zi.length;r++)this.ruler.push(zi[r][0],zi[r][1])}ji.prototype.process=function(r){var e,t,n;for(n=this.ruler.getRules(""),e=0,t=n.length;e<t;e++)n[e](r)};ji.prototype.State=wl();El.exports=ji});var kl=re((Vv,Al)=>{"use strict";var Hi=_e().isSpace;function qi(r,e){var t=r.bMarks[e]+r.tShift[e],n=r.eMarks[e];return r.src.slice(t,n)}function Cl(r){var e=[],t=0,n=r.length,o,s=!1,i=0,a="";for(o=r.charCodeAt(t);t<n;)o===124&&(s?(a+=r.substring(i,t-1),i=t):(e.push(a+r.substring(i,t)),a="",i=t+1)),s=o===92,t++,o=r.charCodeAt(t);return e.push(a+r.substring(i)),e}Al.exports=function(e,t,n,o){var s,i,a,l,u,c,f,h,d,p,m,v,b,x,C,S,M,A;if(t+2>n||(c=t+1,e.sCount[c]<e.blkIndent)||e.sCount[c]-e.blkIndent>=4||(a=e.bMarks[c]+e.tShift[c],a>=e.eMarks[c])||(M=e.src.charCodeAt(a++),M!==124&&M!==45&&M!==58)||a>=e.eMarks[c]||(A=e.src.charCodeAt(a++),A!==124&&A!==45&&A!==58&&!Hi(A))||M===45&&Hi(A))return!1;for(;a<e.eMarks[c];){if(s=e.src.charCodeAt(a),s!==124&&s!==45&&s!==58&&!Hi(s))return!1;a++}for(i=qi(e,t+1),f=i.split("|"),p=[],l=0;l<f.length;l++){if(m=f[l].trim(),!m){if(l===0||l===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(m))return!1;m.charCodeAt(m.length-1)===58?p.push(m.charCodeAt(0)===58?"center":"right"):m.charCodeAt(0)===58?p.push("left"):p.push("")}if(i=qi(e,t).trim(),i.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4||(f=Cl(i),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),h=f.length,h===0||h!==p.length))return!1;if(o)return!0;for(x=e.parentType,e.parentType="table",S=e.md.block.ruler.getRules("blockquote"),d=e.push("table_open","table",1),d.map=v=[t,0],d=e.push("thead_open","thead",1),d.map=[t,t+1],d=e.push("tr_open","tr",1),d.map=[t,t+1],l=0;l<f.length;l++)d=e.push("th_open","th",1),p[l]&&(d.attrs=[["style","text-align:"+p[l]]]),d=e.push("inline","",0),d.content=f[l].trim(),d.children=[],d=e.push("th_close","th",-1);for(d=e.push("tr_close","tr",-1),d=e.push("thead_close","thead",-1),c=t+2;c<n&&!(e.sCount[c]<e.blkIndent);c++){for(C=!1,l=0,u=S.length;l<u;l++)if(S[l](e,c,n,!0)){C=!0;break}if(C||(i=qi(e,c).trim(),!i)||e.sCount[c]-e.blkIndent>=4)break;for(f=Cl(i),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),c===t+2&&(d=e.push("tbody_open","tbody",1),d.map=b=[t+2,0]),d=e.push("tr_open","tr",1),d.map=[c,c+1],l=0;l<h;l++)d=e.push("td_open","td",1),p[l]&&(d.attrs=[["style","text-align:"+p[l]]]),d=e.push("inline","",0),d.content=f[l]?f[l].trim():"",d.children=[],d=e.push("td_close","td",-1);d=e.push("tr_close","tr",-1)}return b&&(d=e.push("tbody_close","tbody",-1),b[1]=c),d=e.push("table_close","table",-1),v[1]=c,e.parentType=x,e.line=c,!0}});var Il=re((Gv,Tl)=>{"use strict";Tl.exports=function(e,t,n){var o,s,i;if(e.sCount[t]-e.blkIndent<4)return!1;for(s=o=t+1;o<n;){if(e.isEmpty(o)){o++;continue}if(e.sCount[o]-e.blkIndent>=4){o++,s=o;continue}break}return e.line=s,i=e.push("code_block","code",0),i.content=e.getLines(t,s,4+e.blkIndent,!1)+`
+`,i.map=[t,e.line],!0}});var Ll=re((Wv,Dl)=>{"use strict";Dl.exports=function(e,t,n,o){var s,i,a,l,u,c,f,h=!1,d=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||d+3>p||(s=e.src.charCodeAt(d),s!==126&&s!==96)||(u=d,d=e.skipChars(d,s),i=d-u,i<3)||(f=e.src.slice(u,d),a=e.src.slice(d,p),s===96&&a.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(l=t;l++,!(l>=n||(d=u=e.bMarks[l]+e.tShift[l],p=e.eMarks[l],d<p&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(d)===s&&!(e.sCount[l]-e.blkIndent>=4)&&(d=e.skipChars(d,s),!(d-u<i)&&(d=e.skipSpaces(d),!(d<p)))){h=!0;break}return i=e.sCount[t],e.line=l+(h?1:0),c=e.push("fence","code",0),c.info=a,c.content=e.getLines(t+1,l,i,!0),c.markup=f,c.map=[t,e.line],!0}});var Ol=re((Yv,Rl)=>{"use strict";var Fl=_e().isSpace;Rl.exports=function(e,t,n,o){var s,i,a,l,u,c,f,h,d,p,m,v,b,x,C,S,M,A,O,k,D=e.lineMax,I=e.bMarks[t]+e.tShift[t],P=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(I++)!==62)return!1;if(o)return!0;for(l=d=e.sCount[t]+1,e.src.charCodeAt(I)===32?(I++,l++,d++,s=!1,S=!0):e.src.charCodeAt(I)===9?(S=!0,(e.bsCount[t]+d)%4===3?(I++,l++,d++,s=!1):s=!0):S=!1,p=[e.bMarks[t]],e.bMarks[t]=I;I<P&&(i=e.src.charCodeAt(I),Fl(i));){i===9?d+=4-(d+e.bsCount[t]+(s?1:0))%4:d++;I++}for(m=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(S?1:0),c=I>=P,x=[e.sCount[t]],e.sCount[t]=d-l,C=[e.tShift[t]],e.tShift[t]=I-e.bMarks[t],A=e.md.block.ruler.getRules("blockquote"),b=e.parentType,e.parentType="blockquote",h=t+1;h<n&&(k=e.sCount[h]<e.blkIndent,I=e.bMarks[h]+e.tShift[h],P=e.eMarks[h],!(I>=P));h++){if(e.src.charCodeAt(I++)===62&&!k){for(l=d=e.sCount[h]+1,e.src.charCodeAt(I)===32?(I++,l++,d++,s=!1,S=!0):e.src.charCodeAt(I)===9?(S=!0,(e.bsCount[h]+d)%4===3?(I++,l++,d++,s=!1):s=!0):S=!1,p.push(e.bMarks[h]),e.bMarks[h]=I;I<P&&(i=e.src.charCodeAt(I),Fl(i));){i===9?d+=4-(d+e.bsCount[h]+(s?1:0))%4:d++;I++}c=I>=P,m.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(S?1:0),x.push(e.sCount[h]),e.sCount[h]=d-l,C.push(e.tShift[h]),e.tShift[h]=I-e.bMarks[h];continue}if(c)break;for(M=!1,a=0,u=A.length;a<u;a++)if(A[a](e,h,n,!0)){M=!0;break}if(M){e.lineMax=h,e.blkIndent!==0&&(p.push(e.bMarks[h]),m.push(e.bsCount[h]),C.push(e.tShift[h]),x.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}p.push(e.bMarks[h]),m.push(e.bsCount[h]),C.push(e.tShift[h]),x.push(e.sCount[h]),e.sCount[h]=-1}for(v=e.blkIndent,e.blkIndent=0,O=e.push("blockquote_open","blockquote",1),O.markup=">",O.map=f=[t,0],e.md.block.tokenize(e,t,h),O=e.push("blockquote_close","blockquote",-1),O.markup=">",e.lineMax=D,e.parentType=b,f[1]=e.line,a=0;a<C.length;a++)e.bMarks[a+t]=p[a],e.tShift[a+t]=C[a],e.sCount[a+t]=x[a],e.bsCount[a+t]=m[a];return e.blkIndent=v,!0}});var Ml=re((Kv,Pl)=>{"use strict";var wh=_e().isSpace;Pl.exports=function(e,t,n,o){var s,i,a,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(s=e.src.charCodeAt(u++),s!==42&&s!==45&&s!==95))return!1;for(i=1;u<c;){if(a=e.src.charCodeAt(u++),a!==s&&!wh(a))return!1;a===s&&i++}return i<3?!1:(o||(e.line=t+1,l=e.push("hr","hr",0),l.map=[t,e.line],l.markup=Array(i+1).join(String.fromCharCode(s))),!0)}});var Ul=re((Xv,$l)=>{"use strict";var Bl=_e().isSpace;function _l(r,e){var t,n,o,s;return n=r.bMarks[e]+r.tShift[e],o=r.eMarks[e],t=r.src.charCodeAt(n++),t!==42&&t!==45&&t!==43||n<o&&(s=r.src.charCodeAt(n),!Bl(s))?-1:n}function Nl(r,e){var t,n=r.bMarks[e]+r.tShift[e],o=n,s=r.eMarks[e];if(o+1>=s||(t=r.src.charCodeAt(o++),t<48||t>57))return-1;for(;;){if(o>=s)return-1;if(t=r.src.charCodeAt(o++),t>=48&&t<=57){if(o-n>=10)return-1;continue}if(t===41||t===46)break;return-1}return o<s&&(t=r.src.charCodeAt(o),!Bl(t))?-1:o}function Eh(r,e){var t,n,o=r.level+2;for(t=e+2,n=r.tokens.length-2;t<n;t++)r.tokens[t].level===o&&r.tokens[t].type==="paragraph_open"&&(r.tokens[t+2].hidden=!0,r.tokens[t].hidden=!0,t+=2)}$l.exports=function(e,t,n,o){var s,i,a,l,u,c,f,h,d,p,m,v,b,x,C,S,M,A,O,k,D,I,P,N,B,H,Z,W,te=!1,ne=!0;if(e.sCount[t]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(o&&e.parentType==="paragraph"&&e.sCount[t]>=e.blkIndent&&(te=!0),(P=Nl(e,t))>=0){if(f=!0,B=e.bMarks[t]+e.tShift[t],b=Number(e.src.slice(B,P-1)),te&&b!==1)return!1}else if((P=_l(e,t))>=0)f=!1;else return!1;if(te&&e.skipSpaces(P)>=e.eMarks[t])return!1;if(v=e.src.charCodeAt(P-1),o)return!0;for(m=e.tokens.length,f?(W=e.push("ordered_list_open","ol",1),b!==1&&(W.attrs=[["start",b]])):W=e.push("bullet_list_open","ul",1),W.map=p=[t,0],W.markup=String.fromCharCode(v),C=t,N=!1,Z=e.md.block.ruler.getRules("list"),A=e.parentType,e.parentType="list";C<n;){for(I=P,x=e.eMarks[C],c=S=e.sCount[C]+P-(e.bMarks[t]+e.tShift[t]);I<x;){if(s=e.src.charCodeAt(I),s===9)S+=4-(S+e.bsCount[C])%4;else if(s===32)S++;else break;I++}if(i=I,i>=x?u=1:u=S-c,u>4&&(u=1),l=c+u,W=e.push("list_item_open","li",1),W.markup=String.fromCharCode(v),W.map=h=[t,0],f&&(W.info=e.src.slice(B,P-1)),D=e.tight,k=e.tShift[t],O=e.sCount[t],M=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[t]=i-e.bMarks[t],e.sCount[t]=S,i>=x&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),(!e.tight||N)&&(ne=!1),N=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=M,e.tShift[t]=k,e.sCount[t]=O,e.tight=D,W=e.push("list_item_close","li",-1),W.markup=String.fromCharCode(v),C=t=e.line,h[1]=C,i=e.bMarks[t],C>=n||e.sCount[C]<e.blkIndent||e.sCount[t]-e.blkIndent>=4)break;for(H=!1,a=0,d=Z.length;a<d;a++)if(Z[a](e,C,n,!0)){H=!0;break}if(H)break;if(f){if(P=Nl(e,C),P<0)break;B=e.bMarks[C]+e.tShift[C]}else if(P=_l(e,C),P<0)break;if(v!==e.src.charCodeAt(P-1))break}return f?W=e.push("ordered_list_close","ol",-1):W=e.push("bullet_list_close","ul",-1),W.markup=String.fromCharCode(v),p[1]=C,e.line=C,e.parentType=A,ne&&Eh(e,m),!0}});var jl=re((Zv,zl)=>{"use strict";var Sh=_e().normalizeReference,Tn=_e().isSpace;zl.exports=function(e,t,n,o){var s,i,a,l,u,c,f,h,d,p,m,v,b,x,C,S,M=0,A=e.bMarks[t]+e.tShift[t],O=e.eMarks[t],k=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(A)!==91)return!1;for(;++A<O;)if(e.src.charCodeAt(A)===93&&e.src.charCodeAt(A-1)!==92){if(A+1===O||e.src.charCodeAt(A+1)!==58)return!1;break}for(l=e.lineMax,C=e.md.block.ruler.getRules("reference"),p=e.parentType,e.parentType="reference";k<l&&!e.isEmpty(k);k++)if(!(e.sCount[k]-e.blkIndent>3)&&!(e.sCount[k]<0)){for(x=!1,c=0,f=C.length;c<f;c++)if(C[c](e,k,l,!0)){x=!0;break}if(x)break}for(b=e.getLines(t,k,e.blkIndent,!1).trim(),O=b.length,A=1;A<O;A++){if(s=b.charCodeAt(A),s===91)return!1;if(s===93){d=A;break}else s===10?M++:s===92&&(A++,A<O&&b.charCodeAt(A)===10&&M++)}if(d<0||b.charCodeAt(d+1)!==58)return!1;for(A=d+2;A<O;A++)if(s=b.charCodeAt(A),s===10)M++;else if(!Tn(s))break;if(m=e.md.helpers.parseLinkDestination(b,A,O),!m.ok||(u=e.md.normalizeLink(m.str),!e.md.validateLink(u)))return!1;for(A=m.pos,M+=m.lines,i=A,a=M,v=A;A<O;A++)if(s=b.charCodeAt(A),s===10)M++;else if(!Tn(s))break;for(m=e.md.helpers.parseLinkTitle(b,A,O),A<O&&v!==A&&m.ok?(S=m.str,A=m.pos,M+=m.lines):(S="",A=i,M=a);A<O&&(s=b.charCodeAt(A),!!Tn(s));)A++;if(A<O&&b.charCodeAt(A)!==10&&S)for(S="",A=i,M=a;A<O&&(s=b.charCodeAt(A),!!Tn(s));)A++;return A<O&&b.charCodeAt(A)!==10||(h=Sh(b.slice(1,d)),!h)?!1:(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[h]>"u"&&(e.env.references[h]={title:S,href:u}),e.parentType=p,e.line=t+M+1),!0)}});var ql=re((Qv,Hl)=>{"use strict";Hl.exports=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Gi=re((Jv,Vi)=>{"use strict";var Ch="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ah="[^\"'=<>`\\x00-\\x20]+",kh="'[^']*'",Th='"[^"]*"',Ih="(?:"+Ah+"|"+kh+"|"+Th+")",Dh="(?:\\s+"+Ch+"(?:\\s*=\\s*"+Ih+")?)",Vl="<[A-Za-z][A-Za-z0-9\\-]*"+Dh+"*\\s*\\/?>",Gl="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Lh="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Fh="<[?][\\s\\S]*?[?]>",Rh="<![A-Z]+\\s+[^>]*>",Oh="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Ph=new RegExp("^(?:"+Vl+"|"+Gl+"|"+Lh+"|"+Fh+"|"+Rh+"|"+Oh+")"),Mh=new RegExp("^(?:"+Vl+"|"+Gl+")");Vi.exports.HTML_TAG_RE=Ph;Vi.exports.HTML_OPEN_CLOSE_TAG_RE=Mh});var Yl=re((ey,Wl)=>{"use strict";var _h=ql(),Nh=Gi().HTML_OPEN_CLOSE_TAG_RE,br=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+_h.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Nh.source+"\\s*$"),/^$/,!1]];Wl.exports=function(e,t,n,o){var s,i,a,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(l=e.src.slice(u,c),s=0;s<br.length&&!br[s][0].test(l);s++);if(s===br.length)return!1;if(o)return br[s][2];if(i=t+1,!br[s][1].test(l)){for(;i<n&&!(e.sCount[i]<e.blkIndent);i++)if(u=e.bMarks[i]+e.tShift[i],c=e.eMarks[i],l=e.src.slice(u,c),br[s][1].test(l)){l.length!==0&&i++;break}}return e.line=i,a=e.push("html_block","",0),a.map=[t,i],a.content=e.getLines(t,i,e.blkIndent,!0),!0}});var Zl=re((ty,Xl)=>{"use strict";var Kl=_e().isSpace;Xl.exports=function(e,t,n,o){var s,i,a,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(s=e.src.charCodeAt(u),s!==35||u>=c))return!1;for(i=1,s=e.src.charCodeAt(++u);s===35&&u<c&&i<=6;)i++,s=e.src.charCodeAt(++u);return i>6||u<c&&!Kl(s)?!1:(o||(c=e.skipSpacesBack(c,u),a=e.skipCharsBack(c,35,u),a>u&&Kl(e.src.charCodeAt(a-1))&&(c=a),e.line=t+1,l=e.push("heading_open","h"+String(i),1),l.markup="########".slice(0,i),l.map=[t,e.line],l=e.push("inline","",0),l.content=e.src.slice(u,c).trim(),l.map=[t,e.line],l.children=[],l=e.push("heading_close","h"+String(i),-1),l.markup="########".slice(0,i)),!0)}});var Jl=re((ry,Ql)=>{"use strict";Ql.exports=function(e,t,n){var o,s,i,a,l,u,c,f,h,d=t+1,p,m=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(u=e.bMarks[d]+e.tShift[d],c=e.eMarks[d],u<c&&(h=e.src.charCodeAt(u),(h===45||h===61)&&(u=e.skipChars(u,h),u=e.skipSpaces(u),u>=c)))){f=h===61?1:2;break}if(!(e.sCount[d]<0)){for(s=!1,i=0,a=m.length;i<a;i++)if(m[i](e,d,n,!0)){s=!0;break}if(s)break}}return f?(o=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,l=e.push("heading_open","h"+String(f),1),l.markup=String.fromCharCode(h),l.map=[t,e.line],l=e.push("inline","",0),l.content=o,l.map=[t,e.line-1],l.children=[],l=e.push("heading_close","h"+String(f),-1),l.markup=String.fromCharCode(h),e.parentType=p,!0):!1}});var tu=re((ny,eu)=>{"use strict";eu.exports=function(e,t){var n,o,s,i,a,l,u=t+1,c=e.md.block.ruler.getRules("paragraph"),f=e.lineMax;for(l=e.parentType,e.parentType="paragraph";u<f&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)&&!(e.sCount[u]<0)){for(o=!1,s=0,i=c.length;s<i;s++)if(c[s](e,u,f,!0)){o=!0;break}if(o)break}return n=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,a=e.push("paragraph_open","p",1),a.map=[t,e.line],a=e.push("inline","",0),a.content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=l,!0}});var iu=re((iy,nu)=>{"use strict";var ru=kn(),In=_e().isSpace;function Pt(r,e,t,n){var o,s,i,a,l,u,c,f;for(this.src=r,this.md=e,this.env=t,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,f=!1,i=a=u=c=0,l=s.length;a<l;a++){if(o=s.charCodeAt(a),!f)if(In(o)){u++,o===9?c+=4-c%4:c++;continue}else f=!0;(o===10||a===l-1)&&(o!==10&&a++,this.bMarks.push(i),this.eMarks.push(a),this.tShift.push(u),this.sCount.push(c),this.bsCount.push(0),f=!1,u=0,c=0,i=a+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Pt.prototype.push=function(r,e,t){var n=new ru(r,e,t);return n.block=!0,t<0&&this.level--,n.level=this.level,t>0&&this.level++,this.tokens.push(n),n};Pt.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};Pt.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};Pt.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),!!In(t));e++);return e};Pt.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!In(this.src.charCodeAt(--e)))return e+1;return e};Pt.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e};Pt.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e};Pt.prototype.getLines=function(e,t,n,o){var s,i,a,l,u,c,f,h=e;if(e>=t)return"";for(c=new Array(t-e),s=0;h<t;h++,s++){for(i=0,f=l=this.bMarks[h],h+1<t||o?u=this.eMarks[h]+1:u=this.eMarks[h];l<u&&i<n;){if(a=this.src.charCodeAt(l),In(a))a===9?i+=4-(i+this.bsCount[h])%4:i++;else if(l-f<this.tShift[h])i++;else break;l++}i>n?c[s]=new Array(i-n+1).join(" ")+this.src.slice(l,u):c[s]=this.src.slice(l,u)}return c.join("")};Pt.prototype.Token=ru;nu.exports=Pt});var su=re((oy,ou)=>{"use strict";var Bh=Cn(),Dn=[["table",kl(),["paragraph","reference"]],["code",Il()],["fence",Ll(),["paragraph","reference","blockquote","list"]],["blockquote",Ol(),["paragraph","reference","blockquote","list"]],["hr",Ml(),["paragraph","reference","blockquote","list"]],["list",Ul(),["paragraph","reference","blockquote"]],["reference",jl()],["html_block",Yl(),["paragraph","reference","blockquote"]],["heading",Zl(),["paragraph","reference","blockquote"]],["lheading",Jl()],["paragraph",tu()]];function Ln(){this.ruler=new Bh;for(var r=0;r<Dn.length;r++)this.ruler.push(Dn[r][0],Dn[r][1],{alt:(Dn[r][2]||[]).slice()})}Ln.prototype.tokenize=function(r,e,t){for(var n,o,s=this.ruler.getRules(""),i=s.length,a=e,l=!1,u=r.md.options.maxNesting;a<t&&(r.line=a=r.skipEmptyLines(a),!(a>=t||r.sCount[a]<r.blkIndent));){if(r.level>=u){r.line=t;break}for(o=0;o<i&&(n=s[o](r,a,t,!1),!n);o++);r.tight=!l,r.isEmpty(r.line-1)&&(l=!0),a=r.line,a<t&&r.isEmpty(a)&&(l=!0,a++,r.line=a)}};Ln.prototype.parse=function(r,e,t,n){var o;!r||(o=new this.State(r,e,t,n),this.tokenize(o,o.line,o.lineMax))};Ln.prototype.State=iu();ou.exports=Ln});var lu=re((sy,au)=>{"use strict";function $h(r){switch(r){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}au.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!$h(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}});var cu=re((ay,uu)=>{"use strict";var Uh=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;uu.exports=function(e,t){var n,o,s,i,a,l,u,c;return!e.md.options.linkify||e.linkLevel>0||(n=e.pos,o=e.posMax,n+3>o)||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47||(s=e.pending.match(Uh),!s)||(i=s[1],a=e.md.linkify.matchAtStart(e.src.slice(n-i.length)),!a)||(l=a.url,l=l.replace(/\*+$/,""),u=e.md.normalizeLink(l),!e.md.validateLink(u))?!1:(t||(e.pending=e.pending.slice(0,-i.length),c=e.push("link_open","a",1),c.attrs=[["href",u]],c.markup="linkify",c.info="auto",c=e.push("text","",0),c.content=e.md.normalizeLinkText(l),c=e.push("link_close","a",-1),c.markup="linkify",c.info="auto"),e.pos+=l.length-i.length,!0)}});var fu=re((ly,du)=>{"use strict";var zh=_e().isSpace;du.exports=function(e,t){var n,o,s,i=e.pos;if(e.src.charCodeAt(i)!==10)return!1;if(n=e.pending.length-1,o=e.posMax,!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){for(s=n-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(i++;i<o&&zh(e.src.charCodeAt(i));)i++;return e.pos=i,!0}});var pu=re((uy,hu)=>{"use strict";var jh=_e().isSpace,Yi=[];for(Wi=0;Wi<256;Wi++)Yi.push(0);var Wi;"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){Yi[r.charCodeAt(0)]=1});hu.exports=function(e,t){var n,o,s,i,a,l=e.pos,u=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=u))return!1;if(n=e.src.charCodeAt(l),n===10){for(t||e.push("hardbreak","br",0),l++;l<u&&(n=e.src.charCodeAt(l),!!jh(n));)l++;return e.pos=l,!0}return i=e.src[l],n>=55296&&n<=56319&&l+1<u&&(o=e.src.charCodeAt(l+1),o>=56320&&o<=57343&&(i+=e.src[l+1],l++)),s="\\"+i,t||(a=e.push("text_special","",0),n<256&&Yi[n]!==0?a.content=i:a.content=s,a.markup=s,a.info="escape"),e.pos=l+1,!0}});var gu=re((cy,mu)=>{"use strict";mu.exports=function(e,t){var n,o,s,i,a,l,u,c,f=e.pos,h=e.src.charCodeAt(f);if(h!==96)return!1;for(n=f,f++,o=e.posMax;f<o&&e.src.charCodeAt(f)===96;)f++;if(s=e.src.slice(n,f),u=s.length,e.backticksScanned&&(e.backticks[u]||0)<=n)return t||(e.pending+=s),e.pos+=u,!0;for(a=l=f;(a=e.src.indexOf("`",l))!==-1;){for(l=a+1;l<o&&e.src.charCodeAt(l)===96;)l++;if(c=l-a,c===u)return t||(i=e.push("code_inline","code",0),i.markup=s,i.content=e.src.slice(f,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=l,!0;e.backticks[c]=a}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=u,!0}});var Xi=re((dy,Ki)=>{"use strict";Ki.exports.tokenize=function(e,t){var n,o,s,i,a,l=e.pos,u=e.src.charCodeAt(l);if(t||u!==126||(o=e.scanDelims(e.pos,!0),i=o.length,a=String.fromCharCode(u),i<2))return!1;for(i%2&&(s=e.push("text","",0),s.content=a,i--),n=0;n<i;n+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function vu(r,e){var t,n,o,s,i,a=[],l=e.length;for(t=0;t<l;t++)o=e[t],o.marker===126&&o.end!==-1&&(s=e[o.end],i=r.tokens[o.token],i.type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",i=r.tokens[s.token],i.type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="",r.tokens[s.token-1].type==="text"&&r.tokens[s.token-1].content==="~"&&a.push(s.token-1));for(;a.length;){for(t=a.pop(),n=t+1;n<r.tokens.length&&r.tokens[n].type==="s_close";)n++;n--,t!==n&&(i=r.tokens[n],r.tokens[n]=r.tokens[t],r.tokens[t]=i)}}Ki.exports.postProcess=function(e){var t,n=e.tokens_meta,o=e.tokens_meta.length;for(vu(e,e.delimiters),t=0;t<o;t++)n[t]&&n[t].delimiters&&vu(e,n[t].delimiters)}});var Qi=re((fy,Zi)=>{"use strict";Zi.exports.tokenize=function(e,t){var n,o,s,i=e.pos,a=e.src.charCodeAt(i);if(t||a!==95&&a!==42)return!1;for(o=e.scanDelims(e.pos,a===42),n=0;n<o.length;n++)s=e.push("text","",0),s.content=String.fromCharCode(a),e.delimiters.push({marker:a,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function yu(r,e){var t,n,o,s,i,a,l=e.length;for(t=l-1;t>=0;t--)n=e[t],!(n.marker!==95&&n.marker!==42)&&n.end!==-1&&(o=e[n.end],a=t>0&&e[t-1].end===n.end+1&&e[t-1].marker===n.marker&&e[t-1].token===n.token-1&&e[n.end+1].token===o.token+1,i=String.fromCharCode(n.marker),s=r.tokens[n.token],s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?i+i:i,s.content="",s=r.tokens[o.token],s.type=a?"strong_close":"em_close",s.tag=a?"strong":"em",s.nesting=-1,s.markup=a?i+i:i,s.content="",a&&(r.tokens[e[t-1].token].content="",r.tokens[e[n.end+1].token].content="",t--))}Zi.exports.postProcess=function(e){var t,n=e.tokens_meta,o=e.tokens_meta.length;for(yu(e,e.delimiters),t=0;t<o;t++)n[t]&&n[t].delimiters&&yu(e,n[t].delimiters)}});var xu=re((hy,bu)=>{"use strict";var Hh=_e().normalizeReference,Ji=_e().isSpace;bu.exports=function(e,t){var n,o,s,i,a,l,u,c,f,h="",d="",p=e.pos,m=e.posMax,v=e.pos,b=!0;if(e.src.charCodeAt(e.pos)!==91||(a=e.pos+1,i=e.md.helpers.parseLinkLabel(e,e.pos,!0),i<0))return!1;if(l=i+1,l<m&&e.src.charCodeAt(l)===40){for(b=!1,l++;l<m&&(o=e.src.charCodeAt(l),!(!Ji(o)&&o!==10));l++);if(l>=m)return!1;if(v=l,u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),u.ok){for(h=e.md.normalizeLink(u.str),e.md.validateLink(h)?l=u.pos:h="",v=l;l<m&&(o=e.src.charCodeAt(l),!(!Ji(o)&&o!==10));l++);if(u=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<m&&v!==l&&u.ok)for(d=u.str,l=u.pos;l<m&&(o=e.src.charCodeAt(l),!(!Ji(o)&&o!==10));l++);}(l>=m||e.src.charCodeAt(l)!==41)&&(b=!0),l++}if(b){if(typeof e.env.references>"u")return!1;if(l<m&&e.src.charCodeAt(l)===91?(v=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?s=e.src.slice(v,l++):l=i+1):l=i+1,s||(s=e.src.slice(a,i)),c=e.env.references[Hh(s)],!c)return e.pos=p,!1;h=c.href,d=c.title}return t||(e.pos=a,e.posMax=i,f=e.push("link_open","a",1),f.attrs=n=[["href",h]],d&&n.push(["title",d]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,f=e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0}});var Eu=re((py,wu)=>{"use strict";var qh=_e().normalizeReference,eo=_e().isSpace;wu.exports=function(e,t){var n,o,s,i,a,l,u,c,f,h,d,p,m,v="",b=e.pos,x=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(u=a+1,u<x&&e.src.charCodeAt(u)===40){for(u++;u<x&&(o=e.src.charCodeAt(u),!(!eo(o)&&o!==10));u++);if(u>=x)return!1;for(m=u,f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),f.ok&&(v=e.md.normalizeLink(f.str),e.md.validateLink(v)?u=f.pos:v=""),m=u;u<x&&(o=e.src.charCodeAt(u),!(!eo(o)&&o!==10));u++);if(f=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<x&&m!==u&&f.ok)for(h=f.str,u=f.pos;u<x&&(o=e.src.charCodeAt(u),!(!eo(o)&&o!==10));u++);else h="";if(u>=x||e.src.charCodeAt(u)!==41)return e.pos=b,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<x&&e.src.charCodeAt(u)===91?(m=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?i=e.src.slice(m,u++):u=a+1):u=a+1,i||(i=e.src.slice(l,a)),c=e.env.references[qh(i)],!c)return e.pos=b,!1;v=c.href,h=c.title}return t||(s=e.src.slice(l,a),e.md.inline.parse(s,e.md,e.env,p=[]),d=e.push("image","img",0),d.attrs=n=[["src",v],["alt",""]],d.children=p,d.content=s,h&&n.push(["title",h])),e.pos=u,e.posMax=x,!0}});var Cu=re((my,Su)=>{"use strict";var Vh=/^([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])?)*)$/,Gh=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;Su.exports=function(e,t){var n,o,s,i,a,l,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++u>=l||(i=e.src.charCodeAt(u),i===60))return!1;if(i===62)break}return n=e.src.slice(a+1,u),Gh.test(n)?(o=e.md.normalizeLink(n),e.md.validateLink(o)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(n),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=n.length+2,!0):!1):Vh.test(n)?(o=e.md.normalizeLink("mailto:"+n),e.md.validateLink(o)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(n),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=n.length+2,!0):!1):!1}});var ku=re((gy,Au)=>{"use strict";var Wh=Gi().HTML_TAG_RE;function Yh(r){return/^<a[>\s]/i.test(r)}function Kh(r){return/^<\/a\s*>/i.test(r)}function Xh(r){var e=r|32;return e>=97&&e<=122}Au.exports=function(e,t){var n,o,s,i,a=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(a)!==60||a+2>=s)||(n=e.src.charCodeAt(a+1),n!==33&&n!==63&&n!==47&&!Xh(n))||(o=e.src.slice(a).match(Wh),!o)?!1:(t||(i=e.push("html_inline","",0),i.content=e.src.slice(a,a+o[0].length),Yh(i.content)&&e.linkLevel++,Kh(i.content)&&e.linkLevel--),e.pos+=o[0].length,!0)}});var Lu=re((vy,Du)=>{"use strict";var Tu=_i(),Zh=_e().has,Qh=_e().isValidEntityCode,Iu=_e().fromCodePoint,Jh=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ep=/^&([a-z][a-z0-9]{1,31});/i;Du.exports=function(e,t){var n,o,s,i,a=e.pos,l=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=l)return!1;if(n=e.src.charCodeAt(a+1),n===35){if(s=e.src.slice(a).match(Jh),s)return t||(o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),i=e.push("text_special","",0),i.content=Qh(o)?Iu(o):Iu(65533),i.markup=s[0],i.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(a).match(ep),s&&Zh(Tu,s[1]))return t||(i=e.push("text_special","",0),i.content=Tu[s[1]],i.markup=s[0],i.info="entity"),e.pos+=s[0].length,!0;return!1}});var Ou=re((yy,Ru)=>{"use strict";function Fu(r,e){var t,n,o,s,i,a,l,u,c={},f=e.length;if(!!f){var h=0,d=-2,p=[];for(t=0;t<f;t++)if(o=e[t],p.push(0),(e[h].marker!==o.marker||d!==o.token-1)&&(h=t),d=o.token,o.length=o.length||0,!!o.close){for(c.hasOwnProperty(o.marker)||(c[o.marker]=[-1,-1,-1,-1,-1,-1]),i=c[o.marker][(o.open?3:0)+o.length%3],n=h-p[h]-1,a=n;n>i;n-=p[n]+1)if(s=e[n],s.marker===o.marker&&s.open&&s.end<0&&(l=!1,(s.close||o.open)&&(s.length+o.length)%3===0&&(s.length%3!==0||o.length%3!==0)&&(l=!0),!l)){u=n>0&&!e[n-1].open?p[n-1]+1:0,p[t]=t-n+u,p[n]=u,o.open=!1,s.end=t,s.close=!1,a=-1,d=-2;break}a!==-1&&(c[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}Ru.exports=function(e){var t,n=e.tokens_meta,o=e.tokens_meta.length;for(Fu(e,e.delimiters),t=0;t<o;t++)n[t]&&n[t].delimiters&&Fu(e,n[t].delimiters)}});var Mu=re((by,Pu)=>{"use strict";Pu.exports=function(e){var t,n,o=0,s=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)s[t].nesting<0&&o--,s[t].level=o,s[t].nesting>0&&o++,s[t].type==="text"&&t+1<i&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}});var Uu=re((xy,$u)=>{"use strict";var to=kn(),_u=_e().isWhiteSpace,Nu=_e().isPunctChar,Bu=_e().isMdAsciiPunct;function Ur(r,e,t,n){this.src=r,this.env=t,this.md=e,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Ur.prototype.pushPending=function(){var r=new to("text","",0);return r.content=this.pending,r.level=this.pendingLevel,this.tokens.push(r),this.pending="",r};Ur.prototype.push=function(r,e,t){this.pending&&this.pushPending();var n=new to(r,e,t),o=null;return t<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,t>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(o),n};Ur.prototype.scanDelims=function(r,e){var t=r,n,o,s,i,a,l,u,c,f,h=!0,d=!0,p=this.posMax,m=this.src.charCodeAt(r);for(n=r>0?this.src.charCodeAt(r-1):32;t<p&&this.src.charCodeAt(t)===m;)t++;return s=t-r,o=t<p?this.src.charCodeAt(t):32,u=Bu(n)||Nu(String.fromCharCode(n)),f=Bu(o)||Nu(String.fromCharCode(o)),l=_u(n),c=_u(o),c?h=!1:f&&(l||u||(h=!1)),l?d=!1:u&&(c||f||(d=!1)),e?(i=h,a=d):(i=h&&(!d||u),a=d&&(!h||f)),{can_open:i,can_close:a,length:s}};Ur.prototype.Token=to;$u.exports=Ur});var Hu=re((wy,ju)=>{"use strict";var zu=Cn(),ro=[["text",lu()],["linkify",cu()],["newline",fu()],["escape",pu()],["backticks",gu()],["strikethrough",Xi().tokenize],["emphasis",Qi().tokenize],["link",xu()],["image",Eu()],["autolink",Cu()],["html_inline",ku()],["entity",Lu()]],no=[["balance_pairs",Ou()],["strikethrough",Xi().postProcess],["emphasis",Qi().postProcess],["fragments_join",Mu()]];function zr(){var r;for(this.ruler=new zu,r=0;r<ro.length;r++)this.ruler.push(ro[r][0],ro[r][1]);for(this.ruler2=new zu,r=0;r<no.length;r++)this.ruler2.push(no[r][0],no[r][1])}zr.prototype.skipToken=function(r){var e,t,n=r.pos,o=this.ruler.getRules(""),s=o.length,i=r.md.options.maxNesting,a=r.cache;if(typeof a[n]<"u"){r.pos=a[n];return}if(r.level<i)for(t=0;t<s&&(r.level++,e=o[t](r,!0),r.level--,!e);t++);else r.pos=r.posMax;e||r.pos++,a[n]=r.pos};zr.prototype.tokenize=function(r){for(var e,t,n=this.ruler.getRules(""),o=n.length,s=r.posMax,i=r.md.options.maxNesting;r.pos<s;){if(r.level<i)for(t=0;t<o&&(e=n[t](r,!1),!e);t++);if(e){if(r.pos>=s)break;continue}r.pending+=r.src[r.pos++]}r.pending&&r.pushPending()};zr.prototype.parse=function(r,e,t,n){var o,s,i,a=new this.State(r,e,t,n);for(this.tokenize(a),s=this.ruler2.getRules(""),i=s.length,o=0;o<i;o++)s[o](a)};zr.prototype.State=Uu();ju.exports=zr});var Vu=re((Ey,qu)=>{"use strict";qu.exports=function(r){var e={};r=r||{},e.src_Any=Bi().source,e.src_Cc=$i().source,e.src_Z=Ui().source,e.src_P=bn().source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var t="[><\uFF5C]";return e.src_pseudo_letter="(?:(?!"+t+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+t+"|"+e.src_ZPCc+")(?!"+(r["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+t+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(r["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}});var Xu=re((Sy,Ku)=>{"use strict";function io(r){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(t){!t||Object.keys(t).forEach(function(n){r[n]=t[n]})}),r}function Rn(r){return Object.prototype.toString.call(r)}function tp(r){return Rn(r)==="[object String]"}function rp(r){return Rn(r)==="[object Object]"}function np(r){return Rn(r)==="[object RegExp]"}function Gu(r){return Rn(r)==="[object Function]"}function ip(r){return r.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Yu={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function op(r){return Object.keys(r||{}).reduce(function(e,t){return e||Yu.hasOwnProperty(t)},!1)}var sp={"http:":{validate:function(r,e,t){var n=r.slice(e);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(n)?n.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(r,e,t){var n=r.slice(e);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(n)?e>=3&&r[e-3]===":"||e>=3&&r[e-3]==="/"?0:n.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(r,e,t){var n=r.slice(e);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(n)?n.match(t.re.mailto)[0].length:0}}},ap="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",lp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function up(r){r.__index__=-1,r.__text_cache__=""}function cp(r){return function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}}function Wu(){return function(r,e){e.normalize(r)}}function Fn(r){var e=r.re=Vu()(r.__opts__),t=r.__tlds__.slice();r.onCompile(),r.__tlds_replaced__||t.push(ap),t.push(e.src_xn),e.src_tlds=t.join("|");function n(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(n(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(n(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(n(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(n(e.tpl_host_fuzzy_test),"i");var o=[];r.__compiled__={};function s(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(r.__schemas__).forEach(function(a){var l=r.__schemas__[a];if(l!==null){var u={validate:null,link:null};if(r.__compiled__[a]=u,rp(l)){np(l.validate)?u.validate=cp(l.validate):Gu(l.validate)?u.validate=l.validate:s(a,l),Gu(l.normalize)?u.normalize=l.normalize:l.normalize?s(a,l):u.normalize=Wu();return}if(tp(l)){o.push(a);return}s(a,l)}}),o.forEach(function(a){!r.__compiled__[r.__schemas__[a]]||(r.__compiled__[a].validate=r.__compiled__[r.__schemas__[a]].validate,r.__compiled__[a].normalize=r.__compiled__[r.__schemas__[a]].normalize)}),r.__compiled__[""]={validate:null,normalize:Wu()};var i=Object.keys(r.__compiled__).filter(function(a){return a.length>0&&r.__compiled__[a]}).map(ip).join("|");r.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","i"),r.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","ig"),r.re.schema_at_start=RegExp("^"+r.re.schema_search.source,"i"),r.re.pretest=RegExp("("+r.re.schema_test.source+")|("+r.re.host_fuzzy_test.source+")|@","i"),up(r)}function dp(r,e){var t=r.__index__,n=r.__last_index__,o=r.__text_cache__.slice(t,n);this.schema=r.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=n+e,this.raw=o,this.text=o,this.url=o}function oo(r,e){var t=new dp(r,e);return r.__compiled__[t.schema].normalize(t,r),t}function yt(r,e){if(!(this instanceof yt))return new yt(r,e);e||op(r)&&(e=r,r={}),this.__opts__=io({},Yu,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=io({},sp,r),this.__compiled__={},this.__tlds__=lp,this.__tlds_replaced__=!1,this.re={},Fn(this)}yt.prototype.add=function(e,t){return this.__schemas__[e]=t,Fn(this),this};yt.prototype.set=function(e){return this.__opts__=io(this.__opts__,e),this};yt.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,o,s,i,a,l,u,c;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(t=l.exec(e))!==null;)if(s=this.testSchemaAt(e,t[2],l.lastIndex),s){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=n.index+n[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&(o=e.match(this.re.email_fuzzy))!==null&&(i=o.index+o[1].length,a=o.index+o[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=a))),this.__index__>=0};yt.prototype.pretest=function(e){return this.re.pretest.test(e)};yt.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0};yt.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(oo(this,t)),t=this.__last_index__);for(var o=t?e.slice(t):e;this.test(o);)n.push(oo(this,t)),o=o.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null};yt.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,oo(this,0)):null};yt.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,o,s){return n!==s[o-1]}).reverse(),Fn(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Fn(this),this)};yt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};yt.prototype.onCompile=function(){};Ku.exports=yt});var ic={};_d(ic,{decode:()=>uo,default:()=>bp,encode:()=>co,toASCII:()=>nc,toUnicode:()=>rc,ucs2decode:()=>lo,ucs2encode:()=>ec});function rr(r){throw new RangeError(mp[r])}function gp(r,e){let t=[],n=r.length;for(;n--;)t[n]=e(r[n]);return t}function Ju(r,e){let t=r.split("@"),n="";t.length>1&&(n=t[0]+"@",r=t[1]),r=r.replace(pp,".");let o=r.split("."),s=gp(o,e).join(".");return n+s}function lo(r){let e=[],t=0,n=r.length;for(;t<n;){let o=r.charCodeAt(t++);if(o>=55296&&o<=56319&&t<n){let s=r.charCodeAt(t++);(s&64512)==56320?e.push(((o&1023)<<10)+(s&1023)+65536):(e.push(o),t--)}else e.push(o)}return e}var Qu,fp,hp,pp,mp,so,Mt,ao,ec,vp,Zu,tc,uo,co,rc,nc,yp,bp,oc=Md(()=>{"use strict";Qu="-",fp=/^xn--/,hp=/[^\0-\x7E]/,pp=/[\x2E\u3002\uFF0E\uFF61]/g,mp={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},so=36-1,Mt=Math.floor,ao=String.fromCharCode;ec=r=>String.fromCodePoint(...r),vp=function(r){return r-48<10?r-22:r-65<26?r-65:r-97<26?r-97:36},Zu=function(r,e){return r+22+75*(r<26)-((e!=0)<<5)},tc=function(r,e,t){let n=0;for(r=t?Mt(r/700):r>>1,r+=Mt(r/e);r>so*26>>1;n+=36)r=Mt(r/so);return Mt(n+(so+1)*r/(r+38))},uo=function(r){let e=[],t=r.length,n=0,o=128,s=72,i=r.lastIndexOf(Qu);i<0&&(i=0);for(let a=0;a<i;++a)r.charCodeAt(a)>=128&&rr("not-basic"),e.push(r.charCodeAt(a));for(let a=i>0?i+1:0;a<t;){let l=n;for(let c=1,f=36;;f+=36){a>=t&&rr("invalid-input");let h=vp(r.charCodeAt(a++));(h>=36||h>Mt((2147483647-n)/c))&&rr("overflow"),n+=h*c;let d=f<=s?1:f>=s+26?26:f-s;if(h<d)break;let p=36-d;c>Mt(2147483647/p)&&rr("overflow"),c*=p}let u=e.length+1;s=tc(n-l,u,l==0),Mt(n/u)>2147483647-o&&rr("overflow"),o+=Mt(n/u),n%=u,e.splice(n++,0,o)}return String.fromCodePoint(...e)},co=function(r){let e=[];r=lo(r);let t=r.length,n=128,o=0,s=72;for(let l of r)l<128&&e.push(ao(l));let i=e.length,a=i;for(i&&e.push(Qu);a<t;){let l=2147483647;for(let c of r)c>=n&&c<l&&(l=c);let u=a+1;l-n>Mt((2147483647-o)/u)&&rr("overflow"),o+=(l-n)*u,n=l;for(let c of r)if(c<n&&++o>2147483647&&rr("overflow"),c==n){let f=o;for(let h=36;;h+=36){let d=h<=s?1:h>=s+26?26:h-s;if(f<d)break;let p=f-d,m=36-d;e.push(ao(Zu(d+p%m,0))),f=Mt(p/m)}e.push(ao(Zu(f,0))),s=tc(o,u,a==i),o=0,++a}++o,++n}return e.join("")},rc=function(r){return Ju(r,function(e){return fp.test(e)?uo(e.slice(4).toLowerCase()):e})},nc=function(r){return Ju(r,function(e){return hp.test(e)?"xn--"+co(e):e})},yp={version:"2.1.0",ucs2:{decode:lo,encode:ec},decode:uo,encode:co,toASCII:nc,toUnicode:rc},bp=yp});var ac=re((Cy,sc)=>{"use strict";sc.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}});var uc=re((Ay,lc)=>{"use strict";lc.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}});var dc=re((ky,cc)=>{"use strict";cc.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}});var mc=re((Ty,pc)=>{"use strict";var jr=_e(),xp=Ya(),wp=Xa(),Ep=Sl(),Sp=su(),Cp=Hu(),Ap=Xu(),nr=Ni(),fc=(oc(),Nd(ic)),kp={default:ac(),zero:uc(),commonmark:dc()},Tp=/^(vbscript|javascript|file|data):/,Ip=/^data:image\/(gif|png|jpeg|webp);/;function Dp(r){var e=r.trim().toLowerCase();return Tp.test(e)?!!Ip.test(e):!0}var hc=["http:","https:","mailto:"];function Lp(r){var e=nr.parse(r,!0);if(e.hostname&&(!e.protocol||hc.indexOf(e.protocol)>=0))try{e.hostname=fc.toASCII(e.hostname)}catch{}return nr.encode(nr.format(e))}function Fp(r){var e=nr.parse(r,!0);if(e.hostname&&(!e.protocol||hc.indexOf(e.protocol)>=0))try{e.hostname=fc.toUnicode(e.hostname)}catch{}return nr.decode(nr.format(e),nr.decode.defaultChars+"%")}function St(r,e){if(!(this instanceof St))return new St(r,e);e||jr.isString(r)||(e=r||{},r="default"),this.inline=new Cp,this.block=new Sp,this.core=new Ep,this.renderer=new wp,this.linkify=new Ap,this.validateLink=Dp,this.normalizeLink=Lp,this.normalizeLinkText=Fp,this.utils=jr,this.helpers=jr.assign({},xp),this.options={},this.configure(r),e&&this.set(e)}St.prototype.set=function(r){return jr.assign(this.options,r),this};St.prototype.configure=function(r){var e=this,t;if(jr.isString(r)&&(t=r,r=kp[t],!r))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!r)throw new Error("Wrong `markdown-it` preset, can't be empty");return r.options&&e.set(r.options),r.components&&Object.keys(r.components).forEach(function(n){r.components[n].rules&&e[n].ruler.enableOnly(r.components[n].rules),r.components[n].rules2&&e[n].ruler2.enableOnly(r.components[n].rules2)}),this};St.prototype.enable=function(r,e){var t=[];Array.isArray(r)||(r=[r]),["core","block","inline"].forEach(function(o){t=t.concat(this[o].ruler.enable(r,!0))},this),t=t.concat(this.inline.ruler2.enable(r,!0));var n=r.filter(function(o){return t.indexOf(o)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};St.prototype.disable=function(r,e){var t=[];Array.isArray(r)||(r=[r]),["core","block","inline"].forEach(function(o){t=t.concat(this[o].ruler.disable(r,!0))},this),t=t.concat(this.inline.ruler2.disable(r,!0));var n=r.filter(function(o){return t.indexOf(o)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};St.prototype.use=function(r){var e=[this].concat(Array.prototype.slice.call(arguments,1));return r.apply(r,e),this};St.prototype.parse=function(r,e){if(typeof r!="string")throw new Error("Input data should be a String");var t=new this.core.State(r,this,e);return this.core.process(t),t.tokens};St.prototype.render=function(r,e){return e=e||{},this.renderer.render(this.parse(r,e),this.options,e)};St.prototype.parseInline=function(r,e){var t=new this.core.State(r,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};St.prototype.renderInline=function(r,e){return e=e||{},this.renderer.render(this.parseInline(r,e),this.options,e)};pc.exports=St});var vc=re((Iy,gc)=>{"use strict";gc.exports=mc()});var Ec=re((Dy,wc)=>{var fo=!0,bc=!1,xc=!1;wc.exports=function(r,e){e&&(fo=!e.enabled,bc=!!e.label,xc=!!e.labelAfter),r.core.ruler.after("inline","github-task-lists",function(t){for(var n=t.tokens,o=2;o<n.length;o++)Op(n,o)&&(Pp(n[o],t.Token),yc(n[o-2],"class","task-list-item"+(fo?"":" enabled")),yc(n[Rp(n,o-2)],"class","contains-task-list"))})};function yc(r,e,t){var n=r.attrIndex(e),o=[e,t];n<0?r.attrPush(o):r.attrs[n]=o}function Rp(r,e){for(var t=r[e].level-1,n=e-1;n>=0;n--)if(r[n].level===t)return n;return-1}function Op(r,e){return $p(r[e])&&Up(r[e-1])&&zp(r[e-2])&&jp(r[e])}function Pp(r,e){if(r.children.unshift(Mp(r,e)),r.children[1].content=r.children[1].content.slice(3),r.content=r.content.slice(3),bc)if(xc){r.children.pop();var t="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);r.children[0].content=r.children[0].content.slice(0,-1)+' id="'+t+'">',r.children.push(Bp(r.content,t,e))}else r.children.unshift(_p(e)),r.children.push(Np(e))}function Mp(r,e){var t=new e("html_inline","",0),n=fo?' disabled="" ':"";return r.content.indexOf("[ ] ")===0?t.content='<input class="task-list-item-checkbox"'+n+'type="checkbox">':(r.content.indexOf("[x] ")===0||r.content.indexOf("[X] ")===0)&&(t.content='<input class="task-list-item-checkbox" checked=""'+n+'type="checkbox">'),t}function _p(r){var e=new r("html_inline","",0);return e.content="<label>",e}function Np(r){var e=new r("html_inline","",0);return e.content="</label>",e}function Bp(r,e,t){var n=new t("html_inline","",0);return n.content='<label class="task-list-item-label" for="'+e+'">'+r+"</label>",n.attrs=[{for:e}],n}function $p(r){return r.type==="inline"}function Up(r){return r.type==="paragraph_open"}function zp(r){return r.type==="list_item_open"}function jp(r){return r.content.indexOf("[ ] ")===0||r.content.indexOf("[x] ")===0||r.content.indexOf("[X] ")===0}});var _c=re((Gr,Io)=>{(function(r,e){typeof Gr=="object"&&typeof Io=="object"?Io.exports=e():typeof define=="function"&&define.amd?define([],e):typeof Gr=="object"?Gr.ClipboardJS=e():r.ClipboardJS=e()})(Gr,function(){return e={686:function(n,l,s){"use strict";s.d(l,{default:function(){return A}});var l=s(279),i=s.n(l),l=s(370),a=s.n(l),l=s(817),u=s.n(l);function c(O){try{return document.execCommand(O)}catch{return}}var f=function(O){return O=u()(O),c("cut"),O};function h(P,k){var D,I,P=(D=P,I=document.documentElement.getAttribute("dir")==="rtl",(P=document.createElement("textarea")).style.fontSize="12pt",P.style.border="0",P.style.padding="0",P.style.margin="0",P.style.position="absolute",P.style[I?"right":"left"]="-9999px",I=window.pageYOffset||document.documentElement.scrollTop,P.style.top="".concat(I,"px"),P.setAttribute("readonly",""),P.value=D,P);return k.container.appendChild(P),k=u()(P),c("copy"),P.remove(),k}var d=function(O){var k=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body},D="";return typeof O=="string"?D=h(O,k):O instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(O?.type)?D=h(O.value,k):(D=u()(O),c("copy")),D};function p(O){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(O)}var m=function(){var I=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},D=I.action,O=D===void 0?"copy":D,k=I.container,D=I.target,I=I.text;if(O!=="copy"&&O!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(D!==void 0){if(!D||p(D)!=="object"||D.nodeType!==1)throw new Error('Invalid "target" value, use a valid Element');if(O==="copy"&&D.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(O==="cut"&&(D.hasAttribute("readonly")||D.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}return I?d(I,{container:k}):D?O==="cut"?f(D):d(D,{container:k}):void 0};function v(O){return(v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(O)}function b(O,k){for(var D=0;D<k.length;D++){var I=k[D];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(O,I.key,I)}}function x(O,k){return(x=Object.setPrototypeOf||function(D,I){return D.__proto__=I,D})(O,k)}function C(O){var k=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var D,I=S(O);return D=k?(D=S(this).constructor,Reflect.construct(I,arguments,D)):I.apply(this,arguments),I=this,!(D=D)||v(D)!=="object"&&typeof D!="function"?function(P){if(P!==void 0)return P;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(I):D}}function S(O){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(O)}function M(O,k){if(O="data-clipboard-".concat(O),k.hasAttribute(O))return k.getAttribute(O)}var A=function(){(function(N,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(B&&B.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),B&&x(N,B)})(P,i());var O,k,D,I=C(P);function P(N,B){var H;return function(Z){if(!(Z instanceof P))throw new TypeError("Cannot call a class as a function")}(this),(H=I.call(this)).resolveOptions(B),H.listenClick(N),H}return O=P,D=[{key:"copy",value:function(N){var B=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body};return d(N,B)}},{key:"cut",value:function(N){return f(N)}},{key:"isSupported",value:function(){var N=0<arguments.length&&arguments[0]!==void 0?arguments[0]:["copy","cut"],N=typeof N=="string"?[N]:N,B=!!document.queryCommandSupported;return N.forEach(function(H){B=B&&!!document.queryCommandSupported(H)}),B}}],(k=[{key:"resolveOptions",value:function(){var N=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof N.action=="function"?N.action:this.defaultAction,this.target=typeof N.target=="function"?N.target:this.defaultTarget,this.text=typeof N.text=="function"?N.text:this.defaultText,this.container=v(N.container)==="object"?N.container:document.body}},{key:"listenClick",value:function(N){var B=this;this.listener=a()(N,"click",function(H){return B.onClick(H)})}},{key:"onClick",value:function(Z){var B=Z.delegateTarget||Z.currentTarget,H=this.action(B)||"copy",Z=m({action:H,container:this.container,target:this.target(B),text:this.text(B)});this.emit(Z?"success":"error",{action:H,text:Z,trigger:B,clearSelection:function(){B&&B.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(N){return M("action",N)}},{key:"defaultTarget",value:function(N){if(N=M("target",N),N)return document.querySelector(N)}},{key:"defaultText",value:function(N){return M("text",N)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&b(O.prototype,k),D&&b(O,D),P}()},828:function(n){var o;typeof Element>"u"||Element.prototype.matches||((o=Element.prototype).matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector),n.exports=function(s,i){for(;s&&s.nodeType!==9;){if(typeof s.matches=="function"&&s.matches(i))return s;s=s.parentNode}}},438:function(n,o,s){var i=s(828);function a(l,u,c,f,h){var d=function(p,m,v,b){return function(x){x.delegateTarget=i(x.target,m),x.delegateTarget&&b.call(p,x)}}.apply(this,arguments);return l.addEventListener(c,d,h),{destroy:function(){l.removeEventListener(c,d,h)}}}n.exports=function(l,u,c,f,h){return typeof l.addEventListener=="function"?a.apply(null,arguments):typeof c=="function"?a.bind(null,document).apply(null,arguments):(typeof l=="string"&&(l=document.querySelectorAll(l)),Array.prototype.map.call(l,function(d){return a(d,u,c,f,h)}))}},879:function(n,o){o.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},o.nodeList=function(s){var i=Object.prototype.toString.call(s);return s!==void 0&&(i==="[object NodeList]"||i==="[object HTMLCollection]")&&"length"in s&&(s.length===0||o.node(s[0]))},o.string=function(s){return typeof s=="string"||s instanceof String},o.fn=function(s){return Object.prototype.toString.call(s)==="[object Function]"}},370:function(n,o,s){var i=s(879),a=s(438);n.exports=function(l,u,c){if(!l&&!u&&!c)throw new Error("Missing required arguments");if(!i.string(u))throw new TypeError("Second argument must be a String");if(!i.fn(c))throw new TypeError("Third argument must be a Function");if(i.node(l))return m=u,v=c,(p=l).addEventListener(m,v),{destroy:function(){p.removeEventListener(m,v)}};if(i.nodeList(l))return f=l,h=u,d=c,Array.prototype.forEach.call(f,function(b){b.addEventListener(h,d)}),{destroy:function(){Array.prototype.forEach.call(f,function(b){b.removeEventListener(h,d)})}};if(i.string(l))return l=l,u=u,c=c,a(document.body,l,u,c);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var f,h,d,p,m,v}},817:function(n){n.exports=function(o){var s,i=o.nodeName==="SELECT"?(o.focus(),o.value):o.nodeName==="INPUT"||o.nodeName==="TEXTAREA"?((s=o.hasAttribute("readonly"))||o.setAttribute("readonly",""),o.select(),o.setSelectionRange(0,o.value.length),s||o.removeAttribute("readonly"),o.value):(o.hasAttribute("contenteditable")&&o.focus(),i=window.getSelection(),(s=document.createRange()).selectNodeContents(o),i.removeAllRanges(),i.addRange(s),i.toString());return i}},279:function(n){function o(){}o.prototype={on:function(s,i,a){var l=this.e||(this.e={});return(l[s]||(l[s]=[])).push({fn:i,ctx:a}),this},once:function(s,i,a){var l=this;function u(){l.off(s,u),i.apply(a,arguments)}return u._=i,this.on(s,u,a)},emit:function(s){for(var i=[].slice.call(arguments,1),a=((this.e||(this.e={}))[s]||[]).slice(),l=0,u=a.length;l<u;l++)a[l].fn.apply(a[l].ctx,i);return this},off:function(s,i){var a=this.e||(this.e={}),l=a[s],u=[];if(l&&i)for(var c=0,f=l.length;c<f;c++)l[c].fn!==i&&l[c].fn._!==i&&u.push(l[c]);return u.length?a[s]=u:delete a[s],this}},n.exports=o,n.exports.TinyEmitter=o}},t={},r.n=function(n){var o=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(o,{a:o}),o},r.d=function(n,o){for(var s in o)r.o(o,s)&&!r.o(n,s)&&Object.defineProperty(n,s,{enumerable:!0,get:o[s]})},r.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},r(686).default;function r(n){if(t[n])return t[n].exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}var e,t})});var Sr={},Bd=[];function Kr(r,e){if(Bd.push({name:r,data:e}),typeof Sr[r]>"u")return this;let t=Sr[r];for(let n=0;n<t.length;n++)t[n](e)}function $d(r,e){typeof Sr[r]>"u"&&(Sr[r]=[]),Sr[r].push(e)}function Ud(r,e,t){let n=new CustomEvent(e,{detail:t,bubbles:!0});r.dispatchEvent(n)}function zd(r){if(!!r.status&&r.status===422&&r.data){let e=Object.values(r.data).flat().join(`
+`);Kr("error",e)}}var Jo={emit:Kr,emitPublic:Ud,listen:$d,success:r=>Kr("success",r),error:r=>Kr("error",r),showValidationErrors:zd};async function jd(r,e={}){return es(r,{method:"GET",params:e})}async function Hd(r,e=null){return Xr("POST",r,e)}async function qd(r,e=null){return Xr("PUT",r,e)}async function Vd(r,e=null){return Xr("PATCH",r,e)}async function Gd(r,e=null){return Xr("DELETE",r,e)}async function Xr(r,e,t=null){let n={method:r,body:t};return typeof t=="object"&&!(t instanceof FormData)&&(n.headers={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},n.body=JSON.stringify(t)),t instanceof FormData&&r!=="post"&&(t.append("_method",r),n.method="post"),es(e,n)}async function es(r,e={}){if(r.startsWith("http")||(r=window.baseUrl(r)),e.params){let i=new URL(r);for(let a of Object.keys(e.params)){let l=e.params[a];typeof l<"u"&&l!==null&&i.searchParams.set(a,l)}r=i.toString()}let t=document.querySelector("meta[name=token]").getAttribute("content");e=Object.assign({},e,{credentials:"same-origin"}),e.headers=Object.assign({},e.headers||{},{baseURL:window.baseUrl(""),"X-CSRF-TOKEN":t});let n=await fetch(r,e),s={data:await Wd(n),headers:n.headers,redirected:n.redirected,status:n.status,statusText:n.statusText,url:n.url,original:n};if(!n.ok)throw s;return s}async function Wd(r){if(r.status===204)return null;let t=(r.headers.get("Content-Type")||"").split(";")[0].split("/").pop();return t==="javascript"||t==="json"?await r.json():await r.text()}var ts={get:jd,post:Hd,put:qd,patch:Vd,delete:Gd};var Un=class{constructor(e){this.store=new Map,this.parseTranslations()}parseTranslations(){let e=document.querySelectorAll('meta[name="translation"]');for(let t of e){let n=t.getAttribute("key"),o=t.getAttribute("value");this.store.set(n,o)}}get(e,t){let n=this.getTransText(e);return this.performReplacements(n,t)}getPlural(e,t,n){let o=this.getTransText(e);return this.parsePlural(o,t,n)}parsePlural(e,t,n){let o=e.split("|"),s=/^{([0-9]+)}/,i=/^\[([0-9]+),([0-9*]+)]/,a=null;for(let l of o){let u=l.match(s);if(u!==null&&Number(u[1])===t){a=l.replace(s,"").trim();break}let c=l.match(i);if(c!==null&&Number(c[1])<=t&&(c[2]==="*"||Number(c[2])>=t)){a=l.replace(i,"").trim();break}}return a===null&&o.length>1&&(a=t===1?o[0]:o[1]),a===null&&(a=o[0]),this.performReplacements(a,n)}getTransText(e){let t=this.store.get(e);return t===void 0&&console.warn(`Translation with key "${e}" does not exist`),t}performReplacements(e,t){if(!t)return e;let n=e.match(/:([\S]+)/g);return n===null||n.forEach(o=>{let s=o.substring(1);typeof t[s]>"u"||(e=e.replace(o,t[s]))}),e}},rs=Un;function Zr(r,e){let t=document.querySelectorAll(r);for(let n of t)e(n)}function Qr(r,e,t){for(let n of e)r.addEventListener(n,t)}function Be(r,e){Array.isArray(r)||(r=[r]);for(let t of r)t.addEventListener("click",e),t.addEventListener("keydown",n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),e(n))})}function Jr(r,e){Array.isArray(r)||(r=[r]);let t=n=>{n.key==="Enter"&&e(n)};r.forEach(n=>n.addEventListener("keypress",t))}function qe(r,e,t,n){r.addEventListener(t,function(o){let s=o.target.closest(e);s&&n.call(s,o,s)})}function ns(r,e){let t=document.querySelectorAll(r);e=e.toLowerCase();for(let n of t)if(n.textContent.toLowerCase().includes(e))return n;return null}function Cr(r){r.innerHTML='<div class="loading-container"><div></div><div></div><div></div></div>'}function is(r){let e=r.querySelectorAll(".loading-container");for(let t of e)t.remove()}function Ar(r,e,t){let n;return function(){let o=this,s=arguments,i=function(){n=null,t||r.apply(o,s)},a=t&&!n;clearTimeout(n),n=setTimeout(i,e),a&&r.apply(o,s)}}function kr(r){if(!r)return;r.scrollIntoView({behavior:"smooth"});let e=document.getElementById("custom-styles").getAttribute("data-color-light"),t=window.getComputedStyle(r).getPropertyValue("background-color");r.style.backgroundColor=e,setTimeout(()=>{r.classList.add("selectFade"),r.style.backgroundColor=t},10),setTimeout(()=>{r.classList.remove("selectFade"),r.style.backgroundColor=""},3e3)}function ss(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function as(){let r=()=>((1+Math.random())*65536|0).toString(16).substring(1);return r()+r()+"-"+r()+"-"+r()+"-"+r()+"-"+r()+r()+r()}var zn=class{setup(){this.modelRow=this.$refs.model,this.addButton=this.$refs.add,this.removeSelector=this.$opts.removeSelector,this.rowSelector=this.$opts.rowSelector,this.setupListeners()}setupListeners(){this.addButton.addEventListener("click",this.add.bind(this)),qe(this.$el,this.removeSelector,"click",e=>{e.target.closest(this.rowSelector).remove()})}add(){let e=this.modelRow.cloneNode(!0);e.classList.remove("hidden"),this.setClonedInputNames(e),this.modelRow.parentNode.insertBefore(e,this.modelRow),window.components.init(e)}setClonedInputNames(e){let t=as(),n=e.querySelectorAll('[name*="randrowid"]');for(let o of n)o.name=o.name.split("randrowid").join(t)}},ls=zn;var jn=class{setup(){this.row=this.$el,this.url=this.$opts.url,this.deleteButtons=this.$manyRefs.delete,Be(this.deleteButtons,this.runDelete.bind(this))}runDelete(){this.row.style.opacity="0.7",this.row.style.pointerEvents="none",window.$http.delete(this.url).then(e=>{typeof e.data=="object"&&e.data.message&&window.$events.emit("success",e.data.message),this.row.remove()}).catch(e=>{this.row.style.opacity=null,this.row.style.pointerEvents=null})}},us=jn;var Hn=class{setup(){this.container=this.$el,this.responseContainer=this.container,this.url=this.$opts.url,this.method=this.$opts.method||"post",this.successMessage=this.$opts.successMessage,this.submitButtons=this.$manyRefs.submit||[],this.$opts.responseContainer&&(this.responseContainer=this.container.closest(this.$opts.responseContainer)),this.setupListeners()}setupListeners(){if(this.container.tagName==="FORM"){this.container.addEventListener("submit",this.submitRealForm.bind(this));return}Jr(this.container,e=>{this.submitFakeForm(),e.preventDefault()}),this.submitButtons.forEach(e=>Be(e,this.submitFakeForm.bind(this)))}submitFakeForm(){let e=new FormData,t=this.container.querySelectorAll("[name]");for(let n of t)e.append(n.getAttribute("name"),n.value);this.submit(e)}submitRealForm(e){e.preventDefault();let t=new FormData(this.container);this.submit(t)}async submit(e){this.responseContainer.style.opacity="0.7",this.responseContainer.style.pointerEvents="none";try{let t=await window.$http[this.method.toLowerCase()](this.url,e);this.$emit("success",{formData:e}),this.responseContainer.innerHTML=t.data,this.successMessage&&window.$events.emit("success",this.successMessage)}catch(t){this.responseContainer.innerHTML=t.data}window.components.init(this.responseContainer),this.responseContainer.style.opacity=null,this.responseContainer.style.pointerEvents=null}},cs=Hn;var qn=class{setup(){this.container=this.$el,this.pageId=this.$opts.pageId,this.editContainer=this.$refs.editContainer,this.listContainer=this.$refs.listContainer,this.mainTabs=this.$refs.mainTabs,this.list=this.$refs.list,this.setupListeners()}setupListeners(){let e=this.reloadList.bind(this);this.container.addEventListener("dropzone-success",e),this.container.addEventListener("ajax-form-success",e),this.container.addEventListener("sortable-list-sort",t=>{this.updateOrder(t.detail.ids)}),this.container.addEventListener("event-emit-select-edit",t=>{this.startEdit(t.detail.id)}),this.container.addEventListener("event-emit-select-edit-back",t=>{this.stopEdit()}),this.container.addEventListener("event-emit-select-insert",t=>{let n=t.target.closest("[data-drag-content]").getAttribute("data-drag-content"),o=JSON.parse(n);window.$events.emit("editor::insert",{html:o["text/html"],markdown:o["text/plain"]})})}reloadList(){this.stopEdit(),this.mainTabs.components.tabs.show("items"),window.$http.get(`/attachments/get/page/${this.pageId}`).then(e=>{this.list.innerHTML=e.data,window.components.init(this.list)})}updateOrder(e){window.$http.put(`/attachments/sort/page/${this.pageId}`,{order:e}).then(t=>{window.$events.emit("success",t.data.message)})}async startEdit(e){this.editContainer.classList.remove("hidden"),this.listContainer.classList.add("hidden"),Cr(this.editContainer);let t=await window.$http.get(`/attachments/edit/${e}`);this.editContainer.innerHTML=t.data,window.components.init(this.editContainer)}stopEdit(){this.editContainer.classList.add("hidden"),this.listContainer.classList.remove("hidden")}},ds=qn;var Vn=class{setup(){this.container=this.$el,this.setupListeners()}setupListeners(){let e=t=>t.key==="Control"||t.key==="Meta";window.addEventListener("keydown",t=>{e(t)&&this.addOpenQueryToLinks()},{passive:!0}),window.addEventListener("keyup",t=>{e(t)&&this.removeOpenQueryFromLinks()},{passive:!0})}addOpenQueryToLinks(){let e=this.container.querySelectorAll("a.attachment-file");for(let t of e)t.href.split("?")[1]!=="open=true"&&(t.href=t.href+"?open=true",t.setAttribute("target","_blank"))}removeOpenQueryFromLinks(){let e=this.container.querySelectorAll("a.attachment-file");for(let t of e)t.href=t.href.split("?")[0],t.removeAttribute("target")}},fs=Vn;var Gn={},Wn=class{setup(){this.parent=this.$el.parentElement,this.container=this.$el,this.type=this.$opts.type,this.url=this.$opts.url,this.input=this.$refs.input,this.list=this.$refs.list,this.lastPopulated=0,this.setupListeners()}setupListeners(){this.input.addEventListener("input",this.requestSuggestions.bind(this)),this.input.addEventListener("focus",this.requestSuggestions.bind(this)),this.input.addEventListener("keydown",e=>{e.key==="Tab"&&this.hideSuggestions()}),this.input.addEventListener("blur",this.hideSuggestionsIfFocusedLost.bind(this)),this.container.addEventListener("keydown",this.containerKeyDown.bind(this)),qe(this.list,"button","click",(e,t)=>{this.selectSuggestion(t.textContent)}),qe(this.list,"button","keydown",(e,t)=>{e.key==="Enter"&&this.selectSuggestion(t.textContent)})}selectSuggestion(e){this.input.value=e,this.lastPopulated=Date.now(),this.input.focus(),this.input.dispatchEvent(new Event("input",{bubbles:!0})),this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.hideSuggestions()}containerKeyDown(e){e.key==="Enter"&&e.preventDefault(),!this.list.classList.contains("hidden")&&(e.key==="ArrowDown"?(this.moveFocus(!0),e.preventDefault()):e.key==="ArrowUp"?(this.moveFocus(!1),e.preventDefault()):e.key==="Escape"&&(this.hideSuggestions(),e.preventDefault()))}moveFocus(e=!0){let t=Array.from(this.container.querySelectorAll("input,button")),n=t.indexOf(document.activeElement),o=t[n+(e?1:-1)];o&&o.focus()}async requestSuggestions(){if(Date.now()-this.lastPopulated<50)return;let e=this.getNameFilterIfNeeded(),t=this.input.value.slice(0,3).toLowerCase(),n=await this.loadSuggestions(t,e),o=n.slice(0,6);t.length>0&&(o=n.filter(s=>s.toLowerCase().includes(t)).slice(0,6)),this.displaySuggestions(o)}getNameFilterIfNeeded(){return this.type!=="value"?null:this.parent.querySelector("input").value}async loadSuggestions(e,t=null){let n={search:e,name:t},o=`${this.url}:${JSON.stringify(n)}`;if(Gn[o])return Gn[o];let s=await window.$http.get(this.url,n);return Gn[o]=s.data,s.data}displaySuggestions(e){if(e.length===0)return this.hideSuggestions();this.list.innerHTML=e.map(t=>`<li><button type="button" class="text-item">${ss(t)}</button></li>`).join(""),this.list.style.display="block";for(let t of this.list.querySelectorAll("button"))t.addEventListener("blur",this.hideSuggestionsIfFocusedLost.bind(this))}hideSuggestions(){this.list.style.display="none"}hideSuggestionsIfFocusedLost(e){this.container.contains(e.relatedTarget)||this.hideSuggestions()}},hs=Wn;var Yn=class{constructor(e){if(this.elem=e,this.targetElem=document.getElementById("header"),this.showing=!1,this.breakPoint=1200,document.body.classList.contains("flexbox")){this.elem.style.display="none";return}this.elem.addEventListener("click",this.scrollToTop.bind(this)),window.addEventListener("scroll",this.onPageScroll.bind(this))}onPageScroll(){let e=document.documentElement.scrollTop||document.body.scrollTop||0;!this.showing&&e>this.breakPoint?(this.elem.style.display="block",this.showing=!0,setTimeout(()=>{this.elem.style.opacity=.4},1)):this.showing&&e<this.breakPoint&&(this.elem.style.opacity=0,this.showing=!1,setTimeout(()=>{this.elem.style.display="none"},500))}scrollToTop(){let e=this.targetElem.getBoundingClientRect().top,t=document.documentElement.scrollTop?document.documentElement:document.body,n=300,o=Date.now(),s=this.targetElem.getBoundingClientRect().top;function i(){let a=1-(Date.now()-o)/n,l=Math.abs(a*s);a>0?(t.scrollTop=l,requestAnimationFrame(i.bind(this))):t.scrollTop=e}requestAnimationFrame(i.bind(this))}},ps=Yn;function ms(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,n)}return t}function Rt(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ms(Object(t),!0).forEach(function(n){Yd(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ms(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function on(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?on=function(e){return typeof e}:on=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(r)}function Yd(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function jt(){return jt=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},jt.apply(this,arguments)}function Kd(r,e){if(r==null)return{};var t={},n=Object.keys(r),o,s;for(s=0;s<n.length;s++)o=n[s],!(e.indexOf(o)>=0)&&(t[o]=r[o]);return t}function Xd(r,e){if(r==null)return{};var t=Kd(r,e),n,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(o=0;o<s.length;o++)n=s[o],!(e.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(r,n)||(t[n]=r[n]))}return t}var Zd="1.15.0";function zt(r){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(r)}var Ht=zt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Mr=zt(/Edge/i),gs=zt(/firefox/i),Lr=zt(/safari/i)&&!zt(/chrome/i)&&!zt(/android/i),Cs=zt(/iP(ad|od|hone)/i),As=zt(/chrome/i)&&zt(/android/i),ks={capture:!1,passive:!1};function Me(r,e,t){r.addEventListener(e,t,!Ht&&ks)}function Le(r,e,t){r.removeEventListener(e,t,!Ht&&ks)}function cn(r,e){if(!!e){if(e[0]===">"&&(e=e.substring(1)),r)try{if(r.matches)return r.matches(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e)}catch{return!1}return!1}}function Qd(r){return r.host&&r!==document&&r.host.nodeType?r.host:r.parentNode}function Lt(r,e,t,n){if(r){t=t||document;do{if(e!=null&&(e[0]===">"?r.parentNode===t&&cn(r,e):cn(r,e))||n&&r===t)return r;if(r===t)break}while(r=Qd(r))}return null}var vs=/\s+/g;function mt(r,e,t){if(r&&e)if(r.classList)r.classList[t?"add":"remove"](e);else{var n=(" "+r.className+" ").replace(vs," ").replace(" "+e+" "," ");r.className=(n+(t?" "+e:"")).replace(vs," ")}}function ge(r,e,t){var n=r&&r.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(r,""):r.currentStyle&&(t=r.currentStyle),e===void 0?t:t[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=t+(typeof t=="string"?"":"px")}}function dr(r,e){var t="";if(typeof r=="string")t=r;else do{var n=ge(r,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!e&&(r=r.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(t)}function Ts(r,e,t){if(r){var n=r.getElementsByTagName(e),o=0,s=n.length;if(t)for(;o<s;o++)t(n[o],o);return n}return[]}function Ft(){var r=document.scrollingElement;return r||document.documentElement}function tt(r,e,t,n,o){if(!(!r.getBoundingClientRect&&r!==window)){var s,i,a,l,u,c,f;if(r!==window&&r.parentNode&&r!==Ft()?(s=r.getBoundingClientRect(),i=s.top,a=s.left,l=s.bottom,u=s.right,c=s.height,f=s.width):(i=0,a=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(e||t)&&r!==window&&(o=o||r.parentNode,!Ht))do if(o&&o.getBoundingClientRect&&(ge(o,"transform")!=="none"||t&&ge(o,"position")!=="static")){var h=o.getBoundingClientRect();i-=h.top+parseInt(ge(o,"border-top-width")),a-=h.left+parseInt(ge(o,"border-left-width")),l=i+s.height,u=a+s.width;break}while(o=o.parentNode);if(n&&r!==window){var d=dr(o||r),p=d&&d.a,m=d&&d.d;d&&(i/=m,a/=p,f/=p,c/=m,l=i+c,u=a+f)}return{top:i,left:a,bottom:l,right:u,width:f,height:c}}}function ys(r,e,t){for(var n=Kt(r,!0),o=tt(r)[e];n;){var s=tt(n)[t],i=void 0;if(t==="top"||t==="left"?i=o>=s:i=o<=s,!i)return n;if(n===Ft())break;n=Kt(n,!1)}return!1}function fr(r,e,t,n){for(var o=0,s=0,i=r.children;s<i.length;){if(i[s].style.display!=="none"&&i[s]!==ve.ghost&&(n||i[s]!==ve.dragged)&&Lt(i[s],t.draggable,r,!1)){if(o===e)return i[s];o++}s++}return null}function li(r,e){for(var t=r.lastElementChild;t&&(t===ve.ghost||ge(t,"display")==="none"||e&&!cn(t,e));)t=t.previousElementSibling;return t||null}function Et(r,e){var t=0;if(!r||!r.parentNode)return-1;for(;r=r.previousElementSibling;)r.nodeName.toUpperCase()!=="TEMPLATE"&&r!==ve.clone&&(!e||cn(r,e))&&t++;return t}function bs(r){var e=0,t=0,n=Ft();if(r)do{var o=dr(r),s=o.a,i=o.d;e+=r.scrollLeft*s,t+=r.scrollTop*i}while(r!==n&&(r=r.parentNode));return[e,t]}function Jd(r,e){for(var t in r)if(!!r.hasOwnProperty(t)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===r[t][n])return Number(t)}return-1}function Kt(r,e){if(!r||!r.getBoundingClientRect)return Ft();var t=r,n=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var o=ge(t);if(t.clientWidth<t.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return Ft();if(n||e)return t;n=!0}}while(t=t.parentNode);return Ft()}function ef(r,e){if(r&&e)for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r}function Kn(r,e){return Math.round(r.top)===Math.round(e.top)&&Math.round(r.left)===Math.round(e.left)&&Math.round(r.height)===Math.round(e.height)&&Math.round(r.width)===Math.round(e.width)}var Fr;function Is(r,e){return function(){if(!Fr){var t=arguments,n=this;t.length===1?r.call(n,t[0]):r.apply(n,t),Fr=setTimeout(function(){Fr=void 0},e)}}}function tf(){clearTimeout(Fr),Fr=void 0}function Ds(r,e,t){r.scrollLeft+=e,r.scrollTop+=t}function Ls(r){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(r).cloneNode(!0):t?t(r).clone(!0)[0]:r.cloneNode(!0)}var vt="Sortable"+new Date().getTime();function rf(){var r=[],e;return{captureAnimationState:function(){if(r=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(o){if(!(ge(o,"display")==="none"||o===ve.ghost)){r.push({target:o,rect:tt(o)});var s=Rt({},r[r.length-1].rect);if(o.thisAnimationDuration){var i=dr(o,!0);i&&(s.top-=i.f,s.left-=i.e)}o.fromRect=s}})}},addAnimationState:function(n){r.push(n)},removeAnimationState:function(n){r.splice(Jd(r,{target:n}),1)},animateAll:function(n){var o=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var s=!1,i=0;r.forEach(function(a){var l=0,u=a.target,c=u.fromRect,f=tt(u),h=u.prevFromRect,d=u.prevToRect,p=a.rect,m=dr(u,!0);m&&(f.top-=m.f,f.left-=m.e),u.toRect=f,u.thisAnimationDuration&&Kn(h,f)&&!Kn(c,f)&&(p.top-f.top)/(p.left-f.left)===(c.top-f.top)/(c.left-f.left)&&(l=of(p,h,d,o.options)),Kn(f,c)||(u.prevFromRect=c,u.prevToRect=f,l||(l=o.options.animation),o.animate(u,p,f,l)),l&&(s=!0,i=Math.max(i,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(e),s?e=setTimeout(function(){typeof n=="function"&&n()},i):typeof n=="function"&&n(),r=[]},animate:function(n,o,s,i){if(i){ge(n,"transition",""),ge(n,"transform","");var a=dr(this.el),l=a&&a.a,u=a&&a.d,c=(o.left-s.left)/(l||1),f=(o.top-s.top)/(u||1);n.animatingX=!!c,n.animatingY=!!f,ge(n,"transform","translate3d("+c+"px,"+f+"px,0)"),this.forRepaintDummy=nf(n),ge(n,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),ge(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){ge(n,"transition",""),ge(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},i)}}}}function nf(r){return r.offsetWidth}function of(r,e,t,n){return Math.sqrt(Math.pow(e.top-r.top,2)+Math.pow(e.left-r.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*n.animation}var ar=[],Xn={initializeByDefault:!0},_r={mount:function(e){for(var t in Xn)Xn.hasOwnProperty(t)&&!(t in e)&&(e[t]=Xn[t]);ar.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ar.push(e)},pluginEvent:function(e,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var s=e+"Global";ar.forEach(function(i){!t[i.pluginName]||(t[i.pluginName][s]&&t[i.pluginName][s](Rt({sortable:t},n)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](Rt({sortable:t},n)))})},initializePlugins:function(e,t,n,o){ar.forEach(function(a){var l=a.pluginName;if(!(!e.options[l]&&!a.initializeByDefault)){var u=new a(e,t,e.options);u.sortable=e,u.options=e.options,e[l]=u,jt(n,u.defaults)}});for(var s in e.options)if(!!e.options.hasOwnProperty(s)){var i=this.modifyOption(e,s,e.options[s]);typeof i<"u"&&(e.options[s]=i)}},getEventProperties:function(e,t){var n={};return ar.forEach(function(o){typeof o.eventProperties=="function"&&jt(n,o.eventProperties.call(t[o.pluginName],e))}),n},modifyOption:function(e,t,n){var o;return ar.forEach(function(s){!e[s.pluginName]||s.optionListeners&&typeof s.optionListeners[t]=="function"&&(o=s.optionListeners[t].call(e[s.pluginName],n))}),o}};function sf(r){var e=r.sortable,t=r.rootEl,n=r.name,o=r.targetEl,s=r.cloneEl,i=r.toEl,a=r.fromEl,l=r.oldIndex,u=r.newIndex,c=r.oldDraggableIndex,f=r.newDraggableIndex,h=r.originalEvent,d=r.putSortable,p=r.extraEventProperties;if(e=e||t&&t[vt],!!e){var m,v=e.options,b="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Ht&&!Mr?m=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(n,!0,!0)),m.to=i||t,m.from=a||t,m.item=o||t,m.clone=s,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=f,m.originalEvent=h,m.pullMode=d?d.lastPutMode:void 0;var x=Rt(Rt({},p),_r.getEventProperties(n,e));for(var C in x)m[C]=x[C];t&&t.dispatchEvent(m),v[b]&&v[b].call(e,m)}}var af=["evt"],ht=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.evt,s=Xd(n,af);_r.pluginEvent.bind(ve)(e,t,Rt({dragEl:ee,parentEl:Ze,ghostEl:we,rootEl:Ve,nextEl:er,lastDownEl:sn,cloneEl:Ye,cloneHidden:Yt,dragStarted:Tr,putSortable:it,activeSortable:ve.active,originalEvent:o,oldIndex:cr,oldDraggableIndex:Rr,newIndex:gt,newDraggableIndex:Wt,hideGhostForTarget:Ps,unhideGhostForTarget:Ms,cloneNowHidden:function(){Yt=!0},cloneNowShown:function(){Yt=!1},dispatchSortableEvent:function(a){ct({sortable:t,name:a,originalEvent:o})}},s))};function ct(r){sf(Rt({putSortable:it,cloneEl:Ye,targetEl:ee,rootEl:Ve,oldIndex:cr,oldDraggableIndex:Rr,newIndex:gt,newDraggableIndex:Wt},r))}var ee,Ze,we,Ve,er,sn,Ye,Yt,cr,gt,Rr,Wt,en,it,ur=!1,dn=!1,fn=[],Qt,At,Zn,Qn,xs,ws,Tr,lr,Or,Pr=!1,tn=!1,an,lt,Jn=[],ii=!1,hn=[],mn=typeof document<"u",rn=Cs,Es=Mr||Ht?"cssFloat":"float",lf=mn&&!As&&!Cs&&"draggable"in document.createElement("div"),Fs=function(){if(!!mn){if(Ht)return!1;var r=document.createElement("x");return r.style.cssText="pointer-events:auto",r.style.pointerEvents==="auto"}}(),Rs=function(e,t){var n=ge(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),s=fr(e,0,t),i=fr(e,1,t),a=s&&ge(s),l=i&&ge(i),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+tt(s).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+tt(i).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&a.float&&a.float!=="none"){var f=a.float==="left"?"left":"right";return i&&(l.clear==="both"||l.clear===f)?"vertical":"horizontal"}return s&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=o&&n[Es]==="none"||i&&n[Es]==="none"&&u+c>o)?"vertical":"horizontal"},uf=function(e,t,n){var o=n?e.left:e.top,s=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,u=n?t.width:t.height;return o===a||s===l||o+i/2===a+u/2},cf=function(e,t){var n;return fn.some(function(o){var s=o[vt].options.emptyInsertThreshold;if(!(!s||li(o))){var i=tt(o),a=e>=i.left-s&&e<=i.right+s,l=t>=i.top-s&&t<=i.bottom+s;if(a&&l)return n=o}}),n},Os=function(e){function t(s,i){return function(a,l,u,c){var f=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(s==null&&(i||f))return!0;if(s==null||s===!1)return!1;if(i&&s==="clone")return s;if(typeof s=="function")return t(s(a,l,u,c),i)(a,l,u,c);var h=(i?a:l).options.group.name;return s===!0||typeof s=="string"&&s===h||s.join&&s.indexOf(h)>-1}}var n={},o=e.group;(!o||on(o)!="object")&&(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},Ps=function(){!Fs&&we&&ge(we,"display","none")},Ms=function(){!Fs&&we&&ge(we,"display","")};mn&&!As&&document.addEventListener("click",function(r){if(dn)return r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.stopImmediatePropagation&&r.stopImmediatePropagation(),dn=!1,!1},!0);var Jt=function(e){if(ee){e=e.touches?e.touches[0]:e;var t=cf(e.clientX,e.clientY);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[vt]._onDragOver(n)}}},df=function(e){ee&&ee.parentNode[vt]._isOutsideThisEl(e.target)};function ve(r,e){if(!(r&&r.nodeType&&r.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(r));this.el=r,this.options=e=jt({},e),r[vt]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(r.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Rs(r,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ve.supportPointer!==!1&&"PointerEvent"in window&&!Lr,emptyInsertThreshold:5};_r.initializePlugins(this,r,t);for(var n in t)!(n in e)&&(e[n]=t[n]);Os(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:lf,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Me(r,"pointerdown",this._onTapStart):(Me(r,"mousedown",this._onTapStart),Me(r,"touchstart",this._onTapStart)),this.nativeDraggable&&(Me(r,"dragover",this),Me(r,"dragenter",this)),fn.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),jt(this,rf())}ve.prototype={constructor:ve,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(lr=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,ee):this.options.direction},_onTapStart:function(e){if(!!e.cancelable){var t=this,n=this.el,o=this.options,s=o.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(a||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=o.filter;if(bf(n),!ee&&!(/mousedown|pointerdown/.test(i)&&e.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Lr&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Lt(l,o.draggable,n,!1),!(l&&l.animated)&&sn!==l)){if(cr=Et(l),Rr=Et(l,o.draggable),typeof c=="function"){if(c.call(this,e,l,this)){ct({sortable:t,rootEl:u,name:"filter",targetEl:l,toEl:n,fromEl:n}),ht("filter",t,{evt:e}),s&&e.cancelable&&e.preventDefault();return}}else if(c&&(c=c.split(",").some(function(f){if(f=Lt(u,f.trim(),n,!1),f)return ct({sortable:t,rootEl:f,name:"filter",targetEl:l,fromEl:n,toEl:n}),ht("filter",t,{evt:e}),!0}),c)){s&&e.cancelable&&e.preventDefault();return}o.handle&&!Lt(u,o.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var o=this,s=o.el,i=o.options,a=s.ownerDocument,l;if(n&&!ee&&n.parentNode===s){var u=tt(n);if(Ve=s,ee=n,Ze=ee.parentNode,er=ee.nextSibling,sn=n,en=i.group,ve.dragged=ee,Qt={target:ee,clientX:(t||e).clientX,clientY:(t||e).clientY},xs=Qt.clientX-u.left,ws=Qt.clientY-u.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ee.style["will-change"]="all",l=function(){if(ht("delayEnded",o,{evt:e}),ve.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!gs&&o.nativeDraggable&&(ee.draggable=!0),o._triggerDragStart(e,t),ct({sortable:o,name:"choose",originalEvent:e}),mt(ee,i.chosenClass,!0)},i.ignore.split(",").forEach(function(c){Ts(ee,c.trim(),ei)}),Me(a,"dragover",Jt),Me(a,"mousemove",Jt),Me(a,"touchmove",Jt),Me(a,"mouseup",o._onDrop),Me(a,"touchend",o._onDrop),Me(a,"touchcancel",o._onDrop),gs&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ee.draggable=!0),ht("delayStart",this,{evt:e}),i.delay&&(!i.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(Mr||Ht))){if(ve.eventCanceled){this._onDrop();return}Me(a,"mouseup",o._disableDelayedDrag),Me(a,"touchend",o._disableDelayedDrag),Me(a,"touchcancel",o._disableDelayedDrag),Me(a,"mousemove",o._delayedDragTouchMoveHandler),Me(a,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&Me(a,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(l,i.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ee&&ei(ee),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Le(e,"mouseup",this._disableDelayedDrag),Le(e,"touchend",this._disableDelayedDrag),Le(e,"touchcancel",this._disableDelayedDrag),Le(e,"mousemove",this._delayedDragTouchMoveHandler),Le(e,"touchmove",this._delayedDragTouchMoveHandler),Le(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?Me(document,"pointermove",this._onTouchMove):t?Me(document,"touchmove",this._onTouchMove):Me(document,"mousemove",this._onTouchMove):(Me(ee,"dragend",this),Me(Ve,"dragstart",this._onDragStart));try{document.selection?ln(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(ur=!1,Ve&&ee){ht("dragStarted",this,{evt:t}),this.nativeDraggable&&Me(document,"dragover",df);var n=this.options;!e&&mt(ee,n.dragClass,!1),mt(ee,n.ghostClass,!0),ve.active=this,e&&this._appendGhost(),ct({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(At){this._lastX=At.clientX,this._lastY=At.clientY,Ps();for(var e=document.elementFromPoint(At.clientX,At.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(At.clientX,At.clientY),e!==t);)t=e;if(ee.parentNode[vt]._isOutsideThisEl(e),t)do{if(t[vt]){var n=void 0;if(n=t[vt]._onDragOver({clientX:At.clientX,clientY:At.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ms()}},_onTouchMove:function(e){if(Qt){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,s=e.touches?e.touches[0]:e,i=we&&dr(we,!0),a=we&&i&&i.a,l=we&&i&&i.d,u=rn&<&&bs(lt),c=(s.clientX-Qt.clientX+o.x)/(a||1)+(u?u[0]-Jn[0]:0)/(a||1),f=(s.clientY-Qt.clientY+o.y)/(l||1)+(u?u[1]-Jn[1]:0)/(l||1);if(!ve.active&&!ur){if(n&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(we){i?(i.e+=c-(Zn||0),i.f+=f-(Qn||0)):i={a:1,b:0,c:0,d:1,e:c,f};var h="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");ge(we,"webkitTransform",h),ge(we,"mozTransform",h),ge(we,"msTransform",h),ge(we,"transform",h),Zn=c,Qn=f,At=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!we){var e=this.options.fallbackOnBody?document.body:Ve,t=tt(ee,!0,rn,!0,e),n=this.options;if(rn){for(lt=e;ge(lt,"position")==="static"&&ge(lt,"transform")==="none"&<!==document;)lt=lt.parentNode;lt!==document.body&<!==document.documentElement?(lt===document&&(lt=Ft()),t.top+=lt.scrollTop,t.left+=lt.scrollLeft):lt=Ft(),Jn=bs(lt)}we=ee.cloneNode(!0),mt(we,n.ghostClass,!1),mt(we,n.fallbackClass,!0),mt(we,n.dragClass,!0),ge(we,"transition",""),ge(we,"transform",""),ge(we,"box-sizing","border-box"),ge(we,"margin",0),ge(we,"top",t.top),ge(we,"left",t.left),ge(we,"width",t.width),ge(we,"height",t.height),ge(we,"opacity","0.8"),ge(we,"position",rn?"absolute":"fixed"),ge(we,"zIndex","100000"),ge(we,"pointerEvents","none"),ve.ghost=we,e.appendChild(we),ge(we,"transform-origin",xs/parseInt(we.style.width)*100+"% "+ws/parseInt(we.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,o=e.dataTransfer,s=n.options;if(ht("dragStart",this,{evt:e}),ve.eventCanceled){this._onDrop();return}ht("setupClone",this),ve.eventCanceled||(Ye=Ls(ee),Ye.removeAttribute("id"),Ye.draggable=!1,Ye.style["will-change"]="",this._hideClone(),mt(Ye,this.options.chosenClass,!1),ve.clone=Ye),n.cloneId=ln(function(){ht("clone",n),!ve.eventCanceled&&(n.options.removeCloneOnHide||Ve.insertBefore(Ye,ee),n._hideClone(),ct({sortable:n,name:"clone"}))}),!t&&mt(ee,s.dragClass,!0),t?(dn=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Le(document,"mouseup",n._onDrop),Le(document,"touchend",n._onDrop),Le(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",s.setData&&s.setData.call(n,o,ee)),Me(document,"drop",n),ge(ee,"transform","translateZ(0)")),ur=!0,n._dragStartId=ln(n._dragStarted.bind(n,t,e)),Me(document,"selectstart",n),Tr=!0,Lr&&ge(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,o,s,i,a=this.options,l=a.group,u=ve.active,c=en===l,f=a.sort,h=it||u,d,p=this,m=!1;if(ii)return;function v(ne,be){ht(ne,p,Rt({evt:e,isOwner:c,axis:d?"vertical":"horizontal",revert:i,dragRect:o,targetRect:s,canSort:f,fromSortable:h,target:n,completed:x,onMove:function(xe,Fe){return nn(Ve,t,ee,o,xe,tt(xe),e,Fe)},changed:C},be))}function b(){v("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function x(ne){return v("dragOverCompleted",{insertion:ne}),ne&&(c?u._hideClone():u._showClone(p),p!==h&&(mt(ee,it?it.options.ghostClass:u.options.ghostClass,!1),mt(ee,a.ghostClass,!0)),it!==p&&p!==ve.active?it=p:p===ve.active&&it&&(it=null),h===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){v("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(n===ee&&!ee.animated||n===t&&!n.animated)&&(lr=null),!a.dragoverBubble&&!e.rootEl&&n!==document&&(ee.parentNode[vt]._isOutsideThisEl(e.target),!ne&&Jt(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function C(){gt=Et(ee),Wt=Et(ee,a.draggable),ct({sortable:p,name:"change",toEl:t,newIndex:gt,newDraggableIndex:Wt,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=Lt(n,a.draggable,t,!0),v("dragOver"),ve.eventCanceled)return m;if(ee.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return x(!1);if(dn=!1,u&&!a.disabled&&(c?f||(i=Ze!==Ve):it===this||(this.lastPutMode=en.checkPull(this,u,ee,e))&&l.checkPut(this,u,ee,e))){if(d=this._getDirection(e,n)==="vertical",o=tt(ee),v("dragOverValid"),ve.eventCanceled)return m;if(i)return Ze=Ve,b(),this._hideClone(),v("revert"),ve.eventCanceled||(er?Ve.insertBefore(ee,er):Ve.appendChild(ee)),x(!0);var S=li(t,a.draggable);if(!S||mf(e,d,this)&&!S.animated){if(S===ee)return x(!1);if(S&&t===e.target&&(n=S),n&&(s=tt(n)),nn(Ve,t,ee,o,n,s,e,!!n)!==!1)return b(),S&&S.nextSibling?t.insertBefore(ee,S.nextSibling):t.appendChild(ee),Ze=t,C(),x(!0)}else if(S&&pf(e,d,this)){var M=fr(t,0,a,!0);if(M===ee)return x(!1);if(n=M,s=tt(n),nn(Ve,t,ee,o,n,s,e,!1)!==!1)return b(),t.insertBefore(ee,M),Ze=t,C(),x(!0)}else if(n.parentNode===t){s=tt(n);var A=0,O,k=ee.parentNode!==t,D=!uf(ee.animated&&ee.toRect||o,n.animated&&n.toRect||s,d),I=d?"top":"left",P=ys(n,"top","top")||ys(ee,"top","top"),N=P?P.scrollTop:void 0;lr!==n&&(O=s[I],Pr=!1,tn=!D&&a.invertSwap||k),A=gf(e,n,s,d,D?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,tn,lr===n);var B;if(A!==0){var H=Et(ee);do H-=A,B=Ze.children[H];while(B&&(ge(B,"display")==="none"||B===we))}if(A===0||B===n)return x(!1);lr=n,Or=A;var Z=n.nextElementSibling,W=!1;W=A===1;var te=nn(Ve,t,ee,o,n,s,e,W);if(te!==!1)return(te===1||te===-1)&&(W=te===1),ii=!0,setTimeout(hf,30),b(),W&&!Z?t.appendChild(ee):n.parentNode.insertBefore(ee,W?Z:n),P&&Ds(P,0,N-P.scrollTop),Ze=ee.parentNode,O!==void 0&&!tn&&(an=Math.abs(O-tt(n)[I])),C(),x(!0)}if(t.contains(ee))return x(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Le(document,"mousemove",this._onTouchMove),Le(document,"touchmove",this._onTouchMove),Le(document,"pointermove",this._onTouchMove),Le(document,"dragover",Jt),Le(document,"mousemove",Jt),Le(document,"touchmove",Jt)},_offUpEvents:function(){var e=this.el.ownerDocument;Le(e,"mouseup",this._onDrop),Le(e,"touchend",this._onDrop),Le(e,"pointerup",this._onDrop),Le(e,"touchcancel",this._onDrop),Le(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(gt=Et(ee),Wt=Et(ee,n.draggable),ht("drop",this,{evt:e}),Ze=ee&&ee.parentNode,gt=Et(ee),Wt=Et(ee,n.draggable),ve.eventCanceled){this._nulling();return}ur=!1,tn=!1,Pr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),oi(this.cloneId),oi(this._dragStartId),this.nativeDraggable&&(Le(document,"drop",this),Le(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Lr&&ge(document.body,"user-select",""),ge(ee,"transform",""),e&&(Tr&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),we&&we.parentNode&&we.parentNode.removeChild(we),(Ve===Ze||it&&it.lastPutMode!=="clone")&&Ye&&Ye.parentNode&&Ye.parentNode.removeChild(Ye),ee&&(this.nativeDraggable&&Le(ee,"dragend",this),ei(ee),ee.style["will-change"]="",Tr&&!ur&&mt(ee,it?it.options.ghostClass:this.options.ghostClass,!1),mt(ee,this.options.chosenClass,!1),ct({sortable:this,name:"unchoose",toEl:Ze,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ve!==Ze?(gt>=0&&(ct({rootEl:Ze,name:"add",toEl:Ze,fromEl:Ve,originalEvent:e}),ct({sortable:this,name:"remove",toEl:Ze,originalEvent:e}),ct({rootEl:Ze,name:"sort",toEl:Ze,fromEl:Ve,originalEvent:e}),ct({sortable:this,name:"sort",toEl:Ze,originalEvent:e})),it&&it.save()):gt!==cr&>>=0&&(ct({sortable:this,name:"update",toEl:Ze,originalEvent:e}),ct({sortable:this,name:"sort",toEl:Ze,originalEvent:e})),ve.active&&((gt==null||gt===-1)&&(gt=cr,Wt=Rr),ct({sortable:this,name:"end",toEl:Ze,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){ht("nulling",this),Ve=ee=Ze=we=er=Ye=sn=Yt=Qt=At=Tr=gt=Wt=cr=Rr=lr=Or=it=en=ve.dragged=ve.ghost=ve.clone=ve.active=null,hn.forEach(function(e){e.checked=!0}),hn.length=Zn=Qn=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ee&&(this._onDragOver(e),ff(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,o=0,s=n.length,i=this.options;o<s;o++)t=n[o],Lt(t,i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||yf(t));return e},sort:function(e,t){var n={},o=this.el;this.toArray().forEach(function(s,i){var a=o.children[i];Lt(a,this.options.draggable,o,!1)&&(n[s]=a)},this),t&&this.captureAnimationState(),e.forEach(function(s){n[s]&&(o.removeChild(n[s]),o.appendChild(n[s]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Lt(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var o=_r.modifyOption(this,e,t);typeof o<"u"?n[e]=o:n[e]=t,e==="group"&&Os(n)},destroy:function(){ht("destroy",this);var e=this.el;e[vt]=null,Le(e,"mousedown",this._onTapStart),Le(e,"touchstart",this._onTapStart),Le(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Le(e,"dragover",this),Le(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),fn.splice(fn.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Yt){if(ht("hideClone",this),ve.eventCanceled)return;ge(Ye,"display","none"),this.options.removeCloneOnHide&&Ye.parentNode&&Ye.parentNode.removeChild(Ye),Yt=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Yt){if(ht("showClone",this),ve.eventCanceled)return;ee.parentNode==Ve&&!this.options.group.revertClone?Ve.insertBefore(Ye,ee):er?Ve.insertBefore(Ye,er):Ve.appendChild(Ye),this.options.group.revertClone&&this.animate(ee,Ye),ge(Ye,"display",""),Yt=!1}}};function ff(r){r.dataTransfer&&(r.dataTransfer.dropEffect="move"),r.cancelable&&r.preventDefault()}function nn(r,e,t,n,o,s,i,a){var l,u=r[vt],c=u.options.onMove,f;return window.CustomEvent&&!Ht&&!Mr?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=r,l.dragged=t,l.draggedRect=n,l.related=o||e,l.relatedRect=s||tt(e),l.willInsertAfter=a,l.originalEvent=i,r.dispatchEvent(l),c&&(f=c.call(u,l,i)),f}function ei(r){r.draggable=!1}function hf(){ii=!1}function pf(r,e,t){var n=tt(fr(t.el,0,t.options,!0)),o=10;return e?r.clientX<n.left-o||r.clientY<n.top&&r.clientX<n.right:r.clientY<n.top-o||r.clientY<n.bottom&&r.clientX<n.left}function mf(r,e,t){var n=tt(li(t.el,t.options.draggable)),o=10;return e?r.clientX>n.right+o||r.clientX<=n.right&&r.clientY>n.bottom&&r.clientX>=n.left:r.clientX>n.right&&r.clientY>n.top||r.clientX<=n.right&&r.clientY>n.bottom+o}function gf(r,e,t,n,o,s,i,a){var l=n?r.clientY:r.clientX,u=n?t.height:t.width,c=n?t.top:t.left,f=n?t.bottom:t.right,h=!1;if(!i){if(a&&an<u*o){if(!Pr&&(Or===1?l>c+u*s/2:l<f-u*s/2)&&(Pr=!0),Pr)h=!0;else if(Or===1?l<c+an:l>f-an)return-Or}else if(l>c+u*(1-o)/2&&l<f-u*(1-o)/2)return vf(e)}return h=h||i,h&&(l<c+u*s/2||l>f-u*s/2)?l>c+u/2?1:-1:0}function vf(r){return Et(ee)<Et(r)?1:-1}function yf(r){for(var e=r.tagName+r.className+r.src+r.href+r.textContent,t=e.length,n=0;t--;)n+=e.charCodeAt(t);return n.toString(36)}function bf(r){hn.length=0;for(var e=r.getElementsByTagName("input"),t=e.length;t--;){var n=e[t];n.checked&&hn.push(n)}}function ln(r){return setTimeout(r,0)}function oi(r){return clearTimeout(r)}mn&&Me(document,"touchmove",function(r){(ve.active||ur)&&r.cancelable&&r.preventDefault()});ve.utils={on:Me,off:Le,css:ge,find:Ts,is:function(e,t){return!!Lt(e,t,e,!1)},extend:ef,throttle:Is,closest:Lt,toggleClass:mt,clone:Ls,index:Et,nextTick:ln,cancelNextTick:oi,detectDirection:Rs,getChild:fr};ve.get=function(r){return r[vt]};ve.mount=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(ve.utils=Rt(Rt({},ve.utils),n.utils)),_r.mount(n)})};ve.create=function(r,e){return new ve(r,e)};ve.version=Zd;var Je=[],Ir,si,ai=!1,ti,ri,pn,Dr;function xf(){function r(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return r.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?Me(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Me(document,"pointermove",this._handleFallbackAutoScroll):n.touches?Me(document,"touchmove",this._handleFallbackAutoScroll):Me(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?Le(document,"dragover",this._handleAutoScroll):(Le(document,"pointermove",this._handleFallbackAutoScroll),Le(document,"touchmove",this._handleFallbackAutoScroll),Le(document,"mousemove",this._handleFallbackAutoScroll)),Ss(),un(),tf()},nulling:function(){pn=si=Ir=ai=Dr=ti=ri=null,Je.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var o=this,s=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,a=document.elementFromPoint(s,i);if(pn=t,n||this.options.forceAutoScrollFallback||Mr||Ht||Lr){ni(t,this.options,a,n);var l=Kt(a,!0);ai&&(!Dr||s!==ti||i!==ri)&&(Dr&&Ss(),Dr=setInterval(function(){var u=Kt(document.elementFromPoint(s,i),!0);u!==l&&(l=u,un()),ni(t,o.options,u,n)},10),ti=s,ri=i)}else{if(!this.options.bubbleScroll||Kt(a,!0)===Ft()){un();return}ni(t,this.options,Kt(a,!1),!1)}}},jt(r,{pluginName:"scroll",initializeByDefault:!0})}function un(){Je.forEach(function(r){clearInterval(r.pid)}),Je=[]}function Ss(){clearInterval(Dr)}var ni=Is(function(r,e,t,n){if(!!e.scroll){var o=(r.touches?r.touches[0]:r).clientX,s=(r.touches?r.touches[0]:r).clientY,i=e.scrollSensitivity,a=e.scrollSpeed,l=Ft(),u=!1,c;si!==t&&(si=t,un(),Ir=e.scroll,c=e.scrollFn,Ir===!0&&(Ir=Kt(t,!0)));var f=0,h=Ir;do{var d=h,p=tt(d),m=p.top,v=p.bottom,b=p.left,x=p.right,C=p.width,S=p.height,M=void 0,A=void 0,O=d.scrollWidth,k=d.scrollHeight,D=ge(d),I=d.scrollLeft,P=d.scrollTop;d===l?(M=C<O&&(D.overflowX==="auto"||D.overflowX==="scroll"||D.overflowX==="visible"),A=S<k&&(D.overflowY==="auto"||D.overflowY==="scroll"||D.overflowY==="visible")):(M=C<O&&(D.overflowX==="auto"||D.overflowX==="scroll"),A=S<k&&(D.overflowY==="auto"||D.overflowY==="scroll"));var N=M&&(Math.abs(x-o)<=i&&I+C<O)-(Math.abs(b-o)<=i&&!!I),B=A&&(Math.abs(v-s)<=i&&P+S<k)-(Math.abs(m-s)<=i&&!!P);if(!Je[f])for(var H=0;H<=f;H++)Je[H]||(Je[H]={});(Je[f].vx!=N||Je[f].vy!=B||Je[f].el!==d)&&(Je[f].el=d,Je[f].vx=N,Je[f].vy=B,clearInterval(Je[f].pid),(N!=0||B!=0)&&(u=!0,Je[f].pid=setInterval(function(){n&&this.layer===0&&ve.active._onTouchMove(pn);var Z=Je[this.layer].vy?Je[this.layer].vy*a:0,W=Je[this.layer].vx?Je[this.layer].vx*a:0;typeof c=="function"&&c.call(ve.dragged.parentNode[vt],W,Z,r,pn,Je[this.layer].el)!=="continue"||Ds(Je[this.layer].el,W,Z)}.bind({layer:f}),24))),f++}while(e.bubbleScroll&&h!==l&&(h=Kt(h,!1)));ai=u}},30),_s=function(e){var t=e.originalEvent,n=e.putSortable,o=e.dragEl,s=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(!!t){var u=n||s;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,f=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(f)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function ui(){}ui.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=fr(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:_s};jt(ui,{pluginName:"revertOnSpill"});function ci(){}ci.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,o=n||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:_s};jt(ci,{pluginName:"removeOnSpill"});ve.mount(new xf);ve.mount(ci,ui);var hr=ve;var Ns={name:function(r,e){let t=r.getAttribute("data-name").trim().toLowerCase(),n=e.getAttribute("data-name").trim().toLowerCase();return t.localeCompare(n)},created:function(r,e){let t=Number(r.getAttribute("data-created"));return Number(e.getAttribute("data-created"))-t},updated:function(r,e){let t=Number(r.getAttribute("data-updated"));return Number(e.getAttribute("data-updated"))-t},chaptersFirst:function(r,e){let t=r.getAttribute("data-type"),n=e.getAttribute("data-type");return t===n?0:t==="chapter"?-1:1},chaptersLast:function(r,e){let t=r.getAttribute("data-type"),n=e.getAttribute("data-type");return t===n?0:t==="chapter"?1:-1}},di=class{constructor(e){this.elem=e,this.sortContainer=e.querySelector("[book-sort-boxes]"),this.input=e.querySelector("[book-sort-input]");let t=e.querySelector(".sort-box");this.setupBookSortable(t),this.setupSortPresets(),window.$events.listen("entity-select-confirm",this.bookSelect.bind(this))}setupSortPresets(){let e="",t=!1,n=["name","created","updated"];this.sortContainer.addEventListener("click",o=>{let s=o.target.closest(".sort-box-options [data-sort]");if(!s)return;o.preventDefault();let i=s.closest(".sort-box").querySelectorAll("ul"),a=s.getAttribute("data-sort");t=e===a?!t:!1;let l=Ns[a];t&&n.includes(a)&&(l=function(u,c){return 0-Ns[a](u,c)});for(let u of i)Array.from(u.children).filter(f=>f.matches("li")).sort(l).forEach(f=>{u.appendChild(f)});e=a,this.updateMapInput()})}bookSelect(e){if(this.elem.querySelector(`[data-type="book"][data-id="${e.id}"]`)!==null)return;let n=e.link+"/sort-item";window.$http.get(n).then(o=>{let s=document.createElement("div");s.innerHTML=o.data;let i=s.children[0];this.sortContainer.append(i),this.setupBookSortable(i)})}setupBookSortable(e){let t=[e.querySelector(".sort-list")];t.push(...e.querySelectorAll(".entity-list-item + ul"));let n={name:"book",pull:["book","chapter"],put:["book","chapter"]},o={name:"chapter",pull:["book","chapter"],put:function(s,i,a){return a.getAttribute("data-type")==="page"}};for(let s of t)new hr(s,{group:s.classList.contains("sort-list")?n:o,animation:150,fallbackOnBody:!0,swapThreshold:.65,onSort:this.updateMapInput.bind(this),dragClass:"bg-white",ghostClass:"primary-background-light",multiDrag:!0,multiDragKey:"CTRL",selectedClass:"sortable-selected"})}updateMapInput(){let e=this.buildEntityMap();this.input.value=JSON.stringify(e)}buildEntityMap(){let e=[],t=this.elem.querySelectorAll(".sort-list");for(let n of t){let o=n.closest('[data-type="book"]').getAttribute("data-id"),s=Array.from(n.children).filter(i=>i.matches('[data-type="page"], [data-type="chapter"]'));for(let i=0;i<s.length;i++)this.addBookChildToMap(s[i],i,o,e)}return e}addBookChildToMap(e,t,n,o){let s=e.getAttribute("data-type"),i=!1,a=e.getAttribute("data-id");o.push({id:a,sort:t,parentChapter:i,type:s,book:n});let l=e.querySelectorAll('[data-type="page"]');for(let u=0;u<l.length;u++)o.push({id:l[u].getAttribute("data-id"),sort:u,parentChapter:a,type:"page",book:n})}},Bs=di;var gn=new WeakMap;function $s(r,e=400,t=null){Br(r),r.style.display="block",Nr(r,{opacity:["0","1"]},e,()=>{t&&t()})}function vn(r,e=400,t=null){Br(r),Nr(r,{opacity:["1","0"]},e,()=>{r.style.display="none",t&&t()})}function pr(r,e=400){Br(r);let t=r.getBoundingClientRect().height,n=getComputedStyle(r),o=n.getPropertyValue("padding-top"),s=n.getPropertyValue("padding-bottom"),i={maxHeight:[`${t}px`,"0px"],overflow:["hidden","hidden"],paddingTop:[o,"0px"],paddingBottom:[s,"0px"]};Nr(r,i,e,()=>{r.style.display="none"})}function mr(r,e=400){Br(r),r.style.display="block";let t=r.getBoundingClientRect().height,n=getComputedStyle(r),o=n.getPropertyValue("padding-top"),s=n.getPropertyValue("padding-bottom"),i={maxHeight:["0px",`${t}px`],overflow:["hidden","hidden"],paddingTop:["0px",o],paddingBottom:["0px",s]};Nr(r,i,e)}function Us(r,e=400){let t=r.getBoundingClientRect().height,n=getComputedStyle(r),o=n.getPropertyValue("padding-top"),s=n.getPropertyValue("padding-bottom");return()=>{Br(r);let i=r.getBoundingClientRect().height,a=getComputedStyle(r),l=a.getPropertyValue("padding-top"),u=a.getPropertyValue("padding-bottom"),c={height:[`${t}px`,`${i}px`],overflow:["hidden","hidden"],paddingTop:[o,l],paddingBottom:[s,u]};Nr(r,c,e)}}function Nr(r,e,t=400,n=null){let o=Object.keys(e);for(let i of o)r.style[i]=e[i][0];let s=()=>{for(let i of o)r.style[i]=null;r.style.transition=null,r.removeEventListener("transitionend",s),gn.delete(r),n&&n()};setTimeout(()=>{r.style.transition=`all ease-in-out ${t}ms`;for(let i of o)r.style[i]=e[i][1];r.addEventListener("transitionend",s),gn.set(r,s)},15)}function Br(r){gn.has(r)&&gn.get(r)()}var fi=class{setup(){this.list=this.$refs.list,this.toggle=this.$refs.toggle,this.isOpen=this.toggle.classList.contains("open"),this.toggle.addEventListener("click",this.click.bind(this))}open(){this.toggle.classList.add("open"),this.toggle.setAttribute("aria-expanded","true"),mr(this.list,180),this.isOpen=!0}close(){this.toggle.classList.remove("open"),this.toggle.setAttribute("aria-expanded","false"),pr(this.list,180),this.isOpen=!1}click(e){e.preventDefault(),this.isOpen?this.close():this.open()}},zs=fi;var hi=class{setup(){this.container=this.$refs.container,this.popup=this.$el,this.editorInput=this.$refs.editor,this.languageButtons=this.$manyRefs.languageButton,this.languageOptionsContainer=this.$refs.languageOptionsContainer,this.saveButton=this.$refs.saveButton,this.languageInput=this.$refs.languageInput,this.historyDropDown=this.$refs.historyDropDown,this.historyList=this.$refs.historyList,this.favourites=new Set(this.$opts.favourites.split(",")),this.callback=null,this.editor=null,this.history={},this.historyKey="code_history",this.setupListeners(),this.setupFavourites()}setupListeners(){this.container.addEventListener("keydown",e=>{e.ctrlKey&&e.key==="Enter"&&this.save()}),Be(this.languageButtons,e=>{let t=e.target.dataset.lang;this.languageInput.value=t,this.languageInputChange(t)}),Jr(this.languageInput,e=>this.save()),this.languageInput.addEventListener("input",e=>this.languageInputChange(this.languageInput.value)),Be(this.saveButton,e=>this.save()),qe(this.historyList,"button","click",(e,t)=>{e.preventDefault();let n=t.dataset.time;this.editor&&this.editor.setValue(this.history[n])})}setupFavourites(){for(let e of this.languageButtons)this.setupFavouritesForButton(e);this.sortLanguageList()}setupFavouritesForButton(e){let t=e.dataset.lang,n=this.favourites.has(t);e.setAttribute("data-favourite",n?"true":"false"),qe(e.parentElement,".lang-option-favorite-toggle","click",()=>{n=!n,n?this.favourites.add(t):this.favourites.delete(t),e.setAttribute("data-favourite",n?"true":"false"),window.$http.patch("/settings/users/update-code-language-favourite",{language:t,active:n}),this.sortLanguageList(),n&&e.scrollIntoView({block:"center",behavior:"smooth"})})}sortLanguageList(){let e=this.languageButtons.sort((t,n)=>{let o=t.dataset.favourite==="true",s=n.dataset.favourite==="true";return o&&!s?-1:s&&!o||t.dataset.lang>n.dataset.lang?1:-1}).map(t=>t.parentElement);for(let t of e)this.languageOptionsContainer.append(t)}save(){this.callback&&this.callback(this.editor.getValue(),this.languageInput.value),this.hide()}open(e,t,n){this.languageInput.value=t,this.callback=n,this.show().then(()=>this.languageInputChange(t)).then(()=>window.importVersioned("code")).then(o=>o.setContent(this.editor,e))}async show(){let e=await window.importVersioned("code");this.editor||(this.editor=e.popupEditor(this.editorInput,this.languageInput.value)),this.loadHistory(),this.popup.components.popup.show(()=>{e.updateLayout(this.editor),this.editor.focus()},()=>{this.addHistory()})}hide(){this.popup.components.popup.hide(),this.addHistory()}async updateEditorMode(e){(await window.importVersioned("code")).setMode(this.editor,e,this.editor.getValue())}languageInputChange(e){this.updateEditorMode(e);let t=e.toLowerCase();for(let n of this.languageButtons){let o=n.dataset.lang.toLowerCase().trim(),s=t===o;n.classList.toggle("active",s),s&&n.scrollIntoView({block:"center",behavior:"smooth"})}}loadHistory(){this.history=JSON.parse(window.sessionStorage.getItem(this.historyKey)||"{}");let e=Object.keys(this.history).reverse();this.historyDropDown.classList.toggle("hidden",e.length===0),this.historyList.innerHTML=e.map(t=>{let n=new Date(parseInt(t)).toLocaleTimeString();return`<li><button type="button" data-time="${t}" class="text-item">${n}</button></li>`}).join("")}addHistory(){if(!this.editor)return;let e=this.editor.getValue();if(!e)return;let t=Object.keys(this.history).pop();if(this.history[t]===e)return;this.history[String(Date.now())]=e;let n=JSON.stringify(this.history);window.sessionStorage.setItem(this.historyKey,n)}},js=hi;var pi=class{constructor(e){e.querySelectorAll("pre").length>0&&window.importVersioned("code").then(n=>{n.highlightWithin(e)})}},Hs=pi;var mi=class{async setup(){let e=this.$opts.mode;(await window.importVersioned("code")).inlineEditor(this.$el,e)}},qs=mi;var gi=class{constructor(e){this.elem=e,this.trigger=e.querySelector("[collapsible-trigger]"),this.content=e.querySelector("[collapsible-content]"),this.trigger&&(this.trigger.addEventListener("click",this.toggle.bind(this)),this.openIfContainsError())}open(){this.elem.classList.add("open"),this.trigger.setAttribute("aria-expanded","true"),mr(this.content,300)}close(){this.elem.classList.remove("open"),this.trigger.setAttribute("aria-expanded","false"),pr(this.content,300)}toggle(){this.elem.classList.contains("open")?this.close():this.open()}openIfContainsError(){this.content.querySelector(".text-neg.text-small")&&this.open()}},Vs=gi;var vi=class{setup(){this.container=this.$el,this.confirmButton=this.$refs.confirm,this.res=null,Be(this.confirmButton,()=>{this.sendResult(!0),this.getPopup().hide()})}show(){return this.getPopup().show(null,()=>{this.sendResult(!1)}),new Promise((e,t)=>{this.res=e})}getPopup(){return this.container.components.popup}sendResult(e){this.res&&(this.res(e),this.res=null)}},Gs=vi;var yi=class{constructor(e){this.elem=e,this.checkbox=e.querySelector("input[type=checkbox]"),this.display=e.querySelector('[role="checkbox"]'),this.checkbox.addEventListener("change",this.stateChange.bind(this)),this.elem.addEventListener("keydown",this.onKeyDown.bind(this))}onKeyDown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this.toggle())}toggle(){this.checkbox.checked=!this.checkbox.checked,this.checkbox.dispatchEvent(new Event("change")),this.stateChange()}stateChange(){let e=this.checkbox.checked?"true":"false";this.display.setAttribute("aria-checked",e)}},Ws=yi;var bi=class{constructor(e){this.elem=e,this.dealtWith=!1,e.addEventListener("toggle",this.onToggle.bind(this))}onToggle(){this.dealtWith||(this.elem.querySelector("pre")&&window.importVersioned("code").then(e=>{e.highlightWithin(this.elem)}),this.dealtWith=!0)}},Ys=bi;var xi=class{setup(){this.container=this.$el,this.menu=this.$refs.menu,this.toggle=this.$refs.toggle,this.moveMenu=this.$opts.moveMenu,this.bubbleEscapes=this.$opts.bubbleEscapes==="true",this.direction=document.dir==="rtl"?"right":"left",this.body=document.body,this.showing=!1,this.setupListeners(),this.hide=this.hide.bind(this)}show(e=null){this.hideAll(),this.menu.style.display="block",this.menu.classList.add("anim","menuIn"),this.toggle.setAttribute("aria-expanded","true");let t=this.menu.getBoundingClientRect(),n=0,o=this.toggle.getBoundingClientRect().height,s=t.bottom>window.innerHeight;this.moveMenu&&(this.body.appendChild(this.menu),this.menu.style.position="fixed",this.direction==="right"?this.menu.style.right=`${t.right-t.width}px`:this.menu.style.left=`${t.left}px`,this.menu.style.width=`${t.width}px`,n=s?window.innerHeight-t.top-o/2:t.top),s?(this.menu.style.top="initial",this.menu.style.bottom=`${n}px`):(this.menu.style.top=`${n}px`,this.menu.style.bottom="initial"),this.menu.addEventListener("mouseleave",this.hide.bind(this)),window.addEventListener("click",l=>{this.menu.contains(l.target)||this.hide()});let i=this.menu.querySelector("input");i!==null&&i.focus(),this.showing=!0;let a=new Event("show");this.container.dispatchEvent(a),e&&e.stopPropagation()}hideAll(){for(let e of window.components.dropdown)e.hide()}hide(){this.menu.style.display="none",this.menu.classList.remove("anim","menuIn"),this.toggle.setAttribute("aria-expanded","false"),this.menu.style.top="",this.menu.style.bottom="",this.moveMenu&&(this.menu.style.position="",this.menu.style[this.direction]="",this.menu.style.width="",this.container.appendChild(this.menu)),this.showing=!1}getFocusable(){return Array.from(this.menu.querySelectorAll('[tabindex]:not([tabindex="-1"]),[href],button,input:not([type=hidden])'))}focusNext(){let e=this.getFocusable(),n=e.indexOf(document.activeElement)+1;n>=e.length&&(n=0),e[n].focus()}focusPrevious(){let e=this.getFocusable(),n=e.indexOf(document.activeElement)-1;n<0&&(n=e.length-1),e[n].focus()}setupListeners(){this.container.addEventListener("click",t=>{Array.from(this.menu.querySelectorAll("a")).includes(t.target)&&this.hide()}),Be(this.toggle,t=>{t.stopPropagation(),this.show(t),t instanceof KeyboardEvent&&this.focusNext()});let e=t=>{t.key==="ArrowDown"||t.key==="ArrowRight"?(this.focusNext(),t.preventDefault()):t.key==="ArrowUp"||t.key==="ArrowLeft"?(this.focusPrevious(),t.preventDefault()):t.key==="Escape"&&(this.hide(),this.toggle.focus(),this.bubbleEscapes||t.stopPropagation())};this.container.addEventListener("keydown",e),this.moveMenu&&this.menu.addEventListener("keydown",e),this.menu.addEventListener("keydown ",t=>{t.key==="Enter"&&(t.preventDefault(),t.stopPropagation(),this.hide())})}},Ks=xi;var wi=class{setup(){this.elem=this.$el,this.searchInput=this.$refs.searchInput,this.loadingElem=this.$refs.loading,this.listContainerElem=this.$refs.listContainer,this.localSearchSelector=this.$opts.localSearchSelector,this.url=this.$opts.url,this.elem.addEventListener("show",this.onShow.bind(this)),this.searchInput.addEventListener("input",this.onSearch.bind(this)),this.runAjaxSearch=Ar(this.runAjaxSearch,300,!1)}onShow(){this.loadList()}onSearch(){let e=this.searchInput.value.toLowerCase().trim();this.localSearchSelector?this.runLocalSearch(e):(this.toggleLoading(!0),this.listContainerElem.innerHTML="",this.runAjaxSearch(e))}runAjaxSearch(e){this.loadList(e)}runLocalSearch(e){let t=this.listContainerElem.querySelectorAll(this.localSearchSelector);for(let n of t){let o=!e||n.textContent.toLowerCase().includes(e);n.style.display=o?"flex":"none",n.classList.toggle("hidden",!o)}}async loadList(e=""){this.listContainerElem.innerHTML="",this.toggleLoading(!0);try{let t=await window.$http.get(this.getAjaxUrl(e)),n=Us(this.listContainerElem,80);this.listContainerElem.innerHTML=t.data,n()}catch(t){console.error(t)}this.toggleLoading(!1),this.localSearchSelector&&this.onSearch()}getAjaxUrl(e=null){if(!e)return this.url;let t=this.url.includes("?")?"&":"?";return`${this.url}${t}search=${encodeURIComponent(e)}`}toggleLoading(e=!1){this.loadingElem.style.display=e?"block":"none"}},Xs=wi;var Qs=Yr(Zs());var Si=class{setup(){this.container=this.$el,this.url=this.$opts.url,this.successMessage=this.$opts.successMessage,this.removeMessage=this.$opts.removeMessage,this.uploadLimit=Number(this.$opts.uploadLimit),this.uploadLimitMessage=this.$opts.uploadLimitMessage,this.timeoutMessage=this.$opts.timeoutMessage;let e=this;this.dz=new Qs.default(this.container,{addRemoveLinks:!0,dictRemoveFile:this.removeMessage,timeout:Number(window.uploadTimeout)||6e4,maxFilesize:this.uploadLimit,url:this.url,withCredentials:!0,init(){this.dz=this,this.dz.on("sending",e.onSending.bind(e)),this.dz.on("success",e.onSuccess.bind(e)),this.dz.on("error",e.onError.bind(e))}})}onSending(e,t,n){let o=window.document.querySelector("meta[name=token]").getAttribute("content");n.append("_token",o),t.ontimeout=s=>{this.dz.emit("complete",e),this.dz.emit("error",e,this.timeoutMessage)}}onSuccess(e,t){this.$emit("success",{file:e,data:t}),this.successMessage&&window.$events.emit("success",this.successMessage),vn(e.previewElement,800,()=>{this.dz.removeFile(e)})}onError(e,t,n){this.$emit("error",{file:e,errorMessage:t,xhr:n});let o=s=>{let i=e.previewElement.querySelector("[data-dz-errormessage]");i.textContent=s};n&&n.status===413?o(this.uploadLimitMessage):t.file&&o(t.file)}removeAll(){this.dz.removeAllFiles(!0)}},Js=Si;var Ci=class{constructor(e){this.elem=e,this.buttons=e.querySelectorAll("[toolbox-tab-button]"),this.contentElements=e.querySelectorAll("[toolbox-tab-content]"),this.toggleButton=e.querySelector("[toolbox-toggle]"),this.toggleButton.addEventListener("click",this.toggle.bind(this)),this.elem.addEventListener("click",t=>{let n=t.target.closest("[toolbox-tab-button]");if(n===null)return;let o=n.getAttribute("toolbox-tab-button");this.setActiveTab(o,!0)}),this.setActiveTab(this.contentElements[0].getAttribute("toolbox-tab-content"))}toggle(){this.elem.classList.toggle("open");let e=this.elem.classList.contains("open")?"true":"false";this.toggleButton.setAttribute("aria-expanded",e)}setActiveTab(e,t=!1){for(let n=0,o=this.buttons.length;n<o;n++)this.buttons[n].classList.remove("active"),this.buttons[n].getAttribute("toolbox-tab-button")===e&&this.buttons[n].classList.add("active");for(let n=0,o=this.contentElements.length;n<o;n++)this.contentElements[n].style.display="none",this.contentElements[n].getAttribute("toolbox-tab-content")===e&&(this.contentElements[n].style.display="block");t&&!this.elem.classList.contains("open")&&this.toggle()}},ea=Ci;var Ai=class{constructor(e){this.permissionsTable=e.querySelector("[permissions-table]"),this.restrictedCheckbox=e.querySelector("[name=restricted]"),this.restrictedCheckbox.addEventListener("change",this.updateTableVisibility.bind(this))}updateTableVisibility(){this.permissionsTable.style.display=this.restrictedCheckbox.checked?null:"none"}},ta=Ai;var ki=class{setup(){this.entityId=this.$opts.entityId,this.entityType=this.$opts.entityType,this.contentView=this.$refs.contentView,this.searchView=this.$refs.searchView,this.searchResults=this.$refs.searchResults,this.searchInput=this.$refs.searchInput,this.searchForm=this.$refs.searchForm,this.clearButton=this.$refs.clearButton,this.loadingBlock=this.$refs.loadingBlock,this.setupListeners()}setupListeners(){this.searchInput.addEventListener("change",this.runSearch.bind(this)),this.searchForm.addEventListener("submit",e=>{e.preventDefault(),this.runSearch()}),Be(this.clearButton,this.clearSearch.bind(this))}runSearch(){let e=this.searchInput.value.trim();if(e.length===0)return this.clearSearch();this.searchView.classList.remove("hidden"),this.contentView.classList.add("hidden"),this.loadingBlock.classList.remove("hidden");let t=window.baseUrl(`/search/${this.entityType}/${this.entityId}`);window.$http.get(t,{term:e}).then(n=>{this.searchResults.innerHTML=n.data}).catch(console.error).then(()=>{this.loadingBlock.classList.add("hidden")})}clearSearch(){this.searchView.classList.add("hidden"),this.contentView.classList.remove("hidden"),this.loadingBlock.classList.add("hidden"),this.searchInput.value=""}},ra=ki;var Ti=class{setup(){this.elem=this.$el,this.entityTypes=this.$opts.entityTypes||"page,book,chapter",this.entityPermission=this.$opts.entityPermission||"view",this.input=this.$refs.input,this.searchInput=this.$refs.search,this.loading=this.$refs.loading,this.resultsContainer=this.$refs.results,this.addButton=this.$refs.add,this.search="",this.lastClick=0,this.selectedItemData=null,this.setupListeners(),this.showLoading(),this.initialLoad()}setupListeners(){this.elem.addEventListener("click",this.onClick.bind(this));let e=0;this.searchInput.addEventListener("input",t=>{e=Date.now(),this.showLoading(),setTimeout(()=>{Date.now()-e<199||this.searchEntities(this.searchInput.value)},200)}),this.searchInput.addEventListener("keydown",t=>{t.keyCode===13&&t.preventDefault()}),this.addButton&&this.addButton.addEventListener("click",t=>{this.selectedItemData&&(this.confirmSelection(this.selectedItemData),this.unselectAll())}),qe(this.$el,"[data-entity-type]","keydown",(t,n)=>{if(t.ctrlKey&&t.code==="Enter"){let o=this.$el.closest("form");if(o){o.submit(),t.preventDefault();return}}t.code==="ArrowDown"&&this.focusAdjacent(!0),t.code==="ArrowUp"&&this.focusAdjacent(!1)}),this.searchInput.addEventListener("keydown",t=>{t.code==="ArrowDown"&&this.focusAdjacent(!0)})}focusAdjacent(e=!0){let t=Array.from(this.resultsContainer.querySelectorAll("[data-entity-type]")),n=t.indexOf(document.activeElement),o=t[n+(e?1:-1)]||t[0];o&&o.focus()}reset(){this.searchInput.value="",this.showLoading(),this.initialLoad()}focusSearch(){this.searchInput.focus()}showLoading(){this.loading.style.display="block",this.resultsContainer.style.display="none"}hideLoading(){this.loading.style.display="none",this.resultsContainer.style.display="block"}initialLoad(){window.$http.get(this.searchUrl()).then(e=>{this.resultsContainer.innerHTML=e.data,this.hideLoading()})}searchUrl(){return`/ajax/search/entities?types=${encodeURIComponent(this.entityTypes)}&permission=${encodeURIComponent(this.entityPermission)}`}searchEntities(e){this.input.value="";let t=`${this.searchUrl()}&term=${encodeURIComponent(e)}`;window.$http.get(t).then(n=>{this.resultsContainer.innerHTML=n.data,this.hideLoading()})}isDoubleClick(){let e=Date.now(),t=e-this.lastClick<300;return this.lastClick=e,t}onClick(e){let t=e.target.closest("[data-entity-type]");t&&(e.preventDefault(),e.stopPropagation(),this.selectItem(t))}selectItem(e){let t=this.isDoubleClick(),n=e.getAttribute("data-entity-type"),o=e.getAttribute("data-entity-id"),s=!e.classList.contains("selected")||t;this.unselectAll(),this.input.value=s?`${n}:${o}`:"";let i=e.getAttribute("href"),a=e.querySelector(".entity-list-item-name").textContent,l={id:Number(o),name:a,link:i};s?(e.classList.add("selected"),this.selectedItemData=l):window.$events.emit("entity-select-change",null),!(!t&&!s)&&(t&&this.confirmSelection(l),s&&window.$events.emit("entity-select-change",l))}confirmSelection(e){window.$events.emit("entity-select-confirm",e)}unselectAll(){let e=this.elem.querySelectorAll(".selected");for(let t of e)t.classList.remove("selected","primary-background");this.selectedItemData=null}},na=Ti;var Ii=class{setup(){this.elem=this.$el,this.selectButton=this.$refs.select,window.EntitySelectorPopup=this,this.selectorEl=this.$refs.selector,this.callback=null,this.selection=null,this.selectButton.addEventListener("click",this.onSelectButtonClick.bind(this)),window.$events.listen("entity-select-change",this.onSelectionChange.bind(this)),window.$events.listen("entity-select-confirm",this.handleConfirmedSelection.bind(this))}show(e){this.callback=e,this.elem.components.popup.show(),this.getSelector().focusSearch()}hide(){this.elem.components.popup.hide()}getSelector(){return this.selectorEl.components["entity-selector"]}onSelectButtonClick(){this.handleConfirmedSelection(this.selection)}onSelectionChange(e){this.selection=e,e===null?this.selectButton.setAttribute("disabled","true"):this.selectButton.removeAttribute("disabled")}handleConfirmedSelection(e){this.hide(),this.getSelector().reset(),this.callback&&e&&this.callback(e)}},ia=Ii;var Di=class{setup(){this.container=this.$el,this.name=this.$opts.name,Be(this.$el,()=>{this.$emit(this.name,this.$opts)})}},oa=Di;var Li=class{constructor(e){this.elem=e,this.isOpen=e.getAttribute("expand-toggle-is-open")==="yes",this.updateEndpoint=e.getAttribute("expand-toggle-update-endpoint"),this.selector=e.getAttribute("expand-toggle"),e.addEventListener("click",this.click.bind(this))}open(e){mr(e,200)}close(e){pr(e,200)}click(e){e.preventDefault();let t=document.querySelectorAll(this.selector);for(let n of t)this.isOpen?this.close(n):this.open(n);this.isOpen=!this.isOpen,this.updateSystemAjax(this.isOpen)}updateSystemAjax(e){window.$http.patch(this.updateEndpoint,{expand:e?"true":"false"})}},sa=Li;var Fi=class{setup(){this.elem=this.$el,this.toggleButton=this.$refs.toggle,this.menu=this.$refs.menu,this.open=!1,this.toggleButton.addEventListener("click",this.onToggle.bind(this)),this.onWindowClick=this.onWindowClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}onToggle(e){this.open=!this.open,this.menu.classList.toggle("show",this.open),this.toggleButton.setAttribute("aria-expanded",this.open?"true":"false"),this.open?(this.elem.addEventListener("keydown",this.onKeyDown),window.addEventListener("click",this.onWindowClick)):(this.elem.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("click",this.onWindowClick)),e.stopPropagation()}onKeyDown(e){e.code==="Escape"&&this.onToggle(e)}onWindowClick(e){this.onToggle(e)}},aa=Fi;var Ri=class{constructor(e){this.elem=e,this.typeControl=e.querySelector('[name="setting-app-homepage-type"]'),this.pagePickerContainer=e.querySelector("[page-picker-container]"),this.typeControl.addEventListener("change",this.controlPagePickerVisibility.bind(this)),this.controlPagePickerVisibility()}controlPagePickerVisibility(){let e=this.typeControl.value==="page";this.pagePickerContainer.style.display=e?"block":"none"}},la=Ri;var Oi=class{setup(){this.uploadedTo=this.$opts.uploadedTo,this.container=this.$el,this.popupEl=this.$refs.popup,this.searchForm=this.$refs.searchForm,this.searchInput=this.$refs.searchInput,this.cancelSearch=this.$refs.cancelSearch,this.listContainer=this.$refs.listContainer,this.filterTabs=this.$manyRefs.filterTabs,this.selectButton=this.$refs.selectButton,this.formContainer=this.$refs.formContainer,this.dropzoneContainer=this.$refs.dropzoneContainer,this.type="gallery",this.lastSelected={},this.lastSelectedTime=0,this.callback=null,this.resetState=()=>{this.hasData=!1,this.page=1,this.filter="all"},this.resetState(),this.setupListeners(),window.ImageManager=this}setupListeners(){Be(this.filterTabs,e=>{this.resetAll(),this.filter=e.target.dataset.filter,this.setActiveFilterTab(this.filter),this.loadGallery()}),this.searchForm.addEventListener("submit",e=>{this.resetListView(),this.loadGallery(),e.preventDefault()}),Be(this.cancelSearch,e=>{this.resetListView(),this.resetSearchView(),this.loadGallery(),this.cancelSearch.classList.remove("active")}),this.searchInput.addEventListener("input",e=>{this.cancelSearch.classList.toggle("active",this.searchInput.value.trim())}),qe(this.listContainer,".load-more","click",async e=>{Cr(e.target),this.page++,await this.loadGallery(),e.target.remove()}),this.listContainer.addEventListener("event-emit-select-image",this.onImageSelectEvent.bind(this)),this.listContainer.addEventListener("error",e=>{e.target.src=baseUrl("loading_error.png")},!0),Be(this.selectButton,()=>{this.callback&&this.callback(this.lastSelected),this.hide()}),qe(this.formContainer,"#image-manager-delete","click",e=>{this.lastSelected&&this.loadImageEditForm(this.lastSelected.id,!0)}),this.formContainer.addEventListener("ajax-form-success",this.refreshGallery.bind(this)),this.container.addEventListener("dropzone-success",this.refreshGallery.bind(this))}show(e,t="gallery"){this.resetAll(),this.callback=e,this.type=t,this.popupEl.components.popup.show(),this.dropzoneContainer.classList.toggle("hidden",t!=="gallery"),this.hasData||(this.loadGallery(),this.hasData=!0)}hide(){this.popupEl.components.popup.hide()}async loadGallery(){let e={page:this.page,search:this.searchInput.value||null,uploaded_to:this.uploadedTo,filter_type:this.filter==="all"?null:this.filter},{data:t}=await window.$http.get(`images/${this.type}`,e);e.page===1&&(this.listContainer.innerHTML=""),this.addReturnedHtmlElementsToList(t),is(this.listContainer)}addReturnedHtmlElementsToList(e){let t=document.createElement("div");t.innerHTML=e,window.components.init(t);for(let n of[...t.children])this.listContainer.appendChild(n)}setActiveFilterTab(e){this.filterTabs.forEach(n=>n.classList.remove("selected"));let t=this.filterTabs.find(n=>n.dataset.filter===e);t&&t.classList.add("selected")}resetAll(){this.resetState(),this.resetListView(),this.resetSearchView(),this.resetEditForm(),this.setActiveFilterTab("all"),this.selectButton.classList.add("hidden")}resetSearchView(){this.searchInput.value=""}resetEditForm(){this.formContainer.innerHTML=""}resetListView(){Cr(this.listContainer),this.page=1}refreshGallery(){this.resetListView(),this.loadGallery()}onImageSelectEvent(e){let t=JSON.parse(e.detail.data),n=t&&t.id===this.lastSelected.id&&Date.now()-this.lastSelectedTime<400,o=e.target.classList.contains("selected");[...this.listContainer.querySelectorAll(".selected")].forEach(s=>{s.classList.remove("selected")}),o?this.resetEditForm():(e.target.classList.add("selected"),this.loadImageEditForm(t.id)),this.selectButton.classList.toggle("hidden",o),n&&this.callback&&(this.callback(t),this.hide()),this.lastSelected=t,this.lastSelectedTime=Date.now()}async loadImageEditForm(e,t=!1){t||(this.formContainer.innerHTML="");let n=t?{delete:!0}:{},{data:o}=await window.$http.get(`/images/edit/${e}`,n);this.formContainer.innerHTML=o,window.components.init(this.formContainer)}},ua=Oi;var Pi=class{constructor(e){this.elem=e,this.imageElem=e.querySelector("img"),this.imageInput=e.querySelector("input[type=file]"),this.resetInput=e.querySelector("input[data-reset-input]"),this.removeInput=e.querySelector("input[data-remove-input]"),this.defaultImage=e.getAttribute("data-default-image"),e.querySelector('button[data-action="reset-image"]').addEventListener("click",this.reset.bind(this));let n=e.querySelector('button[data-action="remove-image"]');n&&n.addEventListener("click",this.removeImage.bind(this)),this.imageInput.addEventListener("change",this.fileInputChange.bind(this))}fileInputChange(){this.resetInput.setAttribute("disabled","disabled"),this.removeInput&&this.removeInput.setAttribute("disabled","disabled");for(let e of this.imageInput.files)this.imageElem.src=window.URL.createObjectURL(e);this.imageElem.classList.remove("none")}reset(){this.imageInput.value="",this.imageElem.src=this.defaultImage,this.resetInput.removeAttribute("disabled"),this.removeInput&&this.removeInput.setAttribute("disabled","disabled"),this.imageElem.classList.remove("none")}removeImage(){this.imageInput.value="",this.imageElem.classList.add("none"),this.removeInput.removeAttribute("disabled"),this.resetInput.setAttribute("disabled","disabled")}},ca=Pi;var Mi=class{constructor(e){this.elem=e,this.menu=e.querySelector("ul"),this.sortInput=e.querySelector('[name="sort"]'),this.orderInput=e.querySelector('[name="order"]'),this.form=e.querySelector("form"),this.menu.addEventListener("click",t=>{t.target.closest("[data-sort-value]")!==null&&this.sortOptionClick(t)}),this.elem.addEventListener("click",t=>{t.target.closest("[data-sort-dir]")!==null&&this.sortDirectionClick(t)})}sortOptionClick(e){let t=e.target.closest("[data-sort-value]");this.sortInput.value=t.getAttribute("data-sort-value"),e.preventDefault(),this.form.submit()}sortDirectionClick(e){let n=this.orderInput.value==="asc"?"desc":"asc";this.orderInput.value=n,e.preventDefault(),this.form.submit()}},da=Mi;var Dc=Yr(vc()),Lc=Yr(Ec());var ho=class{constructor(e){this.data=e}hasItems(){return Boolean(this.data)&&Boolean(this.data.types)&&this.data.types.length>0}containsTabularData(){let e=this.data.getData("text/rtf");return e&&e.includes("\\trowd")}getImages(){let e=this.data.types,t=this.data.files,n=[];for(let o of e)if(o.includes("image")){let s=this.data.getData(o);n.push(s.getAsFile())}for(let o of t)o.type.includes("image")&&n.push(o);return n}},Hr=ho;function Hp(r,e){return document.createElement(r,e)}function qp(r,e,t){return document.createElementNS(r,e,t)}function Vp(){return document.createDocumentFragment()}function Gp(r){return document.createTextNode(r)}function Wp(r){return document.createComment(r)}function Yp(r,e,t){r.insertBefore(e,t)}function Kp(r,e){r.removeChild(e)}function Xp(r,e){r.appendChild(e)}function Zp(r){return r.parentNode}function Qp(r){return r.nextSibling}function Jp(r){return r.tagName}function em(r,e){r.textContent=e}function tm(r){return r.textContent}function rm(r){return r.nodeType===1}function nm(r){return r.nodeType===3}function im(r){return r.nodeType===8}function om(r){return r.nodeType===11}var On={createElement:Hp,createElementNS:qp,createTextNode:Gp,createDocumentFragment:Vp,createComment:Wp,insertBefore:Yp,removeChild:Kp,appendChild:Xp,parentNode:Zp,nextSibling:Qp,tagName:Jp,setTextContent:em,getTextContent:tm,isElement:rm,isText:nm,isComment:im,isDocumentFragment:om};function qt(r,e,t,n,o){let s=e===void 0?void 0:e.key;return{sel:r,data:e,children:t,text:n,elm:o,key:s}}var Sc=Array.isArray;function Cc(r){return typeof r=="string"||typeof r=="number"||r instanceof String||r instanceof Number}function po(r){return r===void 0}function pt(r){return r!==void 0}var mo=qt("",{},[],void 0,void 0);function qr(r,e){var t,n;let o=r.key===e.key,s=((t=r.data)===null||t===void 0?void 0:t.is)===((n=e.data)===null||n===void 0?void 0:n.is);return r.sel===e.sel&&o&&s}function am(){throw new Error("The document fragment is not supported on this platform.")}function lm(r,e){return r.isElement(e)}function um(r,e){return r.isDocumentFragment(e)}function cm(r,e,t){var n;let o={};for(let s=e;s<=t;++s){let i=(n=r[s])===null||n===void 0?void 0:n.key;i!==void 0&&(o[i]=s)}return o}var dm=["create","update","remove","destroy","pre","post"];function go(r,e,t){let n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},o=e!==void 0?e:On;for(let p of dm)for(let m of r){let v=m[p];v!==void 0&&n[p].push(v)}function s(p){let m=p.id?"#"+p.id:"",v=p.getAttribute("class"),b=v?"."+v.split(" ").join("."):"";return qt(o.tagName(p).toLowerCase()+m+b,{},[],void 0,p)}function i(p){return qt(void 0,{},[],void 0,p)}function a(p,m){return function(){if(--m===0){let b=o.parentNode(p);o.removeChild(b,p)}}}function l(p,m){var v,b,x,C;let S,M=p.data;if(M!==void 0){let k=(v=M.hook)===null||v===void 0?void 0:v.init;pt(k)&&(k(p),M=p.data)}let A=p.children,O=p.sel;if(O==="!")po(p.text)&&(p.text=""),p.elm=o.createComment(p.text);else if(O!==void 0){let k=O.indexOf("#"),D=O.indexOf(".",k),I=k>0?k:O.length,P=D>0?D:O.length,N=k!==-1||D!==-1?O.slice(0,Math.min(I,P)):O,B=p.elm=pt(M)&&pt(S=M.ns)?o.createElementNS(S,N,M):o.createElement(N,M);for(I<P&&B.setAttribute("id",O.slice(I+1,P)),D>0&&B.setAttribute("class",O.slice(P+1).replace(/\./g," ")),S=0;S<n.create.length;++S)n.create[S](mo,p);if(Sc(A))for(S=0;S<A.length;++S){let Z=A[S];Z!=null&&o.appendChild(B,l(Z,m))}else Cc(p.text)&&o.appendChild(B,o.createTextNode(p.text));let H=p.data.hook;pt(H)&&((b=H.create)===null||b===void 0||b.call(H,mo,p),H.insert&&m.push(p))}else if(((x=t?.experimental)===null||x===void 0?void 0:x.fragments)&&p.children){let k=p.children;for(p.elm=((C=o.createDocumentFragment)!==null&&C!==void 0?C:am)(),S=0;S<n.create.length;++S)n.create[S](mo,p);for(S=0;S<k.length;++S){let D=k[S];D!=null&&o.appendChild(p.elm,l(D,m))}}else p.elm=o.createTextNode(p.text);return p.elm}function u(p,m,v,b,x,C){for(;b<=x;++b){let S=v[b];S!=null&&o.insertBefore(p,l(S,C),m)}}function c(p){var m,v;let b=p.data;if(b!==void 0){(v=(m=b?.hook)===null||m===void 0?void 0:m.destroy)===null||v===void 0||v.call(m,p);for(let x=0;x<n.destroy.length;++x)n.destroy[x](p);if(p.children!==void 0)for(let x=0;x<p.children.length;++x){let C=p.children[x];C!=null&&typeof C!="string"&&c(C)}}}function f(p,m,v,b){for(var x,C;v<=b;++v){let S,M,A=m[v];if(A!=null)if(pt(A.sel)){c(A),S=n.remove.length+1,M=a(A.elm,S);for(let k=0;k<n.remove.length;++k)n.remove[k](A,M);let O=(C=(x=A?.data)===null||x===void 0?void 0:x.hook)===null||C===void 0?void 0:C.remove;pt(O)?O(A,M):M()}else o.removeChild(p,A.elm)}}function h(p,m,v,b){let x=0,C=0,S=m.length-1,M=m[0],A=m[S],O=v.length-1,k=v[0],D=v[O],I,P,N,B;for(;x<=S&&C<=O;)M==null?M=m[++x]:A==null?A=m[--S]:k==null?k=v[++C]:D==null?D=v[--O]:qr(M,k)?(d(M,k,b),M=m[++x],k=v[++C]):qr(A,D)?(d(A,D,b),A=m[--S],D=v[--O]):qr(M,D)?(d(M,D,b),o.insertBefore(p,M.elm,o.nextSibling(A.elm)),M=m[++x],D=v[--O]):qr(A,k)?(d(A,k,b),o.insertBefore(p,A.elm,M.elm),A=m[--S],k=v[++C]):(I===void 0&&(I=cm(m,x,S)),P=I[k.key],po(P)?o.insertBefore(p,l(k,b),M.elm):(N=m[P],N.sel!==k.sel?o.insertBefore(p,l(k,b),M.elm):(d(N,k,b),m[P]=void 0,o.insertBefore(p,N.elm,M.elm))),k=v[++C]);C<=O&&(B=v[O+1]==null?null:v[O+1].elm,u(p,B,v,C,O,b)),x<=S&&f(p,m,x,S)}function d(p,m,v){var b,x,C,S,M,A,O,k;let D=(b=m.data)===null||b===void 0?void 0:b.hook;(x=D?.prepatch)===null||x===void 0||x.call(D,p,m);let I=m.elm=p.elm,P=p.children,N=m.children;if(p!==m){if(m.data!==void 0||pt(m.text)&&m.text!==p.text){(C=m.data)!==null&&C!==void 0||(m.data={}),(S=p.data)!==null&&S!==void 0||(p.data={});for(let B=0;B<n.update.length;++B)n.update[B](p,m);(O=(A=(M=m.data)===null||M===void 0?void 0:M.hook)===null||A===void 0?void 0:A.update)===null||O===void 0||O.call(A,p,m)}po(m.text)?pt(P)&&pt(N)?P!==N&&h(I,P,N,v):pt(N)?(pt(p.text)&&o.setTextContent(I,""),u(I,null,N,0,N.length-1,v)):pt(P)?f(I,P,0,P.length-1):pt(p.text)&&o.setTextContent(I,""):p.text!==m.text&&(pt(P)&&f(I,P,0,P.length-1),o.setTextContent(I,m.text)),(k=D?.postpatch)===null||k===void 0||k.call(D,p,m)}}return function(m,v){let b,x,C,S=[];for(b=0;b<n.pre.length;++b)n.pre[b]();for(lm(o,m)?m=s(m):um(o,m)&&(m=i(m)),qr(m,v)?d(m,v,S):(x=m.elm,C=o.parentNode(x),l(v,S),C!==null&&(o.insertBefore(C,v.elm,o.nextSibling(x)),f(C,[m],0,0))),b=0;b<S.length;++b)S[b].data.hook.insert(S[b]);for(b=0;b<n.post.length;++b)n.post[b]();return v}}function vo(r,e,t){if(r.ns="http://www.w3.org/2000/svg",t!=="foreignObject"&&e!==void 0)for(let n=0;n<e.length;++n){let o=e[n];if(typeof o=="string")continue;let s=o.data;s!==void 0&&vo(s,o.children,o.sel)}}function Vr(r,e){let t=e!==void 0?e:On,n;if(t.isElement(r)){let o=r.id?"#"+r.id:"",s=r.getAttribute("class"),i=s?"."+s.split(" ").join("."):"",a=t.tagName(r).toLowerCase()+o+i,l={},u={},c={},f=[],h,d,p,m=r.attributes,v=r.childNodes;for(d=0,p=m.length;d<p;d++)h=m[d].nodeName,h[0]==="d"&&h[1]==="a"&&h[2]==="t"&&h[3]==="a"&&h[4]==="-"?u[h.slice(5)]=m[d].nodeValue||"":h!=="id"&&h!=="class"&&(l[h]=m[d].nodeValue);for(d=0,p=v.length;d<p;d++)f.push(Vr(v[d],e));return Object.keys(l).length>0&&(c.attrs=l),Object.keys(u).length>0&&(c.datasets=u),a[0]==="s"&&a[1]==="v"&&a[2]==="g"&&(a.length===3||a[3]==="."||a[3]==="#")&&vo(c,f,a),qt(a,c,f,void 0,r)}else return t.isText(r)?(n=t.getTextContent(r),qt(void 0,void 0,void 0,n,r)):t.isComment(r)?(n=t.getTextContent(r),qt("!",{},[],n,r)):qt("",{},[],void 0,r)}var fm="http://www.w3.org/1999/xlink",hm="http://www.w3.org/XML/1998/namespace";function Ac(r,e){let t,n=e.elm,o=r.data.attrs,s=e.data.attrs;if(!(!o&&!s)&&o!==s){o=o||{},s=s||{};for(t in s){let i=s[t];o[t]!==i&&(i===!0?n.setAttribute(t,""):i===!1?n.removeAttribute(t):t.charCodeAt(0)!==120?n.setAttribute(t,i):t.charCodeAt(3)===58?n.setAttributeNS(hm,t,i):t.charCodeAt(5)===58?n.setAttributeNS(fm,t,i):n.setAttribute(t,i))}for(t in o)t in s||n.removeAttribute(t)}}var yo={create:Ac,update:Ac};var Pn;function pm(){return Pn||(Pn=go([yo]),Pn)}function kc(r,e){let t=document.createElement("div");t.innerHTML=e,pm()(Vr(r),Vr(t))}var _t=null,wo,bo,xo;function mm(r,e,t){bo=e,xo=t,_t=document.createElement("iframe"),_t.setAttribute("frameborder","0"),window.addEventListener("message",Tc),_t.setAttribute("src",r),_t.setAttribute("class","fullscreen"),_t.style.backgroundColor="#FFFFFF",document.body.appendChild(_t),wo=new URL(r).origin}function gm(){Ic()}function Tc(r){if(!r.data||r.data.length<1||r.origin!==wo)return;let e=JSON.parse(r.data);e.event==="init"?bm():e.event==="exit"?Ic():e.event==="save"?ym(e):e.event==="export"?vm(e):e.event==="configure"&&xm()}function vm(r){xo&&xo(r.data)}function ym(r){Eo({action:"export",format:"xmlpng",xml:r.xml,spin:"Updating drawing"})}function bm(){!bo||bo().then(r=>{Eo({action:"load",autosave:1,xml:r})})}function xm(){let r={};window.$events.emitPublic(_t,"editor-drawio::configure",{config:r}),Eo({action:"configure",config:r})}function Ic(){window.removeEventListener("message",Tc),_t&&document.body.removeChild(_t)}function Eo(r){_t.contentWindow.postMessage(JSON.stringify(r),wo)}async function wm(r,e){let t={image:r,uploaded_to:e};return(await window.$http.post(window.baseUrl("/images/drawio"),t)).data}async function Em(r){return`data:image/png;base64,${(await window.$http.get(window.baseUrl(`/images/drawio/base64/${r}`))).data.content}`}var bt={show:mm,close:gm,upload:wm,load:Em};var So=class{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.imageUploadErrorText=this.$opts.imageUploadErrorText,this.serverUploadLimitText=this.$opts.serverUploadLimitText,this.markdown=new Dc.default({html:!0}),this.markdown.use(Lc.default,{label:!0}),this.display=this.elem.querySelector(".markdown-display"),this.displayStylesLoaded=!1,this.input=this.elem.querySelector("textarea"),this.cm=null,this.Code=null;let e=window.importVersioned("code").then(n=>(this.cm=n.markdownEditor(this.input),this.Code=n,this.cm));this.onMarkdownScroll=this.onMarkdownScroll.bind(this);let t=()=>{this.displayDoc=this.display.contentDocument,this.init(e)};this.display.contentDocument.readyState==="complete"?t():this.display.addEventListener("load",t.bind(this)),window.$events.emitPublic(this.elem,"editor-markdown::setup",{markdownIt:this.markdown,displayEl:this.display,codeMirrorInstance:this.cm})}init(e){let t=0;this.displayDoc.addEventListener("click",s=>{let i=Date.now()-t<300,a=s.target.closest("a");if(a!==null){s.preventDefault(),window.open(a.getAttribute("href"));return}let l=s.target.closest("[drawio-diagram]");if(l!==null&&i){this.actionEditDrawing(l);return}t=Date.now()}),this.elem.addEventListener("click",s=>{let i=s.target.closest("button[data-action]");if(i===null)return;let a=i.getAttribute("data-action");if(a==="insertImage"&&this.actionInsertImage(),a==="insertLink"&&this.actionShowLinkSelector(),a==="insertDrawing"&&(s.ctrlKey||s.metaKey)){this.actionShowImageManager();return}a==="insertDrawing"&&this.actionStartDrawing(),a==="fullscreen"&&this.actionFullScreen()}),this.elem.addEventListener("click",s=>{let i=s.target.closest(".editor-toolbar-label");if(!i)return;let a=this.elem.querySelectorAll(".markdown-editor-wrap");for(let l of a)l.classList.remove("active");i.closest(".markdown-editor-wrap").classList.add("active")}),e.then(s=>{this.codeMirrorSetup(s);let i=Ar(()=>this.Code.updateLayout(s),100,!1);new ResizeObserver(i).observe(this.elem)}),this.listenForBookStackEditorEvents();let o=new URL(window.location).searchParams.get("content-text");o&&this.scrollToText(o)}updateAndRender(){let e=this.cm.getValue();this.input.value=e;let t=this.markdown.render(e);window.$events.emit("editor-html-change",t),window.$events.emit("editor-markdown-change",e);let n=this.getDisplayTarget();this.displayDoc.body.className="page-content",kc(n,t),this.loadStylesIntoDisplay()}getDisplayTarget(){let e=this.displayDoc.body;if(e.children.length===0){let t=document.createElement("div");this.displayDoc.body.append(t)}return e.children[0]}loadStylesIntoDisplay(){if(this.displayStylesLoaded)return;this.displayDoc.documentElement.classList.add("markdown-editor-display"),document.documentElement.classList.contains("dark-mode")&&(this.displayDoc.documentElement.style.backgroundColor="#222",this.displayDoc.documentElement.classList.add("dark-mode")),this.displayDoc.head.innerHTML="";let e=document.head.querySelectorAll("style,link[rel=stylesheet]");for(let t of e){let n=t.cloneNode(!0);this.displayDoc.head.appendChild(n)}this.displayStylesLoaded=!0}onMarkdownScroll(e){let t=this.displayDoc.body.children;if(t.length<=e)return;(e===-1?t[t.length-1]:t[e]).scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}codeMirrorSetup(e){let t=this;e.setOption("direction","ltr");let n=this.Code.getMetaKey(),o={};o[`${n}-Alt-I`]=function(d){let m=``,v=d.getCursor("from");d.replaceSelection(m),d.setCursor(v.line,v.ch+m.length-1)},o[`${n}-S`]=d=>{window.$events.emit("editor-save-draft")},o[`${n}-Enter`]=d=>{window.$events.emit("editor-save-page")},o[`Shift-${n}-K`]=d=>{this.actionShowLinkSelector()},o[`${n}-K`]=d=>{h()},o[`${n}-1`]=d=>{a("##")},o[`${n}-2`]=d=>{a("###")},o[`${n}-3`]=d=>{a("####")},o[`${n}-4`]=d=>{a("#####")},o[`${n}-5`]=d=>{a("")},o[`${n}-D`]=d=>{a("")},o[`${n}-6`]=d=>{a(">")},o[`${n}-Q`]=d=>{a(">")},o[`${n}-7`]=d=>{u("\n```\n","\n```")},o[`${n}-8`]=d=>{u("`","`")},o[`Shift-${n}-E`]=d=>{u("`","`")},o[`${n}-9`]=d=>{u('<p class="callout info">',"</p>")},o[`${n}-P`]=d=>{a("-")},o[`${n}-O`]=d=>{c()},e.setOption("extraKeys",o),e.on("change",(d,p)=>{this.updateAndRender()});let s=Ar(d=>{let p=d.getScrollInfo();if(p.top+p.clientHeight===p.height){this.onMarkdownScroll(-1);return}let v=d.lineAtHeight(p.top,"local"),b=d.getRange({line:0,ch:null},{line:v,ch:null}),S=new DOMParser().parseFromString(this.markdown.render(b),"text/html").documentElement.querySelectorAll("body > *");this.onMarkdownScroll(S.length)},100);e.on("scroll",d=>{s(d)}),e.on("paste",(d,p)=>{let m=new Hr(p.clipboardData||p.dataTransfer);if(!m.hasItems()||m.containsTabularData())return;let v=m.getImages();for(let b of v)f(b)}),e.on("drop",(d,p)=>{let m=p.dataTransfer.getData("bookstack/template");if(m){let b=d.coordsChar({left:p.pageX,top:p.pageY});d.setCursor(b),p.preventDefault(),window.$http.get(`/templates/${m}`).then(x=>{let C=x.data.markdown||x.data.html;d.replaceSelection(C)})}let v=new Hr(p.dataTransfer);if(v.hasItems()&&v.getImages().length>0){let b=d.coordsChar({left:p.pageX,top:p.pageY});d.setCursor(b),p.stopPropagation(),p.preventDefault();let x=v.getImages();for(let C of x)f(C)}});function i(d,p){let m=e.getValue(),v=e.listSelections();e.setValue(m.replace(d,p)),e.setSelections(v)}function a(d){let p=e.getCursor(),m=e.getLine(p.line),v=m.length,b=m.split(" ")[0];if(b===d){m=m.replace(`${d} `,""),e.replaceRange(m,{line:p.line,ch:0},{line:p.line,ch:v}),e.setCursor({line:p.line,ch:p.ch-(d.length+1)});return}let x=/^[#>`]/.test(b),C=0;x?(C=d.length-b.length,m=m.replace(b,d).trim()):d!==""&&(C=d.length+1,m=d+" "+m),e.replaceRange(m,{line:p.line,ch:0},{line:p.line,ch:v}),e.setCursor({line:p.line,ch:p.ch+C})}function l(d,p){let m=e.getCursor(),v=e.getLine(m.line),b=v.length,x=v;v.indexOf(d)===0&&v.slice(-p.length)===p?x=v.slice(d.length,v.length-p.length):x=`${d}${v}${p}`,e.replaceRange(x,{line:m.line,ch:0},{line:m.line,ch:b}),e.setCursor({line:m.line,ch:m.ch+d.length})}function u(d,p){let m=e.getSelection();if(m==="")return l(d,p);let v=m,b=0,x=0;m.indexOf(d)===0&&m.slice(-p.length)===p?(v=m.slice(d.length,m.length-p.length),x=-(p.length+d.length)):(v=`${d}${m}${p}`,x=d.length+p.length);let C=e.listSelections()[0];e.replaceSelection(v);let S=C.head.ch<=C.anchor.ch;C.head.ch+=S?b:x,C.anchor.ch+=S?x:b,e.setSelections([C])}function c(){let d=e.getCursor(),m=(e.getLine(d.line-1)||"").match(/^(\s*)(\d)([).])\s/)||[],v=(Number(m[2])||0)+1,b=m[1]||"",x=m[3]||".",C=`${b}${v}${x}`;return a(C)}function f(d){if(d===null||d.type.indexOf("image")!==0)return;let p="png";if(d.name){let A=d.name.match(/\.(.+)$/);A.length>1&&(p=A[1])}let m="image-"+Math.random().toString(16).slice(2),v=window.baseUrl(`/loading.gif#upload${m}`),b=e.getSelection(),x=``,C=e.getCursor();e.replaceSelection(x),e.setCursor({line:C.line,ch:C.ch+b.length+3});let S="image-"+Date.now()+"."+p,M=new FormData;M.append("file",d,S),M.append("uploaded_to",t.pageId),window.$http.post("/images/gallery",M).then(A=>{let O=`[](${A.data.url})`;i(x,O)}).catch(A=>{window.$events.emit("error",t.imageUploadErrorText),i(x,b),console.log(A)})}function h(){let d=e.getCursor("from"),p=e.getSelection()||"",m=`[${p}]()`;e.focus(),e.replaceSelection(m);let v=p===""?-3:-1;e.setCursor(d.line,d.ch+m.length+v)}this.updateAndRender()}actionInsertImage(){let e=this.cm.getCursor("from");window.ImageManager.show(t=>{let n=t.thumbs.display||t.url,o=this.cm.getSelection(),s="[]("+t.url+")";this.cm.focus(),this.cm.replaceSelection(s),this.cm.setCursor(e.line,e.ch+s.length)},"gallery")}actionShowImageManager(){let e=this.cm.getCursor("from");window.ImageManager.show(t=>{this.insertDrawing(t,e)},"drawio")}actionShowLinkSelector(){let e=this.cm.getCursor("from");window.EntitySelectorPopup.show(t=>{let o=`[${this.cm.getSelection()||t.name}](${t.link})`;this.cm.focus(),this.cm.replaceSelection(o),this.cm.setCursor(e.line,e.ch+o.length)})}getDrawioUrl(){let e=document.querySelector("[drawio-url]");return e?e.getAttribute("drawio-url"):!1}actionStartDrawing(){let e=this.getDrawioUrl();if(!e)return;let t=this.cm.getCursor("from");bt.show(e,()=>Promise.resolve(""),n=>{let o={image:n,uploaded_to:Number(this.pageId)};window.$http.post("/images/drawio",o).then(s=>{this.insertDrawing(s.data,t),bt.close()}).catch(s=>{this.handleDrawingUploadError(s)})})}insertDrawing(e,t){let n=`<div drawio-diagram="${e.id}"><img src="${e.url}"></div>`;this.cm.focus(),this.cm.replaceSelection(n),this.cm.setCursor(t.line,t.ch+n.length)}actionEditDrawing(e){let t=this.getDrawioUrl();if(!t)return;let n=this.cm.getCursor("from"),o=e.getAttribute("drawio-diagram");bt.show(t,()=>bt.load(o),s=>{let i={image:s,uploaded_to:Number(this.pageId)};window.$http.post("/images/drawio",i).then(a=>{let l=`<div drawio-diagram="${a.data.id}"><img src="${a.data.url}"></div>`,u=this.cm.getValue().split(`
`).map(c=>c.indexOf(`drawio-diagram="${o}"`)!==-1?l:c).join(`
`);this.cm.setValue(u),this.cm.setCursor(n),this.cm.focus(),bt.close()}).catch(a=>{this.handleDrawingUploadError(a)})})}handleDrawingUploadError(e){e.status===413?window.$events.emit("error",this.serverUploadLimitText):window.$events.emit("error",this.imageUploadErrorText),console.log(e)}actionFullScreen(){let e=this.elem.classList.contains("fullscreen");this.elem.classList.toggle("fullscreen",!e),document.body.classList.toggle("markdown-fullscreen",!e)}scrollToText(e){if(!e)return;let n=this.cm.getValue().split(/\r?\n/),o=n.findIndex(s=>s&&s.indexOf(e)!==-1);o!==-1&&(this.cm.scrollIntoView({line:o},200),this.cm.focus(),this.cm.setCursor({line:o,char:n[o].length}))}listenForBookStackEditorEvents(){function e({html:t,markdown:n}){return n||t}window.$events.listen("editor::replace",t=>{let n=e(t);this.cm.setValue(n)}),window.$events.listen("editor::append",t=>{let n=this.cm.getCursor("from"),o=e(t),s=this.cm.getValue()+`
`+o;this.cm.setValue(s),this.cm.setCursor(n.line,n.ch)}),window.$events.listen("editor::prepend",t=>{let n=this.cm.getCursor("from"),o=e(t),s=o+`
`+this.cm.getValue();this.cm.setValue(s);let i=o.split(`
`).length;this.cm.setCursor(n.line+i,n.ch)}),window.$events.listen("editor::insert",t=>{let n=e(t);this.cm.replaceSelection(n)}),window.$events.listen("editor::focus",()=>{this.cm.focus()})}},Fc=So;var Co=class{constructor(e){this.elem=e,this.inviteOption=e.querySelector("input[name=send_invite]"),this.inviteOption&&(this.inviteOption.addEventListener("change",this.inviteOptionChange.bind(this)),this.inviteOptionChange())}inviteOptionChange(){let e=this.inviteOption.value==="true",t=this.elem.querySelectorAll("input[type=password]");for(let o of t)o.disabled=e;let n=this.elem.querySelector("#password-input-container");n&&(n.style.display=e?"none":"block")}},Rc=Co;var Ao=class{constructor(e){this.elem=e,this.type=e.getAttribute("notification"),this.textElem=e.querySelector("span"),this.autohide=this.elem.hasAttribute("data-autohide"),this.elem.style.display="grid",window.$events.listen(this.type,t=>{this.show(t)}),e.addEventListener("click",this.hide.bind(this)),e.hasAttribute("data-show")&&setTimeout(()=>this.show(this.textElem.textContent),100),this.hideCleanup=this.hideCleanup.bind(this)}show(e=""){if(this.elem.removeEventListener("transitionend",this.hideCleanup),this.textElem.textContent=e,this.elem.style.display="grid",setTimeout(()=>{this.elem.classList.add("showing")},1),this.autohide){let t=e.split(" ").length,n=Math.max(2e3,1e3+250*t);setTimeout(this.hide.bind(this),n)}}hide(){this.elem.classList.remove("showing"),this.elem.addEventListener("transitionend",this.hideCleanup)}hideCleanup(){this.elem.style.display="none",this.elem.removeEventListener("transitionend",this.hideCleanup)}},Oc=Ao;var ko=class{setup(){this.removeButton=this.$refs.remove,this.showButton=this.$refs.show,this.input=this.$refs.input,this.setupListeners()}setupListeners(){Be(this.removeButton,()=>{this.input.value="",this.input.classList.add("hidden"),this.removeButton.classList.add("hidden"),this.showButton.classList.remove("hidden")}),Be(this.showButton,()=>{this.input.classList.remove("hidden"),this.removeButton.classList.remove("hidden"),this.showButton.classList.add("hidden")})}},Pc=ko;var To=class{setup(){this.elem=this.$el,this.pageId=Number(this.$opts.pageId),this.container=this.$refs.commentContainer,this.formContainer=this.$refs.formContainer,this.commentCountBar=this.$refs.commentCountBar,this.addButtonContainer=this.$refs.addButtonContainer,this.replyToRow=this.$refs.replyToRow,this.updatedText=this.$opts.updatedText,this.deletedText=this.$opts.deletedText,this.createdText=this.$opts.createdText,this.countText=this.$opts.countText,this.editingComment=null,this.parentId=null,this.formContainer&&(this.form=this.formContainer.querySelector("form"),this.formInput=this.form.querySelector("textarea"),this.form.addEventListener("submit",this.saveComment.bind(this))),this.elem.addEventListener("click",this.handleAction.bind(this)),this.elem.addEventListener("submit",this.updateComment.bind(this))}handleAction(e){let t=e.target.closest("[action]");if(e.target.matches('a[href^="#"]')){let s=e.target.href.split("#")[1];kr(document.querySelector("#"+s))}if(t===null)return;e.preventDefault();let n=t.getAttribute("action"),o=t.closest("[comment]");n==="edit"&&this.editComment(o),n==="closeUpdateForm"&&this.closeUpdateForm(),n==="delete"&&this.deleteComment(o),n==="addComment"&&this.showForm(),n==="hideForm"&&this.hideForm(),n==="reply"&&this.setReply(o),n==="remove-reply-to"&&this.removeReplyTo()}closeUpdateForm(){!this.editingComment||(this.editingComment.querySelector("[comment-content]").style.display="block",this.editingComment.querySelector("[comment-edit-container]").style.display="none")}editComment(e){this.hideForm(),this.editingComment&&this.closeUpdateForm(),e.querySelector("[comment-content]").style.display="none",e.querySelector("[comment-edit-container]").style.display="block";let t=e.querySelector("[comment-edit-container] textarea"),n=t.value.split(`
-`).length;t.style.height=n*20+40+"px",this.editingComment=e}updateComment(e){let t=e.target;e.preventDefault();let o={text:t.querySelector("textarea").value,parent_id:this.parentId||null};this.showLoading(t);let s=this.editingComment.getAttribute("comment");window.$http.put(`/comment/${s}`,o).then(i=>{let a=document.createElement("div");a.innerHTML=i.data,this.editingComment.innerHTML=a.children[0].innerHTML,window.$events.success(this.updatedText),window.components.init(this.editingComment),this.closeUpdateForm(),this.editingComment=null}).catch(window.$events.showValidationErrors).then(()=>{this.hideLoading(t)})}deleteComment(e){let t=e.getAttribute("comment");this.showLoading(e.querySelector("[comment-content]")),window.$http.delete(`/comment/${t}`).then(n=>{e.parentNode.removeChild(e),window.$events.success(this.deletedText),this.updateCount(),this.hideForm()})}saveComment(e){e.preventDefault(),e.stopPropagation();let n={text:this.formInput.value,parent_id:this.parentId||null};this.showLoading(this.form),window.$http.post(`/comment/${this.pageId}`,n).then(o=>{let s=document.createElement("div");s.innerHTML=o.data;let i=s.children[0];this.container.appendChild(i),window.components.init(i),window.$events.success(this.createdText),this.resetForm(),this.updateCount()}).catch(o=>{window.$events.showValidationErrors(o),this.hideLoading(this.form)})}updateCount(){let e=this.container.children.length;this.elem.querySelector("[comments-title]").textContent=window.trans_plural(this.countText,e,{count:e})}resetForm(){this.formInput.value="",this.formContainer.appendChild(this.form),this.hideForm(),this.removeReplyTo(),this.hideLoading(this.form)}showForm(){this.formContainer.style.display="block",this.formContainer.parentNode.style.display="block",this.addButtonContainer.style.display="none",this.formInput.focus(),this.formInput.scrollIntoView({behavior:"smooth"})}hideForm(){this.formContainer.style.display="none",this.formContainer.parentNode.style.display="none",this.getCommentCount()>0?this.elem.appendChild(this.addButtonContainer):this.commentCountBar.appendChild(this.addButtonContainer),this.addButtonContainer.style.display="block"}getCommentCount(){return this.elem.querySelectorAll(".comment-box[comment]").length}setReply(e){this.showForm(),this.parentId=Number(e.getAttribute("local-id")),this.replyToRow.style.display="block";let t=this.replyToRow.querySelector("a");t.textContent=`#${this.parentId}`,t.href=`#comment${this.parentId}`}removeReplyTo(){this.parentId=null,this.replyToRow.style.display="none"}showLoading(e){let t=e.querySelectorAll(".form-group");for(let n of t)n.style.display="none";e.querySelector(".form-group.loading").style.display="block"}hideLoading(e){let t=e.querySelectorAll(".form-group");for(let n of t)n.style.display="block";e.querySelector(".form-group.loading").style.display="none"}},Mc=To;var Nc=Yr(_c());var Do=class{constructor(e){if(this.elem=e,this.pageId=e.getAttribute("page-display"),window.importVersioned("code").then(n=>n.highlight()),this.setupPointer(),this.setupNavHighlighting(),this.setupDetailsCodeBlockRefresh(),window.location.hash){let n=window.location.hash.replace(/\%20/g," ").substr(1);this.goToText(n)}let t=document.querySelector(".sidebar-page-nav");t&&We(t,"a","click",(n,o)=>{n.preventDefault(),window.components["tri-layout"][0].showContent();let s=o.getAttribute("href").substr(1);this.goToText(s),window.history.pushState(null,null,"#"+s)})}goToText(e){let t=document.getElementById(e);if(Zr(".page-content [data-highlighted]",n=>{n.removeAttribute("data-highlighted"),n.style.backgroundColor=null}),t!==null)kr(t);else{let n=ns(".page-content > div > *",e);n&&kr(n)}}setupPointer(){let e=document.getElementById("pointer");if(!e)return;e=e.parentNode.removeChild(e);let t=e.querySelector("div.pointer"),n=!1,o=!1,s=!0,i="";We(e,"input","click",(l,u)=>{u.select(),l.stopPropagation()}),Qr(e,["click","focus"],l=>{l.stopPropagation()}),We(e,"span.icon","click",(l,u)=>{l.stopPropagation(),s=!s,u.querySelector('[data-icon="include"]').style.display=s?"none":"inline",u.querySelector('[data-icon="link"]').style.display=s?"inline":"none",a()}),new Nc.default(e.querySelector("button")),Qr(document.body,["click","focus"],l=>{!n||o||(e=e.parentElement.removeChild(e),n=!1)});let a=l=>{let u=s?window.baseUrl(`/link/${this.pageId}#${i}`):`{{@${this.pageId}#${i}}}`;s&&!u.startsWith("http")&&(u=window.location.protocol+"//"+window.location.host+u),e.querySelector("input").value=u;let c=e.querySelector("#pointer-edit");if(c&&l){let f=c.dataset.editHref,d=l.id,h=l.textContent&&l.textContent.substring(0,50);c.href=`${f}?content-id=${d}&content-text=${encodeURIComponent(h)}`}};Zr('.page-content [id^="bkmrk"]',l=>{Qr(l,["mouseup","keyup"],u=>{u.stopPropagation(),window.getSelection().toString().length!==0&&(i=l.id,a(l),l.parentNode.insertBefore(e,l),e.style.display="block",n=!0,o=!0,requestAnimationFrame(()=>{let f=l.getBoundingClientRect(),d=u.pageX-f.left-164;d<0&&(d=0);let h=d/f.width*100;t.style.left=h+"%",setTimeout(()=>{o=!1},100)}))})})}setupNavHighlighting(){if(!("IntersectionObserver"in window)||!("IntersectionObserverEntry"in window)||!("intersectionRatio"in window.IntersectionObserverEntry.prototype))return;let e=document.querySelector(".sidebar-page-nav"),t=document.querySelector(".page-content").querySelectorAll("h1, h2, h3, h4, h5, h6");t.length>0&&e!==null&&n(t);function n(i){let a={rootMargin:"0px 0px 0px 0px",threshold:1},l=new IntersectionObserver(o,a);for(let u of i)l.observe(u)}function o(i,a){for(let l of i){let u=l.intersectionRatio===1;s(l.target.id,u)}}function s(i,a){Zr('a[href="#'+i+'"]',l=>{l.closest("li").classList.toggle("current-heading",a)})}}setupDetailsCodeBlockRefresh(){let e=n=>{[...n.target.querySelectorAll(".CodeMirror")].forEach(s=>s.CodeMirror&&s.CodeMirror.refresh())};[...this.elem.querySelectorAll("details")].forEach(n=>n.addEventListener("toggle",e))}},Bc=Do;function $c(r){let e=new Date(r*1e3),t=e.getHours(),n=e.getMinutes();return`${(t>9?"":"0")+t}:${(n>9?"":"0")+n}`}var Lo=class{setup(){this.draftsEnabled=this.$opts.draftsEnabled==="true",this.editorType=this.$opts.editorType,this.pageId=Number(this.$opts.pageId),this.isNewDraft=this.$opts.pageNewDraft==="true",this.hasDefaultTitle=this.$opts.hasDefaultTitle||!1,this.container=this.$el,this.titleElem=this.$refs.titleContainer.querySelector("input"),this.saveDraftButton=this.$refs.saveDraft,this.discardDraftButton=this.$refs.discardDraft,this.discardDraftWrap=this.$refs.discardDraftWrap,this.draftDisplay=this.$refs.draftDisplay,this.draftDisplayIcon=this.$refs.draftDisplayIcon,this.changelogInput=this.$refs.changelogInput,this.changelogDisplay=this.$refs.changelogDisplay,this.changeEditorButtons=this.$manyRefs.changeEditor,this.switchDialogContainer=this.$refs.switchDialog,this.draftText=this.$opts.draftText,this.autosaveFailText=this.$opts.autosaveFailText,this.editingPageText=this.$opts.editingPageText,this.draftDiscardedText=this.$opts.draftDiscardedText,this.setChangelogText=this.$opts.setChangelogText,this.editorHTML="",this.editorMarkdown="",this.autoSave={interval:null,frequency:3e4,last:0},this.shownWarningsCache=new Set,this.pageId!==0&&this.draftsEnabled&&window.setTimeout(()=>{this.startAutoSave()},1e3),this.draftDisplay.innerHTML=this.draftText,this.setupListeners(),this.setInitialFocus()}setupListeners(){window.$events.listen("editor-save-draft",this.saveDraft.bind(this)),window.$events.listen("editor-save-page",this.savePage.bind(this)),window.$events.listen("editor-html-change",e=>{this.editorHTML=e}),window.$events.listen("editor-markdown-change",e=>{this.editorMarkdown=e}),this.changelogInput.addEventListener("change",this.updateChangelogDisplay.bind(this)),Be(this.saveDraftButton,this.saveDraft.bind(this)),Be(this.discardDraftButton,this.discardDraft.bind(this)),Be(this.changeEditorButtons,this.changeEditor.bind(this))}setInitialFocus(){if(this.hasDefaultTitle)return this.titleElem.select();window.setTimeout(()=>{window.$events.emit("editor::focus","")},500)}startAutoSave(){let e=this.titleElem.value.trim()+"::"+this.editorHTML;this.autoSaveInterval=window.setInterval(()=>{if(Date.now()-this.autoSave.last<this.autoSave.frequency/2)return;let n=this.titleElem.value.trim()+"::"+this.editorHTML;n!==e&&(e=n,this.saveDraft())},this.autoSave.frequency)}savePage(){this.container.closest("form").submit()}async saveDraft(){let e={name:this.titleElem.value.trim(),html:this.editorHTML};this.editorType==="markdown"&&(e.markdown=this.editorMarkdown);let t=!1;try{let n=await window.$http.put(`/ajax/page/${this.pageId}/save-draft`,e);this.isNewDraft||this.toggleDiscardDraftVisibility(!0),this.draftNotifyChange(`${n.data.message} ${$c(n.data.timestamp)}`),this.autoSave.last=Date.now(),n.data.warning&&!this.shownWarningsCache.has(n.data.warning)&&(window.$events.emit("warning",n.data.warning),this.shownWarningsCache.add(n.data.warning)),t=!0}catch{try{let o=`draft-save-fail-${new Date().toISOString()}`;window.localStorage.setItem(o,JSON.stringify(e))}catch{}window.$events.emit("error",this.autosaveFailText)}return t}draftNotifyChange(e){this.draftDisplay.innerText=e,this.draftDisplayIcon.classList.add("visible"),window.setTimeout(()=>{this.draftDisplayIcon.classList.remove("visible")},2e3)}async discardDraft(){let e;try{e=await window.$http.get(`/ajax/page/${this.pageId}`)}catch(t){return console.error(t)}this.autoSave.interval&&window.clearInterval(this.autoSave.interval),this.draftDisplay.innerText=this.editingPageText,this.toggleDiscardDraftVisibility(!1),window.$events.emit("editor::replace",{html:e.data.html,markdown:e.data.markdown}),this.titleElem.value=e.data.name,window.setTimeout(()=>{this.startAutoSave()},1e3),window.$events.emit("success",this.draftDiscardedText)}updateChangelogDisplay(){let e=this.changelogInput.value.trim();e.length===0?e=this.setChangelogText:e.length>16&&(e=e.slice(0,16)+"..."),this.changelogDisplay.innerText=e}toggleDiscardDraftVisibility(e){this.discardDraftWrap.classList.toggle("hidden",!e)}async changeEditor(e){e.preventDefault();let t=e.target.closest("a").href,n=this.switchDialogContainer.components["confirm-dialog"],[o,s]=await Promise.all([this.saveDraft(),n.show()]);o&&s&&(window.location=t)}},Uc=Lo;var Fo=class{constructor(e){this.elem=e,this.input=e.querySelector("input"),this.resetButton=e.querySelector("[page-picker-reset]"),this.selectButton=e.querySelector("[page-picker-select]"),this.display=e.querySelector("[page-picker-display]"),this.defaultDisplay=e.querySelector("[page-picker-default]"),this.buttonSep=e.querySelector("span.sep"),this.value=this.input.value,this.setupListeners()}setupListeners(){this.selectButton.addEventListener("click",this.showPopup.bind(this)),this.display.parentElement.addEventListener("click",this.showPopup.bind(this)),this.resetButton.addEventListener("click",e=>{this.setValue("","")})}showPopup(){window.EntitySelectorPopup.show(e=>{this.setValue(e.id,e.name)})}setValue(e,t){this.value=e,this.input.value=e,this.controlView(t)}controlView(e){let t=this.value&&this.value!==0;if(Mn(this.resetButton,t),Mn(this.buttonSep,t),Mn(this.defaultDisplay,!t),Mn(this.display,t),t){let n=this.getAssetIdFromVal();this.display.textContent=`#${n}, ${e}`,this.display.href=window.baseUrl(`/link/${n}`)}}getAssetIdFromVal(){return Number(this.value)}};function Mn(r,e){let t=r.tagName==="BUTTON"||r.tagName==="SPAN"?"inline-block":"block";r.style.display=e?t:"none"}var zc=Fo;var Ro=class{constructor(e){this.container=e,e.querySelector("[permissions-table-toggle-all]").addEventListener("click",this.toggleAllClick.bind(this));let n=e.querySelectorAll("[permissions-table-toggle-all-in-row]");for(let s of n)s.addEventListener("click",this.toggleRowClick.bind(this));let o=e.querySelectorAll("[permissions-table-toggle-all-in-column]");for(let s of o)s.addEventListener("click",this.toggleColumnClick.bind(this))}toggleAllClick(e){e.preventDefault(),this.toggleAllInElement(this.container)}toggleRowClick(e){e.preventDefault(),this.toggleAllInElement(e.target.closest("tr"))}toggleColumnClick(e){e.preventDefault();let t=e.target.closest("th,td"),n=Array.from(t.parentElement.children).indexOf(t),o=t.closest("table").querySelectorAll("tr"),s=[];for(let i of o){let a=i.children[n];a&&s.push(...a.querySelectorAll("input[type=checkbox]"))}this.toggleAllInputs(s)}toggleAllInElement(e){let t=e.querySelectorAll("input[type=checkbox]");this.toggleAllInputs(t)}toggleAllInputs(e){let t=e.length>0?e[0].checked:!1;for(let n of e)n.checked=!t,n.dispatchEvent(new Event("change"))}},jc=Ro;var Oo=class{setup(){this.container=this.$el,this.hideButtons=this.$manyRefs.hide||[],this.onkeyup=null,this.onHide=null,this.setupListeners()}setupListeners(){let e=null;this.container.addEventListener("mousedown",t=>{e=t.target}),this.container.addEventListener("click",t=>{if(t.target===this.container&&e===this.container)return this.hide()}),Be(this.hideButtons,t=>this.hide())}hide(e=null){vn(this.container,120,e),this.onkeyup&&(window.removeEventListener("keyup",this.onkeyup),this.onkeyup=null),this.onHide&&this.onHide()}show(e=null,t=null){$s(this.container,120,e),this.onkeyup=n=>{n.key==="Escape"&&this.hide()},window.addEventListener("keyup",this.onkeyup),this.onHide=t}},Hc=Oo;var Po=class{constructor(e){this.elem=e,this.colorInput=e.querySelector("input[type=color]"),this.lightColorInput=e.querySelector('input[name="setting-app-color-light"]'),this.resetButton=e.querySelector("[setting-app-color-picker-reset]"),this.defaultButton=e.querySelector("[setting-app-color-picker-default]"),this.colorInput.addEventListener("change",this.updateColor.bind(this)),this.colorInput.addEventListener("input",this.updateColor.bind(this)),this.resetButton.addEventListener("click",t=>{this.colorInput.value=this.colorInput.dataset.current,this.updateColor()}),this.defaultButton.addEventListener("click",t=>{this.colorInput.value=this.colorInput.dataset.default,this.updateColor()})}updateColor(){let e=this.colorInput.value,t=this.hexToRgb(e),n="rgba("+[t.r,t.g,t.b,"0.15"].join(",")+")";this.lightColorInput.value=n;let o=document.getElementById("custom-styles"),s=o.getAttribute("data-color"),i=o.getAttribute("data-color-light");o.innerHTML=o.innerHTML.split(s).join(e),o.innerHTML=o.innerHTML.split(i).join(n),o.setAttribute("data-color",e),o.setAttribute("data-color-light",n)}hexToRgb(e){let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return{r:t?parseInt(t[1],16):0,g:t?parseInt(t[2],16):0,b:t?parseInt(t[3],16):0}}},qc=Po;var Mo=class{constructor(e){this.elem=e,this.colorInput=e.querySelector("input[type=color]"),this.resetButton=e.querySelector("[setting-color-picker-reset]"),this.defaultButton=e.querySelector("[setting-color-picker-default]"),this.resetButton.addEventListener("click",t=>{this.colorInput.value=this.colorInput.dataset.current}),this.defaultButton.addEventListener("click",t=>{this.colorInput.value=this.colorInput.dataset.default})}},Vc=Mo;var _o=class{constructor(e){this.elem=e,this.input=document.getElementById("books-input"),this.shelfBooksList=e.querySelector("[shelf-sort-assigned-books]"),this.initSortable(),this.setupListeners()}initSortable(){let e=this.elem.querySelectorAll(".scroll-box");for(let t of e)new hr(t,{group:"shelf-books",ghostClass:"primary-background-light",animation:150,onSort:this.onChange.bind(this)})}setupListeners(){this.elem.addEventListener("click",e=>{let t=e.target.closest(".scroll-box-item:not(.instruction)");t&&(e.preventDefault(),this.sortItemClick(t))})}sortItemClick(e){let t=this.elem.querySelectorAll(".scroll-box"),n=Array.from(t).filter(o=>e.parentElement!==o);n.length>0&&n[0].appendChild(e),this.onChange()}onChange(){let e=Array.from(this.shelfBooksList.querySelectorAll("[data-id]"));this.input.value=e.map(t=>t.getAttribute("data-id")).join(",")}},Gc=_o;var No=class{constructor(e){this.elem=e,this.toggleElem=e.querySelector(".sidebar-toggle"),this.toggleElem.addEventListener("click",this.toggle.bind(this))}toggle(e=!0){this.elem.classList.toggle("open")}},Wc=No;var Bo=class{setup(){this.container=this.$el,this.handleSelector=this.$opts.handleSelector;let e=new hr(this.container,{handle:this.handleSelector,animation:150,onSort:()=>{this.$emit("sort",{ids:e.toArray()})},setData(t,n){let o=n.getAttribute("data-drag-content");if(o){let s=JSON.parse(o);for(let[i,a]of Object.entries(s))t.setData(i,a)}},revertOnSpill:!0,dropBubble:!0,dragoverBubble:!1})}},Yc=Bo;var $o=class{setup(){this.filter=this.$opts.filter,this.$el.addEventListener("change",e=>{if(this.filter&&!e.target.matches(this.filter))return;let t=this.$el.closest("form");t&&t.submit()})}},Kc=$o;var Uo=class{setup(){this.tabContentsByName={},this.tabButtonsByName={},this.allContents=[],this.allButtons=[];for(let[e,t]of Object.entries(this.$manyRefs||{})){if(e.startsWith("toggle")){let n=e.replace("toggle","").toLowerCase();Be(t,o=>this.show(n)),this.allButtons.push(...t),this.tabButtonsByName[n]=t}if(e.startsWith("content")){let n=e.replace("content","").toLowerCase();this.tabContentsByName[n]=t,this.allContents.push(...t)}}}show(e){this.allContents.forEach(o=>{o.classList.add("hidden"),o.classList.remove("selected")}),this.allButtons.forEach(o=>o.classList.remove("selected"));let t=this.tabContentsByName[e]||[],n=this.tabButtonsByName[e]||[];t.length>0&&(t.forEach(o=>{o.classList.remove("hidden"),o.classList.add("selected")}),n.forEach(o=>o.classList.add("selected")))}},Xc=Uo;var zo=class{setup(){this.addRemoveComponentEl=this.$refs.addRemove,this.container=this.$el,this.rowSelector=this.$opts.rowSelector,this.setupListeners()}setupListeners(){this.container.addEventListener("change",e=>{let t=this.addRemoveComponentEl.components["add-remove-rows"];this.hasEmptyRows()||t.add()})}hasEmptyRows(){return[...this.container.querySelectorAll(this.rowSelector)].find(n=>[...n.querySelectorAll("input")].filter(o=>o.value).length===0)!==void 0}},Zc=zo;var jo=class{constructor(e){this.elem=e,this.list=e.querySelector("[template-manager-list]"),this.searching=!1,We(this.elem,"[template-action]","click",this.handleTemplateActionClick.bind(this)),We(this.elem,".pagination a","click",this.handlePaginationClick.bind(this)),We(this.elem,".template-item-content","click",this.handleTemplateItemClick.bind(this)),We(this.elem,".template-item","dragstart",this.handleTemplateItemDragStart.bind(this)),this.setupSearchBox()}handleTemplateItemClick(e,t){let n=t.closest("[template-id]").getAttribute("template-id");this.insertTemplate(n,"replace")}handleTemplateItemDragStart(e,t){let n=t.closest("[template-id]").getAttribute("template-id");e.dataTransfer.setData("bookstack/template",n),e.dataTransfer.setData("text/plain",n)}handleTemplateActionClick(e,t){e.stopPropagation();let n=t.getAttribute("template-action"),o=t.closest("[template-id]").getAttribute("template-id");this.insertTemplate(o,n)}async insertTemplate(e,t="replace"){let n=await window.$http.get(`/templates/${e}`),o="editor::"+t;window.$events.emit(o,n.data)}async handlePaginationClick(e,t){e.preventDefault();let n=t.getAttribute("href"),o=await window.$http.get(n);this.list.innerHTML=o.data}setupSearchBox(){let e=this.elem.querySelector(".search-box");if(!e)return;let t=e.querySelector("input"),n=e.querySelector("button"),o=e.querySelector("button.search-box-cancel");async function s(){let i=t.value,a=await window.$http.get("/templates",{search:i});o.style.display=i?"block":"none",this.list.innerHTML=a.data}s=s.bind(this),e.addEventListener("keypress",i=>{i.key==="Enter"&&(i.preventDefault(),s())}),n.addEventListener("click",i=>{s()}),o.addEventListener("click",i=>{t.value="",s()})}},Qc=jo;var Ho=class{constructor(e){this.elem=e,this.input=e.querySelector("input[type=hidden]"),this.checkbox=e.querySelector("input[type=checkbox]"),this.checkbox.addEventListener("change",this.stateChange.bind(this))}stateChange(){this.input.value=this.checkbox.checked?"true":"false";let e=new Event("change");this.input.dispatchEvent(e)}},Jc=Ho;var qo=class{setup(){this.container=this.$refs.container,this.tabs=this.$manyRefs.tab,this.lastLayoutType="none",this.onDestroy=null,this.scrollCache={content:0,info:0},this.lastTabShown="content",this.mobileTabClick=this.mobileTabClick.bind(this),this.updateLayout(),window.addEventListener("resize",e=>{this.updateLayout()},{passive:!0})}updateLayout(){let e="tablet";window.innerWidth<=1e3&&(e="mobile"),window.innerWidth>=1400&&(e="desktop"),e!==this.lastLayoutType&&(this.onDestroy&&(this.onDestroy(),this.onDestroy=null),e==="desktop"?this.setupDesktop():e==="mobile"&&this.setupMobile(),this.lastLayoutType=e)}setupMobile(){for(let e of this.tabs)e.addEventListener("click",this.mobileTabClick);this.onDestroy=()=>{for(let e of this.tabs)e.removeEventListener("click",this.mobileTabClick)}}setupDesktop(){}mobileTabClick(e){let t=e.target.dataset.tab;this.showTab(t)}showContent(){this.showTab("content",!1)}showTab(e,t=!0){this.scrollCache[this.lastTabShown]=document.documentElement.scrollTop;for(let o of this.tabs){let s=o.dataset.tab===e;o.setAttribute("aria-selected",s?"true":"false")}let n=e==="info";if(this.container.classList.toggle("show-info",n),t){let s=document.querySelector("header").getBoundingClientRect().bottom;document.documentElement.scrollTop=this.scrollCache[e]||s,setTimeout(()=>{document.documentElement.scrollTop=this.scrollCache[e]||s},50)}this.lastTabShown=e}},ed=qo;var Vo=class{setup(){this.input=this.$refs.input,this.userInfoContainer=this.$refs.userInfo,this.hide=this.$el.components.dropdown.hide,We(this.$el,"a.dropdown-search-item","click",this.selectUser.bind(this))}selectUser(e,t){e.preventDefault();let n=t.getAttribute("data-id");this.input.value=n,this.userInfoContainer.innerHTML=t.innerHTML,this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.hide()}},td=Vo;var Go=class{setup(){this.checkboxes=this.$el.querySelectorAll('input[type="checkbox"]'),this.allCheckbox=this.$el.querySelector('input[type="checkbox"][value="all"]'),this.$el.addEventListener("change",e=>{e.target.checked&&e.target===this.allCheckbox?this.deselectIndividualEvents():e.target.checked&&(this.allCheckbox.checked=!1)})}deselectIndividualEvents(){for(let e of this.checkboxes)e!==this.allCheckbox&&(e.checked=!1)}},rd=Go;function nd(r){for(let e=1;e<5;e++)r.shortcuts.add("meta+"+e,"",["FormatBlock",!1,"h"+(e+1)]);r.shortcuts.add("meta+5","",["FormatBlock",!1,"p"]),r.shortcuts.add("meta+d","",["FormatBlock",!1,"p"]),r.shortcuts.add("meta+6","",["FormatBlock",!1,"blockquote"]),r.shortcuts.add("meta+q","",["FormatBlock",!1,"blockquote"]),r.shortcuts.add("meta+7","",["codeeditor",!1,"pre"]),r.shortcuts.add("meta+e","",["codeeditor",!1,"pre"]),r.shortcuts.add("meta+8","",["FormatBlock",!1,"code"]),r.shortcuts.add("meta+shift+E","",["FormatBlock",!1,"code"]),r.shortcuts.add("meta+S","",()=>{window.$events.emit("editor-save-draft")}),r.shortcuts.add("meta+13","",()=>{window.$events.emit("editor-save-page")}),r.shortcuts.add("meta+9","",function(){let e=r.selection.getNode(),t=e?e.closest(".callout"):null,n=["info","success","warning","danger"],s=(n.findIndex(a=>t&&t.classList.contains(a))+1)%n.length,i=n[s];r.formatter.apply("callout"+i)}),r.shortcuts.add("meta+shift+K","",function(){window.EntitySelectorPopup.show(function(e){r.selection.isCollapsed()?r.insertContent(r.dom.createHTML("a",{href:e.link},r.dom.encode(e.name))):r.formatter.apply("link",{href:e.link}),r.selection.collapse(!1),r.focus()})})}function id(r){window.$events.listen("editor::replace",({html:e})=>{r.setContent(e)}),window.$events.listen("editor::append",({html:e})=>{let t=r.getContent()+e;r.setContent(t)}),window.$events.listen("editor::prepend",({html:e})=>{let t=e+r.getContent();r.setContent(t)}),window.$events.listen("editor::insert",({html:e})=>{r.insertContent(e)}),window.$events.listen("editor::focus",()=>{r.initialized&&r.focus()})}function od(r){let t=new URL(window.location).searchParams.get("content-id");t&&Sm(r,t)}function Sm(r,e){let t=r.dom.get(encodeURIComponent(e).replace(/!/g,"%21"));!t||(t.scrollIntoView(),r.selection.select(t,!0),r.selection.collapse(!1),r.focus())}var ir,_n;function Cm(r){return r&&!!(r.textContent||r.innerText)}function sd(r,e,t){let n=new Hr(t.clipboardData||t.dataTransfer);if(!n.hasItems()||n.containsTabularData())return;let o=n.getImages();for(let s of o){let i="image-"+Math.random().toString(16).slice(2),a=window.baseUrl("/loading.gif");t.preventDefault(),setTimeout(()=>{r.insertContent(`<p><img src="${a}" id="${i}"></p>`),Am(s,e.pageId).then(l=>{let u=l.name.replace(/"/g,""),c=`<img src="${l.thumbs.display}" alt="${u}" />`,f=r.dom.create("a",{target:"_blank",href:l.url},c);r.dom.replace(f,i)}).catch(l=>{r.dom.remove(i),window.$events.emit("error",e.translations.imageUploadErrorText),console.log(l)})},10)}}async function Am(r,e){if(r===null||r.type.indexOf("image")!==0)throw new Error("Not an image file");let t=r.name||`image-${Date.now()}.png`,n=new FormData;return n.append("file",r,t),n.append("uploaded_to",e),(await window.$http.post(window.baseUrl("/images/gallery"),n)).data}function km(r,e){let t=r.selection.getNode();t.nodeName==="IMG"&&(ir=r.dom.getParent(t,".mceTemp"),!ir&&t.parentNode.nodeName==="A"&&!Cm(t.parentNode)&&(ir=t.parentNode)),t.hasAttribute("contenteditable")&&t.getAttribute("contenteditable")==="false"&&(_n=t)}function Tm(r,e,t){let n=r.dom,o=tinymce.dom.RangeUtils.getCaretRangeFromPoint(t.clientX,t.clientY,r.getDoc()),s=t.dataTransfer&&t.dataTransfer.getData("bookstack/template");s&&(t.preventDefault(),window.$http.get(`/templates/${s}`).then(i=>{r.selection.setRng(o),r.undoManager.transact(function(){r.execCommand("mceInsertContent",!1,i.data.html)})})),n.getParent(o.startContainer,".mceTemp")?t.preventDefault():ir&&(t.preventDefault(),r.undoManager.transact(function(){r.selection.setRng(o),r.selection.setNode(ir),n.remove(ir)})),!t.isDefaultPrevented()&&_n&&(t.preventDefault(),r.undoManager.transact(function(){let i=r.selection.getNode(),a=r.selection.getRng(),l=i.closest("body > *");a.startOffset>a.startContainer.length/2?r.$(l).after(_n):r.$(l).before(_n)})),t.isDefaultPrevented()||sd(r,e,t),ir=null}function ad(r,e){r.on("dragstart",()=>km(r,e)),r.on("drop",t=>Tm(r,e,t)),r.on("paste",t=>sd(r,e,t))}function ld(r){let e=r.textDirection==="rtl"?"ltr rtl":"";return["undo redo","styleselect","bold italic underline forecolor backcolor formatoverflow","alignleft aligncenter alignright alignjustify","bullist numlist listoverflow",e,"link table imagemanager-insert insertoverflow","code about fullscreen"].filter(n=>Boolean(n)).join(" | ")}function Im(r){r.ui.registry.addGroupToolbarButton("formatoverflow",{icon:"more-drawer",tooltip:"More",items:"strikethrough superscript subscript inlinecode removeformat"}),r.ui.registry.addGroupToolbarButton("listoverflow",{icon:"more-drawer",tooltip:"More",items:"tasklist outdent indent"}),r.ui.registry.addGroupToolbarButton("insertoverflow",{icon:"more-drawer",tooltip:"More",items:"hr codeeditor drawio media details"})}function Dm(r){r.ui.registry.addContextToolbar("linkcontexttoolbar",{predicate(e){return e.closest("a")!==null},position:"node",scope:"node",items:"link unlink openlink"})}function ud(r,e){Im(r),Dm(r)}function cd(r){return r.tagName.toLowerCase()==="code-block"}function fd(r,e,t,n){window.components.first("code-editor").open(e,t,(o,s)=>{n(o,s),r.focus()})}function dd(r,e){fd(r,e.getContent(),e.getLanguage(),(t,n)=>{e.setContent(t,n)})}function Lm(r){let e=r.getDoc(),t=e.defaultView;class n extends t.HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});let s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("href",window.baseUrl("/dist/styles.css"));let i=document.createElement("div");i.style.pointerEvents="none",i.contentEditable="false",i.classList.add("CodeMirrorContainer"),this.shadowRoot.append(s,i)}getLanguage(){let s=l=>(l.split(" ").filter(c=>c.startsWith("language-"))[0]||"").replace("language-",""),i=this.querySelector("code"),a=this.querySelector("pre");return s(a.className)||i&&s(i.className)||""}setContent(s,i){this.cm&&importVersioned("code").then(u=>{u.setContent(this.cm,s),u.setMode(this.cm,i,s)});let a=this.querySelector("pre");a||(a=e.createElement("pre"),this.append(a)),a.innerHTML="";let l=e.createElement("code");a.append(l),l.innerText=s,l.className=`language-${i}`}getContent(){let s=this.querySelector("code")||this.querySelector("pre"),i=document.createElement("pre");i.innerHTML=s.innerHTML.replace(/\ufeff/g,"");let a=i.querySelectorAll("br");for(let l of a)l.replaceWith(`
+`).length;t.style.height=n*20+40+"px",this.editingComment=e}updateComment(e){let t=e.target;e.preventDefault();let o={text:t.querySelector("textarea").value,parent_id:this.parentId||null};this.showLoading(t);let s=this.editingComment.getAttribute("comment");window.$http.put(`/comment/${s}`,o).then(i=>{let a=document.createElement("div");a.innerHTML=i.data,this.editingComment.innerHTML=a.children[0].innerHTML,window.$events.success(this.updatedText),window.components.init(this.editingComment),this.closeUpdateForm(),this.editingComment=null}).catch(window.$events.showValidationErrors).then(()=>{this.hideLoading(t)})}deleteComment(e){let t=e.getAttribute("comment");this.showLoading(e.querySelector("[comment-content]")),window.$http.delete(`/comment/${t}`).then(n=>{e.parentNode.removeChild(e),window.$events.success(this.deletedText),this.updateCount(),this.hideForm()})}saveComment(e){e.preventDefault(),e.stopPropagation();let n={text:this.formInput.value,parent_id:this.parentId||null};this.showLoading(this.form),window.$http.post(`/comment/${this.pageId}`,n).then(o=>{let s=document.createElement("div");s.innerHTML=o.data;let i=s.children[0];this.container.appendChild(i),window.components.init(i),window.$events.success(this.createdText),this.resetForm(),this.updateCount()}).catch(o=>{window.$events.showValidationErrors(o),this.hideLoading(this.form)})}updateCount(){let e=this.container.children.length;this.elem.querySelector("[comments-title]").textContent=window.trans_plural(this.countText,e,{count:e})}resetForm(){this.formInput.value="",this.formContainer.appendChild(this.form),this.hideForm(),this.removeReplyTo(),this.hideLoading(this.form)}showForm(){this.formContainer.style.display="block",this.formContainer.parentNode.style.display="block",this.addButtonContainer.style.display="none",this.formInput.focus(),this.formInput.scrollIntoView({behavior:"smooth"})}hideForm(){this.formContainer.style.display="none",this.formContainer.parentNode.style.display="none",this.getCommentCount()>0?this.elem.appendChild(this.addButtonContainer):this.commentCountBar.appendChild(this.addButtonContainer),this.addButtonContainer.style.display="block"}getCommentCount(){return this.elem.querySelectorAll(".comment-box[comment]").length}setReply(e){this.showForm(),this.parentId=Number(e.getAttribute("local-id")),this.replyToRow.style.display="block";let t=this.replyToRow.querySelector("a");t.textContent=`#${this.parentId}`,t.href=`#comment${this.parentId}`}removeReplyTo(){this.parentId=null,this.replyToRow.style.display="none"}showLoading(e){let t=e.querySelectorAll(".form-group");for(let n of t)n.style.display="none";e.querySelector(".form-group.loading").style.display="block"}hideLoading(e){let t=e.querySelectorAll(".form-group");for(let n of t)n.style.display="block";e.querySelector(".form-group.loading").style.display="none"}},Mc=To;var Nc=Yr(_c());var Do=class{constructor(e){if(this.elem=e,this.pageId=e.getAttribute("page-display"),window.importVersioned("code").then(n=>n.highlight()),this.setupPointer(),this.setupNavHighlighting(),this.setupDetailsCodeBlockRefresh(),window.location.hash){let n=window.location.hash.replace(/\%20/g," ").substr(1);this.goToText(n)}let t=document.querySelector(".sidebar-page-nav");t&&qe(t,"a","click",(n,o)=>{n.preventDefault(),window.components["tri-layout"][0].showContent();let s=o.getAttribute("href").substr(1);this.goToText(s),window.history.pushState(null,null,"#"+s)})}goToText(e){let t=document.getElementById(e);if(Zr(".page-content [data-highlighted]",n=>{n.removeAttribute("data-highlighted"),n.style.backgroundColor=null}),t!==null)kr(t);else{let n=ns(".page-content > div > *",e);n&&kr(n)}}setupPointer(){let e=document.getElementById("pointer");if(!e)return;e=e.parentNode.removeChild(e);let t=e.querySelector("div.pointer"),n=!1,o=!1,s=!0,i="";qe(e,"input","click",(l,u)=>{u.select(),l.stopPropagation()}),Qr(e,["click","focus"],l=>{l.stopPropagation()}),qe(e,"span.icon","click",(l,u)=>{l.stopPropagation(),s=!s,u.querySelector('[data-icon="include"]').style.display=s?"none":"inline",u.querySelector('[data-icon="link"]').style.display=s?"inline":"none",a()}),new Nc.default(e.querySelector("button")),Qr(document.body,["click","focus"],l=>{!n||o||(e=e.parentElement.removeChild(e),n=!1)});let a=l=>{let u=s?window.baseUrl(`/link/${this.pageId}#${i}`):`{{@${this.pageId}#${i}}}`;s&&!u.startsWith("http")&&(u=window.location.protocol+"//"+window.location.host+u),e.querySelector("input").value=u;let c=e.querySelector("#pointer-edit");if(c&&l){let f=c.dataset.editHref,h=l.id,d=l.textContent&&l.textContent.substring(0,50);c.href=`${f}?content-id=${h}&content-text=${encodeURIComponent(d)}`}};Zr('.page-content [id^="bkmrk"]',l=>{Qr(l,["mouseup","keyup"],u=>{u.stopPropagation(),window.getSelection().toString().length!==0&&(i=l.id,a(l),l.parentNode.insertBefore(e,l),e.style.display="block",n=!0,o=!0,requestAnimationFrame(()=>{let f=l.getBoundingClientRect(),h=u.pageX-f.left-164;h<0&&(h=0);let d=h/f.width*100;t.style.left=d+"%",setTimeout(()=>{o=!1},100)}))})})}setupNavHighlighting(){if(!("IntersectionObserver"in window)||!("IntersectionObserverEntry"in window)||!("intersectionRatio"in window.IntersectionObserverEntry.prototype))return;let e=document.querySelector(".sidebar-page-nav"),t=document.querySelector(".page-content").querySelectorAll("h1, h2, h3, h4, h5, h6");t.length>0&&e!==null&&n(t);function n(i){let a={rootMargin:"0px 0px 0px 0px",threshold:1},l=new IntersectionObserver(o,a);for(let u of i)l.observe(u)}function o(i,a){for(let l of i){let u=l.intersectionRatio===1;s(l.target.id,u)}}function s(i,a){Zr('a[href="#'+i+'"]',l=>{l.closest("li").classList.toggle("current-heading",a)})}}setupDetailsCodeBlockRefresh(){let e=n=>{[...n.target.querySelectorAll(".CodeMirror")].forEach(s=>s.CodeMirror&&s.CodeMirror.refresh())};[...this.elem.querySelectorAll("details")].forEach(n=>n.addEventListener("toggle",e))}},Bc=Do;function $c(r){let e=new Date(r*1e3),t=e.getHours(),n=e.getMinutes();return`${(t>9?"":"0")+t}:${(n>9?"":"0")+n}`}var Lo=class{setup(){this.draftsEnabled=this.$opts.draftsEnabled==="true",this.editorType=this.$opts.editorType,this.pageId=Number(this.$opts.pageId),this.isNewDraft=this.$opts.pageNewDraft==="true",this.hasDefaultTitle=this.$opts.hasDefaultTitle||!1,this.container=this.$el,this.titleElem=this.$refs.titleContainer.querySelector("input"),this.saveDraftButton=this.$refs.saveDraft,this.discardDraftButton=this.$refs.discardDraft,this.discardDraftWrap=this.$refs.discardDraftWrap,this.draftDisplay=this.$refs.draftDisplay,this.draftDisplayIcon=this.$refs.draftDisplayIcon,this.changelogInput=this.$refs.changelogInput,this.changelogDisplay=this.$refs.changelogDisplay,this.changeEditorButtons=this.$manyRefs.changeEditor,this.switchDialogContainer=this.$refs.switchDialog,this.draftText=this.$opts.draftText,this.autosaveFailText=this.$opts.autosaveFailText,this.editingPageText=this.$opts.editingPageText,this.draftDiscardedText=this.$opts.draftDiscardedText,this.setChangelogText=this.$opts.setChangelogText,this.editorHTML="",this.editorMarkdown="",this.autoSave={interval:null,frequency:3e4,last:0},this.shownWarningsCache=new Set,this.pageId!==0&&this.draftsEnabled&&window.setTimeout(()=>{this.startAutoSave()},1e3),this.draftDisplay.innerHTML=this.draftText,this.setupListeners(),this.setInitialFocus()}setupListeners(){window.$events.listen("editor-save-draft",this.saveDraft.bind(this)),window.$events.listen("editor-save-page",this.savePage.bind(this)),window.$events.listen("editor-html-change",e=>{this.editorHTML=e}),window.$events.listen("editor-markdown-change",e=>{this.editorMarkdown=e}),this.changelogInput.addEventListener("change",this.updateChangelogDisplay.bind(this)),Be(this.saveDraftButton,this.saveDraft.bind(this)),Be(this.discardDraftButton,this.discardDraft.bind(this)),Be(this.changeEditorButtons,this.changeEditor.bind(this))}setInitialFocus(){if(this.hasDefaultTitle)return this.titleElem.select();window.setTimeout(()=>{window.$events.emit("editor::focus","")},500)}startAutoSave(){let e=this.titleElem.value.trim()+"::"+this.editorHTML;this.autoSaveInterval=window.setInterval(()=>{if(Date.now()-this.autoSave.last<this.autoSave.frequency/2)return;let n=this.titleElem.value.trim()+"::"+this.editorHTML;n!==e&&(e=n,this.saveDraft())},this.autoSave.frequency)}savePage(){this.container.closest("form").submit()}async saveDraft(){let e={name:this.titleElem.value.trim(),html:this.editorHTML};this.editorType==="markdown"&&(e.markdown=this.editorMarkdown);let t=!1;try{let n=await window.$http.put(`/ajax/page/${this.pageId}/save-draft`,e);this.isNewDraft||this.toggleDiscardDraftVisibility(!0),this.draftNotifyChange(`${n.data.message} ${$c(n.data.timestamp)}`),this.autoSave.last=Date.now(),n.data.warning&&!this.shownWarningsCache.has(n.data.warning)&&(window.$events.emit("warning",n.data.warning),this.shownWarningsCache.add(n.data.warning)),t=!0}catch{try{let o=`draft-save-fail-${new Date().toISOString()}`;window.localStorage.setItem(o,JSON.stringify(e))}catch{}window.$events.emit("error",this.autosaveFailText)}return t}draftNotifyChange(e){this.draftDisplay.innerText=e,this.draftDisplayIcon.classList.add("visible"),window.setTimeout(()=>{this.draftDisplayIcon.classList.remove("visible")},2e3)}async discardDraft(){let e;try{e=await window.$http.get(`/ajax/page/${this.pageId}`)}catch(t){return console.error(t)}this.autoSave.interval&&window.clearInterval(this.autoSave.interval),this.draftDisplay.innerText=this.editingPageText,this.toggleDiscardDraftVisibility(!1),window.$events.emit("editor::replace",{html:e.data.html,markdown:e.data.markdown}),this.titleElem.value=e.data.name,window.setTimeout(()=>{this.startAutoSave()},1e3),window.$events.emit("success",this.draftDiscardedText)}updateChangelogDisplay(){let e=this.changelogInput.value.trim();e.length===0?e=this.setChangelogText:e.length>16&&(e=e.slice(0,16)+"..."),this.changelogDisplay.innerText=e}toggleDiscardDraftVisibility(e){this.discardDraftWrap.classList.toggle("hidden",!e)}async changeEditor(e){e.preventDefault();let t=e.target.closest("a").href,n=this.switchDialogContainer.components["confirm-dialog"],[o,s]=await Promise.all([this.saveDraft(),n.show()]);o&&s&&(window.location=t)}},Uc=Lo;var Fo=class{constructor(e){this.elem=e,this.input=e.querySelector("input"),this.resetButton=e.querySelector("[page-picker-reset]"),this.selectButton=e.querySelector("[page-picker-select]"),this.display=e.querySelector("[page-picker-display]"),this.defaultDisplay=e.querySelector("[page-picker-default]"),this.buttonSep=e.querySelector("span.sep"),this.value=this.input.value,this.setupListeners()}setupListeners(){this.selectButton.addEventListener("click",this.showPopup.bind(this)),this.display.parentElement.addEventListener("click",this.showPopup.bind(this)),this.resetButton.addEventListener("click",e=>{this.setValue("","")})}showPopup(){window.EntitySelectorPopup.show(e=>{this.setValue(e.id,e.name)})}setValue(e,t){this.value=e,this.input.value=e,this.controlView(t)}controlView(e){let t=this.value&&this.value!==0;if(Mn(this.resetButton,t),Mn(this.buttonSep,t),Mn(this.defaultDisplay,!t),Mn(this.display,t),t){let n=this.getAssetIdFromVal();this.display.textContent=`#${n}, ${e}`,this.display.href=window.baseUrl(`/link/${n}`)}}getAssetIdFromVal(){return Number(this.value)}};function Mn(r,e){let t=r.tagName==="BUTTON"||r.tagName==="SPAN"?"inline-block":"block";r.style.display=e?t:"none"}var zc=Fo;var Ro=class{constructor(e){this.container=e,e.querySelector("[permissions-table-toggle-all]").addEventListener("click",this.toggleAllClick.bind(this));let n=e.querySelectorAll("[permissions-table-toggle-all-in-row]");for(let s of n)s.addEventListener("click",this.toggleRowClick.bind(this));let o=e.querySelectorAll("[permissions-table-toggle-all-in-column]");for(let s of o)s.addEventListener("click",this.toggleColumnClick.bind(this))}toggleAllClick(e){e.preventDefault(),this.toggleAllInElement(this.container)}toggleRowClick(e){e.preventDefault(),this.toggleAllInElement(e.target.closest("tr"))}toggleColumnClick(e){e.preventDefault();let t=e.target.closest("th,td"),n=Array.from(t.parentElement.children).indexOf(t),o=t.closest("table").querySelectorAll("tr"),s=[];for(let i of o){let a=i.children[n];a&&s.push(...a.querySelectorAll("input[type=checkbox]"))}this.toggleAllInputs(s)}toggleAllInElement(e){let t=e.querySelectorAll("input[type=checkbox]");this.toggleAllInputs(t)}toggleAllInputs(e){let t=e.length>0?e[0].checked:!1;for(let n of e)n.checked=!t,n.dispatchEvent(new Event("change"))}},jc=Ro;var Oo=class{setup(){this.container=this.$el,this.hideButtons=this.$manyRefs.hide||[],this.onkeyup=null,this.onHide=null,this.setupListeners()}setupListeners(){let e=null;this.container.addEventListener("mousedown",t=>{e=t.target}),this.container.addEventListener("click",t=>{if(t.target===this.container&&e===this.container)return this.hide()}),Be(this.hideButtons,t=>this.hide())}hide(e=null){vn(this.container,120,e),this.onkeyup&&(window.removeEventListener("keyup",this.onkeyup),this.onkeyup=null),this.onHide&&this.onHide()}show(e=null,t=null){$s(this.container,120,e),this.onkeyup=n=>{n.key==="Escape"&&this.hide()},window.addEventListener("keyup",this.onkeyup),this.onHide=t}},Hc=Oo;var Po=class{constructor(e){this.elem=e,this.colorInput=e.querySelector("input[type=color]"),this.lightColorInput=e.querySelector('input[name="setting-app-color-light"]'),this.resetButton=e.querySelector("[setting-app-color-picker-reset]"),this.defaultButton=e.querySelector("[setting-app-color-picker-default]"),this.colorInput.addEventListener("change",this.updateColor.bind(this)),this.colorInput.addEventListener("input",this.updateColor.bind(this)),this.resetButton.addEventListener("click",t=>{this.colorInput.value=this.colorInput.dataset.current,this.updateColor()}),this.defaultButton.addEventListener("click",t=>{this.colorInput.value=this.colorInput.dataset.default,this.updateColor()})}updateColor(){let e=this.colorInput.value,t=this.hexToRgb(e),n="rgba("+[t.r,t.g,t.b,"0.15"].join(",")+")";this.lightColorInput.value=n;let o=document.getElementById("custom-styles"),s=o.getAttribute("data-color"),i=o.getAttribute("data-color-light");o.innerHTML=o.innerHTML.split(s).join(e),o.innerHTML=o.innerHTML.split(i).join(n),o.setAttribute("data-color",e),o.setAttribute("data-color-light",n)}hexToRgb(e){let t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return{r:t?parseInt(t[1],16):0,g:t?parseInt(t[2],16):0,b:t?parseInt(t[3],16):0}}},qc=Po;var Mo=class{constructor(e){this.elem=e,this.colorInput=e.querySelector("input[type=color]"),this.resetButton=e.querySelector("[setting-color-picker-reset]"),this.defaultButton=e.querySelector("[setting-color-picker-default]"),this.resetButton.addEventListener("click",t=>{this.colorInput.value=this.colorInput.dataset.current}),this.defaultButton.addEventListener("click",t=>{this.colorInput.value=this.colorInput.dataset.default})}},Vc=Mo;var _o=class{setup(){this.elem=this.$el,this.input=this.$refs.input,this.shelfBookList=this.$refs.shelfBookList,this.allBookList=this.$refs.allBookList,this.bookSearchInput=this.$refs.bookSearch,this.initSortable(),this.setupListeners()}initSortable(){let e=this.elem.querySelectorAll(".scroll-box");for(let t of e)new hr(t,{group:"shelf-books",ghostClass:"primary-background-light",animation:150,onSort:this.onChange.bind(this)})}setupListeners(){this.elem.addEventListener("click",e=>{let t=e.target.closest(".scroll-box-item");t&&(e.preventDefault(),this.sortItemClick(t))}),this.bookSearchInput.addEventListener("input",e=>{this.filterBooksByName(this.bookSearchInput.value)})}filterBooksByName(e){this.allBookList.style.height||(this.allBookList.style.height=this.allBookList.getBoundingClientRect().height+"px");let t=this.allBookList.children,n=e.trim().toLowerCase();for(let o of t){let s=!e||o.textContent.toLowerCase().includes(n);o.style.display=s?null:"none"}}sortItemClick(e){let t=this.elem.querySelectorAll(".scroll-box"),n=Array.from(t).filter(o=>e.parentElement!==o);n.length>0&&n[0].appendChild(e),this.onChange()}onChange(){let e=Array.from(this.shelfBookList.querySelectorAll("[data-id]"));this.input.value=e.map(t=>t.getAttribute("data-id")).join(",")}},Gc=_o;var No=class{constructor(e){this.elem=e,this.toggleElem=e.querySelector(".sidebar-toggle"),this.toggleElem.addEventListener("click",this.toggle.bind(this))}toggle(e=!0){this.elem.classList.toggle("open")}},Wc=No;var Bo=class{setup(){this.container=this.$el,this.handleSelector=this.$opts.handleSelector;let e=new hr(this.container,{handle:this.handleSelector,animation:150,onSort:()=>{this.$emit("sort",{ids:e.toArray()})},setData(t,n){let o=n.getAttribute("data-drag-content");if(o){let s=JSON.parse(o);for(let[i,a]of Object.entries(s))t.setData(i,a)}},revertOnSpill:!0,dropBubble:!0,dragoverBubble:!1})}},Yc=Bo;var $o=class{setup(){this.filter=this.$opts.filter,this.$el.addEventListener("change",e=>{if(this.filter&&!e.target.matches(this.filter))return;let t=this.$el.closest("form");t&&t.submit()})}},Kc=$o;var Uo=class{setup(){this.tabContentsByName={},this.tabButtonsByName={},this.allContents=[],this.allButtons=[];for(let[e,t]of Object.entries(this.$manyRefs||{})){if(e.startsWith("toggle")){let n=e.replace("toggle","").toLowerCase();Be(t,o=>this.show(n)),this.allButtons.push(...t),this.tabButtonsByName[n]=t}if(e.startsWith("content")){let n=e.replace("content","").toLowerCase();this.tabContentsByName[n]=t,this.allContents.push(...t)}}}show(e){this.allContents.forEach(o=>{o.classList.add("hidden"),o.classList.remove("selected")}),this.allButtons.forEach(o=>o.classList.remove("selected"));let t=this.tabContentsByName[e]||[],n=this.tabButtonsByName[e]||[];t.length>0&&(t.forEach(o=>{o.classList.remove("hidden"),o.classList.add("selected")}),n.forEach(o=>o.classList.add("selected")))}},Xc=Uo;var zo=class{setup(){this.addRemoveComponentEl=this.$refs.addRemove,this.container=this.$el,this.rowSelector=this.$opts.rowSelector,this.setupListeners()}setupListeners(){this.container.addEventListener("change",e=>{let t=this.addRemoveComponentEl.components["add-remove-rows"];this.hasEmptyRows()||t.add()})}hasEmptyRows(){return[...this.container.querySelectorAll(this.rowSelector)].find(n=>[...n.querySelectorAll("input")].filter(o=>o.value).length===0)!==void 0}},Zc=zo;var jo=class{constructor(e){this.elem=e,this.list=e.querySelector("[template-manager-list]"),this.searching=!1,qe(this.elem,"[template-action]","click",this.handleTemplateActionClick.bind(this)),qe(this.elem,".pagination a","click",this.handlePaginationClick.bind(this)),qe(this.elem,".template-item-content","click",this.handleTemplateItemClick.bind(this)),qe(this.elem,".template-item","dragstart",this.handleTemplateItemDragStart.bind(this)),this.setupSearchBox()}handleTemplateItemClick(e,t){let n=t.closest("[template-id]").getAttribute("template-id");this.insertTemplate(n,"replace")}handleTemplateItemDragStart(e,t){let n=t.closest("[template-id]").getAttribute("template-id");e.dataTransfer.setData("bookstack/template",n),e.dataTransfer.setData("text/plain",n)}handleTemplateActionClick(e,t){e.stopPropagation();let n=t.getAttribute("template-action"),o=t.closest("[template-id]").getAttribute("template-id");this.insertTemplate(o,n)}async insertTemplate(e,t="replace"){let n=await window.$http.get(`/templates/${e}`),o="editor::"+t;window.$events.emit(o,n.data)}async handlePaginationClick(e,t){e.preventDefault();let n=t.getAttribute("href"),o=await window.$http.get(n);this.list.innerHTML=o.data}setupSearchBox(){let e=this.elem.querySelector(".search-box");if(!e)return;let t=e.querySelector("input"),n=e.querySelector("button"),o=e.querySelector("button.search-box-cancel");async function s(){let i=t.value,a=await window.$http.get("/templates",{search:i});o.style.display=i?"block":"none",this.list.innerHTML=a.data}s=s.bind(this),e.addEventListener("keypress",i=>{i.key==="Enter"&&(i.preventDefault(),s())}),n.addEventListener("click",i=>{s()}),o.addEventListener("click",i=>{t.value="",s()})}},Qc=jo;var Ho=class{constructor(e){this.elem=e,this.input=e.querySelector("input[type=hidden]"),this.checkbox=e.querySelector("input[type=checkbox]"),this.checkbox.addEventListener("change",this.stateChange.bind(this))}stateChange(){this.input.value=this.checkbox.checked?"true":"false";let e=new Event("change");this.input.dispatchEvent(e)}},Jc=Ho;var qo=class{setup(){this.container=this.$refs.container,this.tabs=this.$manyRefs.tab,this.lastLayoutType="none",this.onDestroy=null,this.scrollCache={content:0,info:0},this.lastTabShown="content",this.mobileTabClick=this.mobileTabClick.bind(this),this.updateLayout(),window.addEventListener("resize",e=>{this.updateLayout()},{passive:!0})}updateLayout(){let e="tablet";window.innerWidth<=1e3&&(e="mobile"),window.innerWidth>=1400&&(e="desktop"),e!==this.lastLayoutType&&(this.onDestroy&&(this.onDestroy(),this.onDestroy=null),e==="desktop"?this.setupDesktop():e==="mobile"&&this.setupMobile(),this.lastLayoutType=e)}setupMobile(){for(let e of this.tabs)e.addEventListener("click",this.mobileTabClick);this.onDestroy=()=>{for(let e of this.tabs)e.removeEventListener("click",this.mobileTabClick)}}setupDesktop(){}mobileTabClick(e){let t=e.target.dataset.tab;this.showTab(t)}showContent(){this.showTab("content",!1)}showTab(e,t=!0){this.scrollCache[this.lastTabShown]=document.documentElement.scrollTop;for(let o of this.tabs){let s=o.dataset.tab===e;o.setAttribute("aria-selected",s?"true":"false")}let n=e==="info";if(this.container.classList.toggle("show-info",n),t){let s=document.querySelector("header").getBoundingClientRect().bottom;document.documentElement.scrollTop=this.scrollCache[e]||s,setTimeout(()=>{document.documentElement.scrollTop=this.scrollCache[e]||s},50)}this.lastTabShown=e}},ed=qo;var Vo=class{setup(){this.input=this.$refs.input,this.userInfoContainer=this.$refs.userInfo,this.hide=this.$el.components.dropdown.hide,qe(this.$el,"a.dropdown-search-item","click",this.selectUser.bind(this))}selectUser(e,t){e.preventDefault();let n=t.getAttribute("data-id");this.input.value=n,this.userInfoContainer.innerHTML=t.innerHTML,this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.hide()}},td=Vo;var Go=class{setup(){this.checkboxes=this.$el.querySelectorAll('input[type="checkbox"]'),this.allCheckbox=this.$el.querySelector('input[type="checkbox"][value="all"]'),this.$el.addEventListener("change",e=>{e.target.checked&&e.target===this.allCheckbox?this.deselectIndividualEvents():e.target.checked&&(this.allCheckbox.checked=!1)})}deselectIndividualEvents(){for(let e of this.checkboxes)e!==this.allCheckbox&&(e.checked=!1)}},rd=Go;function nd(r){for(let e=1;e<5;e++)r.shortcuts.add("meta+"+e,"",["FormatBlock",!1,"h"+(e+1)]);r.shortcuts.add("meta+5","",["FormatBlock",!1,"p"]),r.shortcuts.add("meta+d","",["FormatBlock",!1,"p"]),r.shortcuts.add("meta+6","",["FormatBlock",!1,"blockquote"]),r.shortcuts.add("meta+q","",["FormatBlock",!1,"blockquote"]),r.shortcuts.add("meta+7","",["codeeditor",!1,"pre"]),r.shortcuts.add("meta+e","",["codeeditor",!1,"pre"]),r.shortcuts.add("meta+8","",["FormatBlock",!1,"code"]),r.shortcuts.add("meta+shift+E","",["FormatBlock",!1,"code"]),r.shortcuts.add("meta+o","","InsertOrderedList"),r.shortcuts.add("meta+p","","InsertUnorderedList"),r.shortcuts.add("meta+S","",()=>{window.$events.emit("editor-save-draft")}),r.shortcuts.add("meta+13","",()=>{window.$events.emit("editor-save-page")}),r.shortcuts.add("meta+9","",function(){let e=r.selection.getNode(),t=e?e.closest(".callout"):null,n=["info","success","warning","danger"],s=(n.findIndex(a=>t&&t.classList.contains(a))+1)%n.length,i=n[s];r.formatter.apply("callout"+i)}),r.shortcuts.add("meta+shift+K","",function(){window.EntitySelectorPopup.show(function(e){r.selection.isCollapsed()?r.insertContent(r.dom.createHTML("a",{href:e.link},r.dom.encode(e.name))):r.formatter.apply("link",{href:e.link}),r.selection.collapse(!1),r.focus()})})}function id(r){window.$events.listen("editor::replace",({html:e})=>{r.setContent(e)}),window.$events.listen("editor::append",({html:e})=>{let t=r.getContent()+e;r.setContent(t)}),window.$events.listen("editor::prepend",({html:e})=>{let t=e+r.getContent();r.setContent(t)}),window.$events.listen("editor::insert",({html:e})=>{r.insertContent(e)}),window.$events.listen("editor::focus",()=>{r.initialized&&r.focus()})}function od(r){let t=new URL(window.location).searchParams.get("content-id");t&&Cm(r,t)}function Cm(r,e){let t=r.dom.get(encodeURIComponent(e).replace(/!/g,"%21"));!t||(t.scrollIntoView(),r.selection.select(t,!0),r.selection.collapse(!1),r.focus())}var ir,_n;function Am(r){return r&&!!(r.textContent||r.innerText)}function sd(r,e,t){let n=new Hr(t.clipboardData||t.dataTransfer);if(!n.hasItems()||n.containsTabularData())return;let o=n.getImages();for(let s of o){let i="image-"+Math.random().toString(16).slice(2),a=window.baseUrl("/loading.gif");t.preventDefault(),setTimeout(()=>{r.insertContent(`<p><img src="${a}" id="${i}"></p>`),km(s,e.pageId).then(l=>{let u=l.name.replace(/"/g,""),c=`<img src="${l.thumbs.display}" alt="${u}" />`,f=r.dom.create("a",{target:"_blank",href:l.url},c);r.dom.replace(f,i)}).catch(l=>{r.dom.remove(i),window.$events.emit("error",e.translations.imageUploadErrorText),console.log(l)})},10)}}async function km(r,e){if(r===null||r.type.indexOf("image")!==0)throw new Error("Not an image file");let t=r.name||`image-${Date.now()}.png`,n=new FormData;return n.append("file",r,t),n.append("uploaded_to",e),(await window.$http.post(window.baseUrl("/images/gallery"),n)).data}function Tm(r,e){let t=r.selection.getNode();t.nodeName==="IMG"&&(ir=r.dom.getParent(t,".mceTemp"),!ir&&t.parentNode.nodeName==="A"&&!Am(t.parentNode)&&(ir=t.parentNode)),t.hasAttribute("contenteditable")&&t.getAttribute("contenteditable")==="false"&&(_n=t)}function Im(r,e,t){let n=r.dom,o=tinymce.dom.RangeUtils.getCaretRangeFromPoint(t.clientX,t.clientY,r.getDoc()),s=t.dataTransfer&&t.dataTransfer.getData("bookstack/template");s&&(t.preventDefault(),window.$http.get(`/templates/${s}`).then(i=>{r.selection.setRng(o),r.undoManager.transact(function(){r.execCommand("mceInsertContent",!1,i.data.html)})})),n.getParent(o.startContainer,".mceTemp")?t.preventDefault():ir&&(t.preventDefault(),r.undoManager.transact(function(){r.selection.setRng(o),r.selection.setNode(ir),n.remove(ir)})),!t.isDefaultPrevented()&&_n&&(t.preventDefault(),r.undoManager.transact(function(){let i=r.selection.getNode(),a=r.selection.getRng(),l=i.closest("body > *");a.startOffset>a.startContainer.length/2?l.after(_n):l.before(_n)})),t.isDefaultPrevented()||sd(r,e,t),ir=null}function ad(r,e){r.on("dragstart",()=>Tm(r,e)),r.on("drop",t=>Im(r,e,t)),r.on("paste",t=>sd(r,e,t))}function ld(r){let e=r.textDirection==="rtl"?"ltr rtl":"";return["undo redo","styles","bold italic underline forecolor backcolor formatoverflow","alignleft aligncenter alignright alignjustify","bullist numlist listoverflow",e,"link table imagemanager-insert insertoverflow","code about fullscreen"].filter(n=>Boolean(n)).join(" | ")}function Dm(r){r.ui.registry.addGroupToolbarButton("formatoverflow",{icon:"more-drawer",tooltip:"More",items:"strikethrough superscript subscript inlinecode removeformat"}),r.ui.registry.addGroupToolbarButton("listoverflow",{icon:"more-drawer",tooltip:"More",items:"tasklist outdent indent"}),r.ui.registry.addGroupToolbarButton("insertoverflow",{icon:"more-drawer",tooltip:"More",items:"hr codeeditor drawio media details"})}function Lm(r){r.ui.registry.addContextToolbar("linkcontexttoolbar",{predicate(e){return e.closest("a")!==null},position:"node",scope:"node",items:"link unlink openlink"})}function Fm(r){r.ui.registry.addContextToolbar("imagecontexttoolbar",{predicate(e){return e.closest("img")!==null},position:"node",scope:"node",items:"image"})}function ud(r,e){Dm(r),Lm(r),Fm(r)}function cd(r){return r.tagName.toLowerCase()==="code-block"}function fd(r,e,t,n){window.components.first("code-editor").open(e,t,(o,s)=>{n(o,s),r.focus()})}function dd(r,e){fd(r,e.getContent(),e.getLanguage(),(t,n)=>{e.setContent(t,n)})}function Rm(r){let e=r.getDoc(),t=e.defaultView;class n extends t.HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});let s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("href",window.baseUrl("/dist/styles.css"));let i=document.createElement("div");i.style.pointerEvents="none",i.contentEditable="false",i.classList.add("CodeMirrorContainer"),this.shadowRoot.append(s,i)}getLanguage(){let s=l=>(l.split(" ").filter(c=>c.startsWith("language-"))[0]||"").replace("language-",""),i=this.querySelector("code"),a=this.querySelector("pre");return s(a.className)||i&&s(i.className)||""}setContent(s,i){this.cm&&importVersioned("code").then(u=>{u.setContent(this.cm,s),u.setMode(this.cm,i,s)});let a=this.querySelector("pre");a||(a=e.createElement("pre"),this.append(a)),a.innerHTML="";let l=e.createElement("code");a.append(l),l.innerText=s,l.className=`language-${i}`}getContent(){let s=this.querySelector("code")||this.querySelector("pre"),i=document.createElement("pre");i.innerHTML=s.innerHTML.replace(/\ufeff/g,"");let a=i.querySelectorAll("br");for(let l of a)l.replaceWith(`
`);return i.textContent}connectedCallback(){let s=Date.now();if(this.cm)return;this.cleanChildContent();let i=this.getContent(),l=i.split(`
-`).length*19.2+18+24;this.style.height=`${l}px`;let u=this.shadowRoot.querySelector(".CodeMirrorContainer"),c=f=>{console.log({content:i}),this.cm=f.wysiwygView(u,i,this.getLanguage()),f.updateLayout(this.cm),setTimeout(()=>{this.style.height=null},1)};window.importVersioned("code").then(f=>{let d=Date.now()-s<20?20:0;setTimeout(()=>c(f),d)})}cleanChildContent(){let s=this.querySelector("pre");if(!!s)for(let i of s.childNodes)i.nodeName==="#text"&&i.textContent==="\uFEFF"&&i.remove()}}t.customElements.define("code-block",n)}function Fm(r,e){r.ui.registry.addIcon("codeblock",'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1Zm1 2v14h14V5Z"/><path d="M11.103 15.423c.277.277.277.738 0 .922a.692.692 0 0 1-1.106 0l-4.057-3.78a.738.738 0 0 1 0-1.107l4.057-3.872c.276-.277.83-.277 1.106 0a.724.724 0 0 1 0 1.014L7.6 12.012ZM12.897 8.577c-.245-.312-.2-.675.08-.955.28-.281.727-.27 1.027.033l4.057 3.78a.738.738 0 0 1 0 1.107l-4.057 3.872c-.277.277-.83.277-1.107 0a.724.724 0 0 1 0-1.014l3.504-3.412z"/></svg>'),r.ui.registry.addButton("codeeditor",{tooltip:"Insert code block",icon:"codeblock",onAction(){r.execCommand("codeeditor")}}),r.addCommand("codeeditor",()=>{let t=r.selection.getNode(),n=t.ownerDocument;if(cd(t))dd(r,t);else{let o=r.selection.getContent({format:"text"});fd(r,o,"",(s,i)=>{let a=n.createElement("pre"),l=n.createElement("code");console.log(s),l.classList.add(`language-${i}`),l.innerText=s,a.append(l),r.insertContent(a.outerHTML)})}}),r.on("dblclick",t=>{let n=r.selection.getNode();cd(n)&&dd(r,n)}),r.on("PreInit",()=>{r.parser.addNodeFilter("pre",function(t){for(let n of t){let o=new tinymce.html.Node.create("code-block",{contenteditable:"false"}),s=n.getAll("span");for(let i of s)i.unwrap();n.attr("style",null),n.wrap(o)}}),r.parser.addNodeFilter("code-block",function(t){for(let n of t)n.attr("contenteditable","false")}),r.serializer.addNodeFilter("code-block",function(t){for(let n of t)n.unwrap()})}),r.on("PreInit",()=>{Lm(r)})}function hd(r){return Fm}var Tt=null,sr=null,or={};function Wo(r){return r.hasAttribute("drawio-diagram")}function Rm(r,e=null){Tt=r,sr=e,window.ImageManager.show(function(t){if(e){let n=e.querySelector("img");Tt.dom.setAttrib(n,"src",t.url),Tt.dom.setAttrib(e,"drawio-diagram",t.id)}else{let n=`<div drawio-diagram="${t.id}" contenteditable="false"><img src="${t.url}"></div>`;Tt.insertContent(n)}},"drawio")}function pd(r,e=null){Tt=r,sr=e,bt.show(or.drawioUrl,Pm,Om)}async function Om(r){let e="image-"+Math.random().toString(16).slice(2),t=window.baseUrl("/loading.gif"),n=o=>{o.status===413?window.$events.emit("error",or.translations.serverUploadLimitText):window.$events.emit("error",or.translations.imageUploadErrorText),console.log(o)};if(sr){bt.close();let o=sr.querySelector("img");try{let s=await bt.upload(r,or.pageId);Tt.dom.setAttrib(o,"src",s.url),Tt.dom.setAttrib(sr,"drawio-diagram",s.id)}catch(s){n(s)}return}setTimeout(async()=>{Tt.insertContent(`<div drawio-diagram contenteditable="false"><img src="${t}" id="${e}"></div>`),bt.close();try{let o=await bt.upload(r,or.pageId);Tt.dom.setAttrib(e,"src",o.url),Tt.dom.get(e).parentNode.setAttribute("drawio-diagram",o.id)}catch(o){Tt.dom.remove(e),n(o)}},5)}function Pm(){if(!sr)return Promise.resolve("");let r=sr.getAttribute("drawio-diagram");return bt.load(r)}function md(r){return or=r,function(e,t){e.addCommand("drawio",()=>{let n=e.selection.getNode();pd(e,Wo(n)?n:null)}),e.ui.registry.addIcon("diagram",`<svg width="24" height="24" fill="${or.darkMode?"#BBB":"#000000"}" xmlns="http://www.w3.org/2000/svg"><path d="M20.716 7.639V2.845h-4.794v1.598h-7.99V2.845H3.138v4.794h1.598v7.99H3.138v4.794h4.794v-1.598h7.99v1.598h4.794v-4.794h-1.598v-7.99zM4.736 4.443h1.598V6.04H4.736zm1.598 14.382H4.736v-1.598h1.598zm9.588-1.598h-7.99v-1.598H6.334v-7.99h1.598V6.04h7.99v1.598h1.598v7.99h-1.598zm3.196 1.598H17.52v-1.598h1.598zM17.52 6.04V4.443h1.598V6.04zm-4.21 7.19h-2.79l-.582 1.599H8.643l2.717-7.191h1.119l2.724 7.19h-1.302zm-2.43-1.006h2.086l-1.039-3.06z"/></svg>`),e.ui.registry.addSplitButton("drawio",{tooltip:"Insert/edit drawing",icon:"diagram",onAction(){e.execCommand("drawio")},fetch(n){n([{type:"choiceitem",text:"Drawing manager",value:"drawing-manager"}])},onItemAction(n,o){if(o==="drawing-manager"){let s=e.selection.getNode();Rm(e,Wo(s)?s:null)}}}),e.on("dblclick",n=>{let o=e.selection.getNode();!Wo(o)||pd(e,o)}),e.on("SetContent",function(){let n=e.$("body > div[drawio-diagram]");!n.length||e.undoManager.transact(function(){n.each((o,s)=>{s.setAttribute("contenteditable","false")})})})}}function Mm(r,e){r.addCommand("InsertHorizontalRule",function(){let t=document.createElement("hr"),n=r.selection.getNode();n.parentNode.insertBefore(t,n)}),r.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Insert horizontal line",onAction(){r.execCommand("InsertHorizontalRule")}})}function gd(r){return Mm}function _m(r,e){r.ui.registry.addButton("imagemanager-insert",{title:"Insert image",icon:"image",tooltip:"Insert image",onAction(){window.ImageManager.show(function(t){let n=t.thumbs.display||t.url,o=`<a href="${t.url}" target="_blank">`;o+=`<img src="${n}" alt="${t.name}">`,o+="</a>",r.execCommand("mceInsertContent",!1,o)},"gallery")}})}function vd(r){return _m}function Nm(r,e){let t={title:"About the WYSIWYG Editor",url:window.baseUrl("/help/wysiwyg")};r.ui.registry.addButton("about",{icon:"help",tooltip:"About the editor",onAction(){tinymce.activeEditor.windowManager.openUrl(t)}})}function yd(r){return Nm}function Bm(r,e){r.ui.registry.addIcon("details",'<svg width="24" height="24"><path d="M8.2 9a.5.5 0 0 0-.4.8l4 5.6a.5.5 0 0 0 .8 0l4-5.6a.5.5 0 0 0-.4-.8ZM20.122 18.151h-16c-.964 0-.934 2.7 0 2.7h16c1.139 0 1.173-2.7 0-2.7zM20.122 3.042h-16c-.964 0-.934 2.7 0 2.7h16c1.139 0 1.173-2.7 0-2.7z"/></svg>'),r.ui.registry.addIcon("togglefold",'<svg height="24" width="24"><path d="M8.12 19.3c.39.39 1.02.39 1.41 0L12 16.83l2.47 2.47c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-3.17-3.17c-.39-.39-1.02-.39-1.41 0l-3.17 3.17c-.4.38-.4 1.02-.01 1.41zm7.76-14.6c-.39-.39-1.02-.39-1.41 0L12 7.17 9.53 4.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.03 0 1.42l3.17 3.17c.39.39 1.02.39 1.41 0l3.17-3.17c.4-.39.4-1.03.01-1.42z"/></svg>'),r.ui.registry.addIcon("togglelabel",'<svg height="18" width="18" viewBox="0 0 24 24"><path d="M21.41,11.41l-8.83-8.83C12.21,2.21,11.7,2,11.17,2H4C2.9,2,2,2.9,2,4v7.17c0,0.53,0.21,1.04,0.59,1.41l8.83,8.83 c0.78,0.78,2.05,0.78,2.83,0l7.17-7.17C22.2,13.46,22.2,12.2,21.41,11.41z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5 S7.33,8,6.5,8z"/></svg>'),r.ui.registry.addButton("details",{icon:"details",tooltip:"Insert collapsible block",onAction(){r.execCommand("InsertDetailsBlock")}}),r.ui.registry.addButton("removedetails",{icon:"table-delete-table",tooltip:"Unwrap",onAction(){jm(r)}}),r.ui.registry.addButton("editdetials",{icon:"togglelabel",tooltip:"Edit label",onAction(){bd(r)}}),r.on("dblclick",t=>{!Nn(r)||t.target.closest("doc-root")||bd(r)}),r.ui.registry.addButton("toggledetails",{icon:"togglefold",tooltip:"Toggle open/closed",onAction(){Nn(r).toggleAttribute("open"),r.focus()}}),r.addCommand("InsertDetailsBlock",function(){let t=r.selection.getContent({format:"html"}),n=document.createElement("details"),o=document.createElement("summary"),s="details-"+Date.now();n.setAttribute("data-id",s),n.appendChild(o),t||(t="<p><br></p>"),n.innerHTML+=t,r.insertContent(n.outerHTML),r.focus();let i=r.dom.$(`[data-id="${s}"]`);if(i){let a=i.find("doc-root > *");a&&a[0].focus(),i.removeAttr("data-id")}}),r.ui.registry.addContextToolbar("details",{predicate:function(t){return t.nodeName.toLowerCase()==="details"},items:"editdetials toggledetails removedetails",position:"node",scope:"node"}),r.on("PreInit",()=>{Hm(r)})}function bd(r){let e=Nn(r);r.windowManager.open(Um(r)).setData({summary:$m(e)})}function Nn(r){return r.selection.getNode().closest("details")}function $m(r){let e=r.querySelector("summary");return e?e.textContent:""}function Um(r){return{title:"Edit collapsible block",body:{type:"panel",items:[{type:"input",name:"summary",label:"Toggle label"}]},buttons:[{type:"cancel",text:"Cancel"},{type:"submit",text:"Save",primary:!0}],onSubmit(e){let{summary:t}=e.getData();zm(r,t),e.close()}}}function zm(r,e){let t=Nn(r);!t||r.undoManager.transact(()=>{let n=t.querySelector("summary");n||(n=document.createElement("summary"),t.prepend(n)),n.textContent=e})}function jm(r){let e=r.selection.getNode().closest("details"),t=r.selection.getBookmark();if(e){let n=e.querySelectorAll("details > *:not(summary, doc-root), doc-root > *");r.undoManager.transact(()=>{for(let o of n)e.parentNode.insertBefore(o,e);e.remove()})}r.focus(),r.selection.moveToBookmark(t)}function Hm(r){r.parser.addNodeFilter("details",function(e){for(let t of e)qm(t)}),r.serializer.addNodeFilter("details",function(e){for(let t of e)Yo(t),t.attr("open",null)}),r.serializer.addNodeFilter("doc-root",function(e){for(let t of e)t.unwrap()})}function qm(r){Yo(r),r.attr("contenteditable","false");let e=tinymce.html.Node.create("doc-root",{contenteditable:"true"});for(let t of r.children())t.name!=="summary"&&e.append(t);r.append(e)}function Yo(r){r.attr("contenteditable",null);let e=!1;for(let t of r.children())t.name==="doc-root"&&(t.unwrap(),e=!0);e&&Yo(r)}function xd(r){return Bm}function Vm(r,e){r.ui.registry.addIcon("tasklist",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M22,8c0-0.55-0.45-1-1-1h-7c-0.55,0-1,0.45-1,1s0.45,1,1,1h7C21.55,9,22,8.55,22,8z M13,16c0,0.55,0.45,1,1,1h7 c0.55,0,1-0.45,1-1c0-0.55-0.45-1-1-1h-7C13.45,15,13,15.45,13,16z M10.47,4.63c0.39,0.39,0.39,1.02,0,1.41l-4.23,4.25 c-0.39,0.39-1.02,0.39-1.42,0L2.7,8.16c-0.39-0.39-0.39-1.02,0-1.41c0.39-0.39,1.02-0.39,1.41,0l1.42,1.42l3.54-3.54 C9.45,4.25,10.09,4.25,10.47,4.63z M10.48,12.64c0.39,0.39,0.39,1.02,0,1.41l-4.23,4.25c-0.39,0.39-1.02,0.39-1.42,0L2.7,16.16 c-0.39-0.39-0.39-1.02,0-1.41s1.02-0.39,1.41,0l1.42,1.42l3.54-3.54C9.45,12.25,10.09,12.25,10.48,12.64L10.48,12.64z"/></svg>'),r.ui.registry.addToggleButton("tasklist",{tooltip:"Task list",icon:"tasklist",active:!1,onAction(o){o.isActive()?r.execCommand("RemoveList"):r.execCommand("InsertUnorderedList",null,{"list-item-attributes":{class:"task-list-item"},"list-style-type":"tasklist"})},onSetup(o){r.on("NodeChange",s=>{let i=s.parents.find(l=>l.nodeName==="LI"),a=i&&i.classList.contains("task-list-item");o.setActive(a)})}});let t=r.ui.registry.getAll().buttons.bullist;t.onSetup=function(o){r.on("NodeChange",s=>{let i=s.parents.find(u=>u.nodeName==="LI"),a=i&&i.classList.contains("task-list-item"),l=i&&i.parentNode.nodeName==="UL";o.setActive(l&&!a)})},t.onAction=function(){Gm(r.selection.getNode())&&r.execCommand("InsertOrderedList",null,{"list-item-attributes":{class:null}}),r.execCommand("InsertUnorderedList",null,{"list-item-attributes":{class:null}})};let n=r.ui.registry.getAll().buttons.numlist;n.onAction=function(){r.execCommand("InsertOrderedList",null,{"list-item-attributes":{class:null}})},r.on("PreInit",()=>{r.parser.addNodeFilter("li",function(o){for(let s of o)s.attributes.map.class==="task-list-item"&&Ym(s)}),r.serializer.addNodeFilter("li",function(o){for(let s of o)s.attributes.map.class==="task-list-item"&&Km(s)})}),r.on("click",function(o){let s=o.target;s.nodeName==="LI"&&s.classList.contains("task-list-item")&&(Wm(o,s,r),o.preventDefault())})}function Gm(r){let e=r.closest("li");return e&&e.parentNode.nodeName==="UL"&&e.classList.contains("task-list-item")}function Wm(r,e,t){let n=e.getBoundingClientRect();r.clientX<=n.right&&r.clientX>=n.left&&r.clientY>=n.top&&r.clientY<=n.bottom||t.undoManager.transact(()=>{e.hasAttribute("checked")?e.removeAttribute("checked"):e.setAttribute("checked","checked")})}function Ym(r){r.attr("class","task-list-item");for(let e of r.children())e.name==="input"&&(e.attr("checked")==="checked"&&r.attr("checked","checked"),e.remove())}function Km(r){let e=r.attr("checked")==="checked";r.attr("checked",null);let t={type:"checkbox",disabled:"disabled"};e&&(t.checked="checked");let n=new tinymce.html.Node.create("input",t);n.shortEnded=!0,r.firstChild?r.insert(n,r.firstChild,!0):r.append(n)}function wd(r){return Vm}var Xm=[{title:"Large Header",format:"h2",preview:"color: blue;"},{title:"Medium Header",format:"h3"},{title:"Small Header",format:"h4"},{title:"Tiny Header",format:"h5"},{title:"Paragraph",format:"p",exact:!0,classes:""},{title:"Blockquote",format:"blockquote"},{title:"Callouts",items:[{title:"Information",format:"calloutinfo"},{title:"Success",format:"calloutsuccess"},{title:"Warning",format:"calloutwarning"},{title:"Danger",format:"calloutdanger"}]}],Zm={alignleft:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-left"},aligncenter:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-center"},alignright:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-right"},calloutsuccess:{block:"p",exact:!0,attributes:{class:"callout success"}},calloutinfo:{block:"p",exact:!0,attributes:{class:"callout info"}},calloutwarning:{block:"p",exact:!0,attributes:{class:"callout warning"}},calloutdanger:{block:"p",exact:!0,attributes:{class:"callout danger"}}};function Qm(r,e,t){t.filetype==="file"&&window.EntitySelectorPopup.show(n=>{r(n.link,{text:n.name,title:n.name})}),t.filetype==="image"&&window.ImageManager.show(function(n){r(n.url,{alt:n.name})},"gallery")}function Jm(r){let e=["image","imagetools","table","paste","link","autolink","fullscreen","code","customhr","autosave","lists","codeeditor","media","imagemanager","about","details","tasklist",r.textDirection==="rtl"?"directionality":""];return window.tinymce.PluginManager.add("codeeditor",hd(r)),window.tinymce.PluginManager.add("customhr",gd(r)),window.tinymce.PluginManager.add("imagemanager",vd(r)),window.tinymce.PluginManager.add("about",yd(r)),window.tinymce.PluginManager.add("details",xd(r)),window.tinymce.PluginManager.add("tasklist",wd(r)),r.drawioUrl&&(window.tinymce.PluginManager.add("drawio",md(r)),e.push("drawio")),e.filter(t=>Boolean(t)).join(" ")}function eg(){let r=document.head.innerHTML.split(`
+`).length*19.2+18+24;this.style.height=`${l}px`;let u=this.shadowRoot.querySelector(".CodeMirrorContainer"),c=f=>{this.cm=f.wysiwygView(u,i,this.getLanguage()),f.updateLayout(this.cm),setTimeout(()=>{this.style.height=null},1)};window.importVersioned("code").then(f=>{let h=Date.now()-s<20?20:0;setTimeout(()=>c(f),h)})}cleanChildContent(){let s=this.querySelector("pre");if(!!s)for(let i of s.childNodes)i.nodeName==="#text"&&i.textContent==="\uFEFF"&&i.remove()}}t.customElements.define("code-block",n)}function Om(r,e){r.ui.registry.addIcon("codeblock",'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1Zm1 2v14h14V5Z"/><path d="M11.103 15.423c.277.277.277.738 0 .922a.692.692 0 0 1-1.106 0l-4.057-3.78a.738.738 0 0 1 0-1.107l4.057-3.872c.276-.277.83-.277 1.106 0a.724.724 0 0 1 0 1.014L7.6 12.012ZM12.897 8.577c-.245-.312-.2-.675.08-.955.28-.281.727-.27 1.027.033l4.057 3.78a.738.738 0 0 1 0 1.107l-4.057 3.872c-.277.277-.83.277-1.107 0a.724.724 0 0 1 0-1.014l3.504-3.412z"/></svg>'),r.ui.registry.addButton("codeeditor",{tooltip:"Insert code block",icon:"codeblock",onAction(){r.execCommand("codeeditor")}}),r.addCommand("codeeditor",()=>{let t=r.selection.getNode(),n=t.ownerDocument;if(cd(t))dd(r,t);else{let o=r.selection.getContent({format:"text"});fd(r,o,"",(s,i)=>{let a=n.createElement("pre"),l=n.createElement("code");l.classList.add(`language-${i}`),l.innerText=s,a.append(l),r.insertContent(a.outerHTML)})}}),r.on("dblclick",t=>{let n=r.selection.getNode();cd(n)&&dd(r,n)}),r.on("PreInit",()=>{r.parser.addNodeFilter("pre",function(t){for(let n of t){let o=tinymce.html.Node.create("code-block",{contenteditable:"false"}),s=n.getAll("span");for(let i of s)i.unwrap();n.attr("style",null),n.wrap(o)}}),r.parser.addNodeFilter("code-block",function(t){for(let n of t)n.attr("contenteditable","false")}),r.serializer.addNodeFilter("code-block",function(t){for(let n of t)n.unwrap()})}),r.on("PreInit",()=>{Rm(r)})}function hd(r){return Om}var Tt=null,sr=null,or={};function Wo(r){return r.hasAttribute("drawio-diagram")}function Pm(r,e=null){Tt=r,sr=e,window.ImageManager.show(function(t){if(e){let n=e.querySelector("img");Tt.dom.setAttrib(n,"src",t.url),Tt.dom.setAttrib(e,"drawio-diagram",t.id)}else{let n=`<div drawio-diagram="${t.id}" contenteditable="false"><img src="${t.url}"></div>`;Tt.insertContent(n)}},"drawio")}function pd(r,e=null){Tt=r,sr=e,bt.show(or.drawioUrl,_m,Mm)}async function Mm(r){let e="image-"+Math.random().toString(16).slice(2),t=window.baseUrl("/loading.gif"),n=o=>{o.status===413?window.$events.emit("error",or.translations.serverUploadLimitText):window.$events.emit("error",or.translations.imageUploadErrorText),console.log(o)};if(sr){bt.close();let o=sr.querySelector("img");try{let s=await bt.upload(r,or.pageId);Tt.dom.setAttrib(o,"src",s.url),Tt.dom.setAttrib(sr,"drawio-diagram",s.id)}catch(s){n(s)}return}setTimeout(async()=>{Tt.insertContent(`<div drawio-diagram contenteditable="false"><img src="${t}" id="${e}"></div>`),bt.close();try{let o=await bt.upload(r,or.pageId);Tt.dom.setAttrib(e,"src",o.url),Tt.dom.get(e).parentNode.setAttribute("drawio-diagram",o.id)}catch(o){Tt.dom.remove(e),n(o)}},5)}function _m(){if(!sr)return Promise.resolve("");let r=sr.getAttribute("drawio-diagram");return bt.load(r)}function md(r){return or=r,function(e,t){e.addCommand("drawio",()=>{let n=e.selection.getNode();pd(e,Wo(n)?n:null)}),e.ui.registry.addIcon("diagram",`<svg width="24" height="24" fill="${or.darkMode?"#BBB":"#000000"}" xmlns="http://www.w3.org/2000/svg"><path d="M20.716 7.639V2.845h-4.794v1.598h-7.99V2.845H3.138v4.794h1.598v7.99H3.138v4.794h4.794v-1.598h7.99v1.598h4.794v-4.794h-1.598v-7.99zM4.736 4.443h1.598V6.04H4.736zm1.598 14.382H4.736v-1.598h1.598zm9.588-1.598h-7.99v-1.598H6.334v-7.99h1.598V6.04h7.99v1.598h1.598v7.99h-1.598zm3.196 1.598H17.52v-1.598h1.598zM17.52 6.04V4.443h1.598V6.04zm-4.21 7.19h-2.79l-.582 1.599H8.643l2.717-7.191h1.119l2.724 7.19h-1.302zm-2.43-1.006h2.086l-1.039-3.06z"/></svg>`),e.ui.registry.addSplitButton("drawio",{tooltip:"Insert/edit drawing",icon:"diagram",onAction(){e.execCommand("drawio"),window.document.body.dispatchEvent(new Event("mousedown",{bubbles:!0}))},fetch(n){n([{type:"choiceitem",text:"Drawing manager",value:"drawing-manager"}])},onItemAction(n,o){if(o==="drawing-manager"){let s=e.selection.getNode();Pm(e,Wo(s)?s:null)}}}),e.on("dblclick",n=>{let o=e.selection.getNode();!Wo(o)||pd(e,o)}),e.on("SetContent",function(){let n=e.dom.select("body > div[drawio-diagram]");!n.length||e.undoManager.transact(function(){for(let o of n)o.setAttribute("contenteditable","false")})})}}function Nm(r,e){r.addCommand("InsertHorizontalRule",function(){let t=document.createElement("hr"),n=r.selection.getNode();n.parentNode.insertBefore(t,n)}),r.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Insert horizontal line",onAction(){r.execCommand("InsertHorizontalRule")}})}function gd(r){return Nm}function Bm(r,e){r.ui.registry.addButton("imagemanager-insert",{title:"Insert image",icon:"image",tooltip:"Insert image",onAction(){window.ImageManager.show(function(t){let n=t.thumbs.display||t.url,o=`<a href="${t.url}" target="_blank">`;o+=`<img src="${n}" alt="${t.name}">`,o+="</a>",r.execCommand("mceInsertContent",!1,o)},"gallery")}})}function vd(r){return Bm}function $m(r,e){let t={title:"About the WYSIWYG Editor",url:window.baseUrl("/help/wysiwyg")};r.ui.registry.addButton("about",{icon:"help",tooltip:"About the editor",onAction(){tinymce.activeEditor.windowManager.openUrl(t)}})}function yd(r){return $m}var bd=["p","h1","h2","h3","h4","h5","h6","div","blockquote","pre","code-block","details","ul","ol","table"];function Um(r,e){r.ui.registry.addIcon("details",'<svg width="24" height="24"><path d="M8.2 9a.5.5 0 0 0-.4.8l4 5.6a.5.5 0 0 0 .8 0l4-5.6a.5.5 0 0 0-.4-.8ZM20.122 18.151h-16c-.964 0-.934 2.7 0 2.7h16c1.139 0 1.173-2.7 0-2.7zM20.122 3.042h-16c-.964 0-.934 2.7 0 2.7h16c1.139 0 1.173-2.7 0-2.7z"/></svg>'),r.ui.registry.addIcon("togglefold",'<svg height="24" width="24"><path d="M8.12 19.3c.39.39 1.02.39 1.41 0L12 16.83l2.47 2.47c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-3.17-3.17c-.39-.39-1.02-.39-1.41 0l-3.17 3.17c-.4.38-.4 1.02-.01 1.41zm7.76-14.6c-.39-.39-1.02-.39-1.41 0L12 7.17 9.53 4.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.03 0 1.42l3.17 3.17c.39.39 1.02.39 1.41 0l3.17-3.17c.4-.39.4-1.03.01-1.42z"/></svg>'),r.ui.registry.addIcon("togglelabel",'<svg height="18" width="18" viewBox="0 0 24 24"><path d="M21.41,11.41l-8.83-8.83C12.21,2.21,11.7,2,11.17,2H4C2.9,2,2,2.9,2,4v7.17c0,0.53,0.21,1.04,0.59,1.41l8.83,8.83 c0.78,0.78,2.05,0.78,2.83,0l7.17-7.17C22.2,13.46,22.2,12.2,21.41,11.41z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5 S7.33,8,6.5,8z"/></svg>'),r.ui.registry.addButton("details",{icon:"details",tooltip:"Insert collapsible block",onAction(){r.execCommand("InsertDetailsBlock")}}),r.ui.registry.addButton("removedetails",{icon:"table-delete-table",tooltip:"Unwrap",onAction(){qm(r)}}),r.ui.registry.addButton("editdetials",{icon:"togglelabel",tooltip:"Edit label",onAction(){xd(r)}}),r.on("dblclick",t=>{!Nn(r)||t.target.closest("doc-root")||xd(r)}),r.ui.registry.addButton("toggledetails",{icon:"togglefold",tooltip:"Toggle open/closed",onAction(){Nn(r).toggleAttribute("open"),r.focus()}}),r.addCommand("InsertDetailsBlock",function(){let t=r.selection.getContent({format:"html"}),n=document.createElement("details"),o=document.createElement("summary"),s="details-"+Date.now();n.setAttribute("data-id",s),n.appendChild(o),t||(t="<p><br></p>"),n.innerHTML+=t,r.insertContent(n.outerHTML),r.focus();let i=r.dom.select(`[data-id="${s}"]`)[0]||null;if(i){let a=i.querySelector("doc-root > *");a&&a.focus(),i.removeAttribute("data-id")}}),r.ui.registry.addContextToolbar("details",{predicate:function(t){return t.nodeName.toLowerCase()==="details"},items:"editdetials toggledetails removedetails",position:"node",scope:"node"}),r.on("PreInit",()=>{Vm(r)})}function xd(r){let e=Nn(r);r.windowManager.open(jm(r)).setData({summary:zm(e)})}function Nn(r){return r.selection.getNode().closest("details")}function zm(r){let e=r.querySelector("summary");return e?e.textContent:""}function jm(r){return{title:"Edit collapsible block",body:{type:"panel",items:[{type:"input",name:"summary",label:"Toggle label"}]},buttons:[{type:"cancel",text:"Cancel"},{type:"submit",text:"Save",primary:!0}],onSubmit(e){let{summary:t}=e.getData();Hm(r,t),e.close()}}}function Hm(r,e){let t=Nn(r);!t||r.undoManager.transact(()=>{let n=t.querySelector("summary");n||(n=document.createElement("summary"),t.prepend(n)),n.textContent=e})}function qm(r){let e=r.selection.getNode().closest("details"),t=r.selection.getBookmark();if(e){let n=e.querySelectorAll("details > *:not(summary, doc-root), doc-root > *");r.undoManager.transact(()=>{for(let o of n)e.parentNode.insertBefore(o,e);e.remove()})}r.focus(),r.selection.moveToBookmark(t)}function Vm(r){r.parser.addNodeFilter("details",function(e){for(let t of e)Gm(t)}),r.serializer.addNodeFilter("details",function(e){for(let t of e)Yo(t),t.attr("open",null)}),r.serializer.addNodeFilter("doc-root",function(e){for(let t of e)t.unwrap()})}function Gm(r){Yo(r),r.attr("contenteditable","false");let e=tinymce.html.Node.create("doc-root",{contenteditable:"true"}),t=null;for(let n of r.children()){if(n.name==="summary")continue;bd.includes(n.name)?(e.append(n),t=null):(t||(t=tinymce.html.Node.create("p"),e.append(t)),t.append(n))}r.append(e)}function Yo(r){r.attr("contenteditable",null);let e=!1;for(let t of r.children())t.name==="doc-root"&&(t.unwrap(),e=!0);e&&Yo(r)}function wd(r){return Um}function Wm(r,e){r.ui.registry.addIcon("tasklist",'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M22,8c0-0.55-0.45-1-1-1h-7c-0.55,0-1,0.45-1,1s0.45,1,1,1h7C21.55,9,22,8.55,22,8z M13,16c0,0.55,0.45,1,1,1h7 c0.55,0,1-0.45,1-1c0-0.55-0.45-1-1-1h-7C13.45,15,13,15.45,13,16z M10.47,4.63c0.39,0.39,0.39,1.02,0,1.41l-4.23,4.25 c-0.39,0.39-1.02,0.39-1.42,0L2.7,8.16c-0.39-0.39-0.39-1.02,0-1.41c0.39-0.39,1.02-0.39,1.41,0l1.42,1.42l3.54-3.54 C9.45,4.25,10.09,4.25,10.47,4.63z M10.48,12.64c0.39,0.39,0.39,1.02,0,1.41l-4.23,4.25c-0.39,0.39-1.02,0.39-1.42,0L2.7,16.16 c-0.39-0.39-0.39-1.02,0-1.41s1.02-0.39,1.41,0l1.42,1.42l3.54-3.54C9.45,12.25,10.09,12.25,10.48,12.64L10.48,12.64z"/></svg>'),r.ui.registry.addToggleButton("tasklist",{tooltip:"Task list",icon:"tasklist",active:!1,onAction(o){o.isActive()?r.execCommand("RemoveList"):r.execCommand("InsertUnorderedList",null,{"list-item-attributes":{class:"task-list-item"},"list-style-type":"tasklist"})},onSetup(o){r.on("NodeChange",s=>{let i=s.parents.find(l=>l.nodeName==="LI"),a=i&&i.classList.contains("task-list-item");o.setActive(Boolean(a))})}});let t=r.ui.registry.getAll().buttons.bullist;t.onSetup=function(o){r.on("NodeChange",s=>{let i=s.parents.find(u=>u.nodeName==="LI"),a=i&&i.classList.contains("task-list-item"),l=i&&i.parentNode.nodeName==="UL";o.setActive(Boolean(l&&!a))})},t.onAction=function(){Ym(r.selection.getNode())&&r.execCommand("InsertOrderedList",null,{"list-item-attributes":{class:null}}),r.execCommand("InsertUnorderedList",null,{"list-item-attributes":{class:null}})};let n=r.ui.registry.getAll().buttons.numlist;n.onAction=function(){r.execCommand("InsertOrderedList",null,{"list-item-attributes":{class:null}})},r.on("PreInit",()=>{r.parser.addNodeFilter("li",function(o){for(let s of o)s.attributes.map.class==="task-list-item"&&Xm(s)}),r.serializer.addNodeFilter("li",function(o){for(let s of o)s.attributes.map.class==="task-list-item"&&Zm(s)})}),r.on("click",function(o){let s=o.target;s.nodeName==="LI"&&s.classList.contains("task-list-item")&&(Km(o,s,r),o.preventDefault())})}function Ym(r){let e=r.closest("li");return e&&e.parentNode.nodeName==="UL"&&e.classList.contains("task-list-item")}function Km(r,e,t){let n=e.getBoundingClientRect();r.clientX<=n.right&&r.clientX>=n.left&&r.clientY>=n.top&&r.clientY<=n.bottom||t.undoManager.transact(()=>{e.hasAttribute("checked")?e.removeAttribute("checked"):e.setAttribute("checked","checked")})}function Xm(r){r.attr("class","task-list-item");for(let e of r.children())e.name==="input"&&(e.attr("checked")==="checked"&&r.attr("checked","checked"),e.remove())}function Zm(r){let e=r.attr("checked")==="checked";r.attr("checked",null);let t={type:"checkbox",disabled:"disabled"};e&&(t.checked="checked");let n=tinymce.html.Node.create("input",t);n.shortEnded=!0,r.firstChild?r.insert(n,r.firstChild,!0):r.append(n)}function Ed(r){return Wm}var Qm=[{title:"Large Header",format:"h2",preview:"color: blue;"},{title:"Medium Header",format:"h3"},{title:"Small Header",format:"h4"},{title:"Tiny Header",format:"h5"},{title:"Paragraph",format:"p",exact:!0,classes:""},{title:"Blockquote",format:"blockquote"},{title:"Callouts",items:[{title:"Information",format:"calloutinfo"},{title:"Success",format:"calloutsuccess"},{title:"Warning",format:"calloutwarning"},{title:"Danger",format:"calloutdanger"}]}],Jm={alignleft:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-left"},aligncenter:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-center"},alignright:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-right"},calloutsuccess:{block:"p",exact:!0,attributes:{class:"callout success"}},calloutinfo:{block:"p",exact:!0,attributes:{class:"callout info"}},calloutwarning:{block:"p",exact:!0,attributes:{class:"callout warning"}},calloutdanger:{block:"p",exact:!0,attributes:{class:"callout danger"}}},eg=["#BFEDD2","","#FBEEB8","","#F8CAC6","","#ECCAFA","","#C2E0F4","","#2DC26B","","#F1C40F","","#E03E2D","","#B96AD9","","#3598DB","","#169179","","#E67E23","","#BA372A","","#843FA1","","#236FA1","","#ECF0F1","","#CED4D9","","#95A5A6","","#7E8C8D","","#34495E","","#000000","","#ffffff",""];function tg(r,e,t){t.filetype==="file"&&window.EntitySelectorPopup.show(n=>{r(n.link,{text:n.name,title:n.name})}),t.filetype==="image"&&window.ImageManager.show(function(n){r(n.url,{alt:n.name})},"gallery")}function rg(r){let e=["image","table","link","autolink","fullscreen","code","customhr","autosave","lists","codeeditor","media","imagemanager","about","details","tasklist",r.textDirection==="rtl"?"directionality":""];return window.tinymce.PluginManager.add("codeeditor",hd(r)),window.tinymce.PluginManager.add("customhr",gd(r)),window.tinymce.PluginManager.add("imagemanager",vd(r)),window.tinymce.PluginManager.add("about",yd(r)),window.tinymce.PluginManager.add("details",wd(r)),window.tinymce.PluginManager.add("tasklist",Ed(r)),r.drawioUrl&&(window.tinymce.PluginManager.add("drawio",md(r)),e.push("drawio")),e.filter(t=>Boolean(t))}function ng(){let r=document.head.innerHTML.split(`
`),e=r.findIndex(n=>n.trim()==="<!-- Start: custom user content -->"),t=r.findIndex(n=>n.trim()==="<!-- End: custom user content -->");return e===-1||t===-1?"":r.slice(e+1,t).join(`
-`)}function tg(r){r.serializer.addNodeFilter("br",function(e){for(let t of e)if(t.parent&&t.parent.name==="code"){let n=new tinymce.html.Node.create("#text");n.value=`
-`,t.replace(n)}})}function rg(r){return function(e){e.on("ExecCommand change input NodeChange ObjectResized",t),id(e),nd(e),ad(e,r),e.on("init",()=>{t(),od(e),window.editor=e}),e.on("PreInit",()=>{tg(e)});function t(){let n=e.getContent();r.darkMode&&e.contentDocument.documentElement.classList.add("dark-mode"),window.$events.emit("editor-html-change",n)}window.$events.emitPublic(r.containerElement,"editor-tinymce::setup",{editor:e}),e.ui.registry.addButton("inlinecode",{tooltip:"Inline code",icon:"sourcecode",onAction(){e.execCommand("mceToggleFormat",!1,"code")}})}}function ng(r){return`
+`)}function ig(r){r.serializer.addNodeFilter("br",function(e){for(let t of e)if(t.parent&&t.parent.name==="code"){let n=tinymce.html.Node.create("#text");n.value=`
+`,t.replace(n)}})}function og(r){return function(e){e.on("ExecCommand change input NodeChange ObjectResized",t),id(e),ad(e,r),e.on("init",()=>{t(),od(e),window.editor=e,nd(e)}),e.on("PreInit",()=>{ig(e)});function t(){let n=e.getContent();r.darkMode&&e.contentDocument.documentElement.classList.add("dark-mode"),window.$events.emit("editor-html-change",n)}window.$events.emitPublic(r.containerElement,"editor-tinymce::setup",{editor:e}),e.ui.registry.addButton("inlinecode",{tooltip:"Inline code",icon:"sourcecode",onAction(){e.execCommand("mceToggleFormat",!1,"code")}})}}function sg(r){return`
html, body, html.dark-mode {
background: ${r.darkMode?"#222":"#fff"};
}
margin-right: auto !important;
overflow-y: hidden !important;
}`.trim().replace(`
-`,"")}function Ed(r){window.tinymce.addI18n(r.language,r.translationMap);let e=document.querySelector('script[src*="/dist/app.js"]').getAttribute("src").split("?version=")[1];return{width:"100%",height:"100%",selector:"#html-editor",cache_suffix:"?version="+e,content_css:[window.baseUrl("/dist/styles.css")],branding:!1,skin:r.darkMode?"oxide-dark":"oxide",body_class:"page-content",browser_spellcheck:!0,relative_urls:!1,language:r.language,directionality:r.textDirection,remove_script_host:!1,document_base_url:window.baseUrl("/"),end_container_on_empty_block:!0,remove_trailing_brs:!1,statusbar:!1,menubar:!1,paste_data_images:!1,extended_valid_elements:"pre[*],svg[*],div[drawio-diagram],details[*],summary[*],div[*],li[class|checked]",automatic_uploads:!1,custom_elements:"doc-root,code-block",valid_children:["-div[p|h1|h2|h3|h4|h5|h6|blockquote|code-block]","+div[pre|img]","-doc-root[doc-root|#text]","-li[details]","+code-block[pre]","+doc-root[code-block]"].join(","),plugins:Jm(r),imagetools_toolbar:"imageoptions",contextmenu:!1,toolbar:ld(r),content_style:ng(r),style_formats:Xm,style_formats_merge:!1,media_alt_source:!1,media_poster:!1,formats:Zm,file_picker_types:"file image",file_picker_callback:Qm,paste_preprocess(t,n){n.content.indexOf('<img src="file://')!==-1&&(n.content="")},init_instance_callback(t){let n=t.getDoc().querySelector("head");n.innerHTML+=eg()},setup(t){ud(t,r),rg(r)(t)}}}var Ko=class{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.isDarkMode=document.documentElement.classList.contains("dark-mode"),this.tinyMceConfig=Ed({language:this.$opts.language,containerElement:this.elem,darkMode:this.isDarkMode,textDirection:this.textDirection,drawioUrl:this.getDrawIoUrl(),pageId:Number(this.pageId),translations:{imageUploadErrorText:this.$opts.imageUploadErrorText,serverUploadLimitText:this.$opts.serverUploadLimitText},translationMap:window.editor_translations}),window.$events.emitPublic(this.elem,"editor-tinymce::pre-init",{config:this.tinyMceConfig}),window.tinymce.init(this.tinyMceConfig)}getDrawIoUrl(){let e=document.querySelector("[drawio-url]");return e?e.getAttribute("drawio-url"):""}},Sd=Ko;var Cd={"add-remove-rows":ls,"ajax-delete-row":us,"ajax-form":cs,attachments:ds,"attachments-list":fs,"auto-suggest":hs,"back-to-top":ps,"book-sort":Bs,"chapter-contents":zs,"code-editor":js,"code-highlighter":Hs,"code-textarea":qs,collapsible:Vs,"confirm-dialog":Gs,"custom-checkbox":Ws,"details-highlighter":Ys,dropdown:Ks,"dropdown-search":Xs,dropzone:Js,"editor-toolbox":ea,"entity-permissions-editor":ta,"entity-search":ra,"entity-selector":na,"entity-selector-popup":ia,"event-emit-select":oa,"expand-toggle":sa,"header-mobile-toggle":aa,"homepage-control":la,"image-manager":ua,"image-picker":ca,"list-sort-control":da,"markdown-editor":Fc,"new-user-password":Rc,notification:Oc,"optional-input":Pc,"page-comments":Mc,"page-display":Bc,"page-editor":Uc,"page-picker":zc,"permissions-table":jc,popup:Hc,"setting-app-color-picker":qc,"setting-color-picker":Vc,"shelf-sort":Gc,sidebar:Wc,"sortable-list":Yc,"submit-on-change":Kc,tabs:Xc,"tag-manager":Zc,"template-manager":Qc,"toggle-switch":Jc,"tri-layout":ed,"user-select":td,"webhook-events":rd,"wysiwyg-editor":Sd};window.components={};function ig(r,e){let t=e.querySelectorAll(`[${r}]`);for(let n=0,o=t.length;n<o;n++)Ad(r,t[n])}function Ad(r,e){let t=Cd[r];if(t===void 0)return;let n;try{n=new t(e),n.$el=e;let o=og(r,e);n.$refs=o.refs,n.$manyRefs=o.manyRefs,n.$opts=sg(r,e),n.$emit=(s,i={})=>{i.from=n;let a=new CustomEvent(`${r}-${s}`,{bubbles:!0,detail:i});n.$el.dispatchEvent(a)},typeof n.setup=="function"&&n.setup()}catch(o){console.error("Failed to create component",o,r,e)}typeof window.components[r]>"u"&&(window.components[r]=[]),window.components[r].push(n),typeof e.components>"u"&&(e.components={}),e.components[r]=n}function og(r,e){let t={},n={},o=`${r}@`,s=`[refs*="${o}"]`,i=[...e.querySelectorAll(s)];e.matches(s)&&i.push(e);for(let a of i){let l=a.getAttribute("refs").split(" ").filter(u=>u.startsWith(o)).map(u=>u.replace(o,"")).map(kd);for(let u of l)t[u]=a,typeof n[u]>"u"&&(n[u]=[]),n[u].push(a)}return{refs:t,manyRefs:n}}function sg(r,e){let t={},n=`option:${r}:`;for(let{name:o,value:s}of e.attributes)if(o.startsWith(n)){let i=o.replace(n,"");t[kd(i)]=s||""}return t}function kd(r){let e=n=>n.slice(0,1).toUpperCase()+n.slice(1),t=r.split("-");return t[0]+t.slice(1).map(e).join("")}function Td(r){typeof r>"u"&&(r=document);for(let t of Object.keys(Cd))ig(t,r);let e=r.querySelectorAll("[component],[components]");for(let t of e){let n=`${t.getAttribute("component")||""} ${t.getAttribute("components")}`.toLowerCase().split(" ").filter(Boolean);for(let o of n)Ad(o,t)}}window.components.init=Td;window.components.first=r=>(window.components[r]||[null])[0];var Id=Td;window.baseUrl=function(r){let e=document.querySelector('meta[name="base-url"]').getAttribute("content");return e[e.length-1]==="/"&&(e=e.slice(0,e.length-1)),r[0]==="/"&&(r=r.slice(1)),e+"/"+r};window.importVersioned=function(r){let e=document.querySelector('link[href*="/dist/styles.css?version="]').href.split("?version=").pop();return import(window.baseUrl(`dist/${r}.js?version=${e}`))};window.$http=ts;window.$events=Jo;var xr=new rs;window.trans=xr.get.bind(xr);window.trans_choice=xr.getPlural.bind(xr);window.trans_plural=xr.parsePlural.bind(xr);Id();
+`,"")}function Sd(r){window.tinymce.addI18n(r.language,r.translationMap);let e=document.querySelector('script[src*="/dist/app.js"]').getAttribute("src").split("?version=")[1];return{width:"100%",height:"100%",selector:"#html-editor",cache_suffix:"?version="+e,content_css:[window.baseUrl("/dist/styles.css")],branding:!1,skin:r.darkMode?"tinymce-5-dark":"tinymce-5",body_class:"page-content",browser_spellcheck:!0,relative_urls:!1,language:r.language,directionality:r.textDirection,remove_script_host:!1,document_base_url:window.baseUrl("/"),end_container_on_empty_block:!0,remove_trailing_brs:!1,statusbar:!1,menubar:!1,paste_data_images:!1,extended_valid_elements:"pre[*],svg[*],div[drawio-diagram],details[*],summary[*],div[*],li[class|checked]",automatic_uploads:!1,custom_elements:"doc-root,code-block",valid_children:["-div[p|h1|h2|h3|h4|h5|h6|blockquote|code-block]","+div[pre|img]","-doc-root[doc-root|#text]","-li[details]","+code-block[pre]","+doc-root[p|h1|h2|h3|h4|h5|h6|blockquote|code-block|div]"].join(","),plugins:rg(r),contextmenu:!1,toolbar:ld(r),content_style:sg(r),style_formats:Qm,style_formats_merge:!1,media_alt_source:!1,media_poster:!1,formats:Jm,table_style_by_css:!0,table_use_colgroups:!0,file_picker_types:"file image",color_map:eg,file_picker_callback:tg,paste_preprocess(t,n){n.content.indexOf('<img src="file://')!==-1&&(n.content="")},init_instance_callback(t){let n=t.getDoc().querySelector("head");n.innerHTML+=ng()},setup(t){ud(t,r),og(r)(t)}}}var Ko=class{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.isDarkMode=document.documentElement.classList.contains("dark-mode"),this.tinyMceConfig=Sd({language:this.$opts.language,containerElement:this.elem,darkMode:this.isDarkMode,textDirection:this.textDirection,drawioUrl:this.getDrawIoUrl(),pageId:Number(this.pageId),translations:{imageUploadErrorText:this.$opts.imageUploadErrorText,serverUploadLimitText:this.$opts.serverUploadLimitText},translationMap:window.editor_translations}),window.$events.emitPublic(this.elem,"editor-tinymce::pre-init",{config:this.tinyMceConfig}),window.tinymce.init(this.tinyMceConfig)}getDrawIoUrl(){let e=document.querySelector("[drawio-url]");return e?e.getAttribute("drawio-url"):""}},Cd=Ko;var Ad={"add-remove-rows":ls,"ajax-delete-row":us,"ajax-form":cs,attachments:ds,"attachments-list":fs,"auto-suggest":hs,"back-to-top":ps,"book-sort":Bs,"chapter-contents":zs,"code-editor":js,"code-highlighter":Hs,"code-textarea":qs,collapsible:Vs,"confirm-dialog":Gs,"custom-checkbox":Ws,"details-highlighter":Ys,dropdown:Ks,"dropdown-search":Xs,dropzone:Js,"editor-toolbox":ea,"entity-permissions-editor":ta,"entity-search":ra,"entity-selector":na,"entity-selector-popup":ia,"event-emit-select":oa,"expand-toggle":sa,"header-mobile-toggle":aa,"homepage-control":la,"image-manager":ua,"image-picker":ca,"list-sort-control":da,"markdown-editor":Fc,"new-user-password":Rc,notification:Oc,"optional-input":Pc,"page-comments":Mc,"page-display":Bc,"page-editor":Uc,"page-picker":zc,"permissions-table":jc,popup:Hc,"setting-app-color-picker":qc,"setting-color-picker":Vc,"shelf-sort":Gc,sidebar:Wc,"sortable-list":Yc,"submit-on-change":Kc,tabs:Xc,"tag-manager":Zc,"template-manager":Qc,"toggle-switch":Jc,"tri-layout":ed,"user-select":td,"webhook-events":rd,"wysiwyg-editor":Cd};window.components={};function ag(r,e){let t=e.querySelectorAll(`[${r}]`);for(let n=0,o=t.length;n<o;n++)kd(r,t[n])}function kd(r,e){let t=Ad[r];if(t===void 0)return;let n;try{n=new t(e),n.$el=e;let o=lg(r,e);n.$refs=o.refs,n.$manyRefs=o.manyRefs,n.$opts=ug(r,e),n.$emit=(s,i={})=>{i.from=n;let a=new CustomEvent(`${r}-${s}`,{bubbles:!0,detail:i});n.$el.dispatchEvent(a)},typeof n.setup=="function"&&n.setup()}catch(o){console.error("Failed to create component",o,r,e)}typeof window.components[r]>"u"&&(window.components[r]=[]),window.components[r].push(n),typeof e.components>"u"&&(e.components={}),e.components[r]=n}function lg(r,e){let t={},n={},o=`${r}@`,s=`[refs*="${o}"]`,i=[...e.querySelectorAll(s)];e.matches(s)&&i.push(e);for(let a of i){let l=a.getAttribute("refs").split(" ").filter(u=>u.startsWith(o)).map(u=>u.replace(o,"")).map(Td);for(let u of l)t[u]=a,typeof n[u]>"u"&&(n[u]=[]),n[u].push(a)}return{refs:t,manyRefs:n}}function ug(r,e){let t={},n=`option:${r}:`;for(let{name:o,value:s}of e.attributes)if(o.startsWith(n)){let i=o.replace(n,"");t[Td(i)]=s||""}return t}function Td(r){let e=n=>n.slice(0,1).toUpperCase()+n.slice(1),t=r.split("-");return t[0]+t.slice(1).map(e).join("")}function Id(r){typeof r>"u"&&(r=document);for(let t of Object.keys(Ad))ag(t,r);let e=r.querySelectorAll("[component],[components]");for(let t of e){let n=`${t.getAttribute("component")||""} ${t.getAttribute("components")}`.toLowerCase().split(" ").filter(Boolean);for(let o of n)kd(o,t)}}window.components.init=Id;window.components.first=r=>(window.components[r]||[null])[0];var Dd=Id;window.baseUrl=function(r){let e=document.querySelector('meta[name="base-url"]').getAttribute("content");return e[e.length-1]==="/"&&(e=e.slice(0,e.length-1)),r[0]==="/"&&(r=r.slice(1)),e+"/"+r};window.importVersioned=function(r){let e=document.querySelector('link[href*="/dist/styles.css?version="]').href.split("?version=").pop();return import(window.baseUrl(`dist/${r}.js?version=${e}`))};window.$http=ts;window.$events=Jo;var xr=new rs;window.trans=xr.get.bind(xr);window.trans_choice=xr.getPlural.bind(xr);window.trans_plural=xr.parsePlural.bind(xr);Dd();
/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},nt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},nt.prototype.onKeyPress=function(){m&&B>=9&&(this.hasSelection=null),this.fastPoll()},nt.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Cr(n,e),l=r.scroller.scrollTop;if(!o||b)return;var a=n.options.resetSelectionOnContextMenu;a&&n.doc.sel.contains(o)==-1&&ct(n,vt)(n.doc,pr(o),ne);var s=i.style.cssText,f=t.wrapper.style.cssText,w=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-w.top-5)+"px; left: "+(e.clientX-w.left-5)+`px;
z-index: 1000; background: `+(m?"rgba(255, 255, 255, .05)":"transparent")+`;
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;C&&(M=window.scrollY),r.input.focus(),C&&window.scrollTo(null,M),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=W,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function H(){if(i.selectionStart!=null){var ie=n.somethingSelected(),ce="\u200B"+(ie?i.value:"");i.value="\u21DA",i.value=ce,t.prevInput=ie?"":"\u200B",i.selectionStart=1,i.selectionEnd=ce.length,r.selForContextMenu=n.doc.sel}}function W(){if(t.contextMenuPending==W&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=s,m&&B<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),i.selectionStart!=null)){(!m||m&&B<9)&&H();var ie=0,ce=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?ct(n,Rl)(n):ie++<10?r.detectingSelectAll=setTimeout(ce,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(ce,200)}}if(m&&B>=9&&H(),V){Bt(e);var Q=function(){Fe(window,"mouseup",Q),setTimeout(W,20)};Ce(window,"mouseup",Q)}else setTimeout(W,50)},nt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},nt.prototype.setUneditable=function(){},nt.prototype.needsContentAttribute=!1;function of(e,t){if(t=t?ae(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=k();t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(Ce(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=l}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(Fe(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var a=Qe(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function lf(e){e.off=Fe,e.on=Ce,e.wheelEventPixels=dc,e.Doc=Tt,e.splitLines=Pr,e.countColumn=ge,e.findColumn=De,e.isWordChar=K,e.Pass=ze,e.signal=Ve,e.Line=Rr,e.changeEnd=hr,e.scrollbarModel=ml,e.Pos=u,e.cmpPos=x,e.modes=Ut,e.mimeModes=Zt,e.resolveMode=xr,e.getMode=ur,e.modeExtensions=kt,e.extendMode=kr,e.copyState=Qt,e.startState=Wn,e.innerMode=Nr,e.commands=zn,e.keyMap=ir,e.keyName=ta,e.isModifierKey=Vl,e.lookupKey=Jr,e.normalizeKeyMap=Ic,e.StringStream=Ze,e.SharedTextMarker=Ln,e.TextMarker=gr,e.LineWidget=Cn,e.e_preventDefault=st,e.e_stopPropagation=Ft,e.e_stop=Bt,e.addClass=Z,e.contains=L,e.rmClass=Y,e.keyNames=vr}Yc(Qe),ef(Qe);var af="iter insert remove copy getEditor constructor".split(" ");for(var vi in Tt.prototype)Tt.prototype.hasOwnProperty(vi)&&de(af,vi)<0&&(Qe.prototype[vi]=function(e){return function(){return e.apply(this.doc,arguments)}}(Tt.prototype[vi]));return sr(Tt),Qe.inputStyles={textarea:nt,contenteditable:$e},Qe.defineMode=function(e){!Qe.defaults.mode&&e!="null"&&(Qe.defaults.mode=e),Yt.apply(this,arguments)},Qe.defineMIME=_i,Qe.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Qe.defineMIME("text/plain","null"),Qe.defineExtension=function(e,t){Qe.prototype[e]=t},Qe.defineDocExtension=function(e,t){Tt.prototype[e]=t},Qe.fromTextArea=of,lf(Qe),Qe.version="5.65.5",Qe})});var wa=Re((On,yo)=>{(function(d,R){typeof On=="object"&&typeof yo=="object"?yo.exports=R():typeof define=="function"&&define.amd?define([],R):typeof On=="object"?On.ClipboardJS=R():d.ClipboardJS=R()})(On,function(){return R={686:function(F,C,P){"use strict";P.d(C,{default:function(){return oe}});var C=P(279),m=P.n(C),C=P(370),B=P.n(C),C=P(817),A=P.n(C);function E(te){try{return document.execCommand(te)}catch{return}}var h=function(te){return te=A()(te),E("cut"),te};function b(N,V){var X,Y,N=(X=N,Y=document.documentElement.getAttribute("dir")==="rtl",(N=document.createElement("textarea")).style.fontSize="12pt",N.style.border="0",N.style.padding="0",N.style.margin="0",N.style.position="absolute",N.style[Y?"right":"left"]="-9999px",Y=window.pageYOffset||document.documentElement.scrollTop,N.style.top="".concat(Y,"px"),N.setAttribute("readonly",""),N.value=X,N);return V.container.appendChild(N),V=A()(N),E("copy"),N.remove(),V}var g=function(te){var V=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body},X="";return typeof te=="string"?X=b(te,V):te instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(te?.type)?X=b(te.value,V):(X=A()(te),E("copy")),X};function S(te){return(S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V})(te)}var T=function(){var Y=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},X=Y.action,te=X===void 0?"copy":X,V=Y.container,X=Y.target,Y=Y.text;if(te!=="copy"&&te!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(X!==void 0){if(!X||S(X)!=="object"||X.nodeType!==1)throw new Error('Invalid "target" value, use a valid Element');if(te==="copy"&&X.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(te==="cut"&&(X.hasAttribute("readonly")||X.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}return Y?g(Y,{container:V}):X?te==="cut"?h(X):g(X,{container:V}):void 0};function y(te){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V})(te)}function $(te,V){for(var X=0;X<V.length;X++){var Y=V[X];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(te,Y.key,Y)}}function _(te,V){return(_=Object.setPrototypeOf||function(X,Y){return X.__proto__=Y,X})(te,V)}function j(te){var V=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var X,Y=U(te);return X=V?(X=U(this).constructor,Reflect.construct(Y,arguments,X)):Y.apply(this,arguments),Y=this,!(X=X)||y(X)!=="object"&&typeof X!="function"?function(N){if(N!==void 0)return N;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(Y):X}}function U(te){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)})(te)}function re(te,V){if(te="data-clipboard-".concat(te),V.hasAttribute(te))return V.getAttribute(te)}var oe=function(){(function(D,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(c&&c.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),c&&_(D,c)})(N,m());var te,V,X,Y=j(N);function N(D,c){var O;return function(q){if(!(q instanceof N))throw new TypeError("Cannot call a class as a function")}(this),(O=Y.call(this)).resolveOptions(c),O.listenClick(D),O}return te=N,X=[{key:"copy",value:function(D){var c=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body};return g(D,c)}},{key:"cut",value:function(D){return h(D)}},{key:"isSupported",value:function(){var D=0<arguments.length&&arguments[0]!==void 0?arguments[0]:["copy","cut"],D=typeof D=="string"?[D]:D,c=!!document.queryCommandSupported;return D.forEach(function(O){c=c&&!!document.queryCommandSupported(O)}),c}}],(V=[{key:"resolveOptions",value:function(){var D=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof D.action=="function"?D.action:this.defaultAction,this.target=typeof D.target=="function"?D.target:this.defaultTarget,this.text=typeof D.text=="function"?D.text:this.defaultText,this.container=y(D.container)==="object"?D.container:document.body}},{key:"listenClick",value:function(D){var c=this;this.listener=B()(D,"click",function(O){return c.onClick(O)})}},{key:"onClick",value:function(q){var c=q.delegateTarget||q.currentTarget,O=this.action(c)||"copy",q=T({action:O,container:this.container,target:this.target(c),text:this.text(c)});this.emit(q?"success":"error",{action:O,text:q,trigger:c,clearSelection:function(){c&&c.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(D){return re("action",D)}},{key:"defaultTarget",value:function(D){if(D=re("target",D),D)return document.querySelector(D)}},{key:"defaultText",value:function(D){return re("text",D)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&$(te.prototype,V),X&&$(te,X),N}()},828:function(F){var I;typeof Element>"u"||Element.prototype.matches||((I=Element.prototype).matches=I.matchesSelector||I.mozMatchesSelector||I.msMatchesSelector||I.oMatchesSelector||I.webkitMatchesSelector),F.exports=function(P,m){for(;P&&P.nodeType!==9;){if(typeof P.matches=="function"&&P.matches(m))return P;P=P.parentNode}}},438:function(F,I,P){var m=P(828);function B(C,A,E,h,b){var g=function(S,T,y,$){return function(_){_.delegateTarget=m(_.target,T),_.delegateTarget&&$.call(S,_)}}.apply(this,arguments);return C.addEventListener(E,g,b),{destroy:function(){C.removeEventListener(E,g,b)}}}F.exports=function(C,A,E,h,b){return typeof C.addEventListener=="function"?B.apply(null,arguments):typeof E=="function"?B.bind(null,document).apply(null,arguments):(typeof C=="string"&&(C=document.querySelectorAll(C)),Array.prototype.map.call(C,function(g){return B(g,A,E,h,b)}))}},879:function(F,I){I.node=function(P){return P!==void 0&&P instanceof HTMLElement&&P.nodeType===1},I.nodeList=function(P){var m=Object.prototype.toString.call(P);return P!==void 0&&(m==="[object NodeList]"||m==="[object HTMLCollection]")&&"length"in P&&(P.length===0||I.node(P[0]))},I.string=function(P){return typeof P=="string"||P instanceof String},I.fn=function(P){return Object.prototype.toString.call(P)==="[object Function]"}},370:function(F,I,P){var m=P(879),B=P(438);F.exports=function(C,A,E){if(!C&&!A&&!E)throw new Error("Missing required arguments");if(!m.string(A))throw new TypeError("Second argument must be a String");if(!m.fn(E))throw new TypeError("Third argument must be a Function");if(m.node(C))return T=A,y=E,(S=C).addEventListener(T,y),{destroy:function(){S.removeEventListener(T,y)}};if(m.nodeList(C))return h=C,b=A,g=E,Array.prototype.forEach.call(h,function($){$.addEventListener(b,g)}),{destroy:function(){Array.prototype.forEach.call(h,function($){$.removeEventListener(b,g)})}};if(m.string(C))return C=C,A=A,E=E,B(document.body,C,A,E);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var h,b,g,S,T,y}},817:function(F){F.exports=function(I){var P,m=I.nodeName==="SELECT"?(I.focus(),I.value):I.nodeName==="INPUT"||I.nodeName==="TEXTAREA"?((P=I.hasAttribute("readonly"))||I.setAttribute("readonly",""),I.select(),I.setSelectionRange(0,I.value.length),P||I.removeAttribute("readonly"),I.value):(I.hasAttribute("contenteditable")&&I.focus(),m=window.getSelection(),(P=document.createRange()).selectNodeContents(I),m.removeAllRanges(),m.addRange(P),m.toString());return m}},279:function(F){function I(){}I.prototype={on:function(P,m,B){var C=this.e||(this.e={});return(C[P]||(C[P]=[])).push({fn:m,ctx:B}),this},once:function(P,m,B){var C=this;function A(){C.off(P,A),m.apply(B,arguments)}return A._=m,this.on(P,A,B)},emit:function(P){for(var m=[].slice.call(arguments,1),B=((this.e||(this.e={}))[P]||[]).slice(),C=0,A=B.length;C<A;C++)B[C].fn.apply(B[C].ctx,m);return this},off:function(P,m){var B=this.e||(this.e={}),C=B[P],A=[];if(C&&m)for(var E=0,h=C.length;E<h;E++)C[E].fn!==m&&C[E].fn._!==m&&A.push(C[E]);return A.length?B[P]=A:delete B[P],this}},F.exports=I,F.exports.TinyEmitter=I}},z={},d.n=function(F){var I=F&&F.__esModule?function(){return F.default}:function(){return F};return d.d(I,{a:I}),I},d.d=function(F,I){for(var P in I)d.o(I,P)&&!d.o(F,P)&&Object.defineProperty(F,P,{enumerable:!0,get:I[P]})},d.o=function(F,I){return Object.prototype.hasOwnProperty.call(F,I)},d(686).default;function d(F){if(z[F])return z[F].exports;var I=z[F]={exports:{}};return R[F](I,I.exports,d),I.exports}var R,z})});var bo=Re((Sa,Ta)=>{(function(d){typeof Sa=="object"&&typeof Ta=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("css",function(V,X){var Y=X.inline;X.propertyKeywords||(X=d.resolveMode("text/css"));var N=V.indentUnit,D=X.tokenHooks,c=X.documentTypes||{},O=X.mediaTypes||{},q=X.mediaFeatures||{},L=X.mediaValueKeywords||{},k=X.propertyKeywords||{},Z=X.nonStandardPropertyKeywords||{},G=X.fontProperties||{},v=X.counterDescriptors||{},p=X.colorKeywords||{},ae=X.valueKeywords||{},ge=X.allowNested,se=X.lineComment,de=X.supportsAtComponent===!0,Le=V.highlightNonStandardPropertyKeywords!==!1,ze,ne;function fe(K,le){return ze=le,K}function ye(K,le){var J=K.next();if(D[J]){var Oe=D[J](K,le);if(Oe!==!1)return Oe}if(J=="@")return K.eatWhile(/[\w\\\-]/),fe("def",K.current());if(J=="="||(J=="~"||J=="|")&&K.eat("="))return fe(null,"compare");if(J=='"'||J=="'")return le.tokenize=De(J),le.tokenize(K,le);if(J=="#")return K.eatWhile(/[\w\\\-]/),fe("atom","hash");if(J=="!")return K.match(/^\s*\w*/),fe("keyword","important");if(/\d/.test(J)||J=="."&&K.eat(/\d/))return K.eatWhile(/[\w.%]/),fe("number","unit");if(J==="-"){if(/[\d.]/.test(K.peek()))return K.eatWhile(/[\w.%]/),fe("number","unit");if(K.match(/^-[\w\\\-]*/))return K.eatWhile(/[\w\\\-]/),K.match(/^\s*:/,!1)?fe("variable-2","variable-definition"):fe("variable-2","variable");if(K.match(/^\w+-/))return fe("meta","meta")}else return/[,+>*\/]/.test(J)?fe(null,"select-op"):J=="."&&K.match(/^-?[_a-z][_a-z0-9-]*/i)?fe("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(J)?fe(null,J):K.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(K.current())&&(le.tokenize=Ye),fe("variable callee","variable")):/[\w\\\-]/.test(J)?(K.eatWhile(/[\w\\\-]/),fe("property","word")):fe(null,null)}function De(K){return function(le,J){for(var Oe=!1,be;(be=le.next())!=null;){if(be==K&&!Oe){K==")"&&le.backUp(1);break}Oe=!Oe&&be=="\\"}return(be==K||!Oe&&K!=")")&&(J.tokenize=null),fe("string","string")}}function Ye(K,le){return K.next(),K.match(/^\s*[\"\')]/,!1)?le.tokenize=null:le.tokenize=De(")"),fe(null,"(")}function mt(K,le,J){this.type=K,this.indent=le,this.prev=J}function xe(K,le,J,Oe){return K.context=new mt(J,le.indentation()+(Oe===!1?0:N),K.context),J}function je(K){return K.context.prev&&(K.context=K.context.prev),K.context.type}function rt(K,le,J){return qe[J.context.type](K,le,J)}function lt(K,le,J,Oe){for(var be=Oe||1;be>0;be--)J.context=J.context.prev;return rt(K,le,J)}function Ge(K){var le=K.current().toLowerCase();ae.hasOwnProperty(le)?ne="atom":p.hasOwnProperty(le)?ne="keyword":ne="variable"}var qe={};return qe.top=function(K,le,J){if(K=="{")return xe(J,le,"block");if(K=="}"&&J.context.prev)return je(J);if(de&&/@component/i.test(K))return xe(J,le,"atComponentBlock");if(/^@(-moz-)?document$/i.test(K))return xe(J,le,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(K))return xe(J,le,"atBlock");if(/^@(font-face|counter-style)/i.test(K))return J.stateArg=K,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(K))return"keyframes";if(K&&K.charAt(0)=="@")return xe(J,le,"at");if(K=="hash")ne="builtin";else if(K=="word")ne="tag";else{if(K=="variable-definition")return"maybeprop";if(K=="interpolation")return xe(J,le,"interpolation");if(K==":")return"pseudo";if(ge&&K=="(")return xe(J,le,"parens")}return J.context.type},qe.block=function(K,le,J){if(K=="word"){var Oe=le.current().toLowerCase();return k.hasOwnProperty(Oe)?(ne="property","maybeprop"):Z.hasOwnProperty(Oe)?(ne=Le?"string-2":"property","maybeprop"):ge?(ne=le.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ne+=" error","maybeprop")}else return K=="meta"?"block":!ge&&(K=="hash"||K=="qualifier")?(ne="error","block"):qe.top(K,le,J)},qe.maybeprop=function(K,le,J){return K==":"?xe(J,le,"prop"):rt(K,le,J)},qe.prop=function(K,le,J){if(K==";")return je(J);if(K=="{"&&ge)return xe(J,le,"propBlock");if(K=="}"||K=="{")return lt(K,le,J);if(K=="(")return xe(J,le,"parens");if(K=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(le.current()))ne+=" error";else if(K=="word")Ge(le);else if(K=="interpolation")return xe(J,le,"interpolation");return"prop"},qe.propBlock=function(K,le,J){return K=="}"?je(J):K=="word"?(ne="property","maybeprop"):J.context.type},qe.parens=function(K,le,J){return K=="{"||K=="}"?lt(K,le,J):K==")"?je(J):K=="("?xe(J,le,"parens"):K=="interpolation"?xe(J,le,"interpolation"):(K=="word"&&Ge(le),"parens")},qe.pseudo=function(K,le,J){return K=="meta"?"pseudo":K=="word"?(ne="variable-3",J.context.type):rt(K,le,J)},qe.documentTypes=function(K,le,J){return K=="word"&&c.hasOwnProperty(le.current())?(ne="tag",J.context.type):qe.atBlock(K,le,J)},qe.atBlock=function(K,le,J){if(K=="(")return xe(J,le,"atBlock_parens");if(K=="}"||K==";")return lt(K,le,J);if(K=="{")return je(J)&&xe(J,le,ge?"block":"top");if(K=="interpolation")return xe(J,le,"interpolation");if(K=="word"){var Oe=le.current().toLowerCase();Oe=="only"||Oe=="not"||Oe=="and"||Oe=="or"?ne="keyword":O.hasOwnProperty(Oe)?ne="attribute":q.hasOwnProperty(Oe)?ne="property":L.hasOwnProperty(Oe)?ne="keyword":k.hasOwnProperty(Oe)?ne="property":Z.hasOwnProperty(Oe)?ne=Le?"string-2":"property":ae.hasOwnProperty(Oe)?ne="atom":p.hasOwnProperty(Oe)?ne="keyword":ne="error"}return J.context.type},qe.atComponentBlock=function(K,le,J){return K=="}"?lt(K,le,J):K=="{"?je(J)&&xe(J,le,ge?"block":"top",!1):(K=="word"&&(ne="error"),J.context.type)},qe.atBlock_parens=function(K,le,J){return K==")"?je(J):K=="{"||K=="}"?lt(K,le,J,2):qe.atBlock(K,le,J)},qe.restricted_atBlock_before=function(K,le,J){return K=="{"?xe(J,le,"restricted_atBlock"):K=="word"&&J.stateArg=="@counter-style"?(ne="variable","restricted_atBlock_before"):rt(K,le,J)},qe.restricted_atBlock=function(K,le,J){return K=="}"?(J.stateArg=null,je(J)):K=="word"?(J.stateArg=="@font-face"&&!G.hasOwnProperty(le.current().toLowerCase())||J.stateArg=="@counter-style"&&!v.hasOwnProperty(le.current().toLowerCase())?ne="error":ne="property","maybeprop"):"restricted_atBlock"},qe.keyframes=function(K,le,J){return K=="word"?(ne="variable","keyframes"):K=="{"?xe(J,le,"top"):rt(K,le,J)},qe.at=function(K,le,J){return K==";"?je(J):K=="{"||K=="}"?lt(K,le,J):(K=="word"?ne="tag":K=="hash"&&(ne="builtin"),"at")},qe.interpolation=function(K,le,J){return K=="}"?je(J):K=="{"||K==";"?lt(K,le,J):(K=="word"?ne="variable":K!="variable"&&K!="("&&K!=")"&&(ne="error"),"interpolation")},{startState:function(K){return{tokenize:null,state:Y?"block":"top",stateArg:null,context:new mt(Y?"block":"top",K||0,null)}},token:function(K,le){if(!le.tokenize&&K.eatSpace())return null;var J=(le.tokenize||ye)(K,le);return J&&typeof J=="object"&&(ze=J[1],J=J[0]),ne=J,ze!="comment"&&(le.state=qe[le.state](ze,K,le)),ne},indent:function(K,le){var J=K.context,Oe=le&&le.charAt(0),be=J.indent;return J.type=="prop"&&(Oe=="}"||Oe==")")&&(J=J.prev),J.prev&&(Oe=="}"&&(J.type=="block"||J.type=="top"||J.type=="interpolation"||J.type=="restricted_atBlock")?(J=J.prev,be=J.indent):(Oe==")"&&(J.type=="parens"||J.type=="atBlock_parens")||Oe=="{"&&(J.type=="at"||J.type=="atBlock"))&&(be=Math.max(0,J.indent-N))),be},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:se,fold:"brace"}});function R(V){for(var X={},Y=0;Y<V.length;++Y)X[V[Y].toLowerCase()]=!0;return X}var z=["domain","regexp","url","url-prefix"],F=R(z),I=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],P=R(I),m=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],B=R(m),C=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],A=R(C),E=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],h=R(E),b=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],g=R(b),S=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],T=R(S),y=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],$=R(y),_=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],j=R(_),U=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],re=R(U),oe=z.concat(I).concat(m).concat(C).concat(E).concat(b).concat(_).concat(U);d.registerHelper("hintWords","css",oe);function te(V,X){for(var Y=!1,N;(N=V.next())!=null;){if(Y&&N=="/"){X.tokenize=null;break}Y=N=="*"}return["comment","comment"]}d.defineMIME("text/css",{documentTypes:F,mediaTypes:P,mediaFeatures:B,mediaValueKeywords:A,propertyKeywords:h,nonStandardPropertyKeywords:g,fontProperties:T,counterDescriptors:$,colorKeywords:j,valueKeywords:re,tokenHooks:{"/":function(V,X){return V.eat("*")?(X.tokenize=te,te(V,X)):!1}},name:"css"}),d.defineMIME("text/x-scss",{mediaTypes:P,mediaFeatures:B,mediaValueKeywords:A,propertyKeywords:h,nonStandardPropertyKeywords:g,colorKeywords:j,valueKeywords:re,fontProperties:T,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(V,X){return V.eat("/")?(V.skipToEnd(),["comment","comment"]):V.eat("*")?(X.tokenize=te,te(V,X)):["operator","operator"]},":":function(V){return V.match(/^\s*\{/,!1)?[null,null]:!1},$:function(V){return V.match(/^[\w-]+/),V.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(V){return V.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),d.defineMIME("text/x-less",{mediaTypes:P,mediaFeatures:B,mediaValueKeywords:A,propertyKeywords:h,nonStandardPropertyKeywords:g,colorKeywords:j,valueKeywords:re,fontProperties:T,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(V,X){return V.eat("/")?(V.skipToEnd(),["comment","comment"]):V.eat("*")?(X.tokenize=te,te(V,X)):["operator","operator"]},"@":function(V){return V.eat("{")?[null,"interpolation"]:V.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(V.eatWhile(/[\w\\\-]/),V.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),d.defineMIME("text/x-gss",{documentTypes:F,mediaTypes:P,mediaFeatures:B,propertyKeywords:h,nonStandardPropertyKeywords:g,fontProperties:T,counterDescriptors:$,colorKeywords:j,valueKeywords:re,supportsAtComponent:!0,tokenHooks:{"/":function(V,X){return V.eat("*")?(X.tokenize=te,te(V,X)):!1}},name:"css",helperType:"gss"})})});var xo=Re((Ca,La)=>{(function(d){typeof Ca=="object"&&typeof La=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";function R(L,k,Z,G,v,p){this.indented=L,this.column=k,this.type=Z,this.info=G,this.align=v,this.prev=p}function z(L,k,Z,G){var v=L.indented;return L.context&&L.context.type=="statement"&&Z!="statement"&&(v=L.context.indented),L.context=new R(v,k,Z,G,null,L.context)}function F(L){var k=L.context.type;return(k==")"||k=="]"||k=="}")&&(L.indented=L.context.indented),L.context=L.context.prev}function I(L,k,Z){if(k.prevToken=="variable"||k.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(L.string.slice(0,Z))||k.typeAtEndOfLine&&L.column()==L.indentation())return!0}function P(L){for(;;){if(!L||L.type=="top")return!0;if(L.type=="}"&&L.prev.info!="namespace")return!1;L=L.prev}}d.defineMode("clike",function(L,k){var Z=L.indentUnit,G=k.statementIndentUnit||Z,v=k.dontAlignCalls,p=k.keywords||{},ae=k.types||{},ge=k.builtin||{},se=k.blockKeywords||{},de=k.defKeywords||{},Le=k.atoms||{},ze=k.hooks||{},ne=k.multiLineStrings,fe=k.indentStatements!==!1,ye=k.indentSwitch!==!1,De=k.namespaceSeparator,Ye=k.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,mt=k.numberStart||/[\d\.]/,xe=k.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,je=k.isOperatorChar||/[+\-*&%=<>!?|\/]/,rt=k.isIdentifierChar||/[\w\$_\xa1-\uffff]/,lt=k.isReservedIdentifier||!1,Ge,qe;function K(be,Ee){var _e=be.next();if(ze[_e]){var Pe=ze[_e](be,Ee);if(Pe!==!1)return Pe}if(_e=='"'||_e=="'")return Ee.tokenize=le(_e),Ee.tokenize(be,Ee);if(mt.test(_e)){if(be.backUp(1),be.match(xe))return"number";be.next()}if(Ye.test(_e))return Ge=_e,null;if(_e=="/"){if(be.eat("*"))return Ee.tokenize=J,J(be,Ee);if(be.eat("/"))return be.skipToEnd(),"comment"}if(je.test(_e)){for(;!be.match(/^\/[\/*]/,!1)&&be.eat(je););return"operator"}if(be.eatWhile(rt),De)for(;be.match(De);)be.eatWhile(rt);var Ae=be.current();return B(p,Ae)?(B(se,Ae)&&(Ge="newstatement"),B(de,Ae)&&(qe=!0),"keyword"):B(ae,Ae)?"type":B(ge,Ae)||lt&<(Ae)?(B(se,Ae)&&(Ge="newstatement"),"builtin"):B(Le,Ae)?"atom":"variable"}function le(be){return function(Ee,_e){for(var Pe=!1,Ae,gt=!1;(Ae=Ee.next())!=null;){if(Ae==be&&!Pe){gt=!0;break}Pe=!Pe&&Ae=="\\"}return(gt||!(Pe||ne))&&(_e.tokenize=null),"string"}}function J(be,Ee){for(var _e=!1,Pe;Pe=be.next();){if(Pe=="/"&&_e){Ee.tokenize=null;break}_e=Pe=="*"}return"comment"}function Oe(be,Ee){k.typeFirstDefinitions&&be.eol()&&P(Ee.context)&&(Ee.typeAtEndOfLine=I(be,Ee,be.pos))}return{startState:function(be){return{tokenize:null,context:new R((be||0)-Z,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(be,Ee){var _e=Ee.context;if(be.sol()&&(_e.align==null&&(_e.align=!1),Ee.indented=be.indentation(),Ee.startOfLine=!0),be.eatSpace())return Oe(be,Ee),null;Ge=qe=null;var Pe=(Ee.tokenize||K)(be,Ee);if(Pe=="comment"||Pe=="meta")return Pe;if(_e.align==null&&(_e.align=!0),Ge==";"||Ge==":"||Ge==","&&be.match(/^\s*(?:\/\/.*)?$/,!1))for(;Ee.context.type=="statement";)F(Ee);else if(Ge=="{")z(Ee,be.column(),"}");else if(Ge=="[")z(Ee,be.column(),"]");else if(Ge=="(")z(Ee,be.column(),")");else if(Ge=="}"){for(;_e.type=="statement";)_e=F(Ee);for(_e.type=="}"&&(_e=F(Ee));_e.type=="statement";)_e=F(Ee)}else Ge==_e.type?F(Ee):fe&&((_e.type=="}"||_e.type=="top")&&Ge!=";"||_e.type=="statement"&&Ge=="newstatement")&&z(Ee,be.column(),"statement",be.current());if(Pe=="variable"&&(Ee.prevToken=="def"||k.typeFirstDefinitions&&I(be,Ee,be.start)&&P(Ee.context)&&be.match(/^\s*\(/,!1))&&(Pe="def"),ze.token){var Ae=ze.token(be,Ee,Pe);Ae!==void 0&&(Pe=Ae)}return Pe=="def"&&k.styleDefs===!1&&(Pe="variable"),Ee.startOfLine=!1,Ee.prevToken=qe?"def":Pe||Ge,Oe(be,Ee),Pe},indent:function(be,Ee){if(be.tokenize!=K&&be.tokenize!=null||be.typeAtEndOfLine)return d.Pass;var _e=be.context,Pe=Ee&&Ee.charAt(0),Ae=Pe==_e.type;if(_e.type=="statement"&&Pe=="}"&&(_e=_e.prev),k.dontIndentStatements)for(;_e.type=="statement"&&k.dontIndentStatements.test(_e.info);)_e=_e.prev;if(ze.indent){var gt=ze.indent(be,_e,Ee,Z);if(typeof gt=="number")return gt}var lr=_e.prev&&_e.prev.info=="switch";if(k.allmanIndentation&&/[{(]/.test(Pe)){for(;_e.type!="top"&&_e.type!="}";)_e=_e.prev;return _e.indented}return _e.type=="statement"?_e.indented+(Pe=="{"?0:G):_e.align&&(!v||_e.type!=")")?_e.column+(Ae?0:1):_e.type==")"&&!Ae?_e.indented+G:_e.indented+(Ae?0:Z)+(!Ae&&lr&&!/^(?:case|default)\b/.test(Ee)?Z:0)},electricInput:ye?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function m(L){for(var k={},Z=L.split(" "),G=0;G<Z.length;++G)k[Z[G]]=!0;return k}function B(L,k){return typeof L=="function"?L(k):L.propertyIsEnumerable(k)}var C="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",A="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",E="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",h="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",b=m("int long char short double float unsigned signed void bool"),g=m("SEL instancetype id Class Protocol BOOL");function S(L){return B(b,L)||/.+_t$/.test(L)}function T(L){return S(L)||B(g,L)}var y="case do else for if switch while struct enum union",$="struct enum union";function _(L,k){if(!k.startOfLine)return!1;for(var Z,G=null;Z=L.peek();){if(Z=="\\"&&L.match(/^.$/)){G=_;break}else if(Z=="/"&&L.match(/^\/[\/\*]/,!1))break;L.next()}return k.tokenize=G,"meta"}function j(L,k){return k.prevToken=="type"?"type":!1}function U(L){return!L||L.length<2||L[0]!="_"?!1:L[1]=="_"||L[1]!==L[1].toLowerCase()}function re(L){return L.eatWhile(/[\w\.']/),"number"}function oe(L,k){if(L.backUp(1),L.match(/^(?:R|u8R|uR|UR|LR)/)){var Z=L.match(/^"([^\s\\()]{0,16})\(/);return Z?(k.cpp11RawStringDelim=Z[1],k.tokenize=X,X(L,k)):!1}return L.match(/^(?:u8|u|U|L)/)?L.match(/^["']/,!1)?"string":!1:(L.next(),!1)}function te(L){var k=/(\w+)::~?(\w+)$/.exec(L);return k&&k[1]==k[2]}function V(L,k){for(var Z;(Z=L.next())!=null;)if(Z=='"'&&!L.eat('"')){k.tokenize=null;break}return"string"}function X(L,k){var Z=k.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),G=L.match(new RegExp(".*?\\)"+Z+'"'));return G?k.tokenize=null:L.skipToEnd(),"string"}function Y(L,k){typeof L=="string"&&(L=[L]);var Z=[];function G(p){if(p)for(var ae in p)p.hasOwnProperty(ae)&&Z.push(ae)}G(k.keywords),G(k.types),G(k.builtin),G(k.atoms),Z.length&&(k.helperType=L[0],d.registerHelper("hintWords",L[0],Z));for(var v=0;v<L.length;++v)d.defineMIME(L[v],k)}Y(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:m(C),types:S,blockKeywords:m(y),defKeywords:m($),typeFirstDefinitions:!0,atoms:m("NULL true false"),isReservedIdentifier:U,hooks:{"#":_,"*":j},modeProps:{fold:["brace","include"]}}),Y(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:m(C+" "+A),types:S,blockKeywords:m(y+" class try catch"),defKeywords:m($+" class namespace"),typeFirstDefinitions:!0,atoms:m("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:U,hooks:{"#":_,"*":j,u:oe,U:oe,L:oe,R:oe,0:re,1:re,2:re,3:re,4:re,5:re,6:re,7:re,8:re,9:re,token:function(L,k,Z){if(Z=="variable"&&L.peek()=="("&&(k.prevToken==";"||k.prevToken==null||k.prevToken=="}")&&te(L.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),Y("text/x-java",{name:"clike",keywords:m("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:m("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:m("catch class do else finally for if switch try while"),defKeywords:m("class interface enum @interface"),typeFirstDefinitions:!0,atoms:m("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(L){return L.match("interface",!1)?!1:(L.eatWhile(/[\w\$_]/),"meta")},'"':function(L,k){return L.match(/""$/)?(k.tokenize=N,k.tokenize(L,k)):!1}},modeProps:{fold:["brace","import"]}}),Y("text/x-csharp",{name:"clike",keywords:m("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:m("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:m("catch class do else finally for foreach if struct switch try while"),defKeywords:m("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:m("true false null"),hooks:{"@":function(L,k){return L.eat('"')?(k.tokenize=V,V(L,k)):(L.eatWhile(/[\w\$_]/),"meta")}}});function N(L,k){for(var Z=!1;!L.eol();){if(!Z&&L.match('"""')){k.tokenize=null;break}Z=L.next()=="\\"&&!Z}return"string"}function D(L){return function(k,Z){for(var G;G=k.next();)if(G=="*"&&k.eat("/"))if(L==1){Z.tokenize=null;break}else return Z.tokenize=D(L-1),Z.tokenize(k,Z);else if(G=="/"&&k.eat("*"))return Z.tokenize=D(L+1),Z.tokenize(k,Z);return"comment"}}Y("text/x-scala",{name:"clike",keywords:m("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:m("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:m("catch class enum do else finally for forSome if match switch try while"),defKeywords:m("class enum def object package trait type val var"),atoms:m("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(L){return L.eatWhile(/[\w\$_]/),"meta"},'"':function(L,k){return L.match('""')?(k.tokenize=N,k.tokenize(L,k)):!1},"'":function(L){return L.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(L,k){var Z=k.context;return Z.type=="}"&&Z.align&&L.eat(">")?(k.context=new R(Z.indented,Z.column,Z.type,Z.info,null,Z.prev),"operator"):!1},"/":function(L,k){return L.eat("*")?(k.tokenize=D(1),k.tokenize(L,k)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function c(L){return function(k,Z){for(var G=!1,v,p=!1;!k.eol();){if(!L&&!G&&k.match('"')){p=!0;break}if(L&&k.match('"""')){p=!0;break}v=k.next(),!G&&v=="$"&&k.match("{")&&k.skipTo("}"),G=!G&&v=="\\"&&!L}return(p||!L)&&(Z.tokenize=null),"string"}}Y("text/x-kotlin",{name:"clike",keywords:m("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:m("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:m("catch class do else finally for if where try while enum"),defKeywords:m("class val var object interface fun"),atoms:m("true false null this"),hooks:{"@":function(L){return L.eatWhile(/[\w\$_]/),"meta"},"*":function(L,k){return k.prevToken=="."?"variable":"operator"},'"':function(L,k){return k.tokenize=c(L.match('""')),k.tokenize(L,k)},"/":function(L,k){return L.eat("*")?(k.tokenize=D(1),k.tokenize(L,k)):!1},indent:function(L,k,Z,G){var v=Z&&Z.charAt(0);if((L.prevToken=="}"||L.prevToken==")")&&Z=="")return L.indented;if(L.prevToken=="operator"&&Z!="}"&&L.context.type!="}"||L.prevToken=="variable"&&v=="."||(L.prevToken=="}"||L.prevToken==")")&&v==".")return G*2+k.indented;if(k.align&&k.type=="}")return k.indented+(L.context.type==(Z||"").charAt(0)?0:G)}},modeProps:{closeBrackets:{triples:'"'}}}),Y(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:m("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:m("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:m("for while do if else struct"),builtin:m("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:m("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":_},modeProps:{fold:["brace","include"]}}),Y("text/x-nesc",{name:"clike",keywords:m(C+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:S,blockKeywords:m(y),atoms:m("null true false"),hooks:{"#":_},modeProps:{fold:["brace","include"]}}),Y("text/x-objectivec",{name:"clike",keywords:m(C+" "+E),types:T,builtin:m(h),blockKeywords:m(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:m($+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:m("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:U,hooks:{"#":_,"*":j},modeProps:{fold:["brace","include"]}}),Y("text/x-objectivec++",{name:"clike",keywords:m(C+" "+E+" "+A),types:T,builtin:m(h),blockKeywords:m(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:m($+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:m("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:U,hooks:{"#":_,"*":j,u:oe,U:oe,L:oe,R:oe,0:re,1:re,2:re,3:re,4:re,5:re,6:re,7:re,8:re,9:re,token:function(L,k,Z){if(Z=="variable"&&L.peek()=="("&&(k.prevToken==";"||k.prevToken==null||k.prevToken=="}")&&te(L.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),Y("text/x-squirrel",{name:"clike",keywords:m("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:S,blockKeywords:m("case catch class else for foreach if switch try while"),defKeywords:m("function local class"),typeFirstDefinitions:!0,atoms:m("true false null"),hooks:{"#":_},modeProps:{fold:["brace","include"]}});var O=null;function q(L){return function(k,Z){for(var G=!1,v,p=!1;!k.eol();){if(!G&&k.match('"')&&(L=="single"||k.match('""'))){p=!0;break}if(!G&&k.match("``")){O=q(L),p=!0;break}v=k.next(),G=L=="single"&&!G&&v=="\\"}return p&&(Z.tokenize=null),"string"}}Y("text/x-ceylon",{name:"clike",keywords:m("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(L){var k=L.charAt(0);return k===k.toUpperCase()&&k!==k.toLowerCase()},blockKeywords:m("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:m("class dynamic function interface module object package value"),builtin:m("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:m("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(L){return L.eatWhile(/[\w\$_]/),"meta"},'"':function(L,k){return k.tokenize=q(L.match('""')?"triple":"single"),k.tokenize(L,k)},"`":function(L,k){return!O||!L.match("`")?!1:(k.tokenize=O,O=null,k.tokenize(L,k))},"'":function(L){return L.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(L,k,Z){if((Z=="variable"||Z=="type")&&k.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})});var za=Re((Ea,Ma)=>{(function(d){typeof Ea=="object"&&typeof Ma=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("diff",function(){var R={"+":"positive","-":"negative","@":"meta"};return{token:function(z){var F=z.string.search(/[\t ]+?$/);if(!z.sol()||F===0)return z.skipToEnd(),("error "+(R[z.string.charAt(0)]||"")).replace(/ $/,"");var I=R[z.peek()]||z.skipToEnd();return F===-1?z.skipToEnd():z.pos=F,I}}}),d.defineMIME("text/x-diff","diff")})});var Fa=Re((Aa,Da)=>{(function(d){typeof Aa=="object"&&typeof Da=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("fortran",function(){function R(A){for(var E={},h=0;h<A.length;++h)E[A[h]]=!0;return E}var z=R(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),F=R(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),I=R(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),P=/[+\-*&=<>\/\:]/,m=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function B(A,E){if(A.match(m))return"operator";var h=A.next();if(h=="!")return A.skipToEnd(),"comment";if(h=='"'||h=="'")return E.tokenize=C(h),E.tokenize(A,E);if(/[\[\]\(\),]/.test(h))return null;if(/\d/.test(h))return A.eatWhile(/[\w\.]/),"number";if(P.test(h))return A.eatWhile(P),"operator";A.eatWhile(/[\w\$_]/);var b=A.current().toLowerCase();return z.hasOwnProperty(b)?"keyword":F.hasOwnProperty(b)||I.hasOwnProperty(b)?"builtin":"variable"}function C(A){return function(E,h){for(var b=!1,g,S=!1;(g=E.next())!=null;){if(g==A&&!b){S=!0;break}b=!b&&g=="\\"}return(S||!b)&&(h.tokenize=null),"string"}}return{startState:function(){return{tokenize:null}},token:function(A,E){if(A.eatSpace())return null;var h=(E.tokenize||B)(A,E);return h=="comment"||h=="meta",h}}}),d.defineMIME("text/x-fortran","fortran")})});var Pa=Re((Ia,Oa)=>{(function(d){typeof Ia=="object"&&typeof Oa=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("go",function(R){var z=R.indentUnit,F={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},I={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},P=/[+\-*&^%:=<>!|\/]/,m;function B(g,S){var T=g.next();if(T=='"'||T=="'"||T=="`")return S.tokenize=C(T),S.tokenize(g,S);if(/[\d\.]/.test(T))return T=="."?g.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):T=="0"?g.match(/^[xX][0-9a-fA-F]+/)||g.match(/^0[0-7]+/):g.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(T))return m=T,null;if(T=="/"){if(g.eat("*"))return S.tokenize=A,A(g,S);if(g.eat("/"))return g.skipToEnd(),"comment"}if(P.test(T))return g.eatWhile(P),"operator";g.eatWhile(/[\w\$_\xa1-\uffff]/);var y=g.current();return F.propertyIsEnumerable(y)?((y=="case"||y=="default")&&(m="case"),"keyword"):I.propertyIsEnumerable(y)?"atom":"variable"}function C(g){return function(S,T){for(var y=!1,$,_=!1;($=S.next())!=null;){if($==g&&!y){_=!0;break}y=!y&&g!="`"&&$=="\\"}return(_||!(y||g=="`"))&&(T.tokenize=B),"string"}}function A(g,S){for(var T=!1,y;y=g.next();){if(y=="/"&&T){S.tokenize=B;break}T=y=="*"}return"comment"}function E(g,S,T,y,$){this.indented=g,this.column=S,this.type=T,this.align=y,this.prev=$}function h(g,S,T){return g.context=new E(g.indented,S,T,null,g.context)}function b(g){if(!!g.context.prev){var S=g.context.type;return(S==")"||S=="]"||S=="}")&&(g.indented=g.context.indented),g.context=g.context.prev}}return{startState:function(g){return{tokenize:null,context:new E((g||0)-z,0,"top",!1),indented:0,startOfLine:!0}},token:function(g,S){var T=S.context;if(g.sol()&&(T.align==null&&(T.align=!1),S.indented=g.indentation(),S.startOfLine=!0,T.type=="case"&&(T.type="}")),g.eatSpace())return null;m=null;var y=(S.tokenize||B)(g,S);return y=="comment"||(T.align==null&&(T.align=!0),m=="{"?h(S,g.column(),"}"):m=="["?h(S,g.column(),"]"):m=="("?h(S,g.column(),")"):m=="case"?T.type="case":(m=="}"&&T.type=="}"||m==T.type)&&b(S),S.startOfLine=!1),y},indent:function(g,S){if(g.tokenize!=B&&g.tokenize!=null)return d.Pass;var T=g.context,y=S&&S.charAt(0);if(T.type=="case"&&/^(?:case|default)\b/.test(S))return g.context.type="}",T.indented;var $=y==T.type;return T.align?T.column+($?0:1):T.indented+($?0:z)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),d.defineMIME("text/x-go","go")})});var Ra=Re((Na,qa)=>{(function(d){typeof Na=="object"&&typeof qa=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("haskell",function(R,z){function F(_,j,U){return j(U),U(_,j)}var I=/[a-z_]/,P=/[A-Z]/,m=/\d/,B=/[0-9A-Fa-f]/,C=/[0-7]/,A=/[a-z_A-Z0-9'\xa1-\uffff]/,E=/[-!#$%&*+.\/<=>?@\\^|~:]/,h=/[(),;[\]`{}]/,b=/[ \t\v\f]/;function g(_,j){if(_.eatWhile(b))return null;var U=_.next();if(h.test(U)){if(U=="{"&&_.eat("-")){var re="comment";return _.eat("#")&&(re="meta"),F(_,j,S(re,1))}return null}if(U=="'")return _.eat("\\"),_.next(),_.eat("'")?"string":"string error";if(U=='"')return F(_,j,T);if(P.test(U))return _.eatWhile(A),_.eat(".")?"qualifier":"variable-2";if(I.test(U))return _.eatWhile(A),"variable";if(m.test(U)){if(U=="0"){if(_.eat(/[xX]/))return _.eatWhile(B),"integer";if(_.eat(/[oO]/))return _.eatWhile(C),"number"}_.eatWhile(m);var re="number";return _.match(/^\.\d+/)&&(re="number"),_.eat(/[eE]/)&&(re="number",_.eat(/[-+]/),_.eatWhile(m)),re}if(U=="."&&_.eat("."))return"keyword";if(E.test(U)){if(U=="-"&&_.eat(/-/)&&(_.eatWhile(/-/),!_.eat(E)))return _.skipToEnd(),"comment";var re="variable";return U==":"&&(re="variable-2"),_.eatWhile(E),re}return"error"}function S(_,j){return j==0?g:function(U,re){for(var oe=j;!U.eol();){var te=U.next();if(te=="{"&&U.eat("-"))++oe;else if(te=="-"&&U.eat("}")&&(--oe,oe==0))return re(g),_}return re(S(_,oe)),_}}function T(_,j){for(;!_.eol();){var U=_.next();if(U=='"')return j(g),"string";if(U=="\\"){if(_.eol()||_.eat(b))return j(y),"string";_.eat("&")||_.next()}}return j(g),"string error"}function y(_,j){return _.eat("\\")?F(_,j,T):(_.next(),j(g),"error")}var $=function(){var _={};function j(oe){return function(){for(var te=0;te<arguments.length;te++)_[arguments[te]]=oe}}j("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_"),j("keyword")("..",":","::","=","\\","<-","->","@","~","=>"),j("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),j("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),j("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var U=z.overrideKeywords;if(U)for(var re in U)U.hasOwnProperty(re)&&(_[re]=U[re]);return _}();return{startState:function(){return{f:g}},copyState:function(_){return{f:_.f}},token:function(_,j){var U=j.f(_,function(oe){j.f=oe}),re=_.current();return $.hasOwnProperty(re)?$[re]:U},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),d.defineMIME("text/x-haskell","haskell")})});var yi=Re((Wa,Ba)=>{(function(d){typeof Wa=="object"&&typeof Ba=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";var R={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},z={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};d.defineMode("xml",function(F,I){var P=F.indentUnit,m={},B=I.htmlMode?R:z;for(var C in B)m[C]=B[C];for(var C in I)m[C]=I[C];var A,E;function h(c,O){function q(Z){return O.tokenize=Z,Z(c,O)}var L=c.next();if(L=="<")return c.eat("!")?c.eat("[")?c.match("CDATA[")?q(S("atom","]]>")):null:c.match("--")?q(S("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),q(T(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),O.tokenize=S("meta","?>"),"meta"):(A=c.eat("/")?"closeTag":"openTag",O.tokenize=b,"tag bracket");if(L=="&"){var k;return c.eat("#")?c.eat("x")?k=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):k=c.eatWhile(/[\d]/)&&c.eat(";"):k=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),k?"atom":"error"}else return c.eatWhile(/[^&<]/),null}h.isInText=!0;function b(c,O){var q=c.next();if(q==">"||q=="/"&&c.eat(">"))return O.tokenize=h,A=q==">"?"endTag":"selfcloseTag","tag bracket";if(q=="=")return A="equals",null;if(q=="<"){O.tokenize=h,O.state=U,O.tagName=O.tagStart=null;var L=O.tokenize(c,O);return L?L+" tag error":"tag error"}else return/[\'\"]/.test(q)?(O.tokenize=g(q),O.stringStartCol=c.column(),O.tokenize(c,O)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function g(c){var O=function(q,L){for(;!q.eol();)if(q.next()==c){L.tokenize=b;break}return"string"};return O.isInAttribute=!0,O}function S(c,O){return function(q,L){for(;!q.eol();){if(q.match(O)){L.tokenize=h;break}q.next()}return c}}function T(c){return function(O,q){for(var L;(L=O.next())!=null;){if(L=="<")return q.tokenize=T(c+1),q.tokenize(O,q);if(L==">")if(c==1){q.tokenize=h;break}else return q.tokenize=T(c-1),q.tokenize(O,q)}return"meta"}}function y(c){return c&&c.toLowerCase()}function $(c,O,q){this.prev=c.context,this.tagName=O||"",this.indent=c.indented,this.startOfLine=q,(m.doNotIndent.hasOwnProperty(O)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function _(c){c.context&&(c.context=c.context.prev)}function j(c,O){for(var q;;){if(!c.context||(q=c.context.tagName,!m.contextGrabbers.hasOwnProperty(y(q))||!m.contextGrabbers[y(q)].hasOwnProperty(y(O))))return;_(c)}}function U(c,O,q){return c=="openTag"?(q.tagStart=O.column(),re):c=="closeTag"?oe:U}function re(c,O,q){return c=="word"?(q.tagName=O.current(),E="tag",X):m.allowMissingTagName&&c=="endTag"?(E="tag bracket",X(c,O,q)):(E="error",re)}function oe(c,O,q){if(c=="word"){var L=O.current();return q.context&&q.context.tagName!=L&&m.implicitlyClosed.hasOwnProperty(y(q.context.tagName))&&_(q),q.context&&q.context.tagName==L||m.matchClosing===!1?(E="tag",te):(E="tag error",V)}else return m.allowMissingTagName&&c=="endTag"?(E="tag bracket",te(c,O,q)):(E="error",V)}function te(c,O,q){return c!="endTag"?(E="error",te):(_(q),U)}function V(c,O,q){return E="error",te(c,O,q)}function X(c,O,q){if(c=="word")return E="attribute",Y;if(c=="endTag"||c=="selfcloseTag"){var L=q.tagName,k=q.tagStart;return q.tagName=q.tagStart=null,c=="selfcloseTag"||m.autoSelfClosers.hasOwnProperty(y(L))?j(q,L):(j(q,L),q.context=new $(q,L,k==q.indented)),U}return E="error",X}function Y(c,O,q){return c=="equals"?N:(m.allowMissing||(E="error"),X(c,O,q))}function N(c,O,q){return c=="string"?D:c=="word"&&m.allowUnquoted?(E="string",X):(E="error",X(c,O,q))}function D(c,O,q){return c=="string"?D:X(c,O,q)}return{startState:function(c){var O={tokenize:h,state:U,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(O.baseIndent=c),O},token:function(c,O){if(!O.tagName&&c.sol()&&(O.indented=c.indentation()),c.eatSpace())return null;A=null;var q=O.tokenize(c,O);return(q||A)&&q!="comment"&&(E=null,O.state=O.state(A||q,c,O),E&&(q=E=="error"?q+" error":E)),q},indent:function(c,O,q){var L=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+P;if(L&&L.noIndent)return d.Pass;if(c.tokenize!=b&&c.tokenize!=h)return q?q.match(/^(\s*)/)[0].length:0;if(c.tagName)return m.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+P*(m.multilineTagIndentFactor||1);if(m.alignCDATA&&/<!\[CDATA\[/.test(O))return 0;var k=O&&/^<(\/)?([\w_:\.-]*)/.exec(O);if(k&&k[1])for(;L;)if(L.tagName==k[2]){L=L.prev;break}else if(m.implicitlyClosed.hasOwnProperty(y(L.tagName)))L=L.prev;else break;else if(k)for(;L;){var Z=m.contextGrabbers[y(L.tagName)];if(Z&&Z.hasOwnProperty(y(k[2])))L=L.prev;else break}for(;L&&L.prev&&!L.startOfLine;)L=L.prev;return L?L.indent+P:c.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:m.htmlMode?"html":"xml",helperType:m.htmlMode?"html":"xml",skipAttribute:function(c){c.state==N&&(c.state=X)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var O=[],q=c.context;q;q=q.prev)O.push(q.tagName);return O.reverse()}}}),d.defineMIME("text/xml","xml"),d.defineMIME("application/xml","xml"),d.mimeModes.hasOwnProperty("text/html")||d.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var ko=Re((ja,Ha)=>{(function(d){typeof ja=="object"&&typeof Ha=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("javascript",function(R,z){var F=R.indentUnit,I=z.statementIndent,P=z.jsonld,m=z.json||P,B=z.trackScope!==!1,C=z.typescript,A=z.wordCharacters||/[\w$\xa1-\uffff]/,E=function(){function u(we){return{type:we,style:"keyword"}}var x=u("keyword a"),ee=u("keyword b"),ue=u("keyword c"),Me=u("keyword d"),Ne=u("operator"),Ke={type:"atom",style:"atom"};return{if:u("if"),while:x,with:x,else:ee,do:ee,try:ee,finally:ee,return:Me,break:Me,continue:Me,new:u("new"),delete:ue,void:ue,throw:ue,debugger:u("debugger"),var:u("var"),const:u("var"),let:u("var"),function:u("function"),catch:u("catch"),for:u("for"),switch:u("switch"),case:u("case"),default:u("default"),in:Ne,typeof:Ne,instanceof:Ne,true:Ke,false:Ke,null:Ke,undefined:Ke,NaN:Ke,Infinity:Ke,this:u("this"),class:u("class"),super:u("atom"),yield:ue,export:u("export"),import:u("import"),extends:ue,await:ue}}(),h=/[+\-*&%=<>!?|~^@]/,b=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(u){for(var x=!1,ee,ue=!1;(ee=u.next())!=null;){if(!x){if(ee=="/"&&!ue)return;ee=="["?ue=!0:ue&&ee=="]"&&(ue=!1)}x=!x&&ee=="\\"}}var S,T;function y(u,x,ee){return S=u,T=ee,x}function $(u,x){var ee=u.next();if(ee=='"'||ee=="'")return x.tokenize=_(ee),x.tokenize(u,x);if(ee=="."&&u.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return y("number","number");if(ee=="."&&u.match(".."))return y("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ee))return y(ee);if(ee=="="&&u.eat(">"))return y("=>","operator");if(ee=="0"&&u.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return y("number","number");if(/\d/.test(ee))return u.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),y("number","number");if(ee=="/")return u.eat("*")?(x.tokenize=j,j(u,x)):u.eat("/")?(u.skipToEnd(),y("comment","comment")):qr(u,x,1)?(g(u),u.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),y("regexp","string-2")):(u.eat("="),y("operator","operator",u.current()));if(ee=="`")return x.tokenize=U,U(u,x);if(ee=="#"&&u.peek()=="!")return u.skipToEnd(),y("meta","meta");if(ee=="#"&&u.eatWhile(A))return y("variable","property");if(ee=="<"&&u.match("!--")||ee=="-"&&u.match("->")&&!/\S/.test(u.string.slice(0,u.start)))return u.skipToEnd(),y("comment","comment");if(h.test(ee))return(ee!=">"||!x.lexical||x.lexical.type!=">")&&(u.eat("=")?(ee=="!"||ee=="=")&&u.eat("="):/[<>*+\-|&?]/.test(ee)&&(u.eat(ee),ee==">"&&u.eat(ee))),ee=="?"&&u.eat(".")?y("."):y("operator","operator",u.current());if(A.test(ee)){u.eatWhile(A);var ue=u.current();if(x.lastType!="."){if(E.propertyIsEnumerable(ue)){var Me=E[ue];return y(Me.type,Me.style,ue)}if(ue=="async"&&u.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return y("async","keyword",ue)}return y("variable","variable",ue)}}function _(u){return function(x,ee){var ue=!1,Me;if(P&&x.peek()=="@"&&x.match(b))return ee.tokenize=$,y("jsonld-keyword","meta");for(;(Me=x.next())!=null&&!(Me==u&&!ue);)ue=!ue&&Me=="\\";return ue||(ee.tokenize=$),y("string","string")}}function j(u,x){for(var ee=!1,ue;ue=u.next();){if(ue=="/"&&ee){x.tokenize=$;break}ee=ue=="*"}return y("comment","comment")}function U(u,x){for(var ee=!1,ue;(ue=u.next())!=null;){if(!ee&&(ue=="`"||ue=="$"&&u.eat("{"))){x.tokenize=$;break}ee=!ee&&ue=="\\"}return y("quasi","string-2",u.current())}var re="([{}])";function oe(u,x){x.fatArrowAt&&(x.fatArrowAt=null);var ee=u.string.indexOf("=>",u.start);if(!(ee<0)){if(C){var ue=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(u.string.slice(u.start,ee));ue&&(ee=ue.index)}for(var Me=0,Ne=!1,Ke=ee-1;Ke>=0;--Ke){var we=u.string.charAt(Ke),Pt=re.indexOf(we);if(Pt>=0&&Pt<3){if(!Me){++Ke;break}if(--Me==0){we=="("&&(Ne=!0);break}}else if(Pt>=3&&Pt<6)++Me;else if(A.test(we))Ne=!0;else if(/["'\/`]/.test(we))for(;;--Ke){if(Ke==0)return;var Bn=u.string.charAt(Ke-1);if(Bn==we&&u.string.charAt(Ke-2)!="\\"){Ke--;break}}else if(Ne&&!Me){++Ke;break}}Ne&&!Me&&(x.fatArrowAt=Ke)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function V(u,x,ee,ue,Me,Ne){this.indented=u,this.column=x,this.type=ee,this.prev=Me,this.info=Ne,ue!=null&&(this.align=ue)}function X(u,x){if(!B)return!1;for(var ee=u.localVars;ee;ee=ee.next)if(ee.name==x)return!0;for(var ue=u.context;ue;ue=ue.prev)for(var ee=ue.vars;ee;ee=ee.next)if(ee.name==x)return!0}function Y(u,x,ee,ue,Me){var Ne=u.cc;for(N.state=u,N.stream=Me,N.marked=null,N.cc=Ne,N.style=x,u.lexical.hasOwnProperty("align")||(u.lexical.align=!0);;){var Ke=Ne.length?Ne.pop():m?fe:ze;if(Ke(ee,ue)){for(;Ne.length&&Ne[Ne.length-1].lex;)Ne.pop()();return N.marked?N.marked:ee=="variable"&&X(u,ue)?"variable-2":x}}}var N={state:null,column:null,marked:null,cc:null};function D(){for(var u=arguments.length-1;u>=0;u--)N.cc.push(arguments[u])}function c(){return D.apply(null,arguments),!0}function O(u,x){for(var ee=x;ee;ee=ee.next)if(ee.name==u)return!0;return!1}function q(u){var x=N.state;if(N.marked="def",!!B){if(x.context){if(x.lexical.info=="var"&&x.context&&x.context.block){var ee=L(u,x.context);if(ee!=null){x.context=ee;return}}else if(!O(u,x.localVars)){x.localVars=new G(u,x.localVars);return}}z.globalVars&&!O(u,x.globalVars)&&(x.globalVars=new G(u,x.globalVars))}}function L(u,x){if(x)if(x.block){var ee=L(u,x.prev);return ee?ee==x.prev?x:new Z(ee,x.vars,!0):null}else return O(u,x.vars)?x:new Z(x.prev,new G(u,x.vars),!1);else return null}function k(u){return u=="public"||u=="private"||u=="protected"||u=="abstract"||u=="readonly"}function Z(u,x,ee){this.prev=u,this.vars=x,this.block=ee}function G(u,x){this.name=u,this.next=x}var v=new G("this",new G("arguments",null));function p(){N.state.context=new Z(N.state.context,N.state.localVars,!1),N.state.localVars=v}function ae(){N.state.context=new Z(N.state.context,N.state.localVars,!0),N.state.localVars=null}p.lex=ae.lex=!0;function ge(){N.state.localVars=N.state.context.vars,N.state.context=N.state.context.prev}ge.lex=!0;function se(u,x){var ee=function(){var ue=N.state,Me=ue.indented;if(ue.lexical.type=="stat")Me=ue.lexical.indented;else for(var Ne=ue.lexical;Ne&&Ne.type==")"&&Ne.align;Ne=Ne.prev)Me=Ne.indented;ue.lexical=new V(Me,N.stream.column(),u,null,ue.lexical,x)};return ee.lex=!0,ee}function de(){var u=N.state;u.lexical.prev&&(u.lexical.type==")"&&(u.indented=u.lexical.indented),u.lexical=u.lexical.prev)}de.lex=!0;function Le(u){function x(ee){return ee==u?c():u==";"||ee=="}"||ee==")"||ee=="]"?D():c(x)}return x}function ze(u,x){return u=="var"?c(se("vardef",x),Ir,Le(";"),de):u=="keyword a"?c(se("form"),De,ze,de):u=="keyword b"?c(se("form"),ze,de):u=="keyword d"?N.stream.match(/^\s*$/,!1)?c():c(se("stat"),mt,Le(";"),de):u=="debugger"?c(Le(";")):u=="{"?c(se("}"),ae,lr,de,ge):u==";"?c():u=="if"?(N.state.lexical.info=="else"&&N.state.cc[N.state.cc.length-1]==de&&N.state.cc.pop()(),c(se("form"),De,ze,de,Pr)):u=="function"?c(Ht):u=="for"?c(se("form"),ae,Rn,ze,ge,de):u=="class"||C&&x=="interface"?(N.marked="keyword",c(se("form",u=="class"?u:x),xr,de)):u=="variable"?C&&x=="declare"?(N.marked="keyword",c(ze)):C&&(x=="module"||x=="enum"||x=="type")&&N.stream.match(/^\s*\w/,!1)?(N.marked="keyword",x=="enum"?c(Be):x=="type"?c(Zt,Le("operator"),Fe,Le(";")):c(se("form"),At,Le("{"),se("}"),lr,de,de)):C&&x=="namespace"?(N.marked="keyword",c(se("form"),fe,ze,de)):C&&x=="abstract"?(N.marked="keyword",c(ze)):c(se("stat"),Oe):u=="switch"?c(se("form"),De,Le("{"),se("}","switch"),ae,lr,de,de,ge):u=="case"?c(fe,Le(":")):u=="default"?c(Le(":")):u=="catch"?c(se("form"),p,ne,ze,de,ge):u=="export"?c(se("stat"),Qt,de):u=="import"?c(se("stat"),Wn,de):u=="async"?c(ze):x=="@"?c(fe,ze):D(se("stat"),fe,Le(";"),de)}function ne(u){if(u=="(")return c(Yt,Le(")"))}function fe(u,x){return Ye(u,x,!1)}function ye(u,x){return Ye(u,x,!0)}function De(u){return u!="("?D():c(se(")"),mt,Le(")"),de)}function Ye(u,x,ee){if(N.state.fatArrowAt==N.stream.start){var ue=ee?qe:Ge;if(u=="(")return c(p,se(")"),Ae(Yt,")"),de,Le("=>"),ue,ge);if(u=="variable")return D(p,At,Le("=>"),ue,ge)}var Me=ee?je:xe;return te.hasOwnProperty(u)?c(Me):u=="function"?c(Ht,Me):u=="class"||C&&x=="interface"?(N.marked="keyword",c(se("form"),_i,de)):u=="keyword c"||u=="async"?c(ee?ye:fe):u=="("?c(se(")"),mt,Le(")"),de,Me):u=="operator"||u=="spread"?c(ee?ye:fe):u=="["?c(se("]"),Ot,de,Me):u=="{"?gt(Ee,"}",null,Me):u=="quasi"?D(rt,Me):u=="new"?c(K(ee)):c()}function mt(u){return u.match(/[;\}\)\],]/)?D():D(fe)}function xe(u,x){return u==","?c(mt):je(u,x,!1)}function je(u,x,ee){var ue=ee==!1?xe:je,Me=ee==!1?fe:ye;if(u=="=>")return c(p,ee?qe:Ge,ge);if(u=="operator")return/\+\+|--/.test(x)||C&&x=="!"?c(ue):C&&x=="<"&&N.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(se(">"),Ae(Fe,">"),de,ue):x=="?"?c(fe,Le(":"),Me):c(Me);if(u=="quasi")return D(rt,ue);if(u!=";"){if(u=="(")return gt(ye,")","call",ue);if(u==".")return c(be,ue);if(u=="[")return c(se("]"),mt,Le("]"),de,ue);if(C&&x=="as")return N.marked="keyword",c(Fe,ue);if(u=="regexp")return N.state.lastType=N.marked="operator",N.stream.backUp(N.stream.pos-N.stream.start-1),c(Me)}}function rt(u,x){return u!="quasi"?D():x.slice(x.length-2)!="${"?c(rt):c(mt,lt)}function lt(u){if(u=="}")return N.marked="string-2",N.state.tokenize=U,c(rt)}function Ge(u){return oe(N.stream,N.state),D(u=="{"?ze:fe)}function qe(u){return oe(N.stream,N.state),D(u=="{"?ze:ye)}function K(u){return function(x){return x=="."?c(u?J:le):x=="variable"&&C?c(ln,u?je:xe):D(u?ye:fe)}}function le(u,x){if(x=="target")return N.marked="keyword",c(xe)}function J(u,x){if(x=="target")return N.marked="keyword",c(je)}function Oe(u){return u==":"?c(de,ze):D(xe,Le(";"),de)}function be(u){if(u=="variable")return N.marked="property",c()}function Ee(u,x){if(u=="async")return N.marked="property",c(Ee);if(u=="variable"||N.style=="keyword"){if(N.marked="property",x=="get"||x=="set")return c(_e);var ee;return C&&N.state.fatArrowAt==N.stream.start&&(ee=N.stream.match(/^\s*:\s*/,!1))&&(N.state.fatArrowAt=N.stream.pos+ee[0].length),c(Pe)}else{if(u=="number"||u=="string")return N.marked=P?"property":N.style+" property",c(Pe);if(u=="jsonld-keyword")return c(Pe);if(C&&k(x))return N.marked="keyword",c(Ee);if(u=="[")return c(fe,bt,Le("]"),Pe);if(u=="spread")return c(ye,Pe);if(x=="*")return N.marked="keyword",c(Ee);if(u==":")return D(Pe)}}function _e(u){return u!="variable"?D(Pe):(N.marked="property",c(Ht))}function Pe(u){if(u==":")return c(ye);if(u=="(")return D(Ht)}function Ae(u,x,ee){function ue(Me,Ne){if(ee?ee.indexOf(Me)>-1:Me==","){var Ke=N.state.lexical;return Ke.info=="call"&&(Ke.pos=(Ke.pos||0)+1),c(function(we,Pt){return we==x||Pt==x?D():D(u)},ue)}return Me==x||Ne==x?c():ee&&ee.indexOf(";")>-1?D(u):c(Le(x))}return function(Me,Ne){return Me==x||Ne==x?c():D(u,ue)}}function gt(u,x,ee){for(var ue=3;ue<arguments.length;ue++)N.cc.push(arguments[ue]);return c(se(x,ee),Ae(u,x),de)}function lr(u){return u=="}"?c():D(ze,lr)}function bt(u,x){if(C){if(u==":")return c(Fe);if(x=="?")return c(bt)}}function qn(u,x){if(C&&(u==":"||x=="in"))return c(Fe)}function Ce(u){if(C&&u==":")return N.stream.match(/^\s*\w+\s+is\b/,!1)?c(fe,on,Fe):c(Fe)}function on(u,x){if(x=="is")return N.marked="keyword",c()}function Fe(u,x){if(x=="keyof"||x=="typeof"||x=="infer"||x=="readonly")return N.marked="keyword",c(x=="typeof"?ye:Fe);if(u=="variable"||x=="void")return N.marked="type",c(Ft);if(x=="|"||x=="&")return c(Fe);if(u=="string"||u=="number"||u=="atom")return c(Ft);if(u=="[")return c(se("]"),Ae(Fe,"]",","),de,Ft);if(u=="{")return c(se("}"),et,de,Ft);if(u=="(")return c(Ae(st,")"),Ve,Ft);if(u=="<")return c(Ae(Fe,">"),Fe);if(u=="quasi")return D(xt,Ft)}function Ve(u){if(u=="=>")return c(Fe)}function et(u){return u.match(/[\}\)\]]/)?c():u==","||u==";"?c(et):D(ar,et)}function ar(u,x){if(u=="variable"||N.style=="keyword")return N.marked="property",c(ar);if(x=="?"||u=="number"||u=="string")return c(ar);if(u==":")return c(Fe);if(u=="[")return c(Le("variable"),qn,Le("]"),ar);if(u=="(")return D(Ut,ar);if(!u.match(/[;\}\)\],]/))return c()}function xt(u,x){return u!="quasi"?D():x.slice(x.length-2)!="${"?c(xt):c(Fe,sr)}function sr(u){if(u=="}")return N.marked="string-2",N.state.tokenize=U,c(xt)}function st(u,x){return u=="variable"&&N.stream.match(/^\s*[?:]/,!1)||x=="?"?c(st):u==":"?c(Fe):u=="spread"?c(st):D(Fe)}function Ft(u,x){if(x=="<")return c(se(">"),Ae(Fe,">"),de,Ft);if(x=="|"||u=="."||x=="&")return c(Fe);if(u=="[")return c(Fe,Le("]"),Ft);if(x=="extends"||x=="implements")return N.marked="keyword",c(Fe);if(x=="?")return c(Fe,Le(":"),Fe)}function ln(u,x){if(x=="<")return c(se(">"),Ae(Fe,">"),de,Ft)}function Bt(){return D(Fe,an)}function an(u,x){if(x=="=")return c(Fe)}function Ir(u,x){return x=="enum"?(N.marked="keyword",c(Be)):D(At,bt,It,xi)}function At(u,x){if(C&&k(x))return N.marked="keyword",c(At);if(u=="variable")return q(x),c();if(u=="spread")return c(At);if(u=="[")return gt(bi,"]");if(u=="{")return gt(Or,"}")}function Or(u,x){return u=="variable"&&!N.stream.match(/^\s*:/,!1)?(q(x),c(It)):(u=="variable"&&(N.marked="property"),u=="spread"?c(At):u=="}"?D():u=="["?c(fe,Le("]"),Le(":"),Or):c(Le(":"),At,It))}function bi(){return D(At,It)}function It(u,x){if(x=="=")return c(ye)}function xi(u){if(u==",")return c(Ir)}function Pr(u,x){if(u=="keyword b"&&x=="else")return c(se("form","else"),ze,de)}function Rn(u,x){if(x=="await")return c(Rn);if(u=="(")return c(se(")"),ki,de)}function ki(u){return u=="var"?c(Ir,jt):u=="variable"?c(jt):D(jt)}function jt(u,x){return u==")"?c():u==";"?c(jt):x=="in"||x=="of"?(N.marked="keyword",c(fe,jt)):D(fe,jt)}function Ht(u,x){if(x=="*")return N.marked="keyword",c(Ht);if(u=="variable")return q(x),c(Ht);if(u=="(")return c(p,se(")"),Ae(Yt,")"),de,Ce,ze,ge);if(C&&x=="<")return c(se(">"),Ae(Bt,">"),de,Ht)}function Ut(u,x){if(x=="*")return N.marked="keyword",c(Ut);if(u=="variable")return q(x),c(Ut);if(u=="(")return c(p,se(")"),Ae(Yt,")"),de,Ce,ge);if(C&&x=="<")return c(se(">"),Ae(Bt,">"),de,Ut)}function Zt(u,x){if(u=="keyword"||u=="variable")return N.marked="type",c(Zt);if(x=="<")return c(se(">"),Ae(Bt,">"),de)}function Yt(u,x){return x=="@"&&c(fe,Yt),u=="spread"?c(Yt):C&&k(x)?(N.marked="keyword",c(Yt)):C&&u=="this"?c(bt,It):D(At,bt,It)}function _i(u,x){return u=="variable"?xr(u,x):ur(u,x)}function xr(u,x){if(u=="variable")return q(x),c(ur)}function ur(u,x){if(x=="<")return c(se(">"),Ae(Bt,">"),de,ur);if(x=="extends"||x=="implements"||C&&u==",")return x=="implements"&&(N.marked="keyword"),c(C?Fe:fe,ur);if(u=="{")return c(se("}"),kt,de)}function kt(u,x){if(u=="async"||u=="variable"&&(x=="static"||x=="get"||x=="set"||C&&k(x))&&N.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return N.marked="keyword",c(kt);if(u=="variable"||N.style=="keyword")return N.marked="property",c(kr,kt);if(u=="number"||u=="string")return c(kr,kt);if(u=="[")return c(fe,bt,Le("]"),kr,kt);if(x=="*")return N.marked="keyword",c(kt);if(C&&u=="(")return D(Ut,kt);if(u==";"||u==",")return c(kt);if(u=="}")return c();if(x=="@")return c(fe,kt)}function kr(u,x){if(x=="!"||x=="?")return c(kr);if(u==":")return c(Fe,It);if(x=="=")return c(ye);var ee=N.state.lexical.prev,ue=ee&&ee.info=="interface";return D(ue?Ut:Ht)}function Qt(u,x){return x=="*"?(N.marked="keyword",c(_r,Le(";"))):x=="default"?(N.marked="keyword",c(fe,Le(";"))):u=="{"?c(Ae(Nr,"}"),_r,Le(";")):D(ze)}function Nr(u,x){if(x=="as")return N.marked="keyword",c(Le("variable"));if(u=="variable")return D(ye,Nr)}function Wn(u){return u=="string"?c():u=="("?D(fe):u=="."?D(xe):D(Ze,ke,_r)}function Ze(u,x){return u=="{"?gt(Ze,"}"):(u=="variable"&&q(x),x=="*"&&(N.marked="keyword"),c(Jt))}function ke(u){if(u==",")return c(Ze,ke)}function Jt(u,x){if(x=="as")return N.marked="keyword",c(Ze)}function _r(u,x){if(x=="from")return N.marked="keyword",c(fe)}function Ot(u){return u=="]"?c():D(Ae(ye,"]"))}function Be(){return D(se("form"),At,Le("{"),se("}"),Ae(Vt,"}"),de,de)}function Vt(){return D(At,It)}function wr(u,x){return u.lastType=="operator"||u.lastType==","||h.test(x.charAt(0))||/[,.]/.test(x.charAt(0))}function qr(u,x,ee){return x.tokenize==$&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(x.lastType)||x.lastType=="quasi"&&/\{\s*$/.test(u.string.slice(0,u.pos-(ee||0)))}return{startState:function(u){var x={tokenize:$,lastType:"sof",cc:[],lexical:new V((u||0)-F,0,"block",!1),localVars:z.localVars,context:z.localVars&&new Z(null,null,!1),indented:u||0};return z.globalVars&&typeof z.globalVars=="object"&&(x.globalVars=z.globalVars),x},token:function(u,x){if(u.sol()&&(x.lexical.hasOwnProperty("align")||(x.lexical.align=!1),x.indented=u.indentation(),oe(u,x)),x.tokenize!=j&&u.eatSpace())return null;var ee=x.tokenize(u,x);return S=="comment"?ee:(x.lastType=S=="operator"&&(T=="++"||T=="--")?"incdec":S,Y(x,ee,S,T,u))},indent:function(u,x){if(u.tokenize==j||u.tokenize==U)return d.Pass;if(u.tokenize!=$)return 0;var ee=x&&x.charAt(0),ue=u.lexical,Me;if(!/^\s*else\b/.test(x))for(var Ne=u.cc.length-1;Ne>=0;--Ne){var Ke=u.cc[Ne];if(Ke==de)ue=ue.prev;else if(Ke!=Pr&&Ke!=ge)break}for(;(ue.type=="stat"||ue.type=="form")&&(ee=="}"||(Me=u.cc[u.cc.length-1])&&(Me==xe||Me==je)&&!/^[,\.=+\-*:?[\(]/.test(x));)ue=ue.prev;I&&ue.type==")"&&ue.prev.type=="stat"&&(ue=ue.prev);var we=ue.type,Pt=ee==we;return we=="vardef"?ue.indented+(u.lastType=="operator"||u.lastType==","?ue.info.length+1:0):we=="form"&&ee=="{"?ue.indented:we=="form"?ue.indented+F:we=="stat"?ue.indented+(wr(u,x)?I||F:0):ue.info=="switch"&&!Pt&&z.doubleIndentSwitch!=!1?ue.indented+(/^(?:case|default)\b/.test(x)?F:2*F):ue.align?ue.column+(Pt?0:1):ue.indented+(Pt?0:F)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:m?null:"/*",blockCommentEnd:m?null:"*/",blockCommentContinue:m?null:" * ",lineComment:m?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:m?"json":"javascript",jsonldMode:P,jsonMode:m,expressionAllowed:qr,skipExpression:function(u){Y(u,"atom","atom","true",new d.StringStream("",2,null))}}}),d.registerHelper("wordChars","javascript",/[\w$]/),d.defineMIME("text/javascript","javascript"),d.defineMIME("text/ecmascript","javascript"),d.defineMIME("application/javascript","javascript"),d.defineMIME("application/x-javascript","javascript"),d.defineMIME("application/ecmascript","javascript"),d.defineMIME("application/json",{name:"javascript",json:!0}),d.defineMIME("application/x-json",{name:"javascript",json:!0}),d.defineMIME("application/manifest+json",{name:"javascript",json:!0}),d.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),d.defineMIME("text/typescript",{name:"javascript",typescript:!0}),d.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var _o=Re((Ua,Ka)=>{(function(d){typeof Ua=="object"&&typeof Ka=="object"?d(We(),yi(),ko(),bo()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],d):d(CodeMirror)})(function(d){"use strict";var R={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function z(A,E,h){var b=A.current(),g=b.search(E);return g>-1?A.backUp(b.length-g):b.match(/<\/?$/)&&(A.backUp(b.length),A.match(E,!1)||A.match(b)),h}var F={};function I(A){var E=F[A];return E||(F[A]=new RegExp("\\s+"+A+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function P(A,E){var h=A.match(I(E));return h?/^\s*(.*?)\s*$/.exec(h[2])[1]:""}function m(A,E){return new RegExp((E?"^":"")+"</\\s*"+A+"\\s*>","i")}function B(A,E){for(var h in A)for(var b=E[h]||(E[h]=[]),g=A[h],S=g.length-1;S>=0;S--)b.unshift(g[S])}function C(A,E){for(var h=0;h<A.length;h++){var b=A[h];if(!b[0]||b[1].test(P(E,b[0])))return b[2]}}d.defineMode("htmlmixed",function(A,E){var h=d.getMode(A,{name:"xml",htmlMode:!0,multilineTagIndentFactor:E.multilineTagIndentFactor,multilineTagIndentPastTag:E.multilineTagIndentPastTag,allowMissingTagName:E.allowMissingTagName}),b={},g=E&&E.tags,S=E&&E.scriptTypes;if(B(R,b),g&&B(g,b),S)for(var T=S.length-1;T>=0;T--)b.script.unshift(["type",S[T].matches,S[T].mode]);function y($,_){var j=h.token($,_.htmlState),U=/\btag\b/.test(j),re;if(U&&!/[<>\s\/]/.test($.current())&&(re=_.htmlState.tagName&&_.htmlState.tagName.toLowerCase())&&b.hasOwnProperty(re))_.inTag=re+" ";else if(_.inTag&&U&&/>$/.test($.current())){var oe=/^([\S]+) (.*)/.exec(_.inTag);_.inTag=null;var te=$.current()==">"&&C(b[oe[1]],oe[2]),V=d.getMode(A,te),X=m(oe[1],!0),Y=m(oe[1],!1);_.token=function(N,D){return N.match(X,!1)?(D.token=y,D.localState=D.localMode=null,null):z(N,Y,D.localMode.token(N,D.localState))},_.localMode=V,_.localState=d.startState(V,h.indent(_.htmlState,"",""))}else _.inTag&&(_.inTag+=$.current(),$.eol()&&(_.inTag+=" "));return j}return{startState:function(){var $=d.startState(h);return{token:y,inTag:null,localMode:null,localState:null,htmlState:$}},copyState:function($){var _;return $.localState&&(_=d.copyState($.localMode,$.localState)),{token:$.token,inTag:$.inTag,localMode:$.localMode,localState:_,htmlState:d.copyState(h,$.htmlState)}},token:function($,_){return _.token($,_)},indent:function($,_,j){return!$.localMode||/^\s*<\//.test(_)?h.indent($.htmlState,_,j):$.localMode.indent?$.localMode.indent($.localState,_,j):d.Pass},innerMode:function($){return{state:$.localState||$.htmlState,mode:$.localMode||h}}}},"xml","javascript","css"),d.defineMIME("text/html","htmlmixed")})});var Xa=Re(($a,Ga)=>{(function(d){typeof $a=="object"&&typeof Ga=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("julia",function(R,z){function F(G,v,p){return typeof p>"u"&&(p=""),typeof v>"u"&&(v="\\b"),new RegExp("^"+p+"(("+G.join(")|(")+"))"+v)}var I="\\\\[0-7]{1,3}",P="\\\\x[A-Fa-f0-9]{1,2}",m=`\\\\[abefnrtv0%?'"\\\\]`,B="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])",C=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],A=z.operators||F(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),E=z.delimiters||/^[;,()[\]{}]/,h=z.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,b=F([I,P,m,B],"'"),g=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],S=["end","else","elseif","catch","finally"],T=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],y=["true","false","nothing","NaN","Inf"];d.registerHelper("hintWords","julia",T.concat(y));var $=F(g),_=F(S),j=F(T),U=F(y),re=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,oe=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,te=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,V=F(C,"","@"),X=F(C,"",":");function Y(G){return G.nestedArrays>0}function N(G){return G.nestedGenerators>0}function D(G,v){return typeof v>"u"&&(v=0),G.scopes.length<=v?null:G.scopes[G.scopes.length-(v+1)]}function c(G,v){if(G.match("#=",!1))return v.tokenize=q,v.tokenize(G,v);var p=v.leavingExpr;if(G.sol()&&(p=!1),v.leavingExpr=!1,p&&G.match(/^'+/))return"operator";if(G.match(/\.{4,}/))return"error";if(G.match(/\.{1,3}/))return"operator";if(G.eatSpace())return null;var ae=G.peek();if(ae==="#")return G.skipToEnd(),"comment";if(ae==="["&&(v.scopes.push("["),v.nestedArrays++),ae==="("&&(v.scopes.push("("),v.nestedGenerators++),Y(v)&&ae==="]"){for(;v.scopes.length&&D(v)!=="[";)v.scopes.pop();v.scopes.pop(),v.nestedArrays--,v.leavingExpr=!0}if(N(v)&&ae===")"){for(;v.scopes.length&&D(v)!=="(";)v.scopes.pop();v.scopes.pop(),v.nestedGenerators--,v.leavingExpr=!0}if(Y(v)){if(v.lastToken=="end"&&G.match(":"))return"operator";if(G.match("end"))return"number"}var ge;if((ge=G.match($,!1))&&v.scopes.push(ge[0]),G.match(_,!1)&&v.scopes.pop(),G.match(/^::(?![:\$])/))return v.tokenize=O,v.tokenize(G,v);if(!p&&(G.match(oe)||G.match(X)))return"builtin";if(G.match(A))return"operator";if(G.match(/^\.?\d/,!1)){var se=RegExp(/^im\b/),de=!1;if(G.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(de=!0),G.match(/^0x[0-9a-f_]+/i)&&(de=!0),G.match(/^0b[01_]+/i)&&(de=!0),G.match(/^0o[0-7_]+/i)&&(de=!0),G.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(de=!0),G.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(de=!0),de)return G.match(se),v.leavingExpr=!0,"number"}if(G.match("'"))return v.tokenize=L,v.tokenize(G,v);if(G.match(te))return v.tokenize=k(G.current()),v.tokenize(G,v);if(G.match(re)||G.match(V))return"meta";if(G.match(E))return null;if(G.match(j))return"keyword";if(G.match(U))return"builtin";var Le=v.isDefinition||v.lastToken=="function"||v.lastToken=="macro"||v.lastToken=="type"||v.lastToken=="struct"||v.lastToken=="immutable";return G.match(h)?Le?G.peek()==="."?(v.isDefinition=!0,"variable"):(v.isDefinition=!1,"def"):(v.leavingExpr=!0,"variable"):(G.next(),"error")}function O(G,v){return G.match(/.*?(?=[,;{}()=\s]|$)/),G.match("{")?v.nestedParameters++:G.match("}")&&v.nestedParameters>0&&v.nestedParameters--,v.nestedParameters>0?G.match(/.*?(?={|})/)||G.next():v.nestedParameters==0&&(v.tokenize=c),"builtin"}function q(G,v){return G.match("#=")&&v.nestedComments++,G.match(/.*?(?=(#=|=#))/)||G.skipToEnd(),G.match("=#")&&(v.nestedComments--,v.nestedComments==0&&(v.tokenize=c)),"comment"}function L(G,v){var p=!1,ae;if(G.match(b))p=!0;else if(ae=G.match(/\\u([a-f0-9]{1,4})(?=')/i)){var ge=parseInt(ae[1],16);(ge<=55295||ge>=57344)&&(p=!0,G.next())}else if(ae=G.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var ge=parseInt(ae[1],16);ge<=1114111&&(p=!0,G.next())}return p?(v.leavingExpr=!0,v.tokenize=c,"string"):(G.match(/^[^']+(?=')/)||G.skipToEnd(),G.match("'")&&(v.tokenize=c),"error")}function k(G){G.substr(-3)==='"""'?G='"""':G.substr(-1)==='"'&&(G='"');function v(p,ae){if(p.eat("\\"))p.next();else{if(p.match(G))return ae.tokenize=c,ae.leavingExpr=!0,"string";p.eat(/[`"]/)}return p.eatWhile(/[^\\`"]/),"string"}return v}var Z={startState:function(){return{tokenize:c,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(G,v){var p=v.tokenize(G,v),ae=G.current();return ae&&p&&(v.lastToken=ae),p},indent:function(G,v){var p=0;return(v==="]"||v===")"||/^end\b/.test(v)||/^else/.test(v)||/^catch\b/.test(v)||/^elseif\b/.test(v)||/^finally/.test(v))&&(p=-1),(G.scopes.length+p)*R.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"};return Z}),d.defineMIME("text/x-julia","julia")})});var Qa=Re((Za,Ya)=>{(function(d){typeof Za=="object"&&typeof Ya=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("lua",function(R,z){var F=R.indentUnit;function I(y){return new RegExp("^(?:"+y.join("|")+")","i")}function P(y){return new RegExp("^(?:"+y.join("|")+")$","i")}var m=P(z.specials||[]),B=P(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),C=P(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),A=P(["function","if","repeat","do","\\(","{"]),E=P(["end","until","\\)","}"]),h=I(["end","until","\\)","}","else","elseif"]);function b(y){for(var $=0;y.eat("=");)++$;return y.eat("["),$}function g(y,$){var _=y.next();return _=="-"&&y.eat("-")?y.eat("[")&&y.eat("[")?($.cur=S(b(y),"comment"))(y,$):(y.skipToEnd(),"comment"):_=='"'||_=="'"?($.cur=T(_))(y,$):_=="["&&/[\[=]/.test(y.peek())?($.cur=S(b(y),"string"))(y,$):/\d/.test(_)?(y.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(_)?(y.eatWhile(/[\w\\\-_.]/),"variable"):null}function S(y,$){return function(_,j){for(var U=null,re;(re=_.next())!=null;)if(U==null)re=="]"&&(U=0);else if(re=="=")++U;else if(re=="]"&&U==y){j.cur=g;break}else U=null;return $}}function T(y){return function($,_){for(var j=!1,U;(U=$.next())!=null&&!(U==y&&!j);)j=!j&&U=="\\";return j||(_.cur=g),"string"}}return{startState:function(y){return{basecol:y||0,indentDepth:0,cur:g}},token:function(y,$){if(y.eatSpace())return null;var _=$.cur(y,$),j=y.current();return _=="variable"&&(C.test(j)?_="keyword":B.test(j)?_="builtin":m.test(j)&&(_="variable-2")),_!="comment"&&_!="string"&&(A.test(j)?++$.indentDepth:E.test(j)&&--$.indentDepth),_},indent:function(y,$){var _=h.test($);return y.basecol+F*(y.indentDepth-(_?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),d.defineMIME("text/x-lua","lua")})});var es=Re((Ja,Va)=>{(function(d){typeof Ja=="object"&&typeof Va=="object"?d(We()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var R=0;R<d.modeInfo.length;R++){var z=d.modeInfo[R];z.mimes&&(z.mime=z.mimes[0])}d.findModeByMIME=function(F){F=F.toLowerCase();for(var I=0;I<d.modeInfo.length;I++){var P=d.modeInfo[I];if(P.mime==F)return P;if(P.mimes){for(var m=0;m<P.mimes.length;m++)if(P.mimes[m]==F)return P}}if(/\+xml$/.test(F))return d.findModeByMIME("application/xml");if(/\+json$/.test(F))return d.findModeByMIME("application/json")},d.findModeByExtension=function(F){F=F.toLowerCase();for(var I=0;I<d.modeInfo.length;I++){var P=d.modeInfo[I];if(P.ext){for(var m=0;m<P.ext.length;m++)if(P.ext[m]==F)return P}}},d.findModeByFileName=function(F){for(var I=0;I<d.modeInfo.length;I++){var P=d.modeInfo[I];if(P.file&&P.file.test(F))return P}var m=F.lastIndexOf("."),B=m>-1&&F.substring(m+1,F.length);if(B)return d.findModeByExtension(B)},d.findModeByName=function(F){F=F.toLowerCase();for(var I=0;I<d.modeInfo.length;I++){var P=d.modeInfo[I];if(P.name.toLowerCase()==F)return P;if(P.alias){for(var m=0;m<P.alias.length;m++)if(P.alias[m].toLowerCase()==F)return P}}}})});var ns=Re((ts,rs)=>{(function(d){typeof ts=="object"&&typeof rs=="object"?d(We(),yi(),es()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("markdown",function(R,z){var F=d.getMode(R,"text/html"),I=F.name=="null";function P(v){if(d.findModeByName){var p=d.findModeByName(v);p&&(v=p.mime||p.mimes[0])}var ae=d.getMode(R,v);return ae.name=="null"?null:ae}z.highlightFormatting===void 0&&(z.highlightFormatting=!1),z.maxBlockquoteDepth===void 0&&(z.maxBlockquoteDepth=0),z.taskLists===void 0&&(z.taskLists=!1),z.strikethrough===void 0&&(z.strikethrough=!1),z.emoji===void 0&&(z.emoji=!1),z.fencedCodeBlockHighlighting===void 0&&(z.fencedCodeBlockHighlighting=!0),z.fencedCodeBlockDefaultMode===void 0&&(z.fencedCodeBlockDefaultMode="text/plain"),z.xml===void 0&&(z.xml=!0),z.tokenTypeOverrides===void 0&&(z.tokenTypeOverrides={});var m={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var B in m)m.hasOwnProperty(B)&&z.tokenTypeOverrides[B]&&(m[B]=z.tokenTypeOverrides[B]);var C=/^([*\-_])(?:\s*\1){2,}\s*$/,A=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,E=/^\[(x| )\](?=\s)/i,h=z.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,b=/^ {0,3}(?:\={1,}|-{2,})\s*$/,g=/^[^#!\[\]*_\\<>` "'(~:]+/,S=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,T=/^\s*\[[^\]]+?\]:.*$/,y=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,$=" ";function _(v,p,ae){return p.f=p.inline=ae,ae(v,p)}function j(v,p,ae){return p.f=p.block=ae,ae(v,p)}function U(v){return!v||!/\S/.test(v.string)}function re(v){if(v.linkTitle=!1,v.linkHref=!1,v.linkText=!1,v.em=!1,v.strong=!1,v.strikethrough=!1,v.quote=0,v.indentedCode=!1,v.f==te){var p=I;if(!p){var ae=d.innerMode(F,v.htmlState);p=ae.mode.name=="xml"&&ae.state.tagStart===null&&!ae.state.context&&ae.state.tokenize.isInText}p&&(v.f=N,v.block=oe,v.htmlState=null)}return v.trailingSpace=0,v.trailingSpaceNewLine=!1,v.prevLine=v.thisLine,v.thisLine={stream:null},null}function oe(v,p){var ae=v.column()===p.indentation,ge=U(p.prevLine.stream),se=p.indentedCode,de=p.prevLine.hr,Le=p.list!==!1,ze=(p.listStack[p.listStack.length-1]||0)+3;p.indentedCode=!1;var ne=p.indentation;if(p.indentationDiff===null&&(p.indentationDiff=p.indentation,Le)){for(p.list=null;ne<p.listStack[p.listStack.length-1];)p.listStack.pop(),p.listStack.length?p.indentation=p.listStack[p.listStack.length-1]:p.list=!1;p.list!==!1&&(p.indentationDiff=ne-p.listStack[p.listStack.length-1])}var fe=!ge&&!de&&!p.prevLine.header&&(!Le||!se)&&!p.prevLine.fencedCodeEnd,ye=(p.list===!1||de||ge)&&p.indentation<=ze&&v.match(C),De=null;if(p.indentationDiff>=4&&(se||p.prevLine.fencedCodeEnd||p.prevLine.header||ge))return v.skipToEnd(),p.indentedCode=!0,m.code;if(v.eatSpace())return null;if(ae&&p.indentation<=ze&&(De=v.match(h))&&De[1].length<=6)return p.quote=0,p.header=De[1].length,p.thisLine.header=!0,z.highlightFormatting&&(p.formatting="header"),p.f=p.inline,X(p);if(p.indentation<=ze&&v.eat(">"))return p.quote=ae?1:p.quote+1,z.highlightFormatting&&(p.formatting="quote"),v.eatSpace(),X(p);if(!ye&&!p.setext&&ae&&p.indentation<=ze&&(De=v.match(A))){var Ye=De[1]?"ol":"ul";return p.indentation=ne+v.current().length,p.list=!0,p.quote=0,p.listStack.push(p.indentation),p.em=!1,p.strong=!1,p.code=!1,p.strikethrough=!1,z.taskLists&&v.match(E,!1)&&(p.taskList=!0),p.f=p.inline,z.highlightFormatting&&(p.formatting=["list","list-"+Ye]),X(p)}else{if(ae&&p.indentation<=ze&&(De=v.match(S,!0)))return p.quote=0,p.fencedEndRE=new RegExp(De[1]+"+ *$"),p.localMode=z.fencedCodeBlockHighlighting&&P(De[2]||z.fencedCodeBlockDefaultMode),p.localMode&&(p.localState=d.startState(p.localMode)),p.f=p.block=V,z.highlightFormatting&&(p.formatting="code-block"),p.code=-1,X(p);if(p.setext||(!fe||!Le)&&!p.quote&&p.list===!1&&!p.code&&!ye&&!T.test(v.string)&&(De=v.lookAhead(1))&&(De=De.match(b)))return p.setext?(p.header=p.setext,p.setext=0,v.skipToEnd(),z.highlightFormatting&&(p.formatting="header")):(p.header=De[0].charAt(0)=="="?1:2,p.setext=p.header),p.thisLine.header=!0,p.f=p.inline,X(p);if(ye)return v.skipToEnd(),p.hr=!0,p.thisLine.hr=!0,m.hr;if(v.peek()==="[")return _(v,p,L)}return _(v,p,p.inline)}function te(v,p){var ae=F.token(v,p.htmlState);if(!I){var ge=d.innerMode(F,p.htmlState);(ge.mode.name=="xml"&&ge.state.tagStart===null&&!ge.state.context&&ge.state.tokenize.isInText||p.md_inside&&v.current().indexOf(">")>-1)&&(p.f=N,p.block=oe,p.htmlState=null)}return ae}function V(v,p){var ae=p.listStack[p.listStack.length-1]||0,ge=p.indentation<ae,se=ae+3;if(p.fencedEndRE&&p.indentation<=se&&(ge||v.match(p.fencedEndRE))){z.highlightFormatting&&(p.formatting="code-block");var de;return ge||(de=X(p)),p.localMode=p.localState=null,p.block=oe,p.f=N,p.fencedEndRE=null,p.code=0,p.thisLine.fencedCodeEnd=!0,ge?j(v,p,p.block):de}else return p.localMode?p.localMode.token(v,p.localState):(v.skipToEnd(),m.code)}function X(v){var p=[];if(v.formatting){p.push(m.formatting),typeof v.formatting=="string"&&(v.formatting=[v.formatting]);for(var ae=0;ae<v.formatting.length;ae++)p.push(m.formatting+"-"+v.formatting[ae]),v.formatting[ae]==="header"&&p.push(m.formatting+"-"+v.formatting[ae]+"-"+v.header),v.formatting[ae]==="quote"&&(!z.maxBlockquoteDepth||z.maxBlockquoteDepth>=v.quote?p.push(m.formatting+"-"+v.formatting[ae]+"-"+v.quote):p.push("error"))}if(v.taskOpen)return p.push("meta"),p.length?p.join(" "):null;if(v.taskClosed)return p.push("property"),p.length?p.join(" "):null;if(v.linkHref?p.push(m.linkHref,"url"):(v.strong&&p.push(m.strong),v.em&&p.push(m.em),v.strikethrough&&p.push(m.strikethrough),v.emoji&&p.push(m.emoji),v.linkText&&p.push(m.linkText),v.code&&p.push(m.code),v.image&&p.push(m.image),v.imageAltText&&p.push(m.imageAltText,"link"),v.imageMarker&&p.push(m.imageMarker)),v.header&&p.push(m.header,m.header+"-"+v.header),v.quote&&(p.push(m.quote),!z.maxBlockquoteDepth||z.maxBlockquoteDepth>=v.quote?p.push(m.quote+"-"+v.quote):p.push(m.quote+"-"+z.maxBlockquoteDepth)),v.list!==!1){var ge=(v.listStack.length-1)%3;ge?ge===1?p.push(m.list2):p.push(m.list3):p.push(m.list1)}return v.trailingSpaceNewLine?p.push("trailing-space-new-line"):v.trailingSpace&&p.push("trailing-space-"+(v.trailingSpace%2?"a":"b")),p.length?p.join(" "):null}function Y(v,p){if(v.match(g,!0))return X(p)}function N(v,p){var ae=p.text(v,p);if(typeof ae<"u")return ae;if(p.list)return p.list=null,X(p);if(p.taskList){var ge=v.match(E,!0)[1]===" ";return ge?p.taskOpen=!0:p.taskClosed=!0,z.highlightFormatting&&(p.formatting="task"),p.taskList=!1,X(p)}if(p.taskOpen=!1,p.taskClosed=!1,p.header&&v.match(/^#+$/,!0))return z.highlightFormatting&&(p.formatting="header"),X(p);var se=v.next();if(p.linkTitle){p.linkTitle=!1;var de=se;se==="("&&(de=")"),de=(de+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Le="^\\s*(?:[^"+de+"\\\\]+|\\\\\\\\|\\\\.)"+de;if(v.match(new RegExp(Le),!0))return m.linkHref}if(se==="`"){var ze=p.formatting;z.highlightFormatting&&(p.formatting="code"),v.eatWhile("`");var ne=v.current().length;if(p.code==0&&(!p.quote||ne==1))return p.code=ne,X(p);if(ne==p.code){var fe=X(p);return p.code=0,fe}else return p.formatting=ze,X(p)}else if(p.code)return X(p);if(se==="\\"&&(v.next(),z.highlightFormatting)){var ye=X(p),De=m.formatting+"-escape";return ye?ye+" "+De:De}if(se==="!"&&v.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return p.imageMarker=!0,p.image=!0,z.highlightFormatting&&(p.formatting="image"),X(p);if(se==="["&&p.imageMarker&&v.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return p.imageMarker=!1,p.imageAltText=!0,z.highlightFormatting&&(p.formatting="image"),X(p);if(se==="]"&&p.imageAltText){z.highlightFormatting&&(p.formatting="image");var ye=X(p);return p.imageAltText=!1,p.image=!1,p.inline=p.f=c,ye}if(se==="["&&!p.image)return p.linkText&&v.match(/^.*?\]/)||(p.linkText=!0,z.highlightFormatting&&(p.formatting="link")),X(p);if(se==="]"&&p.linkText){z.highlightFormatting&&(p.formatting="link");var ye=X(p);return p.linkText=!1,p.inline=p.f=v.match(/\(.*?\)| ?\[.*?\]/,!1)?c:N,ye}if(se==="<"&&v.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){p.f=p.inline=D,z.highlightFormatting&&(p.formatting="link");var ye=X(p);return ye?ye+=" ":ye="",ye+m.linkInline}if(se==="<"&&v.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){p.f=p.inline=D,z.highlightFormatting&&(p.formatting="link");var ye=X(p);return ye?ye+=" ":ye="",ye+m.linkEmail}if(z.xml&&se==="<"&&v.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ye=v.string.indexOf(">",v.pos);if(Ye!=-1){var mt=v.string.substring(v.start,Ye);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(mt)&&(p.md_inside=!0)}return v.backUp(1),p.htmlState=d.startState(F),j(v,p,te)}if(z.xml&&se==="<"&&v.match(/^\/\w*?>/))return p.md_inside=!1,"tag";if(se==="*"||se==="_"){for(var xe=1,je=v.pos==1?" ":v.string.charAt(v.pos-2);xe<3&&v.eat(se);)xe++;var rt=v.peek()||" ",lt=!/\s/.test(rt)&&(!y.test(rt)||/\s/.test(je)||y.test(je)),Ge=!/\s/.test(je)&&(!y.test(je)||/\s/.test(rt)||y.test(rt)),qe=null,K=null;if(xe%2&&(!p.em&<&&(se==="*"||!Ge||y.test(je))?qe=!0:p.em==se&&Ge&&(se==="*"||!lt||y.test(rt))&&(qe=!1)),xe>1&&(!p.strong&<&&(se==="*"||!Ge||y.test(je))?K=!0:p.strong==se&&Ge&&(se==="*"||!lt||y.test(rt))&&(K=!1)),K!=null||qe!=null){z.highlightFormatting&&(p.formatting=qe==null?"strong":K==null?"em":"strong em"),qe===!0&&(p.em=se),K===!0&&(p.strong=se);var fe=X(p);return qe===!1&&(p.em=!1),K===!1&&(p.strong=!1),fe}}else if(se===" "&&(v.eat("*")||v.eat("_"))){if(v.peek()===" ")return X(p);v.backUp(1)}if(z.strikethrough){if(se==="~"&&v.eatWhile(se)){if(p.strikethrough){z.highlightFormatting&&(p.formatting="strikethrough");var fe=X(p);return p.strikethrough=!1,fe}else if(v.match(/^[^\s]/,!1))return p.strikethrough=!0,z.highlightFormatting&&(p.formatting="strikethrough"),X(p)}else if(se===" "&&v.match("~~",!0)){if(v.peek()===" ")return X(p);v.backUp(2)}}if(z.emoji&&se===":"&&v.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){p.emoji=!0,z.highlightFormatting&&(p.formatting="emoji");var le=X(p);return p.emoji=!1,le}return se===" "&&(v.match(/^ +$/,!1)?p.trailingSpace++:p.trailingSpace&&(p.trailingSpaceNewLine=!0)),X(p)}function D(v,p){var ae=v.next();if(ae===">"){p.f=p.inline=N,z.highlightFormatting&&(p.formatting="link");var ge=X(p);return ge?ge+=" ":ge="",ge+m.linkInline}return v.match(/^[^>]+/,!0),m.linkInline}function c(v,p){if(v.eatSpace())return null;var ae=v.next();return ae==="("||ae==="["?(p.f=p.inline=q(ae==="("?")":"]"),z.highlightFormatting&&(p.formatting="link-string"),p.linkHref=!0,X(p)):"error"}var O={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function q(v){return function(p,ae){var ge=p.next();if(ge===v){ae.f=ae.inline=N,z.highlightFormatting&&(ae.formatting="link-string");var se=X(ae);return ae.linkHref=!1,se}return p.match(O[v]),ae.linkHref=!0,X(ae)}}function L(v,p){return v.match(/^([^\]\\]|\\.)*\]:/,!1)?(p.f=k,v.next(),z.highlightFormatting&&(p.formatting="link"),p.linkText=!0,X(p)):_(v,p,N)}function k(v,p){if(v.match("]:",!0)){p.f=p.inline=Z,z.highlightFormatting&&(p.formatting="link");var ae=X(p);return p.linkText=!1,ae}return v.match(/^([^\]\\]|\\.)+/,!0),m.linkText}function Z(v,p){return v.eatSpace()?null:(v.match(/^[^\s]+/,!0),v.peek()===void 0?p.linkTitle=!0:v.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),p.f=p.inline=N,m.linkHref+" url")}var G={startState:function(){return{f:oe,prevLine:{stream:null},thisLine:{stream:null},block:oe,htmlState:null,indentation:0,inline:N,text:Y,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(v){return{f:v.f,prevLine:v.prevLine,thisLine:v.thisLine,block:v.block,htmlState:v.htmlState&&d.copyState(F,v.htmlState),indentation:v.indentation,localMode:v.localMode,localState:v.localMode?d.copyState(v.localMode,v.localState):null,inline:v.inline,text:v.text,formatting:!1,linkText:v.linkText,linkTitle:v.linkTitle,linkHref:v.linkHref,code:v.code,em:v.em,strong:v.strong,strikethrough:v.strikethrough,emoji:v.emoji,header:v.header,setext:v.setext,hr:v.hr,taskList:v.taskList,list:v.list,listStack:v.listStack.slice(0),quote:v.quote,indentedCode:v.indentedCode,trailingSpace:v.trailingSpace,trailingSpaceNewLine:v.trailingSpaceNewLine,md_inside:v.md_inside,fencedEndRE:v.fencedEndRE}},token:function(v,p){if(p.formatting=!1,v!=p.thisLine.stream){if(p.header=0,p.hr=!1,v.match(/^\s*$/,!0))return re(p),null;if(p.prevLine=p.thisLine,p.thisLine={stream:v},p.taskList=!1,p.trailingSpace=0,p.trailingSpaceNewLine=!1,!p.localState&&(p.f=p.block,p.f!=te)){var ae=v.match(/^\s*/,!0)[0].replace(/\t/g,$).length;if(p.indentation=ae,p.indentationDiff=null,ae>0)return null}}return p.f(v,p)},innerMode:function(v){return v.block==te?{state:v.htmlState,mode:F}:v.localState?{state:v.localState,mode:v.localMode}:{state:v,mode:G}},indent:function(v,p,ae){return v.block==te&&F.indent?F.indent(v.htmlState,p,ae):v.localState&&v.localMode.indent?v.localMode.indent(v.localState,p,ae):d.Pass},blankLine:re,getType:X,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return G},"xml"),d.defineMIME("text/markdown","markdown"),d.defineMIME("text/x-markdown","markdown")})});var ls=Re((is,os)=>{(function(d){typeof is=="object"&&typeof os=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("mllike",function(R,z){var F={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},I=z.extraWords||{};for(var P in I)I.hasOwnProperty(P)&&(F[P]=z.extraWords[P]);var m=[];for(var B in F)m.push(B);d.registerHelper("hintWords","mllike",m);function C(b,g){var S=b.next();if(S==='"')return g.tokenize=A,g.tokenize(b,g);if(S==="{"&&b.eat("|"))return g.longString=!0,g.tokenize=h,g.tokenize(b,g);if(S==="("&&b.match(/^\*(?!\))/))return g.commentLevel++,g.tokenize=E,g.tokenize(b,g);if(S==="~"||S==="?")return b.eatWhile(/\w/),"variable-2";if(S==="`")return b.eatWhile(/\w/),"quote";if(S==="/"&&z.slashComments&&b.eat("/"))return b.skipToEnd(),"comment";if(/\d/.test(S))return S==="0"&&b.eat(/[bB]/)&&b.eatWhile(/[01]/),S==="0"&&b.eat(/[xX]/)&&b.eatWhile(/[0-9a-fA-F]/),S==="0"&&b.eat(/[oO]/)?b.eatWhile(/[0-7]/):(b.eatWhile(/[\d_]/),b.eat(".")&&b.eatWhile(/[\d]/),b.eat(/[eE]/)&&b.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(S))return"operator";if(/[\w\xa1-\uffff]/.test(S)){b.eatWhile(/[\w\xa1-\uffff]/);var T=b.current();return F.hasOwnProperty(T)?F[T]:"variable"}return null}function A(b,g){for(var S,T=!1,y=!1;(S=b.next())!=null;){if(S==='"'&&!y){T=!0;break}y=!y&&S==="\\"}return T&&!y&&(g.tokenize=C),"string"}function E(b,g){for(var S,T;g.commentLevel>0&&(T=b.next())!=null;)S==="("&&T==="*"&&g.commentLevel++,S==="*"&&T===")"&&g.commentLevel--,S=T;return g.commentLevel<=0&&(g.tokenize=C),"comment"}function h(b,g){for(var S,T;g.longString&&(T=b.next())!=null;)S==="|"&&T==="}"&&(g.longString=!1),S=T;return g.longString||(g.tokenize=C),"string"}return{startState:function(){return{tokenize:C,commentLevel:0,longString:!1}},token:function(b,g){return b.eatSpace()?null:g.tokenize(b,g)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:z.slashComments?"//":null}}),d.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),d.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),d.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})})});var us=Re((as,ss)=>{(function(d){typeof as=="object"&&typeof ss=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("nginx",function(R){function z(g){for(var S={},T=g.split(" "),y=0;y<T.length;++y)S[T[y]]=!0;return S}var F=z("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),I=z("http mail events server types location upstream charset_map limit_except if geo map"),P=z("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),m=R.indentUnit,B;function C(g,S){return B=S,g}function A(g,S){g.eatWhile(/[\w\$_]/);var T=g.current();if(F.propertyIsEnumerable(T))return"keyword";if(I.propertyIsEnumerable(T))return"variable-2";if(P.propertyIsEnumerable(T))return"string-2";var y=g.next();if(y=="@")return g.eatWhile(/[\w\\\-]/),C("meta",g.current());if(y=="/"&&g.eat("*"))return S.tokenize=E,E(g,S);if(y=="<"&&g.eat("!"))return S.tokenize=h,h(g,S);if(y=="=")C(null,"compare");else return(y=="~"||y=="|")&&g.eat("=")?C(null,"compare"):y=='"'||y=="'"?(S.tokenize=b(y),S.tokenize(g,S)):y=="#"?(g.skipToEnd(),C("comment","comment")):y=="!"?(g.match(/^\s*\w*/),C("keyword","important")):/\d/.test(y)?(g.eatWhile(/[\w.%]/),C("number","unit")):/[,.+>*\/]/.test(y)?C(null,"select-op"):/[;{}:\[\]]/.test(y)?C(null,y):(g.eatWhile(/[\w\\\-]/),C("variable","variable"))}function E(g,S){for(var T=!1,y;(y=g.next())!=null;){if(T&&y=="/"){S.tokenize=A;break}T=y=="*"}return C("comment","comment")}function h(g,S){for(var T=0,y;(y=g.next())!=null;){if(T>=2&&y==">"){S.tokenize=A;break}T=y=="-"?T+1:0}return C("comment","comment")}function b(g){return function(S,T){for(var y=!1,$;($=S.next())!=null&&!($==g&&!y);)y=!y&&$=="\\";return y||(T.tokenize=A),C("string","string")}}return{startState:function(g){return{tokenize:A,baseIndent:g||0,stack:[]}},token:function(g,S){if(g.eatSpace())return null;B=null;var T=S.tokenize(g,S),y=S.stack[S.stack.length-1];return B=="hash"&&y=="rule"?T="atom":T=="variable"&&(y=="rule"?T="number":(!y||y=="@media{")&&(T="tag")),y=="rule"&&/^[\{\};]$/.test(B)&&S.stack.pop(),B=="{"?y=="@media"?S.stack[S.stack.length-1]="@media{":S.stack.push("{"):B=="}"?S.stack.pop():B=="@media"?S.stack.push("@media"):y=="{"&&B!="comment"&&S.stack.push("rule"),T},indent:function(g,S){var T=g.stack.length;return/^\}/.test(S)&&(T-=g.stack[g.stack.length-1]=="rule"?2:1),g.baseIndent+T*m},electricChars:"}"}}),d.defineMIME("text/x-nginx-conf","nginx")})});var ds=Re((cs,fs)=>{(function(d){typeof cs=="object"&&typeof fs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("perl",function(){var P={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},m="string-2",B=/[goseximacplud]/;function C(h,b,g,S,T){return b.chain=null,b.style=null,b.tail=null,b.tokenize=function(y,$){for(var _=!1,j,U=0;j=y.next();){if(j===g[U]&&!_)return g[++U]!==void 0?($.chain=g[U],$.style=S,$.tail=T):T&&y.eatWhile(T),$.tokenize=E,S;_=!_&&j=="\\"}return S},b.tokenize(h,b)}function A(h,b,g){return b.tokenize=function(S,T){return S.string==g&&(T.tokenize=E),S.skipToEnd(),"string"},b.tokenize(h,b)}function E(h,b){if(h.eatSpace())return null;if(b.chain)return C(h,b,b.chain,b.style,b.tail);if(h.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(h.match(/^<<(?=[_a-zA-Z])/))return h.eatWhile(/\w/),A(h,b,h.current().substr(2));if(h.sol()&&h.match(/^\=item(?!\w)/))return A(h,b,"=cut");var g=h.next();if(g=='"'||g=="'"){if(z(h,3)=="<<"+g){var S=h.pos;h.eatWhile(/\w/);var T=h.current().substr(1);if(T&&h.eat(g))return A(h,b,T);h.pos=S}return C(h,b,[g],"string")}if(g=="q"){var y=R(h,-2);if(!(y&&/\w/.test(y))){if(y=R(h,0),y=="x"){if(y=R(h,1),y=="(")return I(h,2),C(h,b,[")"],m,B);if(y=="[")return I(h,2),C(h,b,["]"],m,B);if(y=="{")return I(h,2),C(h,b,["}"],m,B);if(y=="<")return I(h,2),C(h,b,[">"],m,B);if(/[\^'"!~\/]/.test(y))return I(h,1),C(h,b,[h.eat(y)],m,B)}else if(y=="q"){if(y=R(h,1),y=="(")return I(h,2),C(h,b,[")"],"string");if(y=="[")return I(h,2),C(h,b,["]"],"string");if(y=="{")return I(h,2),C(h,b,["}"],"string");if(y=="<")return I(h,2),C(h,b,[">"],"string");if(/[\^'"!~\/]/.test(y))return I(h,1),C(h,b,[h.eat(y)],"string")}else if(y=="w"){if(y=R(h,1),y=="(")return I(h,2),C(h,b,[")"],"bracket");if(y=="[")return I(h,2),C(h,b,["]"],"bracket");if(y=="{")return I(h,2),C(h,b,["}"],"bracket");if(y=="<")return I(h,2),C(h,b,[">"],"bracket");if(/[\^'"!~\/]/.test(y))return I(h,1),C(h,b,[h.eat(y)],"bracket")}else if(y=="r"){if(y=R(h,1),y=="(")return I(h,2),C(h,b,[")"],m,B);if(y=="[")return I(h,2),C(h,b,["]"],m,B);if(y=="{")return I(h,2),C(h,b,["}"],m,B);if(y=="<")return I(h,2),C(h,b,[">"],m,B);if(/[\^'"!~\/]/.test(y))return I(h,1),C(h,b,[h.eat(y)],m,B)}else if(/[\^'"!~\/(\[{<]/.test(y)){if(y=="(")return I(h,1),C(h,b,[")"],"string");if(y=="[")return I(h,1),C(h,b,["]"],"string");if(y=="{")return I(h,1),C(h,b,["}"],"string");if(y=="<")return I(h,1),C(h,b,[">"],"string");if(/[\^'"!~\/]/.test(y))return C(h,b,[h.eat(y)],"string")}}}if(g=="m"){var y=R(h,-2);if(!(y&&/\w/.test(y))&&(y=h.eat(/[(\[{<\^'"!~\/]/),y)){if(/[\^'"!~\/]/.test(y))return C(h,b,[y],m,B);if(y=="(")return C(h,b,[")"],m,B);if(y=="[")return C(h,b,["]"],m,B);if(y=="{")return C(h,b,["}"],m,B);if(y=="<")return C(h,b,[">"],m,B)}}if(g=="s"){var y=/[\/>\]})\w]/.test(R(h,-2));if(!y&&(y=h.eat(/[(\[{<\^'"!~\/]/),y))return y=="["?C(h,b,["]","]"],m,B):y=="{"?C(h,b,["}","}"],m,B):y=="<"?C(h,b,[">",">"],m,B):y=="("?C(h,b,[")",")"],m,B):C(h,b,[y,y],m,B)}if(g=="y"){var y=/[\/>\]})\w]/.test(R(h,-2));if(!y&&(y=h.eat(/[(\[{<\^'"!~\/]/),y))return y=="["?C(h,b,["]","]"],m,B):y=="{"?C(h,b,["}","}"],m,B):y=="<"?C(h,b,[">",">"],m,B):y=="("?C(h,b,[")",")"],m,B):C(h,b,[y,y],m,B)}if(g=="t"){var y=/[\/>\]})\w]/.test(R(h,-2));if(!y&&(y=h.eat("r"),y&&(y=h.eat(/[(\[{<\^'"!~\/]/),y)))return y=="["?C(h,b,["]","]"],m,B):y=="{"?C(h,b,["}","}"],m,B):y=="<"?C(h,b,[">",">"],m,B):y=="("?C(h,b,[")",")"],m,B):C(h,b,[y,y],m,B)}if(g=="`")return C(h,b,[g],"variable-2");if(g=="/")return/~\s*$/.test(z(h))?C(h,b,[g],m,B):"operator";if(g=="$"){var S=h.pos;if(h.eatWhile(/\d/)||h.eat("{")&&h.eatWhile(/\d/)&&h.eat("}"))return"variable-2";h.pos=S}if(/[$@%]/.test(g)){var S=h.pos;if(h.eat("^")&&h.eat(/[A-Z]/)||!/[@$%&]/.test(R(h,-2))&&h.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var y=h.current();if(P[y])return"variable-2"}h.pos=S}if(/[$@%&]/.test(g)&&(h.eatWhile(/[\w$]/)||h.eat("{")&&h.eatWhile(/[\w$]/)&&h.eat("}"))){var y=h.current();return P[y]?"variable-2":"variable"}if(g=="#"&&R(h,-2)!="$")return h.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(g)){var S=h.pos;if(h.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),P[h.current()])return"operator";h.pos=S}if(g=="_"&&h.pos==1){if(F(h,6)=="_END__")return C(h,b,["\0"],"comment");if(F(h,7)=="_DATA__")return C(h,b,["\0"],"variable-2");if(F(h,7)=="_C__")return C(h,b,["\0"],"string")}if(/\w/.test(g)){var S=h.pos;if(R(h,-2)=="{"&&(R(h,0)=="}"||h.eatWhile(/\w/)&&R(h,0)=="}"))return"string";h.pos=S}if(/[A-Z]/.test(g)){var $=R(h,-2),S=h.pos;if(h.eatWhile(/[A-Z_]/),/[\da-z]/.test(R(h,0)))h.pos=S;else{var y=P[h.current()];return y?(y[1]&&(y=y[0]),$!=":"?y==1?"keyword":y==2?"def":y==3?"atom":y==4?"operator":y==5?"variable-2":"meta":"meta"):"meta"}}if(/[a-zA-Z_]/.test(g)){var $=R(h,-2);h.eatWhile(/\w/);var y=P[h.current()];return y?(y[1]&&(y=y[0]),$!=":"?y==1?"keyword":y==2?"def":y==3?"atom":y==4?"operator":y==5?"variable-2":"meta":"meta"):"meta"}return null}return{startState:function(){return{tokenize:E,chain:null,style:null,tail:null}},token:function(h,b){return(b.tokenize||E)(h,b)},lineComment:"#"}}),d.registerHelper("wordChars","perl",/[\w$]/),d.defineMIME("text/x-perl","perl");function R(P,m){return P.string.charAt(P.pos+(m||0))}function z(P,m){if(m){var B=P.pos-m;return P.string.substr(B>=0?B:0,m)}else return P.string.substr(0,P.pos-1)}function F(P,m){var B=P.string.length,C=B-P.pos+1;return P.string.substr(P.pos,m&&m<B?m:C)}function I(P,m){var B=P.pos+m,C;B<=0?P.pos=0:B>=(C=P.string.length-1)?P.pos=C:P.pos=B}})});var ms=Re((ps,hs)=>{(function(d){typeof ps=="object"&&typeof hs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("pascal",function(){function R(A){for(var E={},h=A.split(" "),b=0;b<h.length;++b)E[h[b]]=!0;return E}var z=R("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),F={null:!0},I=/[+\-*&%=<>!?|\/]/;function P(A,E){var h=A.next();if(h=="#"&&E.startOfLine)return A.skipToEnd(),"meta";if(h=='"'||h=="'")return E.tokenize=m(h),E.tokenize(A,E);if(h=="("&&A.eat("*"))return E.tokenize=B,B(A,E);if(h=="{")return E.tokenize=C,C(A,E);if(/[\[\]\(\),;\:\.]/.test(h))return null;if(/\d/.test(h))return A.eatWhile(/[\w\.]/),"number";if(h=="/"&&A.eat("/"))return A.skipToEnd(),"comment";if(I.test(h))return A.eatWhile(I),"operator";A.eatWhile(/[\w\$_]/);var b=A.current();return z.propertyIsEnumerable(b)?"keyword":F.propertyIsEnumerable(b)?"atom":"variable"}function m(A){return function(E,h){for(var b=!1,g,S=!1;(g=E.next())!=null;){if(g==A&&!b){S=!0;break}b=!b&&g=="\\"}return(S||!b)&&(h.tokenize=null),"string"}}function B(A,E){for(var h=!1,b;b=A.next();){if(b==")"&&h){E.tokenize=null;break}h=b=="*"}return"comment"}function C(A,E){for(var h;h=A.next();)if(h=="}"){E.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(A,E){if(A.eatSpace())return null;var h=(E.tokenize||P)(A,E);return h=="comment"||h=="meta",h},electricChars:"{}"}}),d.defineMIME("text/x-pascal","pascal")})});var ys=Re((gs,vs)=>{(function(d){typeof gs=="object"&&typeof vs=="object"?d(We(),_o(),xo()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],d):d(CodeMirror)})(function(d){"use strict";function R(A){for(var E={},h=A.split(" "),b=0;b<h.length;++b)E[h[b]]=!0;return E}function z(A,E,h){return A.length==0?F(E):function(b,g){for(var S=A[0],T=0;T<S.length;T++)if(b.match(S[T][0]))return g.tokenize=z(A.slice(1),E),S[T][1];return g.tokenize=F(E,h),"string"}}function F(A,E){return function(h,b){return I(h,b,A,E)}}function I(A,E,h,b){if(b!==!1&&A.match("${",!1)||A.match("{$",!1))return E.tokenize=null,"string";if(b!==!1&&A.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return A.match("[",!1)&&(E.tokenize=z([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],h,b)),A.match(/^->\w/,!1)&&(E.tokenize=z([[["->",null]],[[/[\w]+/,"variable"]]],h,b)),"variable-2";for(var g=!1;!A.eol()&&(g||b===!1||!A.match("{$",!1)&&!A.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!g&&A.match(h)){E.tokenize=null,E.tokStack.pop(),E.tokStack.pop();break}g=A.next()=="\\"&&!g}return"string"}var P="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",m="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",B="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";d.registerHelper("hintWords","php",[P,m,B].join(" ").split(" ")),d.registerHelper("wordChars","php",/[\w$]/);var C={name:"clike",helperType:"php",keywords:R(P),blockKeywords:R("catch do else elseif for foreach if switch try while finally"),defKeywords:R("class enum function interface namespace trait"),atoms:R(m),builtin:R(B),multiLineStrings:!0,hooks:{$:function(A){return A.eatWhile(/[\w\$_]/),"variable-2"},"<":function(A,E){var h;if(h=A.match(/^<<\s*/)){var b=A.eat(/['"]/);A.eatWhile(/[\w\.]/);var g=A.current().slice(h[0].length+(b?2:1));if(b&&A.eat(b),g)return(E.tokStack||(E.tokStack=[])).push(g,0),E.tokenize=F(g,b!="'"),"string"}return!1},"#":function(A){for(;!A.eol()&&!A.match("?>",!1);)A.next();return"comment"},"/":function(A){if(A.eat("/")){for(;!A.eol()&&!A.match("?>",!1);)A.next();return"comment"}return!1},'"':function(A,E){return(E.tokStack||(E.tokStack=[])).push('"',0),E.tokenize=F('"'),"string"},"{":function(A,E){return E.tokStack&&E.tokStack.length&&E.tokStack[E.tokStack.length-1]++,!1},"}":function(A,E){return E.tokStack&&E.tokStack.length>0&&!--E.tokStack[E.tokStack.length-1]&&(E.tokenize=F(E.tokStack[E.tokStack.length-2])),!1}}};d.defineMode("php",function(A,E){var h=d.getMode(A,E&&E.htmlMode||"text/html"),b=d.getMode(A,C);function g(S,T){var y=T.curMode==b;if(S.sol()&&T.pending&&T.pending!='"'&&T.pending!="'"&&(T.pending=null),y)return y&&T.php.tokenize==null&&S.match("?>")?(T.curMode=h,T.curState=T.html,T.php.context.prev||(T.php=null),"meta"):b.token(S,T.curState);if(S.match(/^<\?\w*/))return T.curMode=b,T.php||(T.php=d.startState(b,h.indent(T.html,"",""))),T.curState=T.php,"meta";if(T.pending=='"'||T.pending=="'"){for(;!S.eol()&&S.next()!=T.pending;);var $="string"}else if(T.pending&&S.pos<T.pending.end){S.pos=T.pending.end;var $=T.pending.style}else var $=h.token(S,T.curState);T.pending&&(T.pending=null);var _=S.current(),j=_.search(/<\?/),U;return j!=-1&&($=="string"&&(U=_.match(/[\'\"]$/))&&!/\?>/.test(_)?T.pending=U[0]:T.pending={end:S.pos,style:$},S.backUp(_.length-j)),$}return{startState:function(){var S=d.startState(h),T=E.startOpen?d.startState(b):null;return{html:S,php:T,curMode:E.startOpen?b:h,curState:E.startOpen?T:S,pending:null}},copyState:function(S){var T=S.html,y=d.copyState(h,T),$=S.php,_=$&&d.copyState(b,$),j;return S.curMode==h?j=y:j=_,{html:y,php:_,curMode:S.curMode,curState:j,pending:S.pending}},token:g,indent:function(S,T,y){return S.curMode!=b&&/^\s*<\//.test(T)||S.curMode==b&&/^\?>/.test(T)?h.indent(S.html,T,y):S.curMode.indent(S.curState,T,y)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(S){return{state:S.curState,mode:S.curMode}}}},"htmlmixed","clike"),d.defineMIME("application/x-httpd-php","php"),d.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),d.defineMIME("text/x-php",C)})});var ks=Re((bs,xs)=>{(function(d){"use strict";typeof bs=="object"&&typeof xs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(window.CodeMirror)})(function(d){"use strict";d.defineMode("powershell",function(){function R(D,c){c=c||{};for(var O=c.prefix!==void 0?c.prefix:"^",q=c.suffix!==void 0?c.suffix:"\\b",L=0;L<D.length;L++)D[L]instanceof RegExp?D[L]=D[L].source:D[L]=D[L].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(O+"("+D.join("|")+")"+q,"i")}var z="(?=[^A-Za-z\\d\\-_]|$)",F=/[\w\-:]/,I=R([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:z}),P=/[\[\]{},;`\\\.]|@[({]/,m=R(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),B=/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/,C=R([m,B],{suffix:""}),A=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,E=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,h=/[A-Z]:|%|\?/i,b=R([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),g=R([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),S=R([h,b,g],{suffix:z}),T={keyword:I,number:A,operator:C,builtin:S,punctuation:P,identifier:E};function y(D,c){var O=c.returnStack[c.returnStack.length-1];if(O&&O.shouldReturnFrom(c))return c.tokenize=O.tokenize,c.returnStack.pop(),c.tokenize(D,c);if(D.eatSpace())return null;if(D.eat("("))return c.bracketNesting+=1,"punctuation";if(D.eat(")"))return c.bracketNesting-=1,"punctuation";for(var q in T)if(D.match(T[q]))return q;var L=D.next();if(L==="'")return $(D,c);if(L==="$")return V(D,c);if(L==='"')return _(D,c);if(L==="<"&&D.eat("#"))return c.tokenize=te,te(D,c);if(L==="#")return D.skipToEnd(),"comment";if(L==="@"){var k=D.eat(/["']/);if(k&&D.eol())return c.tokenize=Y,c.startQuote=k[0],Y(D,c);if(D.eol())return"error";if(D.peek().match(/[({]/))return"punctuation";if(D.peek().match(F))return V(D,c)}return"error"}function $(D,c){for(var O;(O=D.peek())!=null;)if(D.next(),O==="'"&&!D.eat("'"))return c.tokenize=y,"string";return"error"}function _(D,c){for(var O;(O=D.peek())!=null;){if(O==="$")return c.tokenize=j,"string";if(D.next(),O==="`"){D.next();continue}if(O==='"'&&!D.eat('"'))return c.tokenize=y,"string"}return"error"}function j(D,c){return oe(D,c,_)}function U(D,c){return c.tokenize=Y,c.startQuote='"',Y(D,c)}function re(D,c){return oe(D,c,U)}function oe(D,c,O){if(D.match("$(")){var q=c.bracketNesting;return c.returnStack.push({shouldReturnFrom:function(L){return L.bracketNesting===q},tokenize:O}),c.tokenize=y,c.bracketNesting+=1,"punctuation"}else return D.next(),c.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:O}),c.tokenize=V,c.tokenize(D,c)}function te(D,c){for(var O=!1,q;(q=D.next())!=null;){if(O&&q==">"){c.tokenize=y;break}O=q==="#"}return"comment"}function V(D,c){var O=D.peek();return D.eat("{")?(c.tokenize=X,X(D,c)):O!=null&&O.match(F)?(D.eatWhile(F),c.tokenize=y,"variable-2"):(c.tokenize=y,"error")}function X(D,c){for(var O;(O=D.next())!=null;)if(O==="}"){c.tokenize=y;break}return"variable-2"}function Y(D,c){var O=c.startQuote;if(D.sol()&&D.match(new RegExp(O+"@")))c.tokenize=y;else if(O==='"')for(;!D.eol();){var q=D.peek();if(q==="$")return c.tokenize=re,"string";D.next(),q==="`"&&D.next()}else D.skipToEnd();return"string"}var N={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:y}},token:function(D,c){return c.tokenize(D,c)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"};return N}),d.defineMIME("application/x-powershell","powershell")})});var Ss=Re((_s,ws)=>{(function(d){typeof _s=="object"&&typeof ws=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("properties",function(){return{token:function(R,z){var F=R.sol()||z.afterSection,I=R.eol();if(z.afterSection=!1,F&&(z.nextMultiline?(z.inMultiline=!0,z.nextMultiline=!1):z.position="def"),I&&!z.nextMultiline&&(z.inMultiline=!1,z.position="def"),F)for(;R.eatSpace(););var P=R.next();return F&&(P==="#"||P==="!"||P===";")?(z.position="comment",R.skipToEnd(),"comment"):F&&P==="["?(z.afterSection=!0,R.skipTo("]"),R.eat("]"),"header"):P==="="||P===":"?(z.position="quote",null):(P==="\\"&&z.position==="quote"&&R.eol()&&(z.nextMultiline=!0),z.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),d.defineMIME("text/x-properties","properties"),d.defineMIME("text/x-ini","properties")})});var Ls=Re((Ts,Cs)=>{(function(d){typeof Ts=="object"&&typeof Cs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";function R(B){return new RegExp("^(("+B.join(")|(")+"))\\b")}var z=R(["and","or","not","is"]),F=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],I=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];d.registerHelper("hintWords","python",F.concat(I));function P(B){return B.scopes[B.scopes.length-1]}d.defineMode("python",function(B,C){for(var A="error",E=C.delimiters||C.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,h=[C.singleOperators,C.doubleOperators,C.doubleDelimiters,C.tripleDelimiters,C.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],b=0;b<h.length;b++)h[b]||h.splice(b--,1);var g=C.hangingIndent||B.indentUnit,S=F,T=I;C.extra_keywords!=null&&(S=S.concat(C.extra_keywords)),C.extra_builtins!=null&&(T=T.concat(C.extra_builtins));var y=!(C.version&&Number(C.version)<3);if(y){var $=C.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;S=S.concat(["nonlocal","False","True","None","async","await"]),T=T.concat(["ascii","bytes","exec","print"]);var _=new RegExp(`^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|"{3}|['"]))`,"i")}else{var $=C.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;S=S.concat(["exec","print"]),T=T.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);var _=new RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`,"i")}var j=R(S),U=R(T);function re(O,q){var L=O.sol()&&q.lastToken!="\\";if(L&&(q.indent=O.indentation()),L&&P(q).type=="py"){var k=P(q).offset;if(O.eatSpace()){var Z=O.indentation();return Z>k?X(q):Z<k&&N(O,q)&&O.peek()!="#"&&(q.errorToken=!0),null}else{var G=oe(O,q);return k>0&&N(O,q)&&(G+=" "+A),G}}return oe(O,q)}function oe(O,q,L){if(O.eatSpace())return null;if(!L&&O.match(/^#.*/))return"comment";if(O.match(/^[0-9\.]/,!1)){var k=!1;if(O.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(k=!0),O.match(/^[\d_]+\.\d*/)&&(k=!0),O.match(/^\.\d+/)&&(k=!0),k)return O.eat(/J/i),"number";var Z=!1;if(O.match(/^0x[0-9a-f_]+/i)&&(Z=!0),O.match(/^0b[01_]+/i)&&(Z=!0),O.match(/^0o[0-7_]+/i)&&(Z=!0),O.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(O.eat(/J/i),Z=!0),O.match(/^0(?![\dx])/i)&&(Z=!0),Z)return O.eat(/L/i),"number"}if(O.match(_)){var G=O.current().toLowerCase().indexOf("f")!==-1;return G?(q.tokenize=te(O.current(),q.tokenize),q.tokenize(O,q)):(q.tokenize=V(O.current(),q.tokenize),q.tokenize(O,q))}for(var v=0;v<h.length;v++)if(O.match(h[v]))return"operator";return O.match(E)?"punctuation":q.lastToken=="."&&O.match($)?"property":O.match(j)||O.match(z)?"keyword":O.match(U)?"builtin":O.match(/^(self|cls)\b/)?"variable-2":O.match($)?q.lastToken=="def"||q.lastToken=="class"?"def":"variable":(O.next(),L?null:A)}function te(O,q){for(;"rubf".indexOf(O.charAt(0).toLowerCase())>=0;)O=O.substr(1);var L=O.length==1,k="string";function Z(v){return function(p,ae){var ge=oe(p,ae,!0);return ge=="punctuation"&&(p.current()=="{"?ae.tokenize=Z(v+1):p.current()=="}"&&(v>1?ae.tokenize=Z(v-1):ae.tokenize=G)),ge}}function G(v,p){for(;!v.eol();)if(v.eatWhile(/[^'"\{\}\\]/),v.eat("\\")){if(v.next(),L&&v.eol())return k}else{if(v.match(O))return p.tokenize=q,k;if(v.match("{{"))return k;if(v.match("{",!1))return p.tokenize=Z(0),v.current()?k:p.tokenize(v,p);if(v.match("}}"))return k;if(v.match("}"))return A;v.eat(/['"]/)}if(L){if(C.singleLineStringErrors)return A;p.tokenize=q}return k}return G.isString=!0,G}function V(O,q){for(;"rubf".indexOf(O.charAt(0).toLowerCase())>=0;)O=O.substr(1);var L=O.length==1,k="string";function Z(G,v){for(;!G.eol();)if(G.eatWhile(/[^'"\\]/),G.eat("\\")){if(G.next(),L&&G.eol())return k}else{if(G.match(O))return v.tokenize=q,k;G.eat(/['"]/)}if(L){if(C.singleLineStringErrors)return A;v.tokenize=q}return k}return Z.isString=!0,Z}function X(O){for(;P(O).type!="py";)O.scopes.pop();O.scopes.push({offset:P(O).offset+B.indentUnit,type:"py",align:null})}function Y(O,q,L){var k=O.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:O.column()+1;q.scopes.push({offset:q.indent+g,type:L,align:k})}function N(O,q){for(var L=O.indentation();q.scopes.length>1&&P(q).offset>L;){if(P(q).type!="py")return!0;q.scopes.pop()}return P(q).offset!=L}function D(O,q){O.sol()&&(q.beginningOfLine=!0,q.dedent=!1);var L=q.tokenize(O,q),k=O.current();if(q.beginningOfLine&&k=="@")return O.match($,!1)?"meta":y?"operator":A;if(/\S/.test(k)&&(q.beginningOfLine=!1),(L=="variable"||L=="builtin")&&q.lastToken=="meta"&&(L="meta"),(k=="pass"||k=="return")&&(q.dedent=!0),k=="lambda"&&(q.lambda=!0),k==":"&&!q.lambda&&P(q).type=="py"&&O.match(/^\s*(?:#|$)/,!1)&&X(q),k.length==1&&!/string|comment/.test(L)){var Z="[({".indexOf(k);if(Z!=-1&&Y(O,q,"])}".slice(Z,Z+1)),Z="])}".indexOf(k),Z!=-1)if(P(q).type==k)q.indent=q.scopes.pop().offset-g;else return A}return q.dedent&&O.eol()&&P(q).type=="py"&&q.scopes.length>1&&q.scopes.pop(),L}var c={startState:function(O){return{tokenize:re,scopes:[{offset:O||0,type:"py",align:null}],indent:O||0,lastToken:null,lambda:!1,dedent:0}},token:function(O,q){var L=q.errorToken;L&&(q.errorToken=!1);var k=D(O,q);return k&&k!="comment"&&(q.lastToken=k=="keyword"||k=="punctuation"?O.current():k),k=="punctuation"&&(k=null),O.eol()&&q.lambda&&(q.lambda=!1),L?k+" "+A:k},indent:function(O,q){if(O.tokenize!=re)return O.tokenize.isString?d.Pass:0;var L=P(O),k=L.type==q.charAt(0)||L.type=="py"&&!O.dedent&&/^(else:|elif |except |finally:)/.test(q);return L.align!=null?L.align-(k?1:0):L.offset-(k?g:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return c}),d.defineMIME("text/x-python","python");var m=function(B){return B.split(" ")};d.defineMIME("text/x-cython",{name:"python",extra_keywords:m("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})});var zs=Re((Es,Ms)=>{(function(d){typeof Es=="object"&&typeof Ms=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";function R(C){for(var A={},E=0,h=C.length;E<h;++E)A[C[E]]=!0;return A}var z=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],F=R(z),I=R(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),P=R(["end","until"]),m={"[":"]","{":"}","(":")"},B={"]":"[","}":"{",")":"("};d.defineMode("ruby",function(C){var A;function E(_,j,U){return U.tokenize.push(_),_(j,U)}function h(_,j){if(_.sol()&&_.match("=begin")&&_.eol())return j.tokenize.push($),"comment";if(_.eatSpace())return null;var U=_.next(),re;if(U=="`"||U=="'"||U=='"')return E(T(U,"string",U=='"'||U=="`"),_,j);if(U=="/")return b(_)?E(T(U,"string-2",!0),_,j):"operator";if(U=="%"){var oe="string",te=!0;_.eat("s")?oe="atom":_.eat(/[WQ]/)?oe="string":_.eat(/[r]/)?oe="string-2":_.eat(/[wxq]/)&&(oe="string",te=!1);var V=_.eat(/[^\w\s=]/);return V?(m.propertyIsEnumerable(V)&&(V=m[V]),E(T(V,oe,te,!0),_,j)):"operator"}else{if(U=="#")return _.skipToEnd(),"comment";if(U=="<"&&(re=_.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return E(y(re[2],re[1]),_,j);if(U=="0")return _.eat("x")?_.eatWhile(/[\da-fA-F]/):_.eat("b")?_.eatWhile(/[01]/):_.eatWhile(/[0-7]/),"number";if(/\d/.test(U))return _.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if(U=="?"){for(;_.match(/^\\[CM]-/););return _.eat("\\")?_.eatWhile(/\w/):_.next(),"string"}else{if(U==":")return _.eat("'")?E(T("'","atom",!1),_,j):_.eat('"')?E(T('"',"atom",!0),_,j):_.eat(/[\<\>]/)?(_.eat(/[\<\>]/),"atom"):_.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":_.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(_.eatWhile(/[\w$\xa1-\uffff]/),_.eat(/[\?\!\=]/),"atom"):"operator";if(U=="@"&&_.match(/^@?[a-zA-Z_\xa1-\uffff]/))return _.eat("@"),_.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(U=="$")return _.eat(/[a-zA-Z_]/)?_.eatWhile(/[\w]/):_.eat(/\d/)?_.eat(/\d/):_.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(U))return _.eatWhile(/[\w\xa1-\uffff]/),_.eat(/[\?\!]/),_.eat(":")?"atom":"ident";if(U=="|"&&(j.varList||j.lastTok=="{"||j.lastTok=="do"))return A="|",null;if(/[\(\)\[\]{}\\;]/.test(U))return A=U,null;if(U=="-"&&_.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(U)){var X=_.eatWhile(/[=+\-\/*:\.^%<>~|]/);return U=="."&&!X&&(A="."),"operator"}else return null}}}function b(_){for(var j=_.pos,U=0,re,oe=!1,te=!1;(re=_.next())!=null;)if(te)te=!1;else{if("[{(".indexOf(re)>-1)U++;else if("]})".indexOf(re)>-1){if(U--,U<0)break}else if(re=="/"&&U==0){oe=!0;break}te=re=="\\"}return _.backUp(_.pos-j),oe}function g(_){return _||(_=1),function(j,U){if(j.peek()=="}"){if(_==1)return U.tokenize.pop(),U.tokenize[U.tokenize.length-1](j,U);U.tokenize[U.tokenize.length-1]=g(_-1)}else j.peek()=="{"&&(U.tokenize[U.tokenize.length-1]=g(_+1));return h(j,U)}}function S(){var _=!1;return function(j,U){return _?(U.tokenize.pop(),U.tokenize[U.tokenize.length-1](j,U)):(_=!0,h(j,U))}}function T(_,j,U,re){return function(oe,te){var V=!1,X;for(te.context.type==="read-quoted-paused"&&(te.context=te.context.prev,oe.eat("}"));(X=oe.next())!=null;){if(X==_&&(re||!V)){te.tokenize.pop();break}if(U&&X=="#"&&!V){if(oe.eat("{")){_=="}"&&(te.context={prev:te.context,type:"read-quoted-paused"}),te.tokenize.push(g());break}else if(/[@\$]/.test(oe.peek())){te.tokenize.push(S());break}}V=!V&&X=="\\"}return j}}function y(_,j){return function(U,re){return j&&U.eatSpace(),U.match(_)?re.tokenize.pop():U.skipToEnd(),"string"}}function $(_,j){return _.sol()&&_.match("=end")&&_.eol()&&j.tokenize.pop(),_.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[h],indented:0,context:{type:"top",indented:-C.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(_,j){A=null,_.sol()&&(j.indented=_.indentation());var U=j.tokenize[j.tokenize.length-1](_,j),re,oe=A;if(U=="ident"){var te=_.current();U=j.lastTok=="."?"property":F.propertyIsEnumerable(_.current())?"keyword":/^[A-Z]/.test(te)?"tag":j.lastTok=="def"||j.lastTok=="class"||j.varList?"def":"variable",U=="keyword"&&(oe=te,I.propertyIsEnumerable(te)?re="indent":P.propertyIsEnumerable(te)?re="dedent":((te=="if"||te=="unless")&&_.column()==_.indentation()||te=="do"&&j.context.indented<j.indented)&&(re="indent"))}return(A||U&&U!="comment")&&(j.lastTok=oe),A=="|"&&(j.varList=!j.varList),re=="indent"||/[\(\[\{]/.test(A)?j.context={prev:j.context,type:A||U,indented:j.indented}:(re=="dedent"||/[\)\]\}]/.test(A))&&j.context.prev&&(j.context=j.context.prev),_.eol()&&(j.continuedLine=A=="\\"||U=="operator"),U},indent:function(_,j){if(_.tokenize[_.tokenize.length-1]!=h)return d.Pass;var U=j&&j.charAt(0),re=_.context,oe=re.type==B[U]||re.type=="keyword"&&/^(?:end|until|else|elsif|when|rescue)\b/.test(j);return re.indented+(oe?0:C.indentUnit)+(_.continuedLine?C.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}}),d.defineMIME("text/x-ruby","ruby"),d.registerHelper("hintWords","ruby",z)})});var Fs=Re((As,Ds)=>{(function(d){typeof As=="object"&&typeof Ds=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineSimpleMode=function(E,h){d.defineMode(E,function(b){return d.simpleMode(b,h)})},d.simpleMode=function(E,h){R(h,"start");var b={},g=h.meta||{},S=!1;for(var T in h)if(T!=g&&h.hasOwnProperty(T))for(var y=b[T]=[],$=h[T],_=0;_<$.length;_++){var j=$[_];y.push(new I(j,h)),(j.indent||j.dedent)&&(S=!0)}var U={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:S?[]:null}},copyState:function(oe){var te={state:oe.state,pending:oe.pending,local:oe.local,localState:null,indent:oe.indent&&oe.indent.slice(0)};oe.localState&&(te.localState=d.copyState(oe.local.mode,oe.localState)),oe.stack&&(te.stack=oe.stack.slice(0));for(var V=oe.persistentStates;V;V=V.next)te.persistentStates={mode:V.mode,spec:V.spec,state:V.state==oe.localState?te.localState:d.copyState(V.mode,V.state),next:te.persistentStates};return te},token:P(b,E),innerMode:function(oe){return oe.local&&{mode:oe.local.mode,state:oe.localState}},indent:A(b,g)};if(g)for(var re in g)g.hasOwnProperty(re)&&(U[re]=g[re]);return U};function R(E,h){if(!E.hasOwnProperty(h))throw new Error("Undefined state "+h+" in simple mode")}function z(E,h){if(!E)return/(?:)/;var b="";return E instanceof RegExp?(E.ignoreCase&&(b="i"),E.unicode&&(b+="u"),E=E.source):E=String(E),new RegExp((h===!1?"":"^")+"(?:"+E+")",b)}function F(E){if(!E)return null;if(E.apply)return E;if(typeof E=="string")return E.replace(/\./g," ");for(var h=[],b=0;b<E.length;b++)h.push(E[b]&&E[b].replace(/\./g," "));return h}function I(E,h){(E.next||E.push)&&R(h,E.next||E.push),this.regex=z(E.regex),this.token=F(E.token),this.data=E}function P(E,h){return function(b,g){if(g.pending){var S=g.pending.shift();return g.pending.length==0&&(g.pending=null),b.pos+=S.text.length,S.token}if(g.local)if(g.local.end&&b.match(g.local.end)){var T=g.local.endToken||null;return g.local=g.localState=null,T}else{var T=g.local.mode.token(b,g.localState),y;return g.local.endScan&&(y=g.local.endScan.exec(b.current()))&&(b.pos=b.start+y.index),T}for(var $=E[g.state],_=0;_<$.length;_++){var j=$[_],U=(!j.data.sol||b.sol())&&b.match(j.regex);if(U){j.data.next?g.state=j.data.next:j.data.push?((g.stack||(g.stack=[])).push(g.state),g.state=j.data.push):j.data.pop&&g.stack&&g.stack.length&&(g.state=g.stack.pop()),j.data.mode&&B(h,g,j.data.mode,j.token),j.data.indent&&g.indent.push(b.indentation()+h.indentUnit),j.data.dedent&&g.indent.pop();var re=j.token;if(re&&re.apply&&(re=re(U)),U.length>2&&j.token&&typeof j.token!="string"){for(var oe=2;oe<U.length;oe++)U[oe]&&(g.pending||(g.pending=[])).push({text:U[oe],token:j.token[oe-1]});return b.backUp(U[0].length-(U[1]?U[1].length:0)),re[0]}else return re&&re.join?re[0]:re}}return b.next(),null}}function m(E,h){if(E===h)return!0;if(!E||typeof E!="object"||!h||typeof h!="object")return!1;var b=0;for(var g in E)if(E.hasOwnProperty(g)){if(!h.hasOwnProperty(g)||!m(E[g],h[g]))return!1;b++}for(var g in h)h.hasOwnProperty(g)&&b--;return b==0}function B(E,h,b,g){var S;if(b.persistent)for(var T=h.persistentStates;T&&!S;T=T.next)(b.spec?m(b.spec,T.spec):b.mode==T.mode)&&(S=T);var y=S?S.mode:b.mode||d.getMode(E,b.spec),$=S?S.state:d.startState(y);b.persistent&&!S&&(h.persistentStates={mode:y,spec:b.spec,state:$,next:h.persistentStates}),h.localState=$,h.local={mode:y,end:b.end&&z(b.end),endScan:b.end&&b.forceEnd!==!1&&z(b.end,!1),endToken:g&&g.join?g[g.length-1]:g}}function C(E,h){for(var b=0;b<h.length;b++)if(h[b]===E)return!0}function A(E,h){return function(b,g,S){if(b.local&&b.local.mode.indent)return b.local.mode.indent(b.localState,g,S);if(b.indent==null||b.local||h.dontIndentStates&&C(b.state,h.dontIndentStates)>-1)return d.Pass;var T=b.indent.length-1,y=E[b.state];e:for(;;){for(var $=0;$<y.length;$++){var _=y[$];if(_.data.dedent&&_.data.dedentIfLineStart!==!1){var j=_.regex.exec(g);if(j&&j[0]){T--,(_.next||_.push)&&(y=E[_.next||_.push]),g=g.slice(j[0].length);continue e}}}break}return T<0?0:b.indent[T]}}})});var Ps=Re((Is,Os)=>{(function(d){typeof Is=="object"&&typeof Os=="object"?d(We(),Fs()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],d):d(CodeMirror)})(function(d){"use strict";d.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),d.defineMIME("text/x-rustsrc","rust"),d.defineMIME("text/rust","rust")})});var Rs=Re((Ns,qs)=>{(function(d){typeof Ns=="object"&&typeof qs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("shell",function(){var R={};function z(b,g){for(var S=0;S<g.length;S++)R[g[S]]=b}var F=["true","false"],I=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],P=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];d.registerHelper("hintWords","shell",F.concat(I,P)),z("atom",F),z("keyword",I),z("builtin",P);function m(b,g){if(b.eatSpace())return null;var S=b.sol(),T=b.next();if(T==="\\")return b.next(),null;if(T==="'"||T==='"'||T==="`")return g.tokens.unshift(B(T,T==="`"?"quote":"string")),h(b,g);if(T==="#")return S&&b.eat("!")?(b.skipToEnd(),"meta"):(b.skipToEnd(),"comment");if(T==="$")return g.tokens.unshift(A),h(b,g);if(T==="+"||T==="=")return"operator";if(T==="-")return b.eat("-"),b.eatWhile(/\w/),"attribute";if(T=="<"){if(b.match("<<"))return"operator";var y=b.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(y)return g.tokens.unshift(E(y[1])),"string-2"}if(/\d/.test(T)&&(b.eatWhile(/\d/),b.eol()||!/\w/.test(b.peek())))return"number";b.eatWhile(/[\w-]/);var $=b.current();return b.peek()==="="&&/\w+/.test($)?"def":R.hasOwnProperty($)?R[$]:null}function B(b,g){var S=b=="("?")":b=="{"?"}":b;return function(T,y){for(var $,_=!1;($=T.next())!=null;){if($===S&&!_){y.tokens.shift();break}else if($==="$"&&!_&&b!=="'"&&T.peek()!=S){_=!0,T.backUp(1),y.tokens.unshift(A);break}else{if(!_&&b!==S&&$===b)return y.tokens.unshift(B(b,g)),h(T,y);if(!_&&/['"]/.test($)&&!/['"]/.test(b)){y.tokens.unshift(C($,"string")),T.backUp(1);break}}_=!_&&$==="\\"}return g}}function C(b,g){return function(S,T){return T.tokens[0]=B(b,g),S.next(),h(S,T)}}var A=function(b,g){g.tokens.length>1&&b.eat("$");var S=b.next();return/['"({]/.test(S)?(g.tokens[0]=B(S,S=="("?"quote":S=="{"?"def":"string"),h(b,g)):(/\d/.test(S)||b.eatWhile(/\w/),g.tokens.shift(),"def")};function E(b){return function(g,S){return g.sol()&&g.string==b&&S.tokens.shift(),g.skipToEnd(),"string-2"}}function h(b,g){return(g.tokens[0]||m)(b,g)}return{startState:function(){return{tokens:[]}},token:function(b,g){return h(b,g)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),d.defineMIME("text/x-sh","shell"),d.defineMIME("application/x-sh","shell")})});var js=Re((Ws,Bs)=>{(function(d){typeof Ws=="object"&&typeof Bs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("sql",function(C,A){var E=A.client||{},h=A.atoms||{false:!0,true:!0,null:!0},b=A.builtin||m(B),g=A.keywords||m(P),S=A.operatorChars||/^[*+\-%<>!=&|~^\/]/,T=A.support||{},y=A.hooks||{},$=A.dateSQL||{date:!0,time:!0,timestamp:!0},_=A.backslashStringEscapes!==!1,j=A.brackets||/^[\{}\(\)\[\]]/,U=A.punctuation||/^[;.,:]/;function re(Y,N){var D=Y.next();if(y[D]){var c=y[D](Y,N);if(c!==!1)return c}if(T.hexNumber&&(D=="0"&&Y.match(/^[xX][0-9a-fA-F]+/)||(D=="x"||D=="X")&&Y.match(/^'[0-9a-fA-F]+'/)))return"number";if(T.binaryNumber&&((D=="b"||D=="B")&&Y.match(/^'[01]+'/)||D=="0"&&Y.match(/^b[01]+/)))return"number";if(D.charCodeAt(0)>47&&D.charCodeAt(0)<58)return Y.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),T.decimallessFloat&&Y.match(/^\.(?!\.)/),"number";if(D=="?"&&(Y.eatSpace()||Y.eol()||Y.eat(";")))return"variable-3";if(D=="'"||D=='"'&&T.doubleQuote)return N.tokenize=oe(D),N.tokenize(Y,N);if((T.nCharCast&&(D=="n"||D=="N")||T.charsetCast&&D=="_"&&Y.match(/[a-z][a-z0-9]*/i))&&(Y.peek()=="'"||Y.peek()=='"'))return"keyword";if(T.escapeConstant&&(D=="e"||D=="E")&&(Y.peek()=="'"||Y.peek()=='"'&&T.doubleQuote))return N.tokenize=function(q,L){return(L.tokenize=oe(q.next(),!0))(q,L)},"keyword";if(T.commentSlashSlash&&D=="/"&&Y.eat("/"))return Y.skipToEnd(),"comment";if(T.commentHash&&D=="#"||D=="-"&&Y.eat("-")&&(!T.commentSpaceRequired||Y.eat(" ")))return Y.skipToEnd(),"comment";if(D=="/"&&Y.eat("*"))return N.tokenize=te(1),N.tokenize(Y,N);if(D=="."){if(T.zerolessFloat&&Y.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(Y.match(/^\.+/))return null;if(T.ODBCdotTable&&Y.match(/^[\w\d_$#]+/))return"variable-2"}else{if(S.test(D))return Y.eatWhile(S),"operator";if(j.test(D))return"bracket";if(U.test(D))return Y.eatWhile(U),"punctuation";if(D=="{"&&(Y.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||Y.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";Y.eatWhile(/^[_\w\d]/);var O=Y.current().toLowerCase();return $.hasOwnProperty(O)&&(Y.match(/^( )+'[^']*'/)||Y.match(/^( )+"[^"]*"/))?"number":h.hasOwnProperty(O)?"atom":b.hasOwnProperty(O)?"type":g.hasOwnProperty(O)?"keyword":E.hasOwnProperty(O)?"builtin":null}}function oe(Y,N){return function(D,c){for(var O=!1,q;(q=D.next())!=null;){if(q==Y&&!O){c.tokenize=re;break}O=(_||N)&&!O&&q=="\\"}return"string"}}function te(Y){return function(N,D){var c=N.match(/^.*?(\/\*|\*\/)/);return c?c[1]=="/*"?D.tokenize=te(Y+1):Y>1?D.tokenize=te(Y-1):D.tokenize=re:N.skipToEnd(),"comment"}}function V(Y,N,D){N.context={prev:N.context,indent:Y.indentation(),col:Y.column(),type:D}}function X(Y){Y.indent=Y.context.indent,Y.context=Y.context.prev}return{startState:function(){return{tokenize:re,context:null}},token:function(Y,N){if(Y.sol()&&N.context&&N.context.align==null&&(N.context.align=!1),N.tokenize==re&&Y.eatSpace())return null;var D=N.tokenize(Y,N);if(D=="comment")return D;N.context&&N.context.align==null&&(N.context.align=!0);var c=Y.current();return c=="("?V(Y,N,")"):c=="["?V(Y,N,"]"):N.context&&N.context.type==c&&X(N),D},indent:function(Y,N){var D=Y.context;if(!D)return d.Pass;var c=N.charAt(0)==D.type;return D.align?D.col+(c?0:1):D.indent+(c?0:C.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:T.commentSlashSlash?"//":T.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});function R(C){for(var A;(A=C.next())!=null;)if(A=="`"&&!C.eat("`"))return"variable-2";return C.backUp(C.current().length-1),C.eatWhile(/\w/)?"variable-2":null}function z(C){for(var A;(A=C.next())!=null;)if(A=='"'&&!C.eat('"'))return"variable-2";return C.backUp(C.current().length-1),C.eatWhile(/\w/)?"variable-2":null}function F(C){return C.eat("@")&&(C.match("session."),C.match("local."),C.match("global.")),C.eat("'")?(C.match(/^.*'/),"variable-2"):C.eat('"')?(C.match(/^.*"/),"variable-2"):C.eat("`")?(C.match(/^.*`/),"variable-2"):C.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function I(C){return C.eat("N")?"atom":C.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var P="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function m(C){for(var A={},E=C.split(" "),h=0;h<E.length;++h)A[E[h]]=!0;return A}var B="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";d.defineMIME("text/x-sql",{name:"sql",keywords:m(P+"begin"),builtin:m(B),atoms:m("false true null unknown"),dateSQL:m("date time timestamp"),support:m("ODBCdotTable doubleQuote binaryNumber hexNumber")}),d.defineMIME("text/x-mssql",{name:"sql",client:m("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:m(P+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:m("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:m("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:m("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":F}}),d.defineMIME("text/x-mysql",{name:"sql",client:m("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:m(P+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:m("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:m("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:m("date time timestamp"),support:m("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":F,"`":R,"\\":I}}),d.defineMIME("text/x-mariadb",{name:"sql",client:m("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:m(P+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:m("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:m("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:m("date time timestamp"),support:m("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":F,"`":R,"\\":I}}),d.defineMIME("text/x-sqlite",{name:"sql",client:m("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:m(P+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:m("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:m("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:m("date time timestamp datetime"),support:m("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":F,":":F,"?":F,$:F,'"':z,"`":R}}),d.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:m("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:m("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:m("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:m("commentSlashSlash decimallessFloat"),hooks:{}}),d.defineMIME("text/x-plsql",{name:"sql",client:m("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:m("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:m("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:m("date time timestamp"),support:m("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),d.defineMIME("text/x-hive",{name:"sql",keywords:m("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:m("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:m("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:m("date timestamp"),support:m("ODBCdotTable doubleQuote binaryNumber hexNumber")}),d.defineMIME("text/x-pgsql",{name:"sql",client:m("source"),keywords:m(P+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:m("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:m("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:m("date time timestamp"),support:m("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),d.defineMIME("text/x-gql",{name:"sql",keywords:m("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:m("false true"),builtin:m("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),d.defineMIME("text/x-gpsql",{name:"sql",client:m("source"),keywords:m("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:m("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:m("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:m("date time timestamp"),support:m("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),d.defineMIME("text/x-sparksql",{name:"sql",keywords:m("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:m("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:m("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:m("date time timestamp"),support:m("ODBCdotTable doubleQuote zerolessFloat")}),d.defineMIME("text/x-esper",{name:"sql",client:m("source"),keywords:m("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:m("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:m("time"),support:m("decimallessFloat zerolessFloat binaryNumber hexNumber")})})});var Ks=Re((Hs,Us)=>{(function(d){typeof Hs=="object"&&typeof Us=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("stex",function(R,z){"use strict";function F(g,S){g.cmdState.push(S)}function I(g){return g.cmdState.length>0?g.cmdState[g.cmdState.length-1]:null}function P(g){var S=g.cmdState.pop();S&&S.closeBracket()}function m(g){for(var S=g.cmdState,T=S.length-1;T>=0;T--){var y=S[T];if(y.name!="DEFAULT")return y}return{styleIdentifier:function(){return null}}}function B(g,S,T){return function(){this.name=g,this.bracketNo=0,this.style=S,this.styles=T,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var C={};C.importmodule=B("importmodule","tag",["string","builtin"]),C.documentclass=B("documentclass","tag",["","atom"]),C.usepackage=B("usepackage","tag",["atom"]),C.begin=B("begin","tag",["atom"]),C.end=B("end","tag",["atom"]),C.label=B("label","tag",["atom"]),C.ref=B("ref","tag",["atom"]),C.eqref=B("eqref","tag",["atom"]),C.cite=B("cite","tag",["atom"]),C.bibitem=B("bibitem","tag",["atom"]),C.Bibitem=B("Bibitem","tag",["atom"]),C.RBibitem=B("RBibitem","tag",["atom"]),C.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function A(g,S){g.f=S}function E(g,S){var T;if(g.match(/^\\[a-zA-Z@]+/)){var y=g.current().slice(1);return T=C.hasOwnProperty(y)?C[y]:C.DEFAULT,T=new T,F(S,T),A(S,b),T.style}if(g.match(/^\\[$&%#{}_]/)||g.match(/^\\[,;!\/\\]/))return"tag";if(g.match("\\["))return A(S,function(_,j){return h(_,j,"\\]")}),"keyword";if(g.match("\\("))return A(S,function(_,j){return h(_,j,"\\)")}),"keyword";if(g.match("$$"))return A(S,function(_,j){return h(_,j,"$$")}),"keyword";if(g.match("$"))return A(S,function(_,j){return h(_,j,"$")}),"keyword";var $=g.next();if($=="%")return g.skipToEnd(),"comment";if($=="}"||$=="]"){if(T=I(S),T)T.closeBracket($),A(S,b);else return"error";return"bracket"}else return $=="{"||$=="["?(T=C.DEFAULT,T=new T,F(S,T),"bracket"):/\d/.test($)?(g.eatWhile(/[\w.%]/),"atom"):(g.eatWhile(/[\w\-_]/),T=m(S),T.name=="begin"&&(T.argument=g.current()),T.styleIdentifier())}function h(g,S,T){if(g.eatSpace())return null;if(T&&g.match(T))return A(S,E),"keyword";if(g.match(/^\\[a-zA-Z@]+/))return"tag";if(g.match(/^[a-zA-Z]+/))return"variable-2";if(g.match(/^\\[$&%#{}_]/)||g.match(/^\\[,;!\/]/)||g.match(/^[\^_&]/))return"tag";if(g.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(g.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var y=g.next();return y=="{"||y=="}"||y=="["||y=="]"||y=="("||y==")"?"bracket":y=="%"?(g.skipToEnd(),"comment"):"error"}function b(g,S){var T=g.peek(),y;return T=="{"||T=="["?(y=I(S),y.openBracket(T),g.eat(T),A(S,E),"bracket"):/[ \t\r]/.test(T)?(g.eat(T),null):(A(S,E),P(S),E(g,S))}return{startState:function(){var g=z.inMathMode?function(S,T){return h(S,T)}:E;return{cmdState:[],f:g}},copyState:function(g){return{cmdState:g.cmdState.slice(),f:g.f}},token:function(g,S){return S.f(g,S)},blankLine:function(g){g.f=E,g.cmdState.length=0},lineComment:"%"}}),d.defineMIME("text/x-stex","stex"),d.defineMIME("text/x-latex","stex")})});var Xs=Re(($s,Gs)=>{(function(d){typeof $s=="object"&&typeof Gs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("toml",function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(R,z){if(!z.inString&&(R.peek()=='"'||R.peek()=="'")&&(z.stringType=R.peek(),R.next(),z.inString=!0),R.sol()&&z.inArray===0&&(z.lhs=!0),z.inString){for(;z.inString&&!R.eol();)R.peek()===z.stringType?(R.next(),z.inString=!1):R.peek()==="\\"?(R.next(),R.next()):R.match(/^.[^\\\"\']*/);return z.lhs?"property string":"string"}else{if(z.inArray&&R.peek()==="]")return R.next(),z.inArray--,"bracket";if(z.lhs&&R.peek()==="["&&R.skipTo("]"))return R.next(),R.peek()==="]"&&R.next(),"atom";if(R.peek()==="#")return R.skipToEnd(),"comment";if(R.eatSpace())return null;if(z.lhs&&R.eatWhile(function(F){return F!="="&&F!=" "}))return"property";if(z.lhs&&R.peek()==="=")return R.next(),z.lhs=!1,null;if(!z.lhs&&R.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!z.lhs&&(R.match("true")||R.match("false")))return"atom";if(!z.lhs&&R.peek()==="[")return z.inArray++,R.next(),"bracket";if(!z.lhs&&R.match(/^\-?\d+(?:\.\d+)?/))return"number";R.eatSpace()||R.next()}return null}}}),d.defineMIME("text/x-toml","toml")})});var Qs=Re((Zs,Ys)=>{(function(d){typeof Zs=="object"&&typeof Ys=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("vb",function(R,z){var F="error";function I(k){return new RegExp("^(("+k.join(")|(")+"))\\b","i")}var P=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),m=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),B=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),C=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),A=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),E=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),h=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],b=["else","elseif","case","catch","finally"],g=["next","loop"],S=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],T=I(S),y=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],$=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],_=I(y),j=I($),U='"',re=I(h),oe=I(b),te=I(g),V=I(["end"]),X=I(["do"]),Y=null;d.registerHelper("hintWords","vb",h.concat(b).concat(g).concat(S).concat(y).concat($));function N(k,Z){Z.currentIndent++}function D(k,Z){Z.currentIndent--}function c(k,Z){if(k.eatSpace())return null;var G=k.peek();if(G==="'")return k.skipToEnd(),"comment";if(k.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var v=!1;if((k.match(/^\d*\.\d+F?/i)||k.match(/^\d+\.\d*F?/)||k.match(/^\.\d+F?/))&&(v=!0),v)return k.eat(/J/i),"number";var p=!1;if(k.match(/^&H[0-9a-f]+/i)||k.match(/^&O[0-7]+/i)?p=!0:k.match(/^[1-9]\d*F?/)?(k.eat(/J/i),p=!0):k.match(/^0(?![\dx])/i)&&(p=!0),p)return k.eat(/L/i),"number"}return k.match(U)?(Z.tokenize=O(k.current()),Z.tokenize(k,Z)):k.match(A)||k.match(C)?null:k.match(B)||k.match(P)||k.match(T)?"operator":k.match(m)?null:k.match(X)?(N(k,Z),Z.doInCurrentLine=!0,"keyword"):k.match(re)?(Z.doInCurrentLine?Z.doInCurrentLine=!1:N(k,Z),"keyword"):k.match(oe)?"keyword":k.match(V)?(D(k,Z),D(k,Z),"keyword"):k.match(te)?(D(k,Z),"keyword"):k.match(j)||k.match(_)?"keyword":k.match(E)?"variable":(k.next(),F)}function O(k){var Z=k.length==1,G="string";return function(v,p){for(;!v.eol();){if(v.eatWhile(/[^'"]/),v.match(k))return p.tokenize=c,G;v.eat(/['"]/)}if(Z){if(z.singleLineStringErrors)return F;p.tokenize=c}return G}}function q(k,Z){var G=Z.tokenize(k,Z),v=k.current();if(v===".")return G=Z.tokenize(k,Z),G==="variable"?"variable":F;var p="[({".indexOf(v);return p!==-1&&N(k,Z),Y==="dedent"&&D(k,Z)||(p="])}".indexOf(v),p!==-1&&D(k,Z))?F:G}var L={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:c,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(k,Z){k.sol()&&(Z.currentIndent+=Z.nextLineIndent,Z.nextLineIndent=0,Z.doInCurrentLine=0);var G=q(k,Z);return Z.lastToken={style:G,content:k.current()},G},indent:function(k,Z){var G=Z.replace(/^\s+|\s+$/g,"");return G.match(te)||G.match(V)||G.match(oe)?R.indentUnit*(k.currentIndent-1):k.currentIndent<0?0:k.currentIndent*R.indentUnit},lineComment:"'"};return L}),d.defineMIME("text/x-vb","vb")})});var eu=Re((Js,Vs)=>{(function(d){typeof Js=="object"&&typeof Vs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("vbscript",function(R,z){var F="error";function I(ne){return new RegExp("^(("+ne.join(")|(")+"))\\b","i")}var P=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),m=new RegExp("^((<>)|(<=)|(>=))"),B=new RegExp("^[\\.,]"),C=new RegExp("^[\\(\\)]"),A=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),E=["class","sub","select","while","if","function","property","with","for"],h=["else","elseif","case"],b=["next","loop","wend"],g=I(["and","or","not","xor","is","mod","eqv","imp"]),S=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],T=["true","false","nothing","empty","null"],y=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],$=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],_=["WScript","err","debug","RegExp"],j=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],U=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],re=["server","response","request","session","application"],oe=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],te=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],V=U.concat(j);_=_.concat($),R.isASP&&(_=_.concat(re),V=V.concat(te,oe));var X=I(S),Y=I(T),N=I(y),D=I(_),c=I(V),O='"',q=I(E),L=I(h),k=I(b),Z=I(["end"]),G=I(["do"]),v=I(["on error resume next","exit"]),p=I(["rem"]);function ae(ne,fe){fe.currentIndent++}function ge(ne,fe){fe.currentIndent--}function se(ne,fe){if(ne.eatSpace())return"space";var ye=ne.peek();if(ye==="'"||ne.match(p))return ne.skipToEnd(),"comment";if(ne.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!ne.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var De=!1;if((ne.match(/^\d*\.\d+/i)||ne.match(/^\d+\.\d*/)||ne.match(/^\.\d+/))&&(De=!0),De)return ne.eat(/J/i),"number";var Ye=!1;if(ne.match(/^&H[0-9a-f]+/i)||ne.match(/^&O[0-7]+/i)?Ye=!0:ne.match(/^[1-9]\d*F?/)?(ne.eat(/J/i),Ye=!0):ne.match(/^0(?![\dx])/i)&&(Ye=!0),Ye)return ne.eat(/L/i),"number"}return ne.match(O)?(fe.tokenize=de(ne.current()),fe.tokenize(ne,fe)):ne.match(m)||ne.match(P)||ne.match(g)?"operator":ne.match(B)?null:ne.match(C)?"bracket":ne.match(v)?(fe.doInCurrentLine=!0,"keyword"):ne.match(G)?(ae(ne,fe),fe.doInCurrentLine=!0,"keyword"):ne.match(q)?(fe.doInCurrentLine?fe.doInCurrentLine=!1:ae(ne,fe),"keyword"):ne.match(L)?"keyword":ne.match(Z)?(ge(ne,fe),ge(ne,fe),"keyword"):ne.match(k)?(fe.doInCurrentLine?fe.doInCurrentLine=!1:ge(ne,fe),"keyword"):ne.match(X)?"keyword":ne.match(Y)?"atom":ne.match(c)?"variable-2":ne.match(N)?"builtin":ne.match(D)?"variable-2":ne.match(A)?"variable":(ne.next(),F)}function de(ne){var fe=ne.length==1,ye="string";return function(De,Ye){for(;!De.eol();){if(De.eatWhile(/[^'"]/),De.match(ne))return Ye.tokenize=se,ye;De.eat(/['"]/)}if(fe){if(z.singleLineStringErrors)return F;Ye.tokenize=se}return ye}}function Le(ne,fe){var ye=fe.tokenize(ne,fe),De=ne.current();return De==="."?(ye=fe.tokenize(ne,fe),De=ne.current(),ye&&(ye.substr(0,8)==="variable"||ye==="builtin"||ye==="keyword")?((ye==="builtin"||ye==="keyword")&&(ye="variable"),V.indexOf(De.substr(1))>-1&&(ye="variable-2"),ye):F):ye}var ze={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:se,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(ne,fe){ne.sol()&&(fe.currentIndent+=fe.nextLineIndent,fe.nextLineIndent=0,fe.doInCurrentLine=0);var ye=Le(ne,fe);return fe.lastToken={style:ye,content:ne.current()},ye==="space"&&(ye=null),ye},indent:function(ne,fe){var ye=fe.replace(/^\s+|\s+$/g,"");return ye.match(k)||ye.match(Z)||ye.match(L)?R.indentUnit*(ne.currentIndent-1):ne.currentIndent<0?0:ne.currentIndent*R.indentUnit}};return ze}),d.defineMIME("text/vbscript","vbscript")})});var nu=Re((tu,ru)=>{(function(d){typeof tu=="object"&&typeof ru=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("yaml",function(){var R=["true","false","on","off","yes","no"],z=new RegExp("\\b(("+R.join(")|(")+"))$","i");return{token:function(F,I){var P=F.peek(),m=I.escaped;if(I.escaped=!1,P=="#"&&(F.pos==0||/\s/.test(F.string.charAt(F.pos-1))))return F.skipToEnd(),"comment";if(F.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(I.literal&&F.indentation()>I.keyCol)return F.skipToEnd(),"string";if(I.literal&&(I.literal=!1),F.sol()){if(I.keyCol=0,I.pair=!1,I.pairStart=!1,F.match("---")||F.match("..."))return"def";if(F.match(/\s*-\s+/))return"meta"}if(F.match(/^(\{|\}|\[|\])/))return P=="{"?I.inlinePairs++:P=="}"?I.inlinePairs--:P=="["?I.inlineList++:I.inlineList--,"meta";if(I.inlineList>0&&!m&&P==",")return F.next(),"meta";if(I.inlinePairs>0&&!m&&P==",")return I.keyCol=0,I.pair=!1,I.pairStart=!1,F.next(),"meta";if(I.pairStart){if(F.match(/^\s*(\||\>)\s*/))return I.literal=!0,"meta";if(F.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(I.inlinePairs==0&&F.match(/^\s*-?[0-9\.\,]+\s?$/)||I.inlinePairs>0&&F.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(F.match(z))return"keyword"}return!I.pair&&F.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(I.pair=!0,I.keyCol=F.indentation(),"atom"):I.pair&&F.match(/^:\s*/)?(I.pairStart=!0,"meta"):(I.pairStart=!1,I.escaped=P=="\\",F.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),d.defineMIME("text/x-yaml","yaml"),d.defineMIME("text/yaml","yaml")})});var lu=Re((iu,ou)=>{(function(d){typeof iu=="object"&&typeof ou=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineOption("scrollPastEnd",!1,function(F,I,P){P&&P!=d.Init&&(F.off("change",R),F.off("refresh",z),F.display.lineSpace.parentNode.style.paddingBottom="",F.state.scrollPastEndPadding=null),I&&(F.on("change",R),F.on("refresh",z),z(F))});function R(F,I){d.changeEnd(I).line==F.lastLine()&&z(F)}function z(F){var I="";if(F.lineCount()>1){var P=F.display.scroller.clientHeight-30,m=F.getLineHandle(F.lastLine()).height;I=P-m+"px"}F.state.scrollPastEndPadding!=I&&(F.state.scrollPastEndPadding=I,F.display.lineSpace.parentNode.style.paddingBottom=I,F.off("refresh",z),F.setSize(),F.on("refresh",z))}})});var br=Ue(We(),1),au=Ue(wa(),1),vf=Ue(bo(),1),yf=Ue(xo(),1),bf=Ue(za(),1),xf=Ue(Fa(),1),kf=Ue(Pa(),1),_f=Ue(Ra(),1),wf=Ue(_o(),1),Sf=Ue(ko(),1),Tf=Ue(Xa(),1),Cf=Ue(Qa(),1),Lf=Ue(ns(),1),Ef=Ue(ls(),1),Mf=Ue(us(),1),zf=Ue(ds(),1),Af=Ue(ms(),1),Df=Ue(ys(),1),Ff=Ue(ks(),1),If=Ue(Ss(),1),Of=Ue(Ls(),1),Pf=Ue(zs(),1),Nf=Ue(Ps(),1),qf=Ue(Rs(),1),Rf=Ue(js(),1),Wf=Ue(Ks(),1),Bf=Ue(Xs(),1),jf=Ue(Qs(),1),Hf=Ue(eu(),1),Uf=Ue(yi(),1),Kf=Ue(nu(),1),$f=Ue(lu(),1),wo={css:"css",c:"text/x-csrc",java:"text/x-java",scala:"text/x-scala",kotlin:"text/x-kotlin","c++":"text/x-c++src","c#":"text/x-csharp",csharp:"text/x-csharp",diff:"diff",for:"fortran",fortran:"fortran","f#":"text/x-fsharp",fsharp:"text/x-fsharp",go:"go",haskell:"haskell",hs:"haskell",html:"htmlmixed",ini:"properties",javascript:"text/javascript",json:"application/json",js:"text/javascript",jl:"text/x-julia",julia:"text/x-julia",latex:"text/x-stex",lua:"lua",md:"markdown",mdown:"markdown",markdown:"markdown",ml:"mllike",nginx:"nginx",perl:"perl",pl:"perl",powershell:"powershell",properties:"properties",ocaml:"text/x-ocaml",pascal:"text/x-pascal",pas:"text/x-pascal",php:d=>d.includes("<?php")?"php":"text/x-php",py:"python",python:"python",ruby:"ruby",rust:"rust",rb:"ruby",rs:"rust",shell:"shell",sh:"shell",stext:"text/x-stex",bash:"shell",toml:"toml",ts:"text/typescript",typescript:"text/typescript",sql:"text/x-sql",vbs:"vbscript",vbscript:"vbscript","vb.net":"text/x-vb",vbnet:"text/x-vb",xml:"xml",yaml:"yaml",yml:"yaml"};function Gf(){let d=document.querySelectorAll(".page-content pre, .comment-box .content pre");for(let R of d)su(R)}function Xf(d){let R=d.querySelectorAll("pre");for(let z of R)su(z)}function su(d){let R=d.querySelector("code[class^=language-]");d.innerHTML=d.innerHTML.replace(/<br\s*[\/]?>/gi,`
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var M;C&&(M=window.scrollY),r.input.focus(),C&&window.scrollTo(null,M),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=W,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function H(){if(i.selectionStart!=null){var ie=n.somethingSelected(),ce="\u200B"+(ie?i.value:"");i.value="\u21DA",i.value=ce,t.prevInput=ie?"":"\u200B",i.selectionStart=1,i.selectionEnd=ce.length,r.selForContextMenu=n.doc.sel}}function W(){if(t.contextMenuPending==W&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=s,m&&B<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),i.selectionStart!=null)){(!m||m&&B<9)&&H();var ie=0,ce=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?ct(n,Rl)(n):ie++<10?r.detectingSelectAll=setTimeout(ce,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(ce,200)}}if(m&&B>=9&&H(),V){Bt(e);var Q=function(){Fe(window,"mouseup",Q),setTimeout(W,20)};Ce(window,"mouseup",Q)}else setTimeout(W,50)},nt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},nt.prototype.setUneditable=function(){},nt.prototype.needsContentAttribute=!1;function of(e,t){if(t=t?ae(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=k();t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(Ce(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=l}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(Fe(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var a=Qe(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function lf(e){e.off=Fe,e.on=Ce,e.wheelEventPixels=dc,e.Doc=Tt,e.splitLines=Pr,e.countColumn=ge,e.findColumn=De,e.isWordChar=K,e.Pass=ze,e.signal=Ve,e.Line=Rr,e.changeEnd=hr,e.scrollbarModel=ml,e.Pos=u,e.cmpPos=x,e.modes=Ut,e.mimeModes=Zt,e.resolveMode=xr,e.getMode=ur,e.modeExtensions=kt,e.extendMode=kr,e.copyState=Qt,e.startState=Wn,e.innerMode=Nr,e.commands=zn,e.keyMap=ir,e.keyName=ta,e.isModifierKey=Vl,e.lookupKey=Jr,e.normalizeKeyMap=Ic,e.StringStream=Ze,e.SharedTextMarker=Ln,e.TextMarker=gr,e.LineWidget=Cn,e.e_preventDefault=st,e.e_stopPropagation=Ft,e.e_stop=Bt,e.addClass=Z,e.contains=L,e.rmClass=Y,e.keyNames=vr}Yc(Qe),ef(Qe);var af="iter insert remove copy getEditor constructor".split(" ");for(var vi in Tt.prototype)Tt.prototype.hasOwnProperty(vi)&&de(af,vi)<0&&(Qe.prototype[vi]=function(e){return function(){return e.apply(this.doc,arguments)}}(Tt.prototype[vi]));return sr(Tt),Qe.inputStyles={textarea:nt,contenteditable:$e},Qe.defineMode=function(e){!Qe.defaults.mode&&e!="null"&&(Qe.defaults.mode=e),Yt.apply(this,arguments)},Qe.defineMIME=_i,Qe.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Qe.defineMIME("text/plain","null"),Qe.defineExtension=function(e,t){Qe.prototype[e]=t},Qe.defineDocExtension=function(e,t){Tt.prototype[e]=t},Qe.fromTextArea=of,lf(Qe),Qe.version="5.65.5",Qe})});var wa=Re((On,yo)=>{(function(d,R){typeof On=="object"&&typeof yo=="object"?yo.exports=R():typeof define=="function"&&define.amd?define([],R):typeof On=="object"?On.ClipboardJS=R():d.ClipboardJS=R()})(On,function(){return R={686:function(F,C,P){"use strict";P.d(C,{default:function(){return oe}});var C=P(279),m=P.n(C),C=P(370),B=P.n(C),C=P(817),A=P.n(C);function E(te){try{return document.execCommand(te)}catch{return}}var h=function(te){return te=A()(te),E("cut"),te};function b(N,V){var X,Y,N=(X=N,Y=document.documentElement.getAttribute("dir")==="rtl",(N=document.createElement("textarea")).style.fontSize="12pt",N.style.border="0",N.style.padding="0",N.style.margin="0",N.style.position="absolute",N.style[Y?"right":"left"]="-9999px",Y=window.pageYOffset||document.documentElement.scrollTop,N.style.top="".concat(Y,"px"),N.setAttribute("readonly",""),N.value=X,N);return V.container.appendChild(N),V=A()(N),E("copy"),N.remove(),V}var g=function(te){var V=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body},X="";return typeof te=="string"?X=b(te,V):te instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(te?.type)?X=b(te.value,V):(X=A()(te),E("copy")),X};function S(te){return(S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V})(te)}var T=function(){var Y=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},X=Y.action,te=X===void 0?"copy":X,V=Y.container,X=Y.target,Y=Y.text;if(te!=="copy"&&te!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(X!==void 0){if(!X||S(X)!=="object"||X.nodeType!==1)throw new Error('Invalid "target" value, use a valid Element');if(te==="copy"&&X.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(te==="cut"&&(X.hasAttribute("readonly")||X.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}return Y?g(Y,{container:V}):X?te==="cut"?h(X):g(X,{container:V}):void 0};function y(te){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V})(te)}function $(te,V){for(var X=0;X<V.length;X++){var Y=V[X];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(te,Y.key,Y)}}function _(te,V){return(_=Object.setPrototypeOf||function(X,Y){return X.__proto__=Y,X})(te,V)}function j(te){var V=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var X,Y=U(te);return X=V?(X=U(this).constructor,Reflect.construct(Y,arguments,X)):Y.apply(this,arguments),Y=this,!(X=X)||y(X)!=="object"&&typeof X!="function"?function(N){if(N!==void 0)return N;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(Y):X}}function U(te){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)})(te)}function re(te,V){if(te="data-clipboard-".concat(te),V.hasAttribute(te))return V.getAttribute(te)}var oe=function(){(function(D,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(c&&c.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),c&&_(D,c)})(N,m());var te,V,X,Y=j(N);function N(D,c){var O;return function(q){if(!(q instanceof N))throw new TypeError("Cannot call a class as a function")}(this),(O=Y.call(this)).resolveOptions(c),O.listenClick(D),O}return te=N,X=[{key:"copy",value:function(D){var c=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body};return g(D,c)}},{key:"cut",value:function(D){return h(D)}},{key:"isSupported",value:function(){var D=0<arguments.length&&arguments[0]!==void 0?arguments[0]:["copy","cut"],D=typeof D=="string"?[D]:D,c=!!document.queryCommandSupported;return D.forEach(function(O){c=c&&!!document.queryCommandSupported(O)}),c}}],(V=[{key:"resolveOptions",value:function(){var D=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof D.action=="function"?D.action:this.defaultAction,this.target=typeof D.target=="function"?D.target:this.defaultTarget,this.text=typeof D.text=="function"?D.text:this.defaultText,this.container=y(D.container)==="object"?D.container:document.body}},{key:"listenClick",value:function(D){var c=this;this.listener=B()(D,"click",function(O){return c.onClick(O)})}},{key:"onClick",value:function(q){var c=q.delegateTarget||q.currentTarget,O=this.action(c)||"copy",q=T({action:O,container:this.container,target:this.target(c),text:this.text(c)});this.emit(q?"success":"error",{action:O,text:q,trigger:c,clearSelection:function(){c&&c.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(D){return re("action",D)}},{key:"defaultTarget",value:function(D){if(D=re("target",D),D)return document.querySelector(D)}},{key:"defaultText",value:function(D){return re("text",D)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&$(te.prototype,V),X&&$(te,X),N}()},828:function(F){var I;typeof Element>"u"||Element.prototype.matches||((I=Element.prototype).matches=I.matchesSelector||I.mozMatchesSelector||I.msMatchesSelector||I.oMatchesSelector||I.webkitMatchesSelector),F.exports=function(P,m){for(;P&&P.nodeType!==9;){if(typeof P.matches=="function"&&P.matches(m))return P;P=P.parentNode}}},438:function(F,I,P){var m=P(828);function B(C,A,E,h,b){var g=function(S,T,y,$){return function(_){_.delegateTarget=m(_.target,T),_.delegateTarget&&$.call(S,_)}}.apply(this,arguments);return C.addEventListener(E,g,b),{destroy:function(){C.removeEventListener(E,g,b)}}}F.exports=function(C,A,E,h,b){return typeof C.addEventListener=="function"?B.apply(null,arguments):typeof E=="function"?B.bind(null,document).apply(null,arguments):(typeof C=="string"&&(C=document.querySelectorAll(C)),Array.prototype.map.call(C,function(g){return B(g,A,E,h,b)}))}},879:function(F,I){I.node=function(P){return P!==void 0&&P instanceof HTMLElement&&P.nodeType===1},I.nodeList=function(P){var m=Object.prototype.toString.call(P);return P!==void 0&&(m==="[object NodeList]"||m==="[object HTMLCollection]")&&"length"in P&&(P.length===0||I.node(P[0]))},I.string=function(P){return typeof P=="string"||P instanceof String},I.fn=function(P){return Object.prototype.toString.call(P)==="[object Function]"}},370:function(F,I,P){var m=P(879),B=P(438);F.exports=function(C,A,E){if(!C&&!A&&!E)throw new Error("Missing required arguments");if(!m.string(A))throw new TypeError("Second argument must be a String");if(!m.fn(E))throw new TypeError("Third argument must be a Function");if(m.node(C))return T=A,y=E,(S=C).addEventListener(T,y),{destroy:function(){S.removeEventListener(T,y)}};if(m.nodeList(C))return h=C,b=A,g=E,Array.prototype.forEach.call(h,function($){$.addEventListener(b,g)}),{destroy:function(){Array.prototype.forEach.call(h,function($){$.removeEventListener(b,g)})}};if(m.string(C))return C=C,A=A,E=E,B(document.body,C,A,E);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var h,b,g,S,T,y}},817:function(F){F.exports=function(I){var P,m=I.nodeName==="SELECT"?(I.focus(),I.value):I.nodeName==="INPUT"||I.nodeName==="TEXTAREA"?((P=I.hasAttribute("readonly"))||I.setAttribute("readonly",""),I.select(),I.setSelectionRange(0,I.value.length),P||I.removeAttribute("readonly"),I.value):(I.hasAttribute("contenteditable")&&I.focus(),m=window.getSelection(),(P=document.createRange()).selectNodeContents(I),m.removeAllRanges(),m.addRange(P),m.toString());return m}},279:function(F){function I(){}I.prototype={on:function(P,m,B){var C=this.e||(this.e={});return(C[P]||(C[P]=[])).push({fn:m,ctx:B}),this},once:function(P,m,B){var C=this;function A(){C.off(P,A),m.apply(B,arguments)}return A._=m,this.on(P,A,B)},emit:function(P){for(var m=[].slice.call(arguments,1),B=((this.e||(this.e={}))[P]||[]).slice(),C=0,A=B.length;C<A;C++)B[C].fn.apply(B[C].ctx,m);return this},off:function(P,m){var B=this.e||(this.e={}),C=B[P],A=[];if(C&&m)for(var E=0,h=C.length;E<h;E++)C[E].fn!==m&&C[E].fn._!==m&&A.push(C[E]);return A.length?B[P]=A:delete B[P],this}},F.exports=I,F.exports.TinyEmitter=I}},z={},d.n=function(F){var I=F&&F.__esModule?function(){return F.default}:function(){return F};return d.d(I,{a:I}),I},d.d=function(F,I){for(var P in I)d.o(I,P)&&!d.o(F,P)&&Object.defineProperty(F,P,{enumerable:!0,get:I[P]})},d.o=function(F,I){return Object.prototype.hasOwnProperty.call(F,I)},d(686).default;function d(F){if(z[F])return z[F].exports;var I=z[F]={exports:{}};return R[F](I,I.exports,d),I.exports}var R,z})});var bo=Re((Sa,Ta)=>{(function(d){typeof Sa=="object"&&typeof Ta=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("css",function(V,X){var Y=X.inline;X.propertyKeywords||(X=d.resolveMode("text/css"));var N=V.indentUnit,D=X.tokenHooks,c=X.documentTypes||{},O=X.mediaTypes||{},q=X.mediaFeatures||{},L=X.mediaValueKeywords||{},k=X.propertyKeywords||{},Z=X.nonStandardPropertyKeywords||{},G=X.fontProperties||{},v=X.counterDescriptors||{},p=X.colorKeywords||{},ae=X.valueKeywords||{},ge=X.allowNested,se=X.lineComment,de=X.supportsAtComponent===!0,Le=V.highlightNonStandardPropertyKeywords!==!1,ze,ne;function fe(K,le){return ze=le,K}function ye(K,le){var J=K.next();if(D[J]){var Oe=D[J](K,le);if(Oe!==!1)return Oe}if(J=="@")return K.eatWhile(/[\w\\\-]/),fe("def",K.current());if(J=="="||(J=="~"||J=="|")&&K.eat("="))return fe(null,"compare");if(J=='"'||J=="'")return le.tokenize=De(J),le.tokenize(K,le);if(J=="#")return K.eatWhile(/[\w\\\-]/),fe("atom","hash");if(J=="!")return K.match(/^\s*\w*/),fe("keyword","important");if(/\d/.test(J)||J=="."&&K.eat(/\d/))return K.eatWhile(/[\w.%]/),fe("number","unit");if(J==="-"){if(/[\d.]/.test(K.peek()))return K.eatWhile(/[\w.%]/),fe("number","unit");if(K.match(/^-[\w\\\-]*/))return K.eatWhile(/[\w\\\-]/),K.match(/^\s*:/,!1)?fe("variable-2","variable-definition"):fe("variable-2","variable");if(K.match(/^\w+-/))return fe("meta","meta")}else return/[,+>*\/]/.test(J)?fe(null,"select-op"):J=="."&&K.match(/^-?[_a-z][_a-z0-9-]*/i)?fe("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(J)?fe(null,J):K.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(K.current())&&(le.tokenize=Ye),fe("variable callee","variable")):/[\w\\\-]/.test(J)?(K.eatWhile(/[\w\\\-]/),fe("property","word")):fe(null,null)}function De(K){return function(le,J){for(var Oe=!1,be;(be=le.next())!=null;){if(be==K&&!Oe){K==")"&&le.backUp(1);break}Oe=!Oe&&be=="\\"}return(be==K||!Oe&&K!=")")&&(J.tokenize=null),fe("string","string")}}function Ye(K,le){return K.next(),K.match(/^\s*[\"\')]/,!1)?le.tokenize=null:le.tokenize=De(")"),fe(null,"(")}function mt(K,le,J){this.type=K,this.indent=le,this.prev=J}function xe(K,le,J,Oe){return K.context=new mt(J,le.indentation()+(Oe===!1?0:N),K.context),J}function je(K){return K.context.prev&&(K.context=K.context.prev),K.context.type}function rt(K,le,J){return qe[J.context.type](K,le,J)}function lt(K,le,J,Oe){for(var be=Oe||1;be>0;be--)J.context=J.context.prev;return rt(K,le,J)}function Ge(K){var le=K.current().toLowerCase();ae.hasOwnProperty(le)?ne="atom":p.hasOwnProperty(le)?ne="keyword":ne="variable"}var qe={};return qe.top=function(K,le,J){if(K=="{")return xe(J,le,"block");if(K=="}"&&J.context.prev)return je(J);if(de&&/@component/i.test(K))return xe(J,le,"atComponentBlock");if(/^@(-moz-)?document$/i.test(K))return xe(J,le,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(K))return xe(J,le,"atBlock");if(/^@(font-face|counter-style)/i.test(K))return J.stateArg=K,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(K))return"keyframes";if(K&&K.charAt(0)=="@")return xe(J,le,"at");if(K=="hash")ne="builtin";else if(K=="word")ne="tag";else{if(K=="variable-definition")return"maybeprop";if(K=="interpolation")return xe(J,le,"interpolation");if(K==":")return"pseudo";if(ge&&K=="(")return xe(J,le,"parens")}return J.context.type},qe.block=function(K,le,J){if(K=="word"){var Oe=le.current().toLowerCase();return k.hasOwnProperty(Oe)?(ne="property","maybeprop"):Z.hasOwnProperty(Oe)?(ne=Le?"string-2":"property","maybeprop"):ge?(ne=le.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ne+=" error","maybeprop")}else return K=="meta"?"block":!ge&&(K=="hash"||K=="qualifier")?(ne="error","block"):qe.top(K,le,J)},qe.maybeprop=function(K,le,J){return K==":"?xe(J,le,"prop"):rt(K,le,J)},qe.prop=function(K,le,J){if(K==";")return je(J);if(K=="{"&&ge)return xe(J,le,"propBlock");if(K=="}"||K=="{")return lt(K,le,J);if(K=="(")return xe(J,le,"parens");if(K=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(le.current()))ne+=" error";else if(K=="word")Ge(le);else if(K=="interpolation")return xe(J,le,"interpolation");return"prop"},qe.propBlock=function(K,le,J){return K=="}"?je(J):K=="word"?(ne="property","maybeprop"):J.context.type},qe.parens=function(K,le,J){return K=="{"||K=="}"?lt(K,le,J):K==")"?je(J):K=="("?xe(J,le,"parens"):K=="interpolation"?xe(J,le,"interpolation"):(K=="word"&&Ge(le),"parens")},qe.pseudo=function(K,le,J){return K=="meta"?"pseudo":K=="word"?(ne="variable-3",J.context.type):rt(K,le,J)},qe.documentTypes=function(K,le,J){return K=="word"&&c.hasOwnProperty(le.current())?(ne="tag",J.context.type):qe.atBlock(K,le,J)},qe.atBlock=function(K,le,J){if(K=="(")return xe(J,le,"atBlock_parens");if(K=="}"||K==";")return lt(K,le,J);if(K=="{")return je(J)&&xe(J,le,ge?"block":"top");if(K=="interpolation")return xe(J,le,"interpolation");if(K=="word"){var Oe=le.current().toLowerCase();Oe=="only"||Oe=="not"||Oe=="and"||Oe=="or"?ne="keyword":O.hasOwnProperty(Oe)?ne="attribute":q.hasOwnProperty(Oe)?ne="property":L.hasOwnProperty(Oe)?ne="keyword":k.hasOwnProperty(Oe)?ne="property":Z.hasOwnProperty(Oe)?ne=Le?"string-2":"property":ae.hasOwnProperty(Oe)?ne="atom":p.hasOwnProperty(Oe)?ne="keyword":ne="error"}return J.context.type},qe.atComponentBlock=function(K,le,J){return K=="}"?lt(K,le,J):K=="{"?je(J)&&xe(J,le,ge?"block":"top",!1):(K=="word"&&(ne="error"),J.context.type)},qe.atBlock_parens=function(K,le,J){return K==")"?je(J):K=="{"||K=="}"?lt(K,le,J,2):qe.atBlock(K,le,J)},qe.restricted_atBlock_before=function(K,le,J){return K=="{"?xe(J,le,"restricted_atBlock"):K=="word"&&J.stateArg=="@counter-style"?(ne="variable","restricted_atBlock_before"):rt(K,le,J)},qe.restricted_atBlock=function(K,le,J){return K=="}"?(J.stateArg=null,je(J)):K=="word"?(J.stateArg=="@font-face"&&!G.hasOwnProperty(le.current().toLowerCase())||J.stateArg=="@counter-style"&&!v.hasOwnProperty(le.current().toLowerCase())?ne="error":ne="property","maybeprop"):"restricted_atBlock"},qe.keyframes=function(K,le,J){return K=="word"?(ne="variable","keyframes"):K=="{"?xe(J,le,"top"):rt(K,le,J)},qe.at=function(K,le,J){return K==";"?je(J):K=="{"||K=="}"?lt(K,le,J):(K=="word"?ne="tag":K=="hash"&&(ne="builtin"),"at")},qe.interpolation=function(K,le,J){return K=="}"?je(J):K=="{"||K==";"?lt(K,le,J):(K=="word"?ne="variable":K!="variable"&&K!="("&&K!=")"&&(ne="error"),"interpolation")},{startState:function(K){return{tokenize:null,state:Y?"block":"top",stateArg:null,context:new mt(Y?"block":"top",K||0,null)}},token:function(K,le){if(!le.tokenize&&K.eatSpace())return null;var J=(le.tokenize||ye)(K,le);return J&&typeof J=="object"&&(ze=J[1],J=J[0]),ne=J,ze!="comment"&&(le.state=qe[le.state](ze,K,le)),ne},indent:function(K,le){var J=K.context,Oe=le&&le.charAt(0),be=J.indent;return J.type=="prop"&&(Oe=="}"||Oe==")")&&(J=J.prev),J.prev&&(Oe=="}"&&(J.type=="block"||J.type=="top"||J.type=="interpolation"||J.type=="restricted_atBlock")?(J=J.prev,be=J.indent):(Oe==")"&&(J.type=="parens"||J.type=="atBlock_parens")||Oe=="{"&&(J.type=="at"||J.type=="atBlock"))&&(be=Math.max(0,J.indent-N))),be},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:se,fold:"brace"}});function R(V){for(var X={},Y=0;Y<V.length;++Y)X[V[Y].toLowerCase()]=!0;return X}var z=["domain","regexp","url","url-prefix"],F=R(z),I=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],P=R(I),m=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],B=R(m),C=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],A=R(C),E=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],h=R(E),b=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],g=R(b),S=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],T=R(S),y=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],$=R(y),_=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],j=R(_),U=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],re=R(U),oe=z.concat(I).concat(m).concat(C).concat(E).concat(b).concat(_).concat(U);d.registerHelper("hintWords","css",oe);function te(V,X){for(var Y=!1,N;(N=V.next())!=null;){if(Y&&N=="/"){X.tokenize=null;break}Y=N=="*"}return["comment","comment"]}d.defineMIME("text/css",{documentTypes:F,mediaTypes:P,mediaFeatures:B,mediaValueKeywords:A,propertyKeywords:h,nonStandardPropertyKeywords:g,fontProperties:T,counterDescriptors:$,colorKeywords:j,valueKeywords:re,tokenHooks:{"/":function(V,X){return V.eat("*")?(X.tokenize=te,te(V,X)):!1}},name:"css"}),d.defineMIME("text/x-scss",{mediaTypes:P,mediaFeatures:B,mediaValueKeywords:A,propertyKeywords:h,nonStandardPropertyKeywords:g,colorKeywords:j,valueKeywords:re,fontProperties:T,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(V,X){return V.eat("/")?(V.skipToEnd(),["comment","comment"]):V.eat("*")?(X.tokenize=te,te(V,X)):["operator","operator"]},":":function(V){return V.match(/^\s*\{/,!1)?[null,null]:!1},$:function(V){return V.match(/^[\w-]+/),V.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(V){return V.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),d.defineMIME("text/x-less",{mediaTypes:P,mediaFeatures:B,mediaValueKeywords:A,propertyKeywords:h,nonStandardPropertyKeywords:g,colorKeywords:j,valueKeywords:re,fontProperties:T,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(V,X){return V.eat("/")?(V.skipToEnd(),["comment","comment"]):V.eat("*")?(X.tokenize=te,te(V,X)):["operator","operator"]},"@":function(V){return V.eat("{")?[null,"interpolation"]:V.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(V.eatWhile(/[\w\\\-]/),V.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),d.defineMIME("text/x-gss",{documentTypes:F,mediaTypes:P,mediaFeatures:B,propertyKeywords:h,nonStandardPropertyKeywords:g,fontProperties:T,counterDescriptors:$,colorKeywords:j,valueKeywords:re,supportsAtComponent:!0,tokenHooks:{"/":function(V,X){return V.eat("*")?(X.tokenize=te,te(V,X)):!1}},name:"css",helperType:"gss"})})});var xo=Re((Ca,La)=>{(function(d){typeof Ca=="object"&&typeof La=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";function R(L,k,Z,G,v,p){this.indented=L,this.column=k,this.type=Z,this.info=G,this.align=v,this.prev=p}function z(L,k,Z,G){var v=L.indented;return L.context&&L.context.type=="statement"&&Z!="statement"&&(v=L.context.indented),L.context=new R(v,k,Z,G,null,L.context)}function F(L){var k=L.context.type;return(k==")"||k=="]"||k=="}")&&(L.indented=L.context.indented),L.context=L.context.prev}function I(L,k,Z){if(k.prevToken=="variable"||k.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(L.string.slice(0,Z))||k.typeAtEndOfLine&&L.column()==L.indentation())return!0}function P(L){for(;;){if(!L||L.type=="top")return!0;if(L.type=="}"&&L.prev.info!="namespace")return!1;L=L.prev}}d.defineMode("clike",function(L,k){var Z=L.indentUnit,G=k.statementIndentUnit||Z,v=k.dontAlignCalls,p=k.keywords||{},ae=k.types||{},ge=k.builtin||{},se=k.blockKeywords||{},de=k.defKeywords||{},Le=k.atoms||{},ze=k.hooks||{},ne=k.multiLineStrings,fe=k.indentStatements!==!1,ye=k.indentSwitch!==!1,De=k.namespaceSeparator,Ye=k.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,mt=k.numberStart||/[\d\.]/,xe=k.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,je=k.isOperatorChar||/[+\-*&%=<>!?|\/]/,rt=k.isIdentifierChar||/[\w\$_\xa1-\uffff]/,lt=k.isReservedIdentifier||!1,Ge,qe;function K(be,Ee){var _e=be.next();if(ze[_e]){var Pe=ze[_e](be,Ee);if(Pe!==!1)return Pe}if(_e=='"'||_e=="'")return Ee.tokenize=le(_e),Ee.tokenize(be,Ee);if(mt.test(_e)){if(be.backUp(1),be.match(xe))return"number";be.next()}if(Ye.test(_e))return Ge=_e,null;if(_e=="/"){if(be.eat("*"))return Ee.tokenize=J,J(be,Ee);if(be.eat("/"))return be.skipToEnd(),"comment"}if(je.test(_e)){for(;!be.match(/^\/[\/*]/,!1)&&be.eat(je););return"operator"}if(be.eatWhile(rt),De)for(;be.match(De);)be.eatWhile(rt);var Ae=be.current();return B(p,Ae)?(B(se,Ae)&&(Ge="newstatement"),B(de,Ae)&&(qe=!0),"keyword"):B(ae,Ae)?"type":B(ge,Ae)||lt&<(Ae)?(B(se,Ae)&&(Ge="newstatement"),"builtin"):B(Le,Ae)?"atom":"variable"}function le(be){return function(Ee,_e){for(var Pe=!1,Ae,gt=!1;(Ae=Ee.next())!=null;){if(Ae==be&&!Pe){gt=!0;break}Pe=!Pe&&Ae=="\\"}return(gt||!(Pe||ne))&&(_e.tokenize=null),"string"}}function J(be,Ee){for(var _e=!1,Pe;Pe=be.next();){if(Pe=="/"&&_e){Ee.tokenize=null;break}_e=Pe=="*"}return"comment"}function Oe(be,Ee){k.typeFirstDefinitions&&be.eol()&&P(Ee.context)&&(Ee.typeAtEndOfLine=I(be,Ee,be.pos))}return{startState:function(be){return{tokenize:null,context:new R((be||0)-Z,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(be,Ee){var _e=Ee.context;if(be.sol()&&(_e.align==null&&(_e.align=!1),Ee.indented=be.indentation(),Ee.startOfLine=!0),be.eatSpace())return Oe(be,Ee),null;Ge=qe=null;var Pe=(Ee.tokenize||K)(be,Ee);if(Pe=="comment"||Pe=="meta")return Pe;if(_e.align==null&&(_e.align=!0),Ge==";"||Ge==":"||Ge==","&&be.match(/^\s*(?:\/\/.*)?$/,!1))for(;Ee.context.type=="statement";)F(Ee);else if(Ge=="{")z(Ee,be.column(),"}");else if(Ge=="[")z(Ee,be.column(),"]");else if(Ge=="(")z(Ee,be.column(),")");else if(Ge=="}"){for(;_e.type=="statement";)_e=F(Ee);for(_e.type=="}"&&(_e=F(Ee));_e.type=="statement";)_e=F(Ee)}else Ge==_e.type?F(Ee):fe&&((_e.type=="}"||_e.type=="top")&&Ge!=";"||_e.type=="statement"&&Ge=="newstatement")&&z(Ee,be.column(),"statement",be.current());if(Pe=="variable"&&(Ee.prevToken=="def"||k.typeFirstDefinitions&&I(be,Ee,be.start)&&P(Ee.context)&&be.match(/^\s*\(/,!1))&&(Pe="def"),ze.token){var Ae=ze.token(be,Ee,Pe);Ae!==void 0&&(Pe=Ae)}return Pe=="def"&&k.styleDefs===!1&&(Pe="variable"),Ee.startOfLine=!1,Ee.prevToken=qe?"def":Pe||Ge,Oe(be,Ee),Pe},indent:function(be,Ee){if(be.tokenize!=K&&be.tokenize!=null||be.typeAtEndOfLine)return d.Pass;var _e=be.context,Pe=Ee&&Ee.charAt(0),Ae=Pe==_e.type;if(_e.type=="statement"&&Pe=="}"&&(_e=_e.prev),k.dontIndentStatements)for(;_e.type=="statement"&&k.dontIndentStatements.test(_e.info);)_e=_e.prev;if(ze.indent){var gt=ze.indent(be,_e,Ee,Z);if(typeof gt=="number")return gt}var lr=_e.prev&&_e.prev.info=="switch";if(k.allmanIndentation&&/[{(]/.test(Pe)){for(;_e.type!="top"&&_e.type!="}";)_e=_e.prev;return _e.indented}return _e.type=="statement"?_e.indented+(Pe=="{"?0:G):_e.align&&(!v||_e.type!=")")?_e.column+(Ae?0:1):_e.type==")"&&!Ae?_e.indented+G:_e.indented+(Ae?0:Z)+(!Ae&&lr&&!/^(?:case|default)\b/.test(Ee)?Z:0)},electricInput:ye?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function m(L){for(var k={},Z=L.split(" "),G=0;G<Z.length;++G)k[Z[G]]=!0;return k}function B(L,k){return typeof L=="function"?L(k):L.propertyIsEnumerable(k)}var C="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",A="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",E="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",h="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",b=m("int long char short double float unsigned signed void bool"),g=m("SEL instancetype id Class Protocol BOOL");function S(L){return B(b,L)||/.+_t$/.test(L)}function T(L){return S(L)||B(g,L)}var y="case do else for if switch while struct enum union",$="struct enum union";function _(L,k){if(!k.startOfLine)return!1;for(var Z,G=null;Z=L.peek();){if(Z=="\\"&&L.match(/^.$/)){G=_;break}else if(Z=="/"&&L.match(/^\/[\/\*]/,!1))break;L.next()}return k.tokenize=G,"meta"}function j(L,k){return k.prevToken=="type"?"type":!1}function U(L){return!L||L.length<2||L[0]!="_"?!1:L[1]=="_"||L[1]!==L[1].toLowerCase()}function re(L){return L.eatWhile(/[\w\.']/),"number"}function oe(L,k){if(L.backUp(1),L.match(/^(?:R|u8R|uR|UR|LR)/)){var Z=L.match(/^"([^\s\\()]{0,16})\(/);return Z?(k.cpp11RawStringDelim=Z[1],k.tokenize=X,X(L,k)):!1}return L.match(/^(?:u8|u|U|L)/)?L.match(/^["']/,!1)?"string":!1:(L.next(),!1)}function te(L){var k=/(\w+)::~?(\w+)$/.exec(L);return k&&k[1]==k[2]}function V(L,k){for(var Z;(Z=L.next())!=null;)if(Z=='"'&&!L.eat('"')){k.tokenize=null;break}return"string"}function X(L,k){var Z=k.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),G=L.match(new RegExp(".*?\\)"+Z+'"'));return G?k.tokenize=null:L.skipToEnd(),"string"}function Y(L,k){typeof L=="string"&&(L=[L]);var Z=[];function G(p){if(p)for(var ae in p)p.hasOwnProperty(ae)&&Z.push(ae)}G(k.keywords),G(k.types),G(k.builtin),G(k.atoms),Z.length&&(k.helperType=L[0],d.registerHelper("hintWords",L[0],Z));for(var v=0;v<L.length;++v)d.defineMIME(L[v],k)}Y(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:m(C),types:S,blockKeywords:m(y),defKeywords:m($),typeFirstDefinitions:!0,atoms:m("NULL true false"),isReservedIdentifier:U,hooks:{"#":_,"*":j},modeProps:{fold:["brace","include"]}}),Y(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:m(C+" "+A),types:S,blockKeywords:m(y+" class try catch"),defKeywords:m($+" class namespace"),typeFirstDefinitions:!0,atoms:m("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:U,hooks:{"#":_,"*":j,u:oe,U:oe,L:oe,R:oe,0:re,1:re,2:re,3:re,4:re,5:re,6:re,7:re,8:re,9:re,token:function(L,k,Z){if(Z=="variable"&&L.peek()=="("&&(k.prevToken==";"||k.prevToken==null||k.prevToken=="}")&&te(L.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),Y("text/x-java",{name:"clike",keywords:m("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:m("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:m("catch class do else finally for if switch try while"),defKeywords:m("class interface enum @interface"),typeFirstDefinitions:!0,atoms:m("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(L){return L.match("interface",!1)?!1:(L.eatWhile(/[\w\$_]/),"meta")},'"':function(L,k){return L.match(/""$/)?(k.tokenize=N,k.tokenize(L,k)):!1}},modeProps:{fold:["brace","import"]}}),Y("text/x-csharp",{name:"clike",keywords:m("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:m("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:m("catch class do else finally for foreach if struct switch try while"),defKeywords:m("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:m("true false null"),hooks:{"@":function(L,k){return L.eat('"')?(k.tokenize=V,V(L,k)):(L.eatWhile(/[\w\$_]/),"meta")}}});function N(L,k){for(var Z=!1;!L.eol();){if(!Z&&L.match('"""')){k.tokenize=null;break}Z=L.next()=="\\"&&!Z}return"string"}function D(L){return function(k,Z){for(var G;G=k.next();)if(G=="*"&&k.eat("/"))if(L==1){Z.tokenize=null;break}else return Z.tokenize=D(L-1),Z.tokenize(k,Z);else if(G=="/"&&k.eat("*"))return Z.tokenize=D(L+1),Z.tokenize(k,Z);return"comment"}}Y("text/x-scala",{name:"clike",keywords:m("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:m("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:m("catch class enum do else finally for forSome if match switch try while"),defKeywords:m("class enum def object package trait type val var"),atoms:m("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(L){return L.eatWhile(/[\w\$_]/),"meta"},'"':function(L,k){return L.match('""')?(k.tokenize=N,k.tokenize(L,k)):!1},"'":function(L){return L.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(L,k){var Z=k.context;return Z.type=="}"&&Z.align&&L.eat(">")?(k.context=new R(Z.indented,Z.column,Z.type,Z.info,null,Z.prev),"operator"):!1},"/":function(L,k){return L.eat("*")?(k.tokenize=D(1),k.tokenize(L,k)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function c(L){return function(k,Z){for(var G=!1,v,p=!1;!k.eol();){if(!L&&!G&&k.match('"')){p=!0;break}if(L&&k.match('"""')){p=!0;break}v=k.next(),!G&&v=="$"&&k.match("{")&&k.skipTo("}"),G=!G&&v=="\\"&&!L}return(p||!L)&&(Z.tokenize=null),"string"}}Y("text/x-kotlin",{name:"clike",keywords:m("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:m("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:m("catch class do else finally for if where try while enum"),defKeywords:m("class val var object interface fun"),atoms:m("true false null this"),hooks:{"@":function(L){return L.eatWhile(/[\w\$_]/),"meta"},"*":function(L,k){return k.prevToken=="."?"variable":"operator"},'"':function(L,k){return k.tokenize=c(L.match('""')),k.tokenize(L,k)},"/":function(L,k){return L.eat("*")?(k.tokenize=D(1),k.tokenize(L,k)):!1},indent:function(L,k,Z,G){var v=Z&&Z.charAt(0);if((L.prevToken=="}"||L.prevToken==")")&&Z=="")return L.indented;if(L.prevToken=="operator"&&Z!="}"&&L.context.type!="}"||L.prevToken=="variable"&&v=="."||(L.prevToken=="}"||L.prevToken==")")&&v==".")return G*2+k.indented;if(k.align&&k.type=="}")return k.indented+(L.context.type==(Z||"").charAt(0)?0:G)}},modeProps:{closeBrackets:{triples:'"'}}}),Y(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:m("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:m("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:m("for while do if else struct"),builtin:m("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:m("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":_},modeProps:{fold:["brace","include"]}}),Y("text/x-nesc",{name:"clike",keywords:m(C+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:S,blockKeywords:m(y),atoms:m("null true false"),hooks:{"#":_},modeProps:{fold:["brace","include"]}}),Y("text/x-objectivec",{name:"clike",keywords:m(C+" "+E),types:T,builtin:m(h),blockKeywords:m(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:m($+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:m("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:U,hooks:{"#":_,"*":j},modeProps:{fold:["brace","include"]}}),Y("text/x-objectivec++",{name:"clike",keywords:m(C+" "+E+" "+A),types:T,builtin:m(h),blockKeywords:m(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:m($+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:m("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:U,hooks:{"#":_,"*":j,u:oe,U:oe,L:oe,R:oe,0:re,1:re,2:re,3:re,4:re,5:re,6:re,7:re,8:re,9:re,token:function(L,k,Z){if(Z=="variable"&&L.peek()=="("&&(k.prevToken==";"||k.prevToken==null||k.prevToken=="}")&&te(L.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),Y("text/x-squirrel",{name:"clike",keywords:m("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:S,blockKeywords:m("case catch class else for foreach if switch try while"),defKeywords:m("function local class"),typeFirstDefinitions:!0,atoms:m("true false null"),hooks:{"#":_},modeProps:{fold:["brace","include"]}});var O=null;function q(L){return function(k,Z){for(var G=!1,v,p=!1;!k.eol();){if(!G&&k.match('"')&&(L=="single"||k.match('""'))){p=!0;break}if(!G&&k.match("``")){O=q(L),p=!0;break}v=k.next(),G=L=="single"&&!G&&v=="\\"}return p&&(Z.tokenize=null),"string"}}Y("text/x-ceylon",{name:"clike",keywords:m("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(L){var k=L.charAt(0);return k===k.toUpperCase()&&k!==k.toLowerCase()},blockKeywords:m("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:m("class dynamic function interface module object package value"),builtin:m("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:m("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(L){return L.eatWhile(/[\w\$_]/),"meta"},'"':function(L,k){return k.tokenize=q(L.match('""')?"triple":"single"),k.tokenize(L,k)},"`":function(L,k){return!O||!L.match("`")?!1:(k.tokenize=O,O=null,k.tokenize(L,k))},"'":function(L){return L.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(L,k,Z){if((Z=="variable"||Z=="type")&&k.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})});var za=Re((Ea,Ma)=>{(function(d){typeof Ea=="object"&&typeof Ma=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("diff",function(){var R={"+":"positive","-":"negative","@":"meta"};return{token:function(z){var F=z.string.search(/[\t ]+?$/);if(!z.sol()||F===0)return z.skipToEnd(),("error "+(R[z.string.charAt(0)]||"")).replace(/ $/,"");var I=R[z.peek()]||z.skipToEnd();return F===-1?z.skipToEnd():z.pos=F,I}}}),d.defineMIME("text/x-diff","diff")})});var Fa=Re((Aa,Da)=>{(function(d){typeof Aa=="object"&&typeof Da=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("fortran",function(){function R(A){for(var E={},h=0;h<A.length;++h)E[A[h]]=!0;return E}var z=R(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),F=R(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),I=R(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),P=/[+\-*&=<>\/\:]/,m=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function B(A,E){if(A.match(m))return"operator";var h=A.next();if(h=="!")return A.skipToEnd(),"comment";if(h=='"'||h=="'")return E.tokenize=C(h),E.tokenize(A,E);if(/[\[\]\(\),]/.test(h))return null;if(/\d/.test(h))return A.eatWhile(/[\w\.]/),"number";if(P.test(h))return A.eatWhile(P),"operator";A.eatWhile(/[\w\$_]/);var b=A.current().toLowerCase();return z.hasOwnProperty(b)?"keyword":F.hasOwnProperty(b)||I.hasOwnProperty(b)?"builtin":"variable"}function C(A){return function(E,h){for(var b=!1,g,S=!1;(g=E.next())!=null;){if(g==A&&!b){S=!0;break}b=!b&&g=="\\"}return(S||!b)&&(h.tokenize=null),"string"}}return{startState:function(){return{tokenize:null}},token:function(A,E){if(A.eatSpace())return null;var h=(E.tokenize||B)(A,E);return h=="comment"||h=="meta",h}}}),d.defineMIME("text/x-fortran","fortran")})});var Pa=Re((Ia,Oa)=>{(function(d){typeof Ia=="object"&&typeof Oa=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("go",function(R){var z=R.indentUnit,F={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},I={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},P=/[+\-*&^%:=<>!|\/]/,m;function B(g,S){var T=g.next();if(T=='"'||T=="'"||T=="`")return S.tokenize=C(T),S.tokenize(g,S);if(/[\d\.]/.test(T))return T=="."?g.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):T=="0"?g.match(/^[xX][0-9a-fA-F]+/)||g.match(/^0[0-7]+/):g.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(T))return m=T,null;if(T=="/"){if(g.eat("*"))return S.tokenize=A,A(g,S);if(g.eat("/"))return g.skipToEnd(),"comment"}if(P.test(T))return g.eatWhile(P),"operator";g.eatWhile(/[\w\$_\xa1-\uffff]/);var y=g.current();return F.propertyIsEnumerable(y)?((y=="case"||y=="default")&&(m="case"),"keyword"):I.propertyIsEnumerable(y)?"atom":"variable"}function C(g){return function(S,T){for(var y=!1,$,_=!1;($=S.next())!=null;){if($==g&&!y){_=!0;break}y=!y&&g!="`"&&$=="\\"}return(_||!(y||g=="`"))&&(T.tokenize=B),"string"}}function A(g,S){for(var T=!1,y;y=g.next();){if(y=="/"&&T){S.tokenize=B;break}T=y=="*"}return"comment"}function E(g,S,T,y,$){this.indented=g,this.column=S,this.type=T,this.align=y,this.prev=$}function h(g,S,T){return g.context=new E(g.indented,S,T,null,g.context)}function b(g){if(!!g.context.prev){var S=g.context.type;return(S==")"||S=="]"||S=="}")&&(g.indented=g.context.indented),g.context=g.context.prev}}return{startState:function(g){return{tokenize:null,context:new E((g||0)-z,0,"top",!1),indented:0,startOfLine:!0}},token:function(g,S){var T=S.context;if(g.sol()&&(T.align==null&&(T.align=!1),S.indented=g.indentation(),S.startOfLine=!0,T.type=="case"&&(T.type="}")),g.eatSpace())return null;m=null;var y=(S.tokenize||B)(g,S);return y=="comment"||(T.align==null&&(T.align=!0),m=="{"?h(S,g.column(),"}"):m=="["?h(S,g.column(),"]"):m=="("?h(S,g.column(),")"):m=="case"?T.type="case":(m=="}"&&T.type=="}"||m==T.type)&&b(S),S.startOfLine=!1),y},indent:function(g,S){if(g.tokenize!=B&&g.tokenize!=null)return d.Pass;var T=g.context,y=S&&S.charAt(0);if(T.type=="case"&&/^(?:case|default)\b/.test(S))return g.context.type="}",T.indented;var $=y==T.type;return T.align?T.column+($?0:1):T.indented+($?0:z)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),d.defineMIME("text/x-go","go")})});var Ra=Re((Na,qa)=>{(function(d){typeof Na=="object"&&typeof qa=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("haskell",function(R,z){function F(_,j,U){return j(U),U(_,j)}var I=/[a-z_]/,P=/[A-Z]/,m=/\d/,B=/[0-9A-Fa-f]/,C=/[0-7]/,A=/[a-z_A-Z0-9'\xa1-\uffff]/,E=/[-!#$%&*+.\/<=>?@\\^|~:]/,h=/[(),;[\]`{}]/,b=/[ \t\v\f]/;function g(_,j){if(_.eatWhile(b))return null;var U=_.next();if(h.test(U)){if(U=="{"&&_.eat("-")){var re="comment";return _.eat("#")&&(re="meta"),F(_,j,S(re,1))}return null}if(U=="'")return _.eat("\\"),_.next(),_.eat("'")?"string":"string error";if(U=='"')return F(_,j,T);if(P.test(U))return _.eatWhile(A),_.eat(".")?"qualifier":"variable-2";if(I.test(U))return _.eatWhile(A),"variable";if(m.test(U)){if(U=="0"){if(_.eat(/[xX]/))return _.eatWhile(B),"integer";if(_.eat(/[oO]/))return _.eatWhile(C),"number"}_.eatWhile(m);var re="number";return _.match(/^\.\d+/)&&(re="number"),_.eat(/[eE]/)&&(re="number",_.eat(/[-+]/),_.eatWhile(m)),re}if(U=="."&&_.eat("."))return"keyword";if(E.test(U)){if(U=="-"&&_.eat(/-/)&&(_.eatWhile(/-/),!_.eat(E)))return _.skipToEnd(),"comment";var re="variable";return U==":"&&(re="variable-2"),_.eatWhile(E),re}return"error"}function S(_,j){return j==0?g:function(U,re){for(var oe=j;!U.eol();){var te=U.next();if(te=="{"&&U.eat("-"))++oe;else if(te=="-"&&U.eat("}")&&(--oe,oe==0))return re(g),_}return re(S(_,oe)),_}}function T(_,j){for(;!_.eol();){var U=_.next();if(U=='"')return j(g),"string";if(U=="\\"){if(_.eol()||_.eat(b))return j(y),"string";_.eat("&")||_.next()}}return j(g),"string error"}function y(_,j){return _.eat("\\")?F(_,j,T):(_.next(),j(g),"error")}var $=function(){var _={};function j(oe){return function(){for(var te=0;te<arguments.length;te++)_[arguments[te]]=oe}}j("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_"),j("keyword")("..",":","::","=","\\","<-","->","@","~","=>"),j("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),j("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),j("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var U=z.overrideKeywords;if(U)for(var re in U)U.hasOwnProperty(re)&&(_[re]=U[re]);return _}();return{startState:function(){return{f:g}},copyState:function(_){return{f:_.f}},token:function(_,j){var U=j.f(_,function(oe){j.f=oe}),re=_.current();return $.hasOwnProperty(re)?$[re]:U},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),d.defineMIME("text/x-haskell","haskell")})});var yi=Re((Wa,Ba)=>{(function(d){typeof Wa=="object"&&typeof Ba=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";var R={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},z={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};d.defineMode("xml",function(F,I){var P=F.indentUnit,m={},B=I.htmlMode?R:z;for(var C in B)m[C]=B[C];for(var C in I)m[C]=I[C];var A,E;function h(c,O){function q(Z){return O.tokenize=Z,Z(c,O)}var L=c.next();if(L=="<")return c.eat("!")?c.eat("[")?c.match("CDATA[")?q(S("atom","]]>")):null:c.match("--")?q(S("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),q(T(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),O.tokenize=S("meta","?>"),"meta"):(A=c.eat("/")?"closeTag":"openTag",O.tokenize=b,"tag bracket");if(L=="&"){var k;return c.eat("#")?c.eat("x")?k=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):k=c.eatWhile(/[\d]/)&&c.eat(";"):k=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),k?"atom":"error"}else return c.eatWhile(/[^&<]/),null}h.isInText=!0;function b(c,O){var q=c.next();if(q==">"||q=="/"&&c.eat(">"))return O.tokenize=h,A=q==">"?"endTag":"selfcloseTag","tag bracket";if(q=="=")return A="equals",null;if(q=="<"){O.tokenize=h,O.state=U,O.tagName=O.tagStart=null;var L=O.tokenize(c,O);return L?L+" tag error":"tag error"}else return/[\'\"]/.test(q)?(O.tokenize=g(q),O.stringStartCol=c.column(),O.tokenize(c,O)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function g(c){var O=function(q,L){for(;!q.eol();)if(q.next()==c){L.tokenize=b;break}return"string"};return O.isInAttribute=!0,O}function S(c,O){return function(q,L){for(;!q.eol();){if(q.match(O)){L.tokenize=h;break}q.next()}return c}}function T(c){return function(O,q){for(var L;(L=O.next())!=null;){if(L=="<")return q.tokenize=T(c+1),q.tokenize(O,q);if(L==">")if(c==1){q.tokenize=h;break}else return q.tokenize=T(c-1),q.tokenize(O,q)}return"meta"}}function y(c){return c&&c.toLowerCase()}function $(c,O,q){this.prev=c.context,this.tagName=O||"",this.indent=c.indented,this.startOfLine=q,(m.doNotIndent.hasOwnProperty(O)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function _(c){c.context&&(c.context=c.context.prev)}function j(c,O){for(var q;;){if(!c.context||(q=c.context.tagName,!m.contextGrabbers.hasOwnProperty(y(q))||!m.contextGrabbers[y(q)].hasOwnProperty(y(O))))return;_(c)}}function U(c,O,q){return c=="openTag"?(q.tagStart=O.column(),re):c=="closeTag"?oe:U}function re(c,O,q){return c=="word"?(q.tagName=O.current(),E="tag",X):m.allowMissingTagName&&c=="endTag"?(E="tag bracket",X(c,O,q)):(E="error",re)}function oe(c,O,q){if(c=="word"){var L=O.current();return q.context&&q.context.tagName!=L&&m.implicitlyClosed.hasOwnProperty(y(q.context.tagName))&&_(q),q.context&&q.context.tagName==L||m.matchClosing===!1?(E="tag",te):(E="tag error",V)}else return m.allowMissingTagName&&c=="endTag"?(E="tag bracket",te(c,O,q)):(E="error",V)}function te(c,O,q){return c!="endTag"?(E="error",te):(_(q),U)}function V(c,O,q){return E="error",te(c,O,q)}function X(c,O,q){if(c=="word")return E="attribute",Y;if(c=="endTag"||c=="selfcloseTag"){var L=q.tagName,k=q.tagStart;return q.tagName=q.tagStart=null,c=="selfcloseTag"||m.autoSelfClosers.hasOwnProperty(y(L))?j(q,L):(j(q,L),q.context=new $(q,L,k==q.indented)),U}return E="error",X}function Y(c,O,q){return c=="equals"?N:(m.allowMissing||(E="error"),X(c,O,q))}function N(c,O,q){return c=="string"?D:c=="word"&&m.allowUnquoted?(E="string",X):(E="error",X(c,O,q))}function D(c,O,q){return c=="string"?D:X(c,O,q)}return{startState:function(c){var O={tokenize:h,state:U,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(O.baseIndent=c),O},token:function(c,O){if(!O.tagName&&c.sol()&&(O.indented=c.indentation()),c.eatSpace())return null;A=null;var q=O.tokenize(c,O);return(q||A)&&q!="comment"&&(E=null,O.state=O.state(A||q,c,O),E&&(q=E=="error"?q+" error":E)),q},indent:function(c,O,q){var L=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+P;if(L&&L.noIndent)return d.Pass;if(c.tokenize!=b&&c.tokenize!=h)return q?q.match(/^(\s*)/)[0].length:0;if(c.tagName)return m.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+P*(m.multilineTagIndentFactor||1);if(m.alignCDATA&&/<!\[CDATA\[/.test(O))return 0;var k=O&&/^<(\/)?([\w_:\.-]*)/.exec(O);if(k&&k[1])for(;L;)if(L.tagName==k[2]){L=L.prev;break}else if(m.implicitlyClosed.hasOwnProperty(y(L.tagName)))L=L.prev;else break;else if(k)for(;L;){var Z=m.contextGrabbers[y(L.tagName)];if(Z&&Z.hasOwnProperty(y(k[2])))L=L.prev;else break}for(;L&&L.prev&&!L.startOfLine;)L=L.prev;return L?L.indent+P:c.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:m.htmlMode?"html":"xml",helperType:m.htmlMode?"html":"xml",skipAttribute:function(c){c.state==N&&(c.state=X)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var O=[],q=c.context;q;q=q.prev)O.push(q.tagName);return O.reverse()}}}),d.defineMIME("text/xml","xml"),d.defineMIME("application/xml","xml"),d.mimeModes.hasOwnProperty("text/html")||d.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var ko=Re((ja,Ha)=>{(function(d){typeof ja=="object"&&typeof Ha=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("javascript",function(R,z){var F=R.indentUnit,I=z.statementIndent,P=z.jsonld,m=z.json||P,B=z.trackScope!==!1,C=z.typescript,A=z.wordCharacters||/[\w$\xa1-\uffff]/,E=function(){function u(we){return{type:we,style:"keyword"}}var x=u("keyword a"),ee=u("keyword b"),ue=u("keyword c"),Me=u("keyword d"),Ne=u("operator"),Ke={type:"atom",style:"atom"};return{if:u("if"),while:x,with:x,else:ee,do:ee,try:ee,finally:ee,return:Me,break:Me,continue:Me,new:u("new"),delete:ue,void:ue,throw:ue,debugger:u("debugger"),var:u("var"),const:u("var"),let:u("var"),function:u("function"),catch:u("catch"),for:u("for"),switch:u("switch"),case:u("case"),default:u("default"),in:Ne,typeof:Ne,instanceof:Ne,true:Ke,false:Ke,null:Ke,undefined:Ke,NaN:Ke,Infinity:Ke,this:u("this"),class:u("class"),super:u("atom"),yield:ue,export:u("export"),import:u("import"),extends:ue,await:ue}}(),h=/[+\-*&%=<>!?|~^@]/,b=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(u){for(var x=!1,ee,ue=!1;(ee=u.next())!=null;){if(!x){if(ee=="/"&&!ue)return;ee=="["?ue=!0:ue&&ee=="]"&&(ue=!1)}x=!x&&ee=="\\"}}var S,T;function y(u,x,ee){return S=u,T=ee,x}function $(u,x){var ee=u.next();if(ee=='"'||ee=="'")return x.tokenize=_(ee),x.tokenize(u,x);if(ee=="."&&u.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return y("number","number");if(ee=="."&&u.match(".."))return y("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ee))return y(ee);if(ee=="="&&u.eat(">"))return y("=>","operator");if(ee=="0"&&u.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return y("number","number");if(/\d/.test(ee))return u.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),y("number","number");if(ee=="/")return u.eat("*")?(x.tokenize=j,j(u,x)):u.eat("/")?(u.skipToEnd(),y("comment","comment")):qr(u,x,1)?(g(u),u.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),y("regexp","string-2")):(u.eat("="),y("operator","operator",u.current()));if(ee=="`")return x.tokenize=U,U(u,x);if(ee=="#"&&u.peek()=="!")return u.skipToEnd(),y("meta","meta");if(ee=="#"&&u.eatWhile(A))return y("variable","property");if(ee=="<"&&u.match("!--")||ee=="-"&&u.match("->")&&!/\S/.test(u.string.slice(0,u.start)))return u.skipToEnd(),y("comment","comment");if(h.test(ee))return(ee!=">"||!x.lexical||x.lexical.type!=">")&&(u.eat("=")?(ee=="!"||ee=="=")&&u.eat("="):/[<>*+\-|&?]/.test(ee)&&(u.eat(ee),ee==">"&&u.eat(ee))),ee=="?"&&u.eat(".")?y("."):y("operator","operator",u.current());if(A.test(ee)){u.eatWhile(A);var ue=u.current();if(x.lastType!="."){if(E.propertyIsEnumerable(ue)){var Me=E[ue];return y(Me.type,Me.style,ue)}if(ue=="async"&&u.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return y("async","keyword",ue)}return y("variable","variable",ue)}}function _(u){return function(x,ee){var ue=!1,Me;if(P&&x.peek()=="@"&&x.match(b))return ee.tokenize=$,y("jsonld-keyword","meta");for(;(Me=x.next())!=null&&!(Me==u&&!ue);)ue=!ue&&Me=="\\";return ue||(ee.tokenize=$),y("string","string")}}function j(u,x){for(var ee=!1,ue;ue=u.next();){if(ue=="/"&&ee){x.tokenize=$;break}ee=ue=="*"}return y("comment","comment")}function U(u,x){for(var ee=!1,ue;(ue=u.next())!=null;){if(!ee&&(ue=="`"||ue=="$"&&u.eat("{"))){x.tokenize=$;break}ee=!ee&&ue=="\\"}return y("quasi","string-2",u.current())}var re="([{}])";function oe(u,x){x.fatArrowAt&&(x.fatArrowAt=null);var ee=u.string.indexOf("=>",u.start);if(!(ee<0)){if(C){var ue=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(u.string.slice(u.start,ee));ue&&(ee=ue.index)}for(var Me=0,Ne=!1,Ke=ee-1;Ke>=0;--Ke){var we=u.string.charAt(Ke),Pt=re.indexOf(we);if(Pt>=0&&Pt<3){if(!Me){++Ke;break}if(--Me==0){we=="("&&(Ne=!0);break}}else if(Pt>=3&&Pt<6)++Me;else if(A.test(we))Ne=!0;else if(/["'\/`]/.test(we))for(;;--Ke){if(Ke==0)return;var Bn=u.string.charAt(Ke-1);if(Bn==we&&u.string.charAt(Ke-2)!="\\"){Ke--;break}}else if(Ne&&!Me){++Ke;break}}Ne&&!Me&&(x.fatArrowAt=Ke)}}var te={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function V(u,x,ee,ue,Me,Ne){this.indented=u,this.column=x,this.type=ee,this.prev=Me,this.info=Ne,ue!=null&&(this.align=ue)}function X(u,x){if(!B)return!1;for(var ee=u.localVars;ee;ee=ee.next)if(ee.name==x)return!0;for(var ue=u.context;ue;ue=ue.prev)for(var ee=ue.vars;ee;ee=ee.next)if(ee.name==x)return!0}function Y(u,x,ee,ue,Me){var Ne=u.cc;for(N.state=u,N.stream=Me,N.marked=null,N.cc=Ne,N.style=x,u.lexical.hasOwnProperty("align")||(u.lexical.align=!0);;){var Ke=Ne.length?Ne.pop():m?fe:ze;if(Ke(ee,ue)){for(;Ne.length&&Ne[Ne.length-1].lex;)Ne.pop()();return N.marked?N.marked:ee=="variable"&&X(u,ue)?"variable-2":x}}}var N={state:null,column:null,marked:null,cc:null};function D(){for(var u=arguments.length-1;u>=0;u--)N.cc.push(arguments[u])}function c(){return D.apply(null,arguments),!0}function O(u,x){for(var ee=x;ee;ee=ee.next)if(ee.name==u)return!0;return!1}function q(u){var x=N.state;if(N.marked="def",!!B){if(x.context){if(x.lexical.info=="var"&&x.context&&x.context.block){var ee=L(u,x.context);if(ee!=null){x.context=ee;return}}else if(!O(u,x.localVars)){x.localVars=new G(u,x.localVars);return}}z.globalVars&&!O(u,x.globalVars)&&(x.globalVars=new G(u,x.globalVars))}}function L(u,x){if(x)if(x.block){var ee=L(u,x.prev);return ee?ee==x.prev?x:new Z(ee,x.vars,!0):null}else return O(u,x.vars)?x:new Z(x.prev,new G(u,x.vars),!1);else return null}function k(u){return u=="public"||u=="private"||u=="protected"||u=="abstract"||u=="readonly"}function Z(u,x,ee){this.prev=u,this.vars=x,this.block=ee}function G(u,x){this.name=u,this.next=x}var v=new G("this",new G("arguments",null));function p(){N.state.context=new Z(N.state.context,N.state.localVars,!1),N.state.localVars=v}function ae(){N.state.context=new Z(N.state.context,N.state.localVars,!0),N.state.localVars=null}p.lex=ae.lex=!0;function ge(){N.state.localVars=N.state.context.vars,N.state.context=N.state.context.prev}ge.lex=!0;function se(u,x){var ee=function(){var ue=N.state,Me=ue.indented;if(ue.lexical.type=="stat")Me=ue.lexical.indented;else for(var Ne=ue.lexical;Ne&&Ne.type==")"&&Ne.align;Ne=Ne.prev)Me=Ne.indented;ue.lexical=new V(Me,N.stream.column(),u,null,ue.lexical,x)};return ee.lex=!0,ee}function de(){var u=N.state;u.lexical.prev&&(u.lexical.type==")"&&(u.indented=u.lexical.indented),u.lexical=u.lexical.prev)}de.lex=!0;function Le(u){function x(ee){return ee==u?c():u==";"||ee=="}"||ee==")"||ee=="]"?D():c(x)}return x}function ze(u,x){return u=="var"?c(se("vardef",x),Ir,Le(";"),de):u=="keyword a"?c(se("form"),De,ze,de):u=="keyword b"?c(se("form"),ze,de):u=="keyword d"?N.stream.match(/^\s*$/,!1)?c():c(se("stat"),mt,Le(";"),de):u=="debugger"?c(Le(";")):u=="{"?c(se("}"),ae,lr,de,ge):u==";"?c():u=="if"?(N.state.lexical.info=="else"&&N.state.cc[N.state.cc.length-1]==de&&N.state.cc.pop()(),c(se("form"),De,ze,de,Pr)):u=="function"?c(Ht):u=="for"?c(se("form"),ae,Rn,ze,ge,de):u=="class"||C&&x=="interface"?(N.marked="keyword",c(se("form",u=="class"?u:x),xr,de)):u=="variable"?C&&x=="declare"?(N.marked="keyword",c(ze)):C&&(x=="module"||x=="enum"||x=="type")&&N.stream.match(/^\s*\w/,!1)?(N.marked="keyword",x=="enum"?c(Be):x=="type"?c(Zt,Le("operator"),Fe,Le(";")):c(se("form"),At,Le("{"),se("}"),lr,de,de)):C&&x=="namespace"?(N.marked="keyword",c(se("form"),fe,ze,de)):C&&x=="abstract"?(N.marked="keyword",c(ze)):c(se("stat"),Oe):u=="switch"?c(se("form"),De,Le("{"),se("}","switch"),ae,lr,de,de,ge):u=="case"?c(fe,Le(":")):u=="default"?c(Le(":")):u=="catch"?c(se("form"),p,ne,ze,de,ge):u=="export"?c(se("stat"),Qt,de):u=="import"?c(se("stat"),Wn,de):u=="async"?c(ze):x=="@"?c(fe,ze):D(se("stat"),fe,Le(";"),de)}function ne(u){if(u=="(")return c(Yt,Le(")"))}function fe(u,x){return Ye(u,x,!1)}function ye(u,x){return Ye(u,x,!0)}function De(u){return u!="("?D():c(se(")"),mt,Le(")"),de)}function Ye(u,x,ee){if(N.state.fatArrowAt==N.stream.start){var ue=ee?qe:Ge;if(u=="(")return c(p,se(")"),Ae(Yt,")"),de,Le("=>"),ue,ge);if(u=="variable")return D(p,At,Le("=>"),ue,ge)}var Me=ee?je:xe;return te.hasOwnProperty(u)?c(Me):u=="function"?c(Ht,Me):u=="class"||C&&x=="interface"?(N.marked="keyword",c(se("form"),_i,de)):u=="keyword c"||u=="async"?c(ee?ye:fe):u=="("?c(se(")"),mt,Le(")"),de,Me):u=="operator"||u=="spread"?c(ee?ye:fe):u=="["?c(se("]"),Ot,de,Me):u=="{"?gt(Ee,"}",null,Me):u=="quasi"?D(rt,Me):u=="new"?c(K(ee)):c()}function mt(u){return u.match(/[;\}\)\],]/)?D():D(fe)}function xe(u,x){return u==","?c(mt):je(u,x,!1)}function je(u,x,ee){var ue=ee==!1?xe:je,Me=ee==!1?fe:ye;if(u=="=>")return c(p,ee?qe:Ge,ge);if(u=="operator")return/\+\+|--/.test(x)||C&&x=="!"?c(ue):C&&x=="<"&&N.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(se(">"),Ae(Fe,">"),de,ue):x=="?"?c(fe,Le(":"),Me):c(Me);if(u=="quasi")return D(rt,ue);if(u!=";"){if(u=="(")return gt(ye,")","call",ue);if(u==".")return c(be,ue);if(u=="[")return c(se("]"),mt,Le("]"),de,ue);if(C&&x=="as")return N.marked="keyword",c(Fe,ue);if(u=="regexp")return N.state.lastType=N.marked="operator",N.stream.backUp(N.stream.pos-N.stream.start-1),c(Me)}}function rt(u,x){return u!="quasi"?D():x.slice(x.length-2)!="${"?c(rt):c(mt,lt)}function lt(u){if(u=="}")return N.marked="string-2",N.state.tokenize=U,c(rt)}function Ge(u){return oe(N.stream,N.state),D(u=="{"?ze:fe)}function qe(u){return oe(N.stream,N.state),D(u=="{"?ze:ye)}function K(u){return function(x){return x=="."?c(u?J:le):x=="variable"&&C?c(ln,u?je:xe):D(u?ye:fe)}}function le(u,x){if(x=="target")return N.marked="keyword",c(xe)}function J(u,x){if(x=="target")return N.marked="keyword",c(je)}function Oe(u){return u==":"?c(de,ze):D(xe,Le(";"),de)}function be(u){if(u=="variable")return N.marked="property",c()}function Ee(u,x){if(u=="async")return N.marked="property",c(Ee);if(u=="variable"||N.style=="keyword"){if(N.marked="property",x=="get"||x=="set")return c(_e);var ee;return C&&N.state.fatArrowAt==N.stream.start&&(ee=N.stream.match(/^\s*:\s*/,!1))&&(N.state.fatArrowAt=N.stream.pos+ee[0].length),c(Pe)}else{if(u=="number"||u=="string")return N.marked=P?"property":N.style+" property",c(Pe);if(u=="jsonld-keyword")return c(Pe);if(C&&k(x))return N.marked="keyword",c(Ee);if(u=="[")return c(fe,bt,Le("]"),Pe);if(u=="spread")return c(ye,Pe);if(x=="*")return N.marked="keyword",c(Ee);if(u==":")return D(Pe)}}function _e(u){return u!="variable"?D(Pe):(N.marked="property",c(Ht))}function Pe(u){if(u==":")return c(ye);if(u=="(")return D(Ht)}function Ae(u,x,ee){function ue(Me,Ne){if(ee?ee.indexOf(Me)>-1:Me==","){var Ke=N.state.lexical;return Ke.info=="call"&&(Ke.pos=(Ke.pos||0)+1),c(function(we,Pt){return we==x||Pt==x?D():D(u)},ue)}return Me==x||Ne==x?c():ee&&ee.indexOf(";")>-1?D(u):c(Le(x))}return function(Me,Ne){return Me==x||Ne==x?c():D(u,ue)}}function gt(u,x,ee){for(var ue=3;ue<arguments.length;ue++)N.cc.push(arguments[ue]);return c(se(x,ee),Ae(u,x),de)}function lr(u){return u=="}"?c():D(ze,lr)}function bt(u,x){if(C){if(u==":")return c(Fe);if(x=="?")return c(bt)}}function qn(u,x){if(C&&(u==":"||x=="in"))return c(Fe)}function Ce(u){if(C&&u==":")return N.stream.match(/^\s*\w+\s+is\b/,!1)?c(fe,on,Fe):c(Fe)}function on(u,x){if(x=="is")return N.marked="keyword",c()}function Fe(u,x){if(x=="keyof"||x=="typeof"||x=="infer"||x=="readonly")return N.marked="keyword",c(x=="typeof"?ye:Fe);if(u=="variable"||x=="void")return N.marked="type",c(Ft);if(x=="|"||x=="&")return c(Fe);if(u=="string"||u=="number"||u=="atom")return c(Ft);if(u=="[")return c(se("]"),Ae(Fe,"]",","),de,Ft);if(u=="{")return c(se("}"),et,de,Ft);if(u=="(")return c(Ae(st,")"),Ve,Ft);if(u=="<")return c(Ae(Fe,">"),Fe);if(u=="quasi")return D(xt,Ft)}function Ve(u){if(u=="=>")return c(Fe)}function et(u){return u.match(/[\}\)\]]/)?c():u==","||u==";"?c(et):D(ar,et)}function ar(u,x){if(u=="variable"||N.style=="keyword")return N.marked="property",c(ar);if(x=="?"||u=="number"||u=="string")return c(ar);if(u==":")return c(Fe);if(u=="[")return c(Le("variable"),qn,Le("]"),ar);if(u=="(")return D(Ut,ar);if(!u.match(/[;\}\)\],]/))return c()}function xt(u,x){return u!="quasi"?D():x.slice(x.length-2)!="${"?c(xt):c(Fe,sr)}function sr(u){if(u=="}")return N.marked="string-2",N.state.tokenize=U,c(xt)}function st(u,x){return u=="variable"&&N.stream.match(/^\s*[?:]/,!1)||x=="?"?c(st):u==":"?c(Fe):u=="spread"?c(st):D(Fe)}function Ft(u,x){if(x=="<")return c(se(">"),Ae(Fe,">"),de,Ft);if(x=="|"||u=="."||x=="&")return c(Fe);if(u=="[")return c(Fe,Le("]"),Ft);if(x=="extends"||x=="implements")return N.marked="keyword",c(Fe);if(x=="?")return c(Fe,Le(":"),Fe)}function ln(u,x){if(x=="<")return c(se(">"),Ae(Fe,">"),de,Ft)}function Bt(){return D(Fe,an)}function an(u,x){if(x=="=")return c(Fe)}function Ir(u,x){return x=="enum"?(N.marked="keyword",c(Be)):D(At,bt,It,xi)}function At(u,x){if(C&&k(x))return N.marked="keyword",c(At);if(u=="variable")return q(x),c();if(u=="spread")return c(At);if(u=="[")return gt(bi,"]");if(u=="{")return gt(Or,"}")}function Or(u,x){return u=="variable"&&!N.stream.match(/^\s*:/,!1)?(q(x),c(It)):(u=="variable"&&(N.marked="property"),u=="spread"?c(At):u=="}"?D():u=="["?c(fe,Le("]"),Le(":"),Or):c(Le(":"),At,It))}function bi(){return D(At,It)}function It(u,x){if(x=="=")return c(ye)}function xi(u){if(u==",")return c(Ir)}function Pr(u,x){if(u=="keyword b"&&x=="else")return c(se("form","else"),ze,de)}function Rn(u,x){if(x=="await")return c(Rn);if(u=="(")return c(se(")"),ki,de)}function ki(u){return u=="var"?c(Ir,jt):u=="variable"?c(jt):D(jt)}function jt(u,x){return u==")"?c():u==";"?c(jt):x=="in"||x=="of"?(N.marked="keyword",c(fe,jt)):D(fe,jt)}function Ht(u,x){if(x=="*")return N.marked="keyword",c(Ht);if(u=="variable")return q(x),c(Ht);if(u=="(")return c(p,se(")"),Ae(Yt,")"),de,Ce,ze,ge);if(C&&x=="<")return c(se(">"),Ae(Bt,">"),de,Ht)}function Ut(u,x){if(x=="*")return N.marked="keyword",c(Ut);if(u=="variable")return q(x),c(Ut);if(u=="(")return c(p,se(")"),Ae(Yt,")"),de,Ce,ge);if(C&&x=="<")return c(se(">"),Ae(Bt,">"),de,Ut)}function Zt(u,x){if(u=="keyword"||u=="variable")return N.marked="type",c(Zt);if(x=="<")return c(se(">"),Ae(Bt,">"),de)}function Yt(u,x){return x=="@"&&c(fe,Yt),u=="spread"?c(Yt):C&&k(x)?(N.marked="keyword",c(Yt)):C&&u=="this"?c(bt,It):D(At,bt,It)}function _i(u,x){return u=="variable"?xr(u,x):ur(u,x)}function xr(u,x){if(u=="variable")return q(x),c(ur)}function ur(u,x){if(x=="<")return c(se(">"),Ae(Bt,">"),de,ur);if(x=="extends"||x=="implements"||C&&u==",")return x=="implements"&&(N.marked="keyword"),c(C?Fe:fe,ur);if(u=="{")return c(se("}"),kt,de)}function kt(u,x){if(u=="async"||u=="variable"&&(x=="static"||x=="get"||x=="set"||C&&k(x))&&N.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return N.marked="keyword",c(kt);if(u=="variable"||N.style=="keyword")return N.marked="property",c(kr,kt);if(u=="number"||u=="string")return c(kr,kt);if(u=="[")return c(fe,bt,Le("]"),kr,kt);if(x=="*")return N.marked="keyword",c(kt);if(C&&u=="(")return D(Ut,kt);if(u==";"||u==",")return c(kt);if(u=="}")return c();if(x=="@")return c(fe,kt)}function kr(u,x){if(x=="!"||x=="?")return c(kr);if(u==":")return c(Fe,It);if(x=="=")return c(ye);var ee=N.state.lexical.prev,ue=ee&&ee.info=="interface";return D(ue?Ut:Ht)}function Qt(u,x){return x=="*"?(N.marked="keyword",c(_r,Le(";"))):x=="default"?(N.marked="keyword",c(fe,Le(";"))):u=="{"?c(Ae(Nr,"}"),_r,Le(";")):D(ze)}function Nr(u,x){if(x=="as")return N.marked="keyword",c(Le("variable"));if(u=="variable")return D(ye,Nr)}function Wn(u){return u=="string"?c():u=="("?D(fe):u=="."?D(xe):D(Ze,ke,_r)}function Ze(u,x){return u=="{"?gt(Ze,"}"):(u=="variable"&&q(x),x=="*"&&(N.marked="keyword"),c(Jt))}function ke(u){if(u==",")return c(Ze,ke)}function Jt(u,x){if(x=="as")return N.marked="keyword",c(Ze)}function _r(u,x){if(x=="from")return N.marked="keyword",c(fe)}function Ot(u){return u=="]"?c():D(Ae(ye,"]"))}function Be(){return D(se("form"),At,Le("{"),se("}"),Ae(Vt,"}"),de,de)}function Vt(){return D(At,It)}function wr(u,x){return u.lastType=="operator"||u.lastType==","||h.test(x.charAt(0))||/[,.]/.test(x.charAt(0))}function qr(u,x,ee){return x.tokenize==$&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(x.lastType)||x.lastType=="quasi"&&/\{\s*$/.test(u.string.slice(0,u.pos-(ee||0)))}return{startState:function(u){var x={tokenize:$,lastType:"sof",cc:[],lexical:new V((u||0)-F,0,"block",!1),localVars:z.localVars,context:z.localVars&&new Z(null,null,!1),indented:u||0};return z.globalVars&&typeof z.globalVars=="object"&&(x.globalVars=z.globalVars),x},token:function(u,x){if(u.sol()&&(x.lexical.hasOwnProperty("align")||(x.lexical.align=!1),x.indented=u.indentation(),oe(u,x)),x.tokenize!=j&&u.eatSpace())return null;var ee=x.tokenize(u,x);return S=="comment"?ee:(x.lastType=S=="operator"&&(T=="++"||T=="--")?"incdec":S,Y(x,ee,S,T,u))},indent:function(u,x){if(u.tokenize==j||u.tokenize==U)return d.Pass;if(u.tokenize!=$)return 0;var ee=x&&x.charAt(0),ue=u.lexical,Me;if(!/^\s*else\b/.test(x))for(var Ne=u.cc.length-1;Ne>=0;--Ne){var Ke=u.cc[Ne];if(Ke==de)ue=ue.prev;else if(Ke!=Pr&&Ke!=ge)break}for(;(ue.type=="stat"||ue.type=="form")&&(ee=="}"||(Me=u.cc[u.cc.length-1])&&(Me==xe||Me==je)&&!/^[,\.=+\-*:?[\(]/.test(x));)ue=ue.prev;I&&ue.type==")"&&ue.prev.type=="stat"&&(ue=ue.prev);var we=ue.type,Pt=ee==we;return we=="vardef"?ue.indented+(u.lastType=="operator"||u.lastType==","?ue.info.length+1:0):we=="form"&&ee=="{"?ue.indented:we=="form"?ue.indented+F:we=="stat"?ue.indented+(wr(u,x)?I||F:0):ue.info=="switch"&&!Pt&&z.doubleIndentSwitch!=!1?ue.indented+(/^(?:case|default)\b/.test(x)?F:2*F):ue.align?ue.column+(Pt?0:1):ue.indented+(Pt?0:F)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:m?null:"/*",blockCommentEnd:m?null:"*/",blockCommentContinue:m?null:" * ",lineComment:m?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:m?"json":"javascript",jsonldMode:P,jsonMode:m,expressionAllowed:qr,skipExpression:function(u){Y(u,"atom","atom","true",new d.StringStream("",2,null))}}}),d.registerHelper("wordChars","javascript",/[\w$]/),d.defineMIME("text/javascript","javascript"),d.defineMIME("text/ecmascript","javascript"),d.defineMIME("application/javascript","javascript"),d.defineMIME("application/x-javascript","javascript"),d.defineMIME("application/ecmascript","javascript"),d.defineMIME("application/json",{name:"javascript",json:!0}),d.defineMIME("application/x-json",{name:"javascript",json:!0}),d.defineMIME("application/manifest+json",{name:"javascript",json:!0}),d.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),d.defineMIME("text/typescript",{name:"javascript",typescript:!0}),d.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var _o=Re((Ua,Ka)=>{(function(d){typeof Ua=="object"&&typeof Ka=="object"?d(We(),yi(),ko(),bo()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],d):d(CodeMirror)})(function(d){"use strict";var R={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function z(A,E,h){var b=A.current(),g=b.search(E);return g>-1?A.backUp(b.length-g):b.match(/<\/?$/)&&(A.backUp(b.length),A.match(E,!1)||A.match(b)),h}var F={};function I(A){var E=F[A];return E||(F[A]=new RegExp("\\s+"+A+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function P(A,E){var h=A.match(I(E));return h?/^\s*(.*?)\s*$/.exec(h[2])[1]:""}function m(A,E){return new RegExp((E?"^":"")+"</\\s*"+A+"\\s*>","i")}function B(A,E){for(var h in A)for(var b=E[h]||(E[h]=[]),g=A[h],S=g.length-1;S>=0;S--)b.unshift(g[S])}function C(A,E){for(var h=0;h<A.length;h++){var b=A[h];if(!b[0]||b[1].test(P(E,b[0])))return b[2]}}d.defineMode("htmlmixed",function(A,E){var h=d.getMode(A,{name:"xml",htmlMode:!0,multilineTagIndentFactor:E.multilineTagIndentFactor,multilineTagIndentPastTag:E.multilineTagIndentPastTag,allowMissingTagName:E.allowMissingTagName}),b={},g=E&&E.tags,S=E&&E.scriptTypes;if(B(R,b),g&&B(g,b),S)for(var T=S.length-1;T>=0;T--)b.script.unshift(["type",S[T].matches,S[T].mode]);function y($,_){var j=h.token($,_.htmlState),U=/\btag\b/.test(j),re;if(U&&!/[<>\s\/]/.test($.current())&&(re=_.htmlState.tagName&&_.htmlState.tagName.toLowerCase())&&b.hasOwnProperty(re))_.inTag=re+" ";else if(_.inTag&&U&&/>$/.test($.current())){var oe=/^([\S]+) (.*)/.exec(_.inTag);_.inTag=null;var te=$.current()==">"&&C(b[oe[1]],oe[2]),V=d.getMode(A,te),X=m(oe[1],!0),Y=m(oe[1],!1);_.token=function(N,D){return N.match(X,!1)?(D.token=y,D.localState=D.localMode=null,null):z(N,Y,D.localMode.token(N,D.localState))},_.localMode=V,_.localState=d.startState(V,h.indent(_.htmlState,"",""))}else _.inTag&&(_.inTag+=$.current(),$.eol()&&(_.inTag+=" "));return j}return{startState:function(){var $=d.startState(h);return{token:y,inTag:null,localMode:null,localState:null,htmlState:$}},copyState:function($){var _;return $.localState&&(_=d.copyState($.localMode,$.localState)),{token:$.token,inTag:$.inTag,localMode:$.localMode,localState:_,htmlState:d.copyState(h,$.htmlState)}},token:function($,_){return _.token($,_)},indent:function($,_,j){return!$.localMode||/^\s*<\//.test(_)?h.indent($.htmlState,_,j):$.localMode.indent?$.localMode.indent($.localState,_,j):d.Pass},innerMode:function($){return{state:$.localState||$.htmlState,mode:$.localMode||h}}}},"xml","javascript","css"),d.defineMIME("text/html","htmlmixed")})});var Xa=Re(($a,Ga)=>{(function(d){typeof $a=="object"&&typeof Ga=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("julia",function(R,z){function F(G,v,p){return typeof p>"u"&&(p=""),typeof v>"u"&&(v="\\b"),new RegExp("^"+p+"(("+G.join(")|(")+"))"+v)}var I="\\\\[0-7]{1,3}",P="\\\\x[A-Fa-f0-9]{1,2}",m=`\\\\[abefnrtv0%?'"\\\\]`,B="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])",C=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],A=z.operators||F(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),E=z.delimiters||/^[;,()[\]{}]/,h=z.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,b=F([I,P,m,B],"'"),g=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],S=["end","else","elseif","catch","finally"],T=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],y=["true","false","nothing","NaN","Inf"];d.registerHelper("hintWords","julia",T.concat(y));var $=F(g),_=F(S),j=F(T),U=F(y),re=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,oe=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,te=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,V=F(C,"","@"),X=F(C,"",":");function Y(G){return G.nestedArrays>0}function N(G){return G.nestedGenerators>0}function D(G,v){return typeof v>"u"&&(v=0),G.scopes.length<=v?null:G.scopes[G.scopes.length-(v+1)]}function c(G,v){if(G.match("#=",!1))return v.tokenize=q,v.tokenize(G,v);var p=v.leavingExpr;if(G.sol()&&(p=!1),v.leavingExpr=!1,p&&G.match(/^'+/))return"operator";if(G.match(/\.{4,}/))return"error";if(G.match(/\.{1,3}/))return"operator";if(G.eatSpace())return null;var ae=G.peek();if(ae==="#")return G.skipToEnd(),"comment";if(ae==="["&&(v.scopes.push("["),v.nestedArrays++),ae==="("&&(v.scopes.push("("),v.nestedGenerators++),Y(v)&&ae==="]"){for(;v.scopes.length&&D(v)!=="[";)v.scopes.pop();v.scopes.pop(),v.nestedArrays--,v.leavingExpr=!0}if(N(v)&&ae===")"){for(;v.scopes.length&&D(v)!=="(";)v.scopes.pop();v.scopes.pop(),v.nestedGenerators--,v.leavingExpr=!0}if(Y(v)){if(v.lastToken=="end"&&G.match(":"))return"operator";if(G.match("end"))return"number"}var ge;if((ge=G.match($,!1))&&v.scopes.push(ge[0]),G.match(_,!1)&&v.scopes.pop(),G.match(/^::(?![:\$])/))return v.tokenize=O,v.tokenize(G,v);if(!p&&(G.match(oe)||G.match(X)))return"builtin";if(G.match(A))return"operator";if(G.match(/^\.?\d/,!1)){var se=RegExp(/^im\b/),de=!1;if(G.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(de=!0),G.match(/^0x[0-9a-f_]+/i)&&(de=!0),G.match(/^0b[01_]+/i)&&(de=!0),G.match(/^0o[0-7_]+/i)&&(de=!0),G.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(de=!0),G.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(de=!0),de)return G.match(se),v.leavingExpr=!0,"number"}if(G.match("'"))return v.tokenize=L,v.tokenize(G,v);if(G.match(te))return v.tokenize=k(G.current()),v.tokenize(G,v);if(G.match(re)||G.match(V))return"meta";if(G.match(E))return null;if(G.match(j))return"keyword";if(G.match(U))return"builtin";var Le=v.isDefinition||v.lastToken=="function"||v.lastToken=="macro"||v.lastToken=="type"||v.lastToken=="struct"||v.lastToken=="immutable";return G.match(h)?Le?G.peek()==="."?(v.isDefinition=!0,"variable"):(v.isDefinition=!1,"def"):(v.leavingExpr=!0,"variable"):(G.next(),"error")}function O(G,v){return G.match(/.*?(?=[,;{}()=\s]|$)/),G.match("{")?v.nestedParameters++:G.match("}")&&v.nestedParameters>0&&v.nestedParameters--,v.nestedParameters>0?G.match(/.*?(?={|})/)||G.next():v.nestedParameters==0&&(v.tokenize=c),"builtin"}function q(G,v){return G.match("#=")&&v.nestedComments++,G.match(/.*?(?=(#=|=#))/)||G.skipToEnd(),G.match("=#")&&(v.nestedComments--,v.nestedComments==0&&(v.tokenize=c)),"comment"}function L(G,v){var p=!1,ae;if(G.match(b))p=!0;else if(ae=G.match(/\\u([a-f0-9]{1,4})(?=')/i)){var ge=parseInt(ae[1],16);(ge<=55295||ge>=57344)&&(p=!0,G.next())}else if(ae=G.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var ge=parseInt(ae[1],16);ge<=1114111&&(p=!0,G.next())}return p?(v.leavingExpr=!0,v.tokenize=c,"string"):(G.match(/^[^']+(?=')/)||G.skipToEnd(),G.match("'")&&(v.tokenize=c),"error")}function k(G){G.substr(-3)==='"""'?G='"""':G.substr(-1)==='"'&&(G='"');function v(p,ae){if(p.eat("\\"))p.next();else{if(p.match(G))return ae.tokenize=c,ae.leavingExpr=!0,"string";p.eat(/[`"]/)}return p.eatWhile(/[^\\`"]/),"string"}return v}var Z={startState:function(){return{tokenize:c,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(G,v){var p=v.tokenize(G,v),ae=G.current();return ae&&p&&(v.lastToken=ae),p},indent:function(G,v){var p=0;return(v==="]"||v===")"||/^end\b/.test(v)||/^else/.test(v)||/^catch\b/.test(v)||/^elseif\b/.test(v)||/^finally/.test(v))&&(p=-1),(G.scopes.length+p)*R.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"};return Z}),d.defineMIME("text/x-julia","julia")})});var Qa=Re((Za,Ya)=>{(function(d){typeof Za=="object"&&typeof Ya=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("lua",function(R,z){var F=R.indentUnit;function I(y){return new RegExp("^(?:"+y.join("|")+")","i")}function P(y){return new RegExp("^(?:"+y.join("|")+")$","i")}var m=P(z.specials||[]),B=P(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),C=P(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),A=P(["function","if","repeat","do","\\(","{"]),E=P(["end","until","\\)","}"]),h=I(["end","until","\\)","}","else","elseif"]);function b(y){for(var $=0;y.eat("=");)++$;return y.eat("["),$}function g(y,$){var _=y.next();return _=="-"&&y.eat("-")?y.eat("[")&&y.eat("[")?($.cur=S(b(y),"comment"))(y,$):(y.skipToEnd(),"comment"):_=='"'||_=="'"?($.cur=T(_))(y,$):_=="["&&/[\[=]/.test(y.peek())?($.cur=S(b(y),"string"))(y,$):/\d/.test(_)?(y.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(_)?(y.eatWhile(/[\w\\\-_.]/),"variable"):null}function S(y,$){return function(_,j){for(var U=null,re;(re=_.next())!=null;)if(U==null)re=="]"&&(U=0);else if(re=="=")++U;else if(re=="]"&&U==y){j.cur=g;break}else U=null;return $}}function T(y){return function($,_){for(var j=!1,U;(U=$.next())!=null&&!(U==y&&!j);)j=!j&&U=="\\";return j||(_.cur=g),"string"}}return{startState:function(y){return{basecol:y||0,indentDepth:0,cur:g}},token:function(y,$){if(y.eatSpace())return null;var _=$.cur(y,$),j=y.current();return _=="variable"&&(C.test(j)?_="keyword":B.test(j)?_="builtin":m.test(j)&&(_="variable-2")),_!="comment"&&_!="string"&&(A.test(j)?++$.indentDepth:E.test(j)&&--$.indentDepth),_},indent:function(y,$){var _=h.test($);return y.basecol+F*(y.indentDepth-(_?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),d.defineMIME("text/x-lua","lua")})});var es=Re((Ja,Va)=>{(function(d){typeof Ja=="object"&&typeof Va=="object"?d(We()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var R=0;R<d.modeInfo.length;R++){var z=d.modeInfo[R];z.mimes&&(z.mime=z.mimes[0])}d.findModeByMIME=function(F){F=F.toLowerCase();for(var I=0;I<d.modeInfo.length;I++){var P=d.modeInfo[I];if(P.mime==F)return P;if(P.mimes){for(var m=0;m<P.mimes.length;m++)if(P.mimes[m]==F)return P}}if(/\+xml$/.test(F))return d.findModeByMIME("application/xml");if(/\+json$/.test(F))return d.findModeByMIME("application/json")},d.findModeByExtension=function(F){F=F.toLowerCase();for(var I=0;I<d.modeInfo.length;I++){var P=d.modeInfo[I];if(P.ext){for(var m=0;m<P.ext.length;m++)if(P.ext[m]==F)return P}}},d.findModeByFileName=function(F){for(var I=0;I<d.modeInfo.length;I++){var P=d.modeInfo[I];if(P.file&&P.file.test(F))return P}var m=F.lastIndexOf("."),B=m>-1&&F.substring(m+1,F.length);if(B)return d.findModeByExtension(B)},d.findModeByName=function(F){F=F.toLowerCase();for(var I=0;I<d.modeInfo.length;I++){var P=d.modeInfo[I];if(P.name.toLowerCase()==F)return P;if(P.alias){for(var m=0;m<P.alias.length;m++)if(P.alias[m].toLowerCase()==F)return P}}}})});var ns=Re((ts,rs)=>{(function(d){typeof ts=="object"&&typeof rs=="object"?d(We(),yi(),es()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("markdown",function(R,z){var F=d.getMode(R,"text/html"),I=F.name=="null";function P(v){if(d.findModeByName){var p=d.findModeByName(v);p&&(v=p.mime||p.mimes[0])}var ae=d.getMode(R,v);return ae.name=="null"?null:ae}z.highlightFormatting===void 0&&(z.highlightFormatting=!1),z.maxBlockquoteDepth===void 0&&(z.maxBlockquoteDepth=0),z.taskLists===void 0&&(z.taskLists=!1),z.strikethrough===void 0&&(z.strikethrough=!1),z.emoji===void 0&&(z.emoji=!1),z.fencedCodeBlockHighlighting===void 0&&(z.fencedCodeBlockHighlighting=!0),z.fencedCodeBlockDefaultMode===void 0&&(z.fencedCodeBlockDefaultMode="text/plain"),z.xml===void 0&&(z.xml=!0),z.tokenTypeOverrides===void 0&&(z.tokenTypeOverrides={});var m={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var B in m)m.hasOwnProperty(B)&&z.tokenTypeOverrides[B]&&(m[B]=z.tokenTypeOverrides[B]);var C=/^([*\-_])(?:\s*\1){2,}\s*$/,A=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,E=/^\[(x| )\](?=\s)/i,h=z.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,b=/^ {0,3}(?:\={1,}|-{2,})\s*$/,g=/^[^#!\[\]*_\\<>` "'(~:]+/,S=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,T=/^\s*\[[^\]]+?\]:.*$/,y=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,$=" ";function _(v,p,ae){return p.f=p.inline=ae,ae(v,p)}function j(v,p,ae){return p.f=p.block=ae,ae(v,p)}function U(v){return!v||!/\S/.test(v.string)}function re(v){if(v.linkTitle=!1,v.linkHref=!1,v.linkText=!1,v.em=!1,v.strong=!1,v.strikethrough=!1,v.quote=0,v.indentedCode=!1,v.f==te){var p=I;if(!p){var ae=d.innerMode(F,v.htmlState);p=ae.mode.name=="xml"&&ae.state.tagStart===null&&!ae.state.context&&ae.state.tokenize.isInText}p&&(v.f=N,v.block=oe,v.htmlState=null)}return v.trailingSpace=0,v.trailingSpaceNewLine=!1,v.prevLine=v.thisLine,v.thisLine={stream:null},null}function oe(v,p){var ae=v.column()===p.indentation,ge=U(p.prevLine.stream),se=p.indentedCode,de=p.prevLine.hr,Le=p.list!==!1,ze=(p.listStack[p.listStack.length-1]||0)+3;p.indentedCode=!1;var ne=p.indentation;if(p.indentationDiff===null&&(p.indentationDiff=p.indentation,Le)){for(p.list=null;ne<p.listStack[p.listStack.length-1];)p.listStack.pop(),p.listStack.length?p.indentation=p.listStack[p.listStack.length-1]:p.list=!1;p.list!==!1&&(p.indentationDiff=ne-p.listStack[p.listStack.length-1])}var fe=!ge&&!de&&!p.prevLine.header&&(!Le||!se)&&!p.prevLine.fencedCodeEnd,ye=(p.list===!1||de||ge)&&p.indentation<=ze&&v.match(C),De=null;if(p.indentationDiff>=4&&(se||p.prevLine.fencedCodeEnd||p.prevLine.header||ge))return v.skipToEnd(),p.indentedCode=!0,m.code;if(v.eatSpace())return null;if(ae&&p.indentation<=ze&&(De=v.match(h))&&De[1].length<=6)return p.quote=0,p.header=De[1].length,p.thisLine.header=!0,z.highlightFormatting&&(p.formatting="header"),p.f=p.inline,X(p);if(p.indentation<=ze&&v.eat(">"))return p.quote=ae?1:p.quote+1,z.highlightFormatting&&(p.formatting="quote"),v.eatSpace(),X(p);if(!ye&&!p.setext&&ae&&p.indentation<=ze&&(De=v.match(A))){var Ye=De[1]?"ol":"ul";return p.indentation=ne+v.current().length,p.list=!0,p.quote=0,p.listStack.push(p.indentation),p.em=!1,p.strong=!1,p.code=!1,p.strikethrough=!1,z.taskLists&&v.match(E,!1)&&(p.taskList=!0),p.f=p.inline,z.highlightFormatting&&(p.formatting=["list","list-"+Ye]),X(p)}else{if(ae&&p.indentation<=ze&&(De=v.match(S,!0)))return p.quote=0,p.fencedEndRE=new RegExp(De[1]+"+ *$"),p.localMode=z.fencedCodeBlockHighlighting&&P(De[2]||z.fencedCodeBlockDefaultMode),p.localMode&&(p.localState=d.startState(p.localMode)),p.f=p.block=V,z.highlightFormatting&&(p.formatting="code-block"),p.code=-1,X(p);if(p.setext||(!fe||!Le)&&!p.quote&&p.list===!1&&!p.code&&!ye&&!T.test(v.string)&&(De=v.lookAhead(1))&&(De=De.match(b)))return p.setext?(p.header=p.setext,p.setext=0,v.skipToEnd(),z.highlightFormatting&&(p.formatting="header")):(p.header=De[0].charAt(0)=="="?1:2,p.setext=p.header),p.thisLine.header=!0,p.f=p.inline,X(p);if(ye)return v.skipToEnd(),p.hr=!0,p.thisLine.hr=!0,m.hr;if(v.peek()==="[")return _(v,p,L)}return _(v,p,p.inline)}function te(v,p){var ae=F.token(v,p.htmlState);if(!I){var ge=d.innerMode(F,p.htmlState);(ge.mode.name=="xml"&&ge.state.tagStart===null&&!ge.state.context&&ge.state.tokenize.isInText||p.md_inside&&v.current().indexOf(">")>-1)&&(p.f=N,p.block=oe,p.htmlState=null)}return ae}function V(v,p){var ae=p.listStack[p.listStack.length-1]||0,ge=p.indentation<ae,se=ae+3;if(p.fencedEndRE&&p.indentation<=se&&(ge||v.match(p.fencedEndRE))){z.highlightFormatting&&(p.formatting="code-block");var de;return ge||(de=X(p)),p.localMode=p.localState=null,p.block=oe,p.f=N,p.fencedEndRE=null,p.code=0,p.thisLine.fencedCodeEnd=!0,ge?j(v,p,p.block):de}else return p.localMode?p.localMode.token(v,p.localState):(v.skipToEnd(),m.code)}function X(v){var p=[];if(v.formatting){p.push(m.formatting),typeof v.formatting=="string"&&(v.formatting=[v.formatting]);for(var ae=0;ae<v.formatting.length;ae++)p.push(m.formatting+"-"+v.formatting[ae]),v.formatting[ae]==="header"&&p.push(m.formatting+"-"+v.formatting[ae]+"-"+v.header),v.formatting[ae]==="quote"&&(!z.maxBlockquoteDepth||z.maxBlockquoteDepth>=v.quote?p.push(m.formatting+"-"+v.formatting[ae]+"-"+v.quote):p.push("error"))}if(v.taskOpen)return p.push("meta"),p.length?p.join(" "):null;if(v.taskClosed)return p.push("property"),p.length?p.join(" "):null;if(v.linkHref?p.push(m.linkHref,"url"):(v.strong&&p.push(m.strong),v.em&&p.push(m.em),v.strikethrough&&p.push(m.strikethrough),v.emoji&&p.push(m.emoji),v.linkText&&p.push(m.linkText),v.code&&p.push(m.code),v.image&&p.push(m.image),v.imageAltText&&p.push(m.imageAltText,"link"),v.imageMarker&&p.push(m.imageMarker)),v.header&&p.push(m.header,m.header+"-"+v.header),v.quote&&(p.push(m.quote),!z.maxBlockquoteDepth||z.maxBlockquoteDepth>=v.quote?p.push(m.quote+"-"+v.quote):p.push(m.quote+"-"+z.maxBlockquoteDepth)),v.list!==!1){var ge=(v.listStack.length-1)%3;ge?ge===1?p.push(m.list2):p.push(m.list3):p.push(m.list1)}return v.trailingSpaceNewLine?p.push("trailing-space-new-line"):v.trailingSpace&&p.push("trailing-space-"+(v.trailingSpace%2?"a":"b")),p.length?p.join(" "):null}function Y(v,p){if(v.match(g,!0))return X(p)}function N(v,p){var ae=p.text(v,p);if(typeof ae<"u")return ae;if(p.list)return p.list=null,X(p);if(p.taskList){var ge=v.match(E,!0)[1]===" ";return ge?p.taskOpen=!0:p.taskClosed=!0,z.highlightFormatting&&(p.formatting="task"),p.taskList=!1,X(p)}if(p.taskOpen=!1,p.taskClosed=!1,p.header&&v.match(/^#+$/,!0))return z.highlightFormatting&&(p.formatting="header"),X(p);var se=v.next();if(p.linkTitle){p.linkTitle=!1;var de=se;se==="("&&(de=")"),de=(de+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Le="^\\s*(?:[^"+de+"\\\\]+|\\\\\\\\|\\\\.)"+de;if(v.match(new RegExp(Le),!0))return m.linkHref}if(se==="`"){var ze=p.formatting;z.highlightFormatting&&(p.formatting="code"),v.eatWhile("`");var ne=v.current().length;if(p.code==0&&(!p.quote||ne==1))return p.code=ne,X(p);if(ne==p.code){var fe=X(p);return p.code=0,fe}else return p.formatting=ze,X(p)}else if(p.code)return X(p);if(se==="\\"&&(v.next(),z.highlightFormatting)){var ye=X(p),De=m.formatting+"-escape";return ye?ye+" "+De:De}if(se==="!"&&v.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return p.imageMarker=!0,p.image=!0,z.highlightFormatting&&(p.formatting="image"),X(p);if(se==="["&&p.imageMarker&&v.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return p.imageMarker=!1,p.imageAltText=!0,z.highlightFormatting&&(p.formatting="image"),X(p);if(se==="]"&&p.imageAltText){z.highlightFormatting&&(p.formatting="image");var ye=X(p);return p.imageAltText=!1,p.image=!1,p.inline=p.f=c,ye}if(se==="["&&!p.image)return p.linkText&&v.match(/^.*?\]/)||(p.linkText=!0,z.highlightFormatting&&(p.formatting="link")),X(p);if(se==="]"&&p.linkText){z.highlightFormatting&&(p.formatting="link");var ye=X(p);return p.linkText=!1,p.inline=p.f=v.match(/\(.*?\)| ?\[.*?\]/,!1)?c:N,ye}if(se==="<"&&v.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){p.f=p.inline=D,z.highlightFormatting&&(p.formatting="link");var ye=X(p);return ye?ye+=" ":ye="",ye+m.linkInline}if(se==="<"&&v.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){p.f=p.inline=D,z.highlightFormatting&&(p.formatting="link");var ye=X(p);return ye?ye+=" ":ye="",ye+m.linkEmail}if(z.xml&&se==="<"&&v.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ye=v.string.indexOf(">",v.pos);if(Ye!=-1){var mt=v.string.substring(v.start,Ye);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(mt)&&(p.md_inside=!0)}return v.backUp(1),p.htmlState=d.startState(F),j(v,p,te)}if(z.xml&&se==="<"&&v.match(/^\/\w*?>/))return p.md_inside=!1,"tag";if(se==="*"||se==="_"){for(var xe=1,je=v.pos==1?" ":v.string.charAt(v.pos-2);xe<3&&v.eat(se);)xe++;var rt=v.peek()||" ",lt=!/\s/.test(rt)&&(!y.test(rt)||/\s/.test(je)||y.test(je)),Ge=!/\s/.test(je)&&(!y.test(je)||/\s/.test(rt)||y.test(rt)),qe=null,K=null;if(xe%2&&(!p.em&<&&(se==="*"||!Ge||y.test(je))?qe=!0:p.em==se&&Ge&&(se==="*"||!lt||y.test(rt))&&(qe=!1)),xe>1&&(!p.strong&<&&(se==="*"||!Ge||y.test(je))?K=!0:p.strong==se&&Ge&&(se==="*"||!lt||y.test(rt))&&(K=!1)),K!=null||qe!=null){z.highlightFormatting&&(p.formatting=qe==null?"strong":K==null?"em":"strong em"),qe===!0&&(p.em=se),K===!0&&(p.strong=se);var fe=X(p);return qe===!1&&(p.em=!1),K===!1&&(p.strong=!1),fe}}else if(se===" "&&(v.eat("*")||v.eat("_"))){if(v.peek()===" ")return X(p);v.backUp(1)}if(z.strikethrough){if(se==="~"&&v.eatWhile(se)){if(p.strikethrough){z.highlightFormatting&&(p.formatting="strikethrough");var fe=X(p);return p.strikethrough=!1,fe}else if(v.match(/^[^\s]/,!1))return p.strikethrough=!0,z.highlightFormatting&&(p.formatting="strikethrough"),X(p)}else if(se===" "&&v.match("~~",!0)){if(v.peek()===" ")return X(p);v.backUp(2)}}if(z.emoji&&se===":"&&v.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){p.emoji=!0,z.highlightFormatting&&(p.formatting="emoji");var le=X(p);return p.emoji=!1,le}return se===" "&&(v.match(/^ +$/,!1)?p.trailingSpace++:p.trailingSpace&&(p.trailingSpaceNewLine=!0)),X(p)}function D(v,p){var ae=v.next();if(ae===">"){p.f=p.inline=N,z.highlightFormatting&&(p.formatting="link");var ge=X(p);return ge?ge+=" ":ge="",ge+m.linkInline}return v.match(/^[^>]+/,!0),m.linkInline}function c(v,p){if(v.eatSpace())return null;var ae=v.next();return ae==="("||ae==="["?(p.f=p.inline=q(ae==="("?")":"]"),z.highlightFormatting&&(p.formatting="link-string"),p.linkHref=!0,X(p)):"error"}var O={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function q(v){return function(p,ae){var ge=p.next();if(ge===v){ae.f=ae.inline=N,z.highlightFormatting&&(ae.formatting="link-string");var se=X(ae);return ae.linkHref=!1,se}return p.match(O[v]),ae.linkHref=!0,X(ae)}}function L(v,p){return v.match(/^([^\]\\]|\\.)*\]:/,!1)?(p.f=k,v.next(),z.highlightFormatting&&(p.formatting="link"),p.linkText=!0,X(p)):_(v,p,N)}function k(v,p){if(v.match("]:",!0)){p.f=p.inline=Z,z.highlightFormatting&&(p.formatting="link");var ae=X(p);return p.linkText=!1,ae}return v.match(/^([^\]\\]|\\.)+/,!0),m.linkText}function Z(v,p){return v.eatSpace()?null:(v.match(/^[^\s]+/,!0),v.peek()===void 0?p.linkTitle=!0:v.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),p.f=p.inline=N,m.linkHref+" url")}var G={startState:function(){return{f:oe,prevLine:{stream:null},thisLine:{stream:null},block:oe,htmlState:null,indentation:0,inline:N,text:Y,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(v){return{f:v.f,prevLine:v.prevLine,thisLine:v.thisLine,block:v.block,htmlState:v.htmlState&&d.copyState(F,v.htmlState),indentation:v.indentation,localMode:v.localMode,localState:v.localMode?d.copyState(v.localMode,v.localState):null,inline:v.inline,text:v.text,formatting:!1,linkText:v.linkText,linkTitle:v.linkTitle,linkHref:v.linkHref,code:v.code,em:v.em,strong:v.strong,strikethrough:v.strikethrough,emoji:v.emoji,header:v.header,setext:v.setext,hr:v.hr,taskList:v.taskList,list:v.list,listStack:v.listStack.slice(0),quote:v.quote,indentedCode:v.indentedCode,trailingSpace:v.trailingSpace,trailingSpaceNewLine:v.trailingSpaceNewLine,md_inside:v.md_inside,fencedEndRE:v.fencedEndRE}},token:function(v,p){if(p.formatting=!1,v!=p.thisLine.stream){if(p.header=0,p.hr=!1,v.match(/^\s*$/,!0))return re(p),null;if(p.prevLine=p.thisLine,p.thisLine={stream:v},p.taskList=!1,p.trailingSpace=0,p.trailingSpaceNewLine=!1,!p.localState&&(p.f=p.block,p.f!=te)){var ae=v.match(/^\s*/,!0)[0].replace(/\t/g,$).length;if(p.indentation=ae,p.indentationDiff=null,ae>0)return null}}return p.f(v,p)},innerMode:function(v){return v.block==te?{state:v.htmlState,mode:F}:v.localState?{state:v.localState,mode:v.localMode}:{state:v,mode:G}},indent:function(v,p,ae){return v.block==te&&F.indent?F.indent(v.htmlState,p,ae):v.localState&&v.localMode.indent?v.localMode.indent(v.localState,p,ae):d.Pass},blankLine:re,getType:X,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return G},"xml"),d.defineMIME("text/markdown","markdown"),d.defineMIME("text/x-markdown","markdown")})});var ls=Re((is,os)=>{(function(d){typeof is=="object"&&typeof os=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("mllike",function(R,z){var F={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},I=z.extraWords||{};for(var P in I)I.hasOwnProperty(P)&&(F[P]=z.extraWords[P]);var m=[];for(var B in F)m.push(B);d.registerHelper("hintWords","mllike",m);function C(b,g){var S=b.next();if(S==='"')return g.tokenize=A,g.tokenize(b,g);if(S==="{"&&b.eat("|"))return g.longString=!0,g.tokenize=h,g.tokenize(b,g);if(S==="("&&b.match(/^\*(?!\))/))return g.commentLevel++,g.tokenize=E,g.tokenize(b,g);if(S==="~"||S==="?")return b.eatWhile(/\w/),"variable-2";if(S==="`")return b.eatWhile(/\w/),"quote";if(S==="/"&&z.slashComments&&b.eat("/"))return b.skipToEnd(),"comment";if(/\d/.test(S))return S==="0"&&b.eat(/[bB]/)&&b.eatWhile(/[01]/),S==="0"&&b.eat(/[xX]/)&&b.eatWhile(/[0-9a-fA-F]/),S==="0"&&b.eat(/[oO]/)?b.eatWhile(/[0-7]/):(b.eatWhile(/[\d_]/),b.eat(".")&&b.eatWhile(/[\d]/),b.eat(/[eE]/)&&b.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(S))return"operator";if(/[\w\xa1-\uffff]/.test(S)){b.eatWhile(/[\w\xa1-\uffff]/);var T=b.current();return F.hasOwnProperty(T)?F[T]:"variable"}return null}function A(b,g){for(var S,T=!1,y=!1;(S=b.next())!=null;){if(S==='"'&&!y){T=!0;break}y=!y&&S==="\\"}return T&&!y&&(g.tokenize=C),"string"}function E(b,g){for(var S,T;g.commentLevel>0&&(T=b.next())!=null;)S==="("&&T==="*"&&g.commentLevel++,S==="*"&&T===")"&&g.commentLevel--,S=T;return g.commentLevel<=0&&(g.tokenize=C),"comment"}function h(b,g){for(var S,T;g.longString&&(T=b.next())!=null;)S==="|"&&T==="}"&&(g.longString=!1),S=T;return g.longString||(g.tokenize=C),"string"}return{startState:function(){return{tokenize:C,commentLevel:0,longString:!1}},token:function(b,g){return b.eatSpace()?null:g.tokenize(b,g)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:z.slashComments?"//":null}}),d.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),d.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),d.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})})});var us=Re((as,ss)=>{(function(d){typeof as=="object"&&typeof ss=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("nginx",function(R){function z(g){for(var S={},T=g.split(" "),y=0;y<T.length;++y)S[T[y]]=!0;return S}var F=z("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),I=z("http mail events server types location upstream charset_map limit_except if geo map"),P=z("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),m=R.indentUnit,B;function C(g,S){return B=S,g}function A(g,S){g.eatWhile(/[\w\$_]/);var T=g.current();if(F.propertyIsEnumerable(T))return"keyword";if(I.propertyIsEnumerable(T))return"variable-2";if(P.propertyIsEnumerable(T))return"string-2";var y=g.next();if(y=="@")return g.eatWhile(/[\w\\\-]/),C("meta",g.current());if(y=="/"&&g.eat("*"))return S.tokenize=E,E(g,S);if(y=="<"&&g.eat("!"))return S.tokenize=h,h(g,S);if(y=="=")C(null,"compare");else return(y=="~"||y=="|")&&g.eat("=")?C(null,"compare"):y=='"'||y=="'"?(S.tokenize=b(y),S.tokenize(g,S)):y=="#"?(g.skipToEnd(),C("comment","comment")):y=="!"?(g.match(/^\s*\w*/),C("keyword","important")):/\d/.test(y)?(g.eatWhile(/[\w.%]/),C("number","unit")):/[,.+>*\/]/.test(y)?C(null,"select-op"):/[;{}:\[\]]/.test(y)?C(null,y):(g.eatWhile(/[\w\\\-]/),C("variable","variable"))}function E(g,S){for(var T=!1,y;(y=g.next())!=null;){if(T&&y=="/"){S.tokenize=A;break}T=y=="*"}return C("comment","comment")}function h(g,S){for(var T=0,y;(y=g.next())!=null;){if(T>=2&&y==">"){S.tokenize=A;break}T=y=="-"?T+1:0}return C("comment","comment")}function b(g){return function(S,T){for(var y=!1,$;($=S.next())!=null&&!($==g&&!y);)y=!y&&$=="\\";return y||(T.tokenize=A),C("string","string")}}return{startState:function(g){return{tokenize:A,baseIndent:g||0,stack:[]}},token:function(g,S){if(g.eatSpace())return null;B=null;var T=S.tokenize(g,S),y=S.stack[S.stack.length-1];return B=="hash"&&y=="rule"?T="atom":T=="variable"&&(y=="rule"?T="number":(!y||y=="@media{")&&(T="tag")),y=="rule"&&/^[\{\};]$/.test(B)&&S.stack.pop(),B=="{"?y=="@media"?S.stack[S.stack.length-1]="@media{":S.stack.push("{"):B=="}"?S.stack.pop():B=="@media"?S.stack.push("@media"):y=="{"&&B!="comment"&&S.stack.push("rule"),T},indent:function(g,S){var T=g.stack.length;return/^\}/.test(S)&&(T-=g.stack[g.stack.length-1]=="rule"?2:1),g.baseIndent+T*m},electricChars:"}"}}),d.defineMIME("text/x-nginx-conf","nginx")})});var ds=Re((cs,fs)=>{(function(d){typeof cs=="object"&&typeof fs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("perl",function(){var P={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},m="string-2",B=/[goseximacplud]/;function C(h,b,g,S,T){return b.chain=null,b.style=null,b.tail=null,b.tokenize=function(y,$){for(var _=!1,j,U=0;j=y.next();){if(j===g[U]&&!_)return g[++U]!==void 0?($.chain=g[U],$.style=S,$.tail=T):T&&y.eatWhile(T),$.tokenize=E,S;_=!_&&j=="\\"}return S},b.tokenize(h,b)}function A(h,b,g){return b.tokenize=function(S,T){return S.string==g&&(T.tokenize=E),S.skipToEnd(),"string"},b.tokenize(h,b)}function E(h,b){if(h.eatSpace())return null;if(b.chain)return C(h,b,b.chain,b.style,b.tail);if(h.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(h.match(/^<<(?=[_a-zA-Z])/))return h.eatWhile(/\w/),A(h,b,h.current().substr(2));if(h.sol()&&h.match(/^\=item(?!\w)/))return A(h,b,"=cut");var g=h.next();if(g=='"'||g=="'"){if(z(h,3)=="<<"+g){var S=h.pos;h.eatWhile(/\w/);var T=h.current().substr(1);if(T&&h.eat(g))return A(h,b,T);h.pos=S}return C(h,b,[g],"string")}if(g=="q"){var y=R(h,-2);if(!(y&&/\w/.test(y))){if(y=R(h,0),y=="x"){if(y=R(h,1),y=="(")return I(h,2),C(h,b,[")"],m,B);if(y=="[")return I(h,2),C(h,b,["]"],m,B);if(y=="{")return I(h,2),C(h,b,["}"],m,B);if(y=="<")return I(h,2),C(h,b,[">"],m,B);if(/[\^'"!~\/]/.test(y))return I(h,1),C(h,b,[h.eat(y)],m,B)}else if(y=="q"){if(y=R(h,1),y=="(")return I(h,2),C(h,b,[")"],"string");if(y=="[")return I(h,2),C(h,b,["]"],"string");if(y=="{")return I(h,2),C(h,b,["}"],"string");if(y=="<")return I(h,2),C(h,b,[">"],"string");if(/[\^'"!~\/]/.test(y))return I(h,1),C(h,b,[h.eat(y)],"string")}else if(y=="w"){if(y=R(h,1),y=="(")return I(h,2),C(h,b,[")"],"bracket");if(y=="[")return I(h,2),C(h,b,["]"],"bracket");if(y=="{")return I(h,2),C(h,b,["}"],"bracket");if(y=="<")return I(h,2),C(h,b,[">"],"bracket");if(/[\^'"!~\/]/.test(y))return I(h,1),C(h,b,[h.eat(y)],"bracket")}else if(y=="r"){if(y=R(h,1),y=="(")return I(h,2),C(h,b,[")"],m,B);if(y=="[")return I(h,2),C(h,b,["]"],m,B);if(y=="{")return I(h,2),C(h,b,["}"],m,B);if(y=="<")return I(h,2),C(h,b,[">"],m,B);if(/[\^'"!~\/]/.test(y))return I(h,1),C(h,b,[h.eat(y)],m,B)}else if(/[\^'"!~\/(\[{<]/.test(y)){if(y=="(")return I(h,1),C(h,b,[")"],"string");if(y=="[")return I(h,1),C(h,b,["]"],"string");if(y=="{")return I(h,1),C(h,b,["}"],"string");if(y=="<")return I(h,1),C(h,b,[">"],"string");if(/[\^'"!~\/]/.test(y))return C(h,b,[h.eat(y)],"string")}}}if(g=="m"){var y=R(h,-2);if(!(y&&/\w/.test(y))&&(y=h.eat(/[(\[{<\^'"!~\/]/),y)){if(/[\^'"!~\/]/.test(y))return C(h,b,[y],m,B);if(y=="(")return C(h,b,[")"],m,B);if(y=="[")return C(h,b,["]"],m,B);if(y=="{")return C(h,b,["}"],m,B);if(y=="<")return C(h,b,[">"],m,B)}}if(g=="s"){var y=/[\/>\]})\w]/.test(R(h,-2));if(!y&&(y=h.eat(/[(\[{<\^'"!~\/]/),y))return y=="["?C(h,b,["]","]"],m,B):y=="{"?C(h,b,["}","}"],m,B):y=="<"?C(h,b,[">",">"],m,B):y=="("?C(h,b,[")",")"],m,B):C(h,b,[y,y],m,B)}if(g=="y"){var y=/[\/>\]})\w]/.test(R(h,-2));if(!y&&(y=h.eat(/[(\[{<\^'"!~\/]/),y))return y=="["?C(h,b,["]","]"],m,B):y=="{"?C(h,b,["}","}"],m,B):y=="<"?C(h,b,[">",">"],m,B):y=="("?C(h,b,[")",")"],m,B):C(h,b,[y,y],m,B)}if(g=="t"){var y=/[\/>\]})\w]/.test(R(h,-2));if(!y&&(y=h.eat("r"),y&&(y=h.eat(/[(\[{<\^'"!~\/]/),y)))return y=="["?C(h,b,["]","]"],m,B):y=="{"?C(h,b,["}","}"],m,B):y=="<"?C(h,b,[">",">"],m,B):y=="("?C(h,b,[")",")"],m,B):C(h,b,[y,y],m,B)}if(g=="`")return C(h,b,[g],"variable-2");if(g=="/")return/~\s*$/.test(z(h))?C(h,b,[g],m,B):"operator";if(g=="$"){var S=h.pos;if(h.eatWhile(/\d/)||h.eat("{")&&h.eatWhile(/\d/)&&h.eat("}"))return"variable-2";h.pos=S}if(/[$@%]/.test(g)){var S=h.pos;if(h.eat("^")&&h.eat(/[A-Z]/)||!/[@$%&]/.test(R(h,-2))&&h.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var y=h.current();if(P[y])return"variable-2"}h.pos=S}if(/[$@%&]/.test(g)&&(h.eatWhile(/[\w$]/)||h.eat("{")&&h.eatWhile(/[\w$]/)&&h.eat("}"))){var y=h.current();return P[y]?"variable-2":"variable"}if(g=="#"&&R(h,-2)!="$")return h.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(g)){var S=h.pos;if(h.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),P[h.current()])return"operator";h.pos=S}if(g=="_"&&h.pos==1){if(F(h,6)=="_END__")return C(h,b,["\0"],"comment");if(F(h,7)=="_DATA__")return C(h,b,["\0"],"variable-2");if(F(h,7)=="_C__")return C(h,b,["\0"],"string")}if(/\w/.test(g)){var S=h.pos;if(R(h,-2)=="{"&&(R(h,0)=="}"||h.eatWhile(/\w/)&&R(h,0)=="}"))return"string";h.pos=S}if(/[A-Z]/.test(g)){var $=R(h,-2),S=h.pos;if(h.eatWhile(/[A-Z_]/),/[\da-z]/.test(R(h,0)))h.pos=S;else{var y=P[h.current()];return y?(y[1]&&(y=y[0]),$!=":"?y==1?"keyword":y==2?"def":y==3?"atom":y==4?"operator":y==5?"variable-2":"meta":"meta"):"meta"}}if(/[a-zA-Z_]/.test(g)){var $=R(h,-2);h.eatWhile(/\w/);var y=P[h.current()];return y?(y[1]&&(y=y[0]),$!=":"?y==1?"keyword":y==2?"def":y==3?"atom":y==4?"operator":y==5?"variable-2":"meta":"meta"):"meta"}return null}return{startState:function(){return{tokenize:E,chain:null,style:null,tail:null}},token:function(h,b){return(b.tokenize||E)(h,b)},lineComment:"#"}}),d.registerHelper("wordChars","perl",/[\w$]/),d.defineMIME("text/x-perl","perl");function R(P,m){return P.string.charAt(P.pos+(m||0))}function z(P,m){if(m){var B=P.pos-m;return P.string.substr(B>=0?B:0,m)}else return P.string.substr(0,P.pos-1)}function F(P,m){var B=P.string.length,C=B-P.pos+1;return P.string.substr(P.pos,m&&m<B?m:C)}function I(P,m){var B=P.pos+m,C;B<=0?P.pos=0:B>=(C=P.string.length-1)?P.pos=C:P.pos=B}})});var ms=Re((ps,hs)=>{(function(d){typeof ps=="object"&&typeof hs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("pascal",function(){function R(A){for(var E={},h=A.split(" "),b=0;b<h.length;++b)E[h[b]]=!0;return E}var z=R("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),F={null:!0},I=/[+\-*&%=<>!?|\/]/;function P(A,E){var h=A.next();if(h=="#"&&E.startOfLine)return A.skipToEnd(),"meta";if(h=='"'||h=="'")return E.tokenize=m(h),E.tokenize(A,E);if(h=="("&&A.eat("*"))return E.tokenize=B,B(A,E);if(h=="{")return E.tokenize=C,C(A,E);if(/[\[\]\(\),;\:\.]/.test(h))return null;if(/\d/.test(h))return A.eatWhile(/[\w\.]/),"number";if(h=="/"&&A.eat("/"))return A.skipToEnd(),"comment";if(I.test(h))return A.eatWhile(I),"operator";A.eatWhile(/[\w\$_]/);var b=A.current();return z.propertyIsEnumerable(b)?"keyword":F.propertyIsEnumerable(b)?"atom":"variable"}function m(A){return function(E,h){for(var b=!1,g,S=!1;(g=E.next())!=null;){if(g==A&&!b){S=!0;break}b=!b&&g=="\\"}return(S||!b)&&(h.tokenize=null),"string"}}function B(A,E){for(var h=!1,b;b=A.next();){if(b==")"&&h){E.tokenize=null;break}h=b=="*"}return"comment"}function C(A,E){for(var h;h=A.next();)if(h=="}"){E.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(A,E){if(A.eatSpace())return null;var h=(E.tokenize||P)(A,E);return h=="comment"||h=="meta",h},electricChars:"{}"}}),d.defineMIME("text/x-pascal","pascal")})});var ys=Re((gs,vs)=>{(function(d){typeof gs=="object"&&typeof vs=="object"?d(We(),_o(),xo()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],d):d(CodeMirror)})(function(d){"use strict";function R(A){for(var E={},h=A.split(" "),b=0;b<h.length;++b)E[h[b]]=!0;return E}function z(A,E,h){return A.length==0?F(E):function(b,g){for(var S=A[0],T=0;T<S.length;T++)if(b.match(S[T][0]))return g.tokenize=z(A.slice(1),E),S[T][1];return g.tokenize=F(E,h),"string"}}function F(A,E){return function(h,b){return I(h,b,A,E)}}function I(A,E,h,b){if(b!==!1&&A.match("${",!1)||A.match("{$",!1))return E.tokenize=null,"string";if(b!==!1&&A.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return A.match("[",!1)&&(E.tokenize=z([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],h,b)),A.match(/^->\w/,!1)&&(E.tokenize=z([[["->",null]],[[/[\w]+/,"variable"]]],h,b)),"variable-2";for(var g=!1;!A.eol()&&(g||b===!1||!A.match("{$",!1)&&!A.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!g&&A.match(h)){E.tokenize=null,E.tokStack.pop(),E.tokStack.pop();break}g=A.next()=="\\"&&!g}return"string"}var P="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally readonly match",m="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",B="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";d.registerHelper("hintWords","php",[P,m,B].join(" ").split(" ")),d.registerHelper("wordChars","php",/[\w$]/);var C={name:"clike",helperType:"php",keywords:R(P),blockKeywords:R("catch do else elseif for foreach if switch try while finally"),defKeywords:R("class enum function interface namespace trait"),atoms:R(m),builtin:R(B),multiLineStrings:!0,hooks:{$:function(A){return A.eatWhile(/[\w\$_]/),"variable-2"},"<":function(A,E){var h;if(h=A.match(/^<<\s*/)){var b=A.eat(/['"]/);A.eatWhile(/[\w\.]/);var g=A.current().slice(h[0].length+(b?2:1));if(b&&A.eat(b),g)return(E.tokStack||(E.tokStack=[])).push(g,0),E.tokenize=F(g,b!="'"),"string"}return!1},"#":function(A){for(;!A.eol()&&!A.match("?>",!1);)A.next();return"comment"},"/":function(A){if(A.eat("/")){for(;!A.eol()&&!A.match("?>",!1);)A.next();return"comment"}return!1},'"':function(A,E){return(E.tokStack||(E.tokStack=[])).push('"',0),E.tokenize=F('"'),"string"},"{":function(A,E){return E.tokStack&&E.tokStack.length&&E.tokStack[E.tokStack.length-1]++,!1},"}":function(A,E){return E.tokStack&&E.tokStack.length>0&&!--E.tokStack[E.tokStack.length-1]&&(E.tokenize=F(E.tokStack[E.tokStack.length-2])),!1}}};d.defineMode("php",function(A,E){var h=d.getMode(A,E&&E.htmlMode||"text/html"),b=d.getMode(A,C);function g(S,T){var y=T.curMode==b;if(S.sol()&&T.pending&&T.pending!='"'&&T.pending!="'"&&(T.pending=null),y)return y&&T.php.tokenize==null&&S.match("?>")?(T.curMode=h,T.curState=T.html,T.php.context.prev||(T.php=null),"meta"):b.token(S,T.curState);if(S.match(/^<\?\w*/))return T.curMode=b,T.php||(T.php=d.startState(b,h.indent(T.html,"",""))),T.curState=T.php,"meta";if(T.pending=='"'||T.pending=="'"){for(;!S.eol()&&S.next()!=T.pending;);var $="string"}else if(T.pending&&S.pos<T.pending.end){S.pos=T.pending.end;var $=T.pending.style}else var $=h.token(S,T.curState);T.pending&&(T.pending=null);var _=S.current(),j=_.search(/<\?/),U;return j!=-1&&($=="string"&&(U=_.match(/[\'\"]$/))&&!/\?>/.test(_)?T.pending=U[0]:T.pending={end:S.pos,style:$},S.backUp(_.length-j)),$}return{startState:function(){var S=d.startState(h),T=E.startOpen?d.startState(b):null;return{html:S,php:T,curMode:E.startOpen?b:h,curState:E.startOpen?T:S,pending:null}},copyState:function(S){var T=S.html,y=d.copyState(h,T),$=S.php,_=$&&d.copyState(b,$),j;return S.curMode==h?j=y:j=_,{html:y,php:_,curMode:S.curMode,curState:j,pending:S.pending}},token:g,indent:function(S,T,y){return S.curMode!=b&&/^\s*<\//.test(T)||S.curMode==b&&/^\?>/.test(T)?h.indent(S.html,T,y):S.curMode.indent(S.curState,T,y)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(S){return{state:S.curState,mode:S.curMode}}}},"htmlmixed","clike"),d.defineMIME("application/x-httpd-php","php"),d.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),d.defineMIME("text/x-php",C)})});var ks=Re((bs,xs)=>{(function(d){"use strict";typeof bs=="object"&&typeof xs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(window.CodeMirror)})(function(d){"use strict";d.defineMode("powershell",function(){function R(D,c){c=c||{};for(var O=c.prefix!==void 0?c.prefix:"^",q=c.suffix!==void 0?c.suffix:"\\b",L=0;L<D.length;L++)D[L]instanceof RegExp?D[L]=D[L].source:D[L]=D[L].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(O+"("+D.join("|")+")"+q,"i")}var z="(?=[^A-Za-z\\d\\-_]|$)",F=/[\w\-:]/,I=R([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:z}),P=/[\[\]{},;`\\\.]|@[({]/,m=R(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),B=/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/,C=R([m,B],{suffix:""}),A=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,E=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,h=/[A-Z]:|%|\?/i,b=R([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),g=R([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),S=R([h,b,g],{suffix:z}),T={keyword:I,number:A,operator:C,builtin:S,punctuation:P,identifier:E};function y(D,c){var O=c.returnStack[c.returnStack.length-1];if(O&&O.shouldReturnFrom(c))return c.tokenize=O.tokenize,c.returnStack.pop(),c.tokenize(D,c);if(D.eatSpace())return null;if(D.eat("("))return c.bracketNesting+=1,"punctuation";if(D.eat(")"))return c.bracketNesting-=1,"punctuation";for(var q in T)if(D.match(T[q]))return q;var L=D.next();if(L==="'")return $(D,c);if(L==="$")return V(D,c);if(L==='"')return _(D,c);if(L==="<"&&D.eat("#"))return c.tokenize=te,te(D,c);if(L==="#")return D.skipToEnd(),"comment";if(L==="@"){var k=D.eat(/["']/);if(k&&D.eol())return c.tokenize=Y,c.startQuote=k[0],Y(D,c);if(D.eol())return"error";if(D.peek().match(/[({]/))return"punctuation";if(D.peek().match(F))return V(D,c)}return"error"}function $(D,c){for(var O;(O=D.peek())!=null;)if(D.next(),O==="'"&&!D.eat("'"))return c.tokenize=y,"string";return"error"}function _(D,c){for(var O;(O=D.peek())!=null;){if(O==="$")return c.tokenize=j,"string";if(D.next(),O==="`"){D.next();continue}if(O==='"'&&!D.eat('"'))return c.tokenize=y,"string"}return"error"}function j(D,c){return oe(D,c,_)}function U(D,c){return c.tokenize=Y,c.startQuote='"',Y(D,c)}function re(D,c){return oe(D,c,U)}function oe(D,c,O){if(D.match("$(")){var q=c.bracketNesting;return c.returnStack.push({shouldReturnFrom:function(L){return L.bracketNesting===q},tokenize:O}),c.tokenize=y,c.bracketNesting+=1,"punctuation"}else return D.next(),c.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:O}),c.tokenize=V,c.tokenize(D,c)}function te(D,c){for(var O=!1,q;(q=D.next())!=null;){if(O&&q==">"){c.tokenize=y;break}O=q==="#"}return"comment"}function V(D,c){var O=D.peek();return D.eat("{")?(c.tokenize=X,X(D,c)):O!=null&&O.match(F)?(D.eatWhile(F),c.tokenize=y,"variable-2"):(c.tokenize=y,"error")}function X(D,c){for(var O;(O=D.next())!=null;)if(O==="}"){c.tokenize=y;break}return"variable-2"}function Y(D,c){var O=c.startQuote;if(D.sol()&&D.match(new RegExp(O+"@")))c.tokenize=y;else if(O==='"')for(;!D.eol();){var q=D.peek();if(q==="$")return c.tokenize=re,"string";D.next(),q==="`"&&D.next()}else D.skipToEnd();return"string"}var N={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:y}},token:function(D,c){return c.tokenize(D,c)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"};return N}),d.defineMIME("application/x-powershell","powershell")})});var Ss=Re((_s,ws)=>{(function(d){typeof _s=="object"&&typeof ws=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("properties",function(){return{token:function(R,z){var F=R.sol()||z.afterSection,I=R.eol();if(z.afterSection=!1,F&&(z.nextMultiline?(z.inMultiline=!0,z.nextMultiline=!1):z.position="def"),I&&!z.nextMultiline&&(z.inMultiline=!1,z.position="def"),F)for(;R.eatSpace(););var P=R.next();return F&&(P==="#"||P==="!"||P===";")?(z.position="comment",R.skipToEnd(),"comment"):F&&P==="["?(z.afterSection=!0,R.skipTo("]"),R.eat("]"),"header"):P==="="||P===":"?(z.position="quote",null):(P==="\\"&&z.position==="quote"&&R.eol()&&(z.nextMultiline=!0),z.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),d.defineMIME("text/x-properties","properties"),d.defineMIME("text/x-ini","properties")})});var Ls=Re((Ts,Cs)=>{(function(d){typeof Ts=="object"&&typeof Cs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";function R(B){return new RegExp("^(("+B.join(")|(")+"))\\b")}var z=R(["and","or","not","is"]),F=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],I=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];d.registerHelper("hintWords","python",F.concat(I));function P(B){return B.scopes[B.scopes.length-1]}d.defineMode("python",function(B,C){for(var A="error",E=C.delimiters||C.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,h=[C.singleOperators,C.doubleOperators,C.doubleDelimiters,C.tripleDelimiters,C.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],b=0;b<h.length;b++)h[b]||h.splice(b--,1);var g=C.hangingIndent||B.indentUnit,S=F,T=I;C.extra_keywords!=null&&(S=S.concat(C.extra_keywords)),C.extra_builtins!=null&&(T=T.concat(C.extra_builtins));var y=!(C.version&&Number(C.version)<3);if(y){var $=C.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;S=S.concat(["nonlocal","False","True","None","async","await"]),T=T.concat(["ascii","bytes","exec","print"]);var _=new RegExp(`^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|"{3}|['"]))`,"i")}else{var $=C.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;S=S.concat(["exec","print"]),T=T.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);var _=new RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`,"i")}var j=R(S),U=R(T);function re(O,q){var L=O.sol()&&q.lastToken!="\\";if(L&&(q.indent=O.indentation()),L&&P(q).type=="py"){var k=P(q).offset;if(O.eatSpace()){var Z=O.indentation();return Z>k?X(q):Z<k&&N(O,q)&&O.peek()!="#"&&(q.errorToken=!0),null}else{var G=oe(O,q);return k>0&&N(O,q)&&(G+=" "+A),G}}return oe(O,q)}function oe(O,q,L){if(O.eatSpace())return null;if(!L&&O.match(/^#.*/))return"comment";if(O.match(/^[0-9\.]/,!1)){var k=!1;if(O.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(k=!0),O.match(/^[\d_]+\.\d*/)&&(k=!0),O.match(/^\.\d+/)&&(k=!0),k)return O.eat(/J/i),"number";var Z=!1;if(O.match(/^0x[0-9a-f_]+/i)&&(Z=!0),O.match(/^0b[01_]+/i)&&(Z=!0),O.match(/^0o[0-7_]+/i)&&(Z=!0),O.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(O.eat(/J/i),Z=!0),O.match(/^0(?![\dx])/i)&&(Z=!0),Z)return O.eat(/L/i),"number"}if(O.match(_)){var G=O.current().toLowerCase().indexOf("f")!==-1;return G?(q.tokenize=te(O.current(),q.tokenize),q.tokenize(O,q)):(q.tokenize=V(O.current(),q.tokenize),q.tokenize(O,q))}for(var v=0;v<h.length;v++)if(O.match(h[v]))return"operator";return O.match(E)?"punctuation":q.lastToken=="."&&O.match($)?"property":O.match(j)||O.match(z)?"keyword":O.match(U)?"builtin":O.match(/^(self|cls)\b/)?"variable-2":O.match($)?q.lastToken=="def"||q.lastToken=="class"?"def":"variable":(O.next(),L?null:A)}function te(O,q){for(;"rubf".indexOf(O.charAt(0).toLowerCase())>=0;)O=O.substr(1);var L=O.length==1,k="string";function Z(v){return function(p,ae){var ge=oe(p,ae,!0);return ge=="punctuation"&&(p.current()=="{"?ae.tokenize=Z(v+1):p.current()=="}"&&(v>1?ae.tokenize=Z(v-1):ae.tokenize=G)),ge}}function G(v,p){for(;!v.eol();)if(v.eatWhile(/[^'"\{\}\\]/),v.eat("\\")){if(v.next(),L&&v.eol())return k}else{if(v.match(O))return p.tokenize=q,k;if(v.match("{{"))return k;if(v.match("{",!1))return p.tokenize=Z(0),v.current()?k:p.tokenize(v,p);if(v.match("}}"))return k;if(v.match("}"))return A;v.eat(/['"]/)}if(L){if(C.singleLineStringErrors)return A;p.tokenize=q}return k}return G.isString=!0,G}function V(O,q){for(;"rubf".indexOf(O.charAt(0).toLowerCase())>=0;)O=O.substr(1);var L=O.length==1,k="string";function Z(G,v){for(;!G.eol();)if(G.eatWhile(/[^'"\\]/),G.eat("\\")){if(G.next(),L&&G.eol())return k}else{if(G.match(O))return v.tokenize=q,k;G.eat(/['"]/)}if(L){if(C.singleLineStringErrors)return A;v.tokenize=q}return k}return Z.isString=!0,Z}function X(O){for(;P(O).type!="py";)O.scopes.pop();O.scopes.push({offset:P(O).offset+B.indentUnit,type:"py",align:null})}function Y(O,q,L){var k=O.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:O.column()+1;q.scopes.push({offset:q.indent+g,type:L,align:k})}function N(O,q){for(var L=O.indentation();q.scopes.length>1&&P(q).offset>L;){if(P(q).type!="py")return!0;q.scopes.pop()}return P(q).offset!=L}function D(O,q){O.sol()&&(q.beginningOfLine=!0,q.dedent=!1);var L=q.tokenize(O,q),k=O.current();if(q.beginningOfLine&&k=="@")return O.match($,!1)?"meta":y?"operator":A;if(/\S/.test(k)&&(q.beginningOfLine=!1),(L=="variable"||L=="builtin")&&q.lastToken=="meta"&&(L="meta"),(k=="pass"||k=="return")&&(q.dedent=!0),k=="lambda"&&(q.lambda=!0),k==":"&&!q.lambda&&P(q).type=="py"&&O.match(/^\s*(?:#|$)/,!1)&&X(q),k.length==1&&!/string|comment/.test(L)){var Z="[({".indexOf(k);if(Z!=-1&&Y(O,q,"])}".slice(Z,Z+1)),Z="])}".indexOf(k),Z!=-1)if(P(q).type==k)q.indent=q.scopes.pop().offset-g;else return A}return q.dedent&&O.eol()&&P(q).type=="py"&&q.scopes.length>1&&q.scopes.pop(),L}var c={startState:function(O){return{tokenize:re,scopes:[{offset:O||0,type:"py",align:null}],indent:O||0,lastToken:null,lambda:!1,dedent:0}},token:function(O,q){var L=q.errorToken;L&&(q.errorToken=!1);var k=D(O,q);return k&&k!="comment"&&(q.lastToken=k=="keyword"||k=="punctuation"?O.current():k),k=="punctuation"&&(k=null),O.eol()&&q.lambda&&(q.lambda=!1),L?k+" "+A:k},indent:function(O,q){if(O.tokenize!=re)return O.tokenize.isString?d.Pass:0;var L=P(O),k=L.type==q.charAt(0)||L.type=="py"&&!O.dedent&&/^(else:|elif |except |finally:)/.test(q);return L.align!=null?L.align-(k?1:0):L.offset-(k?g:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return c}),d.defineMIME("text/x-python","python");var m=function(B){return B.split(" ")};d.defineMIME("text/x-cython",{name:"python",extra_keywords:m("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})});var zs=Re((Es,Ms)=>{(function(d){typeof Es=="object"&&typeof Ms=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";function R(C){for(var A={},E=0,h=C.length;E<h;++E)A[C[E]]=!0;return A}var z=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],F=R(z),I=R(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),P=R(["end","until"]),m={"[":"]","{":"}","(":")"},B={"]":"[","}":"{",")":"("};d.defineMode("ruby",function(C){var A;function E(_,j,U){return U.tokenize.push(_),_(j,U)}function h(_,j){if(_.sol()&&_.match("=begin")&&_.eol())return j.tokenize.push($),"comment";if(_.eatSpace())return null;var U=_.next(),re;if(U=="`"||U=="'"||U=='"')return E(T(U,"string",U=='"'||U=="`"),_,j);if(U=="/")return b(_)?E(T(U,"string-2",!0),_,j):"operator";if(U=="%"){var oe="string",te=!0;_.eat("s")?oe="atom":_.eat(/[WQ]/)?oe="string":_.eat(/[r]/)?oe="string-2":_.eat(/[wxq]/)&&(oe="string",te=!1);var V=_.eat(/[^\w\s=]/);return V?(m.propertyIsEnumerable(V)&&(V=m[V]),E(T(V,oe,te,!0),_,j)):"operator"}else{if(U=="#")return _.skipToEnd(),"comment";if(U=="<"&&(re=_.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return E(y(re[2],re[1]),_,j);if(U=="0")return _.eat("x")?_.eatWhile(/[\da-fA-F]/):_.eat("b")?_.eatWhile(/[01]/):_.eatWhile(/[0-7]/),"number";if(/\d/.test(U))return _.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if(U=="?"){for(;_.match(/^\\[CM]-/););return _.eat("\\")?_.eatWhile(/\w/):_.next(),"string"}else{if(U==":")return _.eat("'")?E(T("'","atom",!1),_,j):_.eat('"')?E(T('"',"atom",!0),_,j):_.eat(/[\<\>]/)?(_.eat(/[\<\>]/),"atom"):_.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":_.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(_.eatWhile(/[\w$\xa1-\uffff]/),_.eat(/[\?\!\=]/),"atom"):"operator";if(U=="@"&&_.match(/^@?[a-zA-Z_\xa1-\uffff]/))return _.eat("@"),_.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(U=="$")return _.eat(/[a-zA-Z_]/)?_.eatWhile(/[\w]/):_.eat(/\d/)?_.eat(/\d/):_.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(U))return _.eatWhile(/[\w\xa1-\uffff]/),_.eat(/[\?\!]/),_.eat(":")?"atom":"ident";if(U=="|"&&(j.varList||j.lastTok=="{"||j.lastTok=="do"))return A="|",null;if(/[\(\)\[\]{}\\;]/.test(U))return A=U,null;if(U=="-"&&_.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(U)){var X=_.eatWhile(/[=+\-\/*:\.^%<>~|]/);return U=="."&&!X&&(A="."),"operator"}else return null}}}function b(_){for(var j=_.pos,U=0,re,oe=!1,te=!1;(re=_.next())!=null;)if(te)te=!1;else{if("[{(".indexOf(re)>-1)U++;else if("]})".indexOf(re)>-1){if(U--,U<0)break}else if(re=="/"&&U==0){oe=!0;break}te=re=="\\"}return _.backUp(_.pos-j),oe}function g(_){return _||(_=1),function(j,U){if(j.peek()=="}"){if(_==1)return U.tokenize.pop(),U.tokenize[U.tokenize.length-1](j,U);U.tokenize[U.tokenize.length-1]=g(_-1)}else j.peek()=="{"&&(U.tokenize[U.tokenize.length-1]=g(_+1));return h(j,U)}}function S(){var _=!1;return function(j,U){return _?(U.tokenize.pop(),U.tokenize[U.tokenize.length-1](j,U)):(_=!0,h(j,U))}}function T(_,j,U,re){return function(oe,te){var V=!1,X;for(te.context.type==="read-quoted-paused"&&(te.context=te.context.prev,oe.eat("}"));(X=oe.next())!=null;){if(X==_&&(re||!V)){te.tokenize.pop();break}if(U&&X=="#"&&!V){if(oe.eat("{")){_=="}"&&(te.context={prev:te.context,type:"read-quoted-paused"}),te.tokenize.push(g());break}else if(/[@\$]/.test(oe.peek())){te.tokenize.push(S());break}}V=!V&&X=="\\"}return j}}function y(_,j){return function(U,re){return j&&U.eatSpace(),U.match(_)?re.tokenize.pop():U.skipToEnd(),"string"}}function $(_,j){return _.sol()&&_.match("=end")&&_.eol()&&j.tokenize.pop(),_.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[h],indented:0,context:{type:"top",indented:-C.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(_,j){A=null,_.sol()&&(j.indented=_.indentation());var U=j.tokenize[j.tokenize.length-1](_,j),re,oe=A;if(U=="ident"){var te=_.current();U=j.lastTok=="."?"property":F.propertyIsEnumerable(_.current())?"keyword":/^[A-Z]/.test(te)?"tag":j.lastTok=="def"||j.lastTok=="class"||j.varList?"def":"variable",U=="keyword"&&(oe=te,I.propertyIsEnumerable(te)?re="indent":P.propertyIsEnumerable(te)?re="dedent":((te=="if"||te=="unless")&&_.column()==_.indentation()||te=="do"&&j.context.indented<j.indented)&&(re="indent"))}return(A||U&&U!="comment")&&(j.lastTok=oe),A=="|"&&(j.varList=!j.varList),re=="indent"||/[\(\[\{]/.test(A)?j.context={prev:j.context,type:A||U,indented:j.indented}:(re=="dedent"||/[\)\]\}]/.test(A))&&j.context.prev&&(j.context=j.context.prev),_.eol()&&(j.continuedLine=A=="\\"||U=="operator"),U},indent:function(_,j){if(_.tokenize[_.tokenize.length-1]!=h)return d.Pass;var U=j&&j.charAt(0),re=_.context,oe=re.type==B[U]||re.type=="keyword"&&/^(?:end|until|else|elsif|when|rescue)\b/.test(j);return re.indented+(oe?0:C.indentUnit)+(_.continuedLine?C.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}}),d.defineMIME("text/x-ruby","ruby"),d.registerHelper("hintWords","ruby",z)})});var Fs=Re((As,Ds)=>{(function(d){typeof As=="object"&&typeof Ds=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineSimpleMode=function(E,h){d.defineMode(E,function(b){return d.simpleMode(b,h)})},d.simpleMode=function(E,h){R(h,"start");var b={},g=h.meta||{},S=!1;for(var T in h)if(T!=g&&h.hasOwnProperty(T))for(var y=b[T]=[],$=h[T],_=0;_<$.length;_++){var j=$[_];y.push(new I(j,h)),(j.indent||j.dedent)&&(S=!0)}var U={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:S?[]:null}},copyState:function(oe){var te={state:oe.state,pending:oe.pending,local:oe.local,localState:null,indent:oe.indent&&oe.indent.slice(0)};oe.localState&&(te.localState=d.copyState(oe.local.mode,oe.localState)),oe.stack&&(te.stack=oe.stack.slice(0));for(var V=oe.persistentStates;V;V=V.next)te.persistentStates={mode:V.mode,spec:V.spec,state:V.state==oe.localState?te.localState:d.copyState(V.mode,V.state),next:te.persistentStates};return te},token:P(b,E),innerMode:function(oe){return oe.local&&{mode:oe.local.mode,state:oe.localState}},indent:A(b,g)};if(g)for(var re in g)g.hasOwnProperty(re)&&(U[re]=g[re]);return U};function R(E,h){if(!E.hasOwnProperty(h))throw new Error("Undefined state "+h+" in simple mode")}function z(E,h){if(!E)return/(?:)/;var b="";return E instanceof RegExp?(E.ignoreCase&&(b="i"),E.unicode&&(b+="u"),E=E.source):E=String(E),new RegExp((h===!1?"":"^")+"(?:"+E+")",b)}function F(E){if(!E)return null;if(E.apply)return E;if(typeof E=="string")return E.replace(/\./g," ");for(var h=[],b=0;b<E.length;b++)h.push(E[b]&&E[b].replace(/\./g," "));return h}function I(E,h){(E.next||E.push)&&R(h,E.next||E.push),this.regex=z(E.regex),this.token=F(E.token),this.data=E}function P(E,h){return function(b,g){if(g.pending){var S=g.pending.shift();return g.pending.length==0&&(g.pending=null),b.pos+=S.text.length,S.token}if(g.local)if(g.local.end&&b.match(g.local.end)){var T=g.local.endToken||null;return g.local=g.localState=null,T}else{var T=g.local.mode.token(b,g.localState),y;return g.local.endScan&&(y=g.local.endScan.exec(b.current()))&&(b.pos=b.start+y.index),T}for(var $=E[g.state],_=0;_<$.length;_++){var j=$[_],U=(!j.data.sol||b.sol())&&b.match(j.regex);if(U){j.data.next?g.state=j.data.next:j.data.push?((g.stack||(g.stack=[])).push(g.state),g.state=j.data.push):j.data.pop&&g.stack&&g.stack.length&&(g.state=g.stack.pop()),j.data.mode&&B(h,g,j.data.mode,j.token),j.data.indent&&g.indent.push(b.indentation()+h.indentUnit),j.data.dedent&&g.indent.pop();var re=j.token;if(re&&re.apply&&(re=re(U)),U.length>2&&j.token&&typeof j.token!="string"){for(var oe=2;oe<U.length;oe++)U[oe]&&(g.pending||(g.pending=[])).push({text:U[oe],token:j.token[oe-1]});return b.backUp(U[0].length-(U[1]?U[1].length:0)),re[0]}else return re&&re.join?re[0]:re}}return b.next(),null}}function m(E,h){if(E===h)return!0;if(!E||typeof E!="object"||!h||typeof h!="object")return!1;var b=0;for(var g in E)if(E.hasOwnProperty(g)){if(!h.hasOwnProperty(g)||!m(E[g],h[g]))return!1;b++}for(var g in h)h.hasOwnProperty(g)&&b--;return b==0}function B(E,h,b,g){var S;if(b.persistent)for(var T=h.persistentStates;T&&!S;T=T.next)(b.spec?m(b.spec,T.spec):b.mode==T.mode)&&(S=T);var y=S?S.mode:b.mode||d.getMode(E,b.spec),$=S?S.state:d.startState(y);b.persistent&&!S&&(h.persistentStates={mode:y,spec:b.spec,state:$,next:h.persistentStates}),h.localState=$,h.local={mode:y,end:b.end&&z(b.end),endScan:b.end&&b.forceEnd!==!1&&z(b.end,!1),endToken:g&&g.join?g[g.length-1]:g}}function C(E,h){for(var b=0;b<h.length;b++)if(h[b]===E)return!0}function A(E,h){return function(b,g,S){if(b.local&&b.local.mode.indent)return b.local.mode.indent(b.localState,g,S);if(b.indent==null||b.local||h.dontIndentStates&&C(b.state,h.dontIndentStates)>-1)return d.Pass;var T=b.indent.length-1,y=E[b.state];e:for(;;){for(var $=0;$<y.length;$++){var _=y[$];if(_.data.dedent&&_.data.dedentIfLineStart!==!1){var j=_.regex.exec(g);if(j&&j[0]){T--,(_.next||_.push)&&(y=E[_.next||_.push]),g=g.slice(j[0].length);continue e}}}break}return T<0?0:b.indent[T]}}})});var Ps=Re((Is,Os)=>{(function(d){typeof Is=="object"&&typeof Os=="object"?d(We(),Fs()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],d):d(CodeMirror)})(function(d){"use strict";d.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),d.defineMIME("text/x-rustsrc","rust"),d.defineMIME("text/rust","rust")})});var Rs=Re((Ns,qs)=>{(function(d){typeof Ns=="object"&&typeof qs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("shell",function(){var R={};function z(b,g){for(var S=0;S<g.length;S++)R[g[S]]=b}var F=["true","false"],I=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],P=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];d.registerHelper("hintWords","shell",F.concat(I,P)),z("atom",F),z("keyword",I),z("builtin",P);function m(b,g){if(b.eatSpace())return null;var S=b.sol(),T=b.next();if(T==="\\")return b.next(),null;if(T==="'"||T==='"'||T==="`")return g.tokens.unshift(B(T,T==="`"?"quote":"string")),h(b,g);if(T==="#")return S&&b.eat("!")?(b.skipToEnd(),"meta"):(b.skipToEnd(),"comment");if(T==="$")return g.tokens.unshift(A),h(b,g);if(T==="+"||T==="=")return"operator";if(T==="-")return b.eat("-"),b.eatWhile(/\w/),"attribute";if(T=="<"){if(b.match("<<"))return"operator";var y=b.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(y)return g.tokens.unshift(E(y[1])),"string-2"}if(/\d/.test(T)&&(b.eatWhile(/\d/),b.eol()||!/\w/.test(b.peek())))return"number";b.eatWhile(/[\w-]/);var $=b.current();return b.peek()==="="&&/\w+/.test($)?"def":R.hasOwnProperty($)?R[$]:null}function B(b,g){var S=b=="("?")":b=="{"?"}":b;return function(T,y){for(var $,_=!1;($=T.next())!=null;){if($===S&&!_){y.tokens.shift();break}else if($==="$"&&!_&&b!=="'"&&T.peek()!=S){_=!0,T.backUp(1),y.tokens.unshift(A);break}else{if(!_&&b!==S&&$===b)return y.tokens.unshift(B(b,g)),h(T,y);if(!_&&/['"]/.test($)&&!/['"]/.test(b)){y.tokens.unshift(C($,"string")),T.backUp(1);break}}_=!_&&$==="\\"}return g}}function C(b,g){return function(S,T){return T.tokens[0]=B(b,g),S.next(),h(S,T)}}var A=function(b,g){g.tokens.length>1&&b.eat("$");var S=b.next();return/['"({]/.test(S)?(g.tokens[0]=B(S,S=="("?"quote":S=="{"?"def":"string"),h(b,g)):(/\d/.test(S)||b.eatWhile(/\w/),g.tokens.shift(),"def")};function E(b){return function(g,S){return g.sol()&&g.string==b&&S.tokens.shift(),g.skipToEnd(),"string-2"}}function h(b,g){return(g.tokens[0]||m)(b,g)}return{startState:function(){return{tokens:[]}},token:function(b,g){return h(b,g)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),d.defineMIME("text/x-sh","shell"),d.defineMIME("application/x-sh","shell")})});var js=Re((Ws,Bs)=>{(function(d){typeof Ws=="object"&&typeof Bs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("sql",function(C,A){var E=A.client||{},h=A.atoms||{false:!0,true:!0,null:!0},b=A.builtin||m(B),g=A.keywords||m(P),S=A.operatorChars||/^[*+\-%<>!=&|~^\/]/,T=A.support||{},y=A.hooks||{},$=A.dateSQL||{date:!0,time:!0,timestamp:!0},_=A.backslashStringEscapes!==!1,j=A.brackets||/^[\{}\(\)\[\]]/,U=A.punctuation||/^[;.,:]/;function re(Y,N){var D=Y.next();if(y[D]){var c=y[D](Y,N);if(c!==!1)return c}if(T.hexNumber&&(D=="0"&&Y.match(/^[xX][0-9a-fA-F]+/)||(D=="x"||D=="X")&&Y.match(/^'[0-9a-fA-F]+'/)))return"number";if(T.binaryNumber&&((D=="b"||D=="B")&&Y.match(/^'[01]+'/)||D=="0"&&Y.match(/^b[01]+/)))return"number";if(D.charCodeAt(0)>47&&D.charCodeAt(0)<58)return Y.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),T.decimallessFloat&&Y.match(/^\.(?!\.)/),"number";if(D=="?"&&(Y.eatSpace()||Y.eol()||Y.eat(";")))return"variable-3";if(D=="'"||D=='"'&&T.doubleQuote)return N.tokenize=oe(D),N.tokenize(Y,N);if((T.nCharCast&&(D=="n"||D=="N")||T.charsetCast&&D=="_"&&Y.match(/[a-z][a-z0-9]*/i))&&(Y.peek()=="'"||Y.peek()=='"'))return"keyword";if(T.escapeConstant&&(D=="e"||D=="E")&&(Y.peek()=="'"||Y.peek()=='"'&&T.doubleQuote))return N.tokenize=function(q,L){return(L.tokenize=oe(q.next(),!0))(q,L)},"keyword";if(T.commentSlashSlash&&D=="/"&&Y.eat("/"))return Y.skipToEnd(),"comment";if(T.commentHash&&D=="#"||D=="-"&&Y.eat("-")&&(!T.commentSpaceRequired||Y.eat(" ")))return Y.skipToEnd(),"comment";if(D=="/"&&Y.eat("*"))return N.tokenize=te(1),N.tokenize(Y,N);if(D=="."){if(T.zerolessFloat&&Y.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(Y.match(/^\.+/))return null;if(T.ODBCdotTable&&Y.match(/^[\w\d_$#]+/))return"variable-2"}else{if(S.test(D))return Y.eatWhile(S),"operator";if(j.test(D))return"bracket";if(U.test(D))return Y.eatWhile(U),"punctuation";if(D=="{"&&(Y.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||Y.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";Y.eatWhile(/^[_\w\d]/);var O=Y.current().toLowerCase();return $.hasOwnProperty(O)&&(Y.match(/^( )+'[^']*'/)||Y.match(/^( )+"[^"]*"/))?"number":h.hasOwnProperty(O)?"atom":b.hasOwnProperty(O)?"type":g.hasOwnProperty(O)?"keyword":E.hasOwnProperty(O)?"builtin":null}}function oe(Y,N){return function(D,c){for(var O=!1,q;(q=D.next())!=null;){if(q==Y&&!O){c.tokenize=re;break}O=(_||N)&&!O&&q=="\\"}return"string"}}function te(Y){return function(N,D){var c=N.match(/^.*?(\/\*|\*\/)/);return c?c[1]=="/*"?D.tokenize=te(Y+1):Y>1?D.tokenize=te(Y-1):D.tokenize=re:N.skipToEnd(),"comment"}}function V(Y,N,D){N.context={prev:N.context,indent:Y.indentation(),col:Y.column(),type:D}}function X(Y){Y.indent=Y.context.indent,Y.context=Y.context.prev}return{startState:function(){return{tokenize:re,context:null}},token:function(Y,N){if(Y.sol()&&N.context&&N.context.align==null&&(N.context.align=!1),N.tokenize==re&&Y.eatSpace())return null;var D=N.tokenize(Y,N);if(D=="comment")return D;N.context&&N.context.align==null&&(N.context.align=!0);var c=Y.current();return c=="("?V(Y,N,")"):c=="["?V(Y,N,"]"):N.context&&N.context.type==c&&X(N),D},indent:function(Y,N){var D=Y.context;if(!D)return d.Pass;var c=N.charAt(0)==D.type;return D.align?D.col+(c?0:1):D.indent+(c?0:C.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:T.commentSlashSlash?"//":T.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});function R(C){for(var A;(A=C.next())!=null;)if(A=="`"&&!C.eat("`"))return"variable-2";return C.backUp(C.current().length-1),C.eatWhile(/\w/)?"variable-2":null}function z(C){for(var A;(A=C.next())!=null;)if(A=='"'&&!C.eat('"'))return"variable-2";return C.backUp(C.current().length-1),C.eatWhile(/\w/)?"variable-2":null}function F(C){return C.eat("@")&&(C.match("session."),C.match("local."),C.match("global.")),C.eat("'")?(C.match(/^.*'/),"variable-2"):C.eat('"')?(C.match(/^.*"/),"variable-2"):C.eat("`")?(C.match(/^.*`/),"variable-2"):C.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function I(C){return C.eat("N")?"atom":C.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var P="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function m(C){for(var A={},E=C.split(" "),h=0;h<E.length;++h)A[E[h]]=!0;return A}var B="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";d.defineMIME("text/x-sql",{name:"sql",keywords:m(P+"begin"),builtin:m(B),atoms:m("false true null unknown"),dateSQL:m("date time timestamp"),support:m("ODBCdotTable doubleQuote binaryNumber hexNumber")}),d.defineMIME("text/x-mssql",{name:"sql",client:m("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:m(P+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:m("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:m("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:m("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":F}}),d.defineMIME("text/x-mysql",{name:"sql",client:m("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:m(P+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:m("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:m("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:m("date time timestamp"),support:m("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":F,"`":R,"\\":I}}),d.defineMIME("text/x-mariadb",{name:"sql",client:m("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:m(P+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:m("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:m("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:m("date time timestamp"),support:m("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":F,"`":R,"\\":I}}),d.defineMIME("text/x-sqlite",{name:"sql",client:m("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:m(P+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:m("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:m("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:m("date time timestamp datetime"),support:m("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":F,":":F,"?":F,$:F,'"':z,"`":R}}),d.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:m("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:m("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:m("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:m("commentSlashSlash decimallessFloat"),hooks:{}}),d.defineMIME("text/x-plsql",{name:"sql",client:m("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:m("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:m("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:m("date time timestamp"),support:m("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),d.defineMIME("text/x-hive",{name:"sql",keywords:m("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:m("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:m("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:m("date timestamp"),support:m("ODBCdotTable doubleQuote binaryNumber hexNumber")}),d.defineMIME("text/x-pgsql",{name:"sql",client:m("source"),keywords:m(P+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:m("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:m("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:m("date time timestamp"),support:m("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),d.defineMIME("text/x-gql",{name:"sql",keywords:m("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:m("false true"),builtin:m("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),d.defineMIME("text/x-gpsql",{name:"sql",client:m("source"),keywords:m("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:m("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:m("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:m("date time timestamp"),support:m("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),d.defineMIME("text/x-sparksql",{name:"sql",keywords:m("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:m("abs acos acosh add_months aggregate and any approx_count_distinct approx_percentile array array_contains array_distinct array_except array_intersect array_join array_max array_min array_position array_remove array_repeat array_sort array_union arrays_overlap arrays_zip ascii asin asinh assert_true atan atan2 atanh avg base64 between bigint bin binary bit_and bit_count bit_get bit_length bit_or bit_xor bool_and bool_or boolean bround btrim cardinality case cast cbrt ceil ceiling char char_length character_length chr coalesce collect_list collect_set concat concat_ws conv corr cos cosh cot count count_if count_min_sketch covar_pop covar_samp crc32 cume_dist current_catalog current_database current_date current_timestamp current_timezone current_user date date_add date_format date_from_unix_date date_part date_sub date_trunc datediff day dayofmonth dayofweek dayofyear decimal decode degrees delimited dense_rank div double e element_at elt encode every exists exp explode explode_outer expm1 extract factorial filter find_in_set first first_value flatten float floor forall format_number format_string from_csv from_json from_unixtime from_utc_timestamp get_json_object getbit greatest grouping grouping_id hash hex hour hypot if ifnull in initcap inline inline_outer input_file_block_length input_file_block_start input_file_name inputformat instr int isnan isnotnull isnull java_method json_array_length json_object_keys json_tuple kurtosis lag last last_day last_value lcase lead least left length levenshtein like ln locate log log10 log1p log2 lower lpad ltrim make_date make_dt_interval make_interval make_timestamp make_ym_interval map map_concat map_entries map_filter map_from_arrays map_from_entries map_keys map_values map_zip_with max max_by md5 mean min min_by minute mod monotonically_increasing_id month months_between named_struct nanvl negative next_day not now nth_value ntile nullif nvl nvl2 octet_length or outputformat overlay parse_url percent_rank percentile percentile_approx pi pmod posexplode posexplode_outer position positive pow power printf quarter radians raise_error rand randn random rank rcfile reflect regexp regexp_extract regexp_extract_all regexp_like regexp_replace repeat replace reverse right rint rlike round row_number rpad rtrim schema_of_csv schema_of_json second sentences sequence sequencefile serde session_window sha sha1 sha2 shiftleft shiftright shiftrightunsigned shuffle sign signum sin sinh size skewness slice smallint some sort_array soundex space spark_partition_id split sqrt stack std stddev stddev_pop stddev_samp str_to_map string struct substr substring substring_index sum tan tanh textfile timestamp timestamp_micros timestamp_millis timestamp_seconds tinyint to_csv to_date to_json to_timestamp to_unix_timestamp to_utc_timestamp transform transform_keys transform_values translate trim trunc try_add try_divide typeof ucase unbase64 unhex uniontype unix_date unix_micros unix_millis unix_seconds unix_timestamp upper uuid var_pop var_samp variance version weekday weekofyear when width_bucket window xpath xpath_boolean xpath_double xpath_float xpath_int xpath_long xpath_number xpath_short xpath_string xxhash64 year zip_with"),atoms:m("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:m("date time timestamp"),support:m("ODBCdotTable doubleQuote zerolessFloat")}),d.defineMIME("text/x-esper",{name:"sql",client:m("source"),keywords:m("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:m("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:m("time"),support:m("decimallessFloat zerolessFloat binaryNumber hexNumber")})})});var Ks=Re((Hs,Us)=>{(function(d){typeof Hs=="object"&&typeof Us=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("stex",function(R,z){"use strict";function F(g,S){g.cmdState.push(S)}function I(g){return g.cmdState.length>0?g.cmdState[g.cmdState.length-1]:null}function P(g){var S=g.cmdState.pop();S&&S.closeBracket()}function m(g){for(var S=g.cmdState,T=S.length-1;T>=0;T--){var y=S[T];if(y.name!="DEFAULT")return y}return{styleIdentifier:function(){return null}}}function B(g,S,T){return function(){this.name=g,this.bracketNo=0,this.style=S,this.styles=T,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var C={};C.importmodule=B("importmodule","tag",["string","builtin"]),C.documentclass=B("documentclass","tag",["","atom"]),C.usepackage=B("usepackage","tag",["atom"]),C.begin=B("begin","tag",["atom"]),C.end=B("end","tag",["atom"]),C.label=B("label","tag",["atom"]),C.ref=B("ref","tag",["atom"]),C.eqref=B("eqref","tag",["atom"]),C.cite=B("cite","tag",["atom"]),C.bibitem=B("bibitem","tag",["atom"]),C.Bibitem=B("Bibitem","tag",["atom"]),C.RBibitem=B("RBibitem","tag",["atom"]),C.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function A(g,S){g.f=S}function E(g,S){var T;if(g.match(/^\\[a-zA-Z@]+/)){var y=g.current().slice(1);return T=C.hasOwnProperty(y)?C[y]:C.DEFAULT,T=new T,F(S,T),A(S,b),T.style}if(g.match(/^\\[$&%#{}_]/)||g.match(/^\\[,;!\/\\]/))return"tag";if(g.match("\\["))return A(S,function(_,j){return h(_,j,"\\]")}),"keyword";if(g.match("\\("))return A(S,function(_,j){return h(_,j,"\\)")}),"keyword";if(g.match("$$"))return A(S,function(_,j){return h(_,j,"$$")}),"keyword";if(g.match("$"))return A(S,function(_,j){return h(_,j,"$")}),"keyword";var $=g.next();if($=="%")return g.skipToEnd(),"comment";if($=="}"||$=="]"){if(T=I(S),T)T.closeBracket($),A(S,b);else return"error";return"bracket"}else return $=="{"||$=="["?(T=C.DEFAULT,T=new T,F(S,T),"bracket"):/\d/.test($)?(g.eatWhile(/[\w.%]/),"atom"):(g.eatWhile(/[\w\-_]/),T=m(S),T.name=="begin"&&(T.argument=g.current()),T.styleIdentifier())}function h(g,S,T){if(g.eatSpace())return null;if(T&&g.match(T))return A(S,E),"keyword";if(g.match(/^\\[a-zA-Z@]+/))return"tag";if(g.match(/^[a-zA-Z]+/))return"variable-2";if(g.match(/^\\[$&%#{}_]/)||g.match(/^\\[,;!\/]/)||g.match(/^[\^_&]/))return"tag";if(g.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(g.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var y=g.next();return y=="{"||y=="}"||y=="["||y=="]"||y=="("||y==")"?"bracket":y=="%"?(g.skipToEnd(),"comment"):"error"}function b(g,S){var T=g.peek(),y;return T=="{"||T=="["?(y=I(S),y.openBracket(T),g.eat(T),A(S,E),"bracket"):/[ \t\r]/.test(T)?(g.eat(T),null):(A(S,E),P(S),E(g,S))}return{startState:function(){var g=z.inMathMode?function(S,T){return h(S,T)}:E;return{cmdState:[],f:g}},copyState:function(g){return{cmdState:g.cmdState.slice(),f:g.f}},token:function(g,S){return S.f(g,S)},blankLine:function(g){g.f=E,g.cmdState.length=0},lineComment:"%"}}),d.defineMIME("text/x-stex","stex"),d.defineMIME("text/x-latex","stex")})});var Xs=Re(($s,Gs)=>{(function(d){typeof $s=="object"&&typeof Gs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("toml",function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(R,z){if(!z.inString&&(R.peek()=='"'||R.peek()=="'")&&(z.stringType=R.peek(),R.next(),z.inString=!0),R.sol()&&z.inArray===0&&(z.lhs=!0),z.inString){for(;z.inString&&!R.eol();)R.peek()===z.stringType?(R.next(),z.inString=!1):R.peek()==="\\"?(R.next(),R.next()):R.match(/^.[^\\\"\']*/);return z.lhs?"property string":"string"}else{if(z.inArray&&R.peek()==="]")return R.next(),z.inArray--,"bracket";if(z.lhs&&R.peek()==="["&&R.skipTo("]"))return R.next(),R.peek()==="]"&&R.next(),"atom";if(R.peek()==="#")return R.skipToEnd(),"comment";if(R.eatSpace())return null;if(z.lhs&&R.eatWhile(function(F){return F!="="&&F!=" "}))return"property";if(z.lhs&&R.peek()==="=")return R.next(),z.lhs=!1,null;if(!z.lhs&&R.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!z.lhs&&(R.match("true")||R.match("false")))return"atom";if(!z.lhs&&R.peek()==="[")return z.inArray++,R.next(),"bracket";if(!z.lhs&&R.match(/^\-?\d+(?:\.\d+)?/))return"number";R.eatSpace()||R.next()}return null}}}),d.defineMIME("text/x-toml","toml")})});var Qs=Re((Zs,Ys)=>{(function(d){typeof Zs=="object"&&typeof Ys=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("vb",function(R,z){var F="error";function I(k){return new RegExp("^(("+k.join(")|(")+"))\\b","i")}var P=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),m=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),B=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),C=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),A=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),E=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),h=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],b=["else","elseif","case","catch","finally"],g=["next","loop"],S=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],T=I(S),y=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],$=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],_=I(y),j=I($),U='"',re=I(h),oe=I(b),te=I(g),V=I(["end"]),X=I(["do"]),Y=null;d.registerHelper("hintWords","vb",h.concat(b).concat(g).concat(S).concat(y).concat($));function N(k,Z){Z.currentIndent++}function D(k,Z){Z.currentIndent--}function c(k,Z){if(k.eatSpace())return null;var G=k.peek();if(G==="'")return k.skipToEnd(),"comment";if(k.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var v=!1;if((k.match(/^\d*\.\d+F?/i)||k.match(/^\d+\.\d*F?/)||k.match(/^\.\d+F?/))&&(v=!0),v)return k.eat(/J/i),"number";var p=!1;if(k.match(/^&H[0-9a-f]+/i)||k.match(/^&O[0-7]+/i)?p=!0:k.match(/^[1-9]\d*F?/)?(k.eat(/J/i),p=!0):k.match(/^0(?![\dx])/i)&&(p=!0),p)return k.eat(/L/i),"number"}return k.match(U)?(Z.tokenize=O(k.current()),Z.tokenize(k,Z)):k.match(A)||k.match(C)?null:k.match(B)||k.match(P)||k.match(T)?"operator":k.match(m)?null:k.match(X)?(N(k,Z),Z.doInCurrentLine=!0,"keyword"):k.match(re)?(Z.doInCurrentLine?Z.doInCurrentLine=!1:N(k,Z),"keyword"):k.match(oe)?"keyword":k.match(V)?(D(k,Z),D(k,Z),"keyword"):k.match(te)?(D(k,Z),"keyword"):k.match(j)||k.match(_)?"keyword":k.match(E)?"variable":(k.next(),F)}function O(k){var Z=k.length==1,G="string";return function(v,p){for(;!v.eol();){if(v.eatWhile(/[^'"]/),v.match(k))return p.tokenize=c,G;v.eat(/['"]/)}if(Z){if(z.singleLineStringErrors)return F;p.tokenize=c}return G}}function q(k,Z){var G=Z.tokenize(k,Z),v=k.current();if(v===".")return G=Z.tokenize(k,Z),G==="variable"?"variable":F;var p="[({".indexOf(v);return p!==-1&&N(k,Z),Y==="dedent"&&D(k,Z)||(p="])}".indexOf(v),p!==-1&&D(k,Z))?F:G}var L={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:c,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(k,Z){k.sol()&&(Z.currentIndent+=Z.nextLineIndent,Z.nextLineIndent=0,Z.doInCurrentLine=0);var G=q(k,Z);return Z.lastToken={style:G,content:k.current()},G},indent:function(k,Z){var G=Z.replace(/^\s+|\s+$/g,"");return G.match(te)||G.match(V)||G.match(oe)?R.indentUnit*(k.currentIndent-1):k.currentIndent<0?0:k.currentIndent*R.indentUnit},lineComment:"'"};return L}),d.defineMIME("text/x-vb","vb")})});var eu=Re((Js,Vs)=>{(function(d){typeof Js=="object"&&typeof Vs=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("vbscript",function(R,z){var F="error";function I(ne){return new RegExp("^(("+ne.join(")|(")+"))\\b","i")}var P=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),m=new RegExp("^((<>)|(<=)|(>=))"),B=new RegExp("^[\\.,]"),C=new RegExp("^[\\(\\)]"),A=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),E=["class","sub","select","while","if","function","property","with","for"],h=["else","elseif","case"],b=["next","loop","wend"],g=I(["and","or","not","xor","is","mod","eqv","imp"]),S=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],T=["true","false","nothing","empty","null"],y=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],$=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],_=["WScript","err","debug","RegExp"],j=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],U=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],re=["server","response","request","session","application"],oe=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],te=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],V=U.concat(j);_=_.concat($),R.isASP&&(_=_.concat(re),V=V.concat(te,oe));var X=I(S),Y=I(T),N=I(y),D=I(_),c=I(V),O='"',q=I(E),L=I(h),k=I(b),Z=I(["end"]),G=I(["do"]),v=I(["on error resume next","exit"]),p=I(["rem"]);function ae(ne,fe){fe.currentIndent++}function ge(ne,fe){fe.currentIndent--}function se(ne,fe){if(ne.eatSpace())return"space";var ye=ne.peek();if(ye==="'"||ne.match(p))return ne.skipToEnd(),"comment";if(ne.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!ne.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var De=!1;if((ne.match(/^\d*\.\d+/i)||ne.match(/^\d+\.\d*/)||ne.match(/^\.\d+/))&&(De=!0),De)return ne.eat(/J/i),"number";var Ye=!1;if(ne.match(/^&H[0-9a-f]+/i)||ne.match(/^&O[0-7]+/i)?Ye=!0:ne.match(/^[1-9]\d*F?/)?(ne.eat(/J/i),Ye=!0):ne.match(/^0(?![\dx])/i)&&(Ye=!0),Ye)return ne.eat(/L/i),"number"}return ne.match(O)?(fe.tokenize=de(ne.current()),fe.tokenize(ne,fe)):ne.match(m)||ne.match(P)||ne.match(g)?"operator":ne.match(B)?null:ne.match(C)?"bracket":ne.match(v)?(fe.doInCurrentLine=!0,"keyword"):ne.match(G)?(ae(ne,fe),fe.doInCurrentLine=!0,"keyword"):ne.match(q)?(fe.doInCurrentLine?fe.doInCurrentLine=!1:ae(ne,fe),"keyword"):ne.match(L)?"keyword":ne.match(Z)?(ge(ne,fe),ge(ne,fe),"keyword"):ne.match(k)?(fe.doInCurrentLine?fe.doInCurrentLine=!1:ge(ne,fe),"keyword"):ne.match(X)?"keyword":ne.match(Y)?"atom":ne.match(c)?"variable-2":ne.match(N)?"builtin":ne.match(D)?"variable-2":ne.match(A)?"variable":(ne.next(),F)}function de(ne){var fe=ne.length==1,ye="string";return function(De,Ye){for(;!De.eol();){if(De.eatWhile(/[^'"]/),De.match(ne))return Ye.tokenize=se,ye;De.eat(/['"]/)}if(fe){if(z.singleLineStringErrors)return F;Ye.tokenize=se}return ye}}function Le(ne,fe){var ye=fe.tokenize(ne,fe),De=ne.current();return De==="."?(ye=fe.tokenize(ne,fe),De=ne.current(),ye&&(ye.substr(0,8)==="variable"||ye==="builtin"||ye==="keyword")?((ye==="builtin"||ye==="keyword")&&(ye="variable"),V.indexOf(De.substr(1))>-1&&(ye="variable-2"),ye):F):ye}var ze={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:se,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(ne,fe){ne.sol()&&(fe.currentIndent+=fe.nextLineIndent,fe.nextLineIndent=0,fe.doInCurrentLine=0);var ye=Le(ne,fe);return fe.lastToken={style:ye,content:ne.current()},ye==="space"&&(ye=null),ye},indent:function(ne,fe){var ye=fe.replace(/^\s+|\s+$/g,"");return ye.match(k)||ye.match(Z)||ye.match(L)?R.indentUnit*(ne.currentIndent-1):ne.currentIndent<0?0:ne.currentIndent*R.indentUnit}};return ze}),d.defineMIME("text/vbscript","vbscript")})});var nu=Re((tu,ru)=>{(function(d){typeof tu=="object"&&typeof ru=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineMode("yaml",function(){var R=["true","false","on","off","yes","no"],z=new RegExp("\\b(("+R.join(")|(")+"))$","i");return{token:function(F,I){var P=F.peek(),m=I.escaped;if(I.escaped=!1,P=="#"&&(F.pos==0||/\s/.test(F.string.charAt(F.pos-1))))return F.skipToEnd(),"comment";if(F.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(I.literal&&F.indentation()>I.keyCol)return F.skipToEnd(),"string";if(I.literal&&(I.literal=!1),F.sol()){if(I.keyCol=0,I.pair=!1,I.pairStart=!1,F.match("---")||F.match("..."))return"def";if(F.match(/\s*-\s+/))return"meta"}if(F.match(/^(\{|\}|\[|\])/))return P=="{"?I.inlinePairs++:P=="}"?I.inlinePairs--:P=="["?I.inlineList++:I.inlineList--,"meta";if(I.inlineList>0&&!m&&P==",")return F.next(),"meta";if(I.inlinePairs>0&&!m&&P==",")return I.keyCol=0,I.pair=!1,I.pairStart=!1,F.next(),"meta";if(I.pairStart){if(F.match(/^\s*(\||\>)\s*/))return I.literal=!0,"meta";if(F.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(I.inlinePairs==0&&F.match(/^\s*-?[0-9\.\,]+\s?$/)||I.inlinePairs>0&&F.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(F.match(z))return"keyword"}return!I.pair&&F.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(I.pair=!0,I.keyCol=F.indentation(),"atom"):I.pair&&F.match(/^:\s*/)?(I.pairStart=!0,"meta"):(I.pairStart=!1,I.escaped=P=="\\",F.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),d.defineMIME("text/x-yaml","yaml"),d.defineMIME("text/yaml","yaml")})});var lu=Re((iu,ou)=>{(function(d){typeof iu=="object"&&typeof ou=="object"?d(We()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],d):d(CodeMirror)})(function(d){"use strict";d.defineOption("scrollPastEnd",!1,function(F,I,P){P&&P!=d.Init&&(F.off("change",R),F.off("refresh",z),F.display.lineSpace.parentNode.style.paddingBottom="",F.state.scrollPastEndPadding=null),I&&(F.on("change",R),F.on("refresh",z),z(F))});function R(F,I){d.changeEnd(I).line==F.lastLine()&&z(F)}function z(F){var I="";if(F.lineCount()>1){var P=F.display.scroller.clientHeight-30,m=F.getLineHandle(F.lastLine()).height;I=P-m+"px"}F.state.scrollPastEndPadding!=I&&(F.state.scrollPastEndPadding=I,F.display.lineSpace.parentNode.style.paddingBottom=I,F.off("refresh",z),F.setSize(),F.on("refresh",z))}})});var br=Ue(We(),1),au=Ue(wa(),1),vf=Ue(bo(),1),yf=Ue(xo(),1),bf=Ue(za(),1),xf=Ue(Fa(),1),kf=Ue(Pa(),1),_f=Ue(Ra(),1),wf=Ue(_o(),1),Sf=Ue(ko(),1),Tf=Ue(Xa(),1),Cf=Ue(Qa(),1),Lf=Ue(ns(),1),Ef=Ue(ls(),1),Mf=Ue(us(),1),zf=Ue(ds(),1),Af=Ue(ms(),1),Df=Ue(ys(),1),Ff=Ue(ks(),1),If=Ue(Ss(),1),Of=Ue(Ls(),1),Pf=Ue(zs(),1),Nf=Ue(Ps(),1),qf=Ue(Rs(),1),Rf=Ue(js(),1),Wf=Ue(Ks(),1),Bf=Ue(Xs(),1),jf=Ue(Qs(),1),Hf=Ue(eu(),1),Uf=Ue(yi(),1),Kf=Ue(nu(),1),$f=Ue(lu(),1),wo={bash:"shell",css:"css",c:"text/x-csrc",java:"text/x-java",scala:"text/x-scala",kotlin:"text/x-kotlin","c++":"text/x-c++src","c#":"text/x-csharp",csharp:"text/x-csharp",diff:"diff",for:"fortran",fortran:"fortran","f#":"text/x-fsharp",fsharp:"text/x-fsharp",go:"go",haskell:"haskell",hs:"haskell",html:"htmlmixed",ini:"properties",javascript:"text/javascript",json:"application/json",js:"text/javascript",jl:"text/x-julia",julia:"text/x-julia",latex:"text/x-stex",lua:"lua",md:"markdown",mdown:"markdown",markdown:"markdown",ml:"mllike",nginx:"nginx",perl:"perl",pl:"perl",powershell:"powershell",properties:"properties",ocaml:"text/x-ocaml",pascal:"text/x-pascal",pas:"text/x-pascal",php:d=>d.includes("<?php")?"php":"text/x-php",py:"python",python:"python",ruby:"ruby",rust:"rust",rb:"ruby",rs:"rust",shell:"shell",sh:"shell",stext:"text/x-stex",toml:"toml",ts:"text/typescript",typescript:"text/typescript",sql:"text/x-sql",vbs:"vbscript",vbscript:"vbscript","vb.net":"text/x-vb",vbnet:"text/x-vb",xml:"xml",yaml:"yaml",yml:"yaml"};function Gf(){let d=document.querySelectorAll(".page-content pre, .comment-box .content pre");for(let R of d)su(R)}function Xf(d){let R=d.querySelectorAll("pre");for(let z of R)su(z)}function su(d){let R=d.querySelector("code[class^=language-]");d.innerHTML=d.innerHTML.replace(/<br\s*[\/]?>/gi,`
`);let z=d.textContent.trimEnd(),F="";if(R!==null){let P=R.className.replace("language-","");F=Pn(P,z)}let I=(0,br.default)(function(P){d.parentNode.replaceChild(P,d)},{value:z,mode:F,lineNumbers:!0,lineWrapping:!1,theme:Nn(),readOnly:!0});hf(I)}function hf(d){let R='<svg viewBox="0 0 24 24" width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>',z=document.createElement("div");z.classList.add("CodeMirror-copy"),z.innerHTML=R,d.display.wrapper.appendChild(z),new au.default(z,{text:function(I){return d.getValue()}}).on("success",I=>{z.classList.add("success"),setTimeout(()=>{z.classList.remove("success")},240)})}function Pn(d,R){d=d.trim().replace(/^\./g,"").toLowerCase();let z=typeof wo[d];return z==="undefined"?"":z==="function"?wo[d](R):wo[d]}function Nn(){let d=document.documentElement.classList.contains("dark-mode");return window.codeTheme||(d?"darcula":"default")}function Zf(d,R,z){return(0,br.default)(d,{value:R,mode:Pn(z,R),lineNumbers:!0,lineWrapping:!1,theme:Nn(),readOnly:!0})}function Yf(d,R){let z=d.textContent;return(0,br.default)(function(F){d.parentNode.insertBefore(F,d),d.style.display="none"},{value:z,mode:Pn(R,z),lineNumbers:!0,lineWrapping:!1,theme:Nn()})}function Qf(d,R){return br.default.fromTextArea(d,{mode:Pn(R,d.value),lineNumbers:!0,lineWrapping:!1,theme:Nn()})}function Jf(d,R,z){d.setOption("mode",Pn(R,z))}function Vf(d,R){d.setValue(R),setTimeout(()=>{mf(d)},10)}function mf(d){d.refresh()}function ed(d){let z={value:d.textContent,mode:"markdown",lineNumbers:!0,lineWrapping:!0,theme:Nn(),scrollPastEnd:!0};return window.$events.emitPublic(d,"editor-markdown-cm::pre-init",{config:z}),(0,br.default)(function(F){d.parentNode.insertBefore(F,d),d.style.display="none"},z)}function td(){return br.default.keyMap.default==br.default.keyMap.macDefault?"Cmd":"Ctrl"}export{td as getMetaKey,Gf as highlight,Xf as highlightWithin,Qf as inlineEditor,ed as markdownEditor,Yf as popupEditor,Vf as setContent,Jf as setMode,mf as updateLayout,Zf as wysiwygView};
/*!
* clipboard.js v2.0.11