s-r;if(t.topo+i){var l=Math.min(t.top,(c?s:t.bottom)-i);l!=o&&(a.scrollTop=l)}var p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,f=Ht(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>f;return d&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.leftf+p-3&&(a.scrollLeft=t.right+(d?0:10)-f),a}function Gn(e,t){null!=t&&(Jn(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Vn(e){Jn(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function $n(e,t,n){null==t&&null==n||Jn(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Yn(e,t){Jn(e),e.curOp.scrollToPos=t}function Jn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;Xn(e,ln(e,t.from),ln(e,t.to),t.margin)}}function Xn(e,t,n,r){var o=Wn(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});$n(e,o.scrollLeft,o.scrollTop)}function Qn(e,t){Math.abs(e.doc.scrollTop-t)<2||(ha||Nr(e,{top:t}),Zn(e,t,!0),ha&&Nr(e),Er(e,100))}function Zn(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function er(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Hn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function tr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+jt(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Ft(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function nr(e,t){t||(t=tr(e));var n=e.display.barWidth,r=e.display.barHeight;rr(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&jn(e),rr(e,tr(e)),n=e.display.barWidth,r=e.display.barHeight}function rr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function or(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ja(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Es[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ts(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?er(e,t):Qn(e,t)},e),e.display.scrollbars.addClass&&s(e.display.wrapper,e.display.scrollbars.addClass)}function ir(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ks},gt(e.curOp)}function ar(e){bt(e.curOp,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ws(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function cr(e){e.updatedDisplay=e.mustUpdate&&Cr(e.cm,e.update)}function lr(e){var t=e.cm,n=t.display;e.updatedDisplay&&jn(t),e.barMeasure=tr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Wt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Ft(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Ht(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function pr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeftt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Xa&&he(e.doc,t)o.viewFrom?br(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)br(e);else if(t<=o.viewFrom){var i=xr(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):br(e)}else if(n>=o.viewTo){var a=xr(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):br(e)}else{var s=xr(e,t,t,-1),u=xr(e,n,n+r,1);s&&u?(o.view=o.view.slice(0,s.index).concat(vt(e,s.lineN,u.lineN)).concat(o.view.slice(u.index)),o.viewTo+=r):br(e)}var c=o.externalMeasured;c&&(n=o.lineN&&t=r.viewTo)){var i=r.view[On(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==f(a,n)&&a.push(n)}}}function br(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function xr(e,t,n,r){var o,i=On(e,t),a=e.display.view;if(!Xa||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,u=0;u0){if(i==a.length-1)return null;o=s+a[i].size-t,i++}else o=s-t;t+=o,n+=o}for(;he(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Tr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=vt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=vt(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,On(e,n)))),r.viewTo=n}function _r(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Je(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(r.line>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength?We(t.mode,r.state):null,u=$e(e,i,r,!0);s&&(r.state=s),i.styles=u.styles;var c=i.styleClasses,l=u.classes;l?i.styleClasses=l:c&&(i.styleClasses=null);for(var p=!a||a.length!=i.styles.length||c!=l&&(!c||!l||c.bgClass!=l.bgClass||c.textClass!=l.textClass),f=0;!p&&fn)return Er(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&dr(e,function(){for(var t=0;t=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==_r(e))return!1;zn(e)&&(br(e),n.dims=Tn(e));var i=o.first+o.size,a=Math.max(n.visible.from-e.options.viewportMargin,o.first),s=Math.min(i,n.visible.to+e.options.viewportMargin);r.viewFroms&&r.viewTo-s<20&&(s=Math.min(i,r.viewTo)),Xa&&(a=he(e.doc,a),s=me(e.doc,s));var u=a!=r.viewFrom||s!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;Tr(e,a,s),r.viewOffset=ye(A(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var c=_r(e);if(!u&&0==c&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var l=Or(e);return c>4&&(r.lineDiv.style.display="none"),Dr(e,r.updateLineNumbers,n.dims),c>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Ar(l),t(r.cursorDiv),t(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,u&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,Er(e,400)),r.updateLineNumbers=null,!0}function Sr(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Ht(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+jt(e.display)-zt(e),n.top)}),t.visible=Fn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Cr(e,t);r=!1){jn(e);var o=tr(e);An(e),nr(e,o),Ir(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Nr(e,t){var n=new ws(e,t);if(Cr(e,n)){jn(e),Sr(e,n);var r=tr(e);An(e),nr(e,r),Ir(e,r),n.finish()}}function Dr(e,n,r){function o(t){var n=t.nextSibling;return xa&&Na&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var i=e.display,a=e.options.lineNumbers,s=i.lineDiv,u=s.firstChild,c=i.view,l=i.viewFrom,p=0;p-1&&(h=!1),_t(e,d,l,r)),h&&(t(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(L(e.options,l)))),u=d.node.nextSibling}else{var m=Nt(e,d,l,r);s.insertBefore(m,u)}l+=d.size}for(;u;)u=o(u)}function Mr(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Ir(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Ft(e)+"px"}function Lr(e){var n=e.display.gutters,o=e.options.gutters;t(n);for(var i=0;i-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Rr(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function jr(e){var t=Rr(e);return t.x*=As,t.y*=As,t}function Br(e,t){var n=Rr(t),r=n.x,o=n.y,i=e.display,a=i.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||o&&u){if(o&&Na&&xa)e:for(var c=t.target,l=i.view;c!=a;c=c.parentNode)for(var p=0;p=0){var a=H(i.from(),o.from()),s=F(i.to(),o.to()),u=i.empty()?o.from()==o.head:i.from()==i.head;r<=t&&--t,e.splice(--r,2,new Ss(u?s:a,u?a:s))}}return new Cs(e,t)}function Hr(e,t){return new Cs([new Ss(e,t||e)],0)}function zr(e){return e.text?P(e.from.line+e.text.length-1,m(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Kr(e,t){if(R(e,t.from)<0)return e;if(R(e,t.to)<=0)return zr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=zr(t).ch-t.to.ch),P(n,r)}function Ur(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,y)}xt(e,"change",e,t)}function Jr(e,t,n){function r(e,o,i){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),m(e.done)):void 0}function oo(e,t,n,r){var o=e.history;o.undone.length=0;var i,a,s=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&o.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=ro(o,o.lastOp==r)))a=m(i.changes),0==R(t.from,t.to)&&0==R(t.from,a.to)?a.to=zr(t):i.changes.push(to(e,t));else{var u=m(o.done);for(u&&u.ranges||so(e.sel,o.done),i={changes:[to(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,a||Oe(e,"historyAdded")}function io(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ao(e,t,n,r){var o=e.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||io(e,i,m(o.done),t))?o.done[o.done.length-1]=t:so(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&no(o.undone)}function so(e,t){var n=m(t);n&&n.ranges&&n.equals(e)||t.push(e)}function uo(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i})}function co(e){if(!e)return null;for(var t,n=0;n-1&&(m(s)[p]=c[p],delete c[p])}}}return r}function ho(e,t,n,r){if(r){var o=e.anchor;if(n){var i=R(t,o)<0;i!=R(n,o)<0?(o=t,t=n):i!=R(t,n)<0&&(t=n)}return new Ss(o,t)}return new Ss(n||t,t)}function mo(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),To(e,new Cs([ho(e.sel.primary(),t,n,o)],0),r)}function vo(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:s.to>t.ch))){if(o&&(Oe(u,"beforeCursorEnter"),u.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var c=u.find(r<0?1:-1),l=void 0;if((r<0?u.inclusiveRight:u.inclusiveLeft)&&(c=Co(e,c,-r,c&&c.line==t.line?i:null)),c&&c.line==t.line&&(l=R(c,n))&&(r<0?l<0:l>0))return Oo(e,c,t,r,o)}var p=u.find(r<0?-1:1);return(r<0?u.inclusiveLeft:u.inclusiveRight)&&(p=Co(e,p,r,p.line==t.line?i:null)),p?Oo(e,p,t,r,o):null}}return t}function Ao(e,t,n,r,o){var i=r||1,a=Oo(e,t,n,i,o)||!o&&Oo(e,t,n,i,!0)||Oo(e,t,n,-i,o)||!o&&Oo(e,t,n,-i,!0);return a||(e.cantEdit=!0,P(e.first,0))}function Co(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?K(e,P(t.line-1)):null:n>0&&t.ch==(r||A(e,t.line)).text.length?t.line=0;--o)Mo(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else Mo(e,t)}}function Mo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=R(t.from,t.to)){var n=Ur(e,t);oo(e,t,n,e.cm?e.cm.curOp.id:NaN),Po(e,t,n,Z(e,t));var r=[];Jr(e,function(e,n){n||-1!=f(r,e.history)||(Ho(e.history,t),r.push(e.history)),Po(e,t,null,Z(e,t))})}}function Io(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var o,i=e.history,a=e.sel,s="undo"==t?i.done:i.undone,u="undo"==t?i.undone:i.done,c=0;c=0;--d){var h=function(n){var r=o.changes[n];if(r.origin=t,p&&!No(e,r,!1))return s.length=0,{};l.push(to(e,r));var i=n?Ur(e,r):m(s);Po(e,r,i,po(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:zr(r)});var a=[];Jr(e,function(e,t){t||-1!=f(a,e.history)||(Ho(e.history,r),a.push(e.history)),Po(e,r,null,po(e,r))})}(d);if(h)return h.v}}}}function Lo(e,t){if(0!=t&&(e.first+=t,e.sel=new Cs(v(e.sel.ranges,function(e){return new Ss(P(e.anchor.line+t,e.anchor.ch),P(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){gr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linei&&(t={from:t.from,to:P(i,A(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=C(e,t.from,t.to),n||(n=Ur(e,t)),e.cm?Ro(e.cm,t,r):Yr(e,t,r),_o(e,n,qa)}}function Ro(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,s=!1,u=i.line;e.options.lineWrapping||(u=D(pe(A(r,i.line))),r.iter(u,a.line+1,function(e){if(e==o.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Ce(e),Yr(r,t,n,En(e)),e.options.lineWrapping||(r.iter(u,i.line+t.text.length,function(e){var t=be(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),ot(r,i.line),Er(e,400);var c=t.text.length-(a.line-i.line)-1;t.full?gr(e):i.line!=a.line||1!=t.text.length||$r(e.doc,t)?gr(e,i.line,a.line+1,c):yr(e,i.line,"text");var l=Se(e,"changes"),p=Se(e,"change");if(p||l){var f={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};p&&xt(e,"change",e,f),l&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function jo(e,t,n,r,o){if(r||(r=n),R(r,n)<0){var i;i=[r,n],n=i[0],r=i[1]}"string"==typeof t&&(t=e.splitLines(t)),Do(e,{from:n,to:r,text:t,origin:o})}function Bo(e,t,n,r){n0||0==s&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=o("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(le(e,t.line,t,n,a)||t.line!=n.line&&le(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");G()}a.addToHistory&&oo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var u,c=t.line,p=e.cm;if(e.iter(c,n.line+1,function(e){p&&a.collapsed&&!p.options.lineWrapping&&pe(e)==p.display.maxLine&&(u=!0),a.collapsed&&c!=t.line&&N(e,0),J(e,new V(a,c==t.line?t.ch:null,c==n.line?n.ch:null)),++c}),a.collapsed&&e.iter(t.line,n.line+1,function(t){ve(e,t)&&N(t,0)}),a.clearOnEnter&&ts(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(W(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++Ds,a.atomic=!0),p){if(u&&(p.curOp.updateMaxLine=!0),a.collapsed)gr(p,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var f=t.line;f<=n.line;f++)yr(p,f,"text");a.atomic&&ko(p.doc),xt(p,"markerAdded",p,a)}return a}function Vo(e,t,n,r,o){r=l(r),r.shared=!1;var i=[Go(e,t,n,r,o)],a=i[0],s=r.widgetNode;return Jr(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),i.push(Go(e,K(e,t),K(e,n),r,o));for(var u=0;u-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var u=e.dataTransfer.getData("Text");if(u){var c;if(t.state.draggingText&&!t.state.draggingText.copy&&(c=t.listSelections()),_o(t.doc,Hr(n,n)),c)for(var l=0;l=0;t--)jo(e.doc,"",r[t].from,r[t].to,"+delete");Vn(e)})}function di(e,t,n){var r=k(e.text,t+n,n);return r<0||r>e.text.length?null:r}function hi(e,t,n){var r=di(e,t.ch,n);return null==r?null:new P(t.line,r,n<0?"after":"before")}function mi(e,t,n,r,o){if(e){var i=Ee(n,t.doc.direction);if(i){var a,s=o<0?m(i):i[0],u=o<0==(1==s.level),c=u?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var l=Vt(t,n);a=o<0?n.text.length-1:0;var p=$t(t,l,a).top;a=w(function(e){return $t(t,l,e).top==p},o<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=di(n,a,1))}else a=o<0?s.to:s.from;return new P(r,a,c)}}return new P(r,o<0?n.text.length:0,o<0?"before":"after")}function vi(e,t,n,r){var o=Ee(t,e.doc.direction);if(!o)return hi(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=_e(o,n.ch,n.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&f>=l.begin)){var d=p?"before":"after";return new P(n.line,f,d)}}var h=function(e,t,r){for(var i=function(e,t){return t?new P(n.line,u(e,1),"before"):new P(n.line,e,"after")};e>=0&&e0==(1!=a.level),c=s?r.begin:u(r.end,-1);if(a.from<=c&&c0?l.end:u(l.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:o.length-1,r,c(v)))?null:m}function gi(e,t){var n=A(e.doc,t),r=pe(n);return r!=n&&(t=D(r)),mi(!0,e,r,t,1)}function yi(e,t){var n=A(e.doc,t),r=fe(n);return r!=n&&(t=D(r)),mi(!0,e,n,t,-1)}function bi(e,t){var n=gi(e,t.line),r=A(e.doc,n.line),o=Ee(r,e.doc.direction);if(!o||0==o[0].level){var i=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=i&&t.ch;return P(n.line,a?0:i,n.sticky)}return n}function xi(e,t,n){if("string"==typeof t&&!(t=Us[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),o=t(e)!=Ua}finally{e.display.shift=r,e.state.suppressEdits=!1}return o}function Ti(e,t,n){for(var r=0;r-1&&(R((o=s.ranges[o]).from(),t)<0||t.xRel>0)&&(R(o.to(),t)>0||t.xRel<0)?Pi(e,r,t,i):ji(e,r,t,i)}function Pi(e,t,n,r){var o=e.display,i=!1,a=hr(e,function(t){xa&&(o.scroller.draggable=!1),e.state.draggingText=!1,we(o.wrapper.ownerDocument,"mouseup",a),we(o.wrapper.ownerDocument,"mousemove",s),we(o.scroller,"dragstart",u),we(o.scroller,"drop",a),i||(De(t),r.addNew||mo(e.doc,n,null,null,r.extend),xa||ya&&9==ba?setTimeout(function(){o.wrapper.ownerDocument.body.focus(),o.input.focus()},20):o.input.focus())}),s=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return i=!0};xa&&(o.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop(),ts(o.wrapper.ownerDocument,"mouseup",a),ts(o.wrapper.ownerDocument,"mousemove",s),ts(o.scroller,"dragstart",u),ts(o.scroller,"drop",a),Ln(e),setTimeout(function(){return o.input.focus()},20)}function Ri(e,t,n){if("char"==n)return new Ss(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ss(P(t.line,0),K(e.doc,P(t.line+1,0)));var r=n(e,t);return new Ss(r.from,r.to)}function ji(e,t,n,r){function o(t){if(0!=R(g,t))if(g=t,"rectangle"==r.unit){for(var o=[],i=e.options.tabSize,a=p(A(c,n.line).text,n.ch,i),s=p(A(c,t.line).text,t.ch,i),u=Math.min(a,s),m=Math.max(a,s),v=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));v<=y;v++){var b=A(c,v).text,x=d(b,u,i);u==m?o.push(new Ss(P(v,x),P(v,x))):b.length>x&&o.push(new Ss(P(v,x),P(v,d(b,m,i))))}o.length||o.push(new Ss(n,n)),To(c,Fr(h.ranges.slice(0,f).concat(o),f),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var T,_=l,E=Ri(e,t,r.unit),k=_.anchor;R(E.anchor,k)>0?(T=E.head,k=H(_.from(),E.anchor)):(T=E.anchor,k=F(_.to(),E.head));var w=h.ranges.slice(0);w[f]=Bi(e,new Ss(K(c,k),T)),To(c,Fr(w,f),Wa)}}function i(t){var n=++b,s=wn(e,t,!0,"rectangle"==r.unit);if(s)if(0!=R(s,g)){e.curOp.focus=a(),o(s);var l=Fn(u,c);(s.line>=l.to||s.liney.bottom?20:0;p&&setTimeout(hr(e,function(){b==n&&(u.scroller.scrollTop+=p,i(t))}),50)}}function s(t){e.state.selectingText=!1,b=1/0,De(t),u.input.focus(),we(u.wrapper.ownerDocument,"mousemove",x),we(u.wrapper.ownerDocument,"mouseup",T),c.history.lastSelOrigin=null}var u=e.display,c=e.doc;De(t);var l,f,h=c.sel,m=h.ranges;if(r.addNew&&!r.extend?(f=c.sel.contains(n),l=f>-1?m[f]:new Ss(n,n)):(l=c.sel.primary(),f=c.sel.primIndex),"rectangle"==r.unit)r.addNew||(l=new Ss(n,n)),n=wn(e,t,!0,!0),f=-1;else{var v=Ri(e,n,r.unit);l=r.extend?ho(l,v.anchor,v.head,r.extend):v}r.addNew?-1==f?(f=m.length,To(c,Fr(m.concat([l]),f),{scroll:!1,origin:"*mouse"})):m.length>1&&m[f].empty()&&"char"==r.unit&&!r.extend?(To(c,Fr(m.slice(0,f).concat(m.slice(f+1)),0),{scroll:!1,origin:"*mouse"}),h=c.sel):go(c,f,l,Wa):(f=0,To(c,new Cs([l],0),Wa),h=c.sel);var g=n,y=u.wrapper.getBoundingClientRect(),b=0,x=hr(e,function(e){Re(e)?i(e):s(e)}),T=hr(e,s);e.state.selectingText=T,ts(u.wrapper.ownerDocument,"mousemove",x),ts(u.wrapper.ownerDocument,"mouseup",T)}function Bi(e,t){var n=t.anchor,r=t.head,o=A(e.doc,n.line);if(0==R(n,r)&&n.sticky==r.sticky)return t;var i=Ee(o);if(!i)return t;var a=_e(i,n.ch,n.sticky),s=i[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==i.length)return t;var c;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var l=_e(i,r.ch,r.sticky),p=l-a||(r.ch-n.ch)*(1==s.level?-1:1);c=l==u-1||l==u?p<0:p>0}var f=i[u+(c?-1:0)],d=c==(1==f.level),h=d?f.from:f.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new Ss(new P(n.line,h,m),r)}function Fi(e,t,n,r){var o,i;if(t.touches)o=t.touches[0].clientX,i=t.touches[0].clientY;else try{o=t.clientX,i=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&De(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!Se(e,n))return Ie(t);i-=s.top-a.viewOffset;for(var u=0;u=o){return Oe(e,n,e,M(e.doc,i),e.options.gutters[u],t),Ie(t)}}}function Hi(e,t){return Fi(e,t,"gutterClick",!0)}function zi(e,t){Pt(e.display,t)||Ki(e,t)||Ae(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function Ki(e,t){return!!Se(e,"gutterContextMenu")&&Fi(e,t,"gutterContextMenu",!1)}function Ui(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),tn(e)}function qi(e){Lr(e),gr(e),Hn(e)}function Wi(e,t,n){if(!t!=!(n&&n!=Ys)){var r=e.display.dragFunctions,o=t?ts:we;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function Gi(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ja(e.display.wrapper,"CodeMirror-wrap"),xe(e)),kn(e),gr(e),tn(e),setTimeout(function(){return nr(e)},100)}function Vi(e,t){var n=this;if(!(this instanceof Vi))return new Vi(e,t);this.options=t=t?l(t):{},l(Js,t,!1),Pr(t);var r=t.value;"string"==typeof r&&(r=new Ps(r,t.mode,null,t.lineSeparator,t.direction)),this.doc=r;var o=new Vi.inputStyles[t.inputStyle](this),i=this.display=new O(e,r,o);i.wrapper.CodeMirror=this,Lr(this),Ui(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),or(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Fa,keySeq:null,specialChars:null},t.autofocus&&!Sa&&i.input.focus(),ya&&ba<11&&setTimeout(function(){return n.display.input.reset(!0)},20),$i(this),ni(),ir(this),this.curOp.forceUpdate=!0,Xr(this,r),t.autofocus&&!Sa||this.hasFocus()?setTimeout(c(Pn,this),20):Rn(this);for(var a in Xs)Xs.hasOwnProperty(a)&&Xs[a](n,t[a],Ys);zn(this),t.finishInit&&t.finishInit(this);for(var s=0;s400}var o=e.display;ts(o.scroller,"mousedown",hr(e,Di)),ya&&ba<11?ts(o.scroller,"dblclick",hr(e,function(t){if(!Ae(e,t)){var n=wn(e,t);if(n&&!Hi(e,t)&&!Pt(e.display,t)){De(t);var r=e.findWordAt(n);mo(e.doc,r.anchor,r.head)}}})):ts(o.scroller,"dblclick",function(t){return Ae(e,t)||De(t)}),Ra||ts(o.scroller,"contextmenu",function(t){return zi(e,t)});var i,a={end:0};ts(o.scroller,"touchstart",function(t){if(!Ae(e,t)&&!n(t)&&!Hi(e,t)){o.input.ensurePolled(),clearTimeout(i);var r=+new Date;o.activeTouch={start:r,moved:!1,prev:r-a.end<=300?a:null},1==t.touches.length&&(o.activeTouch.left=t.touches[0].pageX,o.activeTouch.top=t.touches[0].pageY)}}),ts(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),ts(o.scroller,"touchend",function(n){var i=o.activeTouch;if(i&&!Pt(o,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var a,s=e.coordsChar(o.activeTouch,"page");a=!i.prev||r(i,i.prev)?new Ss(s,s):!i.prev.prev||r(i,i.prev.prev)?e.findWordAt(s):new Ss(P(s.line,0),K(e.doc,P(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),De(n)}t()}),ts(o.scroller,"touchcancel",t),ts(o.scroller,"scroll",function(){o.scroller.clientHeight&&(Qn(e,o.scroller.scrollTop),er(e,o.scroller.scrollLeft,!0),Oe(e,"scroll",e))}),ts(o.scroller,"mousewheel",function(t){return Br(e,t)}),ts(o.scroller,"DOMMouseScroll",function(t){return Br(e,t)}),ts(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(t){Ae(e,t)||Le(t)},over:function(t){Ae(e,t)||(Zo(e,t),Le(t))},start:function(t){return Qo(e,t)},drop:hr(e,Xo),leave:function(t){Ae(e,t)||ei(e)}};var s=o.input.getField();ts(s,"keyup",function(t){return Ci.call(e,t)}),ts(s,"keydown",hr(e,Oi)),ts(s,"keypress",hr(e,Si)),ts(s,"focus",function(t){return Pn(e,t)}),ts(s,"blur",function(t){return Rn(e,t)})}function Yi(e,t,n,r){var o,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=Je(e,t).state:n="prev");var a=e.options.tabSize,s=A(i,t),u=p(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,l=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=i.mode.indent(o,s.text.slice(l.length),s.text))==Ua||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>i.first?p(A(i,t-1).text,null,a):0:"add"==n?c=u+e.options.indentUnit:"subtract"==n?c=u-e.options.indentUnit:"number"==typeof n&&(c=u+n),c=Math.max(0,c);var f="",d=0;if(e.options.indentWithTabs)for(var m=Math.floor(c/a);m;--m)d+=a,f+="\t";if(d1)if(Zs&&Zs.text.join("\n")==t){if(r.ranges.length%Zs.text.length==0){u=[];for(var c=0;c=0;p--){var f=r.ranges[p],d=f.from(),h=f.to();f.empty()&&(n&&n>0?d=P(d.line,d.ch-n):e.state.overwrite&&!a?h=P(h.line,Math.min(A(i,h.line).text.length,h.ch+m(s).length)):Zs&&Zs.lineWise&&Zs.text.join("\n")==t&&(d=h=P(d.line,0))),l=e.curOp.updateInput;var g={from:d,to:h,text:u?u[p%u.length]:s,origin:o||(a?"paste":e.state.cutIncoming?"cut":"+input")};Do(e.doc,g),xt(e,"inputRead",e,g)}t&&!a&&Zi(e,t),Vn(e),e.curOp.updateInput=l,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Qi(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||dr(t,function(){return Xi(t,n,0,null,"paste")}),!0}function Zi(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s-1){a=Yi(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(A(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Yi(e,o.head.line,"smart"));a&&xt(e,"electricInput",e,o.head.line)}}}function ea(e){for(var t=[],n=[],r=0;r=e.first+e.size)&&(t=new P(r,t.ch,t.sticky),c=A(e,r))}function a(r){var a;if(null==(a=o?vi(e.cm,c,t,n):hi(c,t,n))){if(r||!i())return!1;t=mi(o,e.cm,c,t.line,n)}else t=a;return!0}var s=t,u=n,c=A(e,t.line);if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var l=null,p="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||a(!d);d=!1){var h=c.text.charAt(t.ch)||"\n",m=T(h,f)?"w":p&&"\n"==h?"n":!p||/\s/.test(h)?null:"p";if(!p||d||m||(m="s"),l&&l!=m){n<0&&(n=1,a(),t.sticky="after");break}if(m&&(l=m),n>0&&!a(!d))break}var v=Ao(e,t,s,u,!0);return j(s,v)&&(v.hitSide=!0),v}function oa(e,t,n,r){var o,i=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*bn(e.display),3);o=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(var c;c=fn(e,a,o),c.outside;){if(n<0?o<=0:o>=i.height){c.hitSide=!0;break}o+=5*n}return c}function ia(e,t){var n=Gt(e,t.line);if(!n||n.hidden)return null;var r=A(e.doc,t.line),o=Ut(n,r,t.line),i=Ee(r,e.doc.direction),a="left";if(i){a=_e(i,t.ch)%2?"right":"left"}var s=Yt(o.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function aa(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function sa(e,t){return t&&(e.bad=!0),e}function ua(e,t,n,r,o){function i(e){return function(t){return t.id==e}}function a(){l&&(c+=p,l=!1)}function s(e){e&&(a(),c+=e)}function u(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void s(n||t.textContent.replace(/\u200b/g,""));var c,f=t.getAttribute("cm-marker");if(f){var d=e.findMarks(P(r,0),P(o+1,0),i(+f));return void(d.length&&(c=d[0].find(0))&&s(C(e.doc,c.from,c.to).join(p)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p)$/i.test(t.nodeName);h&&a();for(var m=0;m=15&&(Ea=!1,xa=!0);var La,Pa=Na&&(Ta||Ea&&(null==Ia||Ia<12.11)),Ra=ha||ya&&ba>=9,ja=function(t,n){var r=t.className,o=e(n).exec(r);if(o){var i=r.slice(o.index+o[0].length);t.className=r.slice(0,o.index)+(i?o[1]+i:"")}};La=document.createRange?function(e,t,n,r){var o=document.createRange();return o.setEnd(r||e,n),o.setStart(e,t),o}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Ba=function(e){e.select()};Aa?Ba=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ya&&(Ba=function(e){try{e.select()}catch(e){}});var Fa=function(){this.id=null};Fa.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var Ha,za,Ka=30,Ua={toString:function(){return"CodeMirror.Pass"}},qa={scroll:!1},Wa={origin:"*mouse"},Ga={origin:"+move"},Va=[""],$a=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ya=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Ja=!1,Xa=!1,Qa=null,Za=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?r.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,u=/[1n]/;return function(n,r){var c="ltr"==r?"L":"R";if(0==n.length||"ltr"==r&&!o.test(n))return!1;for(var l=n.length,p=[],f=0;f=this.string.length},ls.prototype.sol=function(){return this.pos==this.lineStart},ls.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ls.prototype.next=function(){if(this.post},ls.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},ls.prototype.skipToEnd=function(){this.pos=this.string.length},ls.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ls.prototype.backUp=function(e){this.pos-=e},ls.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},ls.prototype.current=function(){return this.string.slice(this.start,this.pos)},ls.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ls.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ls.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ps=function(e,t){this.state=e,this.lookAhead=t},fs=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};fs.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},fs.prototype.baseToken=function(e){var t=this;if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)t.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},fs.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fs.fromSaved=function(e,t,n){return t instanceof ps?new fs(e,We(e.mode,t.state),n,t.lookAhead):new fs(e,We(e.mode,t),n)},fs.prototype.save=function(e){var t=!1!==e?We(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ps(t,this.maxLookAhead):t};var ds=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n},hs=function(e,t,n){this.text=e,re(this,t),this.height=n?n(this):1};hs.prototype.lineNo=function(){return D(this)},Ne(hs);var ms,vs={},gs={},ys=null,bs=null,xs={left:0,right:0,top:0,bottom:0},Ts=function(e,t,n){this.cm=n;var o=this.vert=r("div",[r("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=r("div",[r("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(o),e(i),ts(o,"scroll",function(){o.clientHeight&&t(o.scrollTop,"vertical")}),ts(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ya&&ba<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ts.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Ts.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ts.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ts.prototype.zeroWidthHack=function(){var e=Na&&!wa?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Fa,this.disableVert=new Fa},Ts.prototype.enableZeroWidthBar=function(e,t,n){function r(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},Ts.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var _s=function(){};_s.prototype.update=function(){return{bottom:0,right:0}},_s.prototype.setScrollLeft=function(){},_s.prototype.setScrollTop=function(){},_s.prototype.clear=function(){};var Es={native:Ts,null:_s},ks=0,ws=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Fn(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Ht(e),this.force=n,this.dims=Tn(e),this.events=[]};ws.prototype.signal=function(e,t){Se(e,t)&&this.events.push(arguments)},ws.prototype.finish=function(){for(var e=this,t=0;t=0&&R(e,o.to())<=0)return r}return-1};var Ss=function(e,t){this.anchor=e,this.head=t};Ss.prototype.from=function(){return H(this.anchor,this.head)},Ss.prototype.to=function(){return F(this.anchor,this.head)},Ss.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Ko.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=this,r=e,o=e+t;r1||!(this.children[0]instanceof Ko))){var u=[];this.collapse(u),this.children=[new Ko(u)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;n50){for(var s=i.lines.length%25+25,u=s;u10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,o=0;ot.display.maxLineLength&&(t.display.maxLine=l,t.display.maxLineLength=p,t.display.maxLineChanged=!0)}null!=o&&t&&this.collapsed&&gr(t,o,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&ko(t.doc)),t&&xt(t,"markerCleared",t,this,o,i),n&&ar(t),this.parent&&this.parent.clear()}},Ms.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var r,o,i=0;i=0;c--)Do(r,o[c]);u?xo(this,u):this.cm&&Vn(this.cm)}),undo:vr(function(){Io(this,"undo")}),redo:vr(function(){Io(this,"redo")}),undoSelection:vr(function(){Io(this,"undo",!0)}),redoSelection:vr(function(){Io(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=K(this,e),t=K(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,function(i){var a=i.markedSpans;if(a)for(var s=0;s=u.to||null==u.from&&o!=e.line||null!=u.from&&o==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++o}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=i,++n}),K(this,P(n,t))},indexFromPos:function(e){e=K(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to0)o=new P(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),P(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=A(e.doc,o.line-1).text;a&&(o=new P(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),P(o.line-1,a.length-1),o,"+transpose"))}n.push(new Ss(o,o))}e.setSelections(n)})},newlineAndIndent:function(e){return dr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&0==R(t,this.pos)&&n==this.button};var Vs,$s,Ys={toString:function(){return"CodeMirror.Init"}},Js={},Xs={};Vi.defaults=Js,Vi.optionHandlers=Xs;var Qs=[];Vi.defineInitHook=function(e){return Qs.push(e)};var Zs=null,eu=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Fa,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};eu.prototype.init=function(e){function t(e){if(!Ae(o,e)){if(o.somethingSelected())Ji({lineWise:!1,text:o.getSelections()}),"cut"==e.type&&o.replaceSelection("",null,"cut");else{if(!o.options.lineWiseCopyCut)return;var t=ea(o);Ji({lineWise:!0,text:t.text}),"cut"==e.type&&o.operation(function(){o.setSelections(t.ranges,0,qa),o.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=Zs.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=na(),s=a.firstChild;o.display.lineSpace.insertBefore(a,o.display.lineSpace.firstChild),s.value=Zs.text.join("\n");var u=document.activeElement;Ba(s),setTimeout(function(){o.display.lineSpace.removeChild(a),u.focus(),u==i&&r.showPrimarySelection()},50)}}var n=this,r=this,o=r.cm,i=r.div=e.lineDiv;ta(i,o.options.spellcheck),ts(i,"paste",function(e){Ae(o,e)||Qi(e,o)||ba<=11&&setTimeout(hr(o,function(){return n.updateFromDOM()}),20)}),ts(i,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),ts(i,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),ts(i,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),ts(i,"touchstart",function(){return r.forceCompositionEnd()}),ts(i,"input",function(){n.composing||n.readFromDOMSoon()}),ts(i,"copy",t),ts(i,"cut",t)},eu.prototype.prepareSelection=function(){var e=Cn(this.cm,!1);return e.focus=this.cm.state.focused,e},eu.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},eu.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),o=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||o.line=t.display.viewFrom&&ia(t,r)||{node:s[0].measure.map[2],offset:0},c=o.linee.firstLine()&&(r=P(r.line-1,A(e.doc,r.line-1).length)),o.ch==A(e.doc,o.line).text.length&&o.linet.viewTo-1)return!1;var i,a,s;r.line==t.viewFrom||0==(i=On(e,r.line))?(a=D(t.view[0].line),s=t.view[0].node):(a=D(t.view[i].line),s=t.view[i-1].node.nextSibling);var u,c,l=On(e,o.line);if(l==t.view.length-1?(u=t.viewTo-1,c=t.lineDiv.lastChild):(u=D(t.view[l+1].line)-1,c=t.view[l+1].node.previousSibling),!s)return!1;for(var p=e.doc.splitLines(ua(e,s,c,a,u)),f=C(e.doc,P(a,0),P(u,A(e.doc,u).text.length));p.length>1&&f.length>1;)if(m(p)==m(f))p.pop(),f.pop(),u--;else{if(p[0]!=f[0])break;p.shift(),f.shift(),a++}for(var d=0,h=0,v=p[0],g=f[0],y=Math.min(v.length,g.length);dr.ch&&b.charCodeAt(b.length-h-1)==x.charCodeAt(x.length-h-1);)d--,h++;p[p.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(d).replace(/\u200b+$/,"");var _=P(a,d),E=P(u,f.length?m(f).length-h:0);return p.length>1||p[0]||R(_,E)?(jo(e.doc,p,_,E,"+input"),!0):void 0},eu.prototype.ensurePolled=function(){this.forceCompositionEnd()},eu.prototype.reset=function(){this.forceCompositionEnd()},eu.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},eu.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},eu.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||dr(this.cm,function(){return gr(e.cm)})},eu.prototype.setUneditable=function(e){e.contentEditable="false"},eu.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||hr(this.cm,Xi)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},eu.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},eu.prototype.onContextMenu=function(){},eu.prototype.resetPosition=function(){},eu.prototype.needsContentAttribute=!0;var tu=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Fa,this.hasSelection=!1,this.composing=null};tu.prototype.init=function(e){function t(e){if(!Ae(o,e)){if(o.somethingSelected())Ji({lineWise:!1,text:o.getSelections()});else{if(!o.options.lineWiseCopyCut)return;var t=ea(o);Ji({lineWise:!0,text:t.text}),"cut"==e.type?o.setSelections(t.ranges,null,qa):(r.prevInput="",i.value=t.text.join("\n"),Ba(i))}"cut"==e.type&&(o.state.cutIncoming=!0)}}var n=this,r=this,o=this.cm;this.createField(e);var i=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Aa&&(i.style.width="0px"),ts(i,"input",function(){ya&&ba>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),ts(i,"paste",function(e){Ae(o,e)||Qi(e,o)||(o.state.pasteIncoming=!0,r.fastPoll())}),ts(i,"cut",t),ts(i,"copy",t),ts(e.scroller,"paste",function(t){Pt(e,t)||Ae(o,t)||(o.state.pasteIncoming=!0,r.focus())}),ts(e.lineSpace,"selectstart",function(t){Pt(e,t)||De(t)}),ts(i,"compositionstart",function(){var e=o.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:o.markText(e,o.getCursor("to"),{className:"CodeMirror-composing"})}}),ts(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},tu.prototype.createField=function(e){this.wrapper=na(),this.textarea=this.wrapper.firstChild},tu.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Cn(e);if(e.options.moveInputWithCursor){var o=cn(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},tu.prototype.showSelection=function(e){var t=this.cm,r=t.display;n(r.cursorDiv,e.cursors),n(r.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},tu.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&Ba(this.textarea),ya&&ba>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",ya&&ba>=9&&(this.hasSelection=null))}},tu.prototype.getField=function(){return this.textarea},tu.prototype.supportsTouch=function(){return!1},tu.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!Sa||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},tu.prototype.blur=function(){this.textarea.blur()},tu.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},tu.prototype.receivedFocus=function(){this.slowPoll()},tu.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},tu.prototype.fastPoll=function(){function e(){n.poll()||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},tu.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||os(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==r&&!t.somethingSelected())return!1;if(ya&&ba>=9&&this.hasSelection===o||Na&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r="\u200b"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(r.length,o.length);a1e3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},tu.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},tu.prototype.onKeyPress=function(){ya&&ba>=9&&(this.hasSelection=null),this.fastPoll()},tu.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=o.somethingSelected(),t="\u200b"+(e?a.value:"");a.value="\u21da",a.value=t,r.prevInput=e?"":"\u200b",a.selectionStart=1,a.selectionEnd=t.length,i.selForContextMenu=o.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=l,a.style.cssText=c,ya&&ba<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=u),null!=a.selectionStart){(!ya||ya&&ba<9)&&t();var e=0,n=function(){i.selForContextMenu==o.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"\u200b"==r.prevInput?hr(o,So)(o):e++<10?i.detectingSelectAll=setTimeout(n,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(n,200)}}var r=this,o=r.cm,i=o.display,a=r.textarea,s=wn(o,e),u=i.scroller.scrollTop;if(s&&!Ea){o.options.resetSelectionOnContextMenu&&-1==o.doc.sel.contains(s)&&hr(o,To)(o.doc,Hr(s),qa);var c=a.style.cssText,l=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var p=r.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(ya?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var f;if(xa&&(f=window.scrollY),i.input.focus(),xa&&window.scrollTo(null,f),i.input.reset(),o.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,i.selForContextMenu=o.doc.sel,clearTimeout(i.detectingSelectAll),ya&&ba>=9&&t(),Ra){Le(e);var d=function(){we(window,"mouseup",d),setTimeout(n,20)};ts(window,"mouseup",d)}else setTimeout(n,50)}},tu.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},tu.prototype.setUneditable=function(){},tu.prototype.needsContentAttribute=!1,function(e){function t(t,r,o,i){e.defaults[t]=r,o&&(n[t]=i?function(e,t,n){n!=Ys&&o(e,t,n)}:o)}var n=e.optionHandlers;e.defineOption=t,e.Init=Ys,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Gr(e)},!0),t("indentUnit",2,Gr,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){Vr(e),tn(e),gr(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,n.push(P(r,i))}r++});for(var o=n.length-1;o>=0;o--)jo(e.doc,t,n[o],P(n[o].line,n[o].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ys&&e.refresh()}),t("specialCharPlaceholder",ct,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",Sa?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!Ma),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){Ui(e),qi(e)},!0),t("keyMap","default",function(e,t,n){var r=pi(t),o=n!=Ys&&pi(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,Gi,!0),t("gutters",[],function(e){Pr(e.options),qi(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?_n(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return nr(e)},!0),t("scrollbarStyle","native",function(e){or(e),nr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Pr(e.options),qi(e)},!0),t("firstLineNumber",1,qi,!0),t("lineNumberFormatter",function(e){return e},qi,!0),t("showCursorWhenSelecting",!1,An,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("readOnly",!1,function(e,t){"nocursor"==t&&(Rn(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Wi),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,An,!0),t("singleCursorHeightPerLine",!0,An,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,Vr,!0),t("addModeClass",!1,Vr,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,Vr,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(Vi),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,o=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&hr(this,t[e])(this,n,o),Oe(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](pi(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nr&&(Yi(t,i.head.line,e,!0),r=i.head.line,o==t.doc.sel.primIndex&&Vn(t));else{var a=i.from(),s=i.to(),u=Math.max(r,a.line);r=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var c=u;c0&&go(t.doc,o,new Ss(a,l[o].to()),qa)}}}),getTokenAt:function(e,t){return et(this,e,t)},getLineTokens:function(e,t){return et(this,P(e),t,!0)},getTokenTypeAt:function(e){e=K(this.doc,e);var t,n=Ye(this,A(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]i&&(e=i,o=!0),r=A(this.doc,e)}else r=e;return an(this,r,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-ye(r):0)},defaultTextHeight:function(){return bn(this.display)},defaultCharWidth:function(){return xn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i=this.display;e=cn(this,K(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var u=Math.max(i.wrapper.clientHeight,this.doc.height),c=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==o?(s=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?s=0:"middle"==o&&(s=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&qn(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:mr(Oi),triggerOnKeyPress:mr(Si),triggerOnKeyUp:Ci,triggerOnMouseDown:mr(Di),execCommand:function(e){if(Us.hasOwnProperty(e))return Us[e].call(null,this)},triggerElectric:mr(function(e){Zi(this,e)}),findPosH:function(e,t,n,r){var o=this,i=1;t<0&&(i=-1,t=-t);for(var a=K(this.doc,e),s=0;s0&&s(n.charAt(r-1));)--r;for(;o.5)&&kn(this),Oe(this,"refresh",this)}),swapDoc:mr(function(e){var t=this.doc;return t.cm=null,Xr(this,e),tn(this),this.display.input.reset(),$n(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,xt(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ne(e),e.registerHelper=function(t,r,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=o},e.registerGlobalHelper=function(t,r,o,i){e.registerHelper(t,r,i),n[t]._global.push({pred:o,val:i})}}(Vi);var nu="iter insert remove copy getEditor constructor".split(" ");for(var ru in Ps.prototype)Ps.prototype.hasOwnProperty(ru)&&f(nu,ru)<0&&(Vi.prototype[ru]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ps.prototype[ru]));return Ne(Ps),Vi.inputStyles={textarea:tu,contenteditable:eu},Vi.defineMode=function(e){Vi.defaults.mode||"null"==e||(Vi.defaults.mode=e),He.apply(this,arguments)},Vi.defineMIME=ze,Vi.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Vi.defineMIME("text/plain","null"),Vi.defineExtension=function(e,t){Vi.prototype[e]=t},Vi.defineDocExtension=function(e,t){Ps.prototype[e]=t},Vi.fromTextArea=pa,function(e){e.off=we,e.on=ts,e.wheelEventPixels=jr,e.Doc=Ps,e.splitLines=rs,e.countColumn=p,e.findColumn=d,e.isWordChar=x,e.Pass=Ua,e.signal=Oe,e.Line=hs,e.changeEnd=zr,e.scrollbarModel=Es,e.Pos=P,e.cmpPos=R,e.modes=ss,e.mimeModes=us,e.resolveMode=Ke,e.getMode=Ue,e.modeExtensions=cs,e.extendMode=qe,e.copyState=We,e.startState=Ve,e.innerMode=Ge,e.commands=Us,e.keyMap=Ks,e.keyName=li,e.isModifierKey=ui,e.lookupKey=si,e.normalizeKeyMap=ai,e.StringStream=ls,e.SharedTextMarker=Is,e.TextMarker=Ms,e.LineWidget=Ns,e.e_preventDefault=De,e.e_stopPropagation=Me,e.e_stop=Le,e.addClass=s,e.contains=i,e.rmClass=ja,e.keyNames=Bs}(Vi),Vi.version="5.37.0",Vi})},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){r(this,e),this.observers={}}return e.prototype.on=function(e,t){var n=this;e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})},e.prototype.off=function(e,t){var n=this;this.observers[e]&&this.observers[e].forEach(function(){if(t){var r=n.observers[e].indexOf(t);r>-1&&n.observers[e].splice(r,1)}else delete n.observers[e]})},e.prototype.emit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function o(){return!e||"string"===typeof e}for(var i="string"!==typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return o()?{}:{obj:e,k:r(i.shift())}}function a(e,t,n){var r=i(e,t,Object);r.obj[r.k]=n}function s(e,t,n,r){var o=i(e,t,Object),a=o.obj,s=o.k;a[s]=a[s]||[],r&&(a[s]=a[s].concat(n)),r||a[s].push(n)}function u(e,t){var n=i(e,t),r=n.obj,o=n.k;if(r)return r[o]}function c(e,t,n){for(var r in t)r in e?"string"===typeof e[r]||e[r]instanceof String||"string"===typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):c(e[r],t[r],n):e[r]=t[r];return e}function l(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function p(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,function(e){return f[e]}):e}t.e=r,t.a=o,t.h=a,t.f=s,t.d=u,t.b=c,t.g=l,t.c=p;var f={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"}},function(e,t,n){e.exports=n(244)},function(e,t,n){var r,o,i;!function(n,a){o=[t],r=a,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=void 0,r={randomId:function(){return Math.random().toString(36).split(".")[1]},returnFirstDefined:function(){for(var e=void 0,t=void 0,n=arguments.length,r=Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"INSERT":return n(e,t);case"REMOVE":return r(e,t);case"REMOVEALL":return[];default:return e}},i=function(e){var t=void 0,n=[],r=function(){return t},o=function(r){t=e(t,r),n.forEach(function(e){return e()})},i=function(e){return n.push(e),function(){n=n.filter(function(t){return t!==e})}};return o({}),{getState:r,dispatch:o,subscribe:i}}(o);e.default=i})},function(e,t,n){"use strict";function r(e){u=s({},u,e)}function o(){return u}function i(e){c=e}function a(){return c}t.c=r,t.a=o,t.d=i,t.b=a;var s=Object.assign||function(e){for(var t=1;t1)for(var n=1;n2?r-2:0),i=2;i1?n-1:0),o=1;o1?t-1:0),r=1;r2?n-2:0),o=2;o-1&&e%1==0&&e<=r}var r=9007199254740991;e.exports=n},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){(function(e){var r=n(116),o="object"==typeof t&&t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a&&r.process,u=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(t,n(21)(e))},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}var r=Object.prototype;e.exports=n},function(e,t,n){function r(e,t,n){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var o=n(126);e.exports=r},function(e,t,n){function r(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}var o=n(119);e.exports=r},function(e,t,n){var r=n(124),o=r(Object.getPrototypeOf,Object);e.exports=o},function(e,t,n){function r(e,t,n){var r=e[t];s.call(e,t)&&i(r,n)&&(void 0!==n||t in e)||o(e,t,n)}var o=n(86),i=n(33),a=Object.prototype,s=a.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.wrapCodeBlockByKey=t.wrapCodeBlock=t.unwrapCodeBlockByKey=t.unwrapCodeBlock=t.toggleCodeBlock=t.indentLines=t.dedentLines=void 0;var o=n(403),i=r(o),a=n(404),s=r(a),u=n(405),c=r(u),l=n(147),p=r(l),f=n(148),d=r(f),h=n(145),m=r(h),v=n(146),g=r(v);t.dedentLines=i.default,t.indentLines=s.default,t.toggleCodeBlock=c.default,t.unwrapCodeBlock=p.default,t.unwrapCodeBlockByKey=d.default,t.wrapCodeBlock=m.default,t.wrapCodeBlockByKey=g.default},function(e,t,n){"use strict";function r(e,t,n){return n.nodes.forEach(function(e,r){var i=o.Range.create().moveToRangeOf(n);t.deleteAtRange(i)}),t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.default=r},function(e,t,n){"use strict";function r(e,t){return e.types.includes(t.type)}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.isSelectionInBlockquote=t.getCurrentBlockquote=void 0;var o=n(167),i=r(o),a=n(456),s=r(a);t.getCurrentBlockquote=i.default,t.isSelectionInBlockquote=s.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.wrapInBlockquote=t.unwrapBlockquote=void 0;var o=n(457),i=r(o),a=n(458),s=r(a);t.unwrapBlockquote=i.default,t.wrapInBlockquote=s.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"b",function(){return h}),n.d(t,"d",function(){return m}),n.d(t,"a",function(){return f}),n.d(t,"c",function(){return p});var a=n(1),s=n.n(a),u=n(57),c=function(){function e(e,t){for(var n=0;n","&","`"],v=function(){var e,t={};for(e in c)t[c[e]]=e;return t}(),g=u(m),y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g},function(e,t,n){"use strict";function r(e,t){return t||0===e.length||i.test(e)||o(e,"(")!==o(e,")")?"<"+e+">":e}var o=n(196);e.exports=r;var i=/\s/},function(e,t,n){"use strict";function r(e){var t=-1===e.indexOf('"')?'"':"'";return t+e+t}e.exports=r},function(e,t,n){"use strict";function r(e){function t(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:isNaN(n.offset)?null:n.offset}}return t}var o=t;o.start=r("start"),o.end=r("end")},function(e,t,n){"use strict";function r(e,t){return i(o(e,t))}function o(e,t){function n(e){var t=a(e.identifier);u.call(o,t)||(o[t]=e)}function r(e){o[a(e.identifier)]=e}var o={};if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return s(e,"definition",t&&t.commonmark?n:r),o}function i(e){function t(t){var n=t&&a(t);return n&&u.call(e,n)?e[n]:null}return t}function a(e){return e.toUpperCase()}var s=n(37);e.exports=r;var u={}.hasOwnProperty},function(e,t,n){"use strict";function r(e,t){var n,r;return!(!e||!t||"object"!==typeof e||"element"!==e.type)&&(n=e.properties,null!==(r=n&&o.call(n,t)&&n[t])&&void 0!==r&&!1!==r)}var o={}.hasOwnProperty;e.exports=r},function(e,t,n){"use strict";function r(e){var t=i(String(e||a));return t===a?[]:t.split(u)}function o(e){return i(e.join(s))}var i=n(17);t.parse=r,t.stringify=o;var a="",s=" ",u=/[ \t\n\r\f]+/g},function(e,t,n){"use strict";function r(e){for(var t,n=[],r=String(e||u),o=r.indexOf(a),s=0,c=!1;!c;)-1===o&&(o=r.length,c=!0),t=i(r.slice(s,o)),!t&&c||n.push(t),s=o+1,o=r.indexOf(a,s);return n}function o(e,t){var n=t||{},r=!1===n.padLeft?u:s,o=n.padRight?s:u;return e[e.length-1]===u&&(e=e.concat(u)),i(e.join(o+a+r))}t.parse=r,t.stringify=o;var i=n(17),a=",",s=" ",u=""},function(e,t,n){"use strict";function r(e){function t(t,n,r){var i,a=t&&t.children;if(n+=e,i=a&&a[n],!r)for(;i&&o(i);)n+=e,i=a[n];return i}return t}var o=n(214);t.before=r(-1),t.after=r(1)},function(e,t,n){"use strict";function r(){}function o(e){try{return e.then}catch(e){return g=e,y}}function i(e,t){try{return e(t)}catch(e){return g=e,y}}function a(e,t,n){try{e(t,n)}catch(e){return g=e,y}}function s(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof e)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,e!==r&&m(e,this)}function u(e,t,n){return new e.constructor(function(o,i){var a=new s(r);a.then(o,i),c(e,new h(t,n,a))})}function c(e,t){for(;3===e._83;)e=e._18;if(s._47&&s._47(e),0===e._83)return 0===e._75?(e._75=1,void(e._38=t)):1===e._75?(e._75=2,void(e._38=[e._38,t])):void e._38.push(t);l(e,t)}function l(e,t){v(function(){var n=1===e._83?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._83?p(t.promise,e._18):f(t.promise,e._18));var r=i(n,e._18);r===y?f(t.promise,g):p(t.promise,r)})}function p(e,t){if(t===e)return f(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"===typeof t||"function"===typeof t)){var n=o(t);if(n===y)return f(e,g);if(n===e.then&&t instanceof s)return e._83=3,e._18=t,void d(e);if("function"===typeof n)return void m(n.bind(t),e)}e._83=1,e._18=t,d(e)}function f(e,t){e._83=2,e._18=t,s._71&&s._71(e,t),d(e)}function d(e){if(1===e._75&&(c(e,e._38),e._38=null),2===e._75){for(var t=0;t-1?t:e}function d(e,t){t=t||{};var n=t.body;if(e instanceof d){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=f(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function m(e){var t=new o;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t}function v(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var g={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},x=ArrayBuffer.isView||function(e){return e&&y.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,r){e=t(e),r=n(r);var o=this.map[e];this.map[e]=o?o+","+r:r},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,r){this.map[t(e)]=n(r)},o.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},g.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var T=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},p.call(d.prototype),p.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];v.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=d,e.Response=v,e.fetch=function(e,t){return new Promise(function(n,r){var o=new d(e,t),i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:m(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;n(new v(t,e))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&g.blob&&(i.responseType="blob"),o.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send("undefined"===typeof o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!==typeof self?self:this)},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){var r,o,i;!function(a,s){o=[t,n(1),n(13),n(2),n(70),n(71),n(248)],r=s,void 0!==(i="function"===typeof r?r.apply(t,o):r)&&(e.exports=i)}(0,function(e,t,n,r,o,i,a){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function l(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(e,"__esModule",{value:!0});var p=s(t),f=s(n),d=s(r),h=s(o),m=s(i),v=s(a),g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=function(){function e(e,t){for(var n=0;n=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!==typeof r&&"env"in r&&(e=Object({NODE_ENV:"production",PUBLIC_URL:"/media/seafile-editor"}).DEBUG),e}t=e.exports=n(267),t.log=a,t.formatArgs=i,t.save=s,t.load=u,t.useColors=o,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(32))},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(12))},function(e,t){function n(e){if(null!=e){try{return o.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var r=Function.prototype,o=r.toString;e.exports=n},function(e,t,n){function r(e,t,n,r,c,l){var p=n&s,f=e.length,d=t.length;if(f!=d&&!(p&&d>f))return!1;var h=l.get(e);if(h&&l.get(t))return h==t;var m=-1,v=!0,g=n&u?new o:void 0;for(l.set(e,t),l.set(t,e);++m1&&void 0!==arguments[1]?arguments[1]:a;return(0,i.default)(e).indent||t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(398),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=" ";t.default=r},function(e,t,n){"use strict";function r(e,t){var n=t.value,r=n.startBlock,o=n.selection;return(0,i.default)(e,t,r.key),t.collapseToStartOf(t.value.document.getDescendant(r.key)).moveOffsetsTo(o.startOffset),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(146),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.value,i=r.document,a=i.getDescendant(n),s=a.text;return a.nodes.forEach(function(e){t.removeNodeByKey(e.key,{normalize:!1})}),(0,o.deserializeCode)(e,s).nodes.forEach(function(e,n){t.insertNodeByKey(a.key,n,e,{normalize:!1})}),t.setNodeByKey(a.key,{type:e.containerType}),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(10);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.value,i=(0,o.getCurrentCode)(e,r);return i?((0,a.default)(e,t,i.key,n),t):t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(10),i=n(148),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var o=t.value,i=o.document,a=i.getDescendant(n);if(!a||a.type!=e.containerType)throw new Error("Block passed to unwrapCodeBlockByKey should be a code block container");return a.nodes.forEach(function(e){return t.setNodeByKey(e.key,{type:r},{normalize:!1}).unwrapNodeByKey(e.key,{normalize:!1})}),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=n.value;t.preventDefault(),t.stopPropagation();var s=(0,o.getCurrentIndent)(e,a);return(0,i.dedentLines)(e,n,s)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(10),i=n(90);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var i=n.value;if(i.isCollapsed){t.preventDefault();var a=i.startBlock,s=a.text,u=(0,o.getIndent)(s,"");return n.splitBlock().insertText(u).focus()}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(10);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){if(n.value.isCollapsed)return t.preventDefault(),e.resolvedOnExit(n)}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var o=n.value;if(!o.isExpanded){var s=o.startOffset,u=o.startText,c=o.startBlock,l=(0,a.getCurrentIndent)(e,o),p=c.text.slice(0,s);if((0,i.default)(p,l))return t.preventDefault(),n.deleteBackward(l.length).focus();if(e.exitBlockType){var f=(0,a.getCurrentCode)(e,o),d=0===s&&f.getFirstText()===u,h=1===f.nodes.size&&0===c.text.length;if(d&&h)return t.preventDefault(),n.setBlocks(e.exitBlockType,{normalize:!1}).unwrapNodeByKey(c.key)}}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(406),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=n(10);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var i=n.value;t.preventDefault();var a=(0,o.getCurrentCode)(e,i);return n.collapseToStartOf(a.getFirstText()).extendToEndOf(a.getLastText())}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(10);t.default=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}((0,a.Record)({typeTable:"table",typeRow:"table_row",typeCell:"table_cell",typeContent:"paragraph",exitBlockType:"paragraph"}));t.default=s},function(e,t,n){"use strict";function r(e,t){return i.Block.create({type:e.typeCell,nodes:t||[o(e)]})}function o(e){return i.Block.create({type:e.typeContent,nodes:[i.Text.create()]})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=(0,o.Range)(0,t).map(function(t){return(0,s.default)(e,n?n(t):void 0)}).toList();return i.Block.create({type:e.typeRow,nodes:r})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=n(0),a=n(155),s=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){return e.preventDefault(),(0,o.insertRow)(r,t)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=t.value;if(a.isCollapsed){e.preventDefault();var s=o.Block.create({type:r.exitBlockType,nodes:[o.Text.create("")]}),u=i.TablePosition.create(r,a.document,a.startKey).table,c=a.document.getParent(u.key),l=c.nodes.indexOf(u)+1;return t.insertNodeByKey(c.key,l,s).collapseToStartOf(s)}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=n(4);t.default=r},function(e,t,n){"use strict";function r(e){var t=e.value,n=t.startBlock;return e.moveOffsetsTo(0).extend(n.text.length)}function o(e,t,n,o){e.preventDefault();var s=t.value,u=e.shiftKey?-1:1,c=s.startKey,l=s.selection,p=i.TablePosition.create(o,s.document,c);return p.isFirstCell()&&-1===u?(0,a.insertRow)(o,t,0):p.isLastCell()&&1===u&&(0,a.insertRow)(o,t),t.select(l),(0,a.moveSelectionBy)(o,t,u,0),r(t)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(4),a=n(20);t.default=o},function(e,t,n){"use strict";function r(e,t,n,r){var i=t.value,a=i.startBlock,s=i.startOffset,u=i.isCollapsed,c=i.endBlock;if(0===s&&u)return e.preventDefault(),t;if(a!==c){e.preventDefault();var l=i.blocks,p=i.document,f=function(e){return e.type===r.typeCell?e:p.getClosest(e.key,function(e){return e.type===r.typeCell})};return l.map(f).toSet().forEach(function(e){return(0,o.clearCell)(r,t,e)}),t.collapseToStartOf(a)}}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=t.value,s="ArrowUp"===e.key?-1:1,u=o.TablePosition.create(r,a.document,a.startKey);if(!(u.isFirstRow()&&-1===s||u.isLastRow()&&1===s))return e.preventDefault(),(0,i.moveSelectionBy)(r,t,0,"ArrowUp"===e.key?-1:1),t}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(4),i=n(20);t.default=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),s=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}((0,a.Record)({types:["ul_list","ol_list"],typeItem:"list_item",typeDefault:"paragraph"}));t.default=s},function(e,t,n){"use strict";function r(e,t,n){var r=t.document,o=r.getParent(n.key);return o&&(0,i.default)(e,o)?o:null}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(92),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){if(n=n||t.selection,!n.startKey)return(0,i.List)();var r=t.document,o=r.getClosestBlock(n.startKey),a=r.getClosestBlock(n.endKey);if(o===a){var u=(0,c.default)(e,t,o);return u?(0,i.List)([u]):(0,i.List)()}var l=r.getCommonAncestor(o.key,a.key);if((0,s.default)(e,l)){var p=l.getPath(o.key),f=l.getPath(a.key);return l.nodes.slice(p[0],f[0]+1)}return l.type===e.typeItem?(0,i.List)([l]):(0,i.List)()}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var i=n(3),a=n(92),s=r(a),u=n(34),c=r(u);t.default=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),s={type:"blockquote",typeDefault:"paragraph"},u=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),t}((0,a.Record)(s));t.default=u},function(e,t,n){"use strict";function r(e,t,n,r){var a=n.value,s=a.startOffset,u=a.isCollapsed;if((0,o.getCurrentBlockquote)(e,a)&&u&&0===s)return t.preventDefault(),(0,i.unwrapBlockquote)(e,n)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(93),i=n(94);t.default=r},function(e,t,n){"use strict";function r(e,t,n){var r=t.document;if(!n){if(!t.selection.startKey)return null;n=t.startBlock}var o=r.getParent(n.key);return o&&o.type===e.type?o:null}Object.defineProperty(t,"__esModule",{value:!0}),n(0),t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){var a=n.value,s=a.startBlock;if((0,o.getCurrentBlockquote)(e,a)&&0===s.text.length)return t.preventDefault(),(0,i.unwrapBlockquote)(e,n)}Object.defineProperty(t,"__esModule",{value:!0}),n(0);var o=n(93),i=n(94);t.default=r},function(e,t){function n(e){if("string"!==typeof e)return!1;var t=e.match(r);if(!t)return!1;var n=t[1];return!!n&&!(!o.test(n)&&!i.test(n))}e.exports=n;var r=/^(?:\w+:)?\/\/(\S+)$/,o=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,i=/^[^\s\.]+\.\S{2,}$/},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(1),s=n.n(a),u=n(476),c=n(477),l=function(){function e(e,t){for(var n=0;n=0){if(r&&r.length){if(0!==o.length&&!/^\//.test(o))return}else if(/^\/\//.test(o))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(n.toLowerCase()))return u+=n+":",r&&r.length&&(u+="//"+r),u+=o,a&&a.length&&(u+="?"+a),s&&s.length&&(u+="#"+s),u}}}function n(e,n){if(t(e)){var r=[],o="",a="",s="",u="",c="",l="",p="";if(r=i(e),o=r[1],a=r[2],s=r[3],c=r[4],l=r[5],o){if(n){if("https"!=o.toLowerCase())return}else if("http"!=o.toLowerCase())return;if(a)return/:(\d+)$/.test(a)&&(u=a.match(/:(\d+)$/)[0],a=a.replace(/:\d+$/,"")),p+=o+":",p+="//"+a,u&&(p+=u),p+=s,c&&c.length&&(p+="?"+c),l&&l.length&&(p+="#"+l),p}}}function r(e){return n(e,!0)}function o(e){return n(e)||r(e)}e.exports.is_uri=t,e.exports.is_http_uri=n,e.exports.is_https_uri=r,e.exports.is_web_uri=o,e.exports.isUri=t,e.exports.isHttpUri=n,e.exports.isHttpsUri=r,e.exports.isWebUri=o;var i=function(e){return e.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/)}}(e)}).call(t,n(21)(e))},function(e,t,n){e.exports=n.p+"media/seafile-logo.png"},function(e,t,n){"use strict";function r(e){function t(e){var t=f(e);return p(t,n)}var n=l(e,this.data("settings"));this.Compiler=t}n.d(t,"a",function(){return d}),n.d(t,"b",function(){return h});var o=n(58),i=(n(516),n(96)),a=n(604),s=n(608),u=n(635),c=n(640),l=n(5),p=n(670),f=n(680),d=o().use(i,{commonmark:!0}).use(a).use(s,{allowDangerousHTML:!0}).use(c).use(u).use(r),h=o().use(i,{commonmark:!0}).use(a)},function(e,t,n){"use strict";function r(e){function t(t){return e.apply(this,t)}function n(){return this instanceof n?e.apply(this,arguments):new t(arguments)}var r,a,s;i(n,e),i(t,n),r=n.prototype;for(a in r)(s=r[a])&&"object"===typeof s&&(r[a]="concat"in s?s.concat():o(s));return n}var o=n(5),i=n(517);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){return function(){var r=n||this,o=r[e];return r[e]=!t,function(){r[e]=o}}}e.exports=r},function(e,t,n){"use strict";function r(e){var t=a(String(e));return{toPosition:o(t),toOffset:i(t)}}function o(e){function t(t){var n=-1,r=e.length;if(t<0)return{};for(;++nt)return{line:n+1,column:t-(e[n-1]||0)+1,offset:t};return{}}return t}function i(e){function t(t){var n=t&&t.line,r=t&&t.column;return!isNaN(n)&&!isNaN(r)&&n-1 in e?(e[n-2]||0)+r-1||0:-1}return t}function a(e){for(var t=[],n=e.indexOf("\n");-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}e.exports=r},function(e,t){e.exports={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Acirc:"\xc2",Agrave:"\xc0",Aring:"\xc5",Atilde:"\xc3",Auml:"\xc4",COPY:"\xa9",Ccedil:"\xc7",ETH:"\xd0",Eacute:"\xc9",Ecirc:"\xca",Egrave:"\xc8",Euml:"\xcb",GT:">",Iacute:"\xcd",Icirc:"\xce",Igrave:"\xcc",Iuml:"\xcf",LT:"<",Ntilde:"\xd1",Oacute:"\xd3",Ocirc:"\xd4",Ograve:"\xd2",Oslash:"\xd8",Otilde:"\xd5",Ouml:"\xd6",QUOT:'"',REG:"\xae",THORN:"\xde",Uacute:"\xda",Ucirc:"\xdb",Ugrave:"\xd9",Uuml:"\xdc",Yacute:"\xdd",aacute:"\xe1",acirc:"\xe2",acute:"\xb4",aelig:"\xe6",agrave:"\xe0",amp:"&",aring:"\xe5",atilde:"\xe3",auml:"\xe4",brvbar:"\xa6",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",copy:"\xa9",curren:"\xa4",deg:"\xb0",divide:"\xf7",eacute:"\xe9",ecirc:"\xea",egrave:"\xe8",eth:"\xf0",euml:"\xeb",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",gt:">",iacute:"\xed",icirc:"\xee",iexcl:"\xa1",igrave:"\xec",iquest:"\xbf",iuml:"\xef",laquo:"\xab",lt:"<",macr:"\xaf",micro:"\xb5",middot:"\xb7",nbsp:"\xa0",not:"\xac",ntilde:"\xf1",oacute:"\xf3",ocirc:"\xf4",ograve:"\xf2",ordf:"\xaa",ordm:"\xba",oslash:"\xf8",otilde:"\xf5",ouml:"\xf6",para:"\xb6",plusmn:"\xb1",pound:"\xa3",quot:'"',raquo:"\xbb",reg:"\xae",sect:"\xa7",shy:"\xad",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",szlig:"\xdf",thorn:"\xfe",times:"\xd7",uacute:"\xfa",ucirc:"\xfb",ugrave:"\xf9",uml:"\xa8",uuml:"\xfc",yacute:"\xfd",yen:"\xa5",yuml:"\xff"}},function(e,t,n){"use strict";function r(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)||i(e)}var o=n(182),i=n(36);e.exports=r},function(e,t,n){"use strict";function r(e){var t="string"===typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}e.exports=r},function(e,t,n){"use strict";function r(e){var t=e||{};return t.commonmark?a:t.gfm?i:o}e.exports=r;var o=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],i=o.concat(["~","|"]),a=i.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);r.default=o,r.gfm=i,r.commonmark=a},function(e,t,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(525)}},function(e,t,n){"use strict";function r(e){for(var t,n=0,r=0,i=e.charAt(n),a={};i in o;)t=o[i],r+=t,t>1&&(r=Math.floor(r/t)*t),a[r]=n,i=e.charAt(++n);return{indent:r,stops:a}}e.exports=r;var o={" ":1,"\t":4}},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",o="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.openCloseTag=new RegExp("^(?:"+r+"|"+o+")"),t.tag=new RegExp("^(?:"+r+"|"+o+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)")},function(e,t,n){"use strict";function r(e,t){return e.indexOf("<",t)}e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);return-1===r?n:ni&&(i=o):o=1,n=r+1,r=e.indexOf(t,n);return i}e.exports=r},function(e,t,n){"use strict";function r(e,t){var n,r=0;if(e=String(e),"string"!==typeof t||1!==t.length)throw new Error("Expected character");for(n=e.indexOf(t);-1!==n;)r++,n=e.indexOf(t,n+1);return r}e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.referenceType,n="full"===t?e.identifier:"";return"shortcut"===t?n:"["+n+"]"}e.exports=r},function(e,t,n){"use strict";function r(e,t){return i(t)?e.augment(t,a("text",t.value)):e(t,"div",s(e,t))}function o(e,t,n){var o=t&&t.type,i=u.call(e.handlers,o)?e.handlers[o]:null;if(!o)throw new Error("Expected node, got `"+t+"`");return("function"===typeof i?i:r)(e,t,n)}function i(e){var t=e.data||{};return!(u.call(t,"hName")||u.call(t,"hProperties")||u.call(t,"hChildren"))&&"value"in e}e.exports=o;var a=n(11),s=n(6),u={}.hasOwnProperty},function(e,t,n){"use strict";function r(e,t){return e(t,"hr")}e.exports=r},function(e,t,n){"use strict";function r(e,t){var n={},r=t.ordered?"ol":"ul";return"number"===typeof t.start&&1!==t.start&&(n.start=t.start),e(t,r,n,o(i(e,t),!0))}e.exports=r;var o=n(27),i=n(6)},function(e,t,n){"use strict";function r(e,t){var n=t.identifier;return e(t.position,"sup",{id:"fnref-"+n},[e(t,"a",{href:"#fn-"+n,className:["footnote-ref"]},[o("text",n)])])}e.exports=r;var o=n(11)},function(e,t,n){"use strict";function r(e,t,n){var r=t.referenceType;if("collapsed"!==r&&"full"!==r&&!n)return"imageReference"===t.type?o("text","!["+t.alt+"]"):[o("text","[")].concat(i(e,t),o("text","]"))}e.exports=r;var o=n(11),i=n(6)},function(e,t){e.exports=["script","style","pre","textarea"]},function(e,t,n){"use strict";function r(e){return o(e,i)}var o=n(28),i=["audio","canvas","embed","iframe","img","math","object","picture","svg","video"];e.exports=r},function(e,t,n){"use strict";function r(e){var t,n,r;if(!o(e,"link"))return!1;if(i(e,"itemProp"))return!0;if(r=(e.properties||{}).rel||[],t=r.length,n=-1,0===r.length)return!1;for(;++n2?arguments[2]:{},a=r(t);i&&(a=a.concat(Object.getOwnPropertySymbols(t))),o(a,function(r){c(e,r,t[r],n[r])})};l.supportsDescriptors=!!u,e.exports=l},function(e,t,n){"use strict";e.exports=function(e){return e!==e}},function(e,t,n){"use strict";var r=n(209);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},function(e,t){e.exports={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(e,t,n){"use strict";function r(e,t){function n(t){var r=n.invalid,a=n.handlers;return t&&i.call(t,e)&&(r=i.call(a,t[e])?a[t[e]]:n.unknown),(r||o).apply(this,arguments)}var r=t||{};return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}e.exports=r;var o=Function.prototype,i={}.hasOwnProperty},function(e,t){e.exports=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]},function(e,t,n){"use strict";function r(e){var t;if(e&&"object"===typeof e&&"text"===e.type)t=e.value||"";else{if("string"!==typeof e)return!1;t=e}return""===t.replace(o,"")}var o=/[\ \t\n\f\r]/g;e.exports=r},function(e,t,n){"use strict";function r(e){return o("text",e)&&i(e.value.charAt(0))}var o=n(26),i=n(214);e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=_(n,t,!0);return!r||!b("comment",r)&&!T(r)}function o(e,t,n){var r=_(n,t);return!r||!b("comment",r)}function i(e,t,n){var r=_(n,t);return!r||!b("comment",r)}function a(e,t,n){var r=_(n,t);return r?x(r,["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","menu","nav","ol","p","pre","section","table","ul"]):!n||!x(n,["a","audio","del","ins","map","noscript","video"])}function s(e,t,n){var r=_(n,t);return!r||x(r,"li")}function u(e,t,n){var r=_(n,t);return r&&x(r,["dt","dd"])}function c(e,t,n){var r=_(n,t);return!r||x(r,["dt","dd"])}function l(e,t,n){var r=_(n,t);return!r||x(r,["rp","rt"])}function p(e,t,n){var r=_(n,t);return!r||x(r,"optgroup")}function f(e,t,n){var r=_(n,t);return!r||x(r,["option","optgroup"])}function d(e,t,n){var r=_(n,t);return!r||x(r,["menuitem","hr","menu"])}function h(e,t,n){var r=_(n,t);return r&&x(r,["tbody","tfoot"])}function m(e,t,n){var r=_(n,t);return!r||x(r,["tbody","tfoot"])}function v(e,t,n){return!_(n,t)}function g(e,t,n){var r=_(n,t);return!r||x(r,"tr")}function y(e,t,n){var r=_(n,t);return!r||x(r,["td","th"])}var b=n(26),x=n(28),T=n(215),_=n(109).after,E=n(217);e.exports=E({html:o,head:r,body:i,p:a,li:s,dt:u,dd:c,rt:l,rp:l,optgroup:p,option:f,menuitem:d,colgroup:r,caption:r,thead:h,tbody:m,tfoot:v,tr:g,td:y,th:y})},function(e,t,n){"use strict";function r(e){function t(t,n,r){var i=t.tagName,a=!!o.call(e,i)&&e[i];return!!a&&a(t,n,r)}return t}e.exports=r;var o={}.hasOwnProperty},function(e,t,n){"use strict";function r(e,t,n,r){var a=t&&t.type;if(!a)throw new Error("Expected node, not `"+t+"`");if(!o.call(i,a))throw new Error("Cannot compile unknown node `"+a+"`");return i[a](e,t,n,r)}e.exports=r;var o={}.hasOwnProperty,i={};i.root=n(219),i.text=n(220),i.element=n(676),i.doctype=n(677),i.comment=n(678),i.raw=n(679)},function(e,t,n){"use strict";function r(e,t){for(var n=t&&t.children,r=n&&n.length,i=-1,a=[];++i-1}function f(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function j(e,t){for(var n=e.length;n--&&_(t,e[n],0)>-1;);return n}function B(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function F(e){return"\\"+On[e]}function H(e,t){return null==e?re:e[t]}function z(e){return gn.test(e)}function K(e){return yn.test(e)}function U(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function q(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function W(e,t){return function(n){return e(t(n))}}function G(e,t){for(var n=-1,r=e.length,o=0,i=[];++n>>1,Be=[["ary",_e],["bind",me],["bindKey",ve],["curry",ye],["curryRight",be],["flip",ke],["partial",xe],["partialRight",Te],["rearg",Ee]],Fe="[object Arguments]",He="[object Array]",ze="[object AsyncFunction]",Ke="[object Boolean]",Ue="[object Date]",qe="[object DOMException]",We="[object Error]",Ge="[object Function]",Ve="[object GeneratorFunction]",$e="[object Map]",Ye="[object Number]",Je="[object Null]",Xe="[object Object]",Qe="[object Proxy]",Ze="[object RegExp]",et="[object Set]",tt="[object String]",nt="[object Symbol]",rt="[object Undefined]",ot="[object WeakMap]",it="[object WeakSet]",at="[object ArrayBuffer]",st="[object DataView]",ut="[object Float32Array]",ct="[object Float64Array]",lt="[object Int8Array]",pt="[object Int16Array]",ft="[object Int32Array]",dt="[object Uint8Array]",ht="[object Uint8ClampedArray]",mt="[object Uint16Array]",vt="[object Uint32Array]",gt=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,xt=/&(?:amp|lt|gt|quot|#39);/g,Tt=/[&<>"']/g,_t=RegExp(xt.source),Et=RegExp(Tt.source),kt=/<%-([\s\S]+?)%>/g,wt=/<%([\s\S]+?)%>/g,Ot=/<%=([\s\S]+?)%>/g,At=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ct=/^\w*$/,St=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nt=/[\\^$.*+?()[\]{}|]/g,Dt=RegExp(Nt.source),Mt=/^\s+|\s+$/g,It=/^\s+/,Lt=/\s+$/,Pt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rt=/\{\n\/\* \[wrapped with (.+)\] \*/,jt=/,? & /,Bt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ft=/\\(\\)?/g,Ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zt=/\w*$/,Kt=/^[-+]0x[0-9a-f]+$/i,Ut=/^0b[01]+$/i,qt=/^\[object .+?Constructor\]$/,Wt=/^0o[0-7]+$/i,Gt=/^(?:0|[1-9]\d*)$/,Vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$t=/($^)/,Yt=/['\n\r\u2028\u2029\\]/g,Jt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qt="["+Xt+"]",Zt="["+Jt+"]",en="[a-z\\xdf-\\xf6\\xf8-\\xff]",tn="[^\\ud800-\\udfff"+Xt+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",nn="\\ud83c[\\udffb-\\udfff]",rn="(?:\\ud83c[\\udde6-\\uddff]){2}",on="[\\ud800-\\udbff][\\udc00-\\udfff]",an="[A-Z\\xc0-\\xd6\\xd8-\\xde]",sn="(?:"+en+"|"+tn+")",un="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",cn="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",rn,on].join("|")+")[\\ufe0e\\ufe0f]?"+un+")*",ln="[\\ufe0e\\ufe0f]?"+un+cn,pn="(?:"+["[\\u2700-\\u27bf]",rn,on].join("|")+")"+ln,fn="(?:"+["[^\\ud800-\\udfff]"+Zt+"?",Zt,rn,on,"[\\ud800-\\udfff]"].join("|")+")",dn=RegExp("['\u2019]","g"),hn=RegExp(Zt,"g"),mn=RegExp(nn+"(?="+nn+")|"+fn+ln,"g"),vn=RegExp([an+"?"+en+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[Qt,an,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[Qt,an+sn,"$"].join("|")+")",an+"?"+sn+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",an+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",pn].join("|"),"g"),gn=RegExp("[\\u200d\\ud800-\\udfff"+Jt+"\\ufe0e\\ufe0f]"),yn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xn=-1,Tn={};Tn[ut]=Tn[ct]=Tn[lt]=Tn[pt]=Tn[ft]=Tn[dt]=Tn[ht]=Tn[mt]=Tn[vt]=!0,Tn[Fe]=Tn[He]=Tn[at]=Tn[Ke]=Tn[st]=Tn[Ue]=Tn[We]=Tn[Ge]=Tn[$e]=Tn[Ye]=Tn[Xe]=Tn[Ze]=Tn[et]=Tn[tt]=Tn[ot]=!1;var _n={};_n[Fe]=_n[He]=_n[at]=_n[st]=_n[Ke]=_n[Ue]=_n[ut]=_n[ct]=_n[lt]=_n[pt]=_n[ft]=_n[$e]=_n[Ye]=_n[Xe]=_n[Ze]=_n[et]=_n[tt]=_n[nt]=_n[dt]=_n[ht]=_n[mt]=_n[vt]=!0,_n[We]=_n[Ge]=_n[ot]=!1;var En={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"},kn={"&":"&","<":"<",">":">",'"':""","'":"'"},wn={"&":"&","<":"<",">":">",""":'"',"'":"'"},On={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},An=parseFloat,Cn=parseInt,Sn="object"==typeof e&&e&&e.Object===Object&&e,Nn="object"==typeof self&&self&&self.Object===Object&&self,Dn=Sn||Nn||Function("return this")(),Mn="object"==typeof t&&t&&!t.nodeType&&t,In=Mn&&"object"==typeof r&&r&&!r.nodeType&&r,Ln=In&&In.exports===Mn,Pn=Ln&&Sn.process,Rn=function(){try{return Pn&&Pn.binding&&Pn.binding("util")}catch(e){}}(),jn=Rn&&Rn.isArrayBuffer,Bn=Rn&&Rn.isDate,Fn=Rn&&Rn.isMap,Hn=Rn&&Rn.isRegExp,zn=Rn&&Rn.isSet,Kn=Rn&&Rn.isTypedArray,Un=O("length"),qn=A(En),Wn=A(kn),Gn=A(wn),Vn=function e(t){function n(e){if(tu(e)&&!df(e)&&!(e instanceof y)){if(e instanceof o)return e;if(fl.call(e,"__wrapped__"))return Qi(e)}return new o(e)}function r(){}function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=re}function y(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Pe,this.__views__=[]}function A(){var e=new y(this.__wrapped__);return e.__actions__=Lo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Lo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Lo(this.__views__),e}function J(){if(this.__filtered__){var e=new y(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function ee(){var e=this.__wrapped__.value(),t=this.__dir__,n=df(e),r=t<0,o=n?e.length:0,i=Ei(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,p=l.length,f=0,d=Kl(u,this.__takeCount__);if(!n||!r&&o==u&&d==u)return go(e,this.__actions__);var h=[];e:for(;u--&&f-1}function an(e,t){var n=this.__data__,r=$n(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function sn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function tr(e,t,n,r,o,i){var a,u=t&le,c=t&pe,l=t&fe;if(n&&(a=o?n(e,r,o,i):n(e)),a!==re)return a;if(!eu(e))return e;var p=df(e);if(p){if(a=Oi(e),!u)return Lo(e,a)}else{var f=_p(e),d=f==Ge||f==Ve;if(mf(e))return ko(e,u);if(f==Xe||f==Fe||d&&!o){if(a=c||d?{}:Ai(e),!u)return c?jo(e,Xn(a,e)):Ro(e,Jn(a,e))}else{if(!_n[f])return o?e:{};a=Ci(e,f,u)}}i||(i=new yn);var h=i.get(e);if(h)return h;if(i.set(e,a),bf(e))return e.forEach(function(r){a.add(tr(r,t,n,r,e,i))}),a;if(gf(e))return e.forEach(function(r,o){a.set(o,tr(r,t,n,o,e,i))}),a;var m=l?c?mi:hi:c?ju:Ru,v=p?re:m(e);return s(v||e,function(r,o){v&&(o=r,r=e[o]),Un(a,o,tr(r,t,n,o,e,i))}),a}function nr(e){var t=Ru(e);return function(n){return rr(n,e,t)}}function rr(e,t,n){var r=n.length;if(null==e)return!r;for(e=rl(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===re&&!(o in e)||!i(a))return!1}return!0}function or(e,t,n){if("function"!=typeof e)throw new al(ae);return wp(function(){e.apply(re,n)},t)}function ir(e,t,n,r){var o=-1,i=p,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=d(t,I(n))),r?(i=f,a=!1):t.length>=oe&&(i=P,a=!1,t=new mn(t));e:for(;++oo?0:o+n),r=r===re||r>o?o:yu(r),r<0&&(r+=o),r=n>r?0:bu(r);n0&&n(s)?t>1?lr(s,t-1,n,r,o):h(o,s):r||(o[o.length]=s)}return o}function pr(e,t){return e&&fp(e,t,Ru)}function fr(e,t){return e&&dp(e,t,Ru)}function dr(e,t){return l(t,function(t){return Xs(e[t])})}function hr(e,t){t=_o(t,e);for(var n=0,r=t.length;null!=e&&nt}function yr(e,t){return null!=e&&fl.call(e,t)}function br(e,t){return null!=e&&t in rl(e)}function xr(e,t,n){return e>=Kl(t,n)&&e=120&&l.length>=120)?new mn(a&&l):re}l=e[0];var h=-1,m=s[0];e:for(;++h-1;)s!==e&&Ol.call(s,u,1),Ol.call(e,u,1);return e}function Jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Di(o)?Ol.call(e,o,1):ho(e,o)}}return e}function Xr(e,t){return e+Pl(Wl()*(t-e+1))}function Qr(e,t,n,r){for(var o=-1,i=zl(Ll((t-e)/(n||1)),0),a=Qc(i);i--;)a[r?i:++o]=e,e+=n;return a}function Zr(e,t){var n="";if(!e||t<1||t>Me)return n;do{t%2&&(n+=e),(t=Pl(t/2))&&(e+=e)}while(t);return n}function eo(e,t){return Op(Ui(e,t,Oc),e+"")}function to(e){return Mn(Yu(e))}function no(e,t){var n=Yu(e);return $i(n,er(t,0,n.length))}function ro(e,t,n,r){if(!eu(e))return e;t=_o(t,e);for(var o=-1,i=t.length,a=i-1,s=e;null!=s&&++oo?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Qc(o);++r>>1,a=e[i];null!==a&&!fu(a)&&(n?a<=t:a=oe){var c=t?null:yp(e);if(c)return $(c);a=!1,o=P,u=new mn}else u=t?[]:s;e:for(;++r=r?e:io(e,t,n)}function ko(e,t){if(t)return e.slice();var n=e.length,r=_l?_l(n):new e.constructor(n);return e.copy(r),r}function wo(e){var t=new e.constructor(e.byteLength);return new Tl(t).set(new Tl(e)),t}function Oo(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ao(e){var t=new e.constructor(e.source,zt.exec(e));return t.lastIndex=e.lastIndex,t}function Co(e){return sp?rl(sp.call(e)):{}}function So(e,t){var n=t?wo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function No(e,t){if(e!==t){var n=e!==re,r=null===e,o=e===e,i=fu(e),a=t!==re,s=null===t,u=t===t,c=fu(t);if(!s&&!c&&!i&&e>t||i&&a&&u&&!s&&!c||r&&a&&u||!n&&u||!o)return 1;if(!r&&!i&&!c&&e=s)return u;return u*("desc"==n[r]?-1:1)}}return e.index-t.index}function Mo(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,u=t.length,c=zl(i-a,0),l=Qc(u+c),p=!r;++s1?n[o-1]:re,a=o>2?n[2]:re;for(i=e.length>3&&"function"==typeof i?(o--,i):re,a&&Mi(n[0],n[1],a)&&(i=o<3?re:i,o=1),t=rl(t);++r-1?o[i?t[a]:a]:re}}function $o(e){return di(function(t){var n=t.length,r=n,i=o.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new al(ae);if(i&&!s&&"wrapper"==vi(a))var s=new o([],!0)}for(r=s?r:n;++r1&&y.reverse(),p&&us))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var l=-1,p=!0,f=n&he?new mn:re;for(i.set(e,t),i.set(t,e);++l1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Pt,"{\n/* [wrapped with "+t+"] */\n")}function Ni(e){return df(e)||ff(e)||!!(Al&&e&&e[Al])}function Di(e,t){var n=typeof e;return!!(t=null==t?Me:t)&&("number"==n||"symbol"!=n&&Gt.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Ae)return arguments[0]}else t=0;return e.apply(re,arguments)}}function $i(e,t){var n=-1,r=e.length,o=r-1;for(t=t===re?r:t;++n=this.__values__.length;return{done:e,value:e?re:this.__values__[this.__index__++]}}function Qa(){return this}function Za(e){for(var t,n=this;n instanceof r;){var o=Qi(n);o.__index__=0,o.__values__=re,t?i.__wrapped__=o:t=o;var i=o;n=n.__wrapped__}return i.__wrapped__=e,t}function es(){var e=this.__wrapped__;if(e instanceof y){var t=e;return this.__actions__.length&&(t=new y(this)),t=t.reverse(),t.__actions__.push({func:$a,args:[ka],thisArg:re}),new o(t,this.__chain__)}return this.thru(ka)}function ts(){return go(this.__wrapped__,this.__actions__)}function ns(e,t,n){var r=df(e)?c:ar;return n&&Mi(e,t,n)&&(t=re),r(e,yi(t,3))}function rs(e,t){return(df(e)?l:cr)(e,yi(t,3))}function os(e,t){return lr(ls(e,t),1)}function is(e,t){return lr(ls(e,t),De)}function as(e,t,n){return n=n===re?1:yu(n),lr(ls(e,t),n)}function ss(e,t){return(df(e)?s:lp)(e,yi(t,3))}function us(e,t){return(df(e)?u:pp)(e,yi(t,3))}function cs(e,t,n,r){e=Ks(e)?e:Yu(e),n=n&&!r?yu(n):0;var o=e.length;return n<0&&(n=zl(o+n,0)),pu(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&_(e,t,n)>-1}function ls(e,t){return(df(e)?d:Fr)(e,yi(t,3))}function ps(e,t,n,r){return null==e?[]:(df(t)||(t=null==t?[]:[t]),n=r?re:n,df(n)||(n=null==n?[]:[n]),Wr(e,t,n))}function fs(e,t,n){var r=df(e)?m:C,o=arguments.length<3;return r(e,yi(t,4),n,o,lp)}function ds(e,t,n){var r=df(e)?v:C,o=arguments.length<3;return r(e,yi(t,4),n,o,pp)}function hs(e,t){return(df(e)?l:cr)(e,Cs(yi(t,3)))}function ms(e){return(df(e)?Mn:to)(e)}function vs(e,t,n){return t=(n?Mi(e,t,n):t===re)?1:yu(t),(df(e)?In:no)(e,t)}function gs(e){return(df(e)?Pn:oo)(e)}function ys(e){if(null==e)return 0;if(Ks(e))return pu(e)?Q(e):e.length;var t=_p(e);return t==$e||t==et?e.size:Rr(e).length}function bs(e,t,n){var r=df(e)?g:ao;return n&&Mi(e,t,n)&&(t=re),r(e,yi(t,3))}function xs(e,t){if("function"!=typeof t)throw new al(ae);return e=yu(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ts(e,t,n){return t=n?re:t,t=e&&null==t?e.length:t,ai(e,_e,re,re,re,re,t)}function _s(e,t){var n;if("function"!=typeof t)throw new al(ae);return e=yu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=re),n}}function Es(e,t,n){t=n?re:t;var r=ai(e,ye,re,re,re,re,re,t);return r.placeholder=Es.placeholder,r}function ks(e,t,n){t=n?re:t;var r=ai(e,be,re,re,re,re,re,t);return r.placeholder=ks.placeholder,r}function ws(e,t,n){function r(t){var n=f,r=d;return f=d=re,y=t,m=e.apply(r,n)}function o(e){return y=e,v=wp(s,t),b?r(e):m}function i(e){var n=e-g,r=e-y,o=t-n;return x?Kl(o,h-r):o}function a(e){var n=e-g,r=e-y;return g===re||n>=t||n<0||x&&r>=h}function s(){var e=ef();if(a(e))return u(e);v=wp(s,i(e))}function u(e){return v=re,T&&f?r(e):(f=d=re,m)}function c(){v!==re&&gp(v),y=0,f=g=d=v=re}function l(){return v===re?m:u(ef())}function p(){var e=ef(),n=a(e);if(f=arguments,d=this,g=e,n){if(v===re)return o(g);if(x)return v=wp(s,t),r(g)}return v===re&&(v=wp(s,t)),m}var f,d,h,m,v,g,y=0,b=!1,x=!1,T=!0;if("function"!=typeof e)throw new al(ae);return t=xu(t)||0,eu(n)&&(b=!!n.leading,x="maxWait"in n,h=x?zl(xu(n.maxWait)||0,t):h,T="trailing"in n?!!n.trailing:T),p.cancel=c,p.flush=l,p}function Os(e){return ai(e,ke)}function As(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new al(ae);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(As.Cache||sn),n}function Cs(e){if("function"!=typeof e)throw new al(ae);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ss(e){return _s(2,e)}function Ns(e,t){if("function"!=typeof e)throw new al(ae);return t=t===re?t:yu(t),eo(e,t)}function Ds(e,t){if("function"!=typeof e)throw new al(ae);return t=null==t?0:zl(yu(t),0),eo(function(n){var r=n[t],o=Eo(n,0,t);return r&&h(o,r),i(e,this,o)})}function Ms(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new al(ae);return eu(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ws(e,t,{leading:r,maxWait:t,trailing:o})}function Is(e){return Ts(e,1)}function Ls(e,t){return sf(To(t),e)}function Ps(){if(!arguments.length)return[];var e=arguments[0];return df(e)?e:[e]}function Rs(e){return tr(e,fe)}function js(e,t){return t="function"==typeof t?t:re,tr(e,fe,t)}function Bs(e){return tr(e,le|fe)}function Fs(e,t){return t="function"==typeof t?t:re,tr(e,le|fe,t)}function Hs(e,t){return null==t||rr(e,t,Ru(t))}function zs(e,t){return e===t||e!==e&&t!==t}function Ks(e){return null!=e&&Zs(e.length)&&!Xs(e)}function Us(e){return tu(e)&&Ks(e)}function qs(e){return!0===e||!1===e||tu(e)&&vr(e)==Ke}function Ws(e){return tu(e)&&1===e.nodeType&&!cu(e)}function Gs(e){if(null==e)return!0;if(Ks(e)&&(df(e)||"string"==typeof e||"function"==typeof e.splice||mf(e)||xf(e)||ff(e)))return!e.length;var t=_p(e);if(t==$e||t==et)return!e.size;if(ji(e))return!Rr(e).length;for(var n in e)if(fl.call(e,n))return!1;return!0}function Vs(e,t){return Ar(e,t)}function $s(e,t,n){n="function"==typeof n?n:re;var r=n?n(e,t):re;return r===re?Ar(e,t,re,n):!!r}function Ys(e){if(!tu(e))return!1;var t=vr(e);return t==We||t==qe||"string"==typeof e.message&&"string"==typeof e.name&&!cu(e)}function Js(e){return"number"==typeof e&&Bl(e)}function Xs(e){if(!eu(e))return!1;var t=vr(e);return t==Ge||t==Ve||t==ze||t==Qe}function Qs(e){return"number"==typeof e&&e==yu(e)}function Zs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Me}function eu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tu(e){return null!=e&&"object"==typeof e}function nu(e,t){return e===t||Nr(e,t,xi(t))}function ru(e,t,n){return n="function"==typeof n?n:re,Nr(e,t,xi(t),n)}function ou(e){return uu(e)&&e!=+e}function iu(e){if(Ep(e))throw new el(ie);return Dr(e)}function au(e){return null===e}function su(e){return null==e}function uu(e){return"number"==typeof e||tu(e)&&vr(e)==Ye}function cu(e){if(!tu(e)||vr(e)!=Xe)return!1;var t=El(e);if(null===t)return!0;var n=fl.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pl.call(n)==vl}function lu(e){return Qs(e)&&e>=-Me&&e<=Me}function pu(e){return"string"==typeof e||!df(e)&&tu(e)&&vr(e)==tt}function fu(e){return"symbol"==typeof e||tu(e)&&vr(e)==nt}function du(e){return e===re}function hu(e){return tu(e)&&_p(e)==ot}function mu(e){return tu(e)&&vr(e)==it}function vu(e){if(!e)return[];if(Ks(e))return pu(e)?Z(e):Lo(e);if(Cl&&e[Cl])return U(e[Cl]());var t=_p(e);return(t==$e?q:t==et?$:Yu)(e)}function gu(e){if(!e)return 0===e?e:0;if((e=xu(e))===De||e===-De){return(e<0?-1:1)*Ie}return e===e?e:0}function yu(e){var t=gu(e),n=t%1;return t===t?n?t-n:t:0}function bu(e){return e?er(yu(e),0,Pe):0}function xu(e){if("number"==typeof e)return e;if(fu(e))return Le;if(eu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=eu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Mt,"");var n=Ut.test(e);return n||Wt.test(e)?Cn(e.slice(2),n?2:8):Kt.test(e)?Le:+e}function Tu(e){return Po(e,ju(e))}function _u(e){return e?er(yu(e),-Me,Me):0===e?e:0}function Eu(e){return null==e?"":po(e)}function ku(e,t){var n=cp(e);return null==t?n:Jn(n,t)}function wu(e,t){return x(e,yi(t,3),pr)}function Ou(e,t){return x(e,yi(t,3),fr)}function Au(e,t){return null==e?e:fp(e,yi(t,3),ju)}function Cu(e,t){return null==e?e:dp(e,yi(t,3),ju)}function Su(e,t){return e&&pr(e,yi(t,3))}function Nu(e,t){return e&&fr(e,yi(t,3))}function Du(e){return null==e?[]:dr(e,Ru(e))}function Mu(e){return null==e?[]:dr(e,ju(e))}function Iu(e,t,n){var r=null==e?re:hr(e,t);return r===re?n:r}function Lu(e,t){return null!=e&&wi(e,t,yr)}function Pu(e,t){return null!=e&&wi(e,t,br)}function Ru(e){return Ks(e)?Nn(e):Rr(e)}function ju(e){return Ks(e)?Nn(e,!0):jr(e)}function Bu(e,t){var n={};return t=yi(t,3),pr(e,function(e,r,o){Qn(n,t(e,r,o),e)}),n}function Fu(e,t){var n={};return t=yi(t,3),pr(e,function(e,r,o){Qn(n,r,t(e,r,o))}),n}function Hu(e,t){return zu(e,Cs(yi(t)))}function zu(e,t){if(null==e)return{};var n=d(mi(e),function(e){return[e]});return t=yi(t),Vr(e,n,function(e,n){return t(e,n[0])})}function Ku(e,t,n){t=_o(t,e);var r=-1,o=t.length;for(o||(o=1,e=re);++rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Wl();return Kl(e+o*(t-e+An("1e-"+((o+"").length-1))),t)}return Xr(e,t)}function ec(e){return Gf(Eu(e).toLowerCase())}function tc(e){return(e=Eu(e))&&e.replace(Vt,qn).replace(hn,"")}function nc(e,t,n){e=Eu(e),t=po(t);var r=e.length;n=n===re?r:er(yu(n),0,r);var o=n;return(n-=t.length)>=0&&e.slice(n,o)==t}function rc(e){return e=Eu(e),e&&Et.test(e)?e.replace(Tt,Wn):e}function oc(e){return e=Eu(e),e&&Dt.test(e)?e.replace(Nt,"\\$&"):e}function ic(e,t,n){e=Eu(e),t=yu(t);var r=t?Q(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Zo(Pl(o),n)+e+Zo(Ll(o),n)}function ac(e,t,n){e=Eu(e),t=yu(t);var r=t?Q(e):0;return t&&r>>0)?(e=Eu(e),e&&("string"==typeof t||null!=t&&!yf(t))&&!(t=po(t))&&z(e)?Eo(Z(e),0,n):e.split(t,n)):[]}function fc(e,t,n){return e=Eu(e),n=null==n?0:er(yu(n),0,e.length),t=po(t),e.slice(n,n+t.length)==t}function dc(e,t,r){var o=n.templateSettings;r&&Mi(e,t,r)&&(t=re),e=Eu(e),t=wf({},t,o,si);var i,a,s=wf({},t.imports,o.imports,si),u=Ru(s),c=L(s,u),l=0,p=t.interpolate||$t,f="__p += '",d=ol((t.escape||$t).source+"|"+p.source+"|"+(p===Ot?Ht:$t).source+"|"+(t.evaluate||$t).source+"|$","g"),h="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++xn+"]")+"\n";e.replace(d,function(t,n,r,o,s,u){return r||(r=o),f+=e.slice(l,u).replace(Yt,F),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+t.length,t}),f+="';\n";var m=t.variable;m||(f="with (obj) {\n"+f+"\n}\n"),f=(a?f.replace(gt,""):f).replace(yt,"$1").replace(bt,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Vf(function(){return tl(u,h+"return "+f).apply(re,c)});if(v.source=f,Ys(v))throw v;return v}function hc(e){return Eu(e).toLowerCase()}function mc(e){return Eu(e).toUpperCase()}function vc(e,t,n){if((e=Eu(e))&&(n||t===re))return e.replace(Mt,"");if(!e||!(t=po(t)))return e;var r=Z(e),o=Z(t);return Eo(r,R(r,o),j(r,o)+1).join("")}function gc(e,t,n){if((e=Eu(e))&&(n||t===re))return e.replace(Lt,"");if(!e||!(t=po(t)))return e;var r=Z(e);return Eo(r,0,j(r,Z(t))+1).join("")}function yc(e,t,n){if((e=Eu(e))&&(n||t===re))return e.replace(It,"");if(!e||!(t=po(t)))return e;var r=Z(e);return Eo(r,R(r,Z(t))).join("")}function bc(e,t){var n=we,r=Oe;if(eu(t)){var o="separator"in t?t.separator:o;n="length"in t?yu(t.length):n,r="omission"in t?po(t.omission):r}e=Eu(e);var i=e.length;if(z(e)){var a=Z(e);i=a.length}if(n>=i)return e;var s=n-Q(r);if(s<1)return r;var u=a?Eo(a,0,s).join(""):e.slice(0,s);if(o===re)return u+r;if(a&&(s+=u.length-s),yf(o)){if(e.slice(s).search(o)){var c,l=u;for(o.global||(o=ol(o.source,Eu(zt.exec(o))+"g")),o.lastIndex=0;c=o.exec(l);)var p=c.index;u=u.slice(0,p===re?s:p)}}else if(e.indexOf(po(o),s)!=s){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+r}function xc(e){return e=Eu(e),e&&_t.test(e)?e.replace(xt,Gn):e}function Tc(e,t,n){return e=Eu(e),t=n?re:t,t===re?K(e)?ne(e):b(e):e.match(t)||[]}function _c(e){var t=null==e?0:e.length,n=yi();return e=t?d(e,function(e){if("function"!=typeof e[1])throw new al(ae);return[n(e[0]),e[1]]}):[],eo(function(n){for(var r=-1;++rMe)return[];var n=Pe,r=Kl(e,Pe);t=yi(t),e-=Pe;for(var o=D(r,t);++n1?e[t-1]:re;return n="function"==typeof n?(e.pop(),n):re,Ua(e,n)}),Wp=di(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Zn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof y&&Di(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:$a,args:[i],thisArg:re}),new o(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(re),e})):this.thru(i)}),Gp=Bo(function(e,t,n){fl.call(e,n)?++e[n]:Qn(e,n,1)}),Vp=Vo(sa),$p=Vo(ua),Yp=Bo(function(e,t,n){fl.call(e,n)?e[n].push(t):Qn(e,n,[t])}),Jp=eo(function(e,t,n){var r=-1,o="function"==typeof t,a=Ks(e)?Qc(e.length):[];return lp(e,function(e){a[++r]=o?i(t,e,n):Er(e,t,n)}),a}),Xp=Bo(function(e,t,n){Qn(e,n,t)}),Qp=Bo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Zp=eo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Mi(e,t[0],t[1])?t=[]:n>2&&Mi(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,lr(t,1),[])}),ef=Ml||function(){return Dn.Date.now()},tf=eo(function(e,t,n){var r=me;if(n.length){var o=G(n,gi(tf));r|=xe}return ai(e,r,t,n,o)}),nf=eo(function(e,t,n){var r=me|ve;if(n.length){var o=G(n,gi(nf));r|=xe}return ai(t,r,e,n,o)}),rf=eo(function(e,t){return or(e,1,t)}),of=eo(function(e,t,n){return or(e,xu(t)||0,n)});As.Cache=sn;var af=vp(function(e,t){t=1==t.length&&df(t[0])?d(t[0],I(yi())):d(lr(t,1),I(yi()));var n=t.length;return eo(function(r){for(var o=-1,a=Kl(r.length,n);++o=t}),ff=kr(function(){return arguments}())?kr:function(e){return tu(e)&&fl.call(e,"callee")&&!wl.call(e,"callee")},df=Qc.isArray,hf=jn?I(jn):wr,mf=jl||jc,vf=Bn?I(Bn):Or,gf=Fn?I(Fn):Sr,yf=Hn?I(Hn):Mr,bf=zn?I(zn):Ir,xf=Kn?I(Kn):Lr,Tf=ni(Br),_f=ni(function(e,t){return e<=t}),Ef=Fo(function(e,t){if(ji(t)||Ks(t))return void Po(t,Ru(t),e);for(var n in t)fl.call(t,n)&&Un(e,n,t[n])}),kf=Fo(function(e,t){Po(t,ju(t),e)}),wf=Fo(function(e,t,n,r){Po(t,ju(t),e,r)}),Of=Fo(function(e,t,n,r){Po(t,Ru(t),e,r)}),Af=di(Zn),Cf=eo(function(e,t){e=rl(e);var n=-1,r=t.length,o=r>2?t[2]:re;for(o&&Mi(t[0],t[1],o)&&(r=1);++n1),t}),Po(e,mi(e),n),r&&(n=tr(n,le|pe|fe,ci));for(var o=t.length;o--;)ho(n,t[o]);return n}),Rf=di(function(e,t){return null==e?{}:Gr(e,t)}),jf=ii(Ru),Bf=ii(ju),Ff=qo(function(e,t,n){return t=t.toLowerCase(),e+(n?ec(t):t)}),Hf=qo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),zf=qo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Kf=Uo("toLowerCase"),Uf=qo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),qf=qo(function(e,t,n){return e+(n?" ":"")+Gf(t)}),Wf=qo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Gf=Uo("toUpperCase"),Vf=eo(function(e,t){try{return i(e,re,t)}catch(e){return Ys(e)?e:new el(e)}}),$f=di(function(e,t){return s(t,function(t){t=Yi(t),Qn(e,t,tf(e[t],e))}),e}),Yf=$o(),Jf=$o(!0),Xf=eo(function(e,t){return function(n){return Er(n,e,t)}}),Qf=eo(function(e,t){return function(n){return Er(e,n,t)}}),Zf=Qo(d),ed=Qo(c),td=Qo(g),nd=ti(),rd=ti(!0),od=Xo(function(e,t){return e+t},0),id=oi("ceil"),ad=Xo(function(e,t){return e/t},1),sd=oi("floor"),ud=Xo(function(e,t){return e*t},1),cd=oi("round"),ld=Xo(function(e,t){return e-t},0);return n.after=xs,n.ary=Ts,n.assign=Ef,n.assignIn=kf,n.assignInWith=wf,n.assignWith=Of,n.at=Af,n.before=_s,n.bind=tf,n.bindAll=$f,n.bindKey=nf,n.castArray=Ps,n.chain=Ga,n.chunk=Zi,n.compact=ea,n.concat=ta,n.cond=_c,n.conforms=Ec,n.constant=kc,n.countBy=Gp,n.create=ku,n.curry=Es,n.curryRight=ks,n.debounce=ws,n.defaults=Cf,n.defaultsDeep=Sf,n.defer=rf,n.delay=of,n.difference=Cp,n.differenceBy=Sp,n.differenceWith=Np,n.drop=na,n.dropRight=ra,n.dropRightWhile=oa,n.dropWhile=ia,n.fill=aa,n.filter=rs,n.flatMap=os,n.flatMapDeep=is,n.flatMapDepth=as,n.flatten=ca,n.flattenDeep=la,n.flattenDepth=pa,n.flip=Os,n.flow=Yf,n.flowRight=Jf,n.fromPairs=fa,n.functions=Du,n.functionsIn=Mu,n.groupBy=Yp,n.initial=ma,n.intersection=Dp,n.intersectionBy=Mp,n.intersectionWith=Ip,n.invert=Nf,n.invertBy=Df,n.invokeMap=Jp,n.iteratee=Ac,n.keyBy=Xp,n.keys=Ru,n.keysIn=ju,n.map=ls,n.mapKeys=Bu,n.mapValues=Fu,n.matches=Cc,n.matchesProperty=Sc,n.memoize=As,n.merge=If,n.mergeWith=Lf,n.method=Xf,n.methodOf=Qf,n.mixin=Nc,n.negate=Cs,n.nthArg=Ic,n.omit=Pf,n.omitBy=Hu,n.once=Ss,n.orderBy=ps,n.over=Zf,n.overArgs=af,n.overEvery=ed,n.overSome=td,n.partial=sf,n.partialRight=uf,n.partition=Qp,n.pick=Rf,n.pickBy=zu,n.property=Lc,n.propertyOf=Pc,n.pull=Lp,n.pullAll=xa,n.pullAllBy=Ta,n.pullAllWith=_a,n.pullAt=Pp,n.range=nd,n.rangeRight=rd,n.rearg=cf,n.reject=hs,n.remove=Ea,n.rest=Ns,n.reverse=ka,n.sampleSize=vs,n.set=Uu,n.setWith=qu,n.shuffle=gs,n.slice=wa,n.sortBy=Zp,n.sortedUniq=Ma,n.sortedUniqBy=Ia,n.split=pc,n.spread=Ds,n.tail=La,n.take=Pa,n.takeRight=Ra,n.takeRightWhile=ja,n.takeWhile=Ba,n.tap=Va,n.throttle=Ms,n.thru=$a,n.toArray=vu,n.toPairs=jf,n.toPairsIn=Bf,n.toPath=Kc,n.toPlainObject=Tu,n.transform=Wu,n.unary=Is,n.union=Rp,n.unionBy=jp,n.unionWith=Bp,n.uniq=Fa,n.uniqBy=Ha,n.uniqWith=za,n.unset=Gu,n.unzip=Ka,n.unzipWith=Ua,n.update=Vu,n.updateWith=$u,n.values=Yu,n.valuesIn=Ju,n.without=Fp,n.words=Tc,n.wrap=Ls,n.xor=Hp,n.xorBy=zp,n.xorWith=Kp,n.zip=Up,n.zipObject=qa,n.zipObjectDeep=Wa,n.zipWith=qp,n.entries=jf,n.entriesIn=Bf,n.extend=kf,n.extendWith=wf,Nc(n,n),n.add=od,n.attempt=Vf,n.camelCase=Ff,n.capitalize=ec,n.ceil=id,n.clamp=Xu,n.clone=Rs,n.cloneDeep=Bs,n.cloneDeepWith=Fs,n.cloneWith=js,n.conformsTo=Hs,n.deburr=tc,n.defaultTo=wc,n.divide=ad,n.endsWith=nc,n.eq=zs,n.escape=rc,n.escapeRegExp=oc,n.every=ns,n.find=Vp,n.findIndex=sa,n.findKey=wu,n.findLast=$p,n.findLastIndex=ua,n.findLastKey=Ou,n.floor=sd,n.forEach=ss,n.forEachRight=us,n.forIn=Au,n.forInRight=Cu,n.forOwn=Su,n.forOwnRight=Nu,n.get=Iu,n.gt=lf,n.gte=pf,n.has=Lu,n.hasIn=Pu,n.head=da,n.identity=Oc,n.includes=cs,n.indexOf=ha,n.inRange=Qu,n.invoke=Mf,n.isArguments=ff,n.isArray=df,n.isArrayBuffer=hf,n.isArrayLike=Ks,n.isArrayLikeObject=Us,n.isBoolean=qs,n.isBuffer=mf,n.isDate=vf,n.isElement=Ws,n.isEmpty=Gs,n.isEqual=Vs,n.isEqualWith=$s,n.isError=Ys,n.isFinite=Js,n.isFunction=Xs,n.isInteger=Qs,n.isLength=Zs,n.isMap=gf,n.isMatch=nu,n.isMatchWith=ru,n.isNaN=ou,n.isNative=iu,n.isNil=su,n.isNull=au,n.isNumber=uu,n.isObject=eu,n.isObjectLike=tu,n.isPlainObject=cu,n.isRegExp=yf,n.isSafeInteger=lu,n.isSet=bf,n.isString=pu,n.isSymbol=fu,n.isTypedArray=xf,n.isUndefined=du,n.isWeakMap=hu,n.isWeakSet=mu,n.join=va,n.kebabCase=Hf,n.last=ga,n.lastIndexOf=ya,n.lowerCase=zf,n.lowerFirst=Kf,n.lt=Tf,n.lte=_f,n.max=qc,n.maxBy=Wc,n.mean=Gc,n.meanBy=Vc,n.min=$c,n.minBy=Yc,n.stubArray=Rc,n.stubFalse=jc,n.stubObject=Bc,n.stubString=Fc,n.stubTrue=Hc,n.multiply=ud,n.nth=ba,n.noConflict=Dc,n.noop=Mc,n.now=ef,n.pad=ic,n.padEnd=ac,n.padStart=sc,n.parseInt=uc,n.random=Zu,n.reduce=fs,n.reduceRight=ds,n.repeat=cc,n.replace=lc,n.result=Ku,n.round=cd,n.runInContext=e,n.sample=ms,n.size=ys,n.snakeCase=Uf,n.some=bs,n.sortedIndex=Oa,n.sortedIndexBy=Aa,n.sortedIndexOf=Ca,n.sortedLastIndex=Sa,n.sortedLastIndexBy=Na,n.sortedLastIndexOf=Da,n.startCase=qf,n.startsWith=fc,n.subtract=ld,n.sum=Jc,n.sumBy=Xc,n.template=dc,n.times=zc,n.toFinite=gu,n.toInteger=yu,n.toLength=bu,n.toLower=hc,n.toNumber=xu,n.toSafeInteger=_u,n.toString=Eu,n.toUpper=mc,n.trim=vc,n.trimEnd=gc,n.trimStart=yc,n.truncate=bc,n.unescape=xc,n.uniqueId=Uc,n.upperCase=Wf,n.upperFirst=Gf,n.each=ss,n.eachRight=us,n.first=da,Nc(n,function(){var e={};return pr(n,function(t,r){fl.call(n.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),n.VERSION="4.17.5",s(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){n[e].placeholder=n}),s(["drop","take"],function(e,t){y.prototype[e]=function(n){n=n===re?1:zl(yu(n),0);var r=this.__filtered__&&!t?new y(this):this.clone();return r.__filtered__?r.__takeCount__=Kl(n,r.__takeCount__):r.__views__.push({size:Kl(n,Pe),type:e+(r.__dir__<0?"Right":"")}),r},y.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),s(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==Se||3==n;y.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:yi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),s(["head","last"],function(e,t){var n="take"+(t?"Right":"");y.prototype[e]=function(){return this[n](1).value()[0]}}),s(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");y.prototype[e]=function(){return this.__filtered__?new y(this):this[n](1)}}),y.prototype.compact=function(){return this.filter(Oc)},y.prototype.find=function(e){return this.filter(e).head()},y.prototype.findLast=function(e){return this.reverse().find(e)},y.prototype.invokeMap=eo(function(e,t){return"function"==typeof e?new y(this):this.map(function(n){return Er(n,e,t)})}),y.prototype.reject=function(e){return this.filter(Cs(yi(e)))},y.prototype.slice=function(e,t){e=yu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==re&&(t=yu(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},y.prototype.toArray=function(){return this.take(Pe)},pr(y.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=n[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);a&&(n.prototype[t]=function(){var t=this.__wrapped__,u=i?[1]:arguments,c=t instanceof y,l=u[0],p=c||df(t),f=function(e){var t=a.apply(n,h([e],u));return i&&d?t[0]:t};p&&r&&"function"==typeof l&&1!=l.length&&(c=p=!1);var d=this.__chain__,m=!!this.__actions__.length,v=s&&!d,g=c&&!m;if(!s&&p){t=g?t:new y(this);var b=e.apply(t,u);return b.__actions__.push({func:$a,args:[f],thisArg:re}),new o(b,d)}return v&&g?e.apply(this,u):(b=this.thru(f),v?i?b.value()[0]:b.value():b)})}),s(["pop","push","shift","sort","splice","unshift"],function(e){var t=sl[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);n.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var n=this.value();return t.apply(df(n)?n:[],e)}return this[r](function(n){return t.apply(df(n)?n:[],e)})}}),pr(y.prototype,function(e,t){var r=n[t];if(r){var o=r.name+"";(ep[o]||(ep[o]=[])).push({name:t,func:r})}}),ep[Yo(re,ve).name]=[{name:"wrapper",func:re}],y.prototype.clone=A,y.prototype.reverse=J,y.prototype.value=ee,n.prototype.at=Wp,n.prototype.chain=Ya,n.prototype.commit=Ja,n.prototype.next=Xa,n.prototype.plant=Za,n.prototype.reverse=es,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=ts,n.prototype.first=n.prototype.head,Cl&&(n.prototype[Cl]=Qa),n}();Dn._=Vn,(o=function(){return Vn}.call(t,n,t,r))!==re&&(r.exports=o)}).call(this)}).call(t,n(12),n(21)(e))},function(e,t){},function(e,t,n){!function(e){e(n(66),n(683),n(684))}(function(e){"use strict";e.defineMode("markdown",function(t,n){function r(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var o=e.getMode(t,n);return"null"==o.name?null:o}function o(e,t,n){return t.f=t.inline=n,n(e,t)}function i(e,t,n){return t.f=t.block=n,n(e,t)}function a(e){return!e||!/\S/.test(e.string)}function s(e){return e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==c&&(e.f=d,e.block=u),e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function u(t,i){var s=t.column()===i.indentation,u=a(i.prevLine.stream),c=i.indentedCode,f=i.prevLine.hr,d=!1!==i.list,h=(i.listStack[i.listStack.length-1]||0)+3;i.indentedCode=!1;var m=i.indentation;if(null===i.indentationDiff&&(i.indentationDiff=i.indentation,d)){for(i.em=!1,i.strong=!1,i.code=!1,i.strikethrough=!1,i.list=null;m=4&&(c||i.prevLine.fencedCodeEnd||i.prevLine.header||u))return t.skipToEnd(),i.indentedCode=!0,_.code;if(t.eatSpace())return null;if(s&&i.indentation<=h&&(b=t.match(A))&&b[1].length<=6)return i.quote=0,i.header=b[1].length,i.thisLine.header=!0,n.highlightFormatting&&(i.formatting="header"),i.f=i.inline,p(i);if(i.indentation<=h&&t.eat(">"))return i.quote=s?1:i.quote+1,n.highlightFormatting&&(i.formatting="quote"),t.eatSpace(),p(i);if(!y&&!i.setext&&s&&i.indentation<=h&&(b=t.match(w))){var x=b[1]?"ol":"ul";return i.indentation=m+t.current().length,i.list=!0,i.quote=0,i.listStack.push(i.indentation),n.taskLists&&t.match(O,!1)&&(i.taskList=!0),i.f=i.inline,n.highlightFormatting&&(i.formatting=["list","list-"+x]),p(i)}return s&&i.indentation<=h&&(b=t.match(N,!0))?(i.quote=0,i.fencedEndRE=new RegExp(b[1]+"+ *$"),i.localMode=n.fencedCodeBlockHighlighting&&r(b[2]),i.localMode&&(i.localState=e.startState(i.localMode)),i.f=i.block=l,n.highlightFormatting&&(i.formatting="code-block"),i.code=-1,p(i)):i.setext||!(v&&d||i.quote||!1!==i.list||i.code||y||D.test(t.string))&&(b=t.lookAhead(1))&&(b=b.match(C))?(i.setext?(i.header=i.setext,i.setext=0,t.skipToEnd(),n.highlightFormatting&&(i.formatting="header")):(i.header="="==b[0].charAt(0)?1:2,i.setext=i.header),i.thisLine.header=!0,i.f=i.inline,p(i)):y?(t.skipToEnd(),i.hr=!0,i.thisLine.hr=!0,_.hr):"["===t.peek()?o(t,i,g):o(t,i,i.inline)}function c(t,n){var r=x.token(t,n.htmlState);if(!T){var o=e.innerMode(x,n.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=d,n.block=u,n.htmlState=null)}return r}function l(e,t){var r=t.listStack[t.listStack.length-1]||0,o=t.indentation=e.quote?t.push(_.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(_.linkHref,"url"):(e.strong&&t.push(_.strong),e.em&&t.push(_.em),e.strikethrough&&t.push(_.strikethrough),e.emoji&&t.push(_.emoji),e.linkText&&t.push(_.linkText),e.code&&t.push(_.code),e.image&&t.push(_.image),e.imageAltText&&t.push(_.imageAltText,"link"),e.imageMarker&&t.push(_.imageMarker)),e.header&&t.push(_.header,_.header+"-"+e.header),e.quote&&(t.push(_.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(_.quote+"-"+e.quote):t.push(_.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var o=(e.listStack.length-1)%3;o?1===o?t.push(_.list2):t.push(_.list3):t.push(_.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function f(e,t){if(e.match(S,!0))return p(t)}function d(t,r){var o=r.text(t,r);if("undefined"!==typeof o)return o;if(r.list)return r.list=null,p(r);if(r.taskList){return" "===t.match(O,!0)[1]?r.taskOpen=!0:r.taskClosed=!0,n.highlightFormatting&&(r.formatting="task"),r.taskList=!1,p(r)}if(r.taskOpen=!1,r.taskClosed=!1,r.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(r.formatting="header"),p(r);var a=t.next();if(r.linkTitle){r.linkTitle=!1;var s=a;"("===a&&(s=")"),s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var u="^\\s*(?:[^"+s+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(t.match(new RegExp(u),!0))return _.linkHref}if("`"===a){var l=r.formatting;n.highlightFormatting&&(r.formatting="code"),t.eatWhile("`");var f=t.current().length;if(0!=r.code||r.quote&&1!=f){if(f==r.code){var v=p(r);return r.code=0,v}return r.formatting=l,p(r)}return r.code=f,p(r)}if(r.code)return p(r);if("\\"===a&&(t.next(),n.highlightFormatting)){var g=p(r),y=_.formatting+"-escape";return g?g+" "+y:y}if("!"===a&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return r.imageMarker=!0,r.image=!0,n.highlightFormatting&&(r.formatting="image"),p(r);if("["===a&&r.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return r.imageMarker=!1,r.imageAltText=!0,n.highlightFormatting&&(r.formatting="image"),p(r);if("]"===a&&r.imageAltText){n.highlightFormatting&&(r.formatting="image");var g=p(r);return r.imageAltText=!1,r.image=!1,r.inline=r.f=m,g}if("["===a&&!r.image)return r.linkText=!0,n.highlightFormatting&&(r.formatting="link"),p(r);if("]"===a&&r.linkText){n.highlightFormatting&&(r.formatting="link");var g=p(r);return r.linkText=!1,r.inline=r.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?m:d,g}if("<"===a&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=h,n.highlightFormatting&&(r.formatting="link");var g=p(r);return g?g+=" ":g="",g+_.linkInline}if("<"===a&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=h,n.highlightFormatting&&(r.formatting="link");var g=p(r);return g?g+=" ":g="",g+_.linkEmail}if(n.xml&&"<"===a&&t.match(/^(!--|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*>)/i,!1)){var b=t.string.indexOf(">",t.pos);if(-1!=b){/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(t.string.substring(t.start,b))&&(r.md_inside=!0)}return t.backUp(1),r.htmlState=e.startState(x),i(t,r,c)}if(n.xml&&"<"===a&&t.match(/^\/\w*?>/))return r.md_inside=!1,"tag";if("*"===a||"_"===a){for(var T=1,E=1==t.pos?" ":t.string.charAt(t.pos-2);T<3&&t.eat(a);)T++;var k=t.peek()||" ",w=!/\s/.test(k)&&(!M.test(k)||/\s/.test(E)||M.test(E)),A=!/\s/.test(E)&&(!M.test(E)||/\s/.test(k)||M.test(k)),C=null,S=null;if(T%2&&(r.em||!w||"*"!==a&&A&&!M.test(E)?r.em!=a||!A||"*"!==a&&w&&!M.test(k)||(C=!1):C=!0),T>1&&(r.strong||!w||"*"!==a&&A&&!M.test(E)?r.strong!=a||!A||"*"!==a&&w&&!M.test(k)||(S=!1):S=!0),null!=S||null!=C){n.highlightFormatting&&(r.formatting=null==C?"strong":null==S?"em":"strong em"),!0===C&&(r.em=a),!0===S&&(r.strong=a);var v=p(r);return!1===C&&(r.em=!1),!1===S&&(r.strong=!1),v}}else if(" "===a&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return p(r);t.backUp(1)}if(n.strikethrough)if("~"===a&&t.eatWhile(a)){if(r.strikethrough){n.highlightFormatting&&(r.formatting="strikethrough");var v=p(r);return r.strikethrough=!1,v}if(t.match(/^[^\s]/,!1))return r.strikethrough=!0,n.highlightFormatting&&(r.formatting="strikethrough"),p(r)}else if(" "===a&&t.match(/^~~/,!0)){if(" "===t.peek())return p(r);t.backUp(2)}if(n.emoji&&":"===a&&t.match(/^[a-z_\d+-]+:/)){r.emoji=!0,n.highlightFormatting&&(r.formatting="emoji");var N=p(r);return r.emoji=!1,N}return" "===a&&(t.match(/ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),p(r)}function h(e,t){if(">"===e.next()){t.f=t.inline=d,n.highlightFormatting&&(t.formatting="link");var r=p(t);return r?r+=" ":r="",r+_.linkInline}return e.match(/^[^>]+/,!0),_.linkInline}function m(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=v("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,p(t)):"error"}function v(e){return function(t,r){if(t.next()===e){r.f=r.inline=d,n.highlightFormatting&&(r.formatting="link-string");var o=p(r);return r.linkHref=!1,o}return t.match(I[e]),r.linkHref=!0,p(r)}}function g(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=y,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,p(t)):o(e,t,d)}function y(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=b,n.highlightFormatting&&(t.formatting="link");var r=p(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),_.linkText}function b(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=d,_.linkHref+" url")}var x=e.getMode(t,"text/html"),T="null"==x.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var _={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var E in _)_.hasOwnProperty(E)&&n.tokenTypeOverrides[E]&&(_[E]=n.tokenTypeOverrides[E]);var k=/^([*\-_])(?:\s*\1){2,}\s*$/,w=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,O=/^\[(x| )\](?=\s)/i,A=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,C=/^ *(?:\={1,}|-{1,})\s*$/,S=/^[^#!\[\]*_\\<>` "'(~:]+/,N=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,D=/^\s*\[[^\]]+?\]:.*$/,M=/[!\"#$%&\'()*+,\-\.\/:;<=>?@\[\\\]^_`{|}~\u2014]/,I={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/},L={startState:function(){return{f:u,prevLine:{stream:null},thisLine:{stream:null},block:u,htmlState:null,indentation:0,inline:d,text:f,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(x,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return s(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=c)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==c?{state:e.htmlState,mode:x}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:L}},indent:function(t,n,r){return t.block==c&&x.indent?x.indent(t.htmlState,n,r):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,r):e.Pass},blankLine:s,getType:p,closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return L},"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")})},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";var e="second",t="minute",n="hour",r="day",o="week",i="month",a="year",s=/^(\d{4})-?(\d{1,2})-?(\d{0,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,u=/\[.*?\]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},l=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},p={padStart:l,padZoneStr:function(e){var t=Math.abs(e),n=Math.floor(t/60),r=t%60;return(e<=0?"+":"-")+l(n,2,"0")+":"+l(r,2,"0")},monthDiff:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months"),o=t-r<0,i=e.clone().add(n+(o?-1:1),"months");return Number(-(n+(t-r)/(o?r-i:i-r)))},absFloor:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},prettyUnit:function(e){return e&&String(e).toLowerCase().replace(/s$/,"")},isUndefined:function(e){return void 0===e}},f="en",d={};d[f]=c;var h=function(e){return e instanceof b},m=function(e,t,n){var r;if(!e)return null;if("string"==typeof e)d[e]&&(r=e),t&&(d[e]=t,r=e);else{var o=e.name;d[o]=e,r=o}return n||(f=r),r},v=function(e,t){if(h(e))return e.clone();var n=t||{};return n.date=e,new b(n)},g=function(e,t){return v(e,{locale:t.$L})},y=p;y.parseLocale=m,y.isDayjs=h,y.wrapper=g;var b=function(){function c(e){this.parse(e)}var l=c.prototype;return l.parse=function(e){var t,n;this.$d=null===(t=e.date)?new Date(NaN):y.isUndefined(t)?new Date:t instanceof Date?t:"string"==typeof t&&(n=t.match(s))?new Date(n[1],n[2]-1,n[3]||1,n[5]||0,n[6]||0,n[7]||0,n[8]||0):new Date(t),this.init(e)},l.init=function(e){this.$y=this.$d.getFullYear(),this.$M=this.$d.getMonth(),this.$D=this.$d.getDate(),this.$W=this.$d.getDay(),this.$H=this.$d.getHours(),this.$m=this.$d.getMinutes(),this.$s=this.$d.getSeconds(),this.$ms=this.$d.getMilliseconds(),this.$L=this.$L||m(e.locale,null,!0)||f},l.$utils=function(){return y},l.isValid=function(){return!("Invalid Date"===this.$d.toString())},l.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0},l.isSame=function(e){return this.valueOf()===e.valueOf()},l.isBefore=function(e){return this.valueOf()e.valueOf()},l.year=function(){return this.$y},l.month=function(){return this.$M},l.day=function(){return this.$W},l.date=function(){return this.$D},l.hour=function(){return this.$H},l.minute=function(){return this.$m},l.second=function(){return this.$s},l.millisecond=function(){return this.$ms},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(s,u){var c=this,l=!!y.isUndefined(u)||u,p=function(e,t,n){void 0===n&&(n=c.$y);var o=g(new Date(n,t,e),c);return l?o:o.endOf(r)},f=function(e,t){return g(c.toDate()[e].apply(c.toDate(),l?[0,0,0,0].slice(t):[23,59,59,999].slice(t)),c)};switch(y.prettyUnit(s)){case a:return l?p(1,0):p(31,11,this.$y);case i:return l?p(1,this.$M):p(0,this.$M+1,this.$y);case o:return l?p(this.$D-this.$W,this.$M):p(this.$D+(6-this.$W),this.$M,this.$y);case r:case"date":return f("setHours",0);case n:return f("setMinutes",1);case t:return f("setSeconds",2);case e:return f("setMilliseconds",3);default:return this.clone()}},l.endOf=function(e){return this.startOf(e,!1)},l.$set=function(r,o){switch(y.prettyUnit(r)){case"date":this.$d.setDate(o);break;case i:this.$d.setMonth(o);break;case a:this.$d.setFullYear(o);break;case n:this.$d.setHours(o);break;case t:this.$d.setMinutes(o);break;case e:this.$d.setSeconds(o);break;case"millisecond":this.$d.setMilliseconds(o)}return this.init(),this},l.set=function(e,t){return this.clone().$set(e,t)},l.add=function(s,u){var c=this;s=Number(s);var l,p=!u||1!==u.length&&"ms"!==u?y.prettyUnit(u):u,f=function(e,t){var n=c.set("date",1).set(e,t+s);return n.set("date",Math.min(c.$D,n.daysInMonth()))};if(["M",i].indexOf(p)>-1)return f(i,this.$M);if(["y",a].indexOf(p)>-1)return f(a,this.$y);switch(p){case"m":case t:l=6e4;break;case"h":case n:l=36e5;break;case"d":case r:l=864e5;break;case"w":case o:l=6048e5;break;case"s":case e:l=1e3;break;default:l=1}var d=this.valueOf()+s*l;return g(d,this)},l.subtract=function(e,t){return this.add(-1*e,t)},l.format=function(e,t){var n=this,r=e||"YYYY-MM-DDTHH:mm:ssZ",o=y.padZoneStr(this.$d.getTimezoneOffset()),i=t||this.$locale(),a=i.weekdays,s=i.months;return r.replace(u,function(e){if(e.indexOf("[")>-1)return e.replace(/\[|\]/g,"");switch(e){case"YY":return String(n.$y).slice(-2);case"YYYY":return String(n.$y);case"M":return String(n.$M+1);case"MM":return y.padStart(n.$M+1,2,"0");case"MMM":return s[n.$M].slice(0,3);case"MMMM":return s[n.$M];case"D":return String(n.$D);case"DD":return y.padStart(n.$D,2,"0");case"d":return String(n.$W);case"dddd":return a[n.$W];case"H":return String(n.$H);case"HH":return y.padStart(n.$H,2,"0");case"h":case"hh":return 0===n.$H?12:y.padStart(n.$H<13?n.$H:n.$H-12,"hh"===e?2:1,"0");case"a":return n.$H<12?"am":"pm";case"A":return n.$H<12?"AM":"PM";case"m":return String(n.$m);case"mm":return y.padStart(n.$m,2,"0");case"s":return String(n.$s);case"ss":return y.padStart(n.$s,2,"0");case"SSS":return y.padStart(n.$ms,3,"0");case"Z":return o;default:return o.replace(":","")}})},l.diff=function(s,u,c){var l=y.prettyUnit(u),p=h(s)?s:v(s.valueOf()),f=this-p,d=y.monthDiff(this,p);switch(l){case a:d/=12;break;case i:break;case"quarter":d/=3;break;case o:d=f/6048e5;break;case r:d=f/864e5;break;case n:d=f/36e5;break;case t:d=f/6e4;break;case e:d=f/1e3;break;default:d=f}return c?d:y.absFloor(d)},l.daysInMonth=function(){return this.endOf(i).$D},l.$locale=function(){return d[this.$L]},l.locale=function(e,t){return this.$L=m(e,t,!0),this},l.clone=function(){return g(this.toDate(),this)},l.toDate=function(){return new Date(this.$d)},l.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},l.toJSON=function(){return this.toISOString()},l.toISOString=function(){return this.toDate().toISOString()},l.toObject=function(){return{years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},l.toString=function(){return this.$d.toUTCString()},c}();return v.extend=function(e,t){return e(t,b,v),v},v.locale=m,v.en=d[f],v})},function(e,t,n){"use strict";t.a={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}}},function(e,t,n){n(227),e.exports=n(231)},function(e,t,n){"use strict";"undefined"===typeof Promise&&(n(228).enable(),window.Promise=n(230)),n(111),Object.assign=n(38)},function(e,t,n){"use strict";function r(){c=!1,s._47=null,s._71=null}function o(e){function t(t){(e.allRejections||a(p[t].error,e.whitelist||u))&&(p[t].displayId=l++,e.onUnhandled?(p[t].logged=!0,e.onUnhandled(p[t].displayId,p[t].error)):(p[t].logged=!0,i(p[t].displayId,p[t].error)))}function n(t){p[t].logged&&(e.onHandled?e.onHandled(p[t].displayId,p[t].error):p[t].onUnhandled||(console.warn("Promise Rejection Handled (id: "+p[t].displayId+"):"),console.warn(' This means you can ignore any previous messages of the form "Possible Unhandled Promise Rejection" with id '+p[t].displayId+".")))}e=e||{},c&&r(),c=!0;var o=0,l=0,p={};s._47=function(e){2===e._83&&p[e._56]&&(p[e._56].logged?n(e._56):clearTimeout(p[e._56].timeout),delete p[e._56])},s._71=function(e,n){0===e._75&&(e._56=o++,p[e._56]={displayId:null,error:n,timeout:setTimeout(t.bind(null,e._56),a(n,u)?100:2e3),logged:!1})}}function i(e,t){console.warn("Possible Unhandled Promise Rejection (id: "+e+"):"),((t&&(t.stack||t))+"").split("\n").forEach(function(e){console.warn(" "+e)})}function a(e,t){return t.some(function(t){return e instanceof t})}var s=n(110),u=[ReferenceError,TypeError,RangeError],c=!1;t.disable=r,t.enable=o},function(e,t,n){"use strict";(function(t){function n(e){a.length||(i(),s=!0),a[a.length]=e}function r(){for(;uc){for(var t=0,n=a.length-u;tP.length&&P.push(e)}function d(e,t,n,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case _:case E:case k:case w:a=!0}}if(a)return n(o,e,""===t?"."+h(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;sthis.eventPool.length&&this.eventPool.push(e)}function K(e){e.eventPool=[],e.getPooled=H,e.release=z}function U(e,t,n,r){return F.call(this,e,t,n,r)}function q(e,t,n,r){return F.call(this,e,t,n,r)}function W(e,t){switch(e){case"topKeyUp":return-1!==dr.indexOf(t.keyCode);case"topKeyDown":return 229!==t.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function G(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}function V(e,t){switch(e){case"topCompositionEnd":return G(t);case"topKeyPress":return 32!==t.which?null:(Er=!0,Tr);case"topTextInput":return e=t.data,e===Tr&&Er?null:e;default:return null}}function $(e,t){if(kr)return"topCompositionEnd"===e||!hr&&W(e,t)?(e=j(),lr._root=null,lr._startText=null,lr._fallbackText=null,kr=!1,e):null;switch(e){case"topPaste":return null;case"topKeyPress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1Kr.length&&Kr.push(e)}}}function Ie(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function Le(e){if(Vr[e])return Vr[e];if(!Gr[e])return e;var t,n=Gr[e];for(t in n)if(n.hasOwnProperty(t)&&t in $r)return Vr[e]=n[t];return""}function Pe(e){return Object.prototype.hasOwnProperty.call(e,Qr)||(e[Qr]=Xr++,Jr[e[Qr]]={}),Jr[e[Qr]]}function Re(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function je(e,t){var n=Re(e);e=0;for(var r;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Re(n)}}function Be(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)}function Fe(e,t){if(oo||null==to||to!==kn())return null;var n=to;return"selectionStart"in n&&Be(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,ro&&wn(ro,n)?null:(ro=n,e=F.getPooled(eo.select,no,e,t),e.type="select",e.target=to,L(e),e)}function He(e,t,n,r){return F.call(this,e,t,n,r)}function ze(e,t,n,r){return F.call(this,e,t,n,r)}function Ke(e,t,n,r){return F.call(this,e,t,n,r)}function Ue(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,32<=e||13===e?e:0}function qe(e,t,n,r){return F.call(this,e,t,n,r)}function We(e,t,n,r){return F.call(this,e,t,n,r)}function Ge(e,t,n,r){return F.call(this,e,t,n,r)}function Ve(e,t,n,r){return F.call(this,e,t,n,r)}function $e(e,t,n,r){return F.call(this,e,t,n,r)}function Ye(e){0>fo||(e.current=po[fo],po[fo]=null,fo--)}function Je(e,t){fo++,po[fo]=e.current,e.current=t}function Xe(e){return Ze(e)?vo:ho.current}function Qe(e,t){var n=e.type.contextTypes;if(!n)return Cn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ze(e){return 2===e.tag&&null!=e.type.childContextTypes}function et(e){Ze(e)&&(Ye(mo,e),Ye(ho,e))}function tt(e,t,n){null!=ho.cursor&&r("168"),Je(ho,t,e),Je(mo,n,e)}function nt(e,t){var n=e.stateNode,o=e.type.childContextTypes;if("function"!==typeof n.getChildContext)return t;n=n.getChildContext();for(var i in n)i in o||r("108",Te(e)||"Unknown",i);return Tn({},t,n)}function rt(e){if(!Ze(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Cn,vo=ho.current,Je(ho,t,e),Je(mo,mo.current,e),!0}function ot(e,t){var n=e.stateNode;if(n||r("169"),t){var o=nt(e,vo);n.__reactInternalMemoizedMergedChildContext=o,Ye(mo,e),Ye(ho,e),Je(ho,o,e)}else Ye(mo,e);Je(mo,t,e)}function it(e,t,n){this.tag=e,this.key=t,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function at(e,t,n){var r=e.alternate;return null===r?(r=new it(e.tag,e.key,e.internalContextTag),r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.pendingProps=t,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function st(e,t,n){var o=void 0,i=e.type,a=e.key;return"function"===typeof i?(o=i.prototype&&i.prototype.isReactComponent?new it(2,a,t):new it(0,a,t),o.type=i,o.pendingProps=e.props):"string"===typeof i?(o=new it(5,a,t),o.type=i,o.pendingProps=e.props):"object"===typeof i&&null!==i&&"number"===typeof i.tag?(o=i,o.pendingProps=e.props):r("130",null==i?i:typeof i,""),o.expirationTime=n,o}function ut(e,t,n,r){return t=new it(10,r,t),t.pendingProps=e,t.expirationTime=n,t}function ct(e,t,n){return t=new it(6,null,t),t.pendingProps=e,t.expirationTime=n,t}function lt(e,t,n){return t=new it(7,e.key,t),t.type=e.handler,t.pendingProps=e,t.expirationTime=n,t}function pt(e,t,n){return e=new it(9,null,t),e.expirationTime=n,e}function ft(e,t,n){return t=new it(4,e.key,t),t.pendingProps=e.children||[],t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dt(e){return function(t){try{return e(t)}catch(e){}}}function ht(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);go=dt(function(e){return t.onCommitFiberRoot(n,e)}),yo=dt(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}function mt(e){"function"===typeof go&&go(e)}function vt(e){"function"===typeof yo&&yo(e)}function gt(e){return{baseState:e,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function yt(e,t){null===e.last?e.first=e.last=t:(e.last.next=t,e.last=t),(0===e.expirationTime||e.expirationTime>t.expirationTime)&&(e.expirationTime=t.expirationTime)}function bt(e,t){var n=e.alternate,r=e.updateQueue;null===r&&(r=e.updateQueue=gt(null)),null!==n?null===(e=n.updateQueue)&&(e=n.updateQueue=gt(null)):e=null,e=e!==r?e:null,null===e?yt(r,t):null===r.last||null===e.last?(yt(r,t),yt(e,t)):(yt(r,t),e.last=t)}function xt(e,t,n,r){return e=e.partialState,"function"===typeof e?e.call(t,n,r):e}function Tt(e,t,n,r,o,i){null!==e&&e.updateQueue===n&&(n=t.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?e=n.baseState:(e=n.baseState=t.memoizedState,n.isInitialized=!0);for(var a=!0,s=n.first,u=!1;null!==s;){var c=s.expirationTime;if(c>i){var l=n.expirationTime;(0===l||l>c)&&(n.expirationTime=c),u||(u=!0,n.baseState=e)}else u||(n.first=s.next,null===n.first&&(n.last=null)),s.isReplace?(e=xt(s,r,e,o),a=!0):(c=xt(s,r,e,o))&&(e=a?Tn({},e,c):Tn(e,c),a=!1),s.isForced&&(n.hasForceUpdate=!0),null!==s.callback&&(c=n.callbackList,null===c&&(c=n.callbackList=[]),c.push(s));s=s.next}return null!==n.callbackList?t.effectTag|=32:null!==n.first||n.hasForceUpdate||(t.updateQueue=null),u||(n.baseState=e),e}function _t(e,t){var n=e.callbackList;if(null!==n)for(e.callbackList=null,e=0;ef?(d=p,p=null):d=p.sibling;var g=m(r,p,s[f],u);if(null===g){null===p&&(p=d);break}e&&p&&null===g.alternate&&t(r,p),i=a(g,i,f),null===l?c=g:l.sibling=g,l=g,p=d}if(f===s.length)return n(r,p),c;if(null===p){for(;fd?(g=f,f=null):g=f.sibling;var b=m(i,f,y.value,c);if(null===b){f||(f=g);break}e&&f&&null===b.alternate&&t(i,f),s=a(b,s,d),null===p?l=b:p.sibling=b,p=b,f=g}if(y.done)return n(i,f),l;if(null===f){for(;!y.done;d++,y=u.next())null!==(y=h(i,y.value,c))&&(s=a(y,s,d),null===p?l=y:p.sibling=y,p=y);return l}for(f=o(i,f);!y.done;d++,y=u.next())null!==(y=v(f,i,d,y.value,c))&&(e&&null!==y.alternate&&f.delete(null===y.key?d:y.key),s=a(y,s,d),null===p?l=y:p.sibling=y,p=y);return e&&f.forEach(function(e){return t(i,e)}),l}return function(e,o,a,u){"object"===typeof a&&null!==a&&a.type===ko&&null===a.key&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case xo:e:{var l=a.key;for(c=o;null!==c;){if(c.key===l){if(10===c.tag?a.type===ko:c.type===a.type){n(e,c.sibling),o=i(c,a.type===ko?a.props.children:a.props,u),o.ref=wt(c,a),o.return=e,e=o;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===ko?(o=ut(a.props.children,e.internalContextTag,u,a.key),o.return=e,e=o):(u=st(a,e.internalContextTag,u),u.ref=wt(o,a),u.return=e,e=u)}return s(e);case To:e:{for(c=a.key;null!==o;){if(o.key===c){if(7===o.tag){n(e,o.sibling),o=i(o,a,u),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=lt(a,e.internalContextTag,u),o.return=e,e=o}return s(e);case _o:e:{if(null!==o){if(9===o.tag){n(e,o.sibling),o=i(o,null,u),o.type=a.value,o.return=e,e=o;break e}n(e,o)}o=pt(a,e.internalContextTag,u),o.type=a.value,o.return=e,e=o}return s(e);case Eo:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(e,o.sibling),o=i(o,a.children||[],u),o.return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}o=ft(a,e.internalContextTag,u),o.return=e,e=o}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==o&&6===o.tag?(n(e,o.sibling),o=i(o,a,u)):(n(e,o),o=ct(a,e.internalContextTag,u)),o.return=e,e=o,s(e);if(Oo(a))return g(e,o,a,u);if(kt(a))return y(e,o,a,u);if(c&&Ot(e,a),"undefined"===typeof a)switch(e.tag){case 2:case 1:u=e.type,r("152",u.displayName||u.name||"Component")}return n(e,o)}}function Ct(e,t,n,o,i){function a(e,t,n){var r=t.expirationTime;t.child=null===e?Co(t,null,n,r):Ao(t,e.child,n,r)}function s(e,t){var n=t.ref;null===n||e&&e.ref===n||(t.effectTag|=128)}function u(e,t,n,r){if(s(e,t),!n)return r&&ot(t,!1),l(e,t);n=t.stateNode,zr.current=t;var o=n.render();return t.effectTag|=1,a(e,t,o),t.memoizedState=n.state,t.memoizedProps=n.props,r&&ot(t,!0),t.child}function c(e){var t=e.stateNode;t.pendingContext?tt(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tt(e,t.context,!1),v(e,t.containerInfo)}function l(e,t){if(null!==e&&t.child!==e.child&&r("153"),null!==t.child){e=t.child;var n=at(e,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=at(e,e.pendingProps,e.expirationTime),n.return=t;n.sibling=null}return t.child}function p(e,t){switch(t.tag){case 3:c(t);break;case 2:rt(t);break;case 4:v(t,t.stateNode.containerInfo)}return null}var f=e.shouldSetTextContent,d=e.useSyncScheduling,h=e.shouldDeprioritizeSubtree,m=t.pushHostContext,v=t.pushHostContainer,g=n.enterHydrationState,y=n.resetHydrationState,b=n.tryToClaimNextHydratableInstance;e=Et(o,i,function(e,t){e.memoizedProps=t},function(e,t){e.memoizedState=t});var x=e.adoptClassInstance,T=e.constructClassInstance,_=e.mountClassInstance,E=e.updateClassInstance;return{beginWork:function(e,t,n){if(0===t.expirationTime||t.expirationTime>n)return p(e,t);switch(t.tag){case 0:null!==e&&r("155");var o=t.type,i=t.pendingProps,k=Xe(t);return k=Qe(t,k),o=o(i,k),t.effectTag|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render?(t.tag=2,i=rt(t),x(t,o),_(t,n),t=u(e,t,!0,i)):(t.tag=1,a(e,t,o),t.memoizedProps=i,t=t.child),t;case 1:e:{if(i=t.type,n=t.pendingProps,o=t.memoizedProps,mo.current)null===n&&(n=o);else if(null===n||o===n){t=l(e,t);break e}o=Xe(t),o=Qe(t,o),i=i(n,o),t.effectTag|=1,a(e,t,i),t.memoizedProps=n,t=t.child}return t;case 2:return i=rt(t),o=void 0,null===e?t.stateNode?r("153"):(T(t,t.pendingProps),_(t,n),o=!0):o=E(e,t,n),u(e,t,o,i);case 3:return c(t),i=t.updateQueue,null!==i?(o=t.memoizedState,i=Tt(e,t,i,null,null,n),o===i?(y(),t=l(e,t)):(o=i.element,k=t.stateNode,(null===e||null===e.child)&&k.hydrate&&g(t)?(t.effectTag|=2,t.child=Co(t,null,o,n)):(y(),a(e,t,o)),t.memoizedState=i,t=t.child)):(y(),t=l(e,t)),t;case 5:m(t),null===e&&b(t),i=t.type;var w=t.memoizedProps;return o=t.pendingProps,null===o&&null===(o=w)&&r("154"),k=null!==e?e.memoizedProps:null,mo.current||null!==o&&w!==o?(w=o.children,f(i,o)?w=null:k&&f(i,k)&&(t.effectTag|=16),s(e,t),2147483647!==n&&!d&&h(i,o)?(t.expirationTime=2147483647,t=null):(a(e,t,w),t.memoizedProps=o,t=t.child)):t=l(e,t),t;case 6:return null===e&&b(t),e=t.pendingProps,null===e&&(e=t.memoizedProps),t.memoizedProps=e,null;case 8:t.tag=7;case 7:return i=t.pendingProps,mo.current?null===i&&null===(i=e&&e.memoizedProps)&&r("154"):null!==i&&t.memoizedProps!==i||(i=t.memoizedProps),o=i.children,t.stateNode=null===e?Co(t,t.stateNode,o,n):Ao(t,t.stateNode,o,n),t.memoizedProps=i,t.stateNode;case 9:return null;case 4:e:{if(v(t,t.stateNode.containerInfo),i=t.pendingProps,mo.current)null===i&&null==(i=e&&e.memoizedProps)&&r("154");else if(null===i||t.memoizedProps===i){t=l(e,t);break e}null===e?t.child=Ao(t,null,i,n):a(e,t,i),t.memoizedProps=i,t=t.child}return t;case 10:e:{if(n=t.pendingProps,mo.current)null===n&&(n=t.memoizedProps);else if(null===n||t.memoizedProps===n){t=l(e,t);break e}a(e,t,n),t.memoizedProps=n,t=t.child}return t;default:r("156")}},beginFailedWork:function(e,t,n){switch(t.tag){case 2:rt(t);break;case 3:c(t);break;default:r("157")}return t.effectTag|=64,null===e?t.child=null:t.child!==e.child&&(t.child=e.child),0===t.expirationTime||t.expirationTime>n?p(e,t):(t.firstEffect=null,t.lastEffect=null,t.child=null===e?Co(t,null,null,n):Ao(t,e.child,null,n),2===t.tag&&(e=t.stateNode,t.memoizedProps=e.props,t.memoizedState=e.state),t.child)}}}function St(e,t,n){function o(e){e.effectTag|=4}var i=e.createInstance,a=e.createTextInstance,s=e.appendInitialChild,u=e.finalizeInitialChildren,c=e.prepareUpdate,l=e.persistence,p=t.getRootHostContainer,f=t.popHostContext,d=t.getHostContext,h=t.popHostContainer,m=n.prepareToHydrateHostInstance,v=n.prepareToHydrateHostTextInstance,g=n.popHydrationState,y=void 0,b=void 0,x=void 0;return e.mutation?(y=function(){},b=function(e,t,n){(t.updateQueue=n)&&o(t)},x=function(e,t,n,r){n!==r&&o(t)}):r(l?"235":"236"),{completeWork:function(e,t,n){var l=t.pendingProps;switch(null===l?l=t.memoizedProps:2147483647===t.expirationTime&&2147483647!==n||(t.pendingProps=null),t.tag){case 1:return null;case 2:return et(t),null;case 3:return h(t),Ye(mo,t),Ye(ho,t),l=t.stateNode,l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||(g(t),t.effectTag&=-3),y(t),null;case 5:f(t),n=p();var T=t.type;if(null!==e&&null!=t.stateNode){var _=e.memoizedProps,E=t.stateNode,k=d();E=c(E,T,_,l,n,k),b(e,t,E,T,_,l,n),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!l)return null===t.stateNode&&r("166"),null;if(e=d(),g(t))m(t,n,e)&&o(t);else{e=i(T,l,n,e,t);e:for(_=t.child;null!==_;){if(5===_.tag||6===_.tag)s(e,_.stateNode);else if(4!==_.tag&&null!==_.child){_.child.return=_,_=_.child;continue}if(_===t)break;for(;null===_.sibling;){if(null===_.return||_.return===t)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}u(e,T,l,n)&&o(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)x(e,t,e.memoizedProps,l);else{if("string"!==typeof l)return null===t.stateNode&&r("166"),null;e=p(),n=d(),g(t)?v(t)&&o(t):t.stateNode=a(l,e,n,t)}return null;case 7:(l=t.memoizedProps)||r("165"),t.tag=8,T=[];e:for((_=t.stateNode)&&(_.return=t);null!==_;){if(5===_.tag||6===_.tag||4===_.tag)r("247");else if(9===_.tag)T.push(_.type);else if(null!==_.child){_.child.return=_,_=_.child;continue}for(;null===_.sibling;){if(null===_.return||_.return===t)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}return _=l.handler,l=_(l.props,T),t.child=Ao(t,null!==e?e.child:null,l,n),t.child;case 8:return t.tag=7,null;case 9:case 10:return null;case 4:return h(t),y(t),null;case 0:r("167");default:r("156")}}}}function Nt(e,t){function n(e){var n=e.ref;if(null!==n)try{n(null)}catch(n){t(e,n)}}function o(e){switch("function"===typeof vt&&vt(e),e.tag){case 2:n(e);var r=e.stateNode;if("function"===typeof r.componentWillUnmount)try{r.props=e.memoizedProps,r.state=e.memoizedState,r.componentWillUnmount()}catch(n){t(e,n)}break;case 5:n(e);break;case 7:i(e.stateNode);break;case 4:c&&s(e)}}function i(e){for(var t=e;;)if(o(t),null===t.child||c&&4===t.tag){if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}else t.child.return=t,t=t.child}function a(e){return 5===e.tag||3===e.tag||4===e.tag}function s(e){for(var t=e,n=!1,a=void 0,s=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&r("160"),n.tag){case 5:a=n.stateNode,s=!1;break e;case 3:case 4:a=n.stateNode.containerInfo,s=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag)i(t),s?b(a,t.stateNode):y(a,t.stateNode);else if(4===t.tag?a=t.stateNode.containerInfo:o(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;t=t.return,4===t.tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}var u=e.getPublicInstance,c=e.mutation;e=e.persistence,c||r(e?"235":"236");var l=c.commitMount,p=c.commitUpdate,f=c.resetTextContent,d=c.commitTextUpdate,h=c.appendChild,m=c.appendChildToContainer,v=c.insertBefore,g=c.insertInContainerBefore,y=c.removeChild,b=c.removeChildFromContainer;return{commitResetTextContent:function(e){f(e.stateNode)},commitPlacement:function(e){e:{for(var t=e.return;null!==t;){if(a(t)){var n=t;break e}t=t.return}r("160"),n=void 0}var o=t=void 0;switch(n.tag){case 5:t=n.stateNode,o=!1;break;case 3:case 4:t=n.stateNode.containerInfo,o=!0;break;default:r("161")}16&n.effectTag&&(f(t),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||a(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)n?o?g(t,i.stateNode,n):v(t,i.stateNode,n):o?m(t,i.stateNode):h(t,i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},commitDeletion:function(e){s(e),e.return=null,e.child=null,e.alternate&&(e.alternate.child=null,e.alternate.return=null)},commitWork:function(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps;e=null!==e?e.memoizedProps:o;var i=t.type,a=t.updateQueue;t.updateQueue=null,null!==a&&p(n,a,i,e,o,t)}break;case 6:null===t.stateNode&&r("162"),n=t.memoizedProps,d(t.stateNode,null!==e?e.memoizedProps:n,n);break;case 3:break;default:r("163")}},commitLifeCycles:function(e,t){switch(t.tag){case 2:var n=t.stateNode;if(4&t.effectTag)if(null===e)n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidMount();else{var o=e.memoizedProps;e=e.memoizedState,n.props=t.memoizedProps,n.state=t.memoizedState,n.componentDidUpdate(o,e)}t=t.updateQueue,null!==t&&_t(t,n);break;case 3:n=t.updateQueue,null!==n&&_t(n,null!==t.child?t.child.stateNode:null);break;case 5:n=t.stateNode,null===e&&4&t.effectTag&&l(n,t.type,t.memoizedProps,t);break;case 6:case 4:break;default:r("163")}},commitAttachRef:function(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:t(u(n));break;default:t(n)}}},commitDetachRef:function(e){null!==(e=e.ref)&&e(null)}}}function Dt(e){function t(e){return e===So&&r("174"),e}var n=e.getChildHostContext,o=e.getRootHostContext,i={current:So},a={current:So},s={current:So};return{getHostContext:function(){return t(i.current)},getRootHostContainer:function(){return t(s.current)},popHostContainer:function(e){Ye(i,e),Ye(a,e),Ye(s,e)},popHostContext:function(e){a.current===e&&(Ye(i,e),Ye(a,e))},pushHostContainer:function(e,t){Je(s,t,e),t=o(t),Je(a,e,e),Je(i,t,e)},pushHostContext:function(e){var r=t(s.current),o=t(i.current);r=n(o,e.type,r),o!==r&&(Je(a,e,e),Je(i,r,e))},resetHostContainer:function(){i.current=So,s.current=So}}}function Mt(e){function t(e,t){var n=new it(5,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function n(e,t){switch(e.tag){case 5:return null!==(t=a(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=s(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function o(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;f=e}var i=e.shouldSetTextContent;if(!(e=e.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var a=e.canHydrateInstance,s=e.canHydrateTextInstance,u=e.getNextHydratableSibling,c=e.getFirstHydratableChild,l=e.hydrateInstance,p=e.hydrateTextInstance,f=null,d=null,h=!1;return{enterHydrationState:function(e){return d=c(e.stateNode.containerInfo),f=e,h=!0},resetHydrationState:function(){d=f=null,h=!1},tryToClaimNextHydratableInstance:function(e){if(h){var r=d;if(r){if(!n(e,r)){if(!(r=u(r))||!n(e,r))return e.effectTag|=2,h=!1,void(f=e);t(f,d)}f=e,d=c(r)}else e.effectTag|=2,h=!1,f=e}},prepareToHydrateHostInstance:function(e,t,n){return t=l(e.stateNode,e.type,e.memoizedProps,t,n,e),e.updateQueue=t,null!==t},prepareToHydrateHostTextInstance:function(e){return p(e.stateNode,e.memoizedProps,e)},popHydrationState:function(e){if(e!==f)return!1;if(!h)return o(e),h=!0,!1;var n=e.type;if(5!==e.tag||"head"!==n&&"body"!==n&&!i(n,e.memoizedProps))for(n=d;n;)t(e,n),n=u(n);return o(e),d=f?u(e.stateNode):null,!0}}}function It(e){function t(e){ie=Y=!0;var t=e.stateNode;if(t.current===e&&r("177"),t.isReadyForCommit=!1,zr.current=null,1a.expirationTime)&&(i=a.expirationTime),a=a.sibling;o.expirationTime=i}if(null!==t)return t;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1e))if(Q<=V)for(;null!==J;)J=c(J)?i(J):o(J);else for(;null!==J&&!_();)J=c(J)?i(J):o(J)}else if(!(0===Q||Q>e))if(Q<=V)for(;null!==J;)J=o(J);else for(;null!==J&&!_();)J=o(J)}function s(e,t){if(Y&&r("243"),Y=!0,e.isReadyForCommit=!1,e!==X||t!==Q||null===J){for(;-1