mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
70 lines
409 KiB
JavaScript
70 lines
409 KiB
JavaScript
var Td=Object.create;var $r=Object.defineProperty;var Id=Object.getOwnPropertyDescriptor;var Dd=Object.getOwnPropertyNames;var Ld=Object.getPrototypeOf,Fd=Object.prototype.hasOwnProperty;var Rd=(r,e,t)=>e in r?$r(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Od=(r,e)=>()=>(r&&(e=r(r=0)),e);var ne=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),bo=(r,e)=>{for(var t in e)$r(r,t,{get:e[t],enumerable:!0})},Vs=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Dd(e))!Fd.call(r,i)&&i!==t&&$r(r,i,{get:()=>e[i],enumerable:!(n=Id(e,i))||n.enumerable});return r};var gn=(r,e,t)=>(t=r!=null?Td(Ld(r)):{},Vs(e||!r||!r.__esModule?$r(t,"default",{value:r,enumerable:!0}):t,r)),Pd=r=>Vs($r({},"__esModule",{value:!0}),r);var br=(r,e,t)=>(Rd(r,typeof e!="symbol"?e+"":e,t),t),Md=(r,e,t)=>{if(!e.has(r))throw TypeError("Cannot "+t)};var xo=(r,e,t)=>{if(e.has(r))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(r):e.set(r,t)};var _r=(r,e,t)=>(Md(r,e,"access private method"),t);var Da=ne((oi,Zo)=>{(function(e,t){if(typeof oi=="object"&&typeof Zo=="object")Zo.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else{var n=t();for(var i in n)(typeof oi=="object"?oi:e)[i]=n[i]}})(self,function(){return function(){var r={3099:function(i){i.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},6077:function(i,s,o){var a=o(111);i.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},1223:function(i,s,o){var a=o(5112),l=o(30),c=o(3070),u=a("unscopables"),d=Array.prototype;d[u]==null&&c.f(d,u,{configurable:!0,value:l(null)}),i.exports=function(h){d[u][h]=!0}},1530:function(i,s,o){"use strict";var a=o(8710).charAt;i.exports=function(l,c,u){return c+(u?a(l,c).length:1)}},5787:function(i){i.exports=function(s,o,a){if(!(s instanceof o))throw TypeError("Incorrect "+(a?a+" ":"")+"invocation");return s}},9670:function(i,s,o){var a=o(111);i.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}},4019:function(i){i.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},260:function(i,s,o){"use strict";var a=o(4019),l=o(9781),c=o(7854),u=o(111),d=o(6656),h=o(648),f=o(8880),p=o(1320),v=o(3070).f,y=o(9518),b=o(7674),x=o(5112),T=o(9711),E=c.Int8Array,M=E&&E.prototype,S=c.Uint8ClampedArray,O=S&&S.prototype,A=E&&y(E),D=M&&y(M),I=Object.prototype,P=I.isPrototypeOf,_=x("toStringTag"),B=T("TYPED_ARRAY_TAG"),H=a&&!!b&&h(c.opera)!=="Opera",Q=!1,Y,re={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ie={BigInt64Array:8,BigUint64Array:8},xe=function(Ae){if(!u(Ae))return!1;var Le=h(Ae);return Le==="DataView"||d(re,Le)||d(ie,Le)},Ie=function(me){if(!u(me))return!1;var Ae=h(me);return d(re,Ae)||d(ie,Ae)},Ee=function(me){if(Ie(me))return me;throw TypeError("Target is not a typed array")},Pe=function(me){if(b){if(P.call(A,me))return me}else for(var Ae in re)if(d(re,Y)){var Le=c[Ae];if(Le&&(me===Le||P.call(Le,me)))return me}throw TypeError("Target is not a typed array constructor")},Me=function(me,Ae,Le){if(l){if(Le)for(var Re in re){var $e=c[Re];$e&&d($e.prototype,me)&&delete $e.prototype[me]}(!D[me]||Le)&&p(D,me,Le?Ae:H&&M[me]||Ae)}},Ne=function(me,Ae,Le){var Re,$e;if(l){if(b){if(Le)for(Re in re)$e=c[Re],$e&&d($e,me)&&delete $e[me];if(!A[me]||Le)try{return p(A,me,Le?Ae:H&&E[me]||Ae)}catch{}else return}for(Re in re)$e=c[Re],$e&&(!$e[me]||Le)&&p($e,me,Ae)}};for(Y in re)c[Y]||(H=!1);if((!H||typeof A!="function"||A===Function.prototype)&&(A=function(){throw TypeError("Incorrect invocation")},H))for(Y in re)c[Y]&&b(c[Y],A);if((!H||!D||D===I)&&(D=A.prototype,H))for(Y in re)c[Y]&&b(c[Y].prototype,D);if(H&&y(O)!==D&&b(O,D),l&&!d(D,_)){Q=!0,v(D,_,{get:function(){return u(this)?this[B]:void 0}});for(Y in re)c[Y]&&f(c[Y],B,Y)}i.exports={NATIVE_ARRAY_BUFFER_VIEWS:H,TYPED_ARRAY_TAG:Q&&B,aTypedArray:Ee,aTypedArrayConstructor:Pe,exportTypedArrayMethod:Me,exportTypedArrayStaticMethod:Ne,isView:xe,isTypedArray:Ie,TypedArray:A,TypedArrayPrototype:D}},3331:function(i,s,o){"use strict";var a=o(7854),l=o(9781),c=o(4019),u=o(8880),d=o(2248),h=o(7293),f=o(5787),p=o(9958),v=o(7466),y=o(7067),b=o(1179),x=o(9518),T=o(7674),E=o(8006).f,M=o(3070).f,S=o(1285),O=o(8003),A=o(9909),D=A.get,I=A.set,P="ArrayBuffer",_="DataView",B="prototype",H="Wrong length",Q="Wrong index",Y=a[P],re=Y,ie=a[_],xe=ie&&ie[B],Ie=Object.prototype,Ee=a.RangeError,Pe=b.pack,Me=b.unpack,Ne=function(ee){return[ee&255]},me=function(ee){return[ee&255,ee>>8&255]},Ae=function(ee){return[ee&255,ee>>8&255,ee>>16&255,ee>>24&255]},Le=function(ee){return ee[3]<<24|ee[2]<<16|ee[1]<<8|ee[0]},Re=function(ee){return Pe(ee,23,4)},$e=function(ee){return Pe(ee,52,8)},ut=function(ee,G){M(ee[B],G,{get:function(){return D(this)[G]}})},Je=function(ee,G,oe,he){var Ue=y(oe),Xe=D(ee);if(Ue+G>Xe.byteLength)throw Ee(Q);var dt=D(Xe.buffer).bytes,st=Ue+Xe.byteOffset,Fe=dt.slice(st,st+G);return he?Fe:Fe.reverse()},rt=function(ee,G,oe,he,Ue,Xe){var dt=y(oe),st=D(ee);if(dt+G>st.byteLength)throw Ee(Q);for(var Fe=D(st.buffer).bytes,ke=dt+st.byteOffset,qt=he(+Ue),vt=0;vt<G;vt++)Fe[ke+vt]=qt[Xe?vt:G-vt-1]};if(!c)re=function(G){f(this,re,P);var oe=y(G);I(this,{bytes:S.call(new Array(oe),0),byteLength:oe}),l||(this.byteLength=oe)},ie=function(G,oe,he){f(this,ie,_),f(G,re,_);var Ue=D(G).byteLength,Xe=p(oe);if(Xe<0||Xe>Ue)throw Ee("Wrong offset");if(he=he===void 0?Ue-Xe:v(he),Xe+he>Ue)throw Ee(H);I(this,{buffer:G,byteLength:he,byteOffset:Xe}),l||(this.buffer=G,this.byteLength=he,this.byteOffset=Xe)},l&&(ut(re,"byteLength"),ut(ie,"buffer"),ut(ie,"byteLength"),ut(ie,"byteOffset")),d(ie[B],{getInt8:function(G){return Je(this,1,G)[0]<<24>>24},getUint8:function(G){return Je(this,1,G)[0]},getInt16:function(G){var oe=Je(this,2,G,arguments.length>1?arguments[1]:void 0);return(oe[1]<<8|oe[0])<<16>>16},getUint16:function(G){var oe=Je(this,2,G,arguments.length>1?arguments[1]:void 0);return oe[1]<<8|oe[0]},getInt32:function(G){return Le(Je(this,4,G,arguments.length>1?arguments[1]:void 0))},getUint32:function(G){return Le(Je(this,4,G,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(G){return Me(Je(this,4,G,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(G){return Me(Je(this,8,G,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(G,oe){rt(this,1,G,Ne,oe)},setUint8:function(G,oe){rt(this,1,G,Ne,oe)},setInt16:function(G,oe){rt(this,2,G,me,oe,arguments.length>2?arguments[2]:void 0)},setUint16:function(G,oe){rt(this,2,G,me,oe,arguments.length>2?arguments[2]:void 0)},setInt32:function(G,oe){rt(this,4,G,Ae,oe,arguments.length>2?arguments[2]:void 0)},setUint32:function(G,oe){rt(this,4,G,Ae,oe,arguments.length>2?arguments[2]:void 0)},setFloat32:function(G,oe){rt(this,4,G,Re,oe,arguments.length>2?arguments[2]:void 0)},setFloat64:function(G,oe){rt(this,8,G,$e,oe,arguments.length>2?arguments[2]:void 0)}});else{if(!h(function(){Y(1)})||!h(function(){new Y(-1)})||h(function(){return new Y,new Y(1.5),new Y(NaN),Y.name!=P})){re=function(G){return f(this,re),new Y(y(G))};for(var ve=re[B]=Y[B],se=E(Y),de=0,pe;se.length>de;)(pe=se[de++])in re||u(re,pe,Y[pe]);ve.constructor=re}T&&x(xe)!==Ie&&T(xe,Ie);var ce=new ie(new re(2)),ge=xe.setInt8;ce.setInt8(0,2147483648),ce.setInt8(1,2147483649),(ce.getInt8(0)||!ce.getInt8(1))&&d(xe,{setInt8:function(G,oe){ge.call(this,G,oe<<24>>24)},setUint8:function(G,oe){ge.call(this,G,oe<<24>>24)}},{unsafe:!0})}O(re,P),O(ie,_),i.exports={ArrayBuffer:re,DataView:ie}},1048:function(i,s,o){"use strict";var a=o(7908),l=o(1400),c=o(7466),u=Math.min;i.exports=[].copyWithin||function(h,f){var p=a(this),v=c(p.length),y=l(h,v),b=l(f,v),x=arguments.length>2?arguments[2]:void 0,T=u((x===void 0?v:l(x,v))-b,v-y),E=1;for(b<y&&y<b+T&&(E=-1,b+=T-1,y+=T-1);T-- >0;)b in p?p[y]=p[b]:delete p[y],y+=E,b+=E;return p}},1285:function(i,s,o){"use strict";var a=o(7908),l=o(1400),c=o(7466);i.exports=function(d){for(var h=a(this),f=c(h.length),p=arguments.length,v=l(p>1?arguments[1]:void 0,f),y=p>2?arguments[2]:void 0,b=y===void 0?f:l(y,f);b>v;)h[v++]=d;return h}},8533:function(i,s,o){"use strict";var a=o(2092).forEach,l=o(9341),c=l("forEach");i.exports=c?[].forEach:function(d){return a(this,d,arguments.length>1?arguments[1]:void 0)}},8457:function(i,s,o){"use strict";var a=o(9974),l=o(7908),c=o(3411),u=o(7659),d=o(7466),h=o(6135),f=o(1246);i.exports=function(v){var y=l(v),b=typeof this=="function"?this:Array,x=arguments.length,T=x>1?arguments[1]:void 0,E=T!==void 0,M=f(y),S=0,O,A,D,I,P,_;if(E&&(T=a(T,x>2?arguments[2]:void 0,2)),M!=null&&!(b==Array&&u(M)))for(I=M.call(y),P=I.next,A=new b;!(D=P.call(I)).done;S++)_=E?c(I,T,[D.value,S],!0):D.value,h(A,S,_);else for(O=d(y.length),A=new b(O);O>S;S++)_=E?T(y[S],S):y[S],h(A,S,_);return A.length=S,A}},1318:function(i,s,o){var a=o(5656),l=o(7466),c=o(1400),u=function(d){return function(h,f,p){var v=a(h),y=l(v.length),b=c(p,y),x;if(d&&f!=f){for(;y>b;)if(x=v[b++],x!=x)return!0}else for(;y>b;b++)if((d||b in v)&&v[b]===f)return d||b||0;return!d&&-1}};i.exports={includes:u(!0),indexOf:u(!1)}},2092:function(i,s,o){var a=o(9974),l=o(8361),c=o(7908),u=o(7466),d=o(5417),h=[].push,f=function(p){var v=p==1,y=p==2,b=p==3,x=p==4,T=p==6,E=p==7,M=p==5||T;return function(S,O,A,D){for(var I=c(S),P=l(I),_=a(O,A,3),B=u(P.length),H=0,Q=D||d,Y=v?Q(S,B):y||E?Q(S,0):void 0,re,ie;B>H;H++)if((M||H in P)&&(re=P[H],ie=_(re,H,I),p))if(v)Y[H]=ie;else if(ie)switch(p){case 3:return!0;case 5:return re;case 6:return H;case 2:h.call(Y,re)}else switch(p){case 4:return!1;case 7:h.call(Y,re)}return T?-1:b||x?x:Y}};i.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterOut:f(7)}},6583:function(i,s,o){"use strict";var a=o(5656),l=o(9958),c=o(7466),u=o(9341),d=Math.min,h=[].lastIndexOf,f=!!h&&1/[1].lastIndexOf(1,-0)<0,p=u("lastIndexOf"),v=f||!p;i.exports=v?function(b){if(f)return h.apply(this,arguments)||0;var x=a(this),T=c(x.length),E=T-1;for(arguments.length>1&&(E=d(E,l(arguments[1]))),E<0&&(E=T+E);E>=0;E--)if(E in x&&x[E]===b)return E||0;return-1}:h},1194:function(i,s,o){var a=o(7293),l=o(5112),c=o(7392),u=l("species");i.exports=function(d){return c>=51||!a(function(){var h=[],f=h.constructor={};return f[u]=function(){return{foo:1}},h[d](Boolean).foo!==1})}},9341:function(i,s,o){"use strict";var a=o(7293);i.exports=function(l,c){var u=[][l];return!!u&&a(function(){u.call(null,c||function(){throw 1},1)})}},3671:function(i,s,o){var a=o(3099),l=o(7908),c=o(8361),u=o(7466),d=function(h){return function(f,p,v,y){a(p);var b=l(f),x=c(b),T=u(b.length),E=h?T-1:0,M=h?-1:1;if(v<2)for(;;){if(E in x){y=x[E],E+=M;break}if(E+=M,h?E<0:T<=E)throw TypeError("Reduce of empty array with no initial value")}for(;h?E>=0:T>E;E+=M)E in x&&(y=p(y,x[E],E,b));return y}};i.exports={left:d(!1),right:d(!0)}},5417:function(i,s,o){var a=o(111),l=o(3157),c=o(5112),u=c("species");i.exports=function(d,h){var f;return l(d)&&(f=d.constructor,typeof f=="function"&&(f===Array||l(f.prototype))?f=void 0:a(f)&&(f=f[u],f===null&&(f=void 0))),new(f===void 0?Array:f)(h===0?0:h)}},3411:function(i,s,o){var a=o(9670),l=o(9212);i.exports=function(c,u,d,h){try{return h?u(a(d)[0],d[1]):u(d)}catch(f){throw l(c),f}}},7072:function(i,s,o){var a=o(5112),l=a("iterator"),c=!1;try{var u=0,d={next:function(){return{done:!!u++}},return:function(){c=!0}};d[l]=function(){return this},Array.from(d,function(){throw 2})}catch{}i.exports=function(h,f){if(!f&&!c)return!1;var p=!1;try{var v={};v[l]=function(){return{next:function(){return{done:p=!0}}}},h(v)}catch{}return p}},4326:function(i){var s={}.toString;i.exports=function(o){return s.call(o).slice(8,-1)}},648:function(i,s,o){var a=o(1694),l=o(4326),c=o(5112),u=c("toStringTag"),d=l(function(){return arguments}())=="Arguments",h=function(f,p){try{return f[p]}catch{}};i.exports=a?l:function(f){var p,v,y;return f===void 0?"Undefined":f===null?"Null":typeof(v=h(p=Object(f),u))=="string"?v:d?l(p):(y=l(p))=="Object"&&typeof p.callee=="function"?"Arguments":y}},9920:function(i,s,o){var a=o(6656),l=o(3887),c=o(1236),u=o(3070);i.exports=function(d,h){for(var f=l(h),p=u.f,v=c.f,y=0;y<f.length;y++){var b=f[y];a(d,b)||p(d,b,v(h,b))}}},8544:function(i,s,o){var a=o(7293);i.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},4994:function(i,s,o){"use strict";var a=o(3383).IteratorPrototype,l=o(30),c=o(9114),u=o(8003),d=o(7497),h=function(){return this};i.exports=function(f,p,v){var y=p+" Iterator";return f.prototype=l(a,{next:c(1,v)}),u(f,y,!1,!0),d[y]=h,f}},8880:function(i,s,o){var a=o(9781),l=o(3070),c=o(9114);i.exports=a?function(u,d,h){return l.f(u,d,c(1,h))}:function(u,d,h){return u[d]=h,u}},9114:function(i){i.exports=function(s,o){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:o}}},6135:function(i,s,o){"use strict";var a=o(7593),l=o(3070),c=o(9114);i.exports=function(u,d,h){var f=a(d);f in u?l.f(u,f,c(0,h)):u[f]=h}},654:function(i,s,o){"use strict";var a=o(2109),l=o(4994),c=o(9518),u=o(7674),d=o(8003),h=o(8880),f=o(1320),p=o(5112),v=o(1913),y=o(7497),b=o(3383),x=b.IteratorPrototype,T=b.BUGGY_SAFARI_ITERATORS,E=p("iterator"),M="keys",S="values",O="entries",A=function(){return this};i.exports=function(D,I,P,_,B,H,Q){l(P,I,_);var Y=function(Ae){if(Ae===B&&Ee)return Ee;if(!T&&Ae in xe)return xe[Ae];switch(Ae){case M:return function(){return new P(this,Ae)};case S:return function(){return new P(this,Ae)};case O:return function(){return new P(this,Ae)}}return function(){return new P(this)}},re=I+" Iterator",ie=!1,xe=D.prototype,Ie=xe[E]||xe["@@iterator"]||B&&xe[B],Ee=!T&&Ie||Y(B),Pe=I=="Array"&&xe.entries||Ie,Me,Ne,me;if(Pe&&(Me=c(Pe.call(new D)),x!==Object.prototype&&Me.next&&(!v&&c(Me)!==x&&(u?u(Me,x):typeof Me[E]!="function"&&h(Me,E,A)),d(Me,re,!0,!0),v&&(y[re]=A))),B==S&&Ie&&Ie.name!==S&&(ie=!0,Ee=function(){return Ie.call(this)}),(!v||Q)&&xe[E]!==Ee&&h(xe,E,Ee),y[I]=Ee,B)if(Ne={values:Y(S),keys:H?Ee:Y(M),entries:Y(O)},Q)for(me in Ne)(T||ie||!(me in xe))&&f(xe,me,Ne[me]);else a({target:I,proto:!0,forced:T||ie},Ne);return Ne}},9781:function(i,s,o){var a=o(7293);i.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(i,s,o){var a=o(7854),l=o(111),c=a.document,u=l(c)&&l(c.createElement);i.exports=function(d){return u?c.createElement(d):{}}},8324:function(i){i.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(i,s,o){var a=o(5005);i.exports=a("navigator","userAgent")||""},7392:function(i,s,o){var a=o(7854),l=o(8113),c=a.process,u=c&&c.versions,d=u&&u.v8,h,f;d?(h=d.split("."),f=h[0]+h[1]):l&&(h=l.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=l.match(/Chrome\/(\d+)/),h&&(f=h[1]))),i.exports=f&&+f},748:function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(i,s,o){var a=o(7854),l=o(1236).f,c=o(8880),u=o(1320),d=o(3505),h=o(9920),f=o(4705);i.exports=function(p,v){var y=p.target,b=p.global,x=p.stat,T,E,M,S,O,A;if(b?E=a:x?E=a[y]||d(y,{}):E=(a[y]||{}).prototype,E)for(M in v){if(O=v[M],p.noTargetGet?(A=l(E,M),S=A&&A.value):S=E[M],T=f(b?M:y+(x?".":"#")+M,p.forced),!T&&S!==void 0){if(typeof O==typeof S)continue;h(O,S)}(p.sham||S&&S.sham)&&c(O,"sham",!0),u(E,M,O,p)}}},7293:function(i){i.exports=function(s){try{return!!s()}catch{return!0}}},7007:function(i,s,o){"use strict";o(4916);var a=o(1320),l=o(7293),c=o(5112),u=o(2261),d=o(8880),h=c("species"),f=!l(function(){var x=/./;return x.exec=function(){var T=[];return T.groups={a:"7"},T},"".replace(x,"$<a>")!=="7"}),p=function(){return"a".replace(/./,"$0")==="$0"}(),v=c("replace"),y=function(){return/./[v]?/./[v]("a","$0")==="":!1}(),b=!l(function(){var x=/(?:)/,T=x.exec;x.exec=function(){return T.apply(this,arguments)};var E="ab".split(x);return E.length!==2||E[0]!=="a"||E[1]!=="b"});i.exports=function(x,T,E,M){var S=c(x),O=!l(function(){var B={};return B[S]=function(){return 7},""[x](B)!=7}),A=O&&!l(function(){var B=!1,H=/a/;return x==="split"&&(H={},H.constructor={},H.constructor[h]=function(){return H},H.flags="",H[S]=/./[S]),H.exec=function(){return B=!0,null},H[S](""),!B});if(!O||!A||x==="replace"&&!(f&&p&&!y)||x==="split"&&!b){var D=/./[S],I=E(S,""[x],function(B,H,Q,Y,re){return H.exec===u?O&&!re?{done:!0,value:D.call(H,Q,Y)}:{done:!0,value:B.call(Q,H,Y)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:y}),P=I[0],_=I[1];a(String.prototype,x,P),a(RegExp.prototype,S,T==2?function(B,H){return _.call(B,this,H)}:function(B){return _.call(B,this)})}M&&d(RegExp.prototype[S],"sham",!0)}},9974:function(i,s,o){var a=o(3099);i.exports=function(l,c,u){if(a(l),c===void 0)return l;switch(u){case 0:return function(){return l.call(c)};case 1:return function(d){return l.call(c,d)};case 2:return function(d,h){return l.call(c,d,h)};case 3:return function(d,h,f){return l.call(c,d,h,f)}}return function(){return l.apply(c,arguments)}}},5005:function(i,s,o){var a=o(857),l=o(7854),c=function(u){return typeof u=="function"?u:void 0};i.exports=function(u,d){return arguments.length<2?c(a[u])||c(l[u]):a[u]&&a[u][d]||l[u]&&l[u][d]}},1246:function(i,s,o){var a=o(648),l=o(7497),c=o(5112),u=c("iterator");i.exports=function(d){if(d!=null)return d[u]||d["@@iterator"]||l[a(d)]}},8554:function(i,s,o){var a=o(9670),l=o(1246);i.exports=function(c){var u=l(c);if(typeof u!="function")throw TypeError(String(c)+" is not iterable");return a(u.call(c))}},647:function(i,s,o){var a=o(7908),l=Math.floor,c="".replace,u=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;i.exports=function(h,f,p,v,y,b){var x=p+h.length,T=v.length,E=d;return y!==void 0&&(y=a(y),E=u),c.call(b,E,function(M,S){var O;switch(S.charAt(0)){case"$":return"$";case"&":return h;case"`":return f.slice(0,p);case"'":return f.slice(x);case"<":O=y[S.slice(1,-1)];break;default:var A=+S;if(A===0)return M;if(A>T){var D=l(A/10);return D===0?M:D<=T?v[D-1]===void 0?S.charAt(1):v[D-1]+S.charAt(1):M}O=v[A-1]}return O===void 0?"":O})}},7854:function(i,s,o){var a=function(l){return l&&l.Math==Math&&l};i.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},6656:function(i){var s={}.hasOwnProperty;i.exports=function(o,a){return s.call(o,a)}},3501:function(i){i.exports={}},490:function(i,s,o){var a=o(5005);i.exports=a("document","documentElement")},4664:function(i,s,o){var a=o(9781),l=o(7293),c=o(317);i.exports=!a&&!l(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(i){var s=Math.abs,o=Math.pow,a=Math.floor,l=Math.log,c=Math.LN2,u=function(h,f,p){var v=new Array(p),y=p*8-f-1,b=(1<<y)-1,x=b>>1,T=f===23?o(2,-24)-o(2,-77):0,E=h<0||h===0&&1/h<0?1:0,M=0,S,O,A;for(h=s(h),h!=h||h===1/0?(O=h!=h?1:0,S=b):(S=a(l(h)/c),h*(A=o(2,-S))<1&&(S--,A*=2),S+x>=1?h+=T/A:h+=T*o(2,1-x),h*A>=2&&(S++,A/=2),S+x>=b?(O=0,S=b):S+x>=1?(O=(h*A-1)*o(2,f),S=S+x):(O=h*o(2,x-1)*o(2,f),S=0));f>=8;v[M++]=O&255,O/=256,f-=8);for(S=S<<f|O,y+=f;y>0;v[M++]=S&255,S/=256,y-=8);return v[--M]|=E*128,v},d=function(h,f){var p=h.length,v=p*8-f-1,y=(1<<v)-1,b=y>>1,x=v-7,T=p-1,E=h[T--],M=E&127,S;for(E>>=7;x>0;M=M*256+h[T],T--,x-=8);for(S=M&(1<<-x)-1,M>>=-x,x+=f;x>0;S=S*256+h[T],T--,x-=8);if(M===0)M=1-b;else{if(M===y)return S?NaN:E?-1/0:1/0;S=S+o(2,f),M=M-b}return(E?-1:1)*S*o(2,M-f)};i.exports={pack:u,unpack:d}},8361:function(i,s,o){var a=o(7293),l=o(4326),c="".split;i.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return l(u)=="String"?c.call(u,""):Object(u)}:Object},9587:function(i,s,o){var a=o(111),l=o(7674);i.exports=function(c,u,d){var h,f;return l&&typeof(h=u.constructor)=="function"&&h!==d&&a(f=h.prototype)&&f!==d.prototype&&l(c,f),c}},2788:function(i,s,o){var a=o(5465),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(c){return l.call(c)}),i.exports=a.inspectSource},9909:function(i,s,o){var a=o(8536),l=o(7854),c=o(111),u=o(8880),d=o(6656),h=o(5465),f=o(6200),p=o(3501),v=l.WeakMap,y,b,x,T=function(I){return x(I)?b(I):y(I,{})},E=function(I){return function(P){var _;if(!c(P)||(_=b(P)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return _}};if(a){var M=h.state||(h.state=new v),S=M.get,O=M.has,A=M.set;y=function(I,P){return P.facade=I,A.call(M,I,P),P},b=function(I){return S.call(M,I)||{}},x=function(I){return O.call(M,I)}}else{var D=f("state");p[D]=!0,y=function(I,P){return P.facade=I,u(I,D,P),P},b=function(I){return d(I,D)?I[D]:{}},x=function(I){return d(I,D)}}i.exports={set:y,get:b,has:x,enforce:T,getterFor:E}},7659:function(i,s,o){var a=o(5112),l=o(7497),c=a("iterator"),u=Array.prototype;i.exports=function(d){return d!==void 0&&(l.Array===d||u[c]===d)}},3157:function(i,s,o){var a=o(4326);i.exports=Array.isArray||function(c){return a(c)=="Array"}},4705:function(i,s,o){var a=o(7293),l=/#|\.prototype\./,c=function(p,v){var y=d[u(p)];return y==f?!0:y==h?!1:typeof v=="function"?a(v):!!v},u=c.normalize=function(p){return String(p).replace(l,".").toLowerCase()},d=c.data={},h=c.NATIVE="N",f=c.POLYFILL="P";i.exports=c},111:function(i){i.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},1913:function(i){i.exports=!1},7850:function(i,s,o){var a=o(111),l=o(4326),c=o(5112),u=c("match");i.exports=function(d){var h;return a(d)&&((h=d[u])!==void 0?!!h:l(d)=="RegExp")}},9212:function(i,s,o){var a=o(9670);i.exports=function(l){var c=l.return;if(c!==void 0)return a(c.call(l)).value}},3383:function(i,s,o){"use strict";var a=o(7293),l=o(9518),c=o(8880),u=o(6656),d=o(5112),h=o(1913),f=d("iterator"),p=!1,v=function(){return this},y,b,x;[].keys&&(x=[].keys(),"next"in x?(b=l(l(x)),b!==Object.prototype&&(y=b)):p=!0);var T=y==null||a(function(){var E={};return y[f].call(E)!==E});T&&(y={}),(!h||T)&&!u(y,f)&&c(y,f,v),i.exports={IteratorPrototype:y,BUGGY_SAFARI_ITERATORS:p}},7497:function(i){i.exports={}},133:function(i,s,o){var a=o(7293);i.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},590:function(i,s,o){var a=o(7293),l=o(5112),c=o(1913),u=l("iterator");i.exports=!a(function(){var d=new URL("b?a=1&b=2&c=3","http://a"),h=d.searchParams,f="";return d.pathname="c%20d",h.forEach(function(p,v){h.delete("b"),f+=v+p}),c&&!d.toJSON||!h.sort||d.href!=="http://a/c%20d?a=1&c=3"||h.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!h[u]||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"||f!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(i,s,o){var a=o(7854),l=o(2788),c=a.WeakMap;i.exports=typeof c=="function"&&/native code/.test(l(c))},1574:function(i,s,o){"use strict";var a=o(9781),l=o(7293),c=o(1956),u=o(5181),d=o(5296),h=o(7908),f=o(8361),p=Object.assign,v=Object.defineProperty;i.exports=!p||l(function(){if(a&&p({b:1},p(v({},"a",{enumerable:!0,get:function(){v(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var y={},b={},x=Symbol(),T="abcdefghijklmnopqrst";return y[x]=7,T.split("").forEach(function(E){b[E]=E}),p({},y)[x]!=7||c(p({},b)).join("")!=T})?function(b,x){for(var T=h(b),E=arguments.length,M=1,S=u.f,O=d.f;E>M;)for(var A=f(arguments[M++]),D=S?c(A).concat(S(A)):c(A),I=D.length,P=0,_;I>P;)_=D[P++],(!a||O.call(A,_))&&(T[_]=A[_]);return T}:p},30:function(i,s,o){var a=o(9670),l=o(6048),c=o(748),u=o(3501),d=o(490),h=o(317),f=o(6200),p=">",v="<",y="prototype",b="script",x=f("IE_PROTO"),T=function(){},E=function(D){return v+b+p+D+v+"/"+b+p},M=function(D){D.write(E("")),D.close();var I=D.parentWindow.Object;return D=null,I},S=function(){var D=h("iframe"),I="java"+b+":",P;return D.style.display="none",d.appendChild(D),D.src=String(I),P=D.contentWindow.document,P.open(),P.write(E("document.F=Object")),P.close(),P.F},O,A=function(){try{O=document.domain&&new ActiveXObject("htmlfile")}catch{}A=O?M(O):S();for(var D=c.length;D--;)delete A[y][c[D]];return A()};u[x]=!0,i.exports=Object.create||function(I,P){var _;return I!==null?(T[y]=a(I),_=new T,T[y]=null,_[x]=I):_=A(),P===void 0?_:l(_,P)}},6048:function(i,s,o){var a=o(9781),l=o(3070),c=o(9670),u=o(1956);i.exports=a?Object.defineProperties:function(h,f){c(h);for(var p=u(f),v=p.length,y=0,b;v>y;)l.f(h,b=p[y++],f[b]);return h}},3070:function(i,s,o){var a=o(9781),l=o(4664),c=o(9670),u=o(7593),d=Object.defineProperty;s.f=a?d:function(f,p,v){if(c(f),p=u(p,!0),c(v),l)try{return d(f,p,v)}catch{}if("get"in v||"set"in v)throw TypeError("Accessors not supported");return"value"in v&&(f[p]=v.value),f}},1236:function(i,s,o){var a=o(9781),l=o(5296),c=o(9114),u=o(5656),d=o(7593),h=o(6656),f=o(4664),p=Object.getOwnPropertyDescriptor;s.f=a?p:function(y,b){if(y=u(y),b=d(b,!0),f)try{return p(y,b)}catch{}if(h(y,b))return c(!l.f.call(y,b),y[b])}},8006:function(i,s,o){var a=o(6324),l=o(748),c=l.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(d){return a(d,c)}},5181:function(i,s){s.f=Object.getOwnPropertySymbols},9518:function(i,s,o){var a=o(6656),l=o(7908),c=o(6200),u=o(8544),d=c("IE_PROTO"),h=Object.prototype;i.exports=u?Object.getPrototypeOf:function(f){return f=l(f),a(f,d)?f[d]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?h:null}},6324:function(i,s,o){var a=o(6656),l=o(5656),c=o(1318).indexOf,u=o(3501);i.exports=function(d,h){var f=l(d),p=0,v=[],y;for(y in f)!a(u,y)&&a(f,y)&&v.push(y);for(;h.length>p;)a(f,y=h[p++])&&(~c(v,y)||v.push(y));return v}},1956:function(i,s,o){var a=o(6324),l=o(748);i.exports=Object.keys||function(u){return a(u,l)}},5296:function(i,s){"use strict";var o={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l=a&&!o.call({1:2},1);s.f=l?function(u){var d=a(this,u);return!!d&&d.enumerable}:o},7674:function(i,s,o){var a=o(9670),l=o(6077);i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,u={},d;try{d=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,d.call(u,[]),c=u instanceof Array}catch{}return function(f,p){return a(f),l(p),c?d.call(f,p):f.__proto__=p,f}}():void 0)},288:function(i,s,o){"use strict";var a=o(1694),l=o(648);i.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}},3887:function(i,s,o){var a=o(5005),l=o(8006),c=o(5181),u=o(9670);i.exports=a("Reflect","ownKeys")||function(h){var f=l.f(u(h)),p=c.f;return p?f.concat(p(h)):f}},857:function(i,s,o){var a=o(7854);i.exports=a},2248:function(i,s,o){var a=o(1320);i.exports=function(l,c,u){for(var d in c)a(l,d,c[d],u);return l}},1320:function(i,s,o){var a=o(7854),l=o(8880),c=o(6656),u=o(3505),d=o(2788),h=o(9909),f=h.get,p=h.enforce,v=String(String).split("String");(i.exports=function(y,b,x,T){var E=T?!!T.unsafe:!1,M=T?!!T.enumerable:!1,S=T?!!T.noTargetGet:!1,O;if(typeof x=="function"&&(typeof b=="string"&&!c(x,"name")&&l(x,"name",b),O=p(x),O.source||(O.source=v.join(typeof b=="string"?b:""))),y===a){M?y[b]=x:u(b,x);return}else E?!S&&y[b]&&(M=!0):delete y[b];M?y[b]=x:l(y,b,x)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||d(this)})},7651:function(i,s,o){var a=o(4326),l=o(2261);i.exports=function(c,u){var d=c.exec;if(typeof d=="function"){var h=d.call(c,u);if(typeof h!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return h}if(a(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(c,u)}},2261:function(i,s,o){"use strict";var a=o(7066),l=o(2999),c=RegExp.prototype.exec,u=String.prototype.replace,d=c,h=function(){var y=/a/,b=/b*/g;return c.call(y,"a"),c.call(b,"a"),y.lastIndex!==0||b.lastIndex!==0}(),f=l.UNSUPPORTED_Y||l.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,v=h||p||f;v&&(d=function(b){var x=this,T,E,M,S,O=f&&x.sticky,A=a.call(x),D=x.source,I=0,P=b;return O&&(A=A.replace("y",""),A.indexOf("g")===-1&&(A+="g"),P=String(b).slice(x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&b[x.lastIndex-1]!==`
|
|
`)&&(D="(?: "+D+")",P=" "+P,I++),E=new RegExp("^(?:"+D+")",A)),p&&(E=new RegExp("^"+D+"$(?!\\s)",A)),h&&(T=x.lastIndex),M=c.call(O?E: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:T),p&&M&&M.length>1&&u.call(M[0],E,function(){for(S=1;S<arguments.length-2;S++)arguments[S]===void 0&&(M[S]=void 0)}),M}),i.exports=d},7066:function(i,s,o){"use strict";var a=o(9670);i.exports=function(){var l=a(this),c="";return l.global&&(c+="g"),l.ignoreCase&&(c+="i"),l.multiline&&(c+="m"),l.dotAll&&(c+="s"),l.unicode&&(c+="u"),l.sticky&&(c+="y"),c}},2999:function(i,s,o){"use strict";var a=o(7293);function l(c,u){return RegExp(c,u)}s.UNSUPPORTED_Y=a(function(){var c=l("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),s.BROKEN_CARET=a(function(){var c=l("^r","gy");return c.lastIndex=2,c.exec("str")!=null})},4488:function(i){i.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},3505:function(i,s,o){var a=o(7854),l=o(8880);i.exports=function(c,u){try{l(a,c,u)}catch{a[c]=u}return u}},6340:function(i,s,o){"use strict";var a=o(5005),l=o(3070),c=o(5112),u=o(9781),d=c("species");i.exports=function(h){var f=a(h),p=l.f;u&&f&&!f[d]&&p(f,d,{configurable:!0,get:function(){return this}})}},8003:function(i,s,o){var a=o(3070).f,l=o(6656),c=o(5112),u=c("toStringTag");i.exports=function(d,h,f){d&&!l(d=f?d:d.prototype,u)&&a(d,u,{configurable:!0,value:h})}},6200:function(i,s,o){var a=o(2309),l=o(9711),c=a("keys");i.exports=function(u){return c[u]||(c[u]=l(u))}},5465:function(i,s,o){var a=o(7854),l=o(3505),c="__core-js_shared__",u=a[c]||l(c,{});i.exports=u},2309:function(i,s,o){var a=o(1913),l=o(5465);(i.exports=function(c,u){return l[c]||(l[c]=u!==void 0?u:{})})("versions",[]).push({version:"3.9.0",mode:a?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(i,s,o){var a=o(9670),l=o(3099),c=o(5112),u=c("species");i.exports=function(d,h){var f=a(d).constructor,p;return f===void 0||(p=a(f)[u])==null?h:l(p)}},8710:function(i,s,o){var a=o(9958),l=o(4488),c=function(u){return function(d,h){var f=String(l(d)),p=a(h),v=f.length,y,b;return p<0||p>=v?u?"":void 0:(y=f.charCodeAt(p),y<55296||y>56319||p+1===v||(b=f.charCodeAt(p+1))<56320||b>57343?u?f.charAt(p):y:u?f.slice(p,p+2):(y-55296<<10)+(b-56320)+65536)}};i.exports={codeAt:c(!1),charAt:c(!0)}},3197:function(i){"use strict";var s=2147483647,o=36,a=1,l=26,c=38,u=700,d=72,h=128,f="-",p=/[^\0-\u007E]/,v=/[.\u3002\uFF0E\uFF61]/g,y="Overflow: input needs wider integers to process",b=o-a,x=Math.floor,T=String.fromCharCode,E=function(A){for(var D=[],I=0,P=A.length;I<P;){var _=A.charCodeAt(I++);if(_>=55296&&_<=56319&&I<P){var B=A.charCodeAt(I++);(B&64512)==56320?D.push(((_&1023)<<10)+(B&1023)+65536):(D.push(_),I--)}else D.push(_)}return D},M=function(A){return A+22+75*(A<26)},S=function(A,D,I){var P=0;for(A=I?x(A/u):A>>1,A+=x(A/D);A>b*l>>1;P+=o)A=x(A/b);return x(P+(b+1)*A/(A+c))},O=function(A){var D=[];A=E(A);var I=A.length,P=h,_=0,B=d,H,Q;for(H=0;H<A.length;H++)Q=A[H],Q<128&&D.push(T(Q));var Y=D.length,re=Y;for(Y&&D.push(f);re<I;){var ie=s;for(H=0;H<A.length;H++)Q=A[H],Q>=P&&Q<ie&&(ie=Q);var xe=re+1;if(ie-P>x((s-_)/xe))throw RangeError(y);for(_+=(ie-P)*xe,P=ie,H=0;H<A.length;H++){if(Q=A[H],Q<P&&++_>s)throw RangeError(y);if(Q==P){for(var Ie=_,Ee=o;;Ee+=o){var Pe=Ee<=B?a:Ee>=B+l?l:Ee-B;if(Ie<Pe)break;var Me=Ie-Pe,Ne=o-Pe;D.push(T(M(Pe+Me%Ne))),Ie=x(Me/Ne)}D.push(T(M(Ie))),B=S(_,xe,re==Y),_=0,++re}}++_,++P}return D.join("")};i.exports=function(A){var D=[],I=A.toLowerCase().replace(v,".").split("."),P,_;for(P=0;P<I.length;P++)_=I[P],D.push(p.test(_)?"xn--"+O(_):_);return D.join(".")}},6091:function(i,s,o){var a=o(7293),l=o(1361),c="\u200B\x85\u180E";i.exports=function(u){return a(function(){return!!l[u]()||c[u]()!=c||l[u].name!==u})}},3111:function(i,s,o){var a=o(4488),l=o(1361),c="["+l+"]",u=RegExp("^"+c+c+"*"),d=RegExp(c+c+"*$"),h=function(f){return function(p){var v=String(a(p));return f&1&&(v=v.replace(u,"")),f&2&&(v=v.replace(d,"")),v}};i.exports={start:h(1),end:h(2),trim:h(3)}},1400:function(i,s,o){var a=o(9958),l=Math.max,c=Math.min;i.exports=function(u,d){var h=a(u);return h<0?l(h+d,0):c(h,d)}},7067:function(i,s,o){var a=o(9958),l=o(7466);i.exports=function(c){if(c===void 0)return 0;var u=a(c),d=l(u);if(u!==d)throw RangeError("Wrong length or index");return d}},5656:function(i,s,o){var a=o(8361),l=o(4488);i.exports=function(c){return a(l(c))}},9958:function(i){var s=Math.ceil,o=Math.floor;i.exports=function(a){return isNaN(a=+a)?0:(a>0?o:s)(a)}},7466:function(i,s,o){var a=o(9958),l=Math.min;i.exports=function(c){return c>0?l(a(c),9007199254740991):0}},7908:function(i,s,o){var a=o(4488);i.exports=function(l){return Object(a(l))}},4590:function(i,s,o){var a=o(3002);i.exports=function(l,c){var u=a(l);if(u%c)throw RangeError("Wrong offset");return u}},3002:function(i,s,o){var a=o(9958);i.exports=function(l){var c=a(l);if(c<0)throw RangeError("The argument can't be less than 0");return c}},7593:function(i,s,o){var a=o(111);i.exports=function(l,c){if(!a(l))return l;var u,d;if(c&&typeof(u=l.toString)=="function"&&!a(d=u.call(l))||typeof(u=l.valueOf)=="function"&&!a(d=u.call(l))||!c&&typeof(u=l.toString)=="function"&&!a(d=u.call(l)))return d;throw TypeError("Can't convert object to primitive value")}},1694:function(i,s,o){var a=o(5112),l=a("toStringTag"),c={};c[l]="z",i.exports=String(c)==="[object z]"},9843:function(i,s,o){"use strict";var a=o(2109),l=o(7854),c=o(9781),u=o(3832),d=o(260),h=o(3331),f=o(5787),p=o(9114),v=o(8880),y=o(7466),b=o(7067),x=o(4590),T=o(7593),E=o(6656),M=o(648),S=o(111),O=o(30),A=o(7674),D=o(8006).f,I=o(7321),P=o(2092).forEach,_=o(6340),B=o(3070),H=o(1236),Q=o(9909),Y=o(9587),re=Q.get,ie=Q.set,xe=B.f,Ie=H.f,Ee=Math.round,Pe=l.RangeError,Me=h.ArrayBuffer,Ne=h.DataView,me=d.NATIVE_ARRAY_BUFFER_VIEWS,Ae=d.TYPED_ARRAY_TAG,Le=d.TypedArray,Re=d.TypedArrayPrototype,$e=d.aTypedArrayConstructor,ut=d.isTypedArray,Je="BYTES_PER_ELEMENT",rt="Wrong length",ve=function(ee,G){for(var oe=0,he=G.length,Ue=new($e(ee))(he);he>oe;)Ue[oe]=G[oe++];return Ue},se=function(ee,G){xe(ee,G,{get:function(){return re(this)[G]}})},de=function(ee){var G;return ee instanceof Me||(G=M(ee))=="ArrayBuffer"||G=="SharedArrayBuffer"},pe=function(ee,G){return ut(ee)&&typeof G!="symbol"&&G in ee&&String(+G)==String(G)},ce=function(G,oe){return pe(G,oe=T(oe,!0))?p(2,G[oe]):Ie(G,oe)},ge=function(G,oe,he){return pe(G,oe=T(oe,!0))&&S(he)&&E(he,"value")&&!E(he,"get")&&!E(he,"set")&&!he.configurable&&(!E(he,"writable")||he.writable)&&(!E(he,"enumerable")||he.enumerable)?(G[oe]=he.value,G):xe(G,oe,he)};c?(me||(H.f=ce,B.f=ge,se(Re,"buffer"),se(Re,"byteOffset"),se(Re,"byteLength"),se(Re,"length")),a({target:"Object",stat:!0,forced:!me},{getOwnPropertyDescriptor:ce,defineProperty:ge}),i.exports=function(ee,G,oe){var he=ee.match(/\d+$/)[0]/8,Ue=ee+(oe?"Clamped":"")+"Array",Xe="get"+ee,dt="set"+ee,st=l[Ue],Fe=st,ke=Fe&&Fe.prototype,qt={},vt=function(Ze,_e){var We=re(Ze);return We.view[Xe](_e*he+We.byteOffset,!0)},sr=function(Ze,_e,We){var mt=re(Ze);oe&&(We=(We=Ee(We))<0?0:We>255?255:We&255),mt.view[dt](_e*he+mt.byteOffset,We,!0)},ar=function(Ze,_e){xe(Ze,_e,{get:function(){return vt(this,_e)},set:function(We){return sr(this,_e,We)},enumerable:!0})};me?u&&(Fe=G(function(Ze,_e,We,mt){return f(Ze,Fe,Ue),Y(function(){return S(_e)?de(_e)?mt!==void 0?new st(_e,x(We,he),mt):We!==void 0?new st(_e,x(We,he)):new st(_e):ut(_e)?ve(Fe,_e):I.call(Fe,_e):new st(b(_e))}(),Ze,Fe)}),A&&A(Fe,Le),P(D(st),function(Ze){Ze in Fe||v(Fe,Ze,st[Ze])}),Fe.prototype=ke):(Fe=G(function(Ze,_e,We,mt){f(Ze,Fe,Ue);var $t=0,yt=0,_t,lt,fe;if(!S(_e))fe=b(_e),lt=fe*he,_t=new Me(lt);else if(de(_e)){_t=_e,yt=x(We,he);var Jt=_e.byteLength;if(mt===void 0){if(Jt%he||(lt=Jt-yt,lt<0))throw Pe(rt)}else if(lt=y(mt)*he,lt+yt>Jt)throw Pe(rt);fe=lt/he}else return ut(_e)?ve(Fe,_e):I.call(Fe,_e);for(ie(Ze,{buffer:_t,byteOffset:yt,byteLength:lt,length:fe,view:new Ne(_t)});$t<fe;)ar(Ze,$t++)}),A&&A(Fe,Le),ke=Fe.prototype=O(Re)),ke.constructor!==Fe&&v(ke,"constructor",Fe),Ae&&v(ke,Ae,Ue),qt[Ue]=Fe,a({global:!0,forced:Fe!=st,sham:!me},qt),Je in Fe||v(Fe,Je,he),Je in ke||v(ke,Je,he),_(Ue)}):i.exports=function(){}},3832:function(i,s,o){var a=o(7854),l=o(7293),c=o(7072),u=o(260).NATIVE_ARRAY_BUFFER_VIEWS,d=a.ArrayBuffer,h=a.Int8Array;i.exports=!u||!l(function(){h(1)})||!l(function(){new h(-1)})||!c(function(f){new h,new h(null),new h(1.5),new h(f)},!0)||l(function(){return new h(new d(2),1,void 0).length!==1})},3074:function(i,s,o){var a=o(260).aTypedArrayConstructor,l=o(6707);i.exports=function(c,u){for(var d=l(c,c.constructor),h=0,f=u.length,p=new(a(d))(f);f>h;)p[h]=u[h++];return p}},7321:function(i,s,o){var a=o(7908),l=o(7466),c=o(1246),u=o(7659),d=o(9974),h=o(260).aTypedArrayConstructor;i.exports=function(p){var v=a(p),y=arguments.length,b=y>1?arguments[1]:void 0,x=b!==void 0,T=c(v),E,M,S,O,A,D;if(T!=null&&!u(T))for(A=T.call(v),D=A.next,v=[];!(O=D.call(A)).done;)v.push(O.value);for(x&&y>2&&(b=d(b,arguments[2],2)),M=l(v.length),S=new(h(this))(M),E=0;M>E;E++)S[E]=x?b(v[E],E):v[E];return S}},9711:function(i){var s=0,o=Math.random();i.exports=function(a){return"Symbol("+String(a===void 0?"":a)+")_"+(++s+o).toString(36)}},3307:function(i,s,o){var a=o(133);i.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(i,s,o){var a=o(7854),l=o(2309),c=o(6656),u=o(9711),d=o(133),h=o(3307),f=l("wks"),p=a.Symbol,v=h?p:p&&p.withoutSetter||u;i.exports=function(y){return c(f,y)||(d&&c(p,y)?f[y]=p[y]:f[y]=v("Symbol."+y)),f[y]}},1361:function(i){i.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(i,s,o){"use strict";var a=o(2109),l=o(7854),c=o(3331),u=o(6340),d="ArrayBuffer",h=c[d],f=l[d];a({global:!0,forced:f!==h},{ArrayBuffer:h}),u(d)},2222:function(i,s,o){"use strict";var a=o(2109),l=o(7293),c=o(3157),u=o(111),d=o(7908),h=o(7466),f=o(6135),p=o(5417),v=o(1194),y=o(5112),b=o(7392),x=y("isConcatSpreadable"),T=9007199254740991,E="Maximum allowed index exceeded",M=b>=51||!l(function(){var D=[];return D[x]=!1,D.concat()[0]!==D}),S=v("concat"),O=function(D){if(!u(D))return!1;var I=D[x];return I!==void 0?!!I:c(D)},A=!M||!S;a({target:"Array",proto:!0,forced:A},{concat:function(I){var P=d(this),_=p(P,0),B=0,H,Q,Y,re,ie;for(H=-1,Y=arguments.length;H<Y;H++)if(ie=H===-1?P:arguments[H],O(ie)){if(re=h(ie.length),B+re>T)throw TypeError(E);for(Q=0;Q<re;Q++,B++)Q in ie&&f(_,B,ie[Q])}else{if(B>=T)throw TypeError(E);f(_,B++,ie)}return _.length=B,_}})},7327:function(i,s,o){"use strict";var a=o(2109),l=o(2092).filter,c=o(1194),u=c("filter");a({target:"Array",proto:!0,forced:!u},{filter:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},2772:function(i,s,o){"use strict";var a=o(2109),l=o(1318).indexOf,c=o(9341),u=[].indexOf,d=!!u&&1/[1].indexOf(1,-0)<0,h=c("indexOf");a({target:"Array",proto:!0,forced:d||!h},{indexOf:function(p){return d?u.apply(this,arguments)||0:l(this,p,arguments.length>1?arguments[1]:void 0)}})},6992:function(i,s,o){"use strict";var a=o(5656),l=o(1223),c=o(7497),u=o(9909),d=o(654),h="Array Iterator",f=u.set,p=u.getterFor(h);i.exports=d(Array,"Array",function(v,y){f(this,{type:h,target:a(v),index:0,kind:y})},function(){var v=p(this),y=v.target,b=v.kind,x=v.index++;return!y||x>=y.length?(v.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"),c.Arguments=c.Array,l("keys"),l("values"),l("entries")},1249:function(i,s,o){"use strict";var a=o(2109),l=o(2092).map,c=o(1194),u=c("map");a({target:"Array",proto:!0,forced:!u},{map:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},7042:function(i,s,o){"use strict";var a=o(2109),l=o(111),c=o(3157),u=o(1400),d=o(7466),h=o(5656),f=o(6135),p=o(5112),v=o(1194),y=v("slice"),b=p("species"),x=[].slice,T=Math.max;a({target:"Array",proto:!0,forced:!y},{slice:function(M,S){var O=h(this),A=d(O.length),D=u(M,A),I=u(S===void 0?A:S,A),P,_,B;if(c(O)&&(P=O.constructor,typeof P=="function"&&(P===Array||c(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(_=new(P===void 0?Array:P)(T(I-D,0)),B=0;D<I;D++,B++)D in O&&f(_,B,O[D]);return _.length=B,_}})},561:function(i,s,o){"use strict";var a=o(2109),l=o(1400),c=o(9958),u=o(7466),d=o(7908),h=o(5417),f=o(6135),p=o(1194),v=p("splice"),y=Math.max,b=Math.min,x=9007199254740991,T="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!v},{splice:function(M,S){var O=d(this),A=u(O.length),D=l(M,A),I=arguments.length,P,_,B,H,Q,Y;if(I===0?P=_=0:I===1?(P=0,_=A-D):(P=I-2,_=b(y(c(S),0),A-D)),A+P-_>x)throw TypeError(T);for(B=h(O,_),H=0;H<_;H++)Q=D+H,Q in O&&f(B,H,O[Q]);if(B.length=_,P<_){for(H=D;H<A-_;H++)Q=H+_,Y=H+P,Q in O?O[Y]=O[Q]:delete O[Y];for(H=A;H>A-_+P;H--)delete O[H-1]}else if(P>_)for(H=A-_;H>D;H--)Q=H+_-1,Y=H+P-1,Q in O?O[Y]=O[Q]:delete O[Y];for(H=0;H<P;H++)O[H+D]=arguments[H+2];return O.length=A-_+P,B}})},8309:function(i,s,o){var a=o(9781),l=o(3070).f,c=Function.prototype,u=c.toString,d=/^\s*function ([^ (]*)/,h="name";a&&!(h in c)&&l(c,h,{configurable:!0,get:function(){try{return u.call(this).match(d)[1]}catch{return""}}})},489:function(i,s,o){var a=o(2109),l=o(7293),c=o(7908),u=o(9518),d=o(8544),h=l(function(){u(1)});a({target:"Object",stat:!0,forced:h,sham:!d},{getPrototypeOf:function(p){return u(c(p))}})},1539:function(i,s,o){var a=o(1694),l=o(1320),c=o(288);a||l(Object.prototype,"toString",c,{unsafe:!0})},4916:function(i,s,o){"use strict";var a=o(2109),l=o(2261);a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},9714:function(i,s,o){"use strict";var a=o(1320),l=o(9670),c=o(7293),u=o(7066),d="toString",h=RegExp.prototype,f=h[d],p=c(function(){return f.call({source:"a",flags:"b"})!="/a/b"}),v=f.name!=d;(p||v)&&a(RegExp.prototype,d,function(){var b=l(this),x=String(b.source),T=b.flags,E=String(T===void 0&&b instanceof RegExp&&!("flags"in h)?u.call(b):T);return"/"+x+"/"+E},{unsafe:!0})},8783:function(i,s,o){"use strict";var a=o(8710).charAt,l=o(9909),c=o(654),u="String Iterator",d=l.set,h=l.getterFor(u);c(String,"String",function(f){d(this,{type:u,string:String(f),index:0})},function(){var p=h(this),v=p.string,y=p.index,b;return y>=v.length?{value:void 0,done:!0}:(b=a(v,y),p.index+=b.length,{value:b,done:!1})})},4723:function(i,s,o){"use strict";var a=o(7007),l=o(9670),c=o(7466),u=o(4488),d=o(1530),h=o(7651);a("match",1,function(f,p,v){return[function(b){var x=u(this),T=b?.[f];return T!==void 0?T.call(b,x):new RegExp(b)[f](String(x))},function(y){var b=v(p,y,this);if(b.done)return b.value;var x=l(y),T=String(this);if(!x.global)return h(x,T);var E=x.unicode;x.lastIndex=0;for(var M=[],S=0,O;(O=h(x,T))!==null;){var A=String(O[0]);M[S]=A,A===""&&(x.lastIndex=d(T,c(x.lastIndex),E)),S++}return S===0?null:M}]})},5306:function(i,s,o){"use strict";var a=o(7007),l=o(9670),c=o(7466),u=o(9958),d=o(4488),h=o(1530),f=o(647),p=o(7651),v=Math.max,y=Math.min,b=function(x){return x===void 0?x:String(x)};a("replace",2,function(x,T,E,M){var S=M.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,O=M.REPLACE_KEEPS_$0,A=S?"$":"$0";return[function(I,P){var _=d(this),B=I?.[x];return B!==void 0?B.call(I,_,P):T.call(String(_),I,P)},function(D,I){if(!S&&O||typeof I=="string"&&I.indexOf(A)===-1){var P=E(T,D,this,I);if(P.done)return P.value}var _=l(D),B=String(this),H=typeof I=="function";H||(I=String(I));var Q=_.global;if(Q){var Y=_.unicode;_.lastIndex=0}for(var re=[];;){var ie=p(_,B);if(ie===null||(re.push(ie),!Q))break;var xe=String(ie[0]);xe===""&&(_.lastIndex=h(B,c(_.lastIndex),Y))}for(var Ie="",Ee=0,Pe=0;Pe<re.length;Pe++){ie=re[Pe];for(var Me=String(ie[0]),Ne=v(y(u(ie.index),B.length),0),me=[],Ae=1;Ae<ie.length;Ae++)me.push(b(ie[Ae]));var Le=ie.groups;if(H){var Re=[Me].concat(me,Ne,B);Le!==void 0&&Re.push(Le);var $e=String(I.apply(void 0,Re))}else $e=f(Me,B,Ne,me,Le,I);Ne>=Ee&&(Ie+=B.slice(Ee,Ne)+$e,Ee=Ne+Me.length)}return Ie+B.slice(Ee)}]})},3123:function(i,s,o){"use strict";var a=o(7007),l=o(7850),c=o(9670),u=o(4488),d=o(6707),h=o(1530),f=o(7466),p=o(7651),v=o(2261),y=o(7293),b=[].push,x=Math.min,T=4294967295,E=!y(function(){return!RegExp(T,"y")});a("split",2,function(M,S,O){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 P=String(u(this)),_=I===void 0?T:I>>>0;if(_===0)return[];if(D===void 0)return[P];if(!l(D))return S.call(P,D,_);for(var B=[],H=(D.ignoreCase?"i":"")+(D.multiline?"m":"")+(D.unicode?"u":"")+(D.sticky?"y":""),Q=0,Y=new RegExp(D.source,H+"g"),re,ie,xe;(re=v.call(Y,P))&&(ie=Y.lastIndex,!(ie>Q&&(B.push(P.slice(Q,re.index)),re.length>1&&re.index<P.length&&b.apply(B,re.slice(1)),xe=re[0].length,Q=ie,B.length>=_)));)Y.lastIndex===re.index&&Y.lastIndex++;return Q===P.length?(xe||!Y.test(""))&&B.push(""):B.push(P.slice(Q)),B.length>_?B.slice(0,_):B}:"0".split(void 0,0).length?A=function(D,I){return D===void 0&&I===0?[]:S.call(this,D,I)}:A=S,[function(I,P){var _=u(this),B=I?.[M];return B!==void 0?B.call(I,_,P):A.call(String(_),I,P)},function(D,I){var P=O(A,D,this,I,A!==S);if(P.done)return P.value;var _=c(D),B=String(this),H=d(_,RegExp),Q=_.unicode,Y=(_.ignoreCase?"i":"")+(_.multiline?"m":"")+(_.unicode?"u":"")+(E?"y":"g"),re=new H(E?_:"^(?:"+_.source+")",Y),ie=I===void 0?T:I>>>0;if(ie===0)return[];if(B.length===0)return p(re,B)===null?[B]:[];for(var xe=0,Ie=0,Ee=[];Ie<B.length;){re.lastIndex=E?Ie:0;var Pe=p(re,E?B:B.slice(Ie)),Me;if(Pe===null||(Me=x(f(re.lastIndex+(E?0:Ie)),B.length))===xe)Ie=h(B,Ie,Q);else{if(Ee.push(B.slice(xe,Ie)),Ee.length===ie)return Ee;for(var Ne=1;Ne<=Pe.length-1;Ne++)if(Ee.push(Pe[Ne]),Ee.length===ie)return Ee;Ie=xe=Me}}return Ee.push(B.slice(xe)),Ee}]},!E)},3210:function(i,s,o){"use strict";var a=o(2109),l=o(3111).trim,c=o(6091);a({target:"String",proto:!0,forced:c("trim")},{trim:function(){return l(this)}})},2990:function(i,s,o){"use strict";var a=o(260),l=o(1048),c=a.aTypedArray,u=a.exportTypedArrayMethod;u("copyWithin",function(h,f){return l.call(c(this),h,f,arguments.length>2?arguments[2]:void 0)})},8927:function(i,s,o){"use strict";var a=o(260),l=o(2092).every,c=a.aTypedArray,u=a.exportTypedArrayMethod;u("every",function(h){return l(c(this),h,arguments.length>1?arguments[1]:void 0)})},3105:function(i,s,o){"use strict";var a=o(260),l=o(1285),c=a.aTypedArray,u=a.exportTypedArrayMethod;u("fill",function(h){return l.apply(c(this),arguments)})},5035:function(i,s,o){"use strict";var a=o(260),l=o(2092).filter,c=o(3074),u=a.aTypedArray,d=a.exportTypedArrayMethod;d("filter",function(f){var p=l(u(this),f,arguments.length>1?arguments[1]:void 0);return c(this,p)})},7174:function(i,s,o){"use strict";var a=o(260),l=o(2092).findIndex,c=a.aTypedArray,u=a.exportTypedArrayMethod;u("findIndex",function(h){return l(c(this),h,arguments.length>1?arguments[1]:void 0)})},4345:function(i,s,o){"use strict";var a=o(260),l=o(2092).find,c=a.aTypedArray,u=a.exportTypedArrayMethod;u("find",function(h){return l(c(this),h,arguments.length>1?arguments[1]:void 0)})},2846:function(i,s,o){"use strict";var a=o(260),l=o(2092).forEach,c=a.aTypedArray,u=a.exportTypedArrayMethod;u("forEach",function(h){l(c(this),h,arguments.length>1?arguments[1]:void 0)})},4731:function(i,s,o){"use strict";var a=o(260),l=o(1318).includes,c=a.aTypedArray,u=a.exportTypedArrayMethod;u("includes",function(h){return l(c(this),h,arguments.length>1?arguments[1]:void 0)})},7209:function(i,s,o){"use strict";var a=o(260),l=o(1318).indexOf,c=a.aTypedArray,u=a.exportTypedArrayMethod;u("indexOf",function(h){return l(c(this),h,arguments.length>1?arguments[1]:void 0)})},6319:function(i,s,o){"use strict";var a=o(7854),l=o(260),c=o(6992),u=o(5112),d=u("iterator"),h=a.Uint8Array,f=c.values,p=c.keys,v=c.entries,y=l.aTypedArray,b=l.exportTypedArrayMethod,x=h&&h.prototype[d],T=!!x&&(x.name=="values"||x.name==null),E=function(){return f.call(y(this))};b("entries",function(){return v.call(y(this))}),b("keys",function(){return p.call(y(this))}),b("values",E,!T),b(d,E,!T)},8867:function(i,s,o){"use strict";var a=o(260),l=a.aTypedArray,c=a.exportTypedArrayMethod,u=[].join;c("join",function(h){return u.apply(l(this),arguments)})},7789:function(i,s,o){"use strict";var a=o(260),l=o(6583),c=a.aTypedArray,u=a.exportTypedArrayMethod;u("lastIndexOf",function(h){return l.apply(c(this),arguments)})},3739:function(i,s,o){"use strict";var a=o(260),l=o(2092).map,c=o(6707),u=a.aTypedArray,d=a.aTypedArrayConstructor,h=a.exportTypedArrayMethod;h("map",function(p){return l(u(this),p,arguments.length>1?arguments[1]:void 0,function(v,y){return new(d(c(v,v.constructor)))(y)})})},4483:function(i,s,o){"use strict";var a=o(260),l=o(3671).right,c=a.aTypedArray,u=a.exportTypedArrayMethod;u("reduceRight",function(h){return l(c(this),h,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(i,s,o){"use strict";var a=o(260),l=o(3671).left,c=a.aTypedArray,u=a.exportTypedArrayMethod;u("reduce",function(h){return l(c(this),h,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(i,s,o){"use strict";var a=o(260),l=a.aTypedArray,c=a.exportTypedArrayMethod,u=Math.floor;c("reverse",function(){for(var h=this,f=l(h).length,p=u(f/2),v=0,y;v<p;)y=h[v],h[v++]=h[--f],h[f]=y;return h})},3462:function(i,s,o){"use strict";var a=o(260),l=o(7466),c=o(4590),u=o(7908),d=o(7293),h=a.aTypedArray,f=a.exportTypedArrayMethod,p=d(function(){new Int8Array(1).set({})});f("set",function(y){h(this);var b=c(arguments.length>1?arguments[1]:void 0,1),x=this.length,T=u(y),E=l(T.length),M=0;if(E+b>x)throw RangeError("Wrong length");for(;M<E;)this[b+M]=T[M++]},p)},678:function(i,s,o){"use strict";var a=o(260),l=o(6707),c=o(7293),u=a.aTypedArray,d=a.aTypedArrayConstructor,h=a.exportTypedArrayMethod,f=[].slice,p=c(function(){new Int8Array(1).slice()});h("slice",function(y,b){for(var x=f.call(u(this),y,b),T=l(this,this.constructor),E=0,M=x.length,S=new(d(T))(M);M>E;)S[E]=x[E++];return S},p)},7462:function(i,s,o){"use strict";var a=o(260),l=o(2092).some,c=a.aTypedArray,u=a.exportTypedArrayMethod;u("some",function(h){return l(c(this),h,arguments.length>1?arguments[1]:void 0)})},3824:function(i,s,o){"use strict";var a=o(260),l=a.aTypedArray,c=a.exportTypedArrayMethod,u=[].sort;c("sort",function(h){return u.call(l(this),h)})},5021:function(i,s,o){"use strict";var a=o(260),l=o(7466),c=o(1400),u=o(6707),d=a.aTypedArray,h=a.exportTypedArrayMethod;h("subarray",function(p,v){var y=d(this),b=y.length,x=c(p,b);return new(u(y,y.constructor))(y.buffer,y.byteOffset+x*y.BYTES_PER_ELEMENT,l((v===void 0?b:c(v,b))-x))})},2974:function(i,s,o){"use strict";var a=o(7854),l=o(260),c=o(7293),u=a.Int8Array,d=l.aTypedArray,h=l.exportTypedArrayMethod,f=[].toLocaleString,p=[].slice,v=!!u&&c(function(){f.call(new u(1))}),y=c(function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()})||!c(function(){u.prototype.toLocaleString.call([1,2])});h("toLocaleString",function(){return f.apply(v?p.call(d(this)):d(this),arguments)},y)},5016:function(i,s,o){"use strict";var a=o(260).exportTypedArrayMethod,l=o(7293),c=o(7854),u=c.Uint8Array,d=u&&u.prototype||{},h=[].toString,f=[].join;l(function(){h.call({})})&&(h=function(){return f.call(this)});var p=d.toString!=h;a("toString",h,p)},2472:function(i,s,o){var a=o(9843);a("Uint8",function(l){return function(u,d,h){return l(this,u,d,h)}})},4747:function(i,s,o){var a=o(7854),l=o(8324),c=o(8533),u=o(8880);for(var d in l){var h=a[d],f=h&&h.prototype;if(f&&f.forEach!==c)try{u(f,"forEach",c)}catch{f.forEach=c}}},3948:function(i,s,o){var a=o(7854),l=o(8324),c=o(6992),u=o(8880),d=o(5112),h=d("iterator"),f=d("toStringTag"),p=c.values;for(var v in l){var y=a[v],b=y&&y.prototype;if(b){if(b[h]!==p)try{u(b,h,p)}catch{b[h]=p}if(b[f]||u(b,f,v),l[v]){for(var x in c)if(b[x]!==c[x])try{u(b,x,c[x])}catch{b[x]=c[x]}}}}},1637:function(i,s,o){"use strict";o(6992);var a=o(2109),l=o(5005),c=o(590),u=o(1320),d=o(2248),h=o(8003),f=o(4994),p=o(9909),v=o(5787),y=o(6656),b=o(9974),x=o(648),T=o(9670),E=o(111),M=o(30),S=o(9114),O=o(8554),A=o(1246),D=o(5112),I=l("fetch"),P=l("Headers"),_=D("iterator"),B="URLSearchParams",H=B+"Iterator",Q=p.set,Y=p.getterFor(B),re=p.getterFor(H),ie=/\+/g,xe=Array(4),Ie=function(ve){return xe[ve-1]||(xe[ve-1]=RegExp("((?:%[\\da-f]{2}){"+ve+"})","gi"))},Ee=function(ve){try{return decodeURIComponent(ve)}catch{return ve}},Pe=function(ve){var se=ve.replace(ie," "),de=4;try{return decodeURIComponent(se)}catch{for(;de;)se=se.replace(Ie(de--),Ee);return se}},Me=/[!'()~]|%20/g,Ne={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},me=function(ve){return Ne[ve]},Ae=function(ve){return encodeURIComponent(ve).replace(Me,me)},Le=function(ve,se){if(se)for(var de=se.split("&"),pe=0,ce,ge;pe<de.length;)ce=de[pe++],ce.length&&(ge=ce.split("="),ve.push({key:Pe(ge.shift()),value:Pe(ge.join("="))}))},Re=function(ve){this.entries.length=0,Le(this.entries,ve)},$e=function(ve,se){if(ve<se)throw TypeError("Not enough arguments")},ut=f(function(se,de){Q(this,{type:H,iterator:O(Y(se).entries),kind:de})},"Iterator",function(){var se=re(this),de=se.kind,pe=se.iterator.next(),ce=pe.value;return pe.done||(pe.value=de==="keys"?ce.key:de==="values"?ce.value:[ce.key,ce.value]),pe}),Je=function(){v(this,Je,B);var se=arguments.length>0?arguments[0]:void 0,de=this,pe=[],ce,ge,ee,G,oe,he,Ue,Xe,dt;if(Q(de,{type:B,entries:pe,updateURL:function(){},updateSearchParams:Re}),se!==void 0)if(E(se))if(ce=A(se),typeof ce=="function")for(ge=ce.call(se),ee=ge.next;!(G=ee.call(ge)).done;){if(oe=O(T(G.value)),he=oe.next,(Ue=he.call(oe)).done||(Xe=he.call(oe)).done||!he.call(oe).done)throw TypeError("Expected sequence with length 2");pe.push({key:Ue.value+"",value:Xe.value+""})}else for(dt in se)y(se,dt)&&pe.push({key:dt,value:se[dt]+""});else Le(pe,typeof se=="string"?se.charAt(0)==="?"?se.slice(1):se:se+"")},rt=Je.prototype;d(rt,{append:function(se,de){$e(arguments.length,2);var pe=Y(this);pe.entries.push({key:se+"",value:de+""}),pe.updateURL()},delete:function(ve){$e(arguments.length,1);for(var se=Y(this),de=se.entries,pe=ve+"",ce=0;ce<de.length;)de[ce].key===pe?de.splice(ce,1):ce++;se.updateURL()},get:function(se){$e(arguments.length,1);for(var de=Y(this).entries,pe=se+"",ce=0;ce<de.length;ce++)if(de[ce].key===pe)return de[ce].value;return null},getAll:function(se){$e(arguments.length,1);for(var de=Y(this).entries,pe=se+"",ce=[],ge=0;ge<de.length;ge++)de[ge].key===pe&&ce.push(de[ge].value);return ce},has:function(se){$e(arguments.length,1);for(var de=Y(this).entries,pe=se+"",ce=0;ce<de.length;)if(de[ce++].key===pe)return!0;return!1},set:function(se,de){$e(arguments.length,1);for(var pe=Y(this),ce=pe.entries,ge=!1,ee=se+"",G=de+"",oe=0,he;oe<ce.length;oe++)he=ce[oe],he.key===ee&&(ge?ce.splice(oe--,1):(ge=!0,he.value=G));ge||ce.push({key:ee,value:G}),pe.updateURL()},sort:function(){var se=Y(this),de=se.entries,pe=de.slice(),ce,ge,ee;for(de.length=0,ee=0;ee<pe.length;ee++){for(ce=pe[ee],ge=0;ge<ee;ge++)if(de[ge].key>ce.key){de.splice(ge,0,ce);break}ge===ee&&de.push(ce)}se.updateURL()},forEach:function(se){for(var de=Y(this).entries,pe=b(se,arguments.length>1?arguments[1]:void 0,3),ce=0,ge;ce<de.length;)ge=de[ce++],pe(ge.value,ge.key,this)},keys:function(){return new ut(this,"keys")},values:function(){return new ut(this,"values")},entries:function(){return new ut(this,"entries")}},{enumerable:!0}),u(rt,_,rt.entries),u(rt,"toString",function(){for(var se=Y(this).entries,de=[],pe=0,ce;pe<se.length;)ce=se[pe++],de.push(Ae(ce.key)+"="+Ae(ce.value));return de.join("&")},{enumerable:!0}),h(Je,B),a({global:!0,forced:!c},{URLSearchParams:Je}),!c&&typeof I=="function"&&typeof P=="function"&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(se){var de=[se],pe,ce,ge;return arguments.length>1&&(pe=arguments[1],E(pe)&&(ce=pe.body,x(ce)===B&&(ge=pe.headers?new P(pe.headers):new P,ge.has("content-type")||ge.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),pe=M(pe,{body:S(0,String(ce)),headers:S(0,ge)}))),de.push(pe)),I.apply(this,de)}}),i.exports={URLSearchParams:Je,getState:Y}},285:function(i,s,o){"use strict";o(8783);var a=o(2109),l=o(9781),c=o(590),u=o(7854),d=o(6048),h=o(1320),f=o(5787),p=o(6656),v=o(1574),y=o(8457),b=o(8710).codeAt,x=o(3197),T=o(8003),E=o(1637),M=o(9909),S=u.URL,O=E.URLSearchParams,A=E.getState,D=M.set,I=M.getterFor("URL"),P=Math.floor,_=Math.pow,B="Invalid authority",H="Invalid scheme",Q="Invalid host",Y="Invalid port",re=/[A-Za-z]/,ie=/[\d+-.A-Za-z]/,xe=/\d/,Ie=/^(0x|0X)/,Ee=/^[0-7]+$/,Pe=/^\d+$/,Me=/^[\dA-Fa-f]+$/,Ne=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,me=/[\u0000\t\u000A\u000D #/:?@[\\]]/,Ae=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Le=/[\t\u000A\u000D]/g,Re,$e=function(w,N){var j,q,Z;if(N.charAt(0)=="["){if(N.charAt(N.length-1)!="]"||(j=Je(N.slice(1,-1)),!j))return Q;w.host=j}else if(G(w)){if(N=x(N),Ne.test(N)||(j=ut(N),j===null))return Q;w.host=j}else{if(me.test(N))return Q;for(j="",q=y(N),Z=0;Z<q.length;Z++)j+=ge(q[Z],se);w.host=j}},ut=function(w){var N=w.split("."),j,q,Z,be,le,Oe,qe;if(N.length&&N[N.length-1]==""&&N.pop(),j=N.length,j>4)return w;for(q=[],Z=0;Z<j;Z++){if(be=N[Z],be=="")return w;if(le=10,be.length>1&&be.charAt(0)=="0"&&(le=Ie.test(be)?16:8,be=be.slice(le==8?1:2)),be==="")Oe=0;else{if(!(le==10?Pe:le==8?Ee:Me).test(be))return w;Oe=parseInt(be,le)}q.push(Oe)}for(Z=0;Z<j;Z++)if(Oe=q[Z],Z==j-1){if(Oe>=_(256,5-j))return null}else if(Oe>255)return null;for(qe=q.pop(),Z=0;Z<q.length;Z++)qe+=q[Z]*_(256,3-Z);return qe},Je=function(w){var N=[0,0,0,0,0,0,0,0],j=0,q=null,Z=0,be,le,Oe,qe,et,ht,X,He=function(){return w.charAt(Z)};if(He()==":"){if(w.charAt(1)!=":")return;Z+=2,j++,q=j}for(;He();){if(j==8)return;if(He()==":"){if(q!==null)return;Z++,j++,q=j;continue}for(be=le=0;le<4&&Me.test(He());)be=be*16+parseInt(He(),16),Z++,le++;if(He()=="."){if(le==0||(Z-=le,j>6))return;for(Oe=0;He();){if(qe=null,Oe>0)if(He()=="."&&Oe<4)Z++;else return;if(!xe.test(He()))return;for(;xe.test(He());){if(et=parseInt(He(),10),qe===null)qe=et;else{if(qe==0)return;qe=qe*10+et}if(qe>255)return;Z++}N[j]=N[j]*256+qe,Oe++,(Oe==2||Oe==4)&&j++}if(Oe!=4)return;break}else if(He()==":"){if(Z++,!He())return}else if(He())return;N[j++]=be}if(q!==null)for(ht=j-q,j=7;j!=0&&ht>0;)X=N[j],N[j--]=N[q+ht-1],N[q+--ht]=X;else if(j!=8)return;return N},rt=function(w){for(var N=null,j=1,q=null,Z=0,be=0;be<8;be++)w[be]!==0?(Z>j&&(N=q,j=Z),q=null,Z=0):(q===null&&(q=be),++Z);return Z>j&&(N=q,j=Z),N},ve=function(w){var N,j,q,Z;if(typeof w=="number"){for(N=[],j=0;j<4;j++)N.unshift(w%256),w=P(w/256);return N.join(".")}else if(typeof w=="object"){for(N="",q=rt(w),j=0;j<8;j++)Z&&w[j]===0||(Z&&(Z=!1),q===j?(N+=j?":":"::",Z=!0):(N+=w[j].toString(16),j<7&&(N+=":")));return"["+N+"]"}return w},se={},de=v({},se,{" ":1,'"':1,"<":1,">":1,"`":1}),pe=v({},de,{"#":1,"?":1,"{":1,"}":1}),ce=v({},pe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ge=function(w,N){var j=b(w,0);return j>32&&j<127&&!p(N,w)?w:encodeURIComponent(w)},ee={ftp:21,file:null,http:80,https:443,ws:80,wss:443},G=function(w){return p(ee,w.scheme)},oe=function(w){return w.username!=""||w.password!=""},he=function(w){return!w.host||w.cannotBeABaseURL||w.scheme=="file"},Ue=function(w,N){var j;return w.length==2&&re.test(w.charAt(0))&&((j=w.charAt(1))==":"||!N&&j=="|")},Xe=function(w){var N;return w.length>1&&Ue(w.slice(0,2))&&(w.length==2||(N=w.charAt(2))==="/"||N==="\\"||N==="?"||N==="#")},dt=function(w){var N=w.path,j=N.length;j&&(w.scheme!="file"||j!=1||!Ue(N[0],!0))&&N.pop()},st=function(w){return w==="."||w.toLowerCase()==="%2e"},Fe=function(w){return w=w.toLowerCase(),w===".."||w==="%2e."||w===".%2e"||w==="%2e%2e"},ke={},qt={},vt={},sr={},ar={},Ze={},_e={},We={},mt={},$t={},yt={},_t={},lt={},fe={},Jt={},Pr={},er={},Tt={},Mr={},Gt={},Lt={},It=function(w,N,j,q){var Z=j||ke,be=0,le="",Oe=!1,qe=!1,et=!1,ht,X,He,Yt;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,N=N.replace(Ae,"")),N=N.replace(Le,""),ht=y(N);be<=ht.length;){switch(X=ht[be],Z){case ke:if(X&&re.test(X))le+=X.toLowerCase(),Z=qt;else{if(j)return H;Z=vt;continue}break;case qt:if(X&&(ie.test(X)||X=="+"||X=="-"||X=="."))le+=X.toLowerCase();else if(X==":"){if(j&&(G(w)!=p(ee,le)||le=="file"&&(oe(w)||w.port!==null)||w.scheme=="file"&&!w.host))return;if(w.scheme=le,j){G(w)&&ee[w.scheme]==w.port&&(w.port=null);return}le="",w.scheme=="file"?Z=fe:G(w)&&q&&q.scheme==w.scheme?Z=sr:G(w)?Z=We:ht[be+1]=="/"?(Z=ar,be++):(w.cannotBeABaseURL=!0,w.path.push(""),Z=Mr)}else{if(j)return H;le="",Z=vt,be=0;continue}break;case vt:if(!q||q.cannotBeABaseURL&&X!="#")return H;if(q.cannotBeABaseURL&&X=="#"){w.scheme=q.scheme,w.path=q.path.slice(),w.query=q.query,w.fragment="",w.cannotBeABaseURL=!0,Z=Lt;break}Z=q.scheme=="file"?fe:Ze;continue;case sr:if(X=="/"&&ht[be+1]=="/")Z=mt,be++;else{Z=Ze;continue}break;case ar:if(X=="/"){Z=$t;break}else{Z=Tt;continue}case Ze:if(w.scheme=q.scheme,X==Re)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(X=="/"||X=="\\"&&G(w))Z=_e;else if(X=="?")w.username=q.username,w.password=q.password,w.host=q.host,w.port=q.port,w.path=q.path.slice(),w.query="",Z=Gt;else if(X=="#")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="",Z=Lt;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(),Z=Tt;continue}break;case _e:if(G(w)&&(X=="/"||X=="\\"))Z=mt;else if(X=="/")Z=$t;else{w.username=q.username,w.password=q.password,w.host=q.host,w.port=q.port,Z=Tt;continue}break;case We:if(Z=mt,X!="/"||le.charAt(be+1)!="/")continue;be++;break;case mt:if(X!="/"&&X!="\\"){Z=$t;continue}break;case $t:if(X=="@"){Oe&&(le="%40"+le),Oe=!0,He=y(le);for(var vo=0;vo<He.length;vo++){var js=He[vo];if(js==":"&&!et){et=!0;continue}var Hs=ge(js,ce);et?w.password+=Hs:w.username+=Hs}le=""}else if(X==Re||X=="/"||X=="?"||X=="#"||X=="\\"&&G(w)){if(Oe&&le=="")return B;be-=y(le).length+1,le="",Z=yt}else le+=X;break;case yt:case _t:if(j&&w.scheme=="file"){Z=Pr;continue}else if(X==":"&&!qe){if(le=="")return Q;if(Yt=$e(w,le),Yt)return Yt;if(le="",Z=lt,j==_t)return}else if(X==Re||X=="/"||X=="?"||X=="#"||X=="\\"&&G(w)){if(G(w)&&le=="")return Q;if(j&&le==""&&(oe(w)||w.port!==null))return;if(Yt=$e(w,le),Yt)return Yt;if(le="",Z=er,j)return;continue}else X=="["?qe=!0:X=="]"&&(qe=!1),le+=X;break;case lt:if(xe.test(X))le+=X;else if(X==Re||X=="/"||X=="?"||X=="#"||X=="\\"&&G(w)||j){if(le!=""){var yo=parseInt(le,10);if(yo>65535)return Y;w.port=G(w)&&yo===ee[w.scheme]?null:yo,le=""}if(j)return;Z=er;continue}else return Y;break;case fe:if(w.scheme="file",X=="/"||X=="\\")Z=Jt;else if(q&&q.scheme=="file")if(X==Re)w.host=q.host,w.path=q.path.slice(),w.query=q.query;else if(X=="?")w.host=q.host,w.path=q.path.slice(),w.query="",Z=Gt;else if(X=="#")w.host=q.host,w.path=q.path.slice(),w.query=q.query,w.fragment="",Z=Lt;else{Xe(ht.slice(be).join(""))||(w.host=q.host,w.path=q.path.slice(),dt(w)),Z=Tt;continue}else{Z=Tt;continue}break;case Jt:if(X=="/"||X=="\\"){Z=Pr;break}q&&q.scheme=="file"&&!Xe(ht.slice(be).join(""))&&(Ue(q.path[0],!0)?w.path.push(q.path[0]):w.host=q.host),Z=Tt;continue;case Pr:if(X==Re||X=="/"||X=="\\"||X=="?"||X=="#"){if(!j&&Ue(le))Z=Tt;else if(le==""){if(w.host="",j)return;Z=er}else{if(Yt=$e(w,le),Yt)return Yt;if(w.host=="localhost"&&(w.host=""),j)return;le="",Z=er}continue}else le+=X;break;case er:if(G(w)){if(Z=Tt,X!="/"&&X!="\\")continue}else if(!j&&X=="?")w.query="",Z=Gt;else if(!j&&X=="#")w.fragment="",Z=Lt;else if(X!=Re&&(Z=Tt,X!="/"))continue;break;case Tt:if(X==Re||X=="/"||X=="\\"&&G(w)||!j&&(X=="?"||X=="#")){if(Fe(le)?(dt(w),X!="/"&&!(X=="\\"&&G(w))&&w.path.push("")):st(le)?X!="/"&&!(X=="\\"&&G(w))&&w.path.push(""):(w.scheme=="file"&&!w.path.length&&Ue(le)&&(w.host&&(w.host=""),le=le.charAt(0)+":"),w.path.push(le)),le="",w.scheme=="file"&&(X==Re||X=="?"||X=="#"))for(;w.path.length>1&&w.path[0]==="";)w.path.shift();X=="?"?(w.query="",Z=Gt):X=="#"&&(w.fragment="",Z=Lt)}else le+=ge(X,pe);break;case Mr:X=="?"?(w.query="",Z=Gt):X=="#"?(w.fragment="",Z=Lt):X!=Re&&(w.path[0]+=ge(X,se));break;case Gt:!j&&X=="#"?(w.fragment="",Z=Lt):X!=Re&&(X=="'"&&G(w)?w.query+="%27":X=="#"?w.query+="%23":w.query+=ge(X,se));break;case Lt:X!=Re&&(w.fragment+=ge(X,de));break}be++}},Wt=function(N){var j=f(this,Wt,"URL"),q=arguments.length>1?arguments[1]:void 0,Z=String(N),be=D(j,{type:"URL"}),le,Oe;if(q!==void 0){if(q instanceof Wt)le=I(q);else if(Oe=It(le={},String(q)),Oe)throw TypeError(Oe)}if(Oe=It(be,Z,null,le),Oe)throw TypeError(Oe);var qe=be.searchParams=new O,et=A(qe);et.updateSearchParams(be.query),et.updateURL=function(){be.query=String(qe)||null},l||(j.href=R.call(j),j.origin=C.call(j),j.protocol=L.call(j),j.username=m.call(j),j.password=g.call(j),j.host=k.call(j),j.hostname=$.call(j),j.port=U.call(j),j.pathname=z.call(j),j.search=K.call(j),j.searchParams=J.call(j),j.hash=W.call(j))},F=Wt.prototype,R=function(){var w=I(this),N=w.scheme,j=w.username,q=w.password,Z=w.host,be=w.port,le=w.path,Oe=w.query,qe=w.fragment,et=N+":";return Z!==null?(et+="//",oe(w)&&(et+=j+(q?":"+q:"")+"@"),et+=ve(Z),be!==null&&(et+=":"+be)):N=="file"&&(et+="//"),et+=w.cannotBeABaseURL?le[0]:le.length?"/"+le.join("/"):"",Oe!==null&&(et+="?"+Oe),qe!==null&&(et+="#"+qe),et},C=function(){var w=I(this),N=w.scheme,j=w.port;if(N=="blob")try{return new URL(N.path[0]).origin}catch{return"null"}return N=="file"||!G(w)?"null":N+"://"+ve(w.host)+(j!==null?":"+j:"")},L=function(){return I(this).scheme+":"},m=function(){return I(this).username},g=function(){return I(this).password},k=function(){var w=I(this),N=w.host,j=w.port;return N===null?"":j===null?ve(N):ve(N)+":"+j},$=function(){var w=I(this).host;return w===null?"":ve(w)},U=function(){var w=I(this).port;return w===null?"":String(w)},z=function(){var w=I(this),N=w.path;return w.cannotBeABaseURL?N[0]:N.length?"/"+N.join("/"):""},K=function(){var w=I(this).query;return w?"?"+w:""},J=function(){return I(this).searchParams},W=function(){var w=I(this).fragment;return w?"#"+w:""},ae=function(w,N){return{get:w,set:N,configurable:!0,enumerable:!0}};if(l&&d(F,{href:ae(R,function(w){var N=I(this),j=String(w),q=It(N,j);if(q)throw TypeError(q);A(N.searchParams).updateSearchParams(N.query)}),origin:ae(C),protocol:ae(L,function(w){var N=I(this);It(N,String(w)+":",ke)}),username:ae(m,function(w){var N=I(this),j=y(String(w));if(!he(N)){N.username="";for(var q=0;q<j.length;q++)N.username+=ge(j[q],ce)}}),password:ae(g,function(w){var N=I(this),j=y(String(w));if(!he(N)){N.password="";for(var q=0;q<j.length;q++)N.password+=ge(j[q],ce)}}),host:ae(k,function(w){var N=I(this);N.cannotBeABaseURL||It(N,String(w),yt)}),hostname:ae($,function(w){var N=I(this);N.cannotBeABaseURL||It(N,String(w),_t)}),port:ae(U,function(w){var N=I(this);he(N)||(w=String(w),w==""?N.port=null:It(N,w,lt))}),pathname:ae(z,function(w){var N=I(this);N.cannotBeABaseURL||(N.path=[],It(N,w+"",er))}),search:ae(K,function(w){var N=I(this);w=String(w),w==""?N.query=null:(w.charAt(0)=="?"&&(w=w.slice(1)),N.query="",It(N,w,Gt)),A(N.searchParams).updateSearchParams(N.query)}),searchParams:ae(J),hash:ae(W,function(w){var N=I(this);if(w=String(w),w==""){N.fragment=null;return}w.charAt(0)=="#"&&(w=w.slice(1)),N.fragment="",It(N,w,Lt)})}),h(F,"toJSON",function(){return R.call(this)},{enumerable:!0}),h(F,"toString",function(){return R.call(this)},{enumerable:!0}),S){var ze=S.createObjectURL,Se=S.revokeObjectURL;ze&&h(Wt,"createObjectURL",function(N){return ze.apply(S,arguments)}),Se&&h(Wt,"revokeObjectURL",function(N){return Se.apply(S,arguments)})}T(Wt,"URL"),a({global:!0,forced:!c,sham:!l},{URL:Wt})}},e={};function t(i){if(e[i])return e[i].exports;var s=e[i]={exports:{}};return r[i](s,s.exports,t),s.exports}(function(){t.d=function(i,s){for(var o in s)t.o(s,o)&&!t.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:s[o]})}})(),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(i,s){return Object.prototype.hasOwnProperty.call(i,s)}}(),function(){t.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})}}();var n={};return function(){"use strict";t.r(n),t.d(n,{Dropzone:function(){return fe},default:function(){return Wt}});var i=t(2222),s=t(7327),o=t(2772),a=t(6992),l=t(1249),c=t(7042),u=t(561),d=t(8264),h=t(8309),f=t(489),p=t(1539),v=t(4916),y=t(9714),b=t(8783),x=t(4723),T=t(5306),E=t(3123),M=t(3210),S=t(2472),O=t(2990),A=t(8927),D=t(3105),I=t(5035),P=t(4345),_=t(7174),B=t(2846),H=t(4731),Q=t(7209),Y=t(6319),re=t(8867),ie=t(7789),xe=t(3739),Ie=t(9368),Ee=t(4483),Pe=t(2056),Me=t(3462),Ne=t(678),me=t(7462),Ae=t(3824),Le=t(5021),Re=t(2974),$e=t(5016),ut=t(4747),Je=t(3948),rt=t(285);function ve(F,R){var C;if(typeof Symbol>"u"||F[Symbol.iterator]==null){if(Array.isArray(F)||(C=se(F))||R&&F&&typeof F.length=="number"){C&&(F=C);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 g=!0,k=!1,$;return{s:function(){C=F[Symbol.iterator]()},n:function(){var z=C.next();return g=z.done,z},e:function(z){k=!0,$=z},f:function(){try{!g&&C.return!=null&&C.return()}finally{if(k)throw $}}}}function se(F,R){if(F){if(typeof F=="string")return de(F,R);var C=Object.prototype.toString.call(F).slice(8,-1);if(C==="Object"&&F.constructor&&(C=F.constructor.name),C==="Map"||C==="Set")return Array.from(F);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return de(F,R)}}function de(F,R){(R==null||R>F.length)&&(R=F.length);for(var C=0,L=new Array(R);C<R;C++)L[C]=F[C];return L}function pe(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}function ce(F,R){for(var C=0;C<R.length;C++){var L=R[C];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(F,L.key,L)}}function ge(F,R,C){return R&&ce(F.prototype,R),C&&ce(F,C),F}var ee=function(){function F(){pe(this,F)}return ge(F,[{key:"on",value:function(C,L){return this._callbacks=this._callbacks||{},this._callbacks[C]||(this._callbacks[C]=[]),this._callbacks[C].push(L),this}},{key:"emit",value:function(C){this._callbacks=this._callbacks||{};for(var L=this._callbacks[C],m=arguments.length,g=new Array(m>1?m-1:0),k=1;k<m;k++)g[k-1]=arguments[k];if(L){var $=ve(L,!0),U;try{for($.s();!(U=$.n()).done;){var z=U.value;z.apply(this,g)}}catch(K){$.e(K)}finally{$.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+C,{args:g})),this}},{key:"makeEvent",value:function(C,L){var m={bubbles:!0,cancelable:!0,detail:L};if(typeof window.CustomEvent=="function")return new CustomEvent(C,m);var g=document.createEvent("CustomEvent");return g.initCustomEvent(C,m.bubbles,m.cancelable,m.detail),g}},{key:"off",value:function(C,L){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var m=this._callbacks[C];if(!m)return this;if(arguments.length===1)return delete this._callbacks[C],this;for(var g=0;g<m.length;g++){var k=m[g];if(k===L){m.splice(g,1);break}}return this}}]),F}(),G='<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> ',oe=G;function he(F,R){var C;if(typeof Symbol>"u"||F[Symbol.iterator]==null){if(Array.isArray(F)||(C=Ue(F))||R&&F&&typeof F.length=="number"){C&&(F=C);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 g=!0,k=!1,$;return{s:function(){C=F[Symbol.iterator]()},n:function(){var z=C.next();return g=z.done,z},e:function(z){k=!0,$=z},f:function(){try{!g&&C.return!=null&&C.return()}finally{if(k)throw $}}}}function Ue(F,R){if(F){if(typeof F=="string")return Xe(F,R);var C=Object.prototype.toString.call(F).slice(8,-1);if(C==="Object"&&F.constructor&&(C=F.constructor.name),C==="Map"||C==="Set")return Array.from(F);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return Xe(F,R)}}function Xe(F,R){(R==null||R>F.length)&&(R=F.length);for(var C=0,L=new Array(R);C<R;C++)L[C]=F[C];return L}var dt={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,C,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,C){return C()},chunksUploaded:function(R,C){C()},fallback:function(){var R;this.element.className="".concat(this.element.className," dz-browser-not-supported");var C=he(this.element.getElementsByTagName("div"),!0),L;try{for(C.s();!(L=C.n()).done;){var m=L.value;if(/(^| )dz-message($| )/.test(m.className)){R=m,m.className="dz-message";break}}}catch(k){C.e(k)}finally{C.f()}R||(R=fe.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(R));var g=R.getElementsByTagName("span")[0];return g&&(g.textContent!=null?g.textContent=this.options.dictFallbackMessage:g.innerText!=null&&(g.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(R,C,L,m){var g={srcX:0,srcY:0,srcWidth:R.width,srcHeight:R.height},k=R.width/R.height;C==null&&L==null?(C=g.srcWidth,L=g.srcHeight):C==null?C=L*k:L==null&&(L=C/k),C=Math.min(C,g.srcWidth),L=Math.min(L,g.srcHeight);var $=C/L;if(g.srcWidth>C||g.srcHeight>L)if(m==="crop")k>$?(g.srcHeight=R.height,g.srcWidth=g.srcHeight*$):(g.srcWidth=R.width,g.srcHeight=g.srcWidth/$);else if(m==="contain")k>$?L=C/k:C=L*k;else throw new Error("Unknown resizeMethod '".concat(m,"'"));return g.srcX=(R.width-g.srcWidth)/2,g.srcY=(R.height-g.srcHeight)/2,g.trgWidth=C,g.trgHeight=L,g},transformFile:function(R,C){return(this.options.resizeWidth||this.options.resizeHeight)&&R.type.match(/image.*/)?this.resizeImage(R,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,C):C(R)},previewTemplate:oe,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 C=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){R.previewElement=fe.createElement(this.options.previewTemplate.trim()),R.previewTemplate=R.previewElement,this.previewsContainer.appendChild(R.previewElement);var L=he(R.previewElement.querySelectorAll("[data-dz-name]"),!0),m;try{for(L.s();!(m=L.n()).done;){var g=m.value;g.textContent=R.name}}catch(W){L.e(W)}finally{L.f()}var k=he(R.previewElement.querySelectorAll("[data-dz-size]"),!0),$;try{for(k.s();!($=k.n()).done;)g=$.value,g.innerHTML=this.filesize(R.size)}catch(W){k.e(W)}finally{k.f()}this.options.addRemoveLinks&&(R._removeLink=fe.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),R.previewElement.appendChild(R._removeLink));var U=function(ae){return ae.preventDefault(),ae.stopPropagation(),R.status===fe.UPLOADING?fe.confirm(C.options.dictCancelUploadConfirmation,function(){return C.removeFile(R)}):C.options.dictRemoveFileConfirmation?fe.confirm(C.options.dictRemoveFileConfirmation,function(){return C.removeFile(R)}):C.removeFile(R)},z=he(R.previewElement.querySelectorAll("[data-dz-remove]"),!0),K;try{for(z.s();!(K=z.n()).done;){var J=K.value;J.addEventListener("click",U)}}catch(W){z.e(W)}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,C){if(R.previewElement){R.previewElement.classList.remove("dz-file-preview");var L=he(R.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0),m;try{for(L.s();!(m=L.n()).done;){var g=m.value;g.alt=R.name,g.src=C}}catch(k){L.e(k)}finally{L.f()}return setTimeout(function(){return R.previewElement.classList.add("dz-image-preview")},1)}},error:function(R,C){if(R.previewElement){R.previewElement.classList.add("dz-error"),typeof C!="string"&&C.error&&(C=C.error);var L=he(R.previewElement.querySelectorAll("[data-dz-errormessage]"),!0),m;try{for(L.s();!(m=L.n()).done;){var g=m.value;g.textContent=C}}catch(k){L.e(k)}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,C,L){if(R.previewElement){var m=he(R.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0),g;try{for(m.s();!(g=m.n()).done;){var k=g.value;k.nodeName==="PROGRESS"?k.value=C:k.style.width="".concat(C,"%")}}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(){}},st=dt;function Fe(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fe=function(C){return typeof C}:Fe=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},Fe(F)}function ke(F,R){var C;if(typeof Symbol>"u"||F[Symbol.iterator]==null){if(Array.isArray(F)||(C=qt(F))||R&&F&&typeof F.length=="number"){C&&(F=C);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 g=!0,k=!1,$;return{s:function(){C=F[Symbol.iterator]()},n:function(){var z=C.next();return g=z.done,z},e:function(z){k=!0,$=z},f:function(){try{!g&&C.return!=null&&C.return()}finally{if(k)throw $}}}}function qt(F,R){if(F){if(typeof F=="string")return vt(F,R);var C=Object.prototype.toString.call(F).slice(8,-1);if(C==="Object"&&F.constructor&&(C=F.constructor.name),C==="Map"||C==="Set")return Array.from(F);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return vt(F,R)}}function vt(F,R){(R==null||R>F.length)&&(R=F.length);for(var C=0,L=new Array(R);C<R;C++)L[C]=F[C];return L}function sr(F,R){if(!(F instanceof R))throw new TypeError("Cannot call a class as a function")}function ar(F,R){for(var C=0;C<R.length;C++){var L=R[C];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(F,L.key,L)}}function Ze(F,R,C){return R&&ar(F.prototype,R),C&&ar(F,C),F}function _e(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&&We(F,R)}function We(F,R){return We=Object.setPrototypeOf||function(L,m){return L.__proto__=m,L},We(F,R)}function mt(F){var R=_t();return function(){var L=lt(F),m;if(R){var g=lt(this).constructor;m=Reflect.construct(L,arguments,g)}else m=L.apply(this,arguments);return $t(this,m)}}function $t(F,R){return R&&(Fe(R)==="object"||typeof R=="function")?R:yt(F)}function yt(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function _t(){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 lt(F){return lt=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},lt(F)}var fe=function(F){_e(C,F);var R=mt(C);function C(L,m){var g;sr(this,C),g=R.call(this);var k,$;if(g.element=L,g.version=C.version,g.clickableElements=[],g.listeners=[],g.files=[],typeof g.element=="string"&&(g.element=document.querySelector(g.element)),!g.element||g.element.nodeType==null)throw new Error("Invalid dropzone element.");if(g.element.dropzone)throw new Error("Dropzone already attached.");C.instances.push(yt(g)),g.element.dropzone=yt(g);var U=($=C.optionsForElement(g.element))!=null?$:{};if(g.options=C.extend({},st,U,m??{}),g.options.previewTemplate=g.options.previewTemplate.replace(/\n*/g,""),g.options.forceFallback||!C.isBrowserSupported())return $t(g,g.options.fallback.call(yt(g)));if(g.options.url==null&&(g.options.url=g.element.getAttribute("action")),!g.options.url)throw new Error("No URL provided.");if(g.options.acceptedFiles&&g.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(g.options.uploadMultiple&&g.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return g.options.acceptedMimeTypes&&(g.options.acceptedFiles=g.options.acceptedMimeTypes,delete g.options.acceptedMimeTypes),g.options.renameFilename!=null&&(g.options.renameFile=function(z){return g.options.renameFilename.call(yt(g),z.name,z)}),typeof g.options.method=="string"&&(g.options.method=g.options.method.toUpperCase()),(k=g.getExistingFallback())&&k.parentNode&&k.parentNode.removeChild(k),g.options.previewsContainer!==!1&&(g.options.previewsContainer?g.previewsContainer=C.getElement(g.options.previewsContainer,"previewsContainer"):g.previewsContainer=g.element),g.options.clickable&&(g.options.clickable===!0?g.clickableElements=[g.element]:g.clickableElements=C.getElements(g.options.clickable,"clickable")),g.init(),g}return Ze(C,[{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(g){return g.status===m}).map(function(g){return g})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(C.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(C.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(C.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(m){return m.status===C.UPLOADING||m.status===C.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(C.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var g=function J(){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",C.getElement(m.options.hiddenInputContainer,"hiddenInputContainer").appendChild(m.hiddenFileInput),m.hiddenFileInput.addEventListener("change",function(){var W=m.hiddenFileInput.files;if(W.length){var ae=ke(W,!0),ze;try{for(ae.s();!(ze=ae.n()).done;){var Se=ze.value;m.addFile(Se)}}catch(w){ae.e(w)}finally{ae.f()}}m.emit("addedfiles",W),J()})};g()}this.URL=window.URL!==null?window.URL:window.webkitURL;var k=ke(this.events,!0),$;try{for(k.s();!($=k.n()).done;){var U=$.value;this.on(U,this.options[U])}}catch(J){k.e(J)}finally{k.f()}this.on("uploadprogress",function(){return m.updateTotalUploadProgress()}),this.on("removedfile",function(){return m.updateTotalUploadProgress()}),this.on("canceled",function(J){return m.emit("complete",J)}),this.on("complete",function(J){if(m.getAddedFiles().length===0&&m.getUploadingFiles().length===0&&m.getQueuedFiles().length===0)return setTimeout(function(){return m.emit("queuecomplete")},0)});var z=function(W){if(W.dataTransfer.types){for(var ae=0;ae<W.dataTransfer.types.length;ae++)if(W.dataTransfer.types[ae]==="Files")return!0}return!1},K=function(W){if(z(W))return W.stopPropagation(),W.preventDefault?W.preventDefault():W.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(W){return m.emit("dragstart",W)},dragenter:function(W){return K(W),m.emit("dragenter",W)},dragover:function(W){var ae;try{ae=W.dataTransfer.effectAllowed}catch{}return W.dataTransfer.dropEffect=ae==="move"||ae==="linkMove"?"move":"copy",K(W),m.emit("dragover",W)},dragleave:function(W){return m.emit("dragleave",W)},drop:function(W){return K(W),m.drop(W)},dragend:function(W){return m.emit("dragend",W)}}}],this.clickableElements.forEach(function(J){return m.listeners.push({element:J,events:{click:function(ae){return(J!==m.element||ae.target===m.element||C.elementInside(ae.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,C.instances.splice(C.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var m,g=0,k=0,$=this.getActiveFiles();if($.length){var U=ke(this.getActiveFiles(),!0),z;try{for(U.s();!(z=U.n()).done;){var K=z.value;g+=K.upload.bytesSent,k+=K.upload.total}}catch(J){U.e(J)}finally{U.f()}m=100*g/k}else m=100;return this.emit("totaluploadprogress",m,k,g)}},{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,g;if(m=this.getExistingFallback())return m;var k='<div class="dz-fallback">';this.options.dictFallbackText&&(k+="<p>".concat(this.options.dictFallbackText,"</p>")),k+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var $=C.createElement(k);return this.element.tagName!=="FORM"?(g=C.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),g.appendChild($)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),g??$}},{key:"getExistingFallback",value:function(){for(var m=function(K){var J=ke(K,!0),W;try{for(J.s();!(W=J.n()).done;){var ae=W.value;if(/(^| )fallback($| )/.test(ae.className))return ae}}catch(ze){J.e(ze)}finally{J.f()}},g=0,k=["div","form"];g<k.length;g++){var $=k[g],U;if(U=m(this.element.getElementsByTagName($)))return U}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(m){return function(){var g=[];for(var k in m.events){var $=m.events[k];g.push(m.element.addEventListener(k,$,!1))}return g}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(m){return function(){var g=[];for(var k in m.events){var $=m.events[k];g.push(m.element.removeEventListener(k,$,!1))}return g}()})}},{key:"disable",value:function(){var m=this;return this.clickableElements.forEach(function(g){return g.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(g){return m.cancelUpload(g)})}},{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 g=0,k="b";if(m>0){for(var $=["tb","gb","mb","kb","b"],U=0;U<$.length;U++){var z=$[U],K=Math.pow(this.options.filesizeBase,4-U)/10;if(m>=K){g=m/Math.pow(this.options.filesizeBase,4-U),k=z;break}}g=Math.round(10*g)/10}return"<strong>".concat(g,"</strong> ").concat(this.options.dictFileSizeUnits[k])}},{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 g=[],k=0;k<m.dataTransfer.files.length;k++)g[k]=m.dataTransfer.files[k];if(g.length){var $=m.dataTransfer.items;$&&$.length&&$[0].webkitGetAsEntry!=null?this._addFilesFromItems($):this.handleFiles(g)}this.emit("addedfiles",g)}}},{key:"paste",value:function(m){if(Lt(m?.clipboardData,function(k){return k.items})!=null){this.emit("paste",m);var g=m.clipboardData.items;if(g.length)return this._addFilesFromItems(g)}}},{key:"handleFiles",value:function(m){var g=ke(m,!0),k;try{for(g.s();!(k=g.n()).done;){var $=k.value;this.addFile($)}}catch(U){g.e(U)}finally{g.f()}}},{key:"_addFilesFromItems",value:function(m){var g=this;return function(){var k=[],$=ke(m,!0),U;try{for($.s();!(U=$.n()).done;){var z=U.value,K;z.webkitGetAsEntry!=null&&(K=z.webkitGetAsEntry())?K.isFile?k.push(g.addFile(z.getAsFile())):K.isDirectory?k.push(g._addFilesFromDirectory(K,K.name)):k.push(void 0):z.getAsFile!=null&&(z.kind==null||z.kind==="file")?k.push(g.addFile(z.getAsFile())):k.push(void 0)}}catch(J){$.e(J)}finally{$.f()}return k}()}},{key:"_addFilesFromDirectory",value:function(m,g){var k=this,$=m.createReader(),U=function(J){return It(console,"log",function(W){return W.log(J)})},z=function K(){return $.readEntries(function(J){if(J.length>0){var W=ke(J,!0),ae;try{for(W.s();!(ae=W.n()).done;){var ze=ae.value;ze.isFile?ze.file(function(Se){if(!(k.options.ignoreHiddenFiles&&Se.name.substring(0,1)==="."))return Se.fullPath="".concat(g,"/").concat(Se.name),k.addFile(Se)}):ze.isDirectory&&k._addFilesFromDirectory(ze,"".concat(g,"/").concat(ze.name))}}catch(Se){W.e(Se)}finally{W.f()}K()}return null},U)};return z()}},{key:"accept",value:function(m,g){this.options.maxFilesize&&m.size>this.options.maxFilesize*1024*1024?g(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(m.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):C.isValidFile(m,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(g(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",m)):this.options.accept.call(this,m,g):g(this.options.dictInvalidFileType)}},{key:"addFile",value:function(m){var g=this;m.upload={uuid:C.uuidv4(),progress:0,total:m.size,bytesSent:0,filename:this._renameFile(m)},this.files.push(m),m.status=C.ADDED,this.emit("addedfile",m),this._enqueueThumbnail(m),this.accept(m,function(k){k?(m.accepted=!1,g._errorProcessing([m],k)):(m.accepted=!0,g.options.autoQueue&&g.enqueueFile(m)),g._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(m){var g=ke(m,!0),k;try{for(g.s();!(k=g.n()).done;){var $=k.value;this.enqueueFile($)}}catch(U){g.e(U)}finally{g.f()}return null}},{key:"enqueueFile",value:function(m){var g=this;if(m.status===C.ADDED&&m.accepted===!0){if(m.status=C.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return g.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 g=this;if(this.options.createImageThumbnails&&m.type.match(/image.*/)&&m.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(m),setTimeout(function(){return g._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var m=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var g=this._thumbnailQueue.shift();return this.createThumbnail(g,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(k){return m.emit("thumbnail",g,k),m._processingThumbnail=!1,m._processThumbnailQueue()})}}},{key:"removeFile",value:function(m){if(m.status===C.UPLOADING&&this.cancelUpload(m),this.files=Jt(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 g=ke(this.files.slice(),!0),k;try{for(g.s();!(k=g.n()).done;){var $=k.value;($.status!==C.UPLOADING||m)&&this.removeFile($)}}catch(U){g.e(U)}finally{g.f()}return null}},{key:"resizeImage",value:function(m,g,k,$,U){var z=this;return this.createThumbnail(m,g,k,$,!0,function(K,J){if(J==null)return U(m);var W=z.options.resizeMimeType;W==null&&(W=m.type);var ae=J.toDataURL(W,z.options.resizeQuality);return(W==="image/jpeg"||W==="image/jpg")&&(ae=Mr.restore(m.dataURL,ae)),U(C.dataURItoBlob(ae))})}},{key:"createThumbnail",value:function(m,g,k,$,U,z){var K=this,J=new FileReader;J.onload=function(){if(m.dataURL=J.result,m.type==="image/svg+xml"){z?.(J.result);return}K.createThumbnailFromUrl(m,g,k,$,U,z)},J.readAsDataURL(m)}},{key:"displayExistingFile",value:function(m,g,k,$){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,g),k&&k();else{var K=function(W){U.emit("thumbnail",m,W),k&&k()};m.dataURL=g,this.createThumbnailFromUrl(m,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,this.options.fixOrientation,K,$)}}},{key:"createThumbnailFromUrl",value:function(m,g,k,$,U,z,K){var J=this,W=document.createElement("img");return K&&(W.crossOrigin=K),U=getComputedStyle(document.body).imageOrientation=="from-image"?!1:U,W.onload=function(){var ae=function(Se){return Se(1)};return typeof EXIF<"u"&&EXIF!==null&&U&&(ae=function(Se){return EXIF.getData(W,function(){return Se(EXIF.getTag(this,"Orientation"))})}),ae(function(ze){m.width=W.width,m.height=W.height;var Se=J.options.resize.call(J,m,g,k,$),w=document.createElement("canvas"),N=w.getContext("2d");switch(w.width=Se.trgWidth,w.height=Se.trgHeight,ze>4&&(w.width=Se.trgHeight,w.height=Se.trgWidth),ze){case 2:N.translate(w.width,0),N.scale(-1,1);break;case 3:N.translate(w.width,w.height),N.rotate(Math.PI);break;case 4:N.translate(0,w.height),N.scale(1,-1);break;case 5:N.rotate(.5*Math.PI),N.scale(1,-1);break;case 6:N.rotate(.5*Math.PI),N.translate(0,-w.width);break;case 7:N.rotate(.5*Math.PI),N.translate(w.height,-w.width),N.scale(-1,1);break;case 8:N.rotate(-.5*Math.PI),N.translate(-w.height,0);break}Tt(N,W,Se.srcX!=null?Se.srcX:0,Se.srcY!=null?Se.srcY:0,Se.srcWidth,Se.srcHeight,Se.trgX!=null?Se.trgX:0,Se.trgY!=null?Se.trgY:0,Se.trgWidth,Se.trgHeight);var j=w.toDataURL("image/png");if(z!=null)return z(j,w)})},z!=null&&(W.onerror=z),W.src=m.dataURL}},{key:"processQueue",value:function(){var m=this.options.parallelUploads,g=this.getUploadingFiles().length,k=g;if(!(g>=m)){var $=this.getQueuedFiles();if($.length>0){if(this.options.uploadMultiple)return this.processFiles($.slice(0,m-g));for(;k<m;){if(!$.length)return;this.processFile($.shift()),k++}}}}},{key:"processFile",value:function(m){return this.processFiles([m])}},{key:"processFiles",value:function(m){var g=ke(m,!0),k;try{for(g.s();!(k=g.n()).done;){var $=k.value;$.processing=!0,$.status=C.UPLOADING,this.emit("processing",$)}}catch(U){g.e(U)}finally{g.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",m),this.uploadFiles(m)}},{key:"_getFilesWithXhr",value:function(m){var g;return g=this.files.filter(function(k){return k.xhr===m}).map(function(k){return k})}},{key:"cancelUpload",value:function(m){if(m.status===C.UPLOADING){var g=this._getFilesWithXhr(m.xhr),k=ke(g,!0),$;try{for(k.s();!($=k.n()).done;){var U=$.value;U.status=C.CANCELED}}catch(W){k.e(W)}finally{k.f()}typeof m.xhr<"u"&&m.xhr.abort();var z=ke(g,!0),K;try{for(z.s();!(K=z.n()).done;){var J=K.value;this.emit("canceled",J)}}catch(W){z.e(W)}finally{z.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",g)}else(m.status===C.ADDED||m.status===C.QUEUED)&&(m.status=C.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 g=arguments.length,k=new Array(g>1?g-1:0),$=1;$<g;$++)k[$-1]=arguments[$];return m.apply(this,k)}return m}},{key:"uploadFile",value:function(m){return this.uploadFiles([m])}},{key:"uploadFiles",value:function(m){var g=this;this._transformFiles(m,function(k){if(g.options.chunking){var $=k[0];m[0].upload.chunked=g.options.chunking&&(g.options.forceChunking||$.size>g.options.chunkSize),m[0].upload.totalChunkCount=Math.ceil($.size/g.options.chunkSize)}if(m[0].upload.chunked){var U=m[0],z=k[0],K=0;U.upload.chunks=[];var J=function(){for(var w=0;U.upload.chunks[w]!==void 0;)w++;if(!(w>=U.upload.totalChunkCount)){K++;var N=w*g.options.chunkSize,j=Math.min(N+g.options.chunkSize,z.size),q={name:g._getParamName(0),data:z.webkitSlice?z.webkitSlice(N,j):z.slice(N,j),filename:U.upload.filename,chunkIndex:w};U.upload.chunks[w]={file:U,index:w,dataBlock:q,status:C.UPLOADING,progress:0,retries:0},g._uploadData(m,[q])}};if(U.upload.finishedChunkUpload=function(Se,w){var N=!0;Se.status=C.SUCCESS,Se.dataBlock=null,Se.xhr=null;for(var j=0;j<U.upload.totalChunkCount;j++){if(U.upload.chunks[j]===void 0)return J();U.upload.chunks[j].status!==C.SUCCESS&&(N=!1)}N&&g.options.chunksUploaded(U,function(){g._finished(m,w,null)})},g.options.parallelChunkUploads)for(var W=0;W<U.upload.totalChunkCount;W++)J();else J()}else{for(var ae=[],ze=0;ze<m.length;ze++)ae[ze]={name:g._getParamName(ze),data:k[ze],filename:m[ze].upload.filename};g._uploadData(m,ae)}})}},{key:"_getChunk",value:function(m,g){for(var k=0;k<m.upload.totalChunkCount;k++)if(m.upload.chunks[k]!==void 0&&m.upload.chunks[k].xhr===g)return m.upload.chunks[k]}},{key:"_uploadData",value:function(m,g){var k=this,$=new XMLHttpRequest,U=ke(m,!0),z;try{for(U.s();!(z=U.n()).done;){var K=z.value;K.xhr=$}}catch(He){U.e(He)}finally{U.f()}m[0].upload.chunked&&(m[0].upload.chunks[g[0].chunkIndex].xhr=$);var J=this.resolveOption(this.options.method,m),W=this.resolveOption(this.options.url,m);$.open(J,W,!0);var ae=this.resolveOption(this.options.timeout,m);ae&&($.timeout=this.resolveOption(this.options.timeout,m)),$.withCredentials=!!this.options.withCredentials,$.onload=function(He){k._finishedUploading(m,$,He)},$.ontimeout=function(){k._handleUploadError(m,$,"Request timedout after ".concat(k.options.timeout/1e3," seconds"))},$.onerror=function(){k._handleUploadError(m,$)};var ze=$.upload!=null?$.upload:$;ze.onprogress=function(He){return k._updateFilesUploadProgress(m,$,He)};var Se={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&C.extend(Se,this.options.headers);for(var w in Se){var N=Se[w];N&&$.setRequestHeader(w,N)}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 Z in q){var be=q[Z];if(Array.isArray(be))for(var le=0;le<be.length;le++)j.append(Z,be[le]);else j.append(Z,be)}}var Oe=ke(m,!0),qe;try{for(Oe.s();!(qe=Oe.n()).done;){var et=qe.value;this.emit("sending",et,$,j)}}catch(He){Oe.e(He)}finally{Oe.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",m,$,j),this._addFormElementData(j);for(var ht=0;ht<g.length;ht++){var X=g[ht];j.append(X.name,X.data,X.filename)}this.submitRequest($,j,m)}},{key:"_transformFiles",value:function(m,g){for(var k=this,$=[],U=0,z=function(W){k.options.transformFile.call(k,m[W],function(ae){$[W]=ae,++U===m.length&&g($)})},K=0;K<m.length;K++)z(K)}},{key:"_addFormElementData",value:function(m){if(this.element.tagName==="FORM"){var g=ke(this.element.querySelectorAll("input, textarea, select, button"),!0),k;try{for(g.s();!(k=g.n()).done;){var $=k.value,U=$.getAttribute("name"),z=$.getAttribute("type");if(z&&(z=z.toLowerCase()),!(typeof U>"u"||U===null))if($.tagName==="SELECT"&&$.hasAttribute("multiple")){var K=ke($.options,!0),J;try{for(K.s();!(J=K.n()).done;){var W=J.value;W.selected&&m.append(U,W.value)}}catch(ae){K.e(ae)}finally{K.f()}}else(!z||z!=="checkbox"&&z!=="radio"||$.checked)&&m.append(U,$.value)}}catch(ae){g.e(ae)}finally{g.f()}}}},{key:"_updateFilesUploadProgress",value:function(m,g,k){if(m[0].upload.chunked){var K=m[0],J=this._getChunk(K,g);k?(J.progress=100*k.loaded/k.total,J.total=k.total,J.bytesSent=k.loaded):(J.progress=100,J.bytesSent=J.total),K.upload.progress=0,K.upload.total=0,K.upload.bytesSent=0;for(var W=0;W<K.upload.totalChunkCount;W++)K.upload.chunks[W]&&typeof K.upload.chunks[W].progress<"u"&&(K.upload.progress+=K.upload.chunks[W].progress,K.upload.total+=K.upload.chunks[W].total,K.upload.bytesSent+=K.upload.chunks[W].bytesSent);K.upload.progress=K.upload.progress/K.upload.totalChunkCount,this.emit("uploadprogress",K,K.upload.progress,K.upload.bytesSent)}else{var $=ke(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||(k?(z.upload.progress=100*k.loaded/k.total,z.upload.total=k.total,z.upload.bytesSent=k.loaded):(z.upload.progress=100,z.upload.bytesSent=z.upload.total),this.emit("uploadprogress",z,z.upload.progress,z.upload.bytesSent))}}catch(ae){$.e(ae)}finally{$.f()}}}},{key:"_finishedUploading",value:function(m,g,k){var $;if(m[0].status!==C.CANCELED&&g.readyState===4){if(g.responseType!=="arraybuffer"&&g.responseType!=="blob"&&($=g.responseText,g.getResponseHeader("content-type")&&~g.getResponseHeader("content-type").indexOf("application/json")))try{$=JSON.parse($)}catch(U){k=U,$="Invalid JSON response from server."}this._updateFilesUploadProgress(m,g),200<=g.status&&g.status<300?m[0].upload.chunked?m[0].upload.finishedChunkUpload(this._getChunk(m[0],g),$):this._finished(m,$,k):this._handleUploadError(m,g,$)}}},{key:"_handleUploadError",value:function(m,g,k){if(m[0].status!==C.CANCELED){if(m[0].upload.chunked&&this.options.retryChunks){var $=this._getChunk(m[0],g);if($.retries++<this.options.retryChunksLimit){this._uploadData(m,[$.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(m,k||this.options.dictResponseError.replace("{{statusCode}}",g.status),g)}}},{key:"submitRequest",value:function(m,g,k){if(m.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}m.send(g)}},{key:"_finished",value:function(m,g,k){var $=ke(m,!0),U;try{for($.s();!(U=$.n()).done;){var z=U.value;z.status=C.SUCCESS,this.emit("success",z,g,k),this.emit("complete",z)}}catch(K){$.e(K)}finally{$.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",m,g,k),this.emit("completemultiple",m)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(m,g,k){var $=ke(m,!0),U;try{for($.s();!(U=$.n()).done;){var z=U.value;z.status=C.ERROR,this.emit("error",z,g,k),this.emit("complete",z)}}catch(K){$.e(K)}finally{$.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",m,g,k),this.emit("completemultiple",m)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=ee,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 g=arguments.length,k=new Array(g>1?g-1:0),$=1;$<g;$++)k[$-1]=arguments[$];for(var U=0,z=k;U<z.length;U++){var K=z[U];for(var J in K){var W=K[J];m[J]=W}}return m}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(m){var g=Math.random()*16|0,k=m==="x"?g:g&3|8;return k.toString(16)})}}]),C}(ee);fe.initClass(),fe.version="5.9.3",fe.options={},fe.optionsForElement=function(F){if(F.getAttribute("id"))return fe.options[Pr(F.getAttribute("id"))]},fe.instances=[],fe.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},fe.autoDiscover=!0,fe.discover=function(){var F;if(document.querySelectorAll)F=document.querySelectorAll(".dropzone");else{F=[];var R=function(L){return function(){var m=[],g=ke(L,!0),k;try{for(g.s();!(k=g.n()).done;){var $=k.value;/(^| )dropzone($| )/.test($.className)?m.push(F.push($)):m.push(void 0)}}catch(U){g.e(U)}finally{g.f()}return m}()};R(document.getElementsByTagName("div")),R(document.getElementsByTagName("form"))}return function(){var C=[],L=ke(F,!0),m;try{for(L.s();!(m=L.n()).done;){var g=m.value;fe.optionsForElement(g)!==!1?C.push(new fe(g)):C.push(void 0)}}catch(k){L.e(k)}finally{L.f()}return C}()},fe.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],fe.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{fe.blacklistedBrowsers!==void 0&&(fe.blockedBrowsers=fe.blacklistedBrowsers);var R=ke(fe.blockedBrowsers,!0),C;try{for(R.s();!(C=R.n()).done;){var L=C.value;if(L.test(navigator.userAgent)){F=!1;continue}}}catch(m){R.e(m)}finally{R.f()}}else F=!1;return F},fe.dataURItoBlob=function(F){for(var R=atob(F.split(",")[1]),C=F.split(",")[0].split(":")[1].split(";")[0],L=new ArrayBuffer(R.length),m=new Uint8Array(L),g=0,k=R.length,$=0<=k;$?g<=k:g>=k;$?g++:g--)m[g]=R.charCodeAt(g);return new Blob([L],{type:C})};var Jt=function(R,C){return R.filter(function(L){return L!==C}).map(function(L){return L})},Pr=function(R){return R.replace(/[\-_](\w)/g,function(C){return C.charAt(1).toUpperCase()})};fe.createElement=function(F){var R=document.createElement("div");return R.innerHTML=F,R.childNodes[0]},fe.elementInside=function(F,R){if(F===R)return!0;for(;F=F.parentNode;)if(F===R)return!0;return!1},fe.getElement=function(F,R){var C;if(typeof F=="string"?C=document.querySelector(F):F.nodeType!=null&&(C=F),C==null)throw new Error("Invalid `".concat(R,"` option provided. Please provide a CSS selector or a plain HTML element."));return C},fe.getElements=function(F,R){var C,L;if(F instanceof Array){L=[];try{var m=ke(F,!0),g;try{for(m.s();!(g=m.n()).done;)C=g.value,L.push(this.getElement(C,R))}catch(U){m.e(U)}finally{m.f()}}catch{L=null}}else if(typeof F=="string"){L=[];var k=ke(document.querySelectorAll(F),!0),$;try{for(k.s();!($=k.n()).done;)C=$.value,L.push(C)}catch(U){k.e(U)}finally{k.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},fe.confirm=function(F,R,C){if(window.confirm(F))return R();if(C!=null)return C()},fe.isValidFile=function(F,R){if(!R)return!0;R=R.split(",");var C=F.type,L=C.replace(/\/.*$/,""),m=ke(R,!0),g;try{for(m.s();!(g=m.n()).done;){var k=g.value;if(k=k.trim(),k.charAt(0)==="."){if(F.name.toLowerCase().indexOf(k.toLowerCase(),F.name.length-k.length)!==-1)return!0}else if(/\/\*$/.test(k)){if(L===k.replace(/\/.*$/,""))return!0}else if(C===k)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 fe(this,F)})}),fe.ADDED="added",fe.QUEUED="queued",fe.ACCEPTED=fe.QUEUED,fe.UPLOADING="uploading",fe.PROCESSING=fe.UPLOADING,fe.CANCELED="canceled",fe.ERROR="error",fe.SUCCESS="success";var er=function(R){var C=R.naturalWidth,L=R.naturalHeight,m=document.createElement("canvas");m.width=1,m.height=L;var g=m.getContext("2d");g.drawImage(R,0,0);for(var k=g.getImageData(1,0,1,L),$=k.data,U=0,z=L,K=L;K>U;){var J=$[(K-1)*4+3];J===0?z=K:U=K,K=z+U>>1}var W=K/L;return W===0?1:W},Tt=function(R,C,L,m,g,k,$,U,z,K){var J=er(C);return R.drawImage(C,L,m,g,k,$,U,z,K/J)},Mr=function(){function F(){sr(this,F)}return Ze(F,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(C){for(var L="",m=void 0,g=void 0,k="",$=void 0,U=void 0,z=void 0,K="",J=0;m=C[J++],g=C[J++],k=C[J++],$=m>>2,U=(m&3)<<4|g>>4,z=(g&15)<<2|k>>6,K=k&63,isNaN(g)?z=K=64:isNaN(k)&&(K=64),L=L+this.KEY_STR.charAt($)+this.KEY_STR.charAt(U)+this.KEY_STR.charAt(z)+this.KEY_STR.charAt(K),m=g=k="",$=U=z=K="",J<C.length;);return L}},{key:"restore",value:function(C,L){if(!C.match("data:image/jpeg;base64,"))return L;var m=this.decode64(C.replace("data:image/jpeg;base64,","")),g=this.slice2Segments(m),k=this.exifManipulation(L,g);return"data:image/jpeg;base64,".concat(this.encode64(k))}},{key:"exifManipulation",value:function(C,L){var m=this.getExifArray(L),g=this.insertExif(C,m),k=new Uint8Array(g);return k}},{key:"getExifArray",value:function(C){for(var L=void 0,m=0;m<C.length;){if(L=C[m],L[0]===255&L[1]===225)return L;m++}return[]}},{key:"insertExif",value:function(C,L){var m=C.replace("data:image/jpeg;base64,",""),g=this.decode64(m),k=g.indexOf(255,3),$=g.slice(0,k),U=g.slice(k),z=$;return z=z.concat(L),z=z.concat(U),z}},{key:"slice2Segments",value:function(C){for(var L=0,m=[];;){var g;if(C[L]===255&C[L+1]===218)break;if(C[L]===255&C[L+1]===216)L+=2;else{g=C[L+2]*256+C[L+3];var k=L+g+2,$=C.slice(L,k);m.push($),L=k}if(L>C.length)break}return m}},{key:"decode64",value:function(C){var L="",m=void 0,g=void 0,k="",$=void 0,U=void 0,z=void 0,K="",J=0,W=[],ae=/[^A-Za-z0-9\+\/\=]/g;for(ae.exec(C)&&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.`),C=C.replace(/[^A-Za-z0-9\+\/\=]/g,"");$=this.KEY_STR.indexOf(C.charAt(J++)),U=this.KEY_STR.indexOf(C.charAt(J++)),z=this.KEY_STR.indexOf(C.charAt(J++)),K=this.KEY_STR.indexOf(C.charAt(J++)),m=$<<2|U>>4,g=(U&15)<<4|z>>2,k=(z&3)<<6|K,W.push(m),z!==64&&W.push(g),K!==64&&W.push(k),m=g=k="",$=U=z=K="",J<C.length;);return W}}]),F}();Mr.initClass();var Gt=function(R,C){var L=!1,m=!0,g=R.document,k=g.documentElement,$=g.addEventListener?"addEventListener":"attachEvent",U=g.addEventListener?"removeEventListener":"detachEvent",z=g.addEventListener?"":"on",K=function W(ae){if(!(ae.type==="readystatechange"&&g.readyState!=="complete")&&((ae.type==="load"?R:g)[U](z+ae.type,W,!1),!L&&(L=!0)))return C.call(R,ae.type||ae)},J=function W(){try{k.doScroll("left")}catch{setTimeout(W,50);return}return K("poll")};if(g.readyState!=="complete"){if(g.createEventObject&&k.doScroll){try{m=!R.frameElement}catch{}m&&J()}return g[$](z+"DOMContentLoaded",K,!1),g[$](z+"readystatechange",K,!1),R[$](z+"load",K,!1)}};fe._autoDiscoverFunction=function(){if(fe.autoDiscover)return fe.discover()},Gt(window,fe._autoDiscoverFunction);function Lt(F,R){return typeof F<"u"&&F!==null?R(F):void 0}function It(F,R,C){if(typeof F<"u"&&F!==null&&typeof F[R]=="function")return C(F,R)}window.Dropzone=fe;var Wt=fe}(),n}()})});var Fa=ne((py,Lh)=>{Lh.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 Qo=ne((my,Ra)=>{"use strict";Ra.exports=Fa()});var bi=ne((gy,Oa)=>{Oa.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 $a=ne((vy,Ma)=>{"use strict";var Pa={};function Fh(r){var e,t,n=Pa[r];if(n)return n;for(n=Pa[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 xi(r,e,t){var n,i,s,o,a,l="";for(typeof e!="string"&&(t=e,e=xi.defaultChars),typeof t>"u"&&(t=!0),a=Fh(e),n=0,i=r.length;n<i;n++){if(s=r.charCodeAt(n),t&&s===37&&n+2<i&&/^[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<i&&(o=r.charCodeAt(n+1),o>=56320&&o<=57343)){l+=encodeURIComponent(r[n]+r[n+1]),n++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(r[n])}return l}xi.defaultChars=";/?:@&=+$,-_.!~*'()#";xi.componentChars="-_.!~*'()";Ma.exports=xi});var Na=ne((yy,Ba)=>{"use strict";var _a={};function Rh(r){var e,t,n=_a[r];if(n)return n;for(n=_a[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 wi(r,e){var t;return typeof e!="string"&&(e=wi.defaultChars),t=Rh(e),r.replace(/(%[a-f0-9]{2})+/gi,function(n){var i,s,o,a,l,c,u,d="";for(i=0,s=n.length;i<s;i+=3){if(o=parseInt(n.slice(i+1,i+3),16),o<128){d+=t[o];continue}if((o&224)===192&&i+3<s&&(a=parseInt(n.slice(i+4,i+6),16),(a&192)===128)){u=o<<6&1984|a&63,u<128?d+="\uFFFD\uFFFD":d+=String.fromCharCode(u),i+=3;continue}if((o&240)===224&&i+6<s&&(a=parseInt(n.slice(i+4,i+6),16),l=parseInt(n.slice(i+7,i+9),16),(a&192)===128&&(l&192)===128)){u=o<<12&61440|a<<6&4032|l&63,u<2048||u>=55296&&u<=57343?d+="\uFFFD\uFFFD\uFFFD":d+=String.fromCharCode(u),i+=6;continue}if((o&248)===240&&i+9<s&&(a=parseInt(n.slice(i+4,i+6),16),l=parseInt(n.slice(i+7,i+9),16),c=parseInt(n.slice(i+10,i+12),16),(a&192)===128&&(l&192)===128&&(c&192)===128)){u=o<<18&1835008|a<<12&258048|l<<6&4032|c&63,u<65536||u>1114111?d+="\uFFFD\uFFFD\uFFFD\uFFFD":(u-=65536,d+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),i+=9;continue}d+="\uFFFD"}return d})}wi.defaultChars=";/?:@&=+$,#";wi.componentChars="";Ba.exports=wi});var za=ne((by,Ua)=>{"use strict";Ua.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 Ya=ne((xy,Wa)=>{"use strict";function Ei(){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 Oh=/^([a-z0-9.+-]+:)/i,Ph=/:[0-9]*$/,Mh=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,$h=["<",">",'"',"`"," ","\r",`
|
|
`," "],_h=["{","}","|","\\","^","`"].concat($h),Bh=["'"].concat(_h),ja=["%","/","?",";","#"].concat(Bh),Ha=["/","?","#"],Nh=255,Va=/^[+a-z0-9A-Z_-]{0,63}$/,Uh=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,qa={javascript:!0,"javascript:":!0},Ga={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function zh(r,e){if(r&&r instanceof Ei)return r;var t=new Ei;return t.parse(r,e),t}Ei.prototype.parse=function(r,e){var t,n,i,s,o,a=r;if(a=a.trim(),!e&&r.split("#").length===1){var l=Mh.exec(a);if(l)return this.pathname=l[1],l[2]&&(this.search=l[2]),this}var c=Oh.exec(a);if(c&&(c=c[0],i=c.toLowerCase(),this.protocol=c,a=a.substr(c.length)),(e||c||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=a.substr(0,2)==="//",o&&!(c&&qa[c])&&(a=a.substr(2),this.slashes=!0)),!qa[c]&&(o||c&&!Ga[c])){var u=-1;for(t=0;t<Ha.length;t++)s=a.indexOf(Ha[t]),s!==-1&&(u===-1||s<u)&&(u=s);var d,h;for(u===-1?h=a.lastIndexOf("@"):h=a.lastIndexOf("@",u),h!==-1&&(d=a.slice(0,h),a=a.slice(h+1),this.auth=d),u=-1,t=0;t<ja.length;t++)s=a.indexOf(ja[t]),s!==-1&&(u===-1||s<u)&&(u=s);u===-1&&(u=a.length),a[u-1]===":"&&u--;var f=a.slice(0,u);a=a.slice(u),this.parseHost(f),this.hostname=this.hostname||"";var p=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!p){var v=this.hostname.split(/\./);for(t=0,n=v.length;t<n;t++){var y=v[t];if(y&&!y.match(Va)){for(var b="",x=0,T=y.length;x<T;x++)y.charCodeAt(x)>127?b+="x":b+=y[x];if(!b.match(Va)){var E=v.slice(0,t),M=v.slice(t+1),S=y.match(Uh);S&&(E.push(S[1]),M.unshift(S[2])),M.length&&(a=M.join(".")+a),this.hostname=E.join(".");break}}}}this.hostname.length>Nh&&(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 A=a.indexOf("?");return A!==-1&&(this.search=a.substr(A),a=a.slice(0,A)),a&&(this.pathname=a),Ga[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Ei.prototype.parseHost=function(r){var e=Ph.exec(r);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),r=r.substr(0,r.length-e.length)),r&&(this.hostname=r)};Wa.exports=zh});var Jo=ne((wy,ln)=>{"use strict";ln.exports.encode=$a();ln.exports.decode=Na();ln.exports.format=za();ln.exports.parse=Ya()});var es=ne((Ey,Ka)=>{Ka.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var ts=ne((Cy,Xa)=>{Xa.exports=/[\0-\x1F\x7F-\x9F]/});var Qa=ne((Sy,Za)=>{Za.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 rs=ne((Ay,Ja)=>{Ja.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var el=ne(Dr=>{"use strict";Dr.Any=es();Dr.Cc=ts();Dr.Cf=Qa();Dr.P=bi();Dr.Z=rs()});var Be=ne(at=>{"use strict";function jh(r){return Object.prototype.toString.call(r)}function Hh(r){return jh(r)==="[object String]"}var Vh=Object.prototype.hasOwnProperty;function rl(r,e){return Vh.call(r,e)}function qh(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 Gh(r,e,t){return[].concat(r.slice(0,e),t,r.slice(e+1))}function nl(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 il(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 ol=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,Wh=/&([a-z#][a-z0-9]{1,31});/gi,Yh=new RegExp(ol.source+"|"+Wh.source,"gi"),Kh=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,tl=Qo();function Xh(r,e){var t=0;return rl(tl,e)?tl[e]:e.charCodeAt(0)===35&&Kh.test(e)&&(t=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10),nl(t))?il(t):r}function Zh(r){return r.indexOf("\\")<0?r:r.replace(ol,"$1")}function Qh(r){return r.indexOf("\\")<0&&r.indexOf("&")<0?r:r.replace(Yh,function(e,t,n){return t||Xh(e,n)})}var Jh=/[&<>"]/,ef=/[&<>"]/g,tf={"&":"&","<":"<",">":">",'"':"""};function rf(r){return tf[r]}function nf(r){return Jh.test(r)?r.replace(ef,rf):r}var of=/[.?*+^$[\]\\(){}|-]/g;function sf(r){return r.replace(of,"\\$&")}function af(r){switch(r){case 9:case 32:return!0}return!1}function lf(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 cf=bi();function uf(r){return cf.test(r)}function df(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 hf(r){return r=r.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(r=r.replace(/ẞ/g,"\xDF")),r.toLowerCase().toUpperCase()}at.lib={};at.lib.mdurl=Jo();at.lib.ucmicro=el();at.assign=qh;at.isString=Hh;at.has=rl;at.unescapeMd=Zh;at.unescapeAll=Qh;at.isValidEntityCode=nl;at.fromCodePoint=il;at.escapeHtml=nf;at.arrayReplaceAt=Gh;at.isSpace=af;at.isWhiteSpace=lf;at.isMdAsciiPunct=df;at.isPunctChar=uf;at.escapeRE=sf;at.normalizeReference=hf});var al=ne((Iy,sl)=>{"use strict";sl.exports=function(e,t,n){var i,s,o,a,l=-1,c=e.posMax,u=e.pos;for(e.pos=t+1,i=1;e.pos<c;){if(o=e.src.charCodeAt(e.pos),o===93&&(i--,i===0)){s=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)i++;else if(n)return e.pos=u,-1}}return s&&(l=e.pos),e.pos=u,l}});var ul=ne((Dy,cl)=>{"use strict";var ll=Be().unescapeAll;cl.exports=function(e,t,n){var i,s,o=0,a=t,l={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(t)===60){for(t++;t<n;){if(i=e.charCodeAt(t),i===10||i===60)return l;if(i===62)return l.pos=t+1,l.str=ll(e.slice(a+1,t)),l.ok=!0,l;if(i===92&&t+1<n){t+=2;continue}t++}return l}for(s=0;t<n&&(i=e.charCodeAt(t),!(i===32||i<32||i===127));){if(i===92&&t+1<n){if(e.charCodeAt(t+1)===32)break;t+=2;continue}if(i===40&&(s++,s>32))return l;if(i===41){if(s===0)break;s--}t++}return a===t||s!==0||(l.str=ll(e.slice(a,t)),l.lines=o,l.pos=t,l.ok=!0),l}});var hl=ne((Ly,dl)=>{"use strict";var ff=Be().unescapeAll;dl.exports=function(e,t,n){var i,s,o=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(i=e.charCodeAt(t),i===s)return l.pos=t+1,l.lines=o,l.str=ff(e.slice(a+1,t)),l.ok=!0,l;if(i===40&&s===41)return l;i===10?o++:i===92&&t+1<n&&(t++,e.charCodeAt(t)===10&&o++),t++}return l}});var fl=ne(Ci=>{"use strict";Ci.parseLinkLabel=al();Ci.parseLinkDestination=ul();Ci.parseLinkTitle=hl()});var ml=ne((Ry,pl)=>{"use strict";var pf=Be().assign,mf=Be().unescapeAll,fr=Be().escapeHtml,zt={};zt.code_inline=function(r,e,t,n,i){var s=r[e];return"<code"+i.renderAttrs(s)+">"+fr(r[e].content)+"</code>"};zt.code_block=function(r,e,t,n,i){var s=r[e];return"<pre"+i.renderAttrs(s)+"><code>"+fr(r[e].content)+`</code></pre>
|
|
`};zt.fence=function(r,e,t,n,i){var s=r[e],o=s.info?mf(s.info).trim():"",a="",l="",c,u,d,h,f;return o&&(d=o.split(/(\s+)/g),a=d[0],l=d.slice(2).join("")),t.highlight?c=t.highlight(s.content,a,l)||fr(s.content):c=fr(s.content),c.indexOf("<pre")===0?c+`
|
|
`:o?(u=s.attrIndex("class"),h=s.attrs?s.attrs.slice():[],u<0?h.push(["class",t.langPrefix+a]):(h[u]=h[u].slice(),h[u][1]+=" "+t.langPrefix+a),f={attrs:h},"<pre><code"+i.renderAttrs(f)+">"+c+`</code></pre>
|
|
`):"<pre><code"+i.renderAttrs(s)+">"+c+`</code></pre>
|
|
`};zt.image=function(r,e,t,n,i){var s=r[e];return s.attrs[s.attrIndex("alt")][1]=i.renderInlineAsText(s.children,t,n),i.renderToken(r,e,t)};zt.hardbreak=function(r,e,t){return t.xhtmlOut?`<br />
|
|
`:`<br>
|
|
`};zt.softbreak=function(r,e,t){return t.breaks?t.xhtmlOut?`<br />
|
|
`:`<br>
|
|
`:`
|
|
`};zt.text=function(r,e){return fr(r[e].content)};zt.html_block=function(r,e){return r[e].content};zt.html_inline=function(r,e){return r[e].content};function Lr(){this.rules=pf({},zt)}Lr.prototype.renderAttrs=function(e){var t,n,i;if(!e.attrs)return"";for(i="",t=0,n=e.attrs.length;t<n;t++)i+=" "+fr(e.attrs[t][0])+'="'+fr(e.attrs[t][1])+'"';return i};Lr.prototype.renderToken=function(e,t,n){var i,s="",o=!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&&(o=!0,a.nesting===1&&t+1<e.length&&(i=e[t+1],(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===a.tag)&&(o=!1))),s+=o?`>
|
|
`:">",s)};Lr.prototype.renderInline=function(r,e,t){for(var n,i="",s=this.rules,o=0,a=r.length;o<a;o++)n=r[o].type,typeof s[n]<"u"?i+=s[n](r,o,e,t,this):i+=this.renderToken(r,o,e);return i};Lr.prototype.renderInlineAsText=function(r,e,t){for(var n="",i=0,s=r.length;i<s;i++)r[i].type==="text"?n+=r[i].content:r[i].type==="image"?n+=this.renderInlineAsText(r[i].children,e,t):r[i].type==="softbreak"&&(n+=`
|
|
`);return n};Lr.prototype.render=function(r,e,t){var n,i,s,o="",a=this.rules;for(n=0,i=r.length;n<i;n++)s=r[n].type,s==="inline"?o+=this.renderInline(r[n].children,e,t):typeof a[s]<"u"?o+=a[r[n].type](r,n,e,t,this):o+=this.renderToken(r,n,e,t);return o};pl.exports=Lr});var Si=ne((Oy,gl)=>{"use strict";function Mt(){this.__rules__=[],this.__cache__=null}Mt.prototype.__find__=function(r){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===r)return e;return-1};Mt.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))})})};Mt.prototype.at=function(r,e,t){var n=this.__find__(r),i=t||{};if(n===-1)throw new Error("Parser rule not found: "+r);this.__rules__[n].fn=e,this.__rules__[n].alt=i.alt||[],this.__cache__=null};Mt.prototype.before=function(r,e,t,n){var i=this.__find__(r),s=n||{};if(i===-1)throw new Error("Parser rule not found: "+r);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:t,alt:s.alt||[]}),this.__cache__=null};Mt.prototype.after=function(r,e,t,n){var i=this.__find__(r),s=n||{};if(i===-1)throw new Error("Parser rule not found: "+r);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:t,alt:s.alt||[]}),this.__cache__=null};Mt.prototype.push=function(r,e,t){var n=t||{};this.__rules__.push({name:r,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null};Mt.prototype.enable=function(r,e){Array.isArray(r)||(r=[r]);var t=[];return r.forEach(function(n){var i=this.__find__(n);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!0,t.push(n)},this),this.__cache__=null,t};Mt.prototype.enableOnly=function(r,e){Array.isArray(r)||(r=[r]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(r,e)};Mt.prototype.disable=function(r,e){Array.isArray(r)||(r=[r]);var t=[];return r.forEach(function(n){var i=this.__find__(n);if(i<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[i].enabled=!1,t.push(n)},this),this.__cache__=null,t};Mt.prototype.getRules=function(r){return this.__cache__===null&&this.__compile__(),this.__cache__[r]||[]};gl.exports=Mt});var yl=ne((Py,vl)=>{"use strict";var gf=/\r\n?|\n/g,vf=/\0/g;vl.exports=function(e){var t;t=e.src.replace(gf,`
|
|
`),t=t.replace(vf,"\uFFFD"),e.src=t}});var xl=ne((My,bl)=>{"use strict";bl.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 El=ne(($y,wl)=>{"use strict";wl.exports=function(e){var t=e.tokens,n,i,s;for(i=0,s=t.length;i<s;i++)n=t[i],n.type==="inline"&&e.md.inline.parse(n.content,e.md,e.env,n.children)}});var Sl=ne((_y,Cl)=>{"use strict";var yf=Be().arrayReplaceAt;function bf(r){return/^<a[>\s]/i.test(r)}function xf(r){return/^<\/a\s*>/i.test(r)}Cl.exports=function(e){var t,n,i,s,o,a,l,c,u,d,h,f,p,v,y,b,x=e.tokens,T;if(e.md.options.linkify){for(n=0,i=x.length;n<i;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"&&(bf(a.content)&&p>0&&p--,xf(a.content)&&p++),!(p>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(u=a.content,T=e.md.linkify.match(u),l=[],f=a.level,h=0,T.length>0&&T[0].index===0&&t>0&&s[t-1].type==="text_special"&&(T=T.slice(1)),c=0;c<T.length;c++)v=T[c].url,y=e.md.normalizeLink(v),e.md.validateLink(y)&&(b=T[c].text,T[c].schema?T[c].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:\/\//,""),d=T[c].index,d>h&&(o=new e.Token("text","",0),o.content=u.slice(h,d),o.level=f,l.push(o)),o=new e.Token("link_open","a",1),o.attrs=[["href",y]],o.level=f++,o.markup="linkify",o.info="auto",l.push(o),o=new e.Token("text","",0),o.content=b,o.level=f,l.push(o),o=new e.Token("link_close","a",-1),o.level=--f,o.markup="linkify",o.info="auto",l.push(o),h=T[c].lastIndex);h<u.length&&(o=new e.Token("text","",0),o.content=u.slice(h),o.level=f,l.push(o)),x[n].children=s=yf(s,t,l)}}}}});var Tl=ne((By,kl)=>{"use strict";var Al=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,wf=/\((c|tm|r)\)/i,Ef=/\((c|tm|r)\)/ig,Cf={c:"\xA9",r:"\xAE",tm:"\u2122"};function Sf(r,e){return Cf[e.toLowerCase()]}function Af(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(Ef,Sf)),t.type==="link_open"&&t.info==="auto"&&n--,t.type==="link_close"&&t.info==="auto"&&n++}function kf(r){var e,t,n=0;for(e=r.length-1;e>=0;e--)t=r[e],t.type==="text"&&!n&&Al.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++}kl.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(wf.test(e.tokens[t].content)&&Af(e.tokens[t].children),Al.test(e.tokens[t].content)&&kf(e.tokens[t].children))}});var Pl=ne((Ny,Ol)=>{"use strict";var Il=Be().isWhiteSpace,Dl=Be().isPunctChar,Ll=Be().isMdAsciiPunct,Tf=/['"]/,Fl=/['"]/g,Rl="\u2019";function Ai(r,e,t){return r.slice(0,e)+t+r.slice(e+1)}function If(r,e){var t,n,i,s,o,a,l,c,u,d,h,f,p,v,y,b,x,T,E,M,S;for(E=[],t=0;t<r.length;t++){for(n=r[t],l=r[t].level,x=E.length-1;x>=0&&!(E[x].level<=l);x--);if(E.length=x+1,n.type!=="text")continue;i=n.content,o=0,a=i.length;e:for(;o<a&&(Fl.lastIndex=o,s=Fl.exec(i),!!s);){if(y=b=!0,o=s.index+1,T=s[0]==="'",u=32,s.index-1>=0)u=i.charCodeAt(s.index-1);else for(x=t-1;x>=0&&!(r[x].type==="softbreak"||r[x].type==="hardbreak");x--)if(r[x].content){u=r[x].content.charCodeAt(r[x].content.length-1);break}if(d=32,o<a)d=i.charCodeAt(o);else for(x=t+1;x<r.length&&!(r[x].type==="softbreak"||r[x].type==="hardbreak");x++)if(r[x].content){d=r[x].content.charCodeAt(0);break}if(h=Ll(u)||Dl(String.fromCharCode(u)),f=Ll(d)||Dl(String.fromCharCode(d)),p=Il(u),v=Il(d),v?y=!1:f&&(p||h||(y=!1)),p?b=!1:h&&(v||f||(b=!1)),d===34&&s[0]==='"'&&u>=48&&u<=57&&(b=y=!1),y&&b&&(y=h,b=f),!y&&!b){T&&(n.content=Ai(n.content,s.index,Rl));continue}if(b){for(x=E.length-1;x>=0&&(c=E[x],!(E[x].level<l));x--)if(c.single===T&&E[x].level===l){c=E[x],T?(M=e.md.options.quotes[2],S=e.md.options.quotes[3]):(M=e.md.options.quotes[0],S=e.md.options.quotes[1]),n.content=Ai(n.content,s.index,S),r[c.token].content=Ai(r[c.token].content,c.pos,M),o+=S.length-1,c.token===t&&(o+=M.length-1),i=n.content,a=i.length,E.length=x;continue e}}y?E.push({token:t,pos:s.index,single:T,level:l}):b&&T&&(n.content=Ai(n.content,s.index,Rl))}}}Ol.exports=function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Tf.test(e.tokens[t].content)||If(e.tokens[t].children,e)}});var $l=ne((Uy,Ml)=>{"use strict";Ml.exports=function(e){var t,n,i,s,o,a,l=e.tokens;for(t=0,n=l.length;t<n;t++)if(l[t].type==="inline"){for(i=l[t].children,o=i.length,s=0;s<o;s++)i[s].type==="text_special"&&(i[s].type="text");for(s=a=0;s<o;s++)i[s].type==="text"&&s+1<o&&i[s+1].type==="text"?i[s+1].content=i[s].content+i[s+1].content:(s!==a&&(i[a]=i[s]),a++);s!==a&&(i.length=a)}}});var ki=ne((zy,_l)=>{"use strict";function Fr(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}Fr.prototype.attrIndex=function(e){var t,n,i;if(!this.attrs)return-1;for(t=this.attrs,n=0,i=t.length;n<i;n++)if(t[n][0]===e)return n;return-1};Fr.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]};Fr.prototype.attrSet=function(e,t){var n=this.attrIndex(e),i=[e,t];n<0?this.attrPush(i):this.attrs[n]=i};Fr.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n};Fr.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};_l.exports=Fr});var Ul=ne((jy,Nl)=>{"use strict";var Df=ki();function Bl(r,e,t){this.src=r,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=e}Bl.prototype.Token=Df;Nl.exports=Bl});var jl=ne((Hy,zl)=>{"use strict";var Lf=Si(),ns=[["normalize",yl()],["block",xl()],["inline",El()],["linkify",Sl()],["replacements",Tl()],["smartquotes",Pl()],["text_join",$l()]];function is(){this.ruler=new Lf;for(var r=0;r<ns.length;r++)this.ruler.push(ns[r][0],ns[r][1])}is.prototype.process=function(r){var e,t,n;for(n=this.ruler.getRules(""),e=0,t=n.length;e<t;e++)n[e](r)};is.prototype.State=Ul();zl.exports=is});var ql=ne((Vy,Vl)=>{"use strict";var os=Be().isSpace;function ss(r,e){var t=r.bMarks[e]+r.tShift[e],n=r.eMarks[e];return r.src.slice(t,n)}function Hl(r){var e=[],t=0,n=r.length,i,s=!1,o=0,a="";for(i=r.charCodeAt(t);t<n;)i===124&&(s?(a+=r.substring(o,t-1),o=t):(e.push(a+r.substring(o,t)),a="",o=t+1)),s=i===92,t++,i=r.charCodeAt(t);return e.push(a+r.substring(o)),e}Vl.exports=function(e,t,n,i){var s,o,a,l,c,u,d,h,f,p,v,y,b,x,T,E,M,S;if(t+2>n||(u=t+1,e.sCount[u]<e.blkIndent)||e.sCount[u]-e.blkIndent>=4||(a=e.bMarks[u]+e.tShift[u],a>=e.eMarks[u])||(M=e.src.charCodeAt(a++),M!==124&&M!==45&&M!==58)||a>=e.eMarks[u]||(S=e.src.charCodeAt(a++),S!==124&&S!==45&&S!==58&&!os(S))||M===45&&os(S))return!1;for(;a<e.eMarks[u];){if(s=e.src.charCodeAt(a),s!==124&&s!==45&&s!==58&&!os(s))return!1;a++}for(o=ss(e,t+1),d=o.split("|"),p=[],l=0;l<d.length;l++){if(v=d[l].trim(),!v){if(l===0||l===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(v))return!1;v.charCodeAt(v.length-1)===58?p.push(v.charCodeAt(0)===58?"center":"right"):v.charCodeAt(0)===58?p.push("left"):p.push("")}if(o=ss(e,t).trim(),o.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4||(d=Hl(o),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),h=d.length,h===0||h!==p.length))return!1;if(i)return!0;for(x=e.parentType,e.parentType="table",E=e.md.block.ruler.getRules("blockquote"),f=e.push("table_open","table",1),f.map=y=[t,0],f=e.push("thead_open","thead",1),f.map=[t,t+1],f=e.push("tr_open","tr",1),f.map=[t,t+1],l=0;l<d.length;l++)f=e.push("th_open","th",1),p[l]&&(f.attrs=[["style","text-align:"+p[l]]]),f=e.push("inline","",0),f.content=d[l].trim(),f.children=[],f=e.push("th_close","th",-1);for(f=e.push("tr_close","tr",-1),f=e.push("thead_close","thead",-1),u=t+2;u<n&&!(e.sCount[u]<e.blkIndent);u++){for(T=!1,l=0,c=E.length;l<c;l++)if(E[l](e,u,n,!0)){T=!0;break}if(T||(o=ss(e,u).trim(),!o)||e.sCount[u]-e.blkIndent>=4)break;for(d=Hl(o),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),u===t+2&&(f=e.push("tbody_open","tbody",1),f.map=b=[t+2,0]),f=e.push("tr_open","tr",1),f.map=[u,u+1],l=0;l<h;l++)f=e.push("td_open","td",1),p[l]&&(f.attrs=[["style","text-align:"+p[l]]]),f=e.push("inline","",0),f.content=d[l]?d[l].trim():"",f.children=[],f=e.push("td_close","td",-1);f=e.push("tr_close","tr",-1)}return b&&(f=e.push("tbody_close","tbody",-1),b[1]=u),f=e.push("table_close","table",-1),y[1]=u,e.parentType=x,e.line=u,!0}});var Wl=ne((qy,Gl)=>{"use strict";Gl.exports=function(e,t,n){var i,s,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(s=i=t+1;i<n;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,s=i;continue}break}return e.line=s,o=e.push("code_block","code",0),o.content=e.getLines(t,s,4+e.blkIndent,!1)+`
|
|
`,o.map=[t,e.line],!0}});var Kl=ne((Gy,Yl)=>{"use strict";Yl.exports=function(e,t,n,i){var s,o,a,l,c,u,d,h=!1,f=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||f+3>p||(s=e.src.charCodeAt(f),s!==126&&s!==96)||(c=f,f=e.skipChars(f,s),o=f-c,o<3)||(d=e.src.slice(c,f),a=e.src.slice(f,p),s===96&&a.indexOf(String.fromCharCode(s))>=0))return!1;if(i)return!0;for(l=t;l++,!(l>=n||(f=c=e.bMarks[l]+e.tShift[l],p=e.eMarks[l],f<p&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(f)===s&&!(e.sCount[l]-e.blkIndent>=4)&&(f=e.skipChars(f,s),!(f-c<o)&&(f=e.skipSpaces(f),!(f<p)))){h=!0;break}return o=e.sCount[t],e.line=l+(h?1:0),u=e.push("fence","code",0),u.info=a,u.content=e.getLines(t+1,l,o,!0),u.markup=d,u.map=[t,e.line],!0}});var Ql=ne((Wy,Zl)=>{"use strict";var Xl=Be().isSpace;Zl.exports=function(e,t,n,i){var s,o,a,l,c,u,d,h,f,p,v,y,b,x,T,E,M,S,O,A,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(i)return!0;for(l=f=e.sCount[t]+1,e.src.charCodeAt(I)===32?(I++,l++,f++,s=!1,E=!0):e.src.charCodeAt(I)===9?(E=!0,(e.bsCount[t]+f)%4===3?(I++,l++,f++,s=!1):s=!0):E=!1,p=[e.bMarks[t]],e.bMarks[t]=I;I<P&&(o=e.src.charCodeAt(I),Xl(o));){o===9?f+=4-(f+e.bsCount[t]+(s?1:0))%4:f++;I++}for(v=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(E?1:0),u=I>=P,x=[e.sCount[t]],e.sCount[t]=f-l,T=[e.tShift[t]],e.tShift[t]=I-e.bMarks[t],S=e.md.block.ruler.getRules("blockquote"),b=e.parentType,e.parentType="blockquote",h=t+1;h<n&&(A=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&&!A){for(l=f=e.sCount[h]+1,e.src.charCodeAt(I)===32?(I++,l++,f++,s=!1,E=!0):e.src.charCodeAt(I)===9?(E=!0,(e.bsCount[h]+f)%4===3?(I++,l++,f++,s=!1):s=!0):E=!1,p.push(e.bMarks[h]),e.bMarks[h]=I;I<P&&(o=e.src.charCodeAt(I),Xl(o));){o===9?f+=4-(f+e.bsCount[h]+(s?1:0))%4:f++;I++}u=I>=P,v.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(E?1:0),x.push(e.sCount[h]),e.sCount[h]=f-l,T.push(e.tShift[h]),e.tShift[h]=I-e.bMarks[h];continue}if(u)break;for(M=!1,a=0,c=S.length;a<c;a++)if(S[a](e,h,n,!0)){M=!0;break}if(M){e.lineMax=h,e.blkIndent!==0&&(p.push(e.bMarks[h]),v.push(e.bsCount[h]),T.push(e.tShift[h]),x.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}p.push(e.bMarks[h]),v.push(e.bsCount[h]),T.push(e.tShift[h]),x.push(e.sCount[h]),e.sCount[h]=-1}for(y=e.blkIndent,e.blkIndent=0,O=e.push("blockquote_open","blockquote",1),O.markup=">",O.map=d=[t,0],e.md.block.tokenize(e,t,h),O=e.push("blockquote_close","blockquote",-1),O.markup=">",e.lineMax=D,e.parentType=b,d[1]=e.line,a=0;a<T.length;a++)e.bMarks[a+t]=p[a],e.tShift[a+t]=T[a],e.sCount[a+t]=x[a],e.bsCount[a+t]=v[a];return e.blkIndent=y,!0}});var ec=ne((Yy,Jl)=>{"use strict";var Ff=Be().isSpace;Jl.exports=function(e,t,n,i){var s,o,a,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(s=e.src.charCodeAt(c++),s!==42&&s!==45&&s!==95))return!1;for(o=1;c<u;){if(a=e.src.charCodeAt(c++),a!==s&&!Ff(a))return!1;a===s&&o++}return o<3?!1:(i||(e.line=t+1,l=e.push("hr","hr",0),l.map=[t,e.line],l.markup=Array(o+1).join(String.fromCharCode(s))),!0)}});var oc=ne((Ky,ic)=>{"use strict";var nc=Be().isSpace;function tc(r,e){var t,n,i,s;return n=r.bMarks[e]+r.tShift[e],i=r.eMarks[e],t=r.src.charCodeAt(n++),t!==42&&t!==45&&t!==43||n<i&&(s=r.src.charCodeAt(n),!nc(s))?-1:n}function rc(r,e){var t,n=r.bMarks[e]+r.tShift[e],i=n,s=r.eMarks[e];if(i+1>=s||(t=r.src.charCodeAt(i++),t<48||t>57))return-1;for(;;){if(i>=s)return-1;if(t=r.src.charCodeAt(i++),t>=48&&t<=57){if(i-n>=10)return-1;continue}if(t===41||t===46)break;return-1}return i<s&&(t=r.src.charCodeAt(i),!nc(t))?-1:i}function Rf(r,e){var t,n,i=r.level+2;for(t=e+2,n=r.tokens.length-2;t<n;t++)r.tokens[t].level===i&&r.tokens[t].type==="paragraph_open"&&(r.tokens[t+2].hidden=!0,r.tokens[t].hidden=!0,t+=2)}ic.exports=function(e,t,n,i){var s,o,a,l,c,u,d,h,f,p,v,y,b,x,T,E,M,S,O,A,D,I,P,_,B,H,Q,Y,re=!1,ie=!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(i&&e.parentType==="paragraph"&&e.sCount[t]>=e.blkIndent&&(re=!0),(P=rc(e,t))>=0){if(d=!0,B=e.bMarks[t]+e.tShift[t],b=Number(e.src.slice(B,P-1)),re&&b!==1)return!1}else if((P=tc(e,t))>=0)d=!1;else return!1;if(re&&e.skipSpaces(P)>=e.eMarks[t])return!1;if(y=e.src.charCodeAt(P-1),i)return!0;for(v=e.tokens.length,d?(Y=e.push("ordered_list_open","ol",1),b!==1&&(Y.attrs=[["start",b]])):Y=e.push("bullet_list_open","ul",1),Y.map=p=[t,0],Y.markup=String.fromCharCode(y),T=t,_=!1,Q=e.md.block.ruler.getRules("list"),S=e.parentType,e.parentType="list";T<n;){for(I=P,x=e.eMarks[T],u=E=e.sCount[T]+P-(e.bMarks[t]+e.tShift[t]);I<x;){if(s=e.src.charCodeAt(I),s===9)E+=4-(E+e.bsCount[T])%4;else if(s===32)E++;else break;I++}if(o=I,o>=x?c=1:c=E-u,c>4&&(c=1),l=u+c,Y=e.push("list_item_open","li",1),Y.markup=String.fromCharCode(y),Y.map=h=[t,0],d&&(Y.info=e.src.slice(B,P-1)),D=e.tight,A=e.tShift[t],O=e.sCount[t],M=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=E,o>=x&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),(!e.tight||_)&&(ie=!1),_=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=M,e.tShift[t]=A,e.sCount[t]=O,e.tight=D,Y=e.push("list_item_close","li",-1),Y.markup=String.fromCharCode(y),T=t=e.line,h[1]=T,o=e.bMarks[t],T>=n||e.sCount[T]<e.blkIndent||e.sCount[t]-e.blkIndent>=4)break;for(H=!1,a=0,f=Q.length;a<f;a++)if(Q[a](e,T,n,!0)){H=!0;break}if(H)break;if(d){if(P=rc(e,T),P<0)break;B=e.bMarks[T]+e.tShift[T]}else if(P=tc(e,T),P<0)break;if(y!==e.src.charCodeAt(P-1))break}return d?Y=e.push("ordered_list_close","ol",-1):Y=e.push("bullet_list_close","ul",-1),Y.markup=String.fromCharCode(y),p[1]=T,e.line=T,e.parentType=S,ie&&Rf(e,v),!0}});var ac=ne((Xy,sc)=>{"use strict";var Of=Be().normalizeReference,Ti=Be().isSpace;sc.exports=function(e,t,n,i){var s,o,a,l,c,u,d,h,f,p,v,y,b,x,T,E,M=0,S=e.bMarks[t]+e.tShift[t],O=e.eMarks[t],A=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(S)!==91)return!1;for(;++S<O;)if(e.src.charCodeAt(S)===93&&e.src.charCodeAt(S-1)!==92){if(S+1===O||e.src.charCodeAt(S+1)!==58)return!1;break}for(l=e.lineMax,T=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,u=0,d=T.length;u<d;u++)if(T[u](e,A,l,!0)){x=!0;break}if(x)break}for(b=e.getLines(t,A,e.blkIndent,!1).trim(),O=b.length,S=1;S<O;S++){if(s=b.charCodeAt(S),s===91)return!1;if(s===93){f=S;break}else s===10?M++:s===92&&(S++,S<O&&b.charCodeAt(S)===10&&M++)}if(f<0||b.charCodeAt(f+1)!==58)return!1;for(S=f+2;S<O;S++)if(s=b.charCodeAt(S),s===10)M++;else if(!Ti(s))break;if(v=e.md.helpers.parseLinkDestination(b,S,O),!v.ok||(c=e.md.normalizeLink(v.str),!e.md.validateLink(c)))return!1;for(S=v.pos,M+=v.lines,o=S,a=M,y=S;S<O;S++)if(s=b.charCodeAt(S),s===10)M++;else if(!Ti(s))break;for(v=e.md.helpers.parseLinkTitle(b,S,O),S<O&&y!==S&&v.ok?(E=v.str,S=v.pos,M+=v.lines):(E="",S=o,M=a);S<O&&(s=b.charCodeAt(S),!!Ti(s));)S++;if(S<O&&b.charCodeAt(S)!==10&&E)for(E="",S=o,M=a;S<O&&(s=b.charCodeAt(S),!!Ti(s));)S++;return S<O&&b.charCodeAt(S)!==10||(h=Of(b.slice(1,f)),!h)?!1:(i||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[h]>"u"&&(e.env.references[h]={title:E,href:c}),e.parentType=p,e.line=t+M+1),!0)}});var cc=ne((Zy,lc)=>{"use strict";lc.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 ls=ne((Qy,as)=>{"use strict";var Pf="[a-zA-Z_:][a-zA-Z0-9:._-]*",Mf="[^\"'=<>`\\x00-\\x20]+",$f="'[^']*'",_f='"[^"]*"',Bf="(?:"+Mf+"|"+$f+"|"+_f+")",Nf="(?:\\s+"+Pf+"(?:\\s*=\\s*"+Bf+")?)",uc="<[A-Za-z][A-Za-z0-9\\-]*"+Nf+"*\\s*\\/?>",dc="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Uf="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",zf="<[?][\\s\\S]*?[?]>",jf="<![A-Z]+\\s+[^>]*>",Hf="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Vf=new RegExp("^(?:"+uc+"|"+dc+"|"+Uf+"|"+zf+"|"+jf+"|"+Hf+")"),qf=new RegExp("^(?:"+uc+"|"+dc+")");as.exports.HTML_TAG_RE=Vf;as.exports.HTML_OPEN_CLOSE_TAG_RE=qf});var fc=ne((Jy,hc)=>{"use strict";var Gf=cc(),Wf=ls().HTML_OPEN_CLOSE_TAG_RE,Rr=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Gf.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Wf.source+"\\s*$"),/^$/,!1]];hc.exports=function(e,t,n,i){var s,o,a,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(c)!==60)return!1;for(l=e.src.slice(c,u),s=0;s<Rr.length&&!Rr[s][0].test(l);s++);if(s===Rr.length)return!1;if(i)return Rr[s][2];if(o=t+1,!Rr[s][1].test(l)){for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(c=e.bMarks[o]+e.tShift[o],u=e.eMarks[o],l=e.src.slice(c,u),Rr[s][1].test(l)){l.length!==0&&o++;break}}return e.line=o,a=e.push("html_block","",0),a.map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0}});var gc=ne((e0,mc)=>{"use strict";var pc=Be().isSpace;mc.exports=function(e,t,n,i){var s,o,a,l,c=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||(s=e.src.charCodeAt(c),s!==35||c>=u))return!1;for(o=1,s=e.src.charCodeAt(++c);s===35&&c<u&&o<=6;)o++,s=e.src.charCodeAt(++c);return o>6||c<u&&!pc(s)?!1:(i||(u=e.skipSpacesBack(u,c),a=e.skipCharsBack(u,35,c),a>c&&pc(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,l=e.push("heading_open","h"+String(o),1),l.markup="########".slice(0,o),l.map=[t,e.line],l=e.push("inline","",0),l.content=e.src.slice(c,u).trim(),l.map=[t,e.line],l.children=[],l=e.push("heading_close","h"+String(o),-1),l.markup="########".slice(0,o)),!0)}});var yc=ne((t0,vc)=>{"use strict";vc.exports=function(e,t,n){var i,s,o,a,l,c,u,d,h,f=t+1,p,v=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";f<n&&!e.isEmpty(f);f++)if(!(e.sCount[f]-e.blkIndent>3)){if(e.sCount[f]>=e.blkIndent&&(c=e.bMarks[f]+e.tShift[f],u=e.eMarks[f],c<u&&(h=e.src.charCodeAt(c),(h===45||h===61)&&(c=e.skipChars(c,h),c=e.skipSpaces(c),c>=u)))){d=h===61?1:2;break}if(!(e.sCount[f]<0)){for(s=!1,o=0,a=v.length;o<a;o++)if(v[o](e,f,n,!0)){s=!0;break}if(s)break}}return d?(i=e.getLines(t,f,e.blkIndent,!1).trim(),e.line=f+1,l=e.push("heading_open","h"+String(d),1),l.markup=String.fromCharCode(h),l.map=[t,e.line],l=e.push("inline","",0),l.content=i,l.map=[t,e.line-1],l.children=[],l=e.push("heading_close","h"+String(d),-1),l.markup=String.fromCharCode(h),e.parentType=p,!0):!1}});var xc=ne((r0,bc)=>{"use strict";bc.exports=function(e,t){var n,i,s,o,a,l,c=t+1,u=e.md.block.ruler.getRules("paragraph"),d=e.lineMax;for(l=e.parentType,e.parentType="paragraph";c<d&&!e.isEmpty(c);c++)if(!(e.sCount[c]-e.blkIndent>3)&&!(e.sCount[c]<0)){for(i=!1,s=0,o=u.length;s<o;s++)if(u[s](e,c,d,!0)){i=!0;break}if(i)break}return n=e.getLines(t,c,e.blkIndent,!1).trim(),e.line=c,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 Cc=ne((n0,Ec)=>{"use strict";var wc=ki(),Ii=Be().isSpace;function jt(r,e,t,n){var i,s,o,a,l,c,u,d;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,d=!1,o=a=c=u=0,l=s.length;a<l;a++){if(i=s.charCodeAt(a),!d)if(Ii(i)){c++,i===9?u+=4-u%4:u++;continue}else d=!0;(i===10||a===l-1)&&(i!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(c),this.sCount.push(u),this.bsCount.push(0),d=!1,c=0,u=0,o=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}jt.prototype.push=function(r,e,t){var n=new wc(r,e,t);return n.block=!0,t<0&&this.level--,n.level=this.level,t>0&&this.level++,this.tokens.push(n),n};jt.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};jt.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};jt.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),!!Ii(t));e++);return e};jt.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Ii(this.src.charCodeAt(--e)))return e+1;return e};jt.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e};jt.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};jt.prototype.getLines=function(e,t,n,i){var s,o,a,l,c,u,d,h=e;if(e>=t)return"";for(u=new Array(t-e),s=0;h<t;h++,s++){for(o=0,d=l=this.bMarks[h],h+1<t||i?c=this.eMarks[h]+1:c=this.eMarks[h];l<c&&o<n;){if(a=this.src.charCodeAt(l),Ii(a))a===9?o+=4-(o+this.bsCount[h])%4:o++;else if(l-d<this.tShift[h])o++;else break;l++}o>n?u[s]=new Array(o-n+1).join(" ")+this.src.slice(l,c):u[s]=this.src.slice(l,c)}return u.join("")};jt.prototype.Token=wc;Ec.exports=jt});var Ac=ne((i0,Sc)=>{"use strict";var Yf=Si(),Di=[["table",ql(),["paragraph","reference"]],["code",Wl()],["fence",Kl(),["paragraph","reference","blockquote","list"]],["blockquote",Ql(),["paragraph","reference","blockquote","list"]],["hr",ec(),["paragraph","reference","blockquote","list"]],["list",oc(),["paragraph","reference","blockquote"]],["reference",ac()],["html_block",fc(),["paragraph","reference","blockquote"]],["heading",gc(),["paragraph","reference","blockquote"]],["lheading",yc()],["paragraph",xc()]];function Li(){this.ruler=new Yf;for(var r=0;r<Di.length;r++)this.ruler.push(Di[r][0],Di[r][1],{alt:(Di[r][2]||[]).slice()})}Li.prototype.tokenize=function(r,e,t){for(var n,i,s=this.ruler.getRules(""),o=s.length,a=e,l=!1,c=r.md.options.maxNesting;a<t&&(r.line=a=r.skipEmptyLines(a),!(a>=t||r.sCount[a]<r.blkIndent));){if(r.level>=c){r.line=t;break}for(i=0;i<o&&(n=s[i](r,a,t,!1),!n);i++);r.tight=!l,r.isEmpty(r.line-1)&&(l=!0),a=r.line,a<t&&r.isEmpty(a)&&(l=!0,a++,r.line=a)}};Li.prototype.parse=function(r,e,t,n){var i;r&&(i=new this.State(r,e,t,n),this.tokenize(i,i.line,i.lineMax))};Li.prototype.State=Cc();Sc.exports=Li});var Tc=ne((o0,kc)=>{"use strict";function Kf(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}}kc.exports=function(e,t){for(var n=e.pos;n<e.posMax&&!Kf(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}});var Dc=ne((s0,Ic)=>{"use strict";var Xf=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;Ic.exports=function(e,t){var n,i,s,o,a,l,c,u;return!e.md.options.linkify||e.linkLevel>0||(n=e.pos,i=e.posMax,n+3>i)||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47||(s=e.pending.match(Xf),!s)||(o=s[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length)),!a)||(l=a.url,l=l.replace(/\*+$/,""),c=e.md.normalizeLink(l),!e.md.validateLink(c))?!1:(t||(e.pending=e.pending.slice(0,-o.length),u=e.push("link_open","a",1),u.attrs=[["href",c]],u.markup="linkify",u.info="auto",u=e.push("text","",0),u.content=e.md.normalizeLinkText(l),u=e.push("link_close","a",-1),u.markup="linkify",u.info="auto"),e.pos+=l.length-o.length,!0)}});var Fc=ne((a0,Lc)=>{"use strict";var Zf=Be().isSpace;Lc.exports=function(e,t){var n,i,s,o=e.pos;if(e.src.charCodeAt(o)!==10)return!1;if(n=e.pending.length-1,i=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(o++;o<i&&Zf(e.src.charCodeAt(o));)o++;return e.pos=o,!0}});var Oc=ne((l0,Rc)=>{"use strict";var Qf=Be().isSpace,us=[];for(cs=0;cs<256;cs++)us.push(0);var cs;"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){us[r.charCodeAt(0)]=1});Rc.exports=function(e,t){var n,i,s,o,a,l=e.pos,c=e.posMax;if(e.src.charCodeAt(l)!==92||(l++,l>=c))return!1;if(n=e.src.charCodeAt(l),n===10){for(t||e.push("hardbreak","br",0),l++;l<c&&(n=e.src.charCodeAt(l),!!Qf(n));)l++;return e.pos=l,!0}return o=e.src[l],n>=55296&&n<=56319&&l+1<c&&(i=e.src.charCodeAt(l+1),i>=56320&&i<=57343&&(o+=e.src[l+1],l++)),s="\\"+o,t||(a=e.push("text_special","",0),n<256&&us[n]!==0?a.content=o:a.content=s,a.markup=s,a.info="escape"),e.pos=l+1,!0}});var Mc=ne((c0,Pc)=>{"use strict";Pc.exports=function(e,t){var n,i,s,o,a,l,c,u,d=e.pos,h=e.src.charCodeAt(d);if(h!==96)return!1;for(n=d,d++,i=e.posMax;d<i&&e.src.charCodeAt(d)===96;)d++;if(s=e.src.slice(n,d),c=s.length,e.backticksScanned&&(e.backticks[c]||0)<=n)return t||(e.pending+=s),e.pos+=c,!0;for(a=l=d;(a=e.src.indexOf("`",l))!==-1;){for(l=a+1;l<i&&e.src.charCodeAt(l)===96;)l++;if(u=l-a,u===c)return t||(o=e.push("code_inline","code",0),o.markup=s,o.content=e.src.slice(d,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=l,!0;e.backticks[u]=a}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=c,!0}});var hs=ne((u0,ds)=>{"use strict";ds.exports.tokenize=function(e,t){var n,i,s,o,a,l=e.pos,c=e.src.charCodeAt(l);if(t||c!==126||(i=e.scanDelims(e.pos,!0),o=i.length,a=String.fromCharCode(c),o<2))return!1;for(o%2&&(s=e.push("text","",0),s.content=a,o--),n=0;n<o;n+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:c,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function $c(r,e){var t,n,i,s,o,a=[],l=e.length;for(t=0;t<l;t++)i=e[t],i.marker===126&&i.end!==-1&&(s=e[i.end],o=r.tokens[i.token],o.type="s_open",o.tag="s",o.nesting=1,o.markup="~~",o.content="",o=r.tokens[s.token],o.type="s_close",o.tag="s",o.nesting=-1,o.markup="~~",o.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&&(o=r.tokens[n],r.tokens[n]=r.tokens[t],r.tokens[t]=o)}}ds.exports.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for($c(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&$c(e,n[t].delimiters)}});var ps=ne((d0,fs)=>{"use strict";fs.exports.tokenize=function(e,t){var n,i,s,o=e.pos,a=e.src.charCodeAt(o);if(t||a!==95&&a!==42)return!1;for(i=e.scanDelims(e.pos,a===42),n=0;n<i.length;n++)s=e.push("text","",0),s.content=String.fromCharCode(a),e.delimiters.push({marker:a,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0};function _c(r,e){var t,n,i,s,o,a,l=e.length;for(t=l-1;t>=0;t--)n=e[t],!(n.marker!==95&&n.marker!==42)&&n.end!==-1&&(i=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===i.token+1,o=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?o+o:o,s.content="",s=r.tokens[i.token],s.type=a?"strong_close":"em_close",s.tag=a?"strong":"em",s.nesting=-1,s.markup=a?o+o:o,s.content="",a&&(r.tokens[e[t-1].token].content="",r.tokens[e[n.end+1].token].content="",t--))}fs.exports.postProcess=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for(_c(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&_c(e,n[t].delimiters)}});var Nc=ne((h0,Bc)=>{"use strict";var Jf=Be().normalizeReference,ms=Be().isSpace;Bc.exports=function(e,t){var n,i,s,o,a,l,c,u,d,h="",f="",p=e.pos,v=e.posMax,y=e.pos,b=!0;if(e.src.charCodeAt(e.pos)!==91||(a=e.pos+1,o=e.md.helpers.parseLinkLabel(e,e.pos,!0),o<0))return!1;if(l=o+1,l<v&&e.src.charCodeAt(l)===40){for(b=!1,l++;l<v&&(i=e.src.charCodeAt(l),!(!ms(i)&&i!==10));l++);if(l>=v)return!1;if(y=l,c=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),c.ok){for(h=e.md.normalizeLink(c.str),e.md.validateLink(h)?l=c.pos:h="",y=l;l<v&&(i=e.src.charCodeAt(l),!(!ms(i)&&i!==10));l++);if(c=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<v&&y!==l&&c.ok)for(f=c.str,l=c.pos;l<v&&(i=e.src.charCodeAt(l),!(!ms(i)&&i!==10));l++);}(l>=v||e.src.charCodeAt(l)!==41)&&(b=!0),l++}if(b){if(typeof e.env.references>"u")return!1;if(l<v&&e.src.charCodeAt(l)===91?(y=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?s=e.src.slice(y,l++):l=o+1):l=o+1,s||(s=e.src.slice(a,o)),u=e.env.references[Jf(s)],!u)return e.pos=p,!1;h=u.href,f=u.title}return t||(e.pos=a,e.posMax=o,d=e.push("link_open","a",1),d.attrs=n=[["href",h]],f&&n.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,d=e.push("link_close","a",-1)),e.pos=l,e.posMax=v,!0}});var zc=ne((f0,Uc)=>{"use strict";var ep=Be().normalizeReference,gs=Be().isSpace;Uc.exports=function(e,t){var n,i,s,o,a,l,c,u,d,h,f,p,v,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(c=a+1,c<x&&e.src.charCodeAt(c)===40){for(c++;c<x&&(i=e.src.charCodeAt(c),!(!gs(i)&&i!==10));c++);if(c>=x)return!1;for(v=c,d=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),d.ok&&(y=e.md.normalizeLink(d.str),e.md.validateLink(y)?c=d.pos:y=""),v=c;c<x&&(i=e.src.charCodeAt(c),!(!gs(i)&&i!==10));c++);if(d=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<x&&v!==c&&d.ok)for(h=d.str,c=d.pos;c<x&&(i=e.src.charCodeAt(c),!(!gs(i)&&i!==10));c++);else h="";if(c>=x||e.src.charCodeAt(c)!==41)return e.pos=b,!1;c++}else{if(typeof e.env.references>"u")return!1;if(c<x&&e.src.charCodeAt(c)===91?(v=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?o=e.src.slice(v,c++):c=a+1):c=a+1,o||(o=e.src.slice(l,a)),u=e.env.references[ep(o)],!u)return e.pos=b,!1;y=u.href,h=u.title}return t||(s=e.src.slice(l,a),e.md.inline.parse(s,e.md,e.env,p=[]),f=e.push("image","img",0),f.attrs=n=[["src",y],["alt",""]],f.children=p,f.content=s,h&&n.push(["title",h])),e.pos=c,e.posMax=x,!0}});var Hc=ne((p0,jc)=>{"use strict";var tp=/^([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])?)*)$/,rp=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;jc.exports=function(e,t){var n,i,s,o,a,l,c=e.pos;if(e.src.charCodeAt(c)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++c>=l||(o=e.src.charCodeAt(c),o===60))return!1;if(o===62)break}return n=e.src.slice(a+1,c),rp.test(n)?(i=e.md.normalizeLink(n),e.md.validateLink(i)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",i]],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):tp.test(n)?(i=e.md.normalizeLink("mailto:"+n),e.md.validateLink(i)?(t||(s=e.push("link_open","a",1),s.attrs=[["href",i]],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 qc=ne((m0,Vc)=>{"use strict";var np=ls().HTML_TAG_RE;function ip(r){return/^<a[>\s]/i.test(r)}function op(r){return/^<\/a\s*>/i.test(r)}function sp(r){var e=r|32;return e>=97&&e<=122}Vc.exports=function(e,t){var n,i,s,o,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&&!sp(n))||(i=e.src.slice(a).match(np),!i)?!1:(t||(o=e.push("html_inline","",0),o.content=e.src.slice(a,a+i[0].length),ip(o.content)&&e.linkLevel++,op(o.content)&&e.linkLevel--),e.pos+=i[0].length,!0)}});var Kc=ne((g0,Yc)=>{"use strict";var Gc=Qo(),ap=Be().has,lp=Be().isValidEntityCode,Wc=Be().fromCodePoint,cp=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,up=/^&([a-z][a-z0-9]{1,31});/i;Yc.exports=function(e,t){var n,i,s,o,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(cp),s)return t||(i=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),o=e.push("text_special","",0),o.content=lp(i)?Wc(i):Wc(65533),o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(a).match(up),s&&ap(Gc,s[1]))return t||(o=e.push("text_special","",0),o.content=Gc[s[1]],o.markup=s[0],o.info="entity"),e.pos+=s[0].length,!0;return!1}});var Qc=ne((v0,Zc)=>{"use strict";function Xc(r,e){var t,n,i,s,o,a,l,c,u={},d=e.length;if(d){var h=0,f=-2,p=[];for(t=0;t<d;t++)if(i=e[t],p.push(0),(e[h].marker!==i.marker||f!==i.token-1)&&(h=t),f=i.token,i.length=i.length||0,!!i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),o=u[i.marker][(i.open?3:0)+i.length%3],n=h-p[h]-1,a=n;n>o;n-=p[n]+1)if(s=e[n],s.marker===i.marker&&s.open&&s.end<0&&(l=!1,(s.close||i.open)&&(s.length+i.length)%3===0&&(s.length%3!==0||i.length%3!==0)&&(l=!0),!l)){c=n>0&&!e[n-1].open?p[n-1]+1:0,p[t]=t-n+c,p[n]=c,i.open=!1,s.end=t,s.close=!1,a=-1,f=-2;break}a!==-1&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=a)}}}Zc.exports=function(e){var t,n=e.tokens_meta,i=e.tokens_meta.length;for(Xc(e,e.delimiters),t=0;t<i;t++)n[t]&&n[t].delimiters&&Xc(e,n[t].delimiters)}});var eu=ne((y0,Jc)=>{"use strict";Jc.exports=function(e){var t,n,i=0,s=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)s[t].nesting<0&&i--,s[t].level=i,s[t].nesting>0&&i++,s[t].type==="text"&&t+1<o&&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 ou=ne((b0,iu)=>{"use strict";var vs=ki(),tu=Be().isWhiteSpace,ru=Be().isPunctChar,nu=Be().isMdAsciiPunct;function cn(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}cn.prototype.pushPending=function(){var r=new vs("text","",0);return r.content=this.pending,r.level=this.pendingLevel,this.tokens.push(r),this.pending="",r};cn.prototype.push=function(r,e,t){this.pending&&this.pushPending();var n=new vs(r,e,t),i=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=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n};cn.prototype.scanDelims=function(r,e){var t=r,n,i,s,o,a,l,c,u,d,h=!0,f=!0,p=this.posMax,v=this.src.charCodeAt(r);for(n=r>0?this.src.charCodeAt(r-1):32;t<p&&this.src.charCodeAt(t)===v;)t++;return s=t-r,i=t<p?this.src.charCodeAt(t):32,c=nu(n)||ru(String.fromCharCode(n)),d=nu(i)||ru(String.fromCharCode(i)),l=tu(n),u=tu(i),u?h=!1:d&&(l||c||(h=!1)),l?f=!1:c&&(u||d||(f=!1)),e?(o=h,a=f):(o=h&&(!f||c),a=f&&(!h||d)),{can_open:o,can_close:a,length:s}};cn.prototype.Token=vs;iu.exports=cn});var lu=ne((x0,au)=>{"use strict";var su=Si(),ys=[["text",Tc()],["linkify",Dc()],["newline",Fc()],["escape",Oc()],["backticks",Mc()],["strikethrough",hs().tokenize],["emphasis",ps().tokenize],["link",Nc()],["image",zc()],["autolink",Hc()],["html_inline",qc()],["entity",Kc()]],bs=[["balance_pairs",Qc()],["strikethrough",hs().postProcess],["emphasis",ps().postProcess],["fragments_join",eu()]];function un(){var r;for(this.ruler=new su,r=0;r<ys.length;r++)this.ruler.push(ys[r][0],ys[r][1]);for(this.ruler2=new su,r=0;r<bs.length;r++)this.ruler2.push(bs[r][0],bs[r][1])}un.prototype.skipToken=function(r){var e,t,n=r.pos,i=this.ruler.getRules(""),s=i.length,o=r.md.options.maxNesting,a=r.cache;if(typeof a[n]<"u"){r.pos=a[n];return}if(r.level<o)for(t=0;t<s&&(r.level++,e=i[t](r,!0),r.level--,!e);t++);else r.pos=r.posMax;e||r.pos++,a[n]=r.pos};un.prototype.tokenize=function(r){for(var e,t,n=this.ruler.getRules(""),i=n.length,s=r.posMax,o=r.md.options.maxNesting;r.pos<s;){if(r.level<o)for(t=0;t<i&&(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()};un.prototype.parse=function(r,e,t,n){var i,s,o,a=new this.State(r,e,t,n);for(this.tokenize(a),s=this.ruler2.getRules(""),o=s.length,i=0;i<o;i++)s[i](a)};un.prototype.State=ou();au.exports=un});var uu=ne((w0,cu)=>{"use strict";cu.exports=function(r){var e={};r=r||{},e.src_Any=es().source,e.src_Cc=ts().source,e.src_Z=rs().source,e.src_P=bi().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 mu=ne((E0,pu)=>{"use strict";function xs(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 Ri(r){return Object.prototype.toString.call(r)}function dp(r){return Ri(r)==="[object String]"}function hp(r){return Ri(r)==="[object Object]"}function fp(r){return Ri(r)==="[object RegExp]"}function du(r){return Ri(r)==="[object Function]"}function pp(r){return r.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var fu={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function mp(r){return Object.keys(r||{}).reduce(function(e,t){return e||fu.hasOwnProperty(t)},!1)}var gp={"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}}},vp="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]",yp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function bp(r){r.__index__=-1,r.__text_cache__=""}function xp(r){return function(e,t){var n=e.slice(t);return r.test(n)?n.match(r)[0].length:0}}function hu(){return function(r,e){e.normalize(r)}}function Fi(r){var e=r.re=uu()(r.__opts__),t=r.__tlds__.slice();r.onCompile(),r.__tlds_replaced__||t.push(vp),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 i=[];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 c={validate:null,link:null};if(r.__compiled__[a]=c,hp(l)){fp(l.validate)?c.validate=xp(l.validate):du(l.validate)?c.validate=l.validate:s(a,l),du(l.normalize)?c.normalize=l.normalize:l.normalize?s(a,l):c.normalize=hu();return}if(dp(l)){i.push(a);return}s(a,l)}}),i.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:hu()};var o=Object.keys(r.__compiled__).filter(function(a){return a.length>0&&r.__compiled__[a]}).map(pp).join("|");r.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+o+")","i"),r.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+o+")","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"),bp(r)}function wp(r,e){var t=r.__index__,n=r.__last_index__,i=r.__text_cache__.slice(t,n);this.schema=r.__schema__.toLowerCase(),this.index=t+e,this.lastIndex=n+e,this.raw=i,this.text=i,this.url=i}function ws(r,e){var t=new wp(r,e);return r.__compiled__[t.schema].normalize(t,r),t}function At(r,e){if(!(this instanceof At))return new At(r,e);e||mp(r)&&(e=r,r={}),this.__opts__=xs({},fu,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=xs({},gp,r),this.__compiled__={},this.__tlds__=yp,this.__tlds_replaced__=!1,this.re={},Fi(this)}At.prototype.add=function(e,t){return this.__schemas__[e]=t,Fi(this),this};At.prototype.set=function(e){return this.__opts__=xs(this.__opts__,e),this};At.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,i,s,o,a,l,c,u;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:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=e.indexOf("@"),u>=0&&(i=e.match(this.re.email_fuzzy))!==null&&(o=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0};At.prototype.pretest=function(e){return this.re.pretest.test(e)};At.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0};At.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(ws(this,t)),t=this.__last_index__);for(var i=t?e.slice(t):e;this.test(i);)n.push(ws(this,t)),i=i.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null};At.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,ws(this,0)):null};At.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,i,s){return n!==s[i-1]}).reverse(),Fi(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Fi(this),this)};At.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};At.prototype.onCompile=function(){};pu.exports=At});var Cu={};bo(Cu,{decode:()=>As,default:()=>Dp,encode:()=>ks,toASCII:()=>Eu,toUnicode:()=>wu,ucs2decode:()=>Ss,ucs2encode:()=>bu});function or(r){throw new RangeError(Ap[r])}function kp(r,e){let t=[],n=r.length;for(;n--;)t[n]=e(r[n]);return t}function yu(r,e){let t=r.split("@"),n="";t.length>1&&(n=t[0]+"@",r=t[1]),r=r.replace(Sp,".");let i=r.split("."),s=kp(i,e).join(".");return n+s}function Ss(r){let e=[],t=0,n=r.length;for(;t<n;){let i=r.charCodeAt(t++);if(i>=55296&&i<=56319&&t<n){let s=r.charCodeAt(t++);(s&64512)==56320?e.push(((i&1023)<<10)+(s&1023)+65536):(e.push(i),t--)}else e.push(i)}return e}var vu,Ep,Cp,Sp,Ap,Es,Ht,Cs,bu,Tp,gu,xu,As,ks,wu,Eu,Ip,Dp,Su=Od(()=>{"use strict";vu="-",Ep=/^xn--/,Cp=/[^\0-\x7F]/,Sp=/[\x2E\u3002\uFF0E\uFF61]/g,Ap={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Es=36-1,Ht=Math.floor,Cs=String.fromCharCode;bu=r=>String.fromCodePoint(...r),Tp=function(r){return r>=48&&r<58?26+(r-48):r>=65&&r<91?r-65:r>=97&&r<123?r-97:36},gu=function(r,e){return r+22+75*(r<26)-((e!=0)<<5)},xu=function(r,e,t){let n=0;for(r=t?Ht(r/700):r>>1,r+=Ht(r/e);r>Es*26>>1;n+=36)r=Ht(r/Es);return Ht(n+(Es+1)*r/(r+38))},As=function(r){let e=[],t=r.length,n=0,i=128,s=72,o=r.lastIndexOf(vu);o<0&&(o=0);for(let a=0;a<o;++a)r.charCodeAt(a)>=128&&or("not-basic"),e.push(r.charCodeAt(a));for(let a=o>0?o+1:0;a<t;){let l=n;for(let u=1,d=36;;d+=36){a>=t&&or("invalid-input");let h=Tp(r.charCodeAt(a++));h>=36&&or("invalid-input"),h>Ht((2147483647-n)/u)&&or("overflow"),n+=h*u;let f=d<=s?1:d>=s+26?26:d-s;if(h<f)break;let p=36-f;u>Ht(2147483647/p)&&or("overflow"),u*=p}let c=e.length+1;s=xu(n-l,c,l==0),Ht(n/c)>2147483647-i&&or("overflow"),i+=Ht(n/c),n%=c,e.splice(n++,0,i)}return String.fromCodePoint(...e)},ks=function(r){let e=[];r=Ss(r);let t=r.length,n=128,i=0,s=72;for(let l of r)l<128&&e.push(Cs(l));let o=e.length,a=o;for(o&&e.push(vu);a<t;){let l=2147483647;for(let u of r)u>=n&&u<l&&(l=u);let c=a+1;l-n>Ht((2147483647-i)/c)&&or("overflow"),i+=(l-n)*c,n=l;for(let u of r)if(u<n&&++i>2147483647&&or("overflow"),u===n){let d=i;for(let h=36;;h+=36){let f=h<=s?1:h>=s+26?26:h-s;if(d<f)break;let p=d-f,v=36-f;e.push(Cs(gu(f+p%v,0))),d=Ht(p/v)}e.push(Cs(gu(d,0))),s=xu(i,c,a===o),i=0,++a}++i,++n}return e.join("")},wu=function(r){return yu(r,function(e){return Ep.test(e)?As(e.slice(4).toLowerCase()):e})},Eu=function(r){return yu(r,function(e){return Cp.test(e)?"xn--"+ks(e):e})},Ip={version:"2.1.0",ucs2:{decode:Ss,encode:bu},decode:As,encode:ks,toASCII:Eu,toUnicode:wu},Dp=Ip});var ku=ne((C0,Au)=>{"use strict";Au.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 Iu=ne((S0,Tu)=>{"use strict";Tu.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 Lu=ne((A0,Du)=>{"use strict";Du.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 Pu=ne((k0,Ou)=>{"use strict";var dn=Be(),Lp=fl(),Fp=ml(),Rp=jl(),Op=Ac(),Pp=lu(),Mp=mu(),pr=Jo(),Fu=(Su(),Pd(Cu)),$p={default:ku(),zero:Iu(),commonmark:Lu()},_p=/^(vbscript|javascript|file|data):/,Bp=/^data:image\/(gif|png|jpeg|webp);/;function Np(r){var e=r.trim().toLowerCase();return _p.test(e)?!!Bp.test(e):!0}var Ru=["http:","https:","mailto:"];function Up(r){var e=pr.parse(r,!0);if(e.hostname&&(!e.protocol||Ru.indexOf(e.protocol)>=0))try{e.hostname=Fu.toASCII(e.hostname)}catch{}return pr.encode(pr.format(e))}function zp(r){var e=pr.parse(r,!0);if(e.hostname&&(!e.protocol||Ru.indexOf(e.protocol)>=0))try{e.hostname=Fu.toUnicode(e.hostname)}catch{}return pr.decode(pr.format(e),pr.decode.defaultChars+"%")}function Dt(r,e){if(!(this instanceof Dt))return new Dt(r,e);e||dn.isString(r)||(e=r||{},r="default"),this.inline=new Pp,this.block=new Op,this.core=new Rp,this.renderer=new Fp,this.linkify=new Mp,this.validateLink=Np,this.normalizeLink=Up,this.normalizeLinkText=zp,this.utils=dn,this.helpers=dn.assign({},Lp),this.options={},this.configure(r),e&&this.set(e)}Dt.prototype.set=function(r){return dn.assign(this.options,r),this};Dt.prototype.configure=function(r){var e=this,t;if(dn.isString(r)&&(t=r,r=$p[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};Dt.prototype.enable=function(r,e){var t=[];Array.isArray(r)||(r=[r]),["core","block","inline"].forEach(function(i){t=t.concat(this[i].ruler.enable(r,!0))},this),t=t.concat(this.inline.ruler2.enable(r,!0));var n=r.filter(function(i){return t.indexOf(i)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};Dt.prototype.disable=function(r,e){var t=[];Array.isArray(r)||(r=[r]),["core","block","inline"].forEach(function(i){t=t.concat(this[i].ruler.disable(r,!0))},this),t=t.concat(this.inline.ruler2.disable(r,!0));var n=r.filter(function(i){return t.indexOf(i)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};Dt.prototype.use=function(r){var e=[this].concat(Array.prototype.slice.call(arguments,1));return r.apply(r,e),this};Dt.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};Dt.prototype.render=function(r,e){return e=e||{},this.renderer.render(this.parse(r,e),this.options,e)};Dt.prototype.parseInline=function(r,e){var t=new this.core.State(r,this,e);return t.inlineMode=!0,this.core.process(t),t.tokens};Dt.prototype.renderInline=function(r,e){return e=e||{},this.renderer.render(this.parseInline(r,e),this.options,e)};Ou.exports=Dt});var $u=ne((T0,Mu)=>{"use strict";Mu.exports=Pu()});var zu=ne((I0,Uu)=>{var Ts=!0,Bu=!1,Nu=!1;Uu.exports=function(r,e){e&&(Ts=!e.enabled,Bu=!!e.label,Nu=!!e.labelAfter),r.core.ruler.after("inline","github-task-lists",function(t){for(var n=t.tokens,i=2;i<n.length;i++)Hp(n,i)&&(Vp(n[i],t.Token),_u(n[i-2],"class","task-list-item"+(Ts?"":" enabled")),_u(n[jp(n,i-2)],"class","contains-task-list"))})};function _u(r,e,t){var n=r.attrIndex(e),i=[e,t];n<0?r.attrPush(i):r.attrs[n]=i}function jp(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 Hp(r,e){return Kp(r[e])&&Xp(r[e-1])&&Zp(r[e-2])&&Qp(r[e])}function Vp(r,e){if(r.children.unshift(qp(r,e)),r.children[1].content=r.children[1].content.slice(3),r.content=r.content.slice(3),Bu)if(Nu){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(Yp(r.content,t,e))}else r.children.unshift(Gp(e)),r.children.push(Wp(e))}function qp(r,e){var t=new e("html_inline","",0),n=Ts?' 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 Gp(r){var e=new r("html_inline","",0);return e.content="<label>",e}function Wp(r){var e=new r("html_inline","",0);return e.content="</label>",e}function Yp(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 Kp(r){return r.type==="inline"}function Xp(r){return r.type==="paragraph_open"}function Zp(r){return r.type==="list_item_open"}function Qp(r){return r.content.indexOf("[ ] ")===0||r.content.indexOf("[x] ")===0||r.content.indexOf("[X] ")===0}});var nd=ne((mn,Bs)=>{(function(r,e){typeof mn=="object"&&typeof Bs=="object"?Bs.exports=e():typeof define=="function"&&define.amd?define([],e):typeof mn=="object"?mn.ClipboardJS=e():r.ClipboardJS=e()})(mn,function(){return e={686:function(n,l,s){"use strict";s.d(l,{default:function(){return S}});var l=s(279),o=s.n(l),l=s(370),a=s.n(l),l=s(817),c=s.n(l);function u(O){try{return document.execCommand(O)}catch{return}}var d=function(O){return O=c()(O),u("cut"),O};function h(P,A){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 A.container.appendChild(P),A=c()(P),u("copy"),P.remove(),A}var f=function(O){var A=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body},D="";return typeof O=="string"?D=h(O,A):O instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(O?.type)?D=h(O.value,A):(D=c()(O),u("copy")),D};function p(O){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})(O)}var v=function(){var I=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},D=I.action,O=D===void 0?"copy":D,A=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?f(I,{container:A}):D?O==="cut"?d(D):f(D,{container:A}):void 0};function y(O){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})(O)}function b(O,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(O,I.key,I)}}function x(O,A){return(x=Object.setPrototypeOf||function(D,I){return D.__proto__=I,D})(O,A)}function T(O){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=E(O);return D=A?(D=E(this).constructor,Reflect.construct(I,arguments,D)):I.apply(this,arguments),I=this,!(D=D)||y(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 E(O){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)})(O)}function M(O,A){if(O="data-clipboard-".concat(O),A.hasAttribute(O))return A.getAttribute(O)}var S=function(){(function(_,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(B&&B.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),B&&x(_,B)})(P,o());var O,A,D,I=T(P);function P(_,B){var H;return function(Q){if(!(Q instanceof P))throw new TypeError("Cannot call a class as a function")}(this),(H=I.call(this)).resolveOptions(B),H.listenClick(_),H}return O=P,D=[{key:"copy",value:function(_){var B=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{container:document.body};return f(_,B)}},{key:"cut",value:function(_){return d(_)}},{key:"isSupported",value:function(){var _=0<arguments.length&&arguments[0]!==void 0?arguments[0]:["copy","cut"],_=typeof _=="string"?[_]:_,B=!!document.queryCommandSupported;return _.forEach(function(H){B=B&&!!document.queryCommandSupported(H)}),B}}],(A=[{key:"resolveOptions",value:function(){var _=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof _.action=="function"?_.action:this.defaultAction,this.target=typeof _.target=="function"?_.target:this.defaultTarget,this.text=typeof _.text=="function"?_.text:this.defaultText,this.container=y(_.container)==="object"?_.container:document.body}},{key:"listenClick",value:function(_){var B=this;this.listener=a()(_,"click",function(H){return B.onClick(H)})}},{key:"onClick",value:function(Q){var B=Q.delegateTarget||Q.currentTarget,H=this.action(B)||"copy",Q=v({action:H,container:this.container,target:this.target(B),text:this.text(B)});this.emit(Q?"success":"error",{action:H,text:Q,trigger:B,clearSelection:function(){B&&B.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(_){return M("action",_)}},{key:"defaultTarget",value:function(_){if(_=M("target",_),_)return document.querySelector(_)}},{key:"defaultText",value:function(_){return M("text",_)}},{key:"destroy",value:function(){this.listener.destroy()}}])&&b(O.prototype,A),D&&b(O,D),P}()},828:function(n){var i;typeof Element>"u"||Element.prototype.matches||((i=Element.prototype).matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector),n.exports=function(s,o){for(;s&&s.nodeType!==9;){if(typeof s.matches=="function"&&s.matches(o))return s;s=s.parentNode}}},438:function(n,i,s){var o=s(828);function a(l,c,u,d,h){var f=function(p,v,y,b){return function(x){x.delegateTarget=o(x.target,v),x.delegateTarget&&b.call(p,x)}}.apply(this,arguments);return l.addEventListener(u,f,h),{destroy:function(){l.removeEventListener(u,f,h)}}}n.exports=function(l,c,u,d,h){return typeof l.addEventListener=="function"?a.apply(null,arguments):typeof u=="function"?a.bind(null,document).apply(null,arguments):(typeof l=="string"&&(l=document.querySelectorAll(l)),Array.prototype.map.call(l,function(f){return a(f,c,u,d,h)}))}},879:function(n,i){i.node=function(s){return s!==void 0&&s instanceof HTMLElement&&s.nodeType===1},i.nodeList=function(s){var o=Object.prototype.toString.call(s);return s!==void 0&&(o==="[object NodeList]"||o==="[object HTMLCollection]")&&"length"in s&&(s.length===0||i.node(s[0]))},i.string=function(s){return typeof s=="string"||s instanceof String},i.fn=function(s){return Object.prototype.toString.call(s)==="[object Function]"}},370:function(n,i,s){var o=s(879),a=s(438);n.exports=function(l,c,u){if(!l&&!c&&!u)throw new Error("Missing required arguments");if(!o.string(c))throw new TypeError("Second argument must be a String");if(!o.fn(u))throw new TypeError("Third argument must be a Function");if(o.node(l))return v=c,y=u,(p=l).addEventListener(v,y),{destroy:function(){p.removeEventListener(v,y)}};if(o.nodeList(l))return d=l,h=c,f=u,Array.prototype.forEach.call(d,function(b){b.addEventListener(h,f)}),{destroy:function(){Array.prototype.forEach.call(d,function(b){b.removeEventListener(h,f)})}};if(o.string(l))return l=l,c=c,u=u,a(document.body,l,c,u);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var d,h,f,p,v,y}},817:function(n){n.exports=function(i){var s,o=i.nodeName==="SELECT"?(i.focus(),i.value):i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"?((s=i.hasAttribute("readonly"))||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),i.value):(i.hasAttribute("contenteditable")&&i.focus(),o=window.getSelection(),(s=document.createRange()).selectNodeContents(i),o.removeAllRanges(),o.addRange(s),o.toString());return o}},279:function(n){function i(){}i.prototype={on:function(s,o,a){var l=this.e||(this.e={});return(l[s]||(l[s]=[])).push({fn:o,ctx:a}),this},once:function(s,o,a){var l=this;function c(){l.off(s,c),o.apply(a,arguments)}return c._=o,this.on(s,c,a)},emit:function(s){for(var o=[].slice.call(arguments,1),a=((this.e||(this.e={}))[s]||[]).slice(),l=0,c=a.length;l<c;l++)a[l].fn.apply(a[l].ctx,o);return this},off:function(s,o){var a=this.e||(this.e={}),l=a[s],c=[];if(l&&o)for(var u=0,d=l.length;u<d;u++)l[u].fn!==o&&l[u].fn._!==o&&c.push(l[u]);return c.length?a[s]=c:delete a[s],this}},n.exports=i,n.exports.TinyEmitter=i}},t={},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,{a:i}),i},r.d=function(n,i){for(var s in i)r.o(i,s)&&!r.o(n,s)&&Object.defineProperty(n,s,{enumerable:!0,get:i[s]})},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r(686).default;function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var e,t})});var Br={},$d=[];function Nr(r,e){if($d.push({name:r,data:e}),typeof Br[r]>"u")return this;let t=Br[r];for(let n=0;n<t.length;n++){let i=t[n];i(e)}}function _d(r,e){typeof Br[r]>"u"&&(Br[r]=[]),Br[r].push(e)}function Bd(r,e,t){let n=new CustomEvent(e,{detail:t,bubbles:!0});r.dispatchEvent(n)}function Nd(r){if(r.status&&r.status===422&&r.data){let e=Object.values(r.data).flat().join(`
|
|
`);Nr("error",e)}}function Ud(r){r.status&&r.status>=400&&r.data&&r.data.message&&Nr("error",r.data.message)}var qs={emit:Nr,emitPublic:Bd,listen:_d,success:r=>Nr("success",r),error:r=>Nr("error",r),showValidationErrors:Nd,showResponseError:Ud};async function zd(r,e={}){return Gs(r,{method:"GET",params:e})}async function jd(r,e=null){return yn("POST",r,e)}async function Hd(r,e=null){return yn("PUT",r,e)}async function Vd(r,e=null){return yn("PATCH",r,e)}async function qd(r,e=null){return yn("DELETE",r,e)}async function yn(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"),Gs(e,n)}async function Gs(r,e={}){if(r.startsWith("http")||(r=window.baseUrl(r)),e.params){let o=new URL(r);for(let a of Object.keys(e.params)){let l=e.params[a];typeof l<"u"&&l!==null&&o.searchParams.set(a,l)}r=o.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),i=await Gd(n),s={data:i,headers:n.headers,redirected:n.redirected,status:n.status,statusText:n.statusText,url:n.url,original:n};if(!n.ok)throw new vn(n,i);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 vn=class extends Error{constructor(e,t){super(e.statusText),this.data=t,this.headers=e.headers,this.redirected=e.redirected,this.status=e.status,this.statusText=e.statusText,this.url=e.url,this.original=e}},Ws={get:zd,post:jd,put:Hd,patch:Vd,delete:qd,HttpError:vn};var wo=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"),i=t.getAttribute("value");this.store.set(n,i)}}get(e,t){let n=this.getTransText(e);return this.performReplacements(n,t)}getPlural(e,t,n){let i=this.getTransText(e);return this.parsePlural(i,t,n)}parsePlural(e,t,n){let i=e.split("|"),s=/^{([0-9]+)}/,o=/^\[([0-9]+),([0-9*]+)]/,a=null;for(let l of i){let c=l.match(s);if(c!==null&&Number(c[1])===t){a=l.replace(s,"").trim();break}let u=l.match(o);if(u!==null&&Number(u[1])<=t&&(u[2]==="*"||Number(u[2])>=t)){a=l.replace(o,"").trim();break}}return a===null&&i.length>1&&(a=t===1?i[0]:i[1]),a===null&&(a=i[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(i=>{let s=i.substring(1);typeof t[s]>"u"||(e=e.replace(i,t[s]))}),e}},Ys=wo;var ko={};bo(ko,{first:()=>Xd,firstOnElement:()=>Qd,get:()=>Zd,init:()=>So,register:()=>Ao});function Eo(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 Ks(r){return r.replace(/[A-Z]/g,(e,t)=>(t>0?"-":"")+e.toLowerCase())}var Ur={},Xs={},Co=new WeakMap;function Wd(r,e){let t=Xs[r];if(t===void 0)return;let n;try{n=new t,n.$name=r,n.$el=e;let s=Yd(r,e);n.$refs=s.refs,n.$manyRefs=s.manyRefs,n.$opts=Kd(r,e),n.setup()}catch(s){console.error("Failed to create component",s,r,e)}typeof Ur[r]>"u"&&(Ur[r]=[]),Ur[r].push(n);let i=Co.get(e)||{};i[r]=n,Co.set(e,i)}function Yd(r,e){let t={},n={},i=`${r}@`,s=`[refs*="${i}"]`,o=[...e.querySelectorAll(s)];e.matches(s)&&o.push(e);for(let a of o){let l=a.getAttribute("refs").split(" ").filter(c=>c.startsWith(i)).map(c=>c.replace(i,"")).map(Eo);for(let c of l)t[c]=a,typeof n[c]>"u"&&(n[c]=[]),n[c].push(a)}return{refs:t,manyRefs:n}}function Kd(r,e){let t={},n=`option:${r}:`;for(let{name:i,value:s}of e.attributes)if(i.startsWith(n)){let o=i.replace(n,"");t[Eo(o)]=s||""}return t}function So(r=document){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 i of n)Wd(i,t)}}function Ao(r){let e=Object.keys(r);for(let t of e)Xs[Ks(t)]=r[t]}function Xd(r){return(Ur[r]||[null])[0]}function Zd(r){return Ur[r]||[]}function Qd(r,e){return(Co.get(r)||{})[e]||null}var zs={};bo(zs,{AddRemoveRows:()=>wn,AjaxDeleteRow:()=>En,AjaxForm:()=>Cn,Attachments:()=>Sn,AttachmentsList:()=>An,AutoSubmit:()=>Tn,AutoSuggest:()=>kn,BackToTop:()=>In,BookSort:()=>Gn,ChapterContents:()=>Kn,CodeEditor:()=>Xn,CodeHighlighter:()=>Zn,CodeTextarea:()=>Qn,Collapsible:()=>Jn,ConfirmDialog:()=>ei,CustomCheckbox:()=>ti,DetailsHighlighter:()=>ri,Dropdown:()=>ni,DropdownSearch:()=>ii,Dropzone:()=>si,EditorToolbox:()=>ai,EntityPermissions:()=>li,EntitySearch:()=>ci,EntitySelector:()=>ui,EntitySelectorPopup:()=>di,EventEmitSelect:()=>hi,ExpandToggle:()=>fi,GlobalSearch:()=>pi,HeaderMobileToggle:()=>mi,ImageManager:()=>gi,ImagePicker:()=>vi,ListSortControl:()=>yi,MarkdownEditor:()=>Ui,NewUserPassword:()=>zi,Notification:()=>ji,OptionalInput:()=>Hi,PageComments:()=>Vi,PageDisplay:()=>qi,PageEditor:()=>Gi,PagePicker:()=>Yi,PermissionsTable:()=>Ki,Pointer:()=>Xi,Popup:()=>Zi,SettingAppColorScheme:()=>Qi,SettingColorPicker:()=>Ji,SettingHomepageControl:()=>eo,ShelfSort:()=>to,ShortcutInput:()=>no,Shortcuts:()=>ro,SortableList:()=>io,SubmitOnChange:()=>oo,Tabs:()=>so,TagManager:()=>ao,TemplateManager:()=>lo,ToggleSwitch:()=>co,TriLayout:()=>uo,UserSelect:()=>ho,WebhookEvents:()=>fo,WysiwygEditor:()=>go});function To(r,e){let t=document.querySelectorAll(r);for(let n of t)e(n)}function bn(r,e,t){for(let n of e)r.addEventListener(n,t)}function je(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 xn(r,e){Array.isArray(r)||(r=[r]);let t=n=>{n.key==="Enter"&&e(n)};r.forEach(n=>n.addEventListener("keypress",t))}function Ge(r,e,t,n){r.addEventListener(t,function(i){let s=i.target.closest(e);s&&n.call(s,i,s)})}function Zs(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 zr(r){r.innerHTML='<div class="loading-container"><div></div><div></div><div></div></div>'}function Qs(r){let e=r.querySelectorAll(".loading-container");for(let t of e)t.remove()}function tr(r){let e=document.createElement("div");return e.innerHTML=r,window.$components.init(e),e.children[0]}function Bt(r,e,t){let n;return function(){let i=this,s=arguments,o=function(){n=null,t||r.apply(i,s)},a=t&&!n;clearTimeout(n),n=setTimeout(o,e),a&&r.apply(i,s)}}function jr(r){if(!r)return;r.scrollIntoView({behavior:"smooth"});let e=getComputedStyle(document.body).getPropertyValue("--color-primary-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 Js(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ea(){let r=()=>((1+Math.random())*65536|0).toString(16).substring(1);return r()+r()+"-"+r()+"-"+r()+"-"+r()+"-"+r()+r()+r()}var V=class{constructor(){br(this,"$name","");br(this,"$el",null);br(this,"$refs",{});br(this,"$manyRefs",{});br(this,"$opts",{})}setup(){}$emit(e,t={}){t.from=this;let n=this.$name,i=new CustomEvent(`${n}-${e}`,{bubbles:!0,detail:t});this.$el.dispatchEvent(i)}};var wn=class extends V{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)),Ge(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=ea(),n=e.querySelectorAll('[name*="randrowid"]');for(let i of n)i.name=i.name.split("randrowid").join(t)}};var En=class extends V{setup(){this.row=this.$el,this.url=this.$opts.url,this.deleteButtons=this.$manyRefs.delete,je(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})}};var Cn=class extends V{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}xn(this.container,e=>{this.submitFakeForm(),e.preventDefault()}),this.submitButtons.forEach(e=>je(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}};var Sn=class extends V{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"),i=JSON.parse(n);window.$events.emit("editor::insert",{html:i["text/html"],markdown:i["text/plain"]})})}reloadList(){this.stopEdit(),window.$components.firstOnElement(this.mainTabs,"tabs").show("attachment-panel-items"),window.$http.get(`/attachments/get/page/${this.pageId}`).then(t=>{this.list.innerHTML=t.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"),zr(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")}};var An=class extends V{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")}};var Do={},kn=class extends V{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)),Ge(this.list,"button","click",(e,t)=>{this.selectSuggestion(t.textContent)}),Ge(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),i=t[n+(e?1:-1)];i&&i.focus()}async requestSuggestions(){if(Date.now()-this.lastPopulated<50)return;let e=this.getNameFilterIfNeeded(),t=this.input.value.toLowerCase(),i=(await this.loadSuggestions(t,e)).filter(s=>t===""||s.toLowerCase().startsWith(t)).slice(0,10);this.displaySuggestions(i)}getNameFilterIfNeeded(){return this.type!=="value"?null:this.parent.querySelector("input").value}async loadSuggestions(e,t=null){e=e.slice(0,4);let n={search:e,name:t},i=`${this.url}:${JSON.stringify(n)}`;if(Do[i])return Do[i];let s=await window.$http.get(this.url,n);return Do[i]=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">${Js(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()}};var Tn=class extends V{setup(){this.form=this.$el,this.form.submit()}};var In=class extends V{setup(){if(this.button=this.$el,this.targetElem=document.getElementById("header"),this.showing=!1,this.breakPoint=1200,document.body.classList.contains("flexbox")){this.button.style.display="none";return}this.button.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.button.style.display="block",this.showing=!0,setTimeout(()=>{this.button.style.opacity=.4},1)):this.showing&&e<this.breakPoint&&(this.button.style.opacity=0,this.showing=!1,setTimeout(()=>{this.button.style.display="none"},500))}scrollToTop(){let e=this.targetElem.getBoundingClientRect().top,t=document.documentElement.scrollTop?document.documentElement:document.body,n=300,i=Date.now(),s=this.targetElem.getBoundingClientRect().top;function o(){let a=1-(Date.now()-i)/n,l=Math.abs(a*s);a>0?(t.scrollTop=l,requestAnimationFrame(o.bind(this))):t.scrollTop=e}requestAnimationFrame(o.bind(this))}};function ta(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Ut(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ta(Object(t),!0).forEach(function(n){Jd(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ta(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Mn(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mn=function(e){return typeof e}:Mn=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mn(r)}function Jd(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Pt(){return Pt=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},Pt.apply(this,arguments)}function eh(r,e){if(r==null)return{};var t={},n=Object.keys(r),i,s;for(s=0;s<n.length;s++)i=n[s],!(e.indexOf(i)>=0)&&(t[i]=r[i]);return t}function th(r,e){if(r==null)return{};var t=eh(r,e),n,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(i=0;i<s.length;i++)n=s[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}function rh(r){return nh(r)||ih(r)||oh(r)||sh()}function nh(r){if(Array.isArray(r))return Uo(r)}function ih(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function oh(r,e){if(r){if(typeof r=="string")return Uo(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Uo(r,e)}}function Uo(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function sh(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ah="1.15.0";function Kt(r){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(r)}var Xt=Kt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),tn=Kt(/Edge/i),ra=Kt(/firefox/i),Xr=Kt(/safari/i)&&!Kt(/chrome/i)&&!Kt(/android/i),ha=Kt(/iP(ad|od|hone)/i),fa=Kt(/chrome/i)&&Kt(/android/i),pa={capture:!1,passive:!1};function De(r,e,t){r.addEventListener(e,t,!Xt&&pa)}function Te(r,e,t){r.removeEventListener(e,t,!Xt&&pa)}function Un(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 lh(r){return r.host&&r!==document&&r.host.nodeType?r.host:r.parentNode}function Ot(r,e,t,n){if(r){t=t||document;do{if(e!=null&&(e[0]===">"?r.parentNode===t&&Un(r,e):Un(r,e))||n&&r===t)return r;if(r===t)break}while(r=lh(r))}return null}var na=/\s+/g;function it(r,e,t){if(r&&e)if(r.classList)r.classList[t?"add":"remove"](e);else{var n=(" "+r.className+" ").replace(na," ").replace(" "+e+" "," ");r.className=(n+(t?" "+e:"")).replace(na," ")}}function ue(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=ue(r,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!e&&(r=r.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(t)}function ma(r,e,t){if(r){var n=r.getElementsByTagName(e),i=0,s=n.length;if(t)for(;i<s;i++)t(n[i],i);return n}return[]}function Nt(){var r=document.scrollingElement;return r||document.documentElement}function Ke(r,e,t,n,i){if(!(!r.getBoundingClientRect&&r!==window)){var s,o,a,l,c,u,d;if(r!==window&&r.parentNode&&r!==Nt()?(s=r.getBoundingClientRect(),o=s.top,a=s.left,l=s.bottom,c=s.right,u=s.height,d=s.width):(o=0,a=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||t)&&r!==window&&(i=i||r.parentNode,!Xt))do if(i&&i.getBoundingClientRect&&(ue(i,"transform")!=="none"||t&&ue(i,"position")!=="static")){var h=i.getBoundingClientRect();o-=h.top+parseInt(ue(i,"border-top-width")),a-=h.left+parseInt(ue(i,"border-left-width")),l=o+s.height,c=a+s.width;break}while(i=i.parentNode);if(n&&r!==window){var f=dr(i||r),p=f&&f.a,v=f&&f.d;f&&(o/=v,a/=p,d/=p,u/=v,l=o+u,c=a+d)}return{top:o,left:a,bottom:l,right:c,width:d,height:u}}}function ia(r,e,t){for(var n=ir(r,!0),i=Ke(r)[e];n;){var s=Ke(n)[t],o=void 0;if(t==="top"||t==="left"?o=i>=s:o=i<=s,!o)return n;if(n===Nt())break;n=ir(n,!1)}return!1}function Ar(r,e,t,n){for(var i=0,s=0,o=r.children;s<o.length;){if(o[s].style.display!=="none"&&o[s]!==ye.ghost&&(n||o[s]!==ye.dragged)&&Ot(o[s],t.draggable,r,!1)){if(i===e)return o[s];i++}s++}return null}function qo(r,e){for(var t=r.lastElementChild;t&&(t===ye.ghost||ue(t,"display")==="none"||e&&!Un(t,e));)t=t.previousElementSibling;return t||null}function ot(r,e){var t=0;if(!r||!r.parentNode)return-1;for(;r=r.previousElementSibling;)r.nodeName.toUpperCase()!=="TEMPLATE"&&r!==ye.clone&&(!e||Un(r,e))&&t++;return t}function oa(r){var e=0,t=0,n=Nt();if(r)do{var i=dr(r),s=i.a,o=i.d;e+=r.scrollLeft*s,t+=r.scrollTop*o}while(r!==n&&(r=r.parentNode));return[e,t]}function ch(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 ir(r,e){if(!r||!r.getBoundingClientRect)return Nt();var t=r,n=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var i=ue(t);if(t.clientWidth<t.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return Nt();if(n||e)return t;n=!0}}while(t=t.parentNode);return Nt()}function uh(r,e){if(r&&e)for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r}function Lo(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 Zr;function ga(r,e){return function(){if(!Zr){var t=arguments,n=this;t.length===1?r.call(n,t[0]):r.apply(n,t),Zr=setTimeout(function(){Zr=void 0},e)}}}function dh(){clearTimeout(Zr),Zr=void 0}function va(r,e,t){r.scrollLeft+=e,r.scrollTop+=t}function Go(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)}function sa(r,e){ue(r,"position","absolute"),ue(r,"top",e.top),ue(r,"left",e.left),ue(r,"width",e.width),ue(r,"height",e.height)}function Fo(r){ue(r,"position",""),ue(r,"top",""),ue(r,"left",""),ue(r,"width",""),ue(r,"height","")}var pt="Sortable"+new Date().getTime();function hh(){var r=[],e;return{captureAnimationState:function(){if(r=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(i){if(!(ue(i,"display")==="none"||i===ye.ghost)){r.push({target:i,rect:Ke(i)});var s=Ut({},r[r.length-1].rect);if(i.thisAnimationDuration){var o=dr(i,!0);o&&(s.top-=o.f,s.left-=o.e)}i.fromRect=s}})}},addAnimationState:function(n){r.push(n)},removeAnimationState:function(n){r.splice(ch(r,{target:n}),1)},animateAll:function(n){var i=this;if(!this.options.animation){clearTimeout(e),typeof n=="function"&&n();return}var s=!1,o=0;r.forEach(function(a){var l=0,c=a.target,u=c.fromRect,d=Ke(c),h=c.prevFromRect,f=c.prevToRect,p=a.rect,v=dr(c,!0);v&&(d.top-=v.f,d.left-=v.e),c.toRect=d,c.thisAnimationDuration&&Lo(h,d)&&!Lo(u,d)&&(p.top-d.top)/(p.left-d.left)===(u.top-d.top)/(u.left-d.left)&&(l=ph(p,h,f,i.options)),Lo(d,u)||(c.prevFromRect=u,c.prevToRect=d,l||(l=i.options.animation),i.animate(c,p,d,l)),l&&(s=!0,o=Math.max(o,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(e),s?e=setTimeout(function(){typeof n=="function"&&n()},o):typeof n=="function"&&n(),r=[]},animate:function(n,i,s,o){if(o){ue(n,"transition",""),ue(n,"transform","");var a=dr(this.el),l=a&&a.a,c=a&&a.d,u=(i.left-s.left)/(l||1),d=(i.top-s.top)/(c||1);n.animatingX=!!u,n.animatingY=!!d,ue(n,"transform","translate3d("+u+"px,"+d+"px,0)"),this.forRepaintDummy=fh(n),ue(n,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),ue(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){ue(n,"transition",""),ue(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},o)}}}}function fh(r){return r.offsetWidth}function ph(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 xr=[],Ro={initializeByDefault:!0},rn={mount:function(e){for(var t in Ro)Ro.hasOwnProperty(t)&&!(t in e)&&(e[t]=Ro[t]);xr.forEach(function(n){if(n.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),xr.push(e)},pluginEvent:function(e,t,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var s=e+"Global";xr.forEach(function(o){t[o.pluginName]&&(t[o.pluginName][s]&&t[o.pluginName][s](Ut({sortable:t},n)),t.options[o.pluginName]&&t[o.pluginName][e]&&t[o.pluginName][e](Ut({sortable:t},n)))})},initializePlugins:function(e,t,n,i){xr.forEach(function(a){var l=a.pluginName;if(!(!e.options[l]&&!a.initializeByDefault)){var c=new a(e,t,e.options);c.sortable=e,c.options=e.options,e[l]=c,Pt(n,c.defaults)}});for(var s in e.options)if(e.options.hasOwnProperty(s)){var o=this.modifyOption(e,s,e.options[s]);typeof o<"u"&&(e.options[s]=o)}},getEventProperties:function(e,t){var n={};return xr.forEach(function(i){typeof i.eventProperties=="function"&&Pt(n,i.eventProperties.call(t[i.pluginName],e))}),n},modifyOption:function(e,t,n){var i;return xr.forEach(function(s){e[s.pluginName]&&s.optionListeners&&typeof s.optionListeners[t]=="function"&&(i=s.optionListeners[t].call(e[s.pluginName],n))}),i}};function Gr(r){var e=r.sortable,t=r.rootEl,n=r.name,i=r.targetEl,s=r.cloneEl,o=r.toEl,a=r.fromEl,l=r.oldIndex,c=r.newIndex,u=r.oldDraggableIndex,d=r.newDraggableIndex,h=r.originalEvent,f=r.putSortable,p=r.extraEventProperties;if(e=e||t&&t[pt],!!e){var v,y=e.options,b="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Xt&&!tn?v=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(n,!0,!0)),v.to=o||t,v.from=a||t,v.item=i||t,v.clone=s,v.oldIndex=l,v.newIndex=c,v.oldDraggableIndex=u,v.newDraggableIndex=d,v.originalEvent=h,v.pullMode=f?f.lastPutMode:void 0;var x=Ut(Ut({},p),rn.getEventProperties(n,e));for(var T in x)v[T]=x[T];t&&t.dispatchEvent(v),y[b]&&y[b].call(e,v)}}var mh=["evt"],bt=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,s=th(n,mh);rn.pluginEvent.bind(ye)(e,t,Ut({dragEl:te,parentEl:tt,ghostEl:Ce,rootEl:Ye,nextEl:ur,lastDownEl:$n,cloneEl:Qe,cloneHidden:nr,dragStarted:Wr,putSortable:ct,activeSortable:ye.active,originalEvent:i,oldIndex:Sr,oldDraggableIndex:Qr,newIndex:St,newDraggableIndex:rr,hideGhostForTarget:wa,unhideGhostForTarget:Ea,cloneNowHidden:function(){nr=!0},cloneNowShown:function(){nr=!1},dispatchSortableEvent:function(a){gt({sortable:t,name:a,originalEvent:i})}},s))};function gt(r){Gr(Ut({putSortable:ct,cloneEl:Qe,targetEl:te,rootEl:Ye,oldIndex:Sr,oldDraggableIndex:Qr,newIndex:St,newDraggableIndex:rr},r))}var te,tt,Ce,Ye,ur,$n,Qe,nr,Sr,St,Qr,rr,Dn,ct,Cr=!1,zn=!1,jn=[],lr,Ft,Oo,Po,aa,la,Wr,wr,Jr,en=!1,Ln=!1,_n,ft,Mo=[],zo=!1,Hn=[],qn=typeof document<"u",Fn=ha,ca=tn||Xt?"cssFloat":"float",gh=qn&&!fa&&!ha&&"draggable"in document.createElement("div"),ya=function(){if(qn){if(Xt)return!1;var r=document.createElement("x");return r.style.cssText="pointer-events:auto",r.style.pointerEvents==="auto"}}(),ba=function(e,t){var n=ue(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),s=Ar(e,0,t),o=Ar(e,1,t),a=s&&ue(s),l=o&&ue(o),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Ke(s).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Ke(o).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 d=a.float==="left"?"left":"right";return o&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return s&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=i&&n[ca]==="none"||o&&n[ca]==="none"&&c+u>i)?"vertical":"horizontal"},vh=function(e,t,n){var i=n?e.left:e.top,s=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,c=n?t.width:t.height;return i===a||s===l||i+o/2===a+c/2},yh=function(e,t){var n;return jn.some(function(i){var s=i[pt].options.emptyInsertThreshold;if(!(!s||qo(i))){var o=Ke(i),a=e>=o.left-s&&e<=o.right+s,l=t>=o.top-s&&t<=o.bottom+s;if(a&&l)return n=i}}),n},xa=function(e){function t(s,o){return function(a,l,c,u){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(s==null&&(o||d))return!0;if(s==null||s===!1)return!1;if(o&&s==="clone")return s;if(typeof s=="function")return t(s(a,l,c,u),o)(a,l,c,u);var h=(o?a:l).options.group.name;return s===!0||typeof s=="string"&&s===h||s.join&&s.indexOf(h)>-1}}var n={},i=e.group;(!i||Mn(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},wa=function(){!ya&&Ce&&ue(Ce,"display","none")},Ea=function(){!ya&&Ce&&ue(Ce,"display","")};qn&&!fa&&document.addEventListener("click",function(r){if(zn)return r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.stopImmediatePropagation&&r.stopImmediatePropagation(),zn=!1,!1},!0);var cr=function(e){if(te){e=e.touches?e.touches[0]:e;var t=yh(e.clientX,e.clientY);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[pt]._onDragOver(n)}}},bh=function(e){te&&te.parentNode[pt]._isOutsideThisEl(e.target)};function ye(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=Pt({},e),r[pt]=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 ba(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(o,a){o.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:ye.supportPointer!==!1&&"PointerEvent"in window&&!Xr,emptyInsertThreshold:5};rn.initializePlugins(this,r,t);for(var n in t)!(n in e)&&(e[n]=t[n]);xa(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:gh,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?De(r,"pointerdown",this._onTapStart):(De(r,"mousedown",this._onTapStart),De(r,"touchstart",this._onTapStart)),this.nativeDraggable&&(De(r,"dragover",this),De(r,"dragenter",this)),jn.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Pt(this,hh())}ye.prototype={constructor:ye,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(wr=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,te):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,s=i.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(a||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=i.filter;if(Th(n),!te&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||i.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Xr&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Ot(l,i.draggable,n,!1),!(l&&l.animated)&&$n!==l)){if(Sr=ot(l),Qr=ot(l,i.draggable),typeof u=="function"){if(u.call(this,e,l,this)){gt({sortable:t,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),bt("filter",t,{evt:e}),s&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(d){if(d=Ot(c,d.trim(),n,!1),d)return gt({sortable:t,rootEl:d,name:"filter",targetEl:l,fromEl:n,toEl:n}),bt("filter",t,{evt:e}),!0}),u)){s&&e.cancelable&&e.preventDefault();return}i.handle&&!Ot(c,i.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var i=this,s=i.el,o=i.options,a=s.ownerDocument,l;if(n&&!te&&n.parentNode===s){var c=Ke(n);if(Ye=s,te=n,tt=te.parentNode,ur=te.nextSibling,$n=n,Dn=o.group,ye.dragged=te,lr={target:te,clientX:(t||e).clientX,clientY:(t||e).clientY},aa=lr.clientX-c.left,la=lr.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,te.style["will-change"]="all",l=function(){if(bt("delayEnded",i,{evt:e}),ye.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!ra&&i.nativeDraggable&&(te.draggable=!0),i._triggerDragStart(e,t),gt({sortable:i,name:"choose",originalEvent:e}),it(te,o.chosenClass,!0)},o.ignore.split(",").forEach(function(u){ma(te,u.trim(),$o)}),De(a,"dragover",cr),De(a,"mousemove",cr),De(a,"touchmove",cr),De(a,"mouseup",i._onDrop),De(a,"touchend",i._onDrop),De(a,"touchcancel",i._onDrop),ra&&this.nativeDraggable&&(this.options.touchStartThreshold=4,te.draggable=!0),bt("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(tn||Xt))){if(ye.eventCanceled){this._onDrop();return}De(a,"mouseup",i._disableDelayedDrag),De(a,"touchend",i._disableDelayedDrag),De(a,"touchcancel",i._disableDelayedDrag),De(a,"mousemove",i._delayedDragTouchMoveHandler),De(a,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&De(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,o.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(){te&&$o(te),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Te(e,"mouseup",this._disableDelayedDrag),Te(e,"touchend",this._disableDelayedDrag),Te(e,"touchcancel",this._disableDelayedDrag),Te(e,"mousemove",this._delayedDragTouchMoveHandler),Te(e,"touchmove",this._delayedDragTouchMoveHandler),Te(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?De(document,"pointermove",this._onTouchMove):t?De(document,"touchmove",this._onTouchMove):De(document,"mousemove",this._onTouchMove):(De(te,"dragend",this),De(Ye,"dragstart",this._onDragStart));try{document.selection?Bn(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Cr=!1,Ye&&te){bt("dragStarted",this,{evt:t}),this.nativeDraggable&&De(document,"dragover",bh);var n=this.options;!e&&it(te,n.dragClass,!1),it(te,n.ghostClass,!0),ye.active=this,e&&this._appendGhost(),gt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ft){this._lastX=Ft.clientX,this._lastY=Ft.clientY,wa();for(var e=document.elementFromPoint(Ft.clientX,Ft.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ft.clientX,Ft.clientY),e!==t);)t=e;if(te.parentNode[pt]._isOutsideThisEl(e),t)do{if(t[pt]){var n=void 0;if(n=t[pt]._onDragOver({clientX:Ft.clientX,clientY:Ft.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ea()}},_onTouchMove:function(e){if(lr){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,s=e.touches?e.touches[0]:e,o=Ce&&dr(Ce,!0),a=Ce&&o&&o.a,l=Ce&&o&&o.d,c=Fn&&ft&&oa(ft),u=(s.clientX-lr.clientX+i.x)/(a||1)+(c?c[0]-Mo[0]:0)/(a||1),d=(s.clientY-lr.clientY+i.y)/(l||1)+(c?c[1]-Mo[1]:0)/(l||1);if(!ye.active&&!Cr){if(n&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Ce){o?(o.e+=u-(Oo||0),o.f+=d-(Po||0)):o={a:1,b:0,c:0,d:1,e:u,f:d};var h="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");ue(Ce,"webkitTransform",h),ue(Ce,"mozTransform",h),ue(Ce,"msTransform",h),ue(Ce,"transform",h),Oo=u,Po=d,Ft=s}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Ce){var e=this.options.fallbackOnBody?document.body:Ye,t=Ke(te,!0,Fn,!0,e),n=this.options;if(Fn){for(ft=e;ue(ft,"position")==="static"&&ue(ft,"transform")==="none"&&ft!==document;)ft=ft.parentNode;ft!==document.body&&ft!==document.documentElement?(ft===document&&(ft=Nt()),t.top+=ft.scrollTop,t.left+=ft.scrollLeft):ft=Nt(),Mo=oa(ft)}Ce=te.cloneNode(!0),it(Ce,n.ghostClass,!1),it(Ce,n.fallbackClass,!0),it(Ce,n.dragClass,!0),ue(Ce,"transition",""),ue(Ce,"transform",""),ue(Ce,"box-sizing","border-box"),ue(Ce,"margin",0),ue(Ce,"top",t.top),ue(Ce,"left",t.left),ue(Ce,"width",t.width),ue(Ce,"height",t.height),ue(Ce,"opacity","0.8"),ue(Ce,"position",Fn?"absolute":"fixed"),ue(Ce,"zIndex","100000"),ue(Ce,"pointerEvents","none"),ye.ghost=Ce,e.appendChild(Ce),ue(Ce,"transform-origin",aa/parseInt(Ce.style.width)*100+"% "+la/parseInt(Ce.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,s=n.options;if(bt("dragStart",this,{evt:e}),ye.eventCanceled){this._onDrop();return}bt("setupClone",this),ye.eventCanceled||(Qe=Go(te),Qe.removeAttribute("id"),Qe.draggable=!1,Qe.style["will-change"]="",this._hideClone(),it(Qe,this.options.chosenClass,!1),ye.clone=Qe),n.cloneId=Bn(function(){bt("clone",n),!ye.eventCanceled&&(n.options.removeCloneOnHide||Ye.insertBefore(Qe,te),n._hideClone(),gt({sortable:n,name:"clone"}))}),!t&&it(te,s.dragClass,!0),t?(zn=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Te(document,"mouseup",n._onDrop),Te(document,"touchend",n._onDrop),Te(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",s.setData&&s.setData.call(n,i,te)),De(document,"drop",n),ue(te,"transform","translateZ(0)")),Cr=!0,n._dragStartId=Bn(n._dragStarted.bind(n,t,e)),De(document,"selectstart",n),Wr=!0,Xr&&ue(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,n=e.target,i,s,o,a=this.options,l=a.group,c=ye.active,u=Dn===l,d=a.sort,h=ct||c,f,p=this,v=!1;if(zo)return;function y(ie,xe){bt(ie,p,Ut({evt:e,isOwner:u,axis:f?"vertical":"horizontal",revert:o,dragRect:i,targetRect:s,canSort:d,fromSortable:h,target:n,completed:x,onMove:function(Ee,Pe){return Rn(Ye,t,te,i,Ee,Ke(Ee),e,Pe)},changed:T},xe))}function b(){y("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function x(ie){return y("dragOverCompleted",{insertion:ie}),ie&&(u?c._hideClone():c._showClone(p),p!==h&&(it(te,ct?ct.options.ghostClass:c.options.ghostClass,!1),it(te,a.ghostClass,!0)),ct!==p&&p!==ye.active?ct=p:p===ye.active&&ct&&(ct=null),h===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){y("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(n===te&&!te.animated||n===t&&!n.animated)&&(wr=null),!a.dragoverBubble&&!e.rootEl&&n!==document&&(te.parentNode[pt]._isOutsideThisEl(e.target),!ie&&cr(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function T(){St=ot(te),rr=ot(te,a.draggable),gt({sortable:p,name:"change",toEl:t,newIndex:St,newDraggableIndex:rr,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=Ot(n,a.draggable,t,!0),y("dragOver"),ye.eventCanceled)return v;if(te.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return x(!1);if(zn=!1,c&&!a.disabled&&(u?d||(o=tt!==Ye):ct===this||(this.lastPutMode=Dn.checkPull(this,c,te,e))&&l.checkPut(this,c,te,e))){if(f=this._getDirection(e,n)==="vertical",i=Ke(te),y("dragOverValid"),ye.eventCanceled)return v;if(o)return tt=Ye,b(),this._hideClone(),y("revert"),ye.eventCanceled||(ur?Ye.insertBefore(te,ur):Ye.appendChild(te)),x(!0);var E=qo(t,a.draggable);if(!E||Ch(e,f,this)&&!E.animated){if(E===te)return x(!1);if(E&&t===e.target&&(n=E),n&&(s=Ke(n)),Rn(Ye,t,te,i,n,s,e,!!n)!==!1)return b(),E&&E.nextSibling?t.insertBefore(te,E.nextSibling):t.appendChild(te),tt=t,T(),x(!0)}else if(E&&Eh(e,f,this)){var M=Ar(t,0,a,!0);if(M===te)return x(!1);if(n=M,s=Ke(n),Rn(Ye,t,te,i,n,s,e,!1)!==!1)return b(),t.insertBefore(te,M),tt=t,T(),x(!0)}else if(n.parentNode===t){s=Ke(n);var S=0,O,A=te.parentNode!==t,D=!vh(te.animated&&te.toRect||i,n.animated&&n.toRect||s,f),I=f?"top":"left",P=ia(n,"top","top")||ia(te,"top","top"),_=P?P.scrollTop:void 0;wr!==n&&(O=s[I],en=!1,Ln=!D&&a.invertSwap||A),S=Sh(e,n,s,f,D?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,Ln,wr===n);var B;if(S!==0){var H=ot(te);do H-=S,B=tt.children[H];while(B&&(ue(B,"display")==="none"||B===Ce))}if(S===0||B===n)return x(!1);wr=n,Jr=S;var Q=n.nextElementSibling,Y=!1;Y=S===1;var re=Rn(Ye,t,te,i,n,s,e,Y);if(re!==!1)return(re===1||re===-1)&&(Y=re===1),zo=!0,setTimeout(wh,30),b(),Y&&!Q?t.appendChild(te):n.parentNode.insertBefore(te,Y?Q:n),P&&va(P,0,_-P.scrollTop),tt=te.parentNode,O!==void 0&&!Ln&&(_n=Math.abs(O-Ke(n)[I])),T(),x(!0)}if(t.contains(te))return x(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Te(document,"mousemove",this._onTouchMove),Te(document,"touchmove",this._onTouchMove),Te(document,"pointermove",this._onTouchMove),Te(document,"dragover",cr),Te(document,"mousemove",cr),Te(document,"touchmove",cr)},_offUpEvents:function(){var e=this.el.ownerDocument;Te(e,"mouseup",this._onDrop),Te(e,"touchend",this._onDrop),Te(e,"pointerup",this._onDrop),Te(e,"touchcancel",this._onDrop),Te(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;if(St=ot(te),rr=ot(te,n.draggable),bt("drop",this,{evt:e}),tt=te&&te.parentNode,St=ot(te),rr=ot(te,n.draggable),ye.eventCanceled){this._nulling();return}Cr=!1,Ln=!1,en=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),jo(this.cloneId),jo(this._dragStartId),this.nativeDraggable&&(Te(document,"drop",this),Te(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Xr&&ue(document.body,"user-select",""),ue(te,"transform",""),e&&(Wr&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Ce&&Ce.parentNode&&Ce.parentNode.removeChild(Ce),(Ye===tt||ct&&ct.lastPutMode!=="clone")&&Qe&&Qe.parentNode&&Qe.parentNode.removeChild(Qe),te&&(this.nativeDraggable&&Te(te,"dragend",this),$o(te),te.style["will-change"]="",Wr&&!Cr&&it(te,ct?ct.options.ghostClass:this.options.ghostClass,!1),it(te,this.options.chosenClass,!1),gt({sortable:this,name:"unchoose",toEl:tt,newIndex:null,newDraggableIndex:null,originalEvent:e}),Ye!==tt?(St>=0&&(gt({rootEl:tt,name:"add",toEl:tt,fromEl:Ye,originalEvent:e}),gt({sortable:this,name:"remove",toEl:tt,originalEvent:e}),gt({rootEl:tt,name:"sort",toEl:tt,fromEl:Ye,originalEvent:e}),gt({sortable:this,name:"sort",toEl:tt,originalEvent:e})),ct&&ct.save()):St!==Sr&&St>=0&&(gt({sortable:this,name:"update",toEl:tt,originalEvent:e}),gt({sortable:this,name:"sort",toEl:tt,originalEvent:e})),ye.active&&((St==null||St===-1)&&(St=Sr,rr=Qr),gt({sortable:this,name:"end",toEl:tt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){bt("nulling",this),Ye=te=tt=Ce=ur=Qe=$n=nr=lr=Ft=Wr=St=rr=Sr=Qr=wr=Jr=ct=Dn=ye.dragged=ye.ghost=ye.clone=ye.active=null,Hn.forEach(function(e){e.checked=!0}),Hn.length=Oo=Po=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":te&&(this._onDragOver(e),xh(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,i=0,s=n.length,o=this.options;i<s;i++)t=n[i],Ot(t,o.draggable,this.el,!1)&&e.push(t.getAttribute(o.dataIdAttr)||kh(t));return e},sort:function(e,t){var n={},i=this.el;this.toArray().forEach(function(s,o){var a=i.children[o];Ot(a,this.options.draggable,i,!1)&&(n[s]=a)},this),t&&this.captureAnimationState(),e.forEach(function(s){n[s]&&(i.removeChild(n[s]),i.appendChild(n[s]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Ot(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var i=rn.modifyOption(this,e,t);typeof i<"u"?n[e]=i:n[e]=t,e==="group"&&xa(n)},destroy:function(){bt("destroy",this);var e=this.el;e[pt]=null,Te(e,"mousedown",this._onTapStart),Te(e,"touchstart",this._onTapStart),Te(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Te(e,"dragover",this),Te(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),jn.splice(jn.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!nr){if(bt("hideClone",this),ye.eventCanceled)return;ue(Qe,"display","none"),this.options.removeCloneOnHide&&Qe.parentNode&&Qe.parentNode.removeChild(Qe),nr=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(nr){if(bt("showClone",this),ye.eventCanceled)return;te.parentNode==Ye&&!this.options.group.revertClone?Ye.insertBefore(Qe,te):ur?Ye.insertBefore(Qe,ur):Ye.appendChild(Qe),this.options.group.revertClone&&this.animate(te,Qe),ue(Qe,"display",""),nr=!1}}};function xh(r){r.dataTransfer&&(r.dataTransfer.dropEffect="move"),r.cancelable&&r.preventDefault()}function Rn(r,e,t,n,i,s,o,a){var l,c=r[pt],u=c.options.onMove,d;return window.CustomEvent&&!Xt&&!tn?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=i||e,l.relatedRect=s||Ke(e),l.willInsertAfter=a,l.originalEvent=o,r.dispatchEvent(l),u&&(d=u.call(c,l,o)),d}function $o(r){r.draggable=!1}function wh(){zo=!1}function Eh(r,e,t){var n=Ke(Ar(t.el,0,t.options,!0)),i=10;return e?r.clientX<n.left-i||r.clientY<n.top&&r.clientX<n.right:r.clientY<n.top-i||r.clientY<n.bottom&&r.clientX<n.left}function Ch(r,e,t){var n=Ke(qo(t.el,t.options.draggable)),i=10;return e?r.clientX>n.right+i||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+i}function Sh(r,e,t,n,i,s,o,a){var l=n?r.clientY:r.clientX,c=n?t.height:t.width,u=n?t.top:t.left,d=n?t.bottom:t.right,h=!1;if(!o){if(a&&_n<c*i){if(!en&&(Jr===1?l>u+c*s/2:l<d-c*s/2)&&(en=!0),en)h=!0;else if(Jr===1?l<u+_n:l>d-_n)return-Jr}else if(l>u+c*(1-i)/2&&l<d-c*(1-i)/2)return Ah(e)}return h=h||o,h&&(l<u+c*s/2||l>d-c*s/2)?l>u+c/2?1:-1:0}function Ah(r){return ot(te)<ot(r)?1:-1}function kh(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 Th(r){Hn.length=0;for(var e=r.getElementsByTagName("input"),t=e.length;t--;){var n=e[t];n.checked&&Hn.push(n)}}function Bn(r){return setTimeout(r,0)}function jo(r){return clearTimeout(r)}qn&&De(document,"touchmove",function(r){(ye.active||Cr)&&r.cancelable&&r.preventDefault()});ye.utils={on:De,off:Te,css:ue,find:ma,is:function(e,t){return!!Ot(e,t,e,!1)},extend:uh,throttle:ga,closest:Ot,toggleClass:it,clone:Go,index:ot,nextTick:Bn,cancelNextTick:jo,detectDirection:ba,getChild:Ar};ye.get=function(r){return r[pt]};ye.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&&(ye.utils=Ut(Ut({},ye.utils),n.utils)),rn.mount(n)})};ye.create=function(r,e){return new ye(r,e)};ye.version=ah;var nt=[],Yr,Ho,Vo=!1,_o,Bo,Vn,Kr;function Ih(){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?De(document,"dragover",this._handleAutoScroll):this.options.supportPointer?De(document,"pointermove",this._handleFallbackAutoScroll):n.touches?De(document,"touchmove",this._handleFallbackAutoScroll):De(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?Te(document,"dragover",this._handleAutoScroll):(Te(document,"pointermove",this._handleFallbackAutoScroll),Te(document,"touchmove",this._handleFallbackAutoScroll),Te(document,"mousemove",this._handleFallbackAutoScroll)),ua(),Nn(),dh()},nulling:function(){Vn=Ho=Yr=Vo=Kr=_o=Bo=null,nt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var i=this,s=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,a=document.elementFromPoint(s,o);if(Vn=t,n||this.options.forceAutoScrollFallback||tn||Xt||Xr){No(t,this.options,a,n);var l=ir(a,!0);Vo&&(!Kr||s!==_o||o!==Bo)&&(Kr&&ua(),Kr=setInterval(function(){var c=ir(document.elementFromPoint(s,o),!0);c!==l&&(l=c,Nn()),No(t,i.options,c,n)},10),_o=s,Bo=o)}else{if(!this.options.bubbleScroll||ir(a,!0)===Nt()){Nn();return}No(t,this.options,ir(a,!1),!1)}}},Pt(r,{pluginName:"scroll",initializeByDefault:!0})}function Nn(){nt.forEach(function(r){clearInterval(r.pid)}),nt=[]}function ua(){clearInterval(Kr)}var No=ga(function(r,e,t,n){if(e.scroll){var i=(r.touches?r.touches[0]:r).clientX,s=(r.touches?r.touches[0]:r).clientY,o=e.scrollSensitivity,a=e.scrollSpeed,l=Nt(),c=!1,u;Ho!==t&&(Ho=t,Nn(),Yr=e.scroll,u=e.scrollFn,Yr===!0&&(Yr=ir(t,!0)));var d=0,h=Yr;do{var f=h,p=Ke(f),v=p.top,y=p.bottom,b=p.left,x=p.right,T=p.width,E=p.height,M=void 0,S=void 0,O=f.scrollWidth,A=f.scrollHeight,D=ue(f),I=f.scrollLeft,P=f.scrollTop;f===l?(M=T<O&&(D.overflowX==="auto"||D.overflowX==="scroll"||D.overflowX==="visible"),S=E<A&&(D.overflowY==="auto"||D.overflowY==="scroll"||D.overflowY==="visible")):(M=T<O&&(D.overflowX==="auto"||D.overflowX==="scroll"),S=E<A&&(D.overflowY==="auto"||D.overflowY==="scroll"));var _=M&&(Math.abs(x-i)<=o&&I+T<O)-(Math.abs(b-i)<=o&&!!I),B=S&&(Math.abs(y-s)<=o&&P+E<A)-(Math.abs(v-s)<=o&&!!P);if(!nt[d])for(var H=0;H<=d;H++)nt[H]||(nt[H]={});(nt[d].vx!=_||nt[d].vy!=B||nt[d].el!==f)&&(nt[d].el=f,nt[d].vx=_,nt[d].vy=B,clearInterval(nt[d].pid),(_!=0||B!=0)&&(c=!0,nt[d].pid=setInterval(function(){n&&this.layer===0&&ye.active._onTouchMove(Vn);var Q=nt[this.layer].vy?nt[this.layer].vy*a:0,Y=nt[this.layer].vx?nt[this.layer].vx*a:0;typeof u=="function"&&u.call(ye.dragged.parentNode[pt],Y,Q,r,Vn,nt[this.layer].el)!=="continue"||va(nt[this.layer].el,Y,Q)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==l&&(h=ir(h,!1)));Vo=c}},30),Ca=function(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,s=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var c=n||s;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(u.clientX,u.clientY);l(),c&&!c.el.contains(d)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function Wo(){}Wo.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 i=Ar(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Ca};Pt(Wo,{pluginName:"revertOnSpill"});function Yo(){}Yo.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,i=n||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:Ca};Pt(Yo,{pluginName:"removeOnSpill"});var we=[],Ct=[],Hr,Rt,Vr=!1,xt=!1,Er=!1,Ve,qr,On;function Sa(){function r(e){for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this));e.options.avoidImplicitDeselect||(e.options.supportPointer?De(document,"pointerup",this._deselectMultiDrag):(De(document,"mouseup",this._deselectMultiDrag),De(document,"touchend",this._deselectMultiDrag))),De(document,"keydown",this._checkKeyDown),De(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(i,s){var o="";we.length&&Rt===e?we.forEach(function(a,l){o+=(l?", ":"")+a.textContent}):o=s.textContent,i.setData("Text",o)}}}return r.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var n=t.dragEl;Ve=n},delayEnded:function(){this.isMultiDrag=~we.indexOf(Ve)},setupClone:function(t){var n=t.sortable,i=t.cancel;if(this.isMultiDrag){for(var s=0;s<we.length;s++)Ct.push(Go(we[s])),Ct[s].sortableIndex=we[s].sortableIndex,Ct[s].draggable=!1,Ct[s].style["will-change"]="",it(Ct[s],this.options.selectedClass,!1),we[s]===Ve&&it(Ct[s],this.options.chosenClass,!1);n._hideClone(),i()}},clone:function(t){var n=t.sortable,i=t.rootEl,s=t.dispatchSortableEvent,o=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||we.length&&Rt===n&&(da(!0,i),s("clone"),o()))},showClone:function(t){var n=t.cloneNowShown,i=t.rootEl,s=t.cancel;this.isMultiDrag&&(da(!1,i),Ct.forEach(function(o){ue(o,"display","")}),n(),On=!1,s())},hideClone:function(t){var n=this,i=t.sortable,s=t.cloneNowHidden,o=t.cancel;this.isMultiDrag&&(Ct.forEach(function(a){ue(a,"display","none"),n.options.removeCloneOnHide&&a.parentNode&&a.parentNode.removeChild(a)}),s(),On=!0,o())},dragStartGlobal:function(t){var n=t.sortable;!this.isMultiDrag&&Rt&&Rt.multiDrag._deselectMultiDrag(),we.forEach(function(i){i.sortableIndex=ot(i)}),we=we.sort(function(i,s){return i.sortableIndex-s.sortableIndex}),Er=!0},dragStarted:function(t){var n=this,i=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){we.forEach(function(o){o!==Ve&&ue(o,"position","absolute")});var s=Ke(Ve,!1,!0,!0);we.forEach(function(o){o!==Ve&&sa(o,s)}),xt=!0,Vr=!0}i.animateAll(function(){xt=!1,Vr=!1,n.options.animation&&we.forEach(function(o){Fo(o)}),n.options.sort&&Pn()})}},dragOver:function(t){var n=t.target,i=t.completed,s=t.cancel;xt&&~we.indexOf(n)&&(i(!1),s())},revert:function(t){var n=t.fromSortable,i=t.rootEl,s=t.sortable,o=t.dragRect;we.length>1&&(we.forEach(function(a){s.addAnimationState({target:a,rect:xt?Ke(a):o}),Fo(a),a.fromRect=o,n.removeAnimationState(a)}),xt=!1,Dh(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(t){var n=t.sortable,i=t.isOwner,s=t.insertion,o=t.activeSortable,a=t.parentEl,l=t.putSortable,c=this.options;if(s){if(i&&o._hideClone(),Vr=!1,c.animation&&we.length>1&&(xt||!i&&!o.options.sort&&!l)){var u=Ke(Ve,!1,!0,!0);we.forEach(function(h){h!==Ve&&(sa(h,u),a.appendChild(h))}),xt=!0}if(!i)if(xt||Pn(),we.length>1){var d=On;o._showClone(n),o.options.animation&&!On&&d&&Ct.forEach(function(h){o.addAnimationState({target:h,rect:qr}),h.fromRect=qr,h.thisAnimationDuration=null})}else o._showClone(n)}},dragOverAnimationCapture:function(t){var n=t.dragRect,i=t.isOwner,s=t.activeSortable;if(we.forEach(function(a){a.thisAnimationDuration=null}),s.options.animation&&!i&&s.multiDrag.isMultiDrag){qr=Pt({},n);var o=dr(Ve,!0);qr.top-=o.f,qr.left-=o.e}},dragOverAnimationComplete:function(){xt&&(xt=!1,Pn())},drop:function(t){var n=t.originalEvent,i=t.rootEl,s=t.parentEl,o=t.sortable,a=t.dispatchSortableEvent,l=t.oldIndex,c=t.putSortable,u=c||this.sortable;if(n){var d=this.options,h=s.children;if(!Er)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),it(Ve,d.selectedClass,!~we.indexOf(Ve)),~we.indexOf(Ve))we.splice(we.indexOf(Ve),1),Hr=null,Gr({sortable:o,rootEl:i,name:"deselect",targetEl:Ve,originalEvent:n});else{if(we.push(Ve),Gr({sortable:o,rootEl:i,name:"select",targetEl:Ve,originalEvent:n}),n.shiftKey&&Hr&&o.el.contains(Hr)){var f=ot(Hr),p=ot(Ve);if(~f&&~p&&f!==p){var v,y;for(p>f?(y=f,v=p):(y=p,v=f+1);y<v;y++)~we.indexOf(h[y])||(it(h[y],d.selectedClass,!0),we.push(h[y]),Gr({sortable:o,rootEl:i,name:"select",targetEl:h[y],originalEvent:n}))}}else Hr=Ve;Rt=u}if(Er&&this.isMultiDrag){if(xt=!1,(s[pt].options.sort||s!==i)&&we.length>1){var b=Ke(Ve),x=ot(Ve,":not(."+this.options.selectedClass+")");if(!Vr&&d.animation&&(Ve.thisAnimationDuration=null),u.captureAnimationState(),!Vr&&(d.animation&&(Ve.fromRect=b,we.forEach(function(E){if(E.thisAnimationDuration=null,E!==Ve){var M=xt?Ke(E):b;E.fromRect=M,u.addAnimationState({target:E,rect:M})}})),Pn(),we.forEach(function(E){h[x]?s.insertBefore(E,h[x]):s.appendChild(E),x++}),l===ot(Ve))){var T=!1;we.forEach(function(E){if(E.sortableIndex!==ot(E)){T=!0;return}}),T&&a("update")}we.forEach(function(E){Fo(E)}),u.animateAll()}Rt=u}(i===s||c&&c.lastPutMode!=="clone")&&Ct.forEach(function(E){E.parentNode&&E.parentNode.removeChild(E)})}},nullingGlobal:function(){this.isMultiDrag=Er=!1,Ct.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Te(document,"pointerup",this._deselectMultiDrag),Te(document,"mouseup",this._deselectMultiDrag),Te(document,"touchend",this._deselectMultiDrag),Te(document,"keydown",this._checkKeyDown),Te(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(typeof Er<"u"&&Er)&&Rt===this.sortable&&!(t&&Ot(t.target,this.options.draggable,this.sortable.el,!1))&&!(t&&t.button!==0))for(;we.length;){var n=we[0];it(n,this.options.selectedClass,!1),we.shift(),Gr({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvent:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Pt(r,{pluginName:"multiDrag",utils:{select:function(t){var n=t.parentNode[pt];!n||!n.options.multiDrag||~we.indexOf(t)||(Rt&&Rt!==n&&(Rt.multiDrag._deselectMultiDrag(),Rt=n),it(t,n.options.selectedClass,!0),we.push(t))},deselect:function(t){var n=t.parentNode[pt],i=we.indexOf(t);!n||!n.options.multiDrag||!~i||(it(t,n.options.selectedClass,!1),we.splice(i,1))}},eventProperties:function(){var t=this,n=[],i=[];return we.forEach(function(s){n.push({multiDragElement:s,index:s.sortableIndex});var o;xt&&s!==Ve?o=-1:xt?o=ot(s,":not(."+t.options.selectedClass+")"):o=ot(s),i.push({multiDragElement:s,index:o})}),{items:rh(we),clones:[].concat(Ct),oldIndicies:n,newIndicies:i}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),t==="ctrl"?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function Dh(r,e){we.forEach(function(t,n){var i=e.children[t.sortableIndex+(r?Number(n):0)];i?e.insertBefore(t,i):e.appendChild(t)})}function da(r,e){Ct.forEach(function(t,n){var i=e.children[t.sortableIndex+(r?Number(n):0)];i?e.insertBefore(t,i):e.appendChild(t)})}function Pn(){we.forEach(function(r){r!==Ve&&r.parentNode&&r.parentNode.removeChild(r)})}ye.mount(new Ih);ye.mount(Yo,Wo);var hr=ye;var Aa={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}},ka={up:{active(r,e,t){return!(r.previousElementSibling===null&&!e)},run(r,e,t){(r.previousElementSibling||e).insertAdjacentElement("beforebegin",r)}},down:{active(r,e,t){return!(r.nextElementSibling===null&&!e)},run(r,e,t){(r.nextElementSibling||e).insertAdjacentElement("afterend",r)}},next_book:{active(r,e,t){return t.nextElementSibling!==null},run(r,e,t){t.nextElementSibling.querySelector("ul").prepend(r)}},prev_book:{active(r,e,t){return t.previousElementSibling!==null},run(r,e,t){t.previousElementSibling.querySelector("ul").appendChild(r)}},next_chapter:{active(r,e,t){return r.dataset.type==="page"&&this.getNextChapter(r,e)},run(r,e,t){this.getNextChapter(r,e).querySelector("ul").prepend(r)},getNextChapter(r,e){let t=e||r,n=Array.from(t.parentElement.children),i=n.indexOf(t);return n.slice(i+1).find(s=>s.dataset.type==="chapter")}},prev_chapter:{active(r,e,t){return r.dataset.type==="page"&&this.getPrevChapter(r,e)},run(r,e,t){this.getPrevChapter(r,e).querySelector("ul").append(r)},getPrevChapter(r,e){let t=e||r,n=Array.from(t.parentElement.children),i=n.indexOf(t);return n.slice(0,i).reverse().find(s=>s.dataset.type==="chapter")}},book_end:{active(r,e,t){return e||e===null&&r.nextElementSibling},run(r,e,t){t.querySelector("ul").append(r)}},book_start:{active(r,e,t){return e||e===null&&r.previousElementSibling},run(r,e,t){t.querySelector("ul").prepend(r)}},before_chapter:{active(r,e,t){return e},run(r,e,t){e.insertAdjacentElement("beforebegin",r)}},after_chapter:{active(r,e,t){return e},run(r,e,t){e.insertAdjacentElement("afterend",r)}}},Gn=class extends V{setup(){this.container=this.$el,this.sortContainer=this.$refs.sortContainer,this.input=this.$refs.input,hr.mount(new Sa);let e=this.container.querySelector(".sort-box");this.setupBookSortable(e),this.setupSortPresets(),this.setupMoveActions(),window.$events.listen("entity-select-change",this.bookSelect.bind(this))}setupMoveActions(){this.container.addEventListener("click",e=>{if(e.target.matches("[data-move]")){let t=e.target.getAttribute("data-move"),n=e.target.closest("[data-id]");this.runSortAction(n,t)}}),this.updateMoveActionStateForAll()}setupSortPresets(){let e="",t=!1,n=["name","created","updated"];this.sortContainer.addEventListener("click",i=>{let s=i.target.closest(".sort-box-options [data-sort]");if(!s)return;i.preventDefault();let o=s.closest(".sort-box").querySelectorAll("ul"),a=s.getAttribute("data-sort");t=e===a?!t:!1;let l=Aa[a];t&&n.includes(a)&&(l=function(c,u){return 0-Aa[a](c,u)});for(let c of o)Array.from(c.children).filter(d=>d.matches("li")).sort(l).forEach(d=>{c.appendChild(d)});e=a,this.updateMapInput()})}bookSelect(e){if(this.container.querySelector(`[data-type="book"][data-id="${e.id}"]`)!==null)return;let n=e.link+"/sort-item";window.$http.get(n).then(i=>{let s=tr(i.data);this.sortContainer.append(s),this.setupBookSortable(s),this.updateMoveActionStateForAll(),s.querySelector("summary").focus()})}setupBookSortable(e){let t=Array.from(e.querySelectorAll(".sort-list, .sortable-page-sublist")),n={name:"book",pull:["book","chapter"],put:["book","chapter"]},i={name:"chapter",pull:["book","chapter"],put:function(s,o,a){return a.getAttribute("data-type")==="page"}};for(let s of t)hr.create(s,{group:s.classList.contains("sort-list")?n:i,animation:150,fallbackOnBody:!0,swapThreshold:.65,onSort:o=>{this.ensureNoNestedChapters(),this.updateMapInput(),this.updateMoveActionStateForAll()},dragClass:"bg-white",ghostClass:"primary-background-light",multiDrag:!0,multiDragKey:"Control",selectedClass:"sortable-selected"})}ensureNoNestedChapters(){let e=this.container.querySelectorAll('[data-type="chapter"] [data-type="chapter"]');for(let t of e)t.parentElement.closest('[data-type="chapter"]').insertAdjacentElement("afterend",t)}updateMapInput(){let e=this.buildEntityMap();this.input.value=JSON.stringify(e)}buildEntityMap(){let e=[],t=this.container.querySelectorAll(".sort-list");for(let n of t){let i=n.closest('[data-type="book"]').getAttribute("data-id"),s=Array.from(n.children).filter(o=>o.matches('[data-type="page"], [data-type="chapter"]'));for(let o=0;o<s.length;o++)this.addBookChildToMap(s[o],o,i,e)}return e}addBookChildToMap(e,t,n,i){let s=e.getAttribute("data-type"),o=!1,a=e.getAttribute("data-id");i.push({id:a,sort:t,parentChapter:o,type:s,book:n});let l=e.querySelectorAll('[data-type="page"]');for(let c=0;c<l.length;c++)i.push({id:l[c].getAttribute("data-id"),sort:c,parentChapter:a,type:"page",book:n})}runSortAction(e,t){let n=e.parentElement.closest("li[data-id]"),i=e.parentElement.closest('[data-type="book"]');ka[t].run(e,n,i),this.updateMapInput(),this.updateMoveActionStateForAll(),e.scrollIntoView({behavior:"smooth",block:"nearest"}),e.focus()}updateMoveActionState(e){let t=e.parentElement.closest("li[data-id]"),n=e.parentElement.closest('[data-type="book"]');for(let[i,s]of Object.entries(ka)){let o=e.querySelector(`[data-move="${i}"]`);o.disabled=!s.active(e,t,n)}}updateMoveActionStateForAll(){let e=this.container.querySelectorAll('[data-type="chapter"],[data-type="page"]');for(let t of e)this.updateMoveActionState(t)}};var Wn=new WeakMap;function Ta(r,e=400,t=null){on(r),r.style.display="block",nn(r,{opacity:["0","1"]},e,()=>{t&&t()})}function Yn(r,e=400,t=null){on(r),nn(r,{opacity:["1","0"]},e,()=>{r.style.display="none",t&&t()})}function kr(r,e=400){on(r);let t=r.getBoundingClientRect().height,n=getComputedStyle(r),i=n.getPropertyValue("padding-top"),s=n.getPropertyValue("padding-bottom"),o={maxHeight:[`${t}px`,"0px"],overflow:["hidden","hidden"],paddingTop:[i,"0px"],paddingBottom:[s,"0px"]};nn(r,o,e,()=>{r.style.display="none"})}function Tr(r,e=400){on(r),r.style.display="block";let t=r.getBoundingClientRect().height,n=getComputedStyle(r),i=n.getPropertyValue("padding-top"),s=n.getPropertyValue("padding-bottom"),o={maxHeight:["0px",`${t}px`],overflow:["hidden","hidden"],paddingTop:["0px",i],paddingBottom:["0px",s]};nn(r,o,e)}function Ia(r,e=400){let t=r.getBoundingClientRect().height,n=getComputedStyle(r),i=n.getPropertyValue("padding-top"),s=n.getPropertyValue("padding-bottom");return()=>{on(r);let o=r.getBoundingClientRect().height,a=getComputedStyle(r),l=a.getPropertyValue("padding-top"),c=a.getPropertyValue("padding-bottom"),u={height:[`${t}px`,`${o}px`],overflow:["hidden","hidden"],paddingTop:[i,l],paddingBottom:[s,c]};nn(r,u,e)}}function nn(r,e,t=400,n=null){let i=Object.keys(e);for(let o of i)r.style[o]=e[o][0];let s=()=>{for(let o of i)r.style[o]=null;r.style.transition=null,r.removeEventListener("transitionend",s),Wn.delete(r),n&&n()};setTimeout(()=>{r.style.transition=`all ease-in-out ${t}ms`;for(let o of i)r.style[o]=e[o][1];r.addEventListener("transitionend",s),Wn.set(r,s)},15)}function on(r){Wn.has(r)&&Wn.get(r)()}var Kn=class extends V{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"),Tr(this.list,180),this.isOpen=!0}close(){this.toggle.classList.remove("open"),this.toggle.setAttribute("aria-expanded","false"),kr(this.list,180),this.isOpen=!1}click(e){e.preventDefault(),this.isOpen?this.close():this.open()}};var Xn=class extends V{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()}),je(this.languageButtons,e=>{let t=e.target.dataset.lang;this.languageInput.value=t,this.languageInputChange(t)}),xn(this.languageInput,e=>this.save()),this.languageInput.addEventListener("input",e=>this.languageInputChange(this.languageInput.value)),je(this.saveButton,e=>this.save()),Ge(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"),Ge(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("/preferences/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 i=t.dataset.favourite==="true",s=n.dataset.favourite==="true";return i&&!s?-1:s&&!i||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(i=>i.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.getPopup().show(()=>{e.updateLayout(this.editor),this.editor.focus()},()=>{this.addHistory()})}hide(){this.getPopup().hide(),this.addHistory()}getPopup(){return window.$components.firstOnElement(this.popup,"popup")}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 i=n.dataset.lang.toLowerCase().trim(),s=t===i;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)}};var Zn=class extends V{setup(){let e=this.$el;e.querySelectorAll("pre").length>0&&window.importVersioned("code").then(n=>{n.highlightWithin(e)})}};var Qn=class extends V{async setup(){let e=this.$opts.mode;(await window.importVersioned("code")).inlineEditor(this.$el,e)}};var Jn=class extends V{setup(){this.container=this.$el,this.trigger=this.$refs.trigger,this.content=this.$refs.content,this.trigger&&(this.trigger.addEventListener("click",this.toggle.bind(this)),this.openIfContainsError())}open(){this.container.classList.add("open"),this.trigger.setAttribute("aria-expanded","true"),Tr(this.content,300)}close(){this.container.classList.remove("open"),this.trigger.setAttribute("aria-expanded","false"),kr(this.content,300)}toggle(){this.container.classList.contains("open")?this.close():this.open()}openIfContainsError(){this.content.querySelector(".text-neg.text-small")&&this.open()}};var ei=class extends V{setup(){this.container=this.$el,this.confirmButton=this.$refs.confirm,this.res=null,je(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 window.$components.firstOnElement(this.container,"popup")}sendResult(e){this.res&&(this.res(e),this.res=null)}};var ti=class extends V{setup(){this.container=this.$el,this.checkbox=this.container.querySelector("input[type=checkbox]"),this.display=this.container.querySelector('[role="checkbox"]'),this.checkbox.addEventListener("change",this.stateChange.bind(this)),this.container.addEventListener("keydown",this.onKeyDown.bind(this))}onKeyDown(e){(e.key===" "||e.key==="Enter")&&(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)}};var ri=class extends V{setup(){this.container=this.$el,this.dealtWith=!1,this.container.addEventListener("toggle",this.onToggle.bind(this))}onToggle(){this.dealtWith||(this.container.querySelector("pre")&&window.importVersioned("code").then(e=>{e.highlightWithin(this.container)}),this.dealtWith=!0)}};var sn,Ko,an,Xo,Ir=class{constructor(e,t=null,n=null){xo(this,sn);xo(this,an);this.containers=[e],this.onEscape=t,this.onEnter=n,e.addEventListener("keydown",_r(this,sn,Ko).bind(this))}shareHandlingToEl(e){this.containers.push(e),e.addEventListener("keydown",_r(this,sn,Ko).bind(this))}focusNext(){let e=_r(this,an,Xo).call(this),n=e.indexOf(document.activeElement)+1;n>=e.length&&(n=0),e[n].focus()}focusPrevious(){let e=_r(this,an,Xo).call(this),n=e.indexOf(document.activeElement)-1;n<0&&(n=e.length-1),e[n].focus()}};sn=new WeakSet,Ko=function(e){e.target.matches("input")&&(e.key==="ArrowRight"||e.key==="ArrowLeft")||(e.key==="ArrowDown"||e.key==="ArrowRight"?(this.focusNext(),e.preventDefault()):e.key==="ArrowUp"||e.key==="ArrowLeft"?(this.focusPrevious(),e.preventDefault()):e.key==="Escape"?this.onEscape?this.onEscape(e):document.activeElement&&document.activeElement.blur():e.key==="Enter"&&this.onEnter&&this.onEnter(e))},an=new WeakSet,Xo=function(){let e=[],t='[tabindex]:not([tabindex="-1"]),[href],button:not([tabindex="-1"],[disabled]),input:not([type=hidden])';for(let n of this.containers)e.push(...n.querySelectorAll(t));return e};var ni=class extends V{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.hide=this.hide.bind(this),this.setupListeners()}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,i=this.toggle.getBoundingClientRect().height,s=t.bottom>window.innerHeight;this.moveMenu&&(this.body.appendChild(this.menu),this.menu.style.position="fixed",this.menu.style.width=`${t.width}px`,this.menu.style.left=`${t.left}px`,n=s?window.innerHeight-t.top-i/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),window.addEventListener("click",l=>{this.menu.contains(l.target)||this.hide()});let o=this.menu.querySelector("input");o!==null&&o.focus(),this.showing=!0;let a=new Event("show");this.container.dispatchEvent(a),e&&e.stopPropagation()}hideAll(){for(let e of window.$components.get("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.menu.style.left="",this.container.appendChild(this.menu)),this.showing=!1}setupListeners(){let e=new Ir(this.container,t=>{this.hide(),this.toggle.focus(),this.bubbleEscapes||t.stopPropagation()},t=>{t.target.nodeName==="INPUT"&&(t.preventDefault(),t.stopPropagation()),this.hide()});this.moveMenu&&e.shareHandlingToEl(this.menu),this.container.addEventListener("click",t=>{Array.from(this.menu.querySelectorAll("a")).includes(t.target)&&this.hide()}),je(this.toggle,t=>{t.stopPropagation(),this.show(t),t instanceof KeyboardEvent&&e.focusNext()})}};var ii=class extends V{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=Bt(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 i=!e||n.textContent.toLowerCase().includes(e);n.style.display=i?"flex":"none",n.classList.toggle("hidden",!i)}}async loadList(e=""){this.listContainerElem.innerHTML="",this.toggleLoading(!0);try{let t=await window.$http.get(this.getAjaxUrl(e)),n=Ia(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"}};var La=gn(Da());var si=class extends V{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 La.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 i=window.document.querySelector("meta[name=token]").getAttribute("content");n.append("_token",i),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),Yn(e.previewElement,800,()=>{this.dz.removeFile(e)})}onError(e,t,n){this.$emit("error",{file:e,errorMessage:t,xhr:n});let i=s=>{let o=e.previewElement.querySelector("[data-dz-errormessage]");o.textContent=s};n&&n.status===413?i(this.uploadLimitMessage):t.file&&i(t.file)}removeAll(){this.dz.removeAllFiles(!0)}};var ai=class extends V{setup(){this.container=this.$el,this.buttons=this.$manyRefs.tabButton,this.contentElements=this.$manyRefs.tabContent,this.toggleButton=this.$refs.toggle,this.setupListeners(),this.setActiveTab(this.contentElements[0].dataset.tabContent)}setupListeners(){this.toggleButton.addEventListener("click",()=>this.toggle()),this.container.addEventListener("click",e=>{let t=e.target.closest("button");if(this.buttons.includes(t)){let n=t.dataset.tab;this.setActiveTab(n,!0)}})}toggle(){this.container.classList.toggle("open");let e=this.container.classList.contains("open")?"true":"false";this.toggleButton.setAttribute("aria-expanded",e)}setActiveTab(e,t=!1){for(let n of this.buttons)n.classList.remove("active"),n.dataset.tab===e&&n.classList.add("active");for(let n of this.contentElements)n.style.display="none",n.dataset.tabContent===e&&(n.style.display="block");t&&!this.container.classList.contains("open")&&this.toggle()}};var li=class extends V{setup(){this.container=this.$el,this.entityType=this.$opts.entityType,this.everyoneInheritToggle=this.$refs.everyoneInherit,this.roleSelect=this.$refs.roleSelect,this.roleContainer=this.$refs.roleContainer,this.setupListeners()}setupListeners(){this.everyoneInheritToggle.addEventListener("change",e=>{let t=e.target.checked,n=document.querySelectorAll('input[name^="permissions[0]["]');for(let i of n)i.disabled=t,i.checked=!1}),this.container.addEventListener("click",e=>{let t=e.target.closest("button");t&&t.dataset.roleId&&this.removeRowOnButtonClick(t)}),this.roleSelect.addEventListener("change",e=>{let t=this.roleSelect.value;t&&this.addRoleRow(t)})}async addRoleRow(e){this.roleSelect.disabled=!0;let t=this.roleSelect.querySelector(`option[value="${e}"]`);t&&t.remove();let n=await window.$http.get(`/permissions/form-row/${this.entityType}/${e}`),i=tr(n.data);this.roleContainer.append(i),this.roleSelect.disabled=!1}removeRowOnButtonClick(e){let t=e.closest(".item-list-row"),n=e.dataset.roleId,i=e.dataset.roleName,s=document.createElement("option");s.value=n,s.textContent=i,this.roleSelect.append(s),t.remove()}};var ci=class extends V{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()}),je(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=""}};var ui=class extends V{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.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()}),Ge(this.$el,"[data-entity-type]","keydown",(t,n)=>{if(t.ctrlKey&&t.code==="Enter"){let i=this.$el.closest("form");if(i){i.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),i=t[n+(e?1:-1)]||t[0];i&&i.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`/search/entity-selector?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"),i=e.getAttribute("data-entity-id"),s=!e.classList.contains("selected")||t;this.unselectAll(),this.input.value=s?`${n}:${i}`:"";let o=e.getAttribute("href"),a=e.querySelector(".entity-list-item-name").textContent,l={id:Number(i),name:a,link:o};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}};var di=class extends V{setup(){this.container=this.$el,this.selectButton=this.$refs.select,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.getPopup().show(),this.getSelector().focusSearch()}hide(){this.getPopup().hide()}getPopup(){return window.$components.firstOnElement(this.container,"popup")}getSelector(){return window.$components.firstOnElement(this.selectorEl,"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)}};var hi=class extends V{setup(){this.container=this.$el,this.name=this.$opts.name,je(this.$el,()=>{this.$emit(this.name,this.$opts)})}};var fi=class extends V{setup(e){this.targetSelector=this.$opts.targetSelector,this.isOpen=this.$opts.isOpen==="true",this.updateEndpoint=this.$opts.updateEndpoint,this.$el.addEventListener("click",this.click.bind(this))}open(e){Tr(e,200)}close(e){kr(e,200)}click(e){e.preventDefault();let t=document.querySelectorAll(this.targetSelector);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"})}};var pi=class extends V{setup(){this.container=this.$el,this.input=this.$refs.input,this.suggestions=this.$refs.suggestions,this.suggestionResultsWrap=this.$refs.suggestionResults,this.loadingWrap=this.$refs.loading,this.button=this.$refs.button,this.setupListeners()}setupListeners(){let e=Bt(this.updateSuggestions.bind(this),200,!1);this.input.addEventListener("input",()=>{let t=this.input.value;t.length>0?(this.loadingWrap.style.display="block",this.suggestionResultsWrap.style.opacity="0.5",e(t)):this.hideSuggestions()}),this.input.addEventListener("dblclick",()=>{this.input.setAttribute("autocomplete","on"),this.button.focus(),this.input.focus()}),new Ir(this.container,()=>{this.hideSuggestions()})}async updateSuggestions(e){let{data:t}=await window.$http.get("/search/suggest",{term:e});if(!this.input.value)return;let n=tr(t);this.suggestionResultsWrap.innerHTML="",this.suggestionResultsWrap.style.opacity="1",this.loadingWrap.style.display="none",this.suggestionResultsWrap.append(n),this.container.classList.contains("search-active")||this.showSuggestions()}showSuggestions(){this.container.classList.add("search-active"),window.requestAnimationFrame(()=>{this.suggestions.classList.add("search-suggestions-animation")})}hideSuggestions(){this.container.classList.remove("search-active"),this.suggestions.classList.remove("search-suggestions-animation"),this.suggestionResultsWrap.innerHTML=""}};var mi=class extends V{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)}};var gi=class extends V{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()}setupListeners(){je(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()}),je(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())}),Ge(this.listContainer,".load-more","click",async e=>{zr(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),je(this.selectButton,()=>{this.callback&&this.callback(this.lastSelected),this.hide()}),Ge(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.getPopup().show(),this.dropzoneContainer.classList.toggle("hidden",t!=="gallery"),this.hasData||(this.loadGallery(),this.hasData=!0)}hide(){this.getPopup().hide()}getPopup(){return window.$components.firstOnElement(this.popupEl,"popup")}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),Qs(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){for(let t of this.filterTabs){let n=t.dataset.filter===e;t.setAttribute("aria-selected",n?"true":"false")}}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(){zr(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,i=e.target.classList.contains("selected");[...this.listContainer.querySelectorAll(".selected")].forEach(s=>{s.classList.remove("selected")}),i?this.resetEditForm():(e.target.classList.add("selected"),this.loadImageEditForm(t.id)),this.selectButton.classList.toggle("hidden",i),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:i}=await window.$http.get(`/images/edit/${e}`,n);this.formContainer.innerHTML=i,window.$components.init(this.formContainer)}};var vi=class extends V{setup(){this.imageElem=this.$refs.image,this.imageInput=this.$refs.imageInput,this.resetInput=this.$refs.resetInput,this.removeInput=this.$refs.removeInput,this.resetButton=this.$refs.resetButton,this.removeButton=this.$refs.removeButton||null,this.defaultImage=this.$opts.defaultImage,this.setupListeners()}setupListeners(){this.resetButton.addEventListener("click",this.reset.bind(this)),this.removeButton&&this.removeButton.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")}};var yi=class extends V{setup(){this.elem=this.$el,this.menu=this.$refs.menu,this.sortInput=this.$refs.sort,this.orderInput=this.$refs.order,this.form=this.$refs.form,this.setupListeners()}setupListeners(){this.menu.addEventListener("click",e=>{e.target.closest("[data-sort-value]")!==null&&this.sortOptionClick(e)}),this.elem.addEventListener("click",e=>{e.target.closest("[data-sort-dir]")!==null&&this.sortDirectionClick(e)})}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 t=this.orderInput.value;this.orderInput.value=t==="asc"?"desc":"asc",e.preventDefault(),this.form.submit()}};var ju=gn($u()),Hu=gn(zu()),Oi=class{constructor(){this.renderer=new ju.default({html:!0}),this.renderer.use(Hu.default,{label:!0})}getRenderer(){return this.renderer}render(e){return this.renderer.render(e)}};function Jp(r,e){return document.createElement(r,e)}function em(r,e,t){return document.createElementNS(r,e,t)}function tm(){return mr(document.createDocumentFragment())}function rm(r){return document.createTextNode(r)}function nm(r){return document.createComment(r)}function im(r,e,t){if(Zt(r)){let n=r;for(;n&&Zt(n);)n=mr(n).parent;r=n??r}Zt(e)&&(e=mr(e,r)),t&&Zt(t)&&(t=mr(t).firstChildNode),r.insertBefore(e,t)}function om(r,e){r.removeChild(e)}function sm(r,e){Zt(e)&&(e=mr(e,r)),r.appendChild(e)}function Vu(r){if(Zt(r)){for(;r&&Zt(r);)r=mr(r).parent;return r??null}return r.parentNode}function am(r){var e;if(Zt(r)){let t=mr(r),n=Vu(t);if(n&&t.lastChildNode){let i=Array.from(n.childNodes),s=i.indexOf(t.lastChildNode);return(e=i[s+1])!==null&&e!==void 0?e:null}return null}return r.nextSibling}function lm(r){return r.tagName}function cm(r,e){r.textContent=e}function um(r){return r.textContent}function dm(r){return r.nodeType===1}function hm(r){return r.nodeType===3}function fm(r){return r.nodeType===8}function Zt(r){return r.nodeType===11}function mr(r,e){var t,n,i;let s=r;return(t=s.parent)!==null&&t!==void 0||(s.parent=e??null),(n=s.firstChildNode)!==null&&n!==void 0||(s.firstChildNode=r.firstChild),(i=s.lastChildNode)!==null&&i!==void 0||(s.lastChildNode=r.lastChild),s}var Pi={createElement:Jp,createElementNS:em,createTextNode:rm,createDocumentFragment:tm,createComment:nm,insertBefore:im,removeChild:om,appendChild:sm,parentNode:Vu,nextSibling:am,tagName:lm,setTextContent:cm,getTextContent:um,isElement:dm,isText:hm,isComment:fm,isDocumentFragment:Zt};function Qt(r,e,t,n,i){let s=e===void 0?void 0:e.key;return{sel:r,data:e,children:t,text:n,elm:i,key:s}}var qu=Array.isArray;function Gu(r){return typeof r=="string"||typeof r=="number"||r instanceof String||r instanceof Number}function Is(r){return r===void 0}function wt(r){return r!==void 0}var Ds=Qt("",{},[],void 0,void 0);function hn(r,e){var t,n;let i=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),o=r.sel===e.sel,a=!r.sel&&r.sel===e.sel?typeof r.text==typeof e.text:!0;return o&&i&&s&&a}function mm(){throw new Error("The document fragment is not supported on this platform.")}function gm(r,e){return r.isElement(e)}function vm(r,e){return r.isDocumentFragment(e)}function ym(r,e,t){var n;let i={};for(let s=e;s<=t;++s){let o=(n=r[s])===null||n===void 0?void 0:n.key;o!==void 0&&(i[o]=s)}return i}var bm=["create","update","remove","destroy","pre","post"];function Ls(r,e,t){let n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},i=e!==void 0?e:Pi;for(let p of bm)for(let v of r){let y=v[p];y!==void 0&&n[p].push(y)}function s(p){let v=p.id?"#"+p.id:"",y=p.getAttribute("class"),b=y?"."+y.split(" ").join("."):"";return Qt(i.tagName(p).toLowerCase()+v+b,{},[],void 0,p)}function o(p){return Qt(void 0,{},[],void 0,p)}function a(p,v){return function(){if(--v===0){let b=i.parentNode(p);i.removeChild(b,p)}}}function l(p,v){var y,b,x,T;let E,M=p.data;if(M!==void 0){let A=(y=M.hook)===null||y===void 0?void 0:y.init;wt(A)&&(A(p),M=p.data)}let S=p.children,O=p.sel;if(O==="!")Is(p.text)&&(p.text=""),p.elm=i.createComment(p.text);else if(O!==void 0){let A=O.indexOf("#"),D=O.indexOf(".",A),I=A>0?A:O.length,P=D>0?D:O.length,_=A!==-1||D!==-1?O.slice(0,Math.min(I,P)):O,B=p.elm=wt(M)&&wt(E=M.ns)?i.createElementNS(E,_,M):i.createElement(_,M);for(I<P&&B.setAttribute("id",O.slice(I+1,P)),D>0&&B.setAttribute("class",O.slice(P+1).replace(/\./g," ")),E=0;E<n.create.length;++E)n.create[E](Ds,p);if(qu(S))for(E=0;E<S.length;++E){let Q=S[E];Q!=null&&i.appendChild(B,l(Q,v))}else Gu(p.text)&&i.appendChild(B,i.createTextNode(p.text));let H=p.data.hook;wt(H)&&((b=H.create)===null||b===void 0||b.call(H,Ds,p),H.insert&&v.push(p))}else if(!((x=t?.experimental)===null||x===void 0)&&x.fragments&&p.children){for(p.elm=((T=i.createDocumentFragment)!==null&&T!==void 0?T:mm)(),E=0;E<n.create.length;++E)n.create[E](Ds,p);for(E=0;E<p.children.length;++E){let A=p.children[E];A!=null&&i.appendChild(p.elm,l(A,v))}}else p.elm=i.createTextNode(p.text);return p.elm}function c(p,v,y,b,x,T){for(;b<=x;++b){let E=y[b];E!=null&&i.insertBefore(p,l(E,T),v)}}function u(p){var v,y;let b=p.data;if(b!==void 0){(y=(v=b?.hook)===null||v===void 0?void 0:v.destroy)===null||y===void 0||y.call(v,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 T=p.children[x];T!=null&&typeof T!="string"&&u(T)}}}function d(p,v,y,b){for(var x,T;y<=b;++y){let E,M,S=v[y];if(S!=null)if(wt(S.sel)){u(S),E=n.remove.length+1,M=a(S.elm,E);for(let A=0;A<n.remove.length;++A)n.remove[A](S,M);let O=(T=(x=S?.data)===null||x===void 0?void 0:x.hook)===null||T===void 0?void 0:T.remove;wt(O)?O(S,M):M()}else S.children?(u(S),d(p,S.children,0,S.children.length-1)):i.removeChild(p,S.elm)}}function h(p,v,y,b){let x=0,T=0,E=v.length-1,M=v[0],S=v[E],O=y.length-1,A=y[0],D=y[O],I,P,_,B;for(;x<=E&&T<=O;)M==null?M=v[++x]:S==null?S=v[--E]:A==null?A=y[++T]:D==null?D=y[--O]:hn(M,A)?(f(M,A,b),M=v[++x],A=y[++T]):hn(S,D)?(f(S,D,b),S=v[--E],D=y[--O]):hn(M,D)?(f(M,D,b),i.insertBefore(p,M.elm,i.nextSibling(S.elm)),M=v[++x],D=y[--O]):hn(S,A)?(f(S,A,b),i.insertBefore(p,S.elm,M.elm),S=v[--E],A=y[++T]):(I===void 0&&(I=ym(v,x,E)),P=I[A.key],Is(P)?i.insertBefore(p,l(A,b),M.elm):(_=v[P],_.sel!==A.sel?i.insertBefore(p,l(A,b),M.elm):(f(_,A,b),v[P]=void 0,i.insertBefore(p,_.elm,M.elm))),A=y[++T]);T<=O&&(B=y[O+1]==null?null:y[O+1].elm,c(p,B,y,T,O,b)),x<=E&&d(p,v,x,E)}function f(p,v,y){var b,x,T,E,M,S,O,A;let D=(b=v.data)===null||b===void 0?void 0:b.hook;(x=D?.prepatch)===null||x===void 0||x.call(D,p,v);let I=v.elm=p.elm;if(p===v)return;if(v.data!==void 0||wt(v.text)&&v.text!==p.text){(T=v.data)!==null&&T!==void 0||(v.data={}),(E=p.data)!==null&&E!==void 0||(p.data={});for(let B=0;B<n.update.length;++B)n.update[B](p,v);(O=(S=(M=v.data)===null||M===void 0?void 0:M.hook)===null||S===void 0?void 0:S.update)===null||O===void 0||O.call(S,p,v)}let P=p.children,_=v.children;Is(v.text)?wt(P)&&wt(_)?P!==_&&h(I,P,_,y):wt(_)?(wt(p.text)&&i.setTextContent(I,""),c(I,null,_,0,_.length-1,y)):wt(P)?d(I,P,0,P.length-1):wt(p.text)&&i.setTextContent(I,""):p.text!==v.text&&(wt(P)&&d(I,P,0,P.length-1),i.setTextContent(I,v.text)),(A=D?.postpatch)===null||A===void 0||A.call(D,p,v)}return function(v,y){let b,x,T,E=[];for(b=0;b<n.pre.length;++b)n.pre[b]();for(gm(i,v)?v=s(v):vm(i,v)&&(v=o(v)),hn(v,y)?f(v,y,E):(x=v.elm,T=i.parentNode(x),l(y,E),T!==null&&(i.insertBefore(T,y.elm,i.nextSibling(x)),d(T,[v],0,0))),b=0;b<E.length;++b)E[b].data.hook.insert(E[b]);for(b=0;b<n.post.length;++b)n.post[b]();return y}}function Fs(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 i=e[n];if(typeof i=="string")continue;let s=i.data;s!==void 0&&Fs(s,i.children,i.sel)}}function fn(r,e){let t=e!==void 0?e:Pi,n;if(t.isElement(r)){let i=r.id?"#"+r.id:"",s=r.getAttribute("class"),o=s?"."+s.split(" ").join("."):"",a=t.tagName(r).toLowerCase()+i+o,l={},c={},u={},d=[],h,f,p,v=r.attributes,y=r.childNodes;for(f=0,p=v.length;f<p;f++)h=v[f].nodeName,h[0]==="d"&&h[1]==="a"&&h[2]==="t"&&h[3]==="a"&&h[4]==="-"?c[h.slice(5)]=v[f].nodeValue||"":h!=="id"&&h!=="class"&&(l[h]=v[f].nodeValue);for(f=0,p=y.length;f<p;f++)d.push(fn(y[f],e));return Object.keys(l).length>0&&(u.attrs=l),Object.keys(c).length>0&&(u.dataset=c),a[0]==="s"&&a[1]==="v"&&a[2]==="g"&&(a.length===3||a[3]==="."||a[3]==="#")&&Fs(u,d,a),Qt(a,u,d,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 xm="http://www.w3.org/1999/xlink",wm="http://www.w3.org/XML/1998/namespace";function Wu(r,e){let t,n=e.elm,i=r.data.attrs,s=e.data.attrs;if(!(!i&&!s)&&i!==s){i=i||{},s=s||{};for(t in s){let o=s[t];i[t]!==o&&(o===!0?n.setAttribute(t,""):o===!1?n.removeAttribute(t):t.charCodeAt(0)!==120?n.setAttribute(t,o):t.charCodeAt(3)===58?n.setAttributeNS(wm,t,o):t.charCodeAt(5)===58?n.setAttributeNS(xm,t,o):n.setAttribute(t,o))}for(t in i)t in s||n.removeAttribute(t)}}var Rs={create:Wu,update:Wu};var Mi;function Em(){return Mi||(Mi=Ls([Rs]),Mi)}function Yu(r,e){let t=document.createElement("div");t.innerHTML=e,Em()(fn(r),fn(t))}var $i=class{constructor(e){this.editor=e,this.container=e.config.displayEl,this.doc=null,this.lastDisplayClick=0,this.container.contentDocument.readyState==="complete"?this.onLoad():this.container.addEventListener("load",this.onLoad.bind(this)),this.updateVisibility(e.settings.get("showPreview")),e.settings.onChange("showPreview",t=>this.updateVisibility(t))}updateVisibility(e){let t=this.container.closest(".markdown-editor-wrap");t.style.display=e?null:"none"}onLoad(){this.doc=this.container.contentDocument,this.loadStylesIntoDisplay(),this.doc.body.className="page-content",this.doc.addEventListener("click",this.onDisplayClick.bind(this))}onDisplayClick(e){let t=Date.now()-this.lastDisplayClick<300,n=e.target.closest("a");if(n!==null){e.preventDefault(),window.open(n.getAttribute("href"));return}let i=e.target.closest("[drawio-diagram]");if(i!==null&&t){this.editor.actions.editDrawing(i);return}this.lastDisplayClick=Date.now()}loadStylesIntoDisplay(){this.doc.documentElement.classList.add("markdown-editor-display"),document.documentElement.classList.contains("dark-mode")&&(this.doc.documentElement.style.backgroundColor="#222",this.doc.documentElement.classList.add("dark-mode")),this.doc.head.innerHTML="";let e=document.head.querySelectorAll("style,link[rel=stylesheet]");for(let t of e){let n=t.cloneNode(!0);this.doc.head.appendChild(n)}}patchWithHtml(e){let t=this.doc.body;if(t.children.length===0){let i=document.createElement("div");this.doc.body.append(i)}let n=t.children[0];Yu(n,e)}scrollToIndex(e){let t=this.doc.body?.children[0]?.children;if(t&&t.length<=e)return;(e===-1?t[t.length-1]:t[e]).scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}};var Vt=null,Ms,Os,Ps;function Cm(r,e,t){Os=e,Ps=t,Vt=document.createElement("iframe"),Vt.setAttribute("frameborder","0"),window.addEventListener("message",Xu),Vt.setAttribute("src",r),Vt.setAttribute("class","fullscreen"),Vt.style.backgroundColor="#FFFFFF",document.body.appendChild(Vt),Ms=new URL(r).origin}function Ku(){Zu()}function Xu(r){if(!r.data||r.data.length<1||r.origin!==Ms)return;let e=JSON.parse(r.data);e.event==="init"?km():e.event==="exit"?Zu():e.event==="save"?Am(e):e.event==="export"?Sm(e):e.event==="configure"&&Tm()}function Sm(r){Ps&&Ps(r.data)}function Am(r){$s({action:"export",format:"xmlpng",xml:r.xml,spin:"Updating drawing"})}function km(){Os&&Os().then(r=>{$s({action:"load",autosave:1,xml:r})})}function Tm(){let r={};window.$events.emitPublic(Vt,"editor-drawio::configure",{config:r}),$s({action:"configure",config:r})}function Zu(){window.removeEventListener("message",Xu),Vt&&document.body.removeChild(Vt)}function $s(r){Vt.contentWindow.postMessage(JSON.stringify(r),Ms)}async function Im(r,e){let t={image:r,uploaded_to:e};return(await window.$http.post(window.baseUrl("/images/drawio"),t)).data}async function Dm(r){try{return`data:image/png;base64,${(await window.$http.get(window.baseUrl(`/images/drawio/base64/${r}`))).data.content}`}catch(e){throw e instanceof window.$http.HttpError&&window.$events.showResponseError(e),Ku(),e}}var kt={show:Cm,close:Ku,upload:Im,load:Dm};var _i=class{constructor(e){this.editor=e,this.lastContent={html:"",markdown:""}}updateAndRender(){let e=this.editor.cm.getValue();this.editor.config.inputEl.value=e;let t=this.editor.markdown.render(e);window.$events.emit("editor-html-change",""),window.$events.emit("editor-markdown-change",""),this.lastContent.html=t,this.lastContent.markdown=e,this.editor.display.patchWithHtml(t)}getContent(){return this.lastContent}insertImage(){let e=this.editor.cm.getCursor("from");window.$components.first("image-manager").show(n=>{let i=n.thumbs.display||n.url,o="[!["+(this.editor.cm.getSelection()||n.name)+"]("+i+")]("+n.url+")";this.editor.cm.focus(),this.editor.cm.replaceSelection(o),this.editor.cm.setCursor(e.line,e.ch+o.length)},"gallery")}insertLink(){let e=this.editor.cm.getCursor("from"),t=this.editor.cm.getSelection()||"",n=`[${t}]()`;this.editor.cm.focus(),this.editor.cm.replaceSelection(n);let i=t===""?-3:-1;this.editor.cm.setCursor(e.line,e.ch+n.length+i)}showImageManager(){let e=this.editor.cm.getCursor("from");window.$components.first("image-manager").show(n=>{this.insertDrawing(n,e)},"drawio")}showLinkSelector(){let e=this.editor.cm.getCursor("from");window.$components.first("entity-selector-popup").show(n=>{let s=`[${this.editor.cm.getSelection()||n.name}](${n.link})`;this.editor.cm.focus(),this.editor.cm.replaceSelection(s),this.editor.cm.setCursor(e.line,e.ch+s.length)})}startDrawing(){let e=this.editor.config.drawioUrl;if(!e)return;let t=this.editor.cm.getCursor("from");kt.show(e,()=>Promise.resolve(""),n=>{let i={image:n,uploaded_to:Number(this.editor.config.pageId)};window.$http.post("/images/drawio",i).then(s=>{this.insertDrawing(s.data,t),kt.close()}).catch(s=>{this.handleDrawingUploadError(s)})})}insertDrawing(e,t){let n=`<div drawio-diagram="${e.id}"><img src="${e.url}"></div>`;this.editor.cm.focus(),this.editor.cm.replaceSelection(n),this.editor.cm.setCursor(t.line,t.ch+n.length)}editDrawing(e){let t=this.editor.config.drawioUrl;if(!t)return;let n=this.editor.cm.getCursor("from"),i=e.getAttribute("drawio-diagram");kt.show(t,()=>kt.load(i),s=>{let o={image:s,uploaded_to:Number(this.editor.config.pageId)};window.$http.post("/images/drawio",o).then(a=>{let l=`<div drawio-diagram="${a.data.id}"><img src="${a.data.url}"></div>`,c=this.editor.cm.getValue().split(`
|
|
`).map(u=>u.indexOf(`drawio-diagram="${i}"`)!==-1?l:u).join(`
|
|
`);this.editor.cm.setValue(c),this.editor.cm.setCursor(n),this.editor.cm.focus(),kt.close()}).catch(a=>{this.handleDrawingUploadError(a)})})}handleDrawingUploadError(e){e.status===413?window.$events.emit("error",this.editor.config.text.serverUploadLimit):window.$events.emit("error",this.editor.config.text.imageUploadError),console.log(e)}fullScreen(){let e=this.editor.config.container,t=e.classList.contains("fullscreen");e.classList.toggle("fullscreen",!t),document.body.classList.toggle("markdown-fullscreen",!t)}scrollToText(e){if(!e)return;let n=this.editor.cm.getValue().split(/\r?\n/),i=n.findIndex(s=>s&&s.indexOf(e)!==-1);i!==-1&&(this.editor.cm.scrollIntoView({line:i},200),this.editor.cm.focus(),this.editor.cm.setCursor({line:i,char:n[i].length}))}focus(){this.editor.cm.focus()}insertContent(e){this.editor.cm.replaceSelection(e)}prependContent(e){let t=this.editor.cm.getCursor("from"),n=e+`
|
|
`+this.editor.cm.getValue();this.editor.cm.setValue(n);let i=e.split(`
|
|
`).length;this.editor.cm.setCursor(t.line+i,t.ch)}appendContent(e){let t=this.editor.cm.getCursor("from"),n=this.editor.cm.getValue()+`
|
|
`+e;this.editor.cm.setValue(n),this.editor.cm.setCursor(t.line,t.ch)}replaceContent(e){this.editor.cm.setValue(e)}findAndReplaceContent(e,t){let n=this.editor.cm.getValue(),i=this.editor.cm.listSelections();this.editor.cm.setValue(n.replace(e,t)),this.editor.cm.setSelections(i)}replaceLineStart(e){let t=this.editor.cm.getCursor(),n=this.editor.cm.getLine(t.line),i=n.length,s=n.split(" ")[0];if(s===e){n=n.replace(`${e} `,""),this.editor.cm.replaceRange(n,{line:t.line,ch:0},{line:t.line,ch:i}),this.editor.cm.setCursor({line:t.line,ch:t.ch-(e.length+1)});return}let o=/^[#>`]/.test(s),a=0;o?(a=e.length-s.length,n=n.replace(s,e).trim()):e!==""&&(a=e.length+1,n=e+" "+n),this.editor.cm.replaceRange(n,{line:t.line,ch:0},{line:t.line,ch:i}),this.editor.cm.setCursor({line:t.line,ch:t.ch+a})}wrapLine(e,t){let n=this.editor.cm.getCursor(),i=this.editor.cm.getLine(n.line),s=i.length,o=i;i.indexOf(e)===0&&i.slice(-t.length)===t?o=i.slice(e.length,i.length-t.length):o=`${e}${i}${t}`,this.editor.cm.replaceRange(o,{line:n.line,ch:0},{line:n.line,ch:s}),this.editor.cm.setCursor({line:n.line,ch:n.ch+e.length})}wrapSelection(e,t){let n=this.editor.cm.getSelection();if(n==="")return this.wrapLine(e,t);let i=n,s=0,o;n.indexOf(e)===0&&n.slice(-t.length)===t?(i=n.slice(e.length,n.length-t.length),o=-(t.length+e.length)):(i=`${e}${n}${t}`,o=e.length+t.length);let a=this.editor.cm.listSelections()[0];this.editor.cm.replaceSelection(i);let l=a.head.ch<=a.anchor.ch;a.head.ch+=l?s:o,a.anchor.ch+=l?o:s,this.editor.cm.setSelections([a])}replaceLineStartForOrderedList(){let e=this.editor.cm.getCursor(),n=(this.editor.cm.getLine(e.line-1)||"").match(/^(\s*)(\d)([).])\s/)||[],i=(Number(n[2])||0)+1,s=n[1]||"",o=n[3]||".",a=`${s}${i}${o}`;return this.replaceLineStart(a)}cycleCalloutTypeAtSelection(){let e=this.editor.cm.listSelections()[0],t=this.editor.cm.getLine(e.anchor.line),n=t.length,i={anchor:{line:e.anchor.line,ch:0},head:{line:e.anchor.line,ch:n}},s=["info","success","warning","danger"],o=s.join("|"),l=new RegExp(`class="((${o})\\s+callout|callout\\s+(${o}))"`,"i").exec(t),c=(l?l[2]||l[3]:"").toLowerCase();if(c===s[s.length-1])this.wrapLine(`<p class="callout ${s[s.length-1]}">`,"</p>");else if(c==="")this.wrapLine('<p class="callout info">',"</p>");else{let u=s.indexOf(c)+1,d=s[u],h=t.replace(l[0],l[0].replace(c,d));this.editor.cm.replaceRange(h,i.anchor,i.head);let f=h.length-t.length;e.anchor.ch+=f,e.anchor!==e.head&&(e.head.ch+=f),this.editor.cm.setSelection(e.anchor,e.head)}}uploadImage(e){if(e===null||e.type.indexOf("image")!==0)return;let t="png";if(e.name){let u=e.name.match(/\.(.+)$/);u.length>1&&(t=u[1])}let n="image-"+Math.random().toString(16).slice(2),i=window.baseUrl(`/loading.gif#upload${n}`),s=this.editor.cm.getSelection(),o=`![${s}](${i})`,a=this.editor.cm.getCursor();this.editor.cm.replaceSelection(o),this.editor.cm.setCursor({line:a.line,ch:a.ch+s.length+3});let l="image-"+Date.now()+"."+t,c=new FormData;c.append("file",e,l),c.append("uploaded_to",this.editor.config.pageId),window.$http.post("/images/gallery",c).then(u=>{let d=`[![${s}](${u.data.thumbs.display})](${u.data.url})`;this.findAndReplaceContent(o,d)}).catch(u=>{window.$events.emit("error",this.editor.config.text.imageUploadError),this.findAndReplaceContent(o,s),console.log(u)})}syncDisplayPosition(){let e=this.editor.cm.getScrollInfo();if(e.top+e.clientHeight===e.height){this.editor.display.scrollToIndex(-1);return}let n=this.editor.cm.lineAtHeight(e.top,"local"),i=this.editor.cm.getRange({line:0,ch:null},{line:n,ch:null}),a=new DOMParser().parseFromString(this.editor.markdown.render(i),"text/html").documentElement.querySelectorAll("body > *");this.editor.display.scrollToIndex(a.length)}insertTemplate(e,t,n){let i=this.editor.cm.coordsChar({left:t,top:n});this.editor.cm.setCursor(i),window.$http.get(`/templates/${e}`).then(s=>{let o=s.data.markdown||s.data.html;this.editor.cm.replaceSelection(o)})}insertClipboardImages(e){let t=this.editor.cm.coordsChar({left:event.pageX,top:event.pageY});this.editor.cm.setCursor(t);for(let n of e)this.uploadImage(n)}};var Bi=class{constructor(e){this.settingMap={scrollSync:!0,showPreview:!0,editorWidth:50},this.changeListeners={},this.loadFromLocalStorage(),this.applyToInputs(e),this.listenToInputChanges(e)}applyToInputs(e){for(let t of e){let n=t.getAttribute("name").replace("md-","");t.checked=this.settingMap[n]}}listenToInputChanges(e){for(let t of e)t.addEventListener("change",n=>{let i=t.getAttribute("name").replace("md-","");this.set(i,t.checked)})}loadFromLocalStorage(){let e=window.localStorage.getItem("md-editor-settings");if(!e)return;let t=JSON.parse(e);for(let[n,i]of Object.entries(t))i!==null&&this.settingMap[n]!==void 0&&(this.settingMap[n]=i)}set(e,t){this.settingMap[e]=t,window.localStorage.setItem("md-editor-settings",JSON.stringify(this.settingMap));for(let n of this.changeListeners[e]||[])n(t)}get(e){return this.settingMap[e]||null}onChange(e,t){let n=this.changeListeners[e]||[];n.push(t),this.changeListeners[e]=n}};function Ni({html:r,markdown:e}){return e||r}function Qu(r){window.$events.listen("editor::replace",e=>{let t=Ni(e);r.actions.replaceContent(t)}),window.$events.listen("editor::append",e=>{let t=Ni(e);r.actions.appendContent(t)}),window.$events.listen("editor::prepend",e=>{let t=Ni(e);r.actions.prependContent(t)}),window.$events.listen("editor::insert",e=>{let t=Ni(e);r.actions.insertContent(t)}),window.$events.listen("editor::focus",()=>{r.actions.focus()})}function Ju(r,e){let t={};return t[`${e}-Alt-I`]=function(n){let s=`![${n.getSelection()}](http://)`,o=n.getCursor("from");n.replaceSelection(s),n.setCursor(o.line,o.ch+s.length-1)},t[`${e}-S`]=n=>window.$events.emit("editor-save-draft"),t[`${e}-Enter`]=n=>window.$events.emit("editor-save-page"),t[`Shift-${e}-K`]=n=>r.actions.showLinkSelector(),t[`${e}-K`]=n=>r.actions.insertLink(),t[`${e}-1`]=n=>r.actions.replaceLineStart("##"),t[`${e}-2`]=n=>r.actions.replaceLineStart("###"),t[`${e}-3`]=n=>r.actions.replaceLineStart("####"),t[`${e}-4`]=n=>r.actions.replaceLineStart("#####"),t[`${e}-5`]=n=>r.actions.replaceLineStart(""),t[`${e}-D`]=n=>r.actions.replaceLineStart(""),t[`${e}-6`]=n=>r.actions.replaceLineStart(">"),t[`${e}-Q`]=n=>r.actions.replaceLineStart(">"),t[`${e}-7`]=n=>r.actions.wrapSelection("\n```\n","\n```"),t[`${e}-8`]=n=>r.actions.wrapSelection("`","`"),t[`Shift-${e}-E`]=n=>r.actions.wrapSelection("`","`"),t[`${e}-9`]=n=>r.actions.cycleCalloutTypeAtSelection(),t[`${e}-P`]=n=>r.actions.replaceLineStart("-"),t[`${e}-O`]=n=>r.actions.replaceLineStartForOrderedList(),t}var _s=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 i of e)if(i.includes("image")){let s=this.data.getData(i);n.push(s.getAsFile())}for(let i of t)i.type.includes("image")&&n.push(i);return n}},pn=_s;async function ed(r){let e=await window.importVersioned("code"),t=e.markdownEditor(r.config.inputEl);t.setOption("direction","ltr"),t.setOption("extraKeys",Ju(r,e.getMetaKey())),t.on("change",(s,o)=>r.actions.updateAndRender());let n=Bt(r.actions.syncDisplayPosition.bind(r.actions),100,!1),i=r.settings.get("scrollSync");return r.settings.onChange("scrollSync",s=>i=s),t.on("scroll",s=>{i&&n(s)}),t.on("paste",(s,o)=>{let a=new pn(o.clipboardData||o.dataTransfer);if(!a.hasItems()||a.containsTabularData())return;let l=a.getImages();for(let c of l)r.actions.uploadImage(c)}),t.on("drop",(s,o)=>{let a=o.dataTransfer.getData("bookstack/template");a&&(o.preventDefault(),r.actions.insertTemplate(a,o.pageX,o.pageY));let c=new pn(o.dataTransfer).getImages();c.length>0&&(o.stopPropagation(),o.preventDefault(),r.actions.insertClipboardImages(c))}),t}async function td(r){let e={config:r,markdown:new Oi,settings:new Bi(r.settingInputs)};return e.actions=new _i(e),e.display=new $i(e),e.cm=await ed(e),Qu(e),e}var Ui=class extends V{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.display=this.$refs.display,this.input=this.$refs.input,this.divider=this.$refs.divider,this.displayWrap=this.$refs.displayWrap;let t=this.$refs.settingContainer.querySelectorAll('input[type="checkbox"]');this.editor=null,td({pageId:this.pageId,container:this.elem,displayEl:this.display,inputEl:this.input,drawioUrl:this.getDrawioUrl(),settingInputs:Array.from(t),text:{serverUploadLimit:this.serverUploadLimitText,imageUploadError:this.imageUploadErrorText}}).then(n=>{this.editor=n,this.setupListeners(),this.emitEditorEvents(),this.scrollToTextIfNeeded(),this.editor.actions.updateAndRender()})}emitEditorEvents(){window.$events.emitPublic(this.elem,"editor-markdown::setup",{markdownIt:this.editor.markdown.getRenderer(),displayEl:this.display,codeMirrorInstance:this.editor.cm})}setupListeners(){this.elem.addEventListener("click",n=>{let i=n.target.closest("button[data-action]");if(i===null)return;let s=i.getAttribute("data-action");if(s==="insertImage"&&this.editor.actions.insertImage(),s==="insertLink"&&this.editor.actions.showLinkSelector(),s==="insertDrawing"&&(n.ctrlKey||n.metaKey)){this.editor.actions.showImageManager();return}s==="insertDrawing"&&this.editor.actions.startDrawing(),s==="fullscreen"&&this.editor.actions.fullScreen()}),this.elem.addEventListener("click",n=>{let i=n.target.closest(".editor-toolbar-label");if(!i)return;let s=this.elem.querySelectorAll(".markdown-editor-wrap");for(let o of s)o.classList.remove("active");i.closest(".markdown-editor-wrap").classList.add("active")});let e=Bt(()=>this.editor.cm.refresh(),100,!1);new ResizeObserver(e).observe(this.elem),this.handleDividerDrag()}handleDividerDrag(){this.divider.addEventListener("pointerdown",t=>{let n=this.elem.getBoundingClientRect(),i=o=>{let a=o.pageX-n.left,l=Math.min(Math.max(20,Math.floor(a/n.width*100)),80);this.displayWrap.style.flexBasis=`${100-l}%`,this.editor.settings.set("editorWidth",l)},s=o=>{window.removeEventListener("pointermove",i),window.removeEventListener("pointerup",s),this.display.style.pointerEvents=null,document.body.style.userSelect=null,this.editor.cm.refresh()};this.display.style.pointerEvents="none",document.body.style.userSelect="none",window.addEventListener("pointermove",i),window.addEventListener("pointerup",s)});let e=this.editor.settings.get("editorWidth");e&&(this.displayWrap.style.flexBasis=`${100-e}%`)}scrollToTextIfNeeded(){let t=new URL(window.location).searchParams.get("content-text");t&&this.editor.actions.scrollToText(t)}getDrawioUrl(){let e=document.querySelector("[drawio-url]");return e&&e.getAttribute("drawio-url")||""}getContent(){return this.editor.actions.getContent()}};var zi=class extends V{setup(){this.container=this.$el,this.inputContainer=this.$refs.inputContainer,this.inviteOption=this.container.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.container.querySelectorAll("input[type=password]");for(let n of t)n.disabled=e;this.inputContainer.style.display=e?"none":"block"}};var ji=class extends V{setup(){this.container=this.$el,this.type=this.$opts.type,this.textElem=this.container.querySelector("span"),this.autoHide=this.$opts.autoHide==="true",this.initialShow=this.$opts.show==="true",this.container.style.display="grid",window.$events.listen(this.type,e=>{this.show(e)}),this.container.addEventListener("click",this.hide.bind(this)),this.initialShow&&setTimeout(()=>this.show(this.textElem.textContent),100),this.hideCleanup=this.hideCleanup.bind(this)}show(e=""){if(this.container.removeEventListener("transitionend",this.hideCleanup),this.textElem.textContent=e,this.container.style.display="grid",setTimeout(()=>{this.container.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.container.classList.remove("showing"),this.container.addEventListener("transitionend",this.hideCleanup)}hideCleanup(){this.container.style.display="none",this.container.removeEventListener("transitionend",this.hideCleanup)}};var Hi=class extends V{setup(){this.removeButton=this.$refs.remove,this.showButton=this.$refs.show,this.input=this.$refs.input,this.setupListeners()}setupListeners(){je(this.removeButton,()=>{this.input.value="",this.input.classList.add("hidden"),this.removeButton.classList.add("hidden"),this.showButton.classList.remove("hidden")}),je(this.showButton,()=>{this.input.classList.remove("hidden"),this.removeButton.classList.remove("hidden"),this.showButton.classList.add("hidden")})}};var Vi=class extends V{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];jr(document.querySelector("#"+s))}if(t===null)return;e.preventDefault();let n=t.getAttribute("action"),i=t.closest("[comment]");n==="edit"&&this.editComment(i),n==="closeUpdateForm"&&this.closeUpdateForm(),n==="delete"&&this.deleteComment(i),n==="addComment"&&this.showForm(),n==="hideForm"&&this.hideForm(),n==="reply"&&this.setReply(i),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 i={text:t.querySelector("textarea").value,parent_id:this.parentId||null};this.showLoading(t);let s=this.editingComment.getAttribute("comment");window.$http.put(`/comment/${s}`,i).then(o=>{let a=document.createElement("div");a.innerHTML=o.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(i=>{let s=tr(i.data);this.container.appendChild(s),window.$components.init(s),window.$events.success(this.createdText),this.resetForm(),this.updateCount()}).catch(i=>{window.$events.showValidationErrors(i),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"}};var qi=class extends V{setup(){if(this.container=this.$el,this.pageId=this.$opts.pageId,window.importVersioned("code").then(t=>t.highlight()),this.setupNavHighlighting(),this.setupDetailsCodeBlockRefresh(),window.location.hash){let t=window.location.hash.replace(/%20/g," ").substring(1);this.goToText(t)}let e=document.querySelector(".sidebar-page-nav");e&&Ge(e,"a","click",(t,n)=>{t.preventDefault(),window.$components.first("tri-layout").showContent();let i=n.getAttribute("href").substr(1);this.goToText(i),window.history.pushState(null,null,"#"+i)})}goToText(e){let t=document.getElementById(e);if(To(".page-content [data-highlighted]",n=>{n.removeAttribute("data-highlighted"),n.style.backgroundColor=null}),t!==null)jr(t);else{let n=Zs(".page-content > div > *",e);n&&jr(n)}}setupNavHighlighting(){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(o){let a={rootMargin:"0px 0px 0px 0px",threshold:1},l=new IntersectionObserver(i,a);for(let c of o)l.observe(c)}function i(o,a){for(let l of o){let c=l.intersectionRatio===1;s(l.target.id,c)}}function s(o,a){To('a[href="#'+o+'"]',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.container.querySelectorAll("details")].forEach(n=>n.addEventListener("toggle",e))}};function rd(r){let e=new Date(r*1e3),t=e.getHours(),n=e.getMinutes();return`${(t>9?"":"0")+t}:${(n>9?"":"0")+n}`}var Gi=class extends V{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.autoSave={interval:null,frequency:3e4,last:0,pendingChange:!1},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));let e=()=>this.autoSave.pendingChange=!0;window.$events.listen("editor-html-change",e),window.$events.listen("editor-markdown-change",e),this.titleElem.addEventListener("input",e);let t=Bt(this.updateChangelogDisplay.bind(this),300,!1);this.changelogInput.addEventListener("input",t),je(this.saveDraftButton,this.saveDraft.bind(this)),je(this.discardDraftButton,this.discardDraft.bind(this)),je(this.changeEditorButtons,this.changeEditor.bind(this))}setInitialFocus(){if(this.hasDefaultTitle)return this.titleElem.select();window.setTimeout(()=>{window.$events.emit("editor::focus","")},500)}startAutoSave(){this.autoSave.interval=window.setInterval(this.runAutoSave.bind(this),this.autoSave.frequency)}runAutoSave(){Date.now()-this.autoSave.last<this.autoSave.frequency/2||!this.autoSave.pendingChange||this.saveDraft()}savePage(){this.container.closest("form").submit()}async saveDraft(){let e={name:this.titleElem.value.trim()},t=this.getEditorComponent().getContent();Object.assign(e,t);let n=!1;try{let i=await window.$http.put(`/ajax/page/${this.pageId}/save-draft`,e);this.isNewDraft||this.toggleDiscardDraftVisibility(!0),this.draftNotifyChange(`${i.data.message} ${rd(i.data.timestamp)}`),this.autoSave.last=Date.now(),i.data.warning&&!this.shownWarningsCache.has(i.data.warning)&&(window.$events.emit("warning",i.data.warning),this.shownWarningsCache.add(i.data.warning)),n=!0,this.autoSave.pendingChange=!1}catch{try{let s=`draft-save-fail-${new Date().toISOString()}`;window.localStorage.setItem(s,JSON.stringify(e))}catch{}window.$events.emit("error",this.autosaveFailText)}return n}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=window.$components.firstOnElement(this.switchDialogContainer,"confirm-dialog"),[i,s]=await Promise.all([this.saveDraft(),n.show()]);i&&s&&(window.location=t)}getEditorComponent(){return window.$components.first("markdown-editor")||window.$components.first("wysiwyg-editor")}};var Yi=class extends V{setup(){this.input=this.$refs.input,this.resetButton=this.$refs.resetButton,this.selectButton=this.$refs.selectButton,this.display=this.$refs.display,this.defaultDisplay=this.$refs.defaultDisplay,this.buttonSep=this.$refs.buttonSeperator,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.$components.first("entity-selector-popup").show(t=>{this.setValue(t.id,t.name)})}setValue(e,t){this.value=e,this.input.value=e,this.controlView(t)}controlView(e){let t=this.value&&this.value!==0;if(Wi(this.resetButton,t),Wi(this.buttonSep,t),Wi(this.defaultDisplay,!t),Wi(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 Wi(r,e){r.style.display=e?null:"none"}var Ki=class extends V{setup(){this.container=this.$el,this.cellSelector=this.$opts.cellSelector||"td,th",this.rowSelector=this.$opts.rowSelector||"tr";for(let e of this.$manyRefs.toggleAll||[])e.addEventListener("click",this.toggleAllClick.bind(this));for(let e of this.$manyRefs.toggleRow||[])e.addEventListener("click",this.toggleRowClick.bind(this));for(let e of this.$manyRefs.toggleColumn||[])e.addEventListener("click",this.toggleColumnClick.bind(this))}toggleAllClick(e){e.preventDefault(),this.toggleAllInElement(this.container)}toggleRowClick(e){e.preventDefault(),this.toggleAllInElement(e.target.closest(this.rowSelector))}toggleColumnClick(e){e.preventDefault();let t=e.target.closest(this.cellSelector),n=Array.from(t.parentElement.children).indexOf(t),i=this.container.querySelectorAll(this.rowSelector),s=[];for(let o of i){let a=o.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"))}};var id=gn(nd());var Xi=class extends V{setup(){this.container=this.$el,this.pageId=this.$opts.pageId,this.showing=!1,this.isSelection=!1,this.pointerModeLink=!0,this.pointerSectionId="",this.setupListeners(),new id.default(this.container.querySelector("button"))}setupListeners(){Ge(this.container,"input","click",(t,n)=>{n.select(),t.stopPropagation()}),bn(this.container,["click","focus"],t=>{t.stopPropagation()}),Ge(this.container,"span.icon","click",(t,n)=>{t.stopPropagation(),this.pointerModeLink=!this.pointerModeLink,n.querySelector('[data-icon="include"]').style.display=this.pointerModeLink?"none":"inline",n.querySelector('[data-icon="link"]').style.display=this.pointerModeLink?"inline":"none",this.updateForTarget()}),bn(document.body,["click","focus"],t=>{!this.showing||this.isSelection||this.hidePointer()});let e=document.querySelector(".page-content");bn(e,["mouseup","keyup"],t=>{t.stopPropagation();let n=t.target.closest('[id^="bkmrk"]');n&&this.showPointerAtTarget(n,t.pageX)})}hidePointer(){this.container.style.display=null,this.showing=!1}showPointerAtTarget(e,t){if(window.getSelection().toString().length===0)return;this.pointerSectionId=e.id,this.updateForTarget(e),this.container.style.display="block";let i=e.getBoundingClientRect(),s=this.container.getBoundingClientRect(),a=Math.min(Math.max(t,i.left),i.right)-s.width/2,l=i.top-s.height-16;this.container.style.left=`${a}px`,this.container.style.top=`${l}px`,this.showing=!0,this.isSelection=!0,setTimeout(()=>{this.isSelection=!1},100);let c=()=>{this.hidePointer(),window.removeEventListener("scroll",c,{passive:!0})};window.addEventListener("scroll",c,{passive:!0})}updateForTarget(e){let t=this.pointerModeLink?window.baseUrl(`/link/${this.pageId}#${this.pointerSectionId}`):`{{@${this.pageId}#${this.pointerSectionId}}}`;this.pointerModeLink&&!t.startsWith("http")&&(t=window.location.protocol+"//"+window.location.host+t),this.container.querySelector("input").value=t;let n=this.container.querySelector("#pointer-edit");if(n&&e){let i=n.dataset.editHref,s=e.id,o=e.textContent&&e.textContent.substring(0,50);n.href=`${i}?content-id=${s}&content-text=${encodeURIComponent(o)}`}}};var Zi=class extends V{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()}),je(this.hideButtons,t=>this.hide())}hide(e=null){Yn(this.container,120,e),this.onkeyup&&(window.removeEventListener("keyup",this.onkeyup),this.onkeyup=null),this.onHide&&this.onHide()}show(e=null,t=null){Ta(this.container,120,e),this.onkeyup=n=>{n.key==="Escape"&&this.hide()},window.addEventListener("keyup",this.onkeyup),this.onHide=t}};var Qi=class extends V{setup(){this.container=this.$el,this.mode=this.$opts.mode,this.lightContainer=this.$refs.lightContainer,this.darkContainer=this.$refs.darkContainer,this.container.addEventListener("tabs-change",t=>{let i=t.detail.showing==="color-scheme-panel-light"?"light":"dark";this.handleModeChange(i)});let e=t=>{this.updateAppColorsFromInputs(),t.target.name.startsWith("setting-app-color")&&this.updateLightForInput(t.target)};this.container.addEventListener("change",e),this.container.addEventListener("input",e)}handleModeChange(e){this.mode=e;let t=e==="dark";document.documentElement.classList.toggle("dark-mode",t),this.updateAppColorsFromInputs()}updateAppColorsFromInputs(){let t=(this.mode==="dark"?this.darkContainer:this.lightContainer).querySelectorAll('input[type="color"]');for(let n of t){let i=n.name.split("-"),s=i.indexOf("color"),o=i.slice(1,s).join("-");o==="app"&&(o="primary");let a="--color-"+o;document.body.style.setProperty(a,n.value)}}updateLightForInput(e){let t=e.name.replace("-color","-color-light"),n=e.value,i=this.hexToRgb(n),s="rgba("+[i.r,i.g,i.b,"0.15"].join(",")+")";console.log(e.name,t,n,s);let o=this.container.querySelector(`input[name="${t}"][type="hidden"]`);o.value=s}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}}};var Ji=class extends V{setup(){this.colorInput=this.$refs.input,this.resetButton=this.$refs.resetButton,this.defaultButton=this.$refs.defaultButton,this.currentColor=this.$opts.current,this.defaultColor=this.$opts.default,this.resetButton.addEventListener("click",()=>this.setValue(this.currentColor)),this.defaultButton.addEventListener("click",()=>this.setValue(this.defaultColor))}setValue(e){this.colorInput.value=e,this.colorInput.dispatchEvent(new Event("change",{bubbles:!0}))}};var eo=class extends V{setup(){this.typeControl=this.$refs.typeControl,this.pagePickerContainer=this.$refs.pagePickerContainer,this.typeControl.addEventListener("change",this.controlPagePickerVisibility.bind(this)),this.controlPagePickerVisibility()}controlPagePickerVisibility(){let e=this.typeControl.value==="page";this.pagePickerContainer.style.display=e?"block":"none"}};var Fm={move_up(r,e,t){let n=r.parentNode,i=Array.from(n.children).indexOf(r),s=Math.max(i-1,0);n.insertBefore(r,n.children[s]||null)},move_down(r,e,t){let n=r.parentNode,i=Array.from(n.children).indexOf(r),s=Math.min(i+2,n.children.length);n.insertBefore(r,n.children[s]||null)},remove(r,e,t){t.appendChild(r)},add(r,e,t){e.appendChild(r)}},to=class extends V{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.sortButtonContainer=this.$refs.sortButtonContainer,this.lastSort=null,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",handle:".handle",animation:150,onSort:this.onChange.bind(this)})}setupListeners(){this.elem.addEventListener("click",e=>{let t=e.target.closest(".scroll-box-item button[data-action]");t&&this.sortItemActionClick(t)}),this.bookSearchInput.addEventListener("input",e=>{this.filterBooksByName(this.bookSearchInput.value)}),this.sortButtonContainer.addEventListener("click",e=>{let t=e.target.closest("button[data-sort]");t&&this.sortShelfBooks(t.dataset.sort)})}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 i of t){let s=!e||i.textContent.toLowerCase().includes(n);i.style.display=s?null:"none"}}sortItemActionClick(e){let t=e.closest(".scroll-box-item"),n=e.dataset.action,i=Fm[n];i(t,this.shelfBookList,this.allBookList),this.onChange()}onChange(){let e=Array.from(this.shelfBookList.querySelectorAll("[data-id]"));this.input.value=e.map(t=>t.getAttribute("data-id")).join(",")}sortShelfBooks(e){let t=Array.from(this.shelfBookList.children),n=e===this.lastSort;t.sort((i,s)=>{let o=i.dataset[e].toLowerCase(),a=s.dataset[e].toLowerCase();return n?o<a?o===a?0:1:-1:o<a?o===a?0:-1:1});for(let i of t)this.shelfBookList.append(i);this.lastSort=this.lastSort===e?null:e,this.onChange()}};function Rm(r){let e={};for(let[t,n]of Object.entries(r))e[n]=t;return e}var ro=class extends V{setup(){this.container=this.$el,this.mapById=JSON.parse(this.$opts.keyMap),this.mapByShortcut=Rm(this.mapById),this.hintsShowing=!1,this.hideHints=this.hideHints.bind(this),this.setupListeners()}setupListeners(){window.addEventListener("keydown",e=>{e.target.closest("input, select, textarea")||this.handleShortcutPress(e)}),window.addEventListener("keydown",e=>{e.key==="?"&&(this.hintsShowing?this.hideHints():this.showHints())})}handleShortcutPress(e){let n=[e.ctrlKey?"Ctrl":"",e.metaKey?"Cmd":"",e.key].filter(s=>Boolean(s)).join(" + "),i=this.mapByShortcut[n];i&&this.runShortcut(i)&&e.preventDefault()}runShortcut(e){let t=this.container.querySelector(`[data-shortcut="${e}"]`);return t?t.matches("input, textarea, select")?(t.focus(),!0):t.matches("a, button")?(t.click(),!0):t.matches("div[tabindex]")?(t.click(),t.focus(),!0):(console.error("Shortcut attempted to be ran for element type that does not have handling setup",t),!1):!1}showHints(){let e=document.createElement("div");e.classList.add("shortcut-container"),this.container.append(e);let t=this.container.querySelectorAll("[data-shortcut]"),n=new Set;for(let i of t){let s=i.getAttribute("data-shortcut");if(n.has(s))continue;let o=this.mapById[s];this.showHintLabel(i,o,e),n.add(s)}window.addEventListener("scroll",this.hideHints),window.addEventListener("focus",this.hideHints),window.addEventListener("blur",this.hideHints),window.addEventListener("click",this.hideHints),this.hintsShowing=!0}showHintLabel(e,t,n){let i=e.getBoundingClientRect(),s=document.createElement("div");s.classList.add("shortcut-hint"),s.textContent=t;let o=document.createElement("div");o.classList.add("shortcut-linkage"),o.style.left=i.x+"px",o.style.top=i.y+"px",o.style.width=i.width+"px",o.style.height=i.height+"px",n.append(s,o);let a=s.getBoundingClientRect();s.style.insetInlineStart=`${i.x+i.width-(a.width+6)}px`,s.style.insetBlockStart=`${i.y+(i.height-a.height)/2}px`}hideHints(){this.container.querySelector(".shortcut-container").remove(),window.removeEventListener("scroll",this.hideHints),window.removeEventListener("focus",this.hideHints),window.removeEventListener("blur",this.hideHints),window.removeEventListener("click",this.hideHints),this.hintsShowing=!1}};var Om=["Control","Alt","Shift","Meta","Super"," ","+","Tab","Escape"],no=class extends V{setup(){this.input=this.$el,this.setupListeners()}setupListeners(){this.listenerRecordKey=this.listenerRecordKey.bind(this),this.input.addEventListener("focus",()=>{this.startListeningForInput()}),this.input.addEventListener("blur",()=>{this.stopListeningForInput()})}startListeningForInput(){this.input.addEventListener("keydown",this.listenerRecordKey)}listenerRecordKey(e){if(Om.includes(e.key))return;let t=[e.ctrlKey?"Ctrl":"",e.metaKey?"Cmd":"",e.key];this.input.value=t.filter(n=>Boolean(n)).join(" + ")}stopListeningForInput(){this.input.removeEventListener("keydown",this.listenerRecordKey)}};var io=class extends V{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 i=n.getAttribute("data-drag-content");if(i){let s=JSON.parse(i);for(let[o,a]of Object.entries(s))t.setData(o,a)}},revertOnSpill:!0,dropBubble:!0,dragoverBubble:!1})}};var oo=class extends V{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()})}};var so=class extends V{setup(){this.container=this.$el,this.tabs=Array.from(this.container.querySelectorAll('[role="tab"]')),this.panels=Array.from(this.container.querySelectorAll('[role="tabpanel"]')),this.container.addEventListener("click",e=>{let t=e.target.closest('[role="tab"]');t&&this.show(t.getAttribute("aria-controls"))})}show(e){for(let t of this.panels)t.toggleAttribute("hidden",t.id!==e);for(let t of this.tabs){let i=t.getAttribute("aria-controls")===e;t.setAttribute("aria-selected",i?"true":"false")}this.$emit("change",{showing:e})}};var ao=class extends V{setup(){this.addRemoveComponentEl=this.$refs.addRemove,this.container=this.$el,this.rowSelector=this.$opts.rowSelector,this.setupListeners()}setupListeners(){this.container.addEventListener("input",e=>{let t=window.$components.firstOnElement(this.addRemoveComponentEl,"add-remove-rows");!this.hasEmptyRows()&&e.target.value&&t.add()})}hasEmptyRows(){return[...this.container.querySelectorAll(this.rowSelector)].find(n=>[...n.querySelectorAll("input")].filter(i=>i.value).length===0)!==void 0}};var lo=class extends V{setup(){this.container=this.$el,this.list=this.$refs.list,this.searchInput=this.$refs.searchInput,this.searchButton=this.$refs.searchButton,this.searchCancel=this.$refs.searchCancel,this.setupListeners()}setupListeners(){Ge(this.container,"[template-action]","click",this.handleTemplateActionClick.bind(this)),Ge(this.container,".pagination a","click",this.handlePaginationClick.bind(this)),Ge(this.container,".template-item-content","click",this.handleTemplateItemClick.bind(this)),Ge(this.container,".template-item","dragstart",this.handleTemplateItemDragStart.bind(this)),this.searchInput.addEventListener("keypress",e=>{e.key==="Enter"&&(e.preventDefault(),this.performSearch())}),this.searchButton.addEventListener("click",e=>this.performSearch()),this.searchCancel.addEventListener("click",e=>{this.searchInput.value="",this.performSearch()})}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"),i=t.closest("[template-id]").getAttribute("template-id");this.insertTemplate(i,n)}async insertTemplate(e,t="replace"){let n=await window.$http.get(`/templates/${e}`),i="editor::"+t;window.$events.emit(i,n.data)}async handlePaginationClick(e,t){e.preventDefault();let n=t.getAttribute("href"),i=await window.$http.get(n);this.list.innerHTML=i.data}async performSearch(){let e=this.searchInput.value,t=await window.$http.get("/templates",{search:e});this.searchCancel.style.display=e?"block":"none",this.list.innerHTML=t.data}};var co=class extends V{setup(){this.input=this.$el.querySelector("input[type=hidden]"),this.checkbox=this.$el.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)}};var uo=class extends V{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 i of this.tabs){let s=i.dataset.tab===e;i.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}};var ho=class extends V{setup(){this.container=this.$el,this.input=this.$refs.input,this.userInfoContainer=this.$refs.userInfo,Ge(this.container,"a.dropdown-search-item","click",this.selectUser.bind(this))}selectUser(e,t){e.preventDefault(),this.input.value=t.getAttribute("data-id"),this.userInfoContainer.innerHTML=t.innerHTML,this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.hide()}hide(){window.$components.firstOnElement(this.container,"dropdown").hide()}};var fo=class extends V{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)}};function od(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,o=n[s];r.formatter.apply("callout"+o)}),r.shortcuts.add("meta+shift+K","",function(){window.$components.first("entity-selector-popup").show(function(t){r.selection.isCollapsed()?r.insertContent(r.dom.createHTML("a",{href:t.link},r.dom.encode(t.name))):r.formatter.apply("link",{href:t.link}),r.selection.collapse(!1),r.focus()})})}function sd(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 ad(r){let t=new URL(window.location).searchParams.get("content-id");t&&Pm(r,t)}function Pm(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 gr,po;function Mm(r){return r&&!!(r.textContent||r.innerText)}function ld(r,e,t){let n=new pn(t.clipboardData||t.dataTransfer);if(!n.hasItems()||n.containsTabularData())return;let i=n.getImages();for(let s of i){let o="image-"+Math.random().toString(16).slice(2),a=window.baseUrl("/loading.gif");t.preventDefault(),setTimeout(()=>{r.insertContent(`<p><img src="${a}" id="${o}"></p>`),$m(s,e.pageId).then(l=>{let c=l.name.replace(/"/g,""),u=`<img src="${l.thumbs.display}" alt="${c}" />`,d=r.dom.create("a",{target:"_blank",href:l.url},u);r.dom.replace(d,o)}).catch(l=>{r.dom.remove(o),window.$events.emit("error",e.translations.imageUploadErrorText),console.log(l)})},10)}}async function $m(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 _m(r,e){let t=r.selection.getNode();t.nodeName==="IMG"&&(gr=r.dom.getParent(t,".mceTemp"),!gr&&t.parentNode.nodeName==="A"&&!Mm(t.parentNode)&&(gr=t.parentNode)),t.hasAttribute("contenteditable")&&t.getAttribute("contenteditable")==="false"&&(po=t)}function Bm(r,e,t){let n=r.dom,i=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(o=>{r.selection.setRng(i),r.undoManager.transact(function(){r.execCommand("mceInsertContent",!1,o.data.html)})})),n.getParent(i.startContainer,".mceTemp")?t.preventDefault():gr&&(t.preventDefault(),r.undoManager.transact(function(){r.selection.setRng(i),r.selection.setNode(gr),n.remove(gr)})),!t.isDefaultPrevented()&&po&&(t.preventDefault(),r.undoManager.transact(function(){let o=r.selection.getNode(),a=r.selection.getRng(),l=o.closest("body > *");a.startOffset>a.startContainer.length/2?l.after(po):l.before(po)})),t.isDefaultPrevented()||ld(r,e,t),gr=null}function cd(r,e){r.on("dragstart",()=>_m(r,e)),r.on("drop",t=>Bm(r,e,t)),r.on("paste",t=>ld(r,e,t))}function ud(r){return["undo redo","styles","bold italic underline forecolor backcolor formatoverflow","alignleft aligncenter alignright alignjustify","bullist numlist listoverflow",r.textDirection==="rtl"?"ltr rtl":"","link table imagemanager-insert insertoverflow","code about fullscreen"].filter(n=>Boolean(n)).join(" | ")}function Nm(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:"customhr codeeditor drawio media details"})}function Um(r){r.ui.registry.addContextToolbar("linkcontexttoolbar",{predicate(e){return e.closest("a")!==null},position:"node",scope:"node",items:"link unlink openlink"})}function zm(r){r.ui.registry.addContextToolbar("imagecontexttoolbar",{predicate(e){return e.closest("img")!==null},position:"node",scope:"node",items:"image"})}function dd(r,e){Nm(r),Um(r),zm(r)}var jm={"table-delete-column":'<svg width="24" height="24"><path d="M21 19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14c1.1 0 2 .9 2 2zm-2 0V5h-4v2.2h-2V5h-2v2.2H9V5H5v14h4v-2.1h2V19h2v-2.1h2V19Z"/><path d="M14.829 10.585 13.415 12l1.414 1.414c.943.943-.472 2.357-1.414 1.414L12 13.414l-1.414 1.414c-.944.944-2.358-.47-1.414-1.414L10.586 12l-1.414-1.415c-.943-.942.471-2.357 1.414-1.414L12 10.585l1.344-1.343c1.111-1.112 2.2.627 1.485 1.343z" style="fill-rule:nonzero"/></svg>',"table-delete-row":'<svg width="24" height="24"><path d="M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14c0 1.1-.9 2-2 2zm0-2h14v-4h-2.2v-2H19v-2h-2.2V9H19V5H5v4h2.1v2H5v2h2.1v2H5Z"/><path d="M13.415 14.829 12 13.415l-1.414 1.414c-.943.943-2.357-.472-1.414-1.414L10.586 12l-1.414-1.414c-.944-.944.47-2.358 1.414-1.414L12 10.586l1.415-1.414c.942-.943 2.357.471 1.414 1.414L13.415 12l1.343 1.344c1.112 1.111-.627 2.2-1.343 1.485z" style="fill-rule:nonzero"/></svg>',"table-insert-column-after":'<svg width="24" height="24"><path d="M16 5h-5v14h5c1.235 0 1.234 2 0 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11c1.229 0 1.236 2 0 2zm-7 6V5H5v6zm0 8v-6H5v6zm11.076-6h-2v2c0 1.333-2 1.333-2 0v-2h-2c-1.335 0-1.335-2 0-2h2V9c0-1.333 2-1.333 2 0v2h1.9c1.572 0 1.113 2 .1 2z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path d="M8 19h5V5H8C6.764 5 6.766 3 8 3h11a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H8c-1.229 0-1.236-2 0-2zm7-6v6h4v-6zm0-8v6h4V5ZM3.924 11h2V9c0-1.333 2-1.333 2 0v2h2c1.335 0 1.335 2 0 2h-2v2c0 1.333-2 1.333-2 0v-2h-1.9c-1.572 0-1.113-2-.1-2z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path d="M5 8v5h14V8c0-1.235 2-1.234 2 0v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8C3 6.77 5 6.764 5 8zm6 7H5v4h6zm8 0h-6v4h6zM13 3.924v2h2c1.333 0 1.333 2 0 2h-2v2c0 1.335-2 1.335-2 0v-2H9c-1.333 0-1.333-2 0-2h2v-1.9c0-1.572 2-1.113 2-.1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path d="M19 16v-5H5v5c0 1.235-2 1.234-2 0V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v11c0 1.229-2 1.236-2 0zm-6-7h6V5h-6zM5 9h6V5H5Zm6 11.076v-2H9c-1.333 0-1.333-2 0-2h2v-2c0-1.335 2-1.335 2 0v2h2c1.333 0 1.333 2 0 2h-2v1.9c0 1.572-2 1.113-2 .1z"/></svg>',table:'<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2ZM5 14v5h6v-5zm14 0h-6v5h6zm0-7h-6v5h6zM5 12h6V7H5Z"/></svg>',"table-delete-table":'<svg width="24" height="24"><path d="M5 21a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14c0 1.1-.9 2-2 2zm0-2h14V5H5v14z"/><path d="m13.711 15.423-1.71-1.712-1.712 1.712c-1.14 1.14-2.852-.57-1.71-1.712l1.71-1.71-1.71-1.712c-1.143-1.142.568-2.853 1.71-1.71L12 10.288l1.711-1.71c1.141-1.142 2.852.57 1.712 1.71L13.71 12l1.626 1.626c1.345 1.345-.76 2.663-1.626 1.797z" style="fill-rule:nonzero;stroke-width:1.20992"/></svg>'};function hd(r){for(let[e,t]of Object.entries(jm))r.ui.registry.addIcon(e,t)}function fd(r){return r.tagName.toLowerCase()==="code-block"}function md(r,e,t,n){window.$components.first("code-editor").open(e,t,(i,s)=>{n(i,s),r.focus()})}function pd(r,e){md(r,e.getContent(),e.getLanguage(),(t,n)=>{e.setContent(t,n)})}function Hm(r){let e=r.getDoc(),t=e.defaultView;class n extends t.HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});let s=document.querySelectorAll('link[rel="stylesheet"]:not([media="print"])'),o=Array.from(s).map(l=>l.cloneNode(!1)),a=document.createElement("div");a.style.pointerEvents="none",a.contentEditable="false",a.classList.add("CodeMirrorContainer"),this.shadowRoot.append(...o,a)}getLanguage(){let s=l=>(l.split(" ").filter(u=>u.startsWith("language-"))[0]||"").replace("language-",""),o=this.querySelector("code"),a=this.querySelector("pre");return s(a.className)||o&&s(o.className)||""}setContent(s,o){this.cm&&importVersioned("code").then(c=>{c.setContent(this.cm,s),c.setMode(this.cm,o,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-${o}`}getContent(){let s=this.querySelector("code")||this.querySelector("pre"),o=document.createElement("pre");o.innerHTML=s.innerHTML.replace(/\ufeff/g,"");let a=o.querySelectorAll("br");for(let l of a)l.replaceWith(`
|
|
`);return o.textContent}connectedCallback(){let s=Date.now();if(this.cm)return;this.cleanChildContent();let o=this.getContent(),l=o.split(`
|
|
`).length*19.2+18+24;this.style.height=`${l}px`;let c=this.shadowRoot.querySelector(".CodeMirrorContainer"),u=d=>{this.cm=d.wysiwygView(c,o,this.getLanguage()),setTimeout(()=>d.updateLayout(this.cm),10),setTimeout(()=>this.style.height=null,12)};window.importVersioned("code").then(d=>{let h=Date.now()-s<20?20:0;setTimeout(()=>u(d),h)})}cleanChildContent(){let s=this.querySelector("pre");if(s)for(let o of s.childNodes)o.nodeName==="#text"&&o.textContent==="\uFEFF"&&o.remove()}}t.customElements.define("code-block",n)}function Vm(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.ui.registry.addButton("editcodeeditor",{tooltip:"Edit code block",icon:"edit-block",onAction(){r.execCommand("codeeditor")}}),r.addCommand("codeeditor",()=>{let t=r.selection.getNode(),n=t.ownerDocument;if(fd(t))pd(r,t);else{let i=r.selection.getContent({format:"text"});md(r,i,"",(s,o)=>{let a=n.createElement("pre"),l=n.createElement("code");l.classList.add(`language-${o}`),l.innerText=s,a.append(l),r.insertContent(a.outerHTML)})}}),r.on("dblclick",t=>{let n=r.selection.getNode();fd(n)&&pd(r,n)}),r.on("PreInit",()=>{r.parser.addNodeFilter("pre",function(t){for(let n of t){let i=tinymce.html.Node.create("code-block",{contenteditable:"false"}),s=n.getAll("span");for(let o of s)o.unwrap();n.attr("style",null),n.wrap(i)}}),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.ui.registry.addContextToolbar("codeeditor",{predicate:function(t){return t.nodeName.toLowerCase()==="code-block"},items:"editcodeeditor",position:"node",scope:"node"}),r.on("PreInit",()=>{Hm(r)})}function gd(r){return Vm}var Et=null,yr=null,vr={};function Ns(r){return r.hasAttribute("drawio-diagram")}function qm(r,e=null){Et=r,yr=e,window.$components.first("image-manager").show(function(n){if(e){let i=e.querySelector("img");Et.undoManager.transact(function(){Et.dom.setAttrib(i,"src",n.url),Et.dom.setAttrib(e,"drawio-diagram",n.id)})}else{let i=`<div drawio-diagram="${n.id}" contenteditable="false"><img src="${n.url}"></div>`;Et.insertContent(i)}},"drawio")}function vd(r,e=null){Et=r,yr=e,kt.show(vr.drawioUrl,Wm,Gm)}async function Gm(r){let e="image-"+Math.random().toString(16).slice(2),t=window.baseUrl("/loading.gif"),n=i=>{i.status===413?window.$events.emit("error",vr.translations.serverUploadLimitText):window.$events.emit("error",vr.translations.imageUploadErrorText),console.log(i)};if(yr){kt.close();let i=yr.querySelector("img");try{let s=await kt.upload(r,vr.pageId);Et.undoManager.transact(function(){Et.dom.setAttrib(i,"src",s.url),Et.dom.setAttrib(yr,"drawio-diagram",s.id)})}catch(s){n(s)}return}setTimeout(async()=>{Et.insertContent(`<div drawio-diagram contenteditable="false"><img src="${t}" id="${e}"></div>`),kt.close();try{let i=await kt.upload(r,vr.pageId);Et.undoManager.transact(function(){Et.dom.setAttrib(e,"src",i.url),Et.dom.get(e).parentNode.setAttribute("drawio-diagram",i.id)})}catch(i){Et.dom.remove(e),n(i)}},5)}function Wm(){if(!yr)return Promise.resolve("");let r=yr.getAttribute("drawio-diagram");return kt.load(r)}function yd(r){return vr=r,function(e,t){e.addCommand("drawio",()=>{let n=e.selection.getNode();vd(e,Ns(n)?n:null)}),e.ui.registry.addIcon("diagram",`<svg width="24" height="24" fill="${vr.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,i){if(i==="drawing-manager"){let s=e.selection.getNode();qm(e,Ns(s)?s:null)}}}),e.on("dblclick",n=>{let i=e.selection.getNode();Ns(i)&&vd(e,i)}),e.on("SetContent",function(){let n=e.dom.select("body > div[drawio-diagram]");n.length&&e.undoManager.transact(function(){for(let i of n)i.setAttribute("contenteditable","false")})})}}function Ym(r,e){r.addCommand("InsertHorizontalRule",function(){let t=document.createElement("hr"),n=r.selection.getNode();n.parentNode.insertBefore(t,n)}),r.ui.registry.addButton("customhr",{icon:"horizontal-rule",tooltip:"Insert horizontal line",onAction(){r.execCommand("InsertHorizontalRule")}})}function bd(r){return Ym}function Km(r,e){r.ui.registry.addButton("imagemanager-insert",{title:"Insert image",icon:"image",tooltip:"Insert image",onAction(){window.$components.first("image-manager").show(function(n){let i=n.thumbs.display||n.url,s=`<a href="${n.url}" target="_blank">`;s+=`<img src="${i}" alt="${n.name}">`,s+="</a>",r.execCommand("mceInsertContent",!1,s)},"gallery")}})}function xd(r){return Km}function Xm(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 wd(r){return Xm}var Ed=["p","h1","h2","h3","h4","h5","h6","div","blockquote","pre","code-block","details","ul","ol","table"];function Zm(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(){tg(r)}}),r.ui.registry.addButton("editdetials",{icon:"togglelabel",tooltip:"Edit label",onAction(){Cd(r)}}),r.on("dblclick",t=>{!mo(r)||t.target.closest("doc-root")||Cd(r)}),r.ui.registry.addButton("toggledetails",{icon:"togglefold",tooltip:"Toggle open/closed",onAction(){mo(r).toggleAttribute("open"),r.focus()}}),r.addCommand("InsertDetailsBlock",function(){let t=r.selection.getContent({format:"html"}),n=document.createElement("details"),i=document.createElement("summary"),s="details-"+Date.now();n.setAttribute("data-id",s),n.appendChild(i),t||(t="<p><br></p>"),n.innerHTML+=t,r.insertContent(n.outerHTML),r.focus();let o=r.dom.select(`[data-id="${s}"]`)[0]||null;if(o){let a=o.querySelector("doc-root > *");a&&a.focus(),o.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",()=>{rg(r)})}function Cd(r){let e=mo(r);r.windowManager.open(Jm(r)).setData({summary:Qm(e)})}function mo(r){return r.selection.getNode().closest("details")}function Qm(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();eg(r,t),e.close()}}}function eg(r,e){let t=mo(r);t&&r.undoManager.transact(()=>{let n=t.querySelector("summary");n||(n=document.createElement("summary"),t.prepend(n)),n.textContent=e})}function tg(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 i of n)e.parentNode.insertBefore(i,e);e.remove()})}r.focus(),r.selection.moveToBookmark(t)}function rg(r){r.parser.addNodeFilter("details",function(e){for(let t of e)ng(t)}),r.serializer.addNodeFilter("details",function(e){for(let t of e)Us(t),t.attr("open",null)}),r.serializer.addNodeFilter("doc-root",function(e){for(let t of e)t.unwrap()})}function ng(r){Us(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;Ed.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 Us(r){r.attr("contenteditable",null);let e=!1;for(let t of r.children())t.name==="doc-root"&&(t.unwrap(),e=!0);e&&Us(r)}function Sd(r){return Zm}function ig(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(i){i.isActive()?r.execCommand("RemoveList"):r.execCommand("InsertUnorderedList",null,{"list-item-attributes":{class:"task-list-item"},"list-style-type":"tasklist"})},onSetup(i){r.on("NodeChange",s=>{let o=s.parents.find(l=>l.nodeName==="LI"),a=o&&o.classList.contains("task-list-item");i.setActive(Boolean(a))})}});let t=r.ui.registry.getAll().buttons.bullist;t.onSetup=function(i){r.on("NodeChange",s=>{let o=s.parents.find(c=>c.nodeName==="LI"),a=o&&o.classList.contains("task-list-item"),l=o&&o.parentNode.nodeName==="UL";i.setActive(Boolean(l&&!a))})},t.onAction=function(){og(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(i){for(let s of i)s.attributes.map.class==="task-list-item"&&ag(s)}),r.serializer.addNodeFilter("li",function(i){for(let s of i)s.attributes.map.class==="task-list-item"&&lg(s)})}),r.on("click",function(i){let s=i.target;s.nodeName==="LI"&&s.classList.contains("task-list-item")&&(sg(i,s,r),i.preventDefault())})}function og(r){let e=r.closest("li");return e&&e.parentNode.nodeName==="UL"&&e.classList.contains("task-list-item")}function sg(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 ag(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 lg(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 Ad(r){return ig}var cg=[{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"}]}],ug={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"}}},dg=["#BFEDD2","","#FBEEB8","","#F8CAC6","","#ECCAFA","","#C2E0F4","","#2DC26B","","#F1C40F","","#E03E2D","","#B96AD9","","#3598DB","","#169179","","#E67E23","","#BA372A","","#843FA1","","#236FA1","","#ECF0F1","","#CED4D9","","#95A5A6","","#7E8C8D","","#34495E","","#000000","","#ffffff",""];function hg(r,e,t){t.filetype==="file"&&window.$components.first("entity-selector-popup").show(i=>{r(i.link,{text:i.name,title:i.name})}),t.filetype==="image"&&window.$components.first("image-manager").show(function(i){r(i.url,{alt:i.name})},"gallery")}function fg(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",gd(r)),window.tinymce.PluginManager.add("customhr",bd(r)),window.tinymce.PluginManager.add("imagemanager",xd(r)),window.tinymce.PluginManager.add("about",wd(r)),window.tinymce.PluginManager.add("details",Sd(r)),window.tinymce.PluginManager.add("tasklist",Ad(r)),r.drawioUrl&&(window.tinymce.PluginManager.add("drawio",yd(r)),e.push("drawio")),e.filter(t=>Boolean(t))}function pg(){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 mg(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 gg(r){return function(e){e.on("ExecCommand change input NodeChange ObjectResized",t),sd(e),cd(e,r),e.on("init",()=>{t(),ad(e),window.editor=e,od(e)}),e.on("PreInit",()=>{mg(e)});function t(){r.darkMode&&e.contentDocument.documentElement.classList.add("dark-mode"),window.$events.emit("editor-html-change","")}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 vg(r){return`
|
|
html, body, html.dark-mode {
|
|
background: ${r.darkMode?"#222":"#fff"};
|
|
}
|
|
body {
|
|
padding-left: 15px !important;
|
|
padding-right: 15px !important;
|
|
height: initial !important;
|
|
margin:0!important;
|
|
margin-left: auto! important;
|
|
margin-right: auto !important;
|
|
overflow-y: hidden !important;
|
|
}`.trim().replace(`
|
|
`,"")}function kd(r){return window.tinymce.addI18n(r.language,r.translationMap),{width:"100%",height:"100%",selector:"#html-editor",cache_suffix:"?version="+document.querySelector('script[src*="/dist/app.js"]').getAttribute("src").split("?version=")[1],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|style]",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:fg(r),contextmenu:!1,toolbar:ud(r),content_style:vg(r),style_formats:cg,style_formats_merge:!1,media_alt_source:!1,media_poster:!1,formats:ug,table_style_by_css:!0,table_use_colgroups:!0,file_picker_types:"file image",color_map:dg,file_picker_callback:hg,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+=pg()},setup(t){hd(t),dd(t,r),gg(r)(t)}}}var go=class extends V{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=kd({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).then(e=>{this.editor=e[0]})}getDrawIoUrl(){let e=document.querySelector("[drawio-url]");return e?e.getAttribute("drawio-url"):""}getContent(){return{html:this.editor.getContent()}}};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=Ws;window.$events=qs;var Or=new Ys;window.trans=Or.get.bind(Or);window.trans_choice=Or.getPlural.bind(Or);window.trans_plural=Or.parsePlural.bind(Or);Ao(zs);window.$components=ko;So();
|
|
/*! Bundled license information:
|
|
|
|
clipboard/dist/clipboard.min.js:
|
|
(*!
|
|
* clipboard.js v2.0.11
|
|
* https://clipboardjs.com/
|
|
*
|
|
* Licensed MIT © Zeno Rocha
|
|
*)
|
|
|
|
sortablejs/modular/sortable.esm.js:
|
|
(**!
|
|
* Sortable 1.15.0
|
|
* @author RubaXa <trash@rubaxa.org>
|
|
* @author owenm <owen23355@gmail.com>
|
|
* @license MIT
|
|
*)
|
|
*/
|
|
//# sourceMappingURL=app.js.map
|